/* Local V1 experience adjustments. Original logo, stage art and business layout stay intact. */
html { font-size: 17px; }
html[data-text-size="large"] { font-size: 19px; }
html[data-text-size="xlarge"] { font-size: 21px; }
html[data-text-size="large"] .app-container,
html[data-text-size="xlarge"] .app-container { gap: 20px; }
@media (min-width: 901px) {
  .app-container { max-width: min(1220px, calc(100vw - 286px)); }
}
.text-size-choice { display: grid; gap: 7px; margin-top: 20px; color: #c6bd9d; font-size: .8rem; }
.text-size-choice select, .mobile-text-size select { min-height: 38px; padding: 5px 9px; border: 1px solid rgba(193,162,100,.36); border-radius: 9px; background: #102119; color: #efe4c8; font: inherit; }
.mobile-text-size { display: none; }
.bf-skip-intro { position: absolute; z-index: 8; top: max(20px, env(safe-area-inset-top)); right: 24px; min-height: 42px; padding: 8px 16px; border: 1px solid rgba(218,184,116,.55); border-radius: 999px; background: rgba(11,23,24,.78); color: #f1dfb0; font: inherit; cursor: pointer; }
.bf-skip-intro:hover, .bf-skip-intro:focus-visible { background: rgba(42,51,39,.9); border-color: #e5cc8d; }
.bf-skip-intro[hidden] { display: none; }
.floating-corner { gap: 9px; }
.floating-corner > [data-quick-label] { width: 48px; height: 48px; margin-left: auto; border: 1px solid rgba(187,157,99,.42); border-radius: 13px; background: rgba(9,24,19,.87); box-shadow: 0 5px 16px rgba(0,0,0,.25); backdrop-filter: blur(12px); transition: transform .18s, border-color .18s, background .18s; }
.floating-corner > [data-quick-label]:hover, .floating-corner > [data-quick-label]:focus-visible { transform: translateY(-2px); border-color: rgba(230,199,132,.75); background: rgba(22,42,32,.95); box-shadow: 0 7px 18px rgba(0,0,0,.33); }
.floating-corner #metamorphEntry img { width: 27px; height: 25px; filter: none; }
.floating-corner #metamorphEntry span { font-size: .62rem; margin-top: 0; }
.floating-corner #metamorphEntry { padding: 2px; }
.floating-corner #branchEntry .entry-butterfly { animation: none; box-shadow: 0 0 4px rgba(218,184,116,.5); }
html.metamorph-open #shareEntry, html.metamorph-open #pixelTree, html.metamorph-open #branchEntry { visibility: visible; pointer-events: auto; }
#quickToolsToggle { display: none; }
.mt-loading-screen.is-error .mt-video, .mt-loading-screen.is-error .mt-video-mask, .mt-loading-screen.is-error .mt-loading-track { display: none !important; }
.mt-loading-screen.is-error { background: #081623; }
.mt-loading-screen.is-error .mt-loading-panel { border-color: rgba(225,173,139,.5); }
@media (max-width: 900px) {
  .mobile-text-size { display: flex; align-items: center; gap: 5px; margin-left: auto; color: #d9cb9d; font-size: .78rem; white-space: nowrap; }
  .mobile-text-size select { min-height: 34px; width: 78px; font-size: .76rem; }
  .floating-corner { right: 8px; bottom: calc(78px + env(safe-area-inset-bottom)); flex-direction: row; align-items: end; gap: 5px; max-width: calc(100vw - 16px); }
  .floating-corner > [data-quick-label] { position: relative; width: 57px; height: 54px; margin: 0; padding-bottom: 13px; border-radius: 12px; }
  .floating-corner > [data-quick-label]::after { content: attr(data-quick-label); position: absolute; left: 0; right: 0; bottom: 2px; overflow: hidden; color: #d9cda9; font: 10px/1.1 system-ui, sans-serif; text-align: center; white-space: nowrap; }
  .floating-corner #metamorphEntry img { width: 25px; height: 25px; }
  .floating-corner #metamorphEntry span { display: none; }
  #quickToolsToggle { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 48px; height: 54px; order: 5; border: 1px solid rgba(187,157,99,.58); border-radius: 12px; background: rgba(9,24,19,.95); color: #eddbad; font-size: 18px; box-shadow: 0 5px 16px rgba(0,0,0,.28); cursor: pointer; }
  #quickToolsToggle span { font-size: 10px; }
  .floating-corner:not(.is-open) > [data-quick-label] { display: none !important; }
  .floating-corner.is-open > [data-quick-label] { animation: wtQuickReveal .16s ease-out both; }
  @keyframes wtQuickReveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  .mobile-tabbar { overflow-x: auto; scrollbar-width: none; }
  .mobile-tabbar::-webkit-scrollbar { display: none; }
  .mobile-tabbar a { min-width: 63px; flex: 1 0 auto; font-size: .72rem; }
  html[data-text-size="xlarge"] .mobile-tabbar a { min-width: 73px; }
  .bf-skip-intro { right: 12px; }
}
@media (max-width: 380px) {
  .floating-corner > [data-quick-label] { width: 51px; }
  #quickToolsToggle { flex-basis: 46px; }
  .mobile-text-size select { width: 70px; }
}
.bf-export-text { min-height: 38px; padding: 7px 12px; border: 1px solid rgba(207,175,106,.45); border-radius: 9px; background: rgba(16,31,27,.8); color: #ecd9a9; font: inherit; cursor: pointer; }
.bf-export-text:hover { border-color: #e7c883; }
.wt-export-overlay { position: fixed; inset: 0; z-index: 100100; display: grid; place-items: center; padding: 16px; background: rgba(1,9,8,.72); }
.wt-export-card { width: min(440px,100%); padding: 22px; border: 1px solid rgba(213,180,111,.52); border-radius: 17px; background: #10221d; color: #eee6d4; box-shadow: 0 18px 48px rgba(0,0,0,.5); }
.wt-export-card h2 { margin: 0 0 9px; font-size: 1.3rem; color: #f3dc9f; }
.wt-export-name { margin: 0 0 18px; overflow-wrap: anywhere; }
.wt-export-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wt-export-actions button { min-height: 44px; padding: 8px 10px; border: 1px solid rgba(213,180,111,.48); border-radius: 10px; background: #18362b; color: #f3e9d4; font: inherit; cursor: pointer; }
.wt-export-actions button[data-export="close"] { grid-column: 1/-1; background: transparent; }
.wt-export-feedback { min-height: 1.5em; margin: 13px 0 0; color: #d9cb9e; }
@media (max-width: 640px) { .bf-export-text { padding: 6px 8px; font-size: .76rem; } }
.mt-speech { margin: 18px 0; padding: 14px; border: 1px solid rgba(216,183,124,.38); border-radius: 13px; background: rgba(12,25,31,.72); }
.mt-speech-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-speech-buttons button { min-height: 40px; padding: 7px 13px; border: 1px solid rgba(227,191,132,.48); border-radius: 9px; background: rgba(33,42,47,.82); color: #f4e6ca; font: inherit; cursor: pointer; }
.mt-speech-buttons button:hover { border-color: #f3d8a8; }
.mt-speech-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 11px; }
.mt-speech-options label { display: grid; gap: 4px; color: #d8c9ad; font-size: .84rem; }
.mt-speech-options select { min-height: 39px; max-width: min(300px,75vw); padding: 6px 8px; border: 1px solid rgba(227,191,132,.38); border-radius: 8px; background: #13232c; color: #f5e9d6; font: inherit; }
#mtSpeechStatus { margin: 10px 0 0; color: #cbc6c3; font-size: .83rem; }
@media (max-width: 640px) { .mt-speech-buttons button { flex: 1 1 42%; } .mt-speech-options label { flex: 1 1 44%; } .mt-speech-options select { max-width: 100%; } }
.desktop-nav .nav-feature.active { color: #f1dfa8; border-color: rgba(218,184,106,.46); background: rgba(216,184,106,.12); }
@media (max-width: 900px) {
  .mobile-tabbar { grid-template-columns: repeat(5,minmax(0,1fr)); overflow: visible; }
  .mobile-tabbar a { min-width: 0; font-size: .67rem; }
  html.metamorph-open .mobile-tabbar { display: grid !important; }
  html.metamorph-open #metamorphApp { bottom: calc(68px + env(safe-area-inset-bottom)); }
  html.metamorph-open .mt-shell { padding-bottom: 90px; }
}
@media (max-width: 380px) { .mobile-tabbar a { font-size: .62rem; } }
#pixelTree, #branchEntry { display: flex; align-items: center; justify-content: center; }
.quick-icon { color: #e6d39d; font: 400 1.45rem/1 Georgia, serif; text-shadow: none; }
@media (max-width: 900px) {
  .mobile-tabbar a { font-size: .72rem; }
  .floating-corner.is-open { padding: 4px; border: 1px solid rgba(196,166,106,.35); border-radius: 14px; background: rgba(7,20,17,.97); box-shadow: 0 7px 22px rgba(0,0,0,.48); }
  .floating-corner.is-open > [data-quick-label] { border-color: rgba(204,174,116,.48); background: #142820; }
  html.quick-open.metamorph-open #metamorphApp { bottom: calc(148px + env(safe-area-inset-bottom)); }
  html.quick-open .app-container { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
}
@media (max-width: 900px) {
  .floating-corner.is-open::before { content: ''; position: fixed; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom)); height: 80px; border-top: 1px solid rgba(201,171,109,.28); background: rgba(8,25,19,.97); pointer-events: none; z-index: -1; }
  html.metamorph-open .floating-corner.is-open::before { background: #07101e; }
  .floating-corner > [data-quick-label]::after { color: #f0e0b8; font-size: 11px; }
}
#quickTools #metamorphEntry { width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 5px 16px rgba(0,0,0,.25); }
@media (max-width: 900px) { #quickTools #metamorphEntry { width: 57px; height: 54px; border-radius: 12px; } }
@media (max-width: 380px) { #quickTools #metamorphEntry { width: 51px; } }
@media (max-width: 430px) {
  html[data-text-size="xlarge"] .mobile-tabbar a { font-size: 13px; letter-spacing: -.03em; }
}
