/* Fibo King AI — r30 legibility overrides for the owner's intro (loaded LAST; the approved style.css / tableau.css /
   finale.css stay untouched and diffable).
   Phones and small screens: readable text >= 12px, decorative micro-labels >= 10px, tap targets >= 40px for the
   language buttons, "Enter platform", pause / reduce-motion and the chapter dots. font-size uses !important only
   because the approved sheets repeat the same selectors under several height / language queries.
   All sizes: the risk note is always readable. */

/* ---------------------------------------------------------------------------------------------- every screen */
.risk-note, .pinecone .risk-note { font-size: 12.5px !important; line-height: 1.6; color: #4f6258 !important; max-width: none !important; }
.motion-controls button, .motion-toggle { font-size: 11px !important; opacity: .8; }
.chapter-status { font-size: 10px !important; }
.tableau-caption small, .pinecone-caption small, .scholar-plate figcaption small { font-size: 10px !important; }

/* ------------------------------------------------------------------- phones, small tablets, landscape phones */
@media (max-width: 900px), (max-height: 500px) {
  /* header */
  .logo small { font-size: 10px !important; padding: 1px 3px; }
  .header-product { font-size: 12px !important; }
  .language-switch button { font-size: 12px !important; min-width: 40px; min-height: 40px; padding: 8px 6px; }
  .skip { font-size: 12px !important; min-height: 40px; }
  .skip svg { width: 36px; height: 36px; padding: 9px; }

  /* 01 the garden */
  .opening-kicker { font-size: 10px !important; letter-spacing: 1.4px !important; padding: 0 16px; }
  .opening-foot { bottom: 12% !important; }
  .opening-foot p { font-size: 12px !important; line-height: 1.5 !important; max-width: calc(100vw - 150px) !important; }
  .begin { font-size: 12px !important; min-width: 96px !important; max-width: 112px !important; min-height: 44px; }
  .edge-note { font-size: 10px !important; letter-spacing: 1.4px !important; right: 8px !important; }

  /* 02 observation */
  .eyebrow, .scholar .eyebrow, .arrival > .eyebrow { font-size: 11px !important; letter-spacing: 1.6px !important; }
  .body-copy, .numbers .body-copy, .research .body-copy, .scholar .body-copy { font-size: 12px !important; line-height: 1.7 !important; }
  .scholar-note > span { font-size: 10px !important; }
  .scholar-note p { font-size: 12px !important; }
  .scholar-note .hint-link { font-size: 12px !important; }
  .scholar-note small { font-size: 12px !important; }

  /* 03 Leonardo Fibonacci */
  .scholar-source { font-size: 12px !important; }
  .scholar-plate figcaption > span { font-size: 10px !important; }
  .scholar-plate figcaption small { font-size: 11px !important; }
  .tableau-caption > span { font-size: 10px !important; letter-spacing: 1.8px !important; }
  .tableau-caption small { font-size: 11px !important; line-height: 1.5 !important; }

  /* 04 strategy */
  .tool-triad span { font-size: 10px !important; }
  .tool-triad b { font-size: 12px !important; white-space: normal !important; }
  .botanical-caption .hint-link { font-size: 12px !important; letter-spacing: .4px !important; min-height: 40px; }

  /* 05 Fibo King */
  .pinecone-hint { font-size: 12px !important; min-height: 40px !important; }
  .pinecone .arrival-copy, .arrival-copy { font-size: 12px !important; }
  .pinecone .enter-button { font-size: 13px !important; }
  .platforms, .pinecone .platforms { font-size: 12px !important; }
  .pinecone .platforms a { min-height: 40px; display: inline-flex; align-items: center; }
  .finale-exchanges { font-size: 10px !important; }
  .pinecone .risk-note { max-width: 215px !important; text-shadow: 0 0 8px #f1f0e8, 0 0 2px #f1f0e8; }
  .pinecone-caption > span { font-size: 10px !important; letter-spacing: 1.6px !important; }
  .pinecone-caption small { font-size: 11px !important; }
  .pinecone-caption { max-width: 210px !important; }
  .replay { font-size: 12px !important; }

  /* footer: chapter status, pause / reduce motion, chapter dots */
  .chapter-status { font-size: 10px !important; letter-spacing: 1px !important; width: auto !important; max-width: 46vw; }
  .chapter-status > span:last-child { white-space: nowrap; }
  .motion-controls { gap: 4px !important; }
  .motion-controls button, .motion-toggle { font-size: 12px !important; min-height: 40px; }
  .motion-controls #film-toggle { min-width: 40px; justify-content: center; padding: 0 !important; }
  .footer .chapter-nav { left: 0 !important; width: 40px !important; }
  .footer .chapter-nav button { width: 40px !important; height: 40px !important; }
  .nav-down span { font-size: 10px !important; }

  /* notes dialog */
  .notes-header { font-size: 11px !important; }
  .notes-tabs button { font-size: 12px !important; min-height: 40px; }
  #note-tag { font-size: 10px !important; }
  #note-body { font-size: 13px !important; }
  #note-sources a { font-size: 12px !important; }
}

/* portrait phones: the larger header line needs a little more room above chapter 04's title */
@media (max-width: 600px) {
  .numbers .scene-inner { top: 29% !important; }
  .header-product { transition: opacity .5s; }
  .experience[data-fk-ch]:not([data-fk-ch="01"]) .header-product { opacity: 0; visibility: hidden; }
}

/* Fibo King: Georgia on Windows lacks precomposed Vietnamese letters (ề, ế, ặ...) and the accents drift. Gelasio (Georgia metrics, full Vietnamese, SIL OFL) is served from this folder. */
@font-face{font-family:'FK Serif';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/gelasio-i-vi.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'FK Serif';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/gelasio-i-lx.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'FK Serif';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/gelasio-i-la.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'FK Serif';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/gelasio-n-vi.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'FK Serif';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/gelasio-n-lx.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'FK Serif';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/gelasio-n-la.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
.opening h1,h2,.sequence,.sheet-title,.end-wordmark,.chapter-status>span:first-child,.scholar-subtitle,.scholar-sequence,.notes-intro,#notes-title,#note-bridge,#note-formula{font-family:'FK Serif',Georgia,'Times New Roman',serif}
html[lang=zh-Hans] h1,html[lang=zh-Hans] h2,html[lang=zh-Hans] .scholar-subtitle,html[lang=zh-Hans] #note-bridge,html[lang=zh-Hans] .notes-intro{font-family:'Noto Serif CJK SC','Songti SC','SimSun',Georgia,serif}

/* r37: Binance / Hyperliquid logos beside the exchange names (assets/venue-*.svg = the site's brand/venues marks, on a dark tile,
   so the pale Hyperliquid mint reads on the light finale) */
@media (min-width: 601px) { .finale-exchanges { display: inline-flex; align-items: center; gap: .5em; } }   /* phones keep it hidden (finale.css) */
.finale-exchanges .fx-venue { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; }
.finale-exchanges img { width: 1.9em; height: 1.9em; padding: .32em; box-sizing: border-box; border-radius: .35em; background: #0f1a1f; flex: none; }
.finale-exchanges img.hl { padding: .28em; }
/* lf44 L4: the chapter number (#current-number) was the light gold #ad8c4c on the light background — contrast 2.68. A deeper gold
   (≥ 5:1 on every light background shade); over the dark scenes (light text) it takes the footer's own light colour. */
.chapter-status > span#current-number { color: #6f5a28; }
.experience.light-text .chapter-status > span#current-number, .finale-active .chapter-status > span#current-number { color: inherit; }

/* r46 review: no English first paint for a visitor whose stored language is Vietnamese or Chinese. fk-prelang.js
   (<head>) sets the mark before anything is painted, fk-bridge.js removes it once i18n.js has put that language on
   screen (at the latest after 3 s). Only the translatable text waits; the picture, the layout and the buttons do not. */
html.fk-lang-wait [data-i18n], html.fk-lang-wait [data-note] { visibility: hidden !important; }
