.fl-page { margin: 0; background: #e9f5ff; color: #17364b; font-family: Arial, sans-serif; }
.fl-page * { box-sizing: border-box; }
.fl-page [hidden] { display: none !important; }
.fl-topbar { position: relative; z-index: 20; display: flex; justify-content: space-between; gap: 16px; max-width: 1000px; margin: auto; padding: 20px 16px; }
.fl-topbar a { color: #174e70; font-weight: 700; }
.fl-main { width: min(100% - 24px, 960px); margin: 16px auto 64px; }
.fl-main h1 { margin: 8px 0 16px; font-size: clamp(2.4rem, 8vw, 4.5rem); color: #154e78; }
.fl-eyebrow { font-weight: 800; letter-spacing: .06em; color: #3c5970; }
#fl-instructions { max-width: 75ch; line-height: 1.7; }
.fl-status { min-height: 3em; padding: 12px 16px; border-radius: 14px; background: #fff3c9; font-weight: 700; line-height: 1.5; }
.fl-flight-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.fl-flight-meta p { margin: 0 0 12px; }
.fl-arena { position: relative; border: 2px solid #91bbd7; border-radius: 24px; background: #fff; }
.fl-reading { position: relative; margin: 12px; padding: clamp(16px, 3vw, 28px); border-radius: 18px; background: #fff; box-shadow: 0 4px 18px #20475c14; }
.fl-reading h2 { margin: 0 0 12px; font-size: 1.35rem; }
#fl-passage { margin: 0; font-size: clamp(1.05rem, 2.5vw, 1.25rem); line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.fl-word { display: inline-block; white-space: nowrap; }
.fl-char[data-state="flying"] { visibility: hidden; }
.fl-char[data-state="missed"] { visibility: hidden; }
.fl-char[data-state="caught"] { color: #9c152b; }
#fl-flock { position: fixed; z-index: 10; inset: 0; overflow: hidden; pointer-events: none; }
.fl-sound { display: none; }
.fl-sound-toggle { position: fixed; z-index: 12; right: 12px; bottom: 12px; min-height: 44px; padding: 10px 16px; border: 2px solid #175577; border-radius: 14px; background: #175577; color: #fff; font: 700 1rem/1.3 Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
.fl-sound-toggle:hover { background: #103c56; }
.fl-sound-toggle[hidden] { display: none; }
.fl-flight-meta { position: relative; z-index: 11; }
.fl-falling { position: fixed; z-index: 8; display: block; pointer-events: none; will-change: transform; }
.fl-falling-visual { position: absolute; top: 0; left: 0; display: block; transform-origin: 0 0; }
.fl-falling-visual > span { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; backface-visibility: hidden; transform-origin: center; }
.fl-falling-visual .sh { color: transparent; }
.fl-page .fl-letter { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #bd1232; font: 800 24px/1 Arial, sans-serif; box-shadow: none; pointer-events: auto; touch-action: manipulation; cursor: pointer; will-change: transform; }
.fl-letter:disabled { pointer-events: none; cursor: default; }
.fl-letter span { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; backface-visibility: hidden; transform-origin: center; }
.fl-letter .fl-glyph { text-shadow: 0 1px 1px #ffffffb3; }
.fl-letter[data-high-flyer] .fl-glyph { text-shadow: none; }
.fl-letter .sh { color: transparent; }
.fl-actions { position: relative; z-index: 20; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0; }
.fl-page .fl-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 13px 26px; border: 2px solid #175577; border-radius: 14px; background: #175577; color: #fff; font: 700 1rem/1.3 Arial, sans-serif; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.fl-page .fl-button-secondary { background: #fff; color: #175577; }
.fl-page .fl-button:hover { background: #103c56; color: #fff; }
.fl-page .fl-button:disabled { opacity: .6; cursor: default; }
.fl-page :is(a, button):focus-visible { outline: 3px solid #a91670; outline-offset: 3px; }
.fl-letter:focus-visible { z-index: 3; }
.fl-panel { margin-top: 24px; padding: 24px; border-radius: 20px; background: #fff; text-align: center; }
.fl-panel h2 { line-height: 1.5; }
.fl-quiz-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fl-quiz-meta p { margin: 0 0 12px; }
.fl-quiz-timer { font-weight: 800; font-variant-numeric: tabular-nums; color: #154e78; }
#fl-countdown { display: inline-block; min-width: 4.2ch; }
#fl-feedback { min-height: 3em; font-weight: 700; line-height: 1.6; }
.fl-feedback-correct { color: #17623d; }
.fl-feedback-wrong { color: #a12036; }
@media (prefers-reduced-motion: reduce) { .fl-letter { will-change: auto; } }
