:root {
  --navy: #0b2b61;
  --blue: #174a93;
  --sky: #e8f4ff;
  --green: #49aa34;
  --lime: #9add42;
  --yellow: #ffd43b;
  --orange: #ff8a2b;
  --red: #e84646;
  --ink: #17233b;
  --muted: #65728a;
  --line: #d8e3f0;
  --white: #fff;
  --shadow: 0 18px 46px rgba(16, 45, 85, .14);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #edf6ff; }
body { margin: 0; color: var(--ink); font: 16px/1.45 Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 4px solid rgba(255, 199, 0, .7); outline-offset: 3px; }
[hidden] { display: none !important; }

.duo-shell { min-height: 100vh; background: radial-gradient(circle at 12% 12%, rgba(255,255,255,.9), transparent 30%), linear-gradient(160deg, #f5fbff 0%, #e7f3ff 48%, #dfeeff 100%); }
.duo-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 82px; padding: 10px clamp(18px, 4vw, 64px); color: #fff; background: linear-gradient(120deg, #082d6a, #1456a4 64%, #087ac0); border-bottom: 5px solid #ffd23f; box-shadow: 0 8px 24px rgba(4, 38, 91, .23); }
.back-link { justify-self: start; color: #fff; text-decoration: none; font-weight: 900; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(0,0,0,.18)); }
.brand-lockup small, .brand-lockup strong { display: block; }
.brand-lockup small { font-size: .72rem; font-weight: 900; letter-spacing: .13em; opacity: .84; }
.brand-lockup strong { font-size: 1.2rem; line-height: 1.15; }
.header-stats { justify-self: end; display: flex; gap: 8px; }
.header-stats span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 7px 11px; color: #0d326d; background: #fff; border: 2px solid rgba(255,255,255,.75); border-radius: 14px; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.header-stats i { font-style: normal; }
.header-stats b { white-space: nowrap; font-size: .88rem; }

main { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.screen { padding: 42px 0 70px; }
.eyebrow { margin: 0 0 9px; color: #2672b8; font-size: .77rem; font-weight: 1000; letter-spacing: .16em; }
.hero-panel { display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; align-items: stretch; }
.hero-copy, .daily-goal-card { border-radius: 34px; box-shadow: var(--shadow); }
.hero-copy { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 66px); color: #fff; background: linear-gradient(135deg, #0b397d 0%, #176eb2 55%, #2ba6ce 100%); }
.hero-copy::after { content: "★"; position: absolute; right: 30px; top: 10px; color: rgba(255,255,255,.12); font-size: 190px; line-height: 1; transform: rotate(14deg); }
.hero-copy .eyebrow { color: #ffdd52; }
.hero-copy h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(2.5rem, 5.7vw, 5.2rem); line-height: .93; letter-spacing: -.055em; }
.hero-copy h1 span { color: #ffdd42; }
.hero-text { position: relative; z-index: 1; max-width: 600px; margin: 22px 0 28px; color: #e7f5ff; font-size: clamp(1rem, 1.8vw, 1.24rem); font-weight: 700; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.primary-button, .secondary-button { min-height: 52px; padding: 13px 22px; border: 0; border-radius: 17px; font-weight: 1000; transition: transform .16s ease, box-shadow .16s ease; }
.primary-button { color: #133261; background: linear-gradient(#ffe66d, #ffca30); box-shadow: 0 7px 0 #d79a0b; }
.secondary-button { color: #fff; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.7); box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.primary-button:active, .secondary-button:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }

.daily-goal-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; overflow: hidden; padding: clamp(28px, 5vw, 50px); background: #fff; border: 4px solid #b7d8f6; }
.daily-goal-card > img { position: absolute; right: -22px; bottom: -24px; width: 144px; opacity: .16; transform: rotate(-8deg); }
.daily-goal-card small { color: #2e72aa; font-weight: 1000; letter-spacing: .12em; }
.daily-goal-card h2 { margin: 8px 0 4px; color: var(--navy); font-size: clamp(1.35rem, 2.6vw, 2.05rem); }
.daily-goal-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-weight: 650; }
.goal-ring { display: grid; place-items: center; width: 150px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#55b839 var(--goal), #dce9f5 0); box-shadow: inset 0 0 0 3px #fff, 0 12px 30px rgba(40, 106, 155, .15); }
.goal-ring::before { content: ""; grid-area: 1/1; width: 112px; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.goal-ring div { grid-area: 1/1; z-index: 1; text-align: center; }
.goal-ring strong, .goal-ring small { display: block; }
.goal-ring strong { color: var(--navy); font-size: 2.2rem; line-height: 1; }
.goal-ring small { margin-top: 5px; color: #728198; letter-spacing: 0; }

.reward-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 26px 0 46px; }
.reward-strip article { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 16px; background: rgba(255,255,255,.88); border: 2px solid #d5e6f5; border-radius: 20px; box-shadow: 0 8px 22px rgba(15, 53, 95, .08); }
.reward-strip article > span { font-size: 2rem; }
.reward-strip b, .reward-strip small { display: block; }
.reward-strip b { color: #133c76; }
.reward-strip small { color: #718098; font-size: .75rem; line-height: 1.25; }

.journey-compass { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(210px, .7fr) auto; gap: 20px; align-items: center; margin: 0 0 48px; padding: 21px 24px; color: #fff; background: linear-gradient(120deg, #153c72, #215f98 62%, #327eae); border: 3px solid #b9e1fb; border-radius: 25px; box-shadow: 0 12px 0 #bcd9eb, 0 20px 36px rgba(15, 53, 95, .14); }
.compass-mark { display: grid; place-items: center; width: 68px; height: 68px; background: #ffdc4c; border: 3px solid #fff4b5; border-radius: 22px; box-shadow: 0 5px 0 #c48e0b; font-size: 2.2rem; }
.compass-copy .eyebrow { margin-bottom: 5px; color: #ffe779; }
.compass-copy h2 { margin: 0; font-size: 1.45rem; line-height: 1.1; }
.compass-copy p:last-child { margin: 7px 0 0; color: #dcefff; font-weight: 700; }
.compass-reason { padding: 11px 13px; color: #e6f5ff; background: rgba(4, 29, 67, .3); border: 1px solid rgba(255,255,255,.24); border-radius: 14px; font-size: .82rem; line-height: 1.35; }
.compass-actions { display: grid; gap: 8px; min-width: 180px; }
.compass-actions .primary-button { min-height: 46px; padding: 10px 14px; font-size: .83rem; }
.compass-secondary { min-height: 40px; color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.7); border-radius: 13px; font-weight: 900; }
.compass-secondary:hover { background: rgba(255,255,255,.12); }

.confidence-card { display: grid; grid-template-columns: 1.1fr minmax(260px, .9fr); gap: 18px 32px; align-items: center; margin: 0 0 50px; padding: clamp(22px, 3vw, 32px); background: linear-gradient(135deg, #fff 0 68%, #fff7d3 100%); border: 3px solid #f3cf55; border-radius: 28px; box-shadow: 0 12px 0 #f1df9c, 0 18px 34px rgba(88, 70, 12, .1); }
.confidence-heading h2 { margin: 0; color: #173d73; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1; }
.confidence-heading > p:last-child { max-width: 590px; margin: 10px 0 0; color: #526982; font-weight: 650; }
.confidence-skill { display: flex; grid-column: 1; align-items: center; gap: 15px; padding: 15px; background: #eef8ff; border: 2px solid #b9dced; border-radius: 19px; }
.confidence-skill > span { display: grid; flex: 0 0 auto; place-items: center; width: 58px; height: 58px; background: #fff; border-radius: 17px; box-shadow: 0 4px 0 #bfdcec; font-size: 1.9rem; }
.confidence-skill small, .confidence-skill strong { display: block; }
.confidence-skill small { color: #3978a7; font-size: .7rem; font-weight: 1000; letter-spacing: .08em; }
.confidence-skill strong { margin-top: 4px; color: #173d73; line-height: 1.25; }
.confidence-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; grid-column: 2; grid-row: 1 / span 2; }
.confidence-proof span { min-height: 90px; padding: 14px 9px; text-align: center; background: #173d73; border: 2px solid #2e6198; border-radius: 17px; box-shadow: 0 5px 0 #0d2b57; }
.confidence-proof b, .confidence-proof small { display: block; }
.confidence-proof b { color: #ffe36b; font-size: 1.08rem; }
.confidence-proof small { margin-top: 5px; color: #d8ecff; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.confidence-use { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-column: 1 / -1; align-items: center; gap: 12px; padding: 13px 15px; color: #173d73; background: #fffaf0; border: 2px dashed #e6ba37; border-radius: 16px; }
.confidence-use small { color: #8a6811; font-size: .7rem; font-weight: 1000; letter-spacing: .09em; }
.confidence-use p { margin: 0; font-size: 1.06rem; font-weight: 900; }
.confidence-use .compass-secondary { min-width: 104px; min-height: 38px; color: #173d73; border-color: #8ab8d8; }
.confidence-use .compass-secondary:hover { background: #e9f6ff; }

.adventure-map { margin: 0 0 54px; padding: clamp(22px, 3vw, 34px); color: #fff; background: radial-gradient(circle at 10% 8%, rgba(255,222,78,.26), transparent 24%), linear-gradient(130deg, #102d66, #0d5e8d 63%, #147d92); border: 3px solid #aee5ed; border-radius: 30px; box-shadow: 0 15px 0 #9ccfd9, 0 22px 40px rgba(7, 48, 78, .17); }
.adventure-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.adventure-map .eyebrow { color: #ffe86d; }
.adventure-map h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; }
.adventure-map-heading > p { max-width: 285px; margin: 0; color: #d8f4ff; font-weight: 750; text-align: right; }
.adventure-map-path { position: relative; display: grid; grid-template-columns: repeat(12, minmax(62px, 1fr)); gap: 8px; margin: 31px 0 22px; padding-top: 11px; overflow-x: auto; }
.adventure-map-path::before { position: absolute; top: 40px; left: 4%; right: 4%; height: 6px; background: rgba(255,255,255,.35); border-radius: 20px; content: ""; }
.adventure-stop { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; min-width: 62px; padding: 0; color: #d9f1fc; background: transparent; border: 0; font-weight: 900; }
.adventure-stop > span { display: grid; place-items: center; width: 52px; height: 52px; color: #173d73; background: #ecf9ff; border: 3px solid #b5e6ef; border-radius: 50%; box-shadow: 0 4px 0 #78aebe; font-size: 1.35rem; }
.adventure-stop b { display: none; }
.adventure-stop small { min-height: 30px; font-size: .65rem; line-height: 1.1; }
.adventure-stop.is-active > span { background: #ffe66d; border-color: #fff5bd; box-shadow: 0 5px 0 #c99810; transform: translateY(-7px); }
.adventure-stop.is-active small { color: #ffe978; }
.adventure-stop.is-complete > span { color: #fff; background: #47a84a; border-color: #b8f195; box-shadow: 0 4px 0 #22732b; }
.adventure-stop:hover > span { transform: translateY(-4px) scale(1.04); }
.adventure-map-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.3); color: #d9f1fc; font-size: .86rem; font-weight: 700; }
.adventure-map-footer .compass-secondary { min-width: 182px; min-height: 43px; }

.smart-review-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 20px; align-items: center; margin: -22px 0 48px; padding: 20px 24px; background: linear-gradient(120deg, #fff 0 66%, #eef8ff 100%); border: 3px solid #9cc9e9; border-radius: 25px; box-shadow: 0 10px 0 #d0e5f4, 0 18px 34px rgba(15, 53, 95, .09); }
.smart-review-icon { display: grid; place-items: center; width: 62px; height: 62px; background: linear-gradient(145deg, #f9d84d, #f0a821); border: 3px solid #fff5b8; border-radius: 19px; box-shadow: 0 6px 0 #c88614; font-size: 1.9rem; }
.smart-review-copy .eyebrow { margin-bottom: 3px; color: #2a75ad; }
.smart-review-copy h2 { margin: 0; color: var(--navy); font-size: 1.55rem; }
.smart-review-copy > p:last-child { margin: 5px 0 0; color: var(--muted); font-weight: 700; }
.review-metrics { display: flex; gap: 8px; }
.review-metrics span { min-width: 66px; padding: 9px 8px; text-align: center; background: #f2f8fd; border: 2px solid #d0e4f2; border-radius: 14px; }
.review-metrics b, .review-metrics small { display: block; }
.review-metrics b { color: #154c83; font-size: 1.2rem; }
.review-metrics small { color: #718198; font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.review-start { min-height: 50px; padding: 12px 18px; color: #fff; background: #246faa; border: 0; border-radius: 15px; box-shadow: 0 5px 0 #124b7c; font-weight: 1000; }

.year-journey { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 22px; margin: 34px 0 60px; padding: clamp(22px, 4vw, 38px); color: #fff; background: radial-gradient(circle at 8% 15%, rgba(255,220,76,.19), transparent 26%), linear-gradient(128deg, #071f4d, #0d4f91 62%, #167aad); border: 3px solid #fff; border-radius: 32px; box-shadow: 0 16px 40px rgba(7,42,85,.22); }
.year-journey .eyebrow { color: #ffdc4c; }
.year-journey h2 { margin: 3px 0 10px; font-size: clamp(1.9rem, 3.7vw, 3.1rem); line-height: 1; }
.year-journey-copy > p:not(.eyebrow) { max-width: 680px; margin: 0; color: #d9ecff; line-height: 1.55; }
.year-progress-track { height: 14px; margin: 25px 0 9px; overflow: hidden; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.42); border-radius: 999px; }
.year-progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #ffcf32, #71d74b); border-radius: inherit; transition: width .35s ease; }
.year-journey-copy > strong { color: #fff3a8; font-size: .9rem; }
.weekly-challenge-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 21px; color: var(--ink); background: linear-gradient(145deg, #fff9cf, #fff); border: 3px solid #ffdb4a; border-radius: 25px; box-shadow: 0 9px 0 #e2ac24; }
.weekly-icon { display: grid; place-items: center; width: 66px; height: 66px; background: #fff0a0; border-radius: 20px; font-size: 2.2rem; }
.weekly-challenge-card small { color: #a66d00; font-size: .68rem; font-weight: 1000; letter-spacing: .11em; }
.weekly-challenge-card h3 { margin: 3px 0 4px; color: #133d76; font-size: 1.35rem; }
.weekly-challenge-card p { margin: 0; color: #6c7180; font-size: .82rem; line-height: 1.35; }
.weekly-challenge-card .primary-button { grid-column: 1 / -1; width: 100%; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3.2vw, 2.65rem); line-height: 1; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); text-align: right; font-weight: 650; }
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.unit-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; min-height: 125px; padding: 18px; text-align: left; color: var(--ink); background: #fff; border: 3px solid #d8e7f5; border-radius: 24px; box-shadow: 0 9px 0 #c7d9e9, 0 17px 30px rgba(30, 66, 104, .08); transition: transform .16s ease, border-color .16s ease; }
.unit-card:hover, .unit-card.is-selected { transform: translateY(-4px); border-color: var(--unit-color, #4fa9d8); }
.unit-card.is-selected { box-shadow: 0 9px 0 color-mix(in srgb, var(--unit-color, #4fa9d8) 45%, #9fb9d0), 0 18px 34px rgba(30, 66, 104, .13); }
.unit-number { display: grid; place-items: center; width: 56px; height: 56px; color: #fff; background: var(--unit-color, #2878bc); border-radius: 18px; font-size: 1.45rem; box-shadow: inset 0 -5px rgba(0,0,0,.1); }
.unit-copy small, .unit-copy strong, .unit-copy em { display: block; }
.unit-copy small { color: #7a889d; font-size: .69rem; font-weight: 1000; letter-spacing: .1em; }
.unit-copy strong { margin: 3px 0; color: #163d76; font-size: 1.04rem; }
.unit-copy em { color: #758298; font-size: .76rem; font-style: normal; }
.unit-copy .world-mastery { margin-top: 6px; color: var(--unit-color, #2878bc); font-size: .72rem; font-weight: 900; }
.unit-arrow { color: var(--unit-color, #2878bc); font-size: 1.6rem; font-weight: 1000; }
.unit-progress { position: absolute; left: 18px; right: 18px; bottom: 9px; height: 5px; overflow: hidden; background: #e8eff6; border-radius: 99px; }
.unit-progress i { display: block; height: 100%; background: var(--unit-color, #2878bc); border-radius: inherit; }
.world-section { position: relative; }
.world-section .unit-card { scroll-margin-block-end: 110px; }
.mission-picker-help { margin: 30px 0 10px; color: var(--navy); font-weight: 700; }
.mission-path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; padding: 14px; background: #eaf4fc; border: 2px solid #c9dfef; border-radius: 20px; }
.mission-step { min-width: 0; padding: 14px 8px; text-align: center; color: #526880; background: #fff; border: 2px solid #d5e4ef; border-radius: 14px; transition: transform .15s, border-color .15s; }
.mission-step:hover { transform: translateY(-3px); border-color: #2978b6; }
.mission-step span, .mission-step b, .mission-step small { display: block; }
.mission-step span { font-size: 1.25rem; }
.mission-step b { margin: 5px 0; color: #234e7c; font-size: .9rem; }
.mission-step small { font-size: .8rem; font-weight: 750; }
.mission-step.is-done { color: #397529; background: #efffea; border-color: #8bcf70; }
.mission-step.is-current { color: #764e00; background: #fff7c9; border-color: #f4c939; box-shadow: 0 4px 0 #d9a922; }
.mission-preview { display: flex; gap: 20px; align-items: center; margin: 18px 0; padding: 22px; background: #fff; border: 2px solid #b9d4ec; border-radius: 20px; }
.mission-preview > span { font-size: 2.5rem; }
.mission-preview small { font-size: .875rem; font-weight: 800; color: #416186; }
.mission-preview h3 { margin: 4px 0; color: var(--navy); font-size: 1.3rem; }
.mission-preview p { margin: 0; }
.authored-instruction { margin: 0 0 25px; color: #47617e; font-size: 1rem; }
.authored-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.conversation-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.conversation-route { display: grid; gap: 15px; padding: 28px 20px; color: var(--navy); background: #eaf5ff; border: 3px solid #8bbce4; border-radius: 24px; box-shadow: 0 6px 0 #c2dcee; text-align: left; }
.conversation-route:hover { border-color: #246fa9; background: #d9edff; }
.conversation-route > span { font-size: 2rem; }
.conversation-route b { font-size: 1.25rem; }
.conversation-route small { font-size: .875rem; }
.conversation-log { display: grid; gap: 14px; padding: 20px; margin-bottom: 24px; background: #e8f1fa; border-radius: 22px; max-height: 420px; overflow-y: auto; }
.chat-bubble { max-width: 88%; padding: 16px 20px; margin: 0; border-radius: 18px; background: #fff; border: 1px solid #c4d9ed; }
.chat-bubble small, .chat-bubble span { display: block; }
.chat-bubble small { margin-bottom: 5px; font-size: .8rem; font-weight: 800; color: #506b86; }
.chat-bubble.is-you { justify-self: end; color: #fff; background: #154886; border-color: #154886; }
.chat-bubble.is-you small { color: #cbeaff; }
.chat-repair { padding: 15px; border: 2px solid #dfb941; background: #fff9d3; border-radius: 15px; }
.case-clue { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 22px; margin: 20px 0; color: #fff; background: var(--navy); border-left: 7px solid var(--yellow); border-radius: 16px; }
.case-clue small { grid-column: 1 / -1; color: #ffdf6d; font-size: .875rem; font-weight: 900; }
.case-clue p { margin: 0; font-size: 1.15rem; }
.case-clue button { background: #fff; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.case-person { text-align: left; padding: 20px; background: #fff; border: 3px solid #ccdced; border-radius: 18px; }
.case-person:hover:not(:disabled) { border-color: #d3a61d; background: #fffbe8; }
.case-person strong { display: block; color: var(--navy); font-size: 1.1rem; }
.case-person dl { margin: 15px 0; }
.case-person dl div { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; margin: 9px 0; }
.case-person dt { color: #5a6d81; font-size: .875rem; }
.case-person dd { margin: 0; font-weight: 750; }
.case-person > small { display: block; border-top: 1px solid #cfdfeb; padding-top: 10px; color: #46617f; font-size: .875rem; }
.case-person.is-eliminated { opacity: .6; background: #edf0f3; border-style: dashed; }
.case-person.is-eliminated strong { text-decoration: line-through; }
.case-solution { text-align: left; margin: 20px auto; max-width: 540px; color: #276339; }
.message-brief { margin: 15px 0; padding: 22px; color: #fff; background: #174a93; border-radius: 20px 20px 20px 4px; }
.message-brief small { color: #d4ebff; font-size: .875rem; font-weight: 800; }
.message-brief p { margin: 8px 0 0; font-size: 1.1rem; }
.message-composer { display: grid; gap: 13px; padding: 24px; background: #f1f8ff; border: 2px solid #c4d9ee; border-radius: 24px; }
.message-composer label { color: var(--navy); font-weight: 800; }
.message-composer textarea { width: 100%; min-height: 130px; resize: vertical; padding: 18px; font: inherit; color: var(--ink); background: #fff; border: 2px solid #9ebfda; border-radius: 12px; }
.message-composer textarea:focus-visible { outline: 3px solid #ffc943; outline-offset: 2px; }
.message-composer > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.message-support { padding: 15px; margin: 0; background: #fff3ba; color: #644a02; border-radius: 12px; }
.timeline-slots { padding: 0; list-style: none; display: grid; gap: 10px; }
.timeline-slots li { display: flex; align-items: stretch; gap: 12px; min-height: 64px; }
.timeline-slots li > span { display: grid; place-items: center; flex: 0 0 42px; font-weight: 900; color: #fff; background: var(--navy); border-radius: 12px; }
.timeline-slots li > p { flex: 1; margin: 0; padding: 16px; border: 2px dashed #bfd4e6; color: #61748a; border-radius: 12px; }
.timeline-slots button { flex: 1; text-align: left; padding: 14px; border: 2px solid #7eb898; border-radius: 12px; color: #204e36; background: #edfcf1; }
.timeline-slots button small { display: block; margin-top: 5px; color: #436956; font-size: .8rem; }
.timeline-bank { display: grid; gap: 10px; padding: 18px; background: #eaf2fc; border-radius: 18px; }
.timeline-bank:empty { display: none; }
.timeline-bank button { padding: 16px; text-align: left; color: var(--navy); background: #fff; border: 2px solid #b4cce6; border-radius: 12px; }
.timeline-bank button:hover { background: #fff4c5; border-color: #e1bd47; }
.timeline-solution { text-align: left; margin: 20px 0; padding-left: 25px; }
.timeline-solution li { margin: 12px 0; }
.planner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.planner-slot { min-width: 0; margin: 0; padding: 18px; background: #f0f7fd; border: 2px solid #c0d8ea; border-radius: 18px; }
.planner-slot legend { padding: 0 8px; color: var(--navy); font-weight: 900; }
.planner-slot > p { min-height: 88px; margin: 5px 0 18px; }
.plan-option { display: block; width: 100%; min-height: 70px; text-align: left; margin-top: 12px; padding: 14px; background: #fff; color: var(--navy); border: 2px solid #c3d5e5; border-radius: 13px; }
.plan-option.is-picked { background: #fff3b3; border-color: #c49414; box-shadow: inset 0 0 0 1px #c49414; }
.plan-solution { display: grid; gap: 12px; margin: 24px 0; text-align: left; }
.plan-solution article { padding: 16px; border: 2px solid #95cba5; border-radius: 14px; background: #f0fff3; }
.plan-solution article > p { margin: 5px 0; color: #235a34; }
.plan-solution small { font-size: .875rem; }
@media (max-width: 760px) {
  .mission-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-grid { grid-template-columns: 1fr; }
  .planner-slot > p { min-height: auto; }
  .conversation-routes { grid-template-columns: 1fr; }
  .case-clue { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .mission-preview { gap: 12px; padding: 18px; }
  .message-composer { padding: 16px; }
  .message-composer > div > button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mission-step { transition: none; }
}
.world-cta { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 12; isolation: isolate; display: flex; justify-content: space-between; align-items: center; gap: 18px; width: min(720px, calc(100% - 24px)); margin: 26px auto 0; padding: 13px 15px 13px 20px; color: #fff; background: linear-gradient(120deg, #0d3977, #166cae); border: 3px solid #fff; border-radius: 22px; box-shadow: 0 13px 32px rgba(9, 47, 95, .27); }
.world-cta > div { min-width: 0; }
.world-cta small, .world-cta strong { display: block; }
.world-cta small { color: #bfe6ff; font-size: .67rem; font-weight: 1000; letter-spacing: .12em; }
.world-cta strong { margin-top: 2px; font-size: 1rem; }
.world-cta .primary-button { min-height: 46px; padding: 10px 18px; white-space: nowrap; }

.learn-section { margin-top: 64px; padding-top: 8px; }
.learn-progress { display: flex; align-items: center; gap: 12px; width: fit-content; margin: -5px 0 20px; padding: 10px 16px; color: #174477; background: #fff; border: 2px solid #cde0ef; border-radius: 17px; box-shadow: 0 6px 0 #bfd3e4; }
.learn-progress > span { font-size: 1.7rem; }
.learn-progress small, .learn-progress strong { display: block; }
.learn-progress small { color: #718098; font-size: .66rem; font-weight: 1000; letter-spacing: .1em; }
.learn-progress strong { margin-top: 1px; font-size: .88rem; }
.study-card { overflow: hidden; }
.study-card::before { content: "STUDY"; position: absolute; top: 0; right: 0; padding: 5px 10px 6px 12px; color: #fff; background: var(--unit-color, #2878bc); border-radius: 0 19px 0 14px; font-size: .59rem; font-weight: 1000; letter-spacing: .1em; }
.study-card .unit-arrow { font-size: 1.35rem; }
.study-card.is-studied { border-color: #6fba56; background: linear-gradient(145deg, #fff 0%, #f2ffed 100%); box-shadow: 0 9px 0 #afd5a3, 0 17px 30px rgba(30, 90, 50, .08); }
.study-card.is-studied::before { content: "READY ✓"; background: #4d9d3b; }
.study-card .world-mastery { color: #47789e; }
.study-card.is-studied .world-mastery { color: #33812f; }

.badge-section { position: relative; overflow: hidden; margin-top: 52px; padding: clamp(24px, 4vw, 42px); color: #fff; background: radial-gradient(circle at 92% 14%, rgba(47, 157, 220, .35), transparent 30%), linear-gradient(135deg, #061e46 0%, #0b326c 56%, #12558f 100%); border: 3px solid rgba(255,255,255,.18); border-radius: 32px; box-shadow: 0 18px 42px rgba(7, 37, 81, .24), inset 0 1px rgba(255,255,255,.16); }
.badge-section::before { content: "★"; position: absolute; right: 28px; bottom: -76px; color: rgba(255,255,255,.055); font-size: 250px; line-height: 1; transform: rotate(12deg); pointer-events: none; }
.badge-section > * { position: relative; z-index: 1; }
.badge-section .eyebrow { color: #ffdc4c; }
.badge-section .section-heading h2 { color: #fff; }
.badge-section .section-heading > p { color: #d7ebff; }
.badge-shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.badge { min-height: 150px; padding: 18px 12px; text-align: center; background: rgba(255,255,255,.09); border: 2px solid rgba(205, 231, 251, .25); border-radius: 22px; box-shadow: inset 0 1px rgba(255,255,255,.08); }
.badge span { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 9px; color: #d7e8f6; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.1); border-radius: 50%; filter: grayscale(1); opacity: .58; font-size: 2.1rem; }
.badge b, .badge small { display: block; }
.badge b { color: #fff; font-size: .85rem; }
.badge small { margin-top: 4px; color: #bed7eb; font-size: .68rem; }
.badge.is-earned { background: linear-gradient(145deg, #fff 0%, #fff7cf 100%); border-color: #f2cc3e; box-shadow: 0 8px 0 #e9bb2e; }
.badge.is-earned span { background: #fff0a0; filter: none; opacity: 1; }
.badge.is-earned b { color: #1e467b; }
.badge.is-earned small { color: #7e6a31; }
.badge-section .reset-progress { color: #cfe6ff; }
.passport-section::before { content: "✈"; }
.passport-section .badge-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.passport-section .badge { min-height: 174px; padding: 16px; text-align: left; }
.passport-section .passport-head { display: flex; align-items: center; gap: 11px; }
.passport-section .passport-head > span { flex: 0 0 auto; width: 48px; height: 48px; margin: 0; font-size: 1.55rem; }
.passport-section .passport-head b { font-size: .92rem; }
.passport-section .passport-head small { margin-top: 2px; }
.passport-seals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 14px; }
.passport-seal { display: grid; place-items: center; min-width: 0; aspect-ratio: 1; color: #9cb5cc; background: rgba(255,255,255,.09); border: 2px dashed rgba(214,235,251,.28); border-radius: 50%; font-size: 1rem; filter: grayscale(1); opacity: .62; }
.passport-seal.is-earned { color: #184475; background: #ffe680; border: 2px solid #fff5be; filter: none; opacity: 1; box-shadow: 0 3px 0 #d2a828; }
.passport-next { display: block; margin-top: 11px; color: #d7ebff; font-size: .7rem; font-weight: 850; }
.badge.is-earned .passport-next { color: #6e6338; }
.passport-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.passport-action, .passport-actions .reset-progress { min-height: 43px; padding: 10px 14px; border: 2px solid rgba(255,255,255,.4); border-radius: 13px; font-size: .78rem; font-weight: 900; }
.passport-action { color: #123f72; background: #fff; cursor: pointer; }
.passport-action input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.passport-actions .reset-progress { margin: 0 0 0 auto; background: transparent; }

.game-screen { min-height: calc(100vh - 82px); }
.quest-status { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.quest-status h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.text-button { padding: 0; color: #386ca1; background: transparent; border: 0; font-weight: 900; }
.session-target { display: grid; grid-template-columns: minmax(130px, 260px) auto; align-items: center; gap: 6px 12px; min-width: 300px; }
.session-target > span { overflow: hidden; height: 13px; background: #d5e3f0; border: 2px solid #fff; border-radius: 99px; box-shadow: 0 2px 5px rgba(10,45,80,.1); }
.session-target i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #5aba3b, #ffcb35); border-radius: inherit; transition: width .3s linear; }
.session-target b { grid-row: span 2; color: var(--navy); font-size: 1.35rem; }
.session-target small { color: #6d7b90; font-weight: 800; }
.stage-rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 19px 0; }
.stage-pill { position: relative; min-height: 64px; padding: 9px 5px; color: #718098; background: #fff; border: 2px solid #d9e5f0; border-radius: 16px; font-size: .7rem; font-weight: 900; }
.stage-pill span { display: block; margin-bottom: 2px; font-size: 1.25rem; }
.stage-pill.is-active { color: #fff; background: #1c65aa; border-color: #1c65aa; box-shadow: 0 6px 0 #0f4581; transform: translateY(-3px); }
.stage-pill.is-done { color: #235d28; background: #dff7d5; border-color: #77c35d; }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.activity-card { min-height: 500px; padding: clamp(24px, 4vw, 48px); background: #fff; border: 4px solid #d4e4f1; border-radius: 30px; box-shadow: var(--shadow); }
.activity-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 26px; }
.activity-head small { color: #4e77a2; font-weight: 1000; letter-spacing: .12em; }
.activity-head progress { width: min(250px, 40vw); height: 12px; accent-color: var(--green); }
.question-kicker { margin: 0 0 7px; color: #ef7b26; font-weight: 1000; letter-spacing: .08em; }
.question-title { max-width: 820px; margin: 0 0 26px; color: #123a73; font-size: clamp(1.55rem, 3.3vw, 2.8rem); line-height: 1.14; }
.listen-button { display: inline-flex; align-items: center; gap: 9px; min-height: 58px; margin: -6px 0 22px; padding: 11px 22px; color: #fff; background: #1e79ba; border: 0; border-radius: 18px; box-shadow: 0 6px 0 #12558a; font-weight: 1000; }
.audio-actions { display: flex; flex-wrap: wrap; gap: 11px; margin: -6px 0 24px; }
.audio-actions .listen-button { margin: 0; }
.listen-button.slow { color: #244b72; background: #e8f4ff; border: 2px solid #8fbfe1; box-shadow: 0 5px 0 #bad6e9; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.choice-button { min-height: 76px; padding: 15px; color: #173d73; background: #f5faff; border: 3px solid #cfe1f1; border-radius: 19px; box-shadow: 0 5px 0 #c3d6e6; font-weight: 900; font-size: 1rem; }
.choice-button:hover:not(:disabled) { color: #0d6332; background: #efffe9; border-color: #79bf5b; transform: translateY(-2px); }
.choice-button.is-wrong { color: #922f2f; background: #fff0f0; border-color: #ec7070; }
.choice-button.is-correct { color: #1d672a; background: #e7ffdf; border-color: #63b44b; }
.feedback { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 25px; padding: 17px 19px; border-radius: 18px; }
.feedback.correct { color: #22682e; background: #e6fadc; border: 2px solid #80c768; }
.feedback.wrong { color: #873434; background: #fff0f0; border: 2px solid #e98787; }
.feedback b, .feedback small { display: block; }
.feedback small { margin-top: 4px; }
.continue-button { min-height: 46px; padding: 10px 18px; color: #fff; background: #318e43; border: 0; border-radius: 14px; box-shadow: 0 5px 0 #1f682d; font-weight: 1000; white-space: nowrap; }

.power-panel { display: grid; gap: 13px; }
.power-panel > div { padding: 20px; background: #fff; border: 3px solid #d7e4ef; border-radius: 23px; box-shadow: 0 8px 20px rgba(20, 55, 92, .08); }
.power-panel small, .power-panel strong, .power-panel span { display: block; }
.power-panel small { color: #718098; font-size: .7rem; font-weight: 1000; letter-spacing: .12em; }
.combo-card strong { margin: 5px 0; color: #f47d2a; font-size: 2.5rem; }
.combo-card span, .quest-score span { color: #778497; font-size: .76rem; }
.quest-score strong { margin: 5px 0; color: #1f64a2; font-size: 2.35rem; }
.mini-rewards p { display: flex; align-items: center; gap: 9px; margin: 0; padding: 9px 0; border-bottom: 1px solid #e8eef4; }
.mini-rewards p:last-child { border: 0; }
.mini-rewards span { font-size: 1.35rem; }
.mini-rewards b { color: #3d5879; font-size: .75rem; }

.match-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.match-card { min-height: 78px; padding: 12px 8px; color: #174477; background: #f7fbff; border: 3px solid #cfe0ef; border-radius: 17px; font-weight: 900; box-shadow: 0 5px 0 #c1d4e5; }
.match-card.is-selected { color: #fff; background: #2878bd; border-color: #165894; }
.match-card.is-matched { visibility: hidden; pointer-events: none; }
.match-card.is-shake { animation: shake .28s linear 2; }
@keyframes shake { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

.word-clue { margin-bottom: 20px; padding: 18px; color: #244b7a; background: #eff7ff; border: 2px solid #c6def1; border-radius: 18px; text-align: center; font-size: 1.2rem; font-weight: 900; }
.word-answer { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; min-height: 65px; margin: 14px 0 22px; }
.answer-slot { display: grid; place-items: center; min-width: 62px; min-height: 52px; padding: 6px 10px; color: #133e74; background: #fff; border: 0; border-bottom: 4px solid #4c82b5; font-size: 1rem; font-weight: 1000; }
.letter-bank { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.letter-button { min-width: 64px; min-height: 50px; padding: 8px 13px; color: #fff; background: #2874b7; border: 0; border-radius: 13px; box-shadow: 0 5px 0 #15528a; font-size: 1rem; font-weight: 1000; }
.letter-button:disabled { opacity: .23; box-shadow: none; }
.word-tools { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.word-tools button { padding: 10px 16px; color: #365777; background: #eef5fb; border: 2px solid #cbddea; border-radius: 13px; font-weight: 900; }

.gap-sentence { display: grid; place-items: center; min-height: 150px; margin: 14px 0 28px; padding: clamp(20px, 4vw, 38px); color: #123f77; background: linear-gradient(145deg, #f5faff, #e7f3ff); border: 4px solid #c7e0f3; border-radius: 26px; text-align: center; font-size: clamp(1.55rem, 4.4vw, 3rem); font-weight: 1000; }
.gap-blank { display: inline-block; min-width: 90px; padding: 0 10px 4px; color: #de7125; border-bottom: 5px solid #ef8a32; letter-spacing: .08em; }
.dialogue-scene { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; min-height: 125px; margin: 10px 0 25px; padding: 22px; color: #123f77; background: linear-gradient(145deg, #f4fbff, #e6f3ff); border: 3px solid #bfdbef; border-radius: 26px; box-shadow: inset 0 -5px rgba(25, 85, 135, .06); }
.dialogue-scene > span { font-size: 2.7rem; }
.dialogue-scene strong { font-size: clamp(1.15rem, 2.7vw, 1.7rem); line-height: 1.28; }
.dialogue-scene button { width: 48px; height: 48px; color: #fff; background: #2478b8; border: 0; border-radius: 15px; box-shadow: 0 5px 0 #155587; font-size: 1.25rem; }
.dialogue-choices .choice-button { min-height: 88px; text-align: left; }

.detective-steps { display: grid; grid-template-columns: auto minmax(30px, 1fr) auto; gap: 10px; align-items: center; max-width: 520px; margin: 6px auto 24px; color: #8291a3; font-size: .72rem; font-weight: 1000; letter-spacing: .08em; }
.detective-steps i { height: 4px; background: #d6e4ef; border-radius: 99px; }
.detective-steps span { padding: 7px 11px; background: #f1f6fa; border-radius: 99px; }
.detective-steps .is-active { color: #fff; background: #e36c2c; box-shadow: 0 4px 0 #a94718; }
.detective-steps .is-done { color: #2d7627; background: #e1f5da; }
.case-heading { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin: 0 0 20px; padding: 15px 18px; text-align: left; background: #f2f8fd; border: 2px solid #d0e3f1; border-radius: 18px; }
.case-heading > span { display: grid; place-items: center; width: 50px; height: 50px; background: #fff; border: 2px solid #c6dbea; border-radius: 15px; font-size: 1.55rem; }
.case-heading small, .case-heading strong { display: block; }
.case-heading small { margin-bottom: 3px; color: #e16b27; font-size: .68rem; font-weight: 1000; letter-spacing: .09em; }
.case-heading strong { color: #173f72; }
.evidence-card { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; min-height: 160px; margin: 15px 0 20px; padding: clamp(22px, 5vw, 40px); background: linear-gradient(145deg, #fff9ef, #fff1e4); border: 4px solid #f0b97f; border-radius: 27px; box-shadow: inset 0 -6px rgba(167, 76, 17, .06); }
.evidence-token { min-height: 45px; padding: 8px 10px; color: #173f72; background: #fff; border: 2px solid #d9b792; border-radius: 11px; box-shadow: 0 3px 0 #c99765; font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 900; }
.evidence-token:hover:not(:disabled), .evidence-token:focus-visible { border-color: #e3742e; transform: translateY(-2px); }
.evidence-token.is-suspect { color: #fff; background: #e15b3c; border-color: #a92f23; box-shadow: 0 3px 0 #8d2c22; }
.evidence-token.is-cleared { color: #687b8e; background: #edf3f7; border-color: #cedbe5; box-shadow: none; text-decoration: line-through; }
.evidence-break { flex-basis: 100%; height: 0; }
.detective-tools { display: flex; justify-content: center; margin-bottom: 14px; }
.detective-hint { min-height: 46px; padding: 10px 16px; color: #765800; background: #fff6c9; border: 2px solid #e4c858; border-radius: 14px; font-weight: 900; }
.detective-nudge { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 14px; padding: 13px; color: #345d7e; background: #edf6fd; border-radius: 14px; }
.detective-nudge b, .detective-nudge span { display: block; }
.detective-nudge.correct { color: #296426; background: #e5f7df; }
.detective-nudge.wrong { color: #8c3e32; background: #fff0ed; }
.suspect-message { margin: 12px 0 22px; padding: 20px; text-align: left; background: #fff3ef; border: 3px solid #eaa08d; border-left-width: 9px; border-radius: 19px; }
.suspect-message small { color: #a33a2b; font-weight: 1000; letter-spacing: .08em; }
.suspect-message p { margin: 8px 0 0; color: #6e3029; white-space: pre-line; font-size: 1.15rem; font-weight: 850; }
.detective-choices .choice-button { min-height: 84px; text-align: left; white-space: pre-line; }
.case-result { margin-top: 18px; padding: 20px; background: #eef9e9; border: 3px solid #78bd61; border-radius: 22px; }
.case-result.wrong { background: #fff4eb; border-color: #edaa74; }
.case-result-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #285f28; }
.case-result-title > span { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: #4b9d3d; border-radius: 11px; font-weight: 1000; }
.case-result-title b { font-size: 1.1rem; }
.case-result-title em { margin-left: auto; padding: 5px 9px; color: #356a87; background: #fff; border-radius: 99px; font-size: .7rem; font-style: normal; font-weight: 900; text-transform: uppercase; }
.case-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 17px 0; }
.case-comparison p { margin: 0; padding: 14px; text-align: left; background: rgba(255,255,255,.75); border-radius: 14px; }
.case-comparison small, .case-comparison span { display: block; }
.case-comparison small { margin-bottom: 7px; color: #8f473c; font-size: .65rem; font-weight: 1000; letter-spacing: .08em; }
.case-comparison p:last-child small { color: #34722c; }
.case-comparison span { color: #173f72; white-space: pre-line; font-weight: 850; }
.case-explanation { color: #435e75; font-weight: 750; }
.case-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 16px; }

.sort-token { display: grid; place-items: center; min-height: 160px; margin: 20px 0 28px; padding: 24px; color: #163f76; background: linear-gradient(145deg, #f2f9ff, #e2f1ff); border: 4px solid #bee0f7; border-radius: 26px; font-size: clamp(2rem, 7vw, 4.5rem); font-weight: 1000; text-align: center; }
.sort-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.sort-actions button { min-height: 70px; color: #fff; border: 0; border-radius: 20px; font-size: 1.13rem; font-weight: 1000; }
.sort-actions button:first-child { background: #df4141; box-shadow: 0 7px 0 #a62929; }
.sort-actions button:last-child { background: #2675b9; box-shadow: 0 7px 0 #145188; }

.story-briefing { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 20px; }
.story-briefing .question-title { margin-bottom: 8px; }
.story-briefing-icon { display: grid; place-items: center; width: 88px; height: 88px; background: linear-gradient(145deg, #ffe366, #f3a921); border: 4px solid #fff4a8; border-radius: 26px; box-shadow: 0 8px 0 #c77e13; font-size: 2.8rem; }
.story-setting { margin: 0; color: #5b7189; font-weight: 800; }
.story-mission { display: grid; gap: 5px; margin: 20px 0; padding: 18px 20px; color: #143e73; background: linear-gradient(120deg, #fff9d9, #fff2a9); border: 3px solid #ebca50; border-radius: 20px; }
.story-mission small { color: #9a6512; font-size: .68rem; font-weight: 1000; letter-spacing: .12em; }
.story-mission strong { font-size: 1.05rem; }
.story-route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.story-route li { position: relative; min-height: 112px; padding: 17px 14px 14px 58px; background: #f4f9fd; border: 2px solid #d0e3f1; border-radius: 18px; }
.story-route li > span { position: absolute; left: 14px; top: 16px; display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: #2676b7; border-radius: 10px; box-shadow: 0 4px 0 #155084; font-weight: 1000; }
.story-route b, .story-route small { display: block; }
.story-route b { color: #173f73; }
.story-route small { margin-top: 4px; color: #6b7d91; line-height: 1.3; }
.story-start-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 22px; }
.story-start-row p { max-width: 570px; margin: 0; color: #5f7187; font-weight: 750; }
.story-start-row .primary-button { flex: 0 0 auto; }

.story-player { overflow: hidden; color: #fff; background: linear-gradient(145deg, #0c3978, #176aaa 62%, #168db8); border: 4px solid #76b9df; border-radius: 27px; box-shadow: inset 0 -8px rgba(4, 38, 83, .18), 0 13px 30px rgba(11, 57, 110, .18); }
.story-player-top { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: 22px 24px 12px; }
.story-speaker-avatar { display: grid; place-items: center; width: 58px; height: 58px; color: #0d4a84; background: #fff; border: 3px solid #bce7ff; border-radius: 18px; box-shadow: 0 5px 0 rgba(3, 37, 79, .28); font-size: 1.5rem; font-weight: 1000; }
.story-player-top small { color: #ffe36a; font-size: .68rem; font-weight: 1000; letter-spacing: .1em; }
.story-player-top h2 { margin: 2px 0; font-size: clamp(1.25rem, 2.8vw, 1.8rem); }
.story-player-top p { margin: 0; color: #d9f2ff; font-size: .82rem; font-weight: 700; }
.story-playing-badge { padding: 7px 11px; color: #174779; background: #fff; border-radius: 99px; font-size: .7rem; font-weight: 1000; }
.story-soundscape { display: flex; justify-content: center; align-items: center; gap: 7px; height: 62px; margin: 3px 24px 8px; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.18); border-radius: 17px; }
.story-soundscape i { width: 8px; height: 15px; background: #77d7f5; border-radius: 99px; transform-origin: center; }
.story-soundscape i:nth-child(2), .story-soundscape i:nth-child(6) { height: 29px; }
.story-soundscape i:nth-child(3), .story-soundscape i:nth-child(5) { height: 40px; }
.story-soundscape i:nth-child(4) { height: 51px; background: #ffdf58; }
.activity-card.is-story-playing .story-soundscape i { animation: story-wave .8s ease-in-out infinite alternate; }
.activity-card.is-story-playing .story-soundscape i:nth-child(2) { animation-delay: -.25s; }
.activity-card.is-story-playing .story-soundscape i:nth-child(3) { animation-delay: -.45s; }
.activity-card.is-story-playing .story-soundscape i:nth-child(5) { animation-delay: -.6s; }
.activity-card.is-story-playing .story-soundscape i:nth-child(6) { animation-delay: -.35s; }
@keyframes story-wave { to { transform: scaleY(.38); opacity: .66; } }
.story-listen-instruction { margin: 0 24px 16px; color: #e5f6ff; text-align: center; font-weight: 800; }
.story-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; padding: 0 20px 21px; }
.story-control { min-height: 48px; padding: 10px 14px; color: #174878; background: #eef8ff; border: 2px solid #b8dcf1; border-radius: 14px; box-shadow: 0 4px 0 rgba(2, 34, 75, .3); font-weight: 900; }
.story-control.primary { color: #173a67; background: linear-gradient(#ffe66d, #ffca30); border-color: #ffe98b; box-shadow: 0 5px 0 #b8730c; }
.story-control:disabled { opacity: .45; cursor: default; box-shadow: none; }
.story-scene-track { display: flex; gap: 6px; padding: 13px 18px 17px; background: rgba(2, 31, 70, .25); }
.story-scene-track > button { flex: 1; min-width: 0; padding: 4px; color: #c5dff0; text-align: center; background: transparent; border: 0; border-radius: 12px; }
.story-scene-track > button:hover { background: rgba(255,255,255,.1); }
.story-scene-track i { display: grid; place-items: center; width: 29px; height: 29px; margin: 0 auto 4px; color: #3f6d94; background: #dceaf3; border-radius: 50%; font-style: normal; font-size: .72rem; font-weight: 1000; }
.story-scene-track small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .61rem; font-weight: 850; }
.story-scene-track .is-active i { color: #153c68; background: #ffdd51; box-shadow: 0 0 0 3px rgba(255,255,255,.28); }
.story-scene-track .is-done i { color: #fff; background: #5dbd48; }
.story-support-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 16px 0 12px; }
.story-support-bar button { min-height: 44px; padding: 9px 13px; color: #285a86; background: #eef7fd; border: 2px solid #c5ddeb; border-radius: 13px; font-weight: 900; }
.story-support-bar button:disabled { opacity: .42; cursor: default; }
.story-support-bar span { margin-left: auto; color: #718198; font-size: .74rem; font-weight: 750; }
.story-transcript { display: grid; gap: 8px; max-height: 330px; overflow-y: auto; margin: 12px 0 18px; padding: 14px; background: #f4f9fd; border: 2px solid #d0e2ef; border-radius: 18px; }
.story-transcript-line { display: grid; grid-template-columns: 105px 1fr; gap: 3px 14px; padding: 11px 13px; background: #fff; border: 2px solid transparent; border-radius: 13px; }
.story-transcript-line.is-active { border-color: #65afd9; box-shadow: 0 3px 0 #b9d8e9; }
.story-transcript-line b { grid-row: 1 / span 2; color: #1d6399; }
.story-transcript-line p { margin: 0; color: #183f71; font-weight: 800; }
.story-transcript-line small { grid-column: 2; color: #718198; }
.story-ready-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 18px; padding: 17px 19px; background: #eef8ea; border: 2px solid #b9daa9; border-radius: 18px; }
.story-ready-row b, .story-ready-row small { display: block; }
.story-ready-row b { color: #286526; }
.story-ready-row small { margin-top: 3px; color: #62785f; }
.story-ready-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.story-ready-row .primary-button:disabled { opacity: .45; box-shadow: none; cursor: default; }

.story-question-audio { display: grid; grid-template-columns: 1fr auto auto; gap: 9px; align-items: center; margin: 4px 0 18px; padding: 15px; color: #fff; background: linear-gradient(120deg, #0f4d88, #267eb6); border-radius: 19px; }
.story-question-audio > div { display: flex; align-items: center; gap: 11px; }
.story-question-audio > div > span { display: grid; place-items: center; width: 43px; height: 43px; color: #174878; background: #fff; border-radius: 13px; font-weight: 1000; }
.story-question-audio p { margin: 0; }
.story-question-audio small, .story-question-audio b { display: block; }
.story-question-audio small { color: #ffdf65; font-size: .63rem; letter-spacing: .1em; }
.story-question-audio button { min-height: 45px; padding: 9px 12px; color: #174878; background: #fff; border: 0; border-radius: 13px; box-shadow: 0 4px 0 rgba(2,34,75,.3); font-weight: 900; }
.story-question-support { margin-bottom: 18px; padding: 11px 14px; color: #385f82; background: #f1f7fb; border: 2px solid #d1e1ec; border-radius: 14px; }
.story-question-support summary { cursor: pointer; font-weight: 900; }
.story-question-support p { margin: 12px 0 3px; color: #173f73; }
.story-question-support small { color: #708095; }
.story-choice-grid .choice-button { text-align: left; }
.stage-complete > div { width: min(760px, 100%); }
.story-finish-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 13px; margin: 3px 0 24px; text-align: left; }
.story-finish-grid section { padding: 16px; background: #f4f9fd; border: 2px solid #cfdfeb; border-radius: 18px; }
.story-finish-grid section:first-child { background: #fff8d6; border-color: #e9ce6c; }
.story-finish-grid section > small { display: block; margin-bottom: 9px; color: #2e72a5; font-size: .66rem; font-weight: 1000; letter-spacing: .1em; }
.story-finish-grid p { margin: 0; color: #6d5714; }
.story-takeaway { display: grid; grid-template-columns: auto 1fr; gap: 2px 9px; width: 100%; min-height: 48px; padding: 8px 10px; text-align: left; color: #174477; background: #fff; border: 2px solid #c7dce9; border-radius: 12px; }
.story-takeaway + .story-takeaway { margin-top: 7px; }
.story-takeaway span { grid-row: 1 / span 2; align-self: center; }
.story-takeaway b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .76rem; }
.story-takeaway em { color: #748398; font-size: .66rem; font-style: normal; }

.stage-complete { display: grid; place-items: center; min-height: 390px; text-align: center; }
.stage-complete > div > span { font-size: 5rem; }
.stage-complete h2 { margin: 8px 0; color: var(--navy); font-size: 2.35rem; }
.stage-complete > div > p { max-width: 560px; margin: 0 auto 25px; color: var(--muted); font-weight: 700; }
.bonus-lab { text-align: center; }
.bonus-lab .goal-ring { margin: 6px auto 22px; }

.result-screen { display: grid; place-items: center; min-height: calc(100vh - 82px); }
.result-card { position: relative; overflow: hidden; width: min(760px, 100%); padding: clamp(28px, 6vw, 64px); text-align: center; background: #fff; border: 5px solid #ffd24b; border-radius: 36px; box-shadow: 0 22px 0 #e9b72e, 0 42px 70px rgba(15, 52, 92, .22); }
.result-card > img { width: 145px; filter: drop-shadow(0 10px 6px rgba(0,0,0,.13)); }
.result-card h1 { margin: 0; color: #0b3974; font-size: clamp(2.8rem, 7vw, 5.3rem); line-height: 1; }
.result-card > p:not(.eyebrow) { color: #637188; font-weight: 700; }
.result-burst { position: absolute; left: -30px; top: -65px; color: rgba(255,203,39,.2); font-size: 230px; line-height: 1; }
.result-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0; }
.result-numbers span { padding: 14px 8px; background: #eef6ff; border-radius: 17px; }
.result-numbers small, .result-numbers b { display: block; }
.result-numbers small { color: #69809a; font-size: .66rem; font-weight: 1000; letter-spacing: .08em; }
.result-numbers b { margin-top: 3px; color: #174d8a; font-size: 1.25rem; }
.new-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.new-badges span { padding: 8px 13px; color: #704e00; background: #fff3b2; border: 2px solid #f0cc3f; border-radius: 99px; font-weight: 900; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(4, 24, 57, .78); backdrop-filter: blur(7px); }
.chest-modal { overflow: auto; width: min(600px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: clamp(28px, 6vw, 52px); text-align: center; background: #fff; border: 5px solid #ffd244; border-radius: 31px; box-shadow: 0 20px 0 #cb8b19, 0 40px 80px rgba(0,0,0,.36); }
.chest-modal h2 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.chest-modal > p:not(.eyebrow) { color: var(--muted); }
.chest-choices { display: flex; justify-content: center; gap: clamp(10px, 4vw, 24px); margin: 28px 0; }
.chest-choices button { width: clamp(80px, 20vw, 125px); aspect-ratio: 1; color: #fff; background: linear-gradient(145deg, #ef5048, #b5202b); border: 4px solid #ffd05a; border-radius: 24px; box-shadow: 0 9px 0 #7e1722; font-size: clamp(2.8rem, 9vw, 5.2rem); transition: transform .2s ease; }
.chest-choices button:nth-child(2) { background: linear-gradient(145deg, #399bdf, #135ba1); box-shadow: 0 9px 0 #0a3b74; }
.chest-choices button:nth-child(3) { background: linear-gradient(145deg, #ffd85a, #e59413); box-shadow: 0 9px 0 #a56108; }
.chest-choices button:hover { transform: translateY(-7px) rotate(-2deg); }
.chest-choices button.is-open { transform: scale(1.08); }
.chest-choices button:disabled:not(.is-open) { opacity: .26; filter: grayscale(1); }
.chest-reward { margin: 20px 0; padding: 16px; color: #1f622a; background: #e5f9dc; border: 3px solid #77bf5f; border-radius: 18px; font-size: 1.18rem; font-weight: 1000; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; pointer-events: none; opacity: 0; transform: translate(-50%, 18px); padding: 12px 19px; color: #fff; background: #123f77; border: 2px solid #fff; border-radius: 99px; box-shadow: 0 9px 28px rgba(0,0,0,.2); font-weight: 900; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.reset-progress { display: block; margin: 24px auto 0; padding: 9px 12px; color: #64758a; background: transparent; border: 0; text-decoration: underline; font-weight: 750; }
.level-modal { border-color: #77bf5f; box-shadow: 0 20px 0 #3e8c35, 0 40px 80px rgba(0,0,0,.36); }
#levelQuestion { display: grid; gap: 10px; min-height: 58px; }
#levelQuestion small { color: #2672b8; font-size: .72rem; font-weight: 1000; letter-spacing: .08em; }
#levelQuestion strong { color: #123a73; font-size: 1.2rem; }
.level-choices { display: grid; gap: 11px; margin: 24px 0; }
.level-choices > button { min-height: 56px; padding: 12px 18px; color: #173d73; background: #f5faff; border: 3px solid #cfe1f1; border-radius: 17px; box-shadow: 0 5px 0 #c3d6e6; font-weight: 900; }
.level-choices > button:hover { color: #0d6332; background: #efffe9; border-color: #79bf5b; transform: translateY(-2px); }

.study-backdrop { padding: 12px; }
.study-modal { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; width: min(980px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); background: #fff; border: 5px solid #8dc4e8; border-radius: 31px; box-shadow: 0 20px 0 #397db0, 0 40px 80px rgba(0,0,0,.36); }
.study-header { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 24px clamp(22px, 4vw, 40px) 19px; color: #fff; background: linear-gradient(125deg, #0b397d, #176eb2 62%, #2999c3); }
.study-header .eyebrow { color: #ffdf57; }
.study-header h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; }
.study-header p:last-child { margin: 8px 0 0; color: #e4f4ff; font-weight: 700; }
.study-world-icon { display: grid; place-items: center; width: 70px; height: 70px; background: var(--study-color, #2878bc); border: 3px solid rgba(255,255,255,.75); border-radius: 22px; box-shadow: inset 0 -6px rgba(0,0,0,.12); font-size: 2rem; }
.study-close { align-self: start; width: 43px; height: 43px; color: #164678; background: #fff; border: 0; border-radius: 14px; box-shadow: 0 5px 0 rgba(3,31,69,.25); font-size: 1.65rem; font-weight: 1000; line-height: 1; }
.study-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px clamp(16px, 4vw, 38px); background: #eff7ff; border-bottom: 2px solid #d3e4f1; }
.study-tabs button { min-height: 46px; color: #4c6b8d; background: transparent; border: 2px solid transparent; border-radius: 14px; font-weight: 1000; }
.study-tabs button[aria-selected="true"] { color: #fff; background: #1b67a8; border-color: #0e4b83; box-shadow: 0 4px 0 #0d477e; }
.study-panel { overflow-y: auto; padding: clamp(22px, 4vw, 40px); }
.study-panel:focus-visible { outline: 4px solid #ffd13d; outline-offset: -5px; }
.study-panel h3 { margin: 0 0 15px; color: #123d76; font-size: clamp(1.35rem, 2.8vw, 1.85rem); }
.study-panel h4 { margin: 0 0 6px; color: #17487e; font-size: 1.03rem; }
.study-panel p { color: #53677f; }
.study-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr); gap: 18px; margin-bottom: 28px; }
.study-focus, .study-goals { padding: 20px; border-radius: 22px; }
.study-focus { color: #fff; background: linear-gradient(135deg, #1766a7, #238fc0); }
.study-focus small { color: #ffe46f; font-size: .7rem; font-weight: 1000; letter-spacing: .1em; }
.study-focus h3 { margin: 5px 0 8px; color: #fff; }
.study-focus p { margin: 0; color: #e9f7ff; font-weight: 700; }
.study-goals { background: #f1f9ff; border: 2px solid #c7e1f3; }
.study-goals h3 { font-size: 1.05rem; }
.study-goals ul { margin: 0; padding-left: 20px; color: #49617b; }
.study-goals li + li { margin-top: 6px; }
.study-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.study-point { padding: 18px; background: #f9fcff; border: 2px solid #d6e6f2; border-radius: 19px; }
.study-point > p { margin: 0 0 11px; }
.study-example { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-top: 8px; padding: 10px 12px; color: #164477; background: #eaf5ff; border-radius: 13px; }
.study-example b, .study-example small { display: block; }
.study-example small { color: #647a91; }
.study-example button, .phrase-audio { width: 40px; height: 40px; color: #fff; background: #2679b8; border: 0; border-radius: 12px; box-shadow: 0 4px 0 #145486; font-size: 1rem; }
.study-example .phrase-audio { grid-row: span 2; }
.study-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.study-note { padding: 18px; background: #fff8d8; border: 2px solid #eed36d; border-radius: 19px; }
.study-note.mistake { background: #fff2f0; border-color: #efaaa4; }
.study-note p { margin: 0; }
.mistake-lines { display: grid; gap: 7px; margin: 11px 0; }
.mistake-lines > span { padding: 8px 10px; background: rgba(255,255,255,.72); border-radius: 10px; font-weight: 900; }
.mistake-lines > span span { padding: 0; background: transparent; }
.study-dialogue-block { margin-top: 28px; }
.study-dialogue-block > p { margin: -8px 0 15px; }
.study-talks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.study-talk { padding: 17px; background: #eef7ff; border: 2px solid #c7deef; border-radius: 20px; }
.study-talk > small { display: block; margin-bottom: 10px; color: #e77125; font-weight: 1000; text-transform: uppercase; letter-spacing: .07em; }
.study-talk > div { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 9px 0; border-top: 1px solid #d2e3ef; }
.study-talk > div > span { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: #2679b8; border-radius: 10px; font-size: .75rem; font-weight: 1000; }
.study-talk > div:nth-of-type(2) > span { background: #4c9f3c; }
.study-talk b { color: #174477; }
.phrase-intro { margin: -5px 0 20px; }
.key-patterns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-bottom: 27px; }
.key-pattern { padding: 15px 16px; background: #fff8d8; border: 2px solid #efd570; border-radius: 17px; }
.key-pattern b, .key-pattern small { display: block; }
.key-pattern b { color: #6d5100; }
.key-pattern small { margin-top: 3px; color: #7d6b36; }
.phrase-bank { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.phrase-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; min-height: 76px; padding: 13px 14px; background: #f6fbff; border: 2px solid #d3e5f2; border-radius: 17px; }
.phrase-row b, .phrase-row small { display: block; }
.phrase-row b { color: #153f76; }
.phrase-row small { color: #6a7d93; }
.phrase-row .phrase-audio { grid-column: 2; grid-row: 1 / span 2; }
.check-intro { max-width: 720px; margin-top: -5px; }
.quick-check-list { display: grid; gap: 16px; margin-top: 22px; }
.quick-check-card { padding: 20px; background: #f7fbff; border: 3px solid #d2e4f1; border-radius: 22px; }
.quick-check-card > small { color: #ef7928; font-weight: 1000; letter-spacing: .09em; }
.quick-check-card h4 { margin: 5px 0 15px; font-size: 1.15rem; }
.check-options { display: grid; gap: 9px; }
.check-options button, .reveal-model { min-height: 48px; padding: 10px 14px; text-align: left; color: #174477; background: #fff; border: 2px solid #c9ddea; border-radius: 14px; font-weight: 850; }
.check-options button:hover:not(:disabled), .reveal-model:hover { border-color: #61af4d; background: #efffe9; }
.check-options button.is-correct { color: #286f28; background: #e8fbdf; border-color: #6db957; }
.check-options button.is-wrong { color: #8b3333; background: #fff0f0; border-color: #e98b83; }
.check-feedback, .model-answer { margin: 13px 0 0; padding: 12px 14px; color: #31632d; background: #edfbe8; border-radius: 13px; font-weight: 750; }
.model-answer { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.study-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px clamp(16px, 4vw, 32px); background: #f4f9fd; border-top: 2px solid #d5e4ef; }
.study-primary-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.study-completion-status { flex-basis: 100%; margin: 0; color: #31702c; text-align: center; font-size: .82rem; font-weight: 900; }
.study-completion-status:empty { display: none; }
.study-nav-button, .study-complete-button { min-height: 46px; padding: 10px 15px; border-radius: 14px; font-weight: 1000; }
.study-nav-button { color: #36658e; background: #fff; border: 2px solid #bdd5e7; }
.study-nav-button:disabled { opacity: .35; cursor: default; }
.study-complete-button { color: #fff; background: #4c9f3c; border: 0; box-shadow: 0 5px 0 #2e7126; }
.study-complete-button:disabled { color: #2e6d2e; background: #dff3d7; box-shadow: none; cursor: default; }

/* Quest clarity, new activities and accessible interaction */
.activity-card { scroll-margin-top: 104px; }
button:disabled { cursor: default; }
input, textarea, select { font: inherit; }
input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 4px solid rgba(255, 199, 0, .78); outline-offset: 3px; }
.text-button, .secondary-action, .reward-guide-link, .modal-close, .study-close, .study-example button, .phrase-audio, .story-scene-track > button { min-width: 44px; min-height: 44px; touch-action: manipulation; }
.text-button { display: inline-flex; align-items: center; padding: 8px 4px; }
.question-kicker { color: #b84f0d; }
.case-heading small { color: #a94712; }
.reward-strip small, .review-metrics small, .unit-copy small, .unit-copy em, .stage-pill, .power-panel small, .combo-card span, .quest-score span, .story-support-bar span, .story-transcript-line small, .result-numbers small { color: #53667e; }
.unit-copy small, .power-panel small, .result-numbers small { font-size: .75rem; }
.mini-rewards p:last-of-type { border-bottom: 0; }
.mini-rewards p > span:first-child { flex: 0 0 32px; text-align: center; }
.mini-rewards b { color: #2f4f72; font-size: .82rem; }
.mini-rewards small { margin-top: 2px; color: #56677d; font-size: .75rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.reward-guide-link { width: 100%; margin-top: 10px; padding: 9px 12px; color: #174d82; background: #eef7fd; border: 2px solid #b8d6e9; border-radius: 13px; font-weight: 900; }

.quest-briefing { display: grid; gap: 24px; }
.quest-briefing-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 24px; color: #fff; background: linear-gradient(125deg, #0b397d, #176eb2 64%, #238fc0); border-radius: 24px; }
.quest-briefing-hero > span { display: grid; place-items: center; width: 78px; height: 78px; background: rgba(255,255,255,.16); border: 3px solid rgba(255,255,255,.72); border-radius: 23px; font-size: 2.35rem; }
.quest-briefing-hero .question-kicker { color: #ffe365; }
.quest-briefing-hero h2 { margin: 2px 0 7px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; }
.quest-briefing-hero p:last-child { margin: 0; color: #e4f5ff; font-weight: 700; }
.quest-route-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 0; padding: 0; list-style: none; }
.quest-route-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; align-items: start; padding: 15px; background: #f5faff; border: 2px solid #d0e3f1; border-radius: 17px; }
.quest-route-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.quest-route-list li > span { display: grid; place-items: center; width: 44px; height: 44px; background: #e4f3ff; border-radius: 13px; font-size: 1.35rem; }
.quest-route-list small, .quest-route-list b, .quest-route-list p { display: block; }
.quest-route-list small { color: #596d83; font-size: .75rem; font-weight: 900; letter-spacing: .06em; }
.quest-route-list b { margin-top: 2px; color: #174477; }
.quest-route-list p { margin: 4px 0 0; color: #596b80; font-size: .875rem; }
.quest-briefing-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 19px; background: #eef8ea; border: 2px solid #b8dba8; border-radius: 18px; }
.quest-briefing-footer b, .quest-briefing-footer small { display: block; }
.quest-briefing-footer b { color: #286526; }
.quest-briefing-footer small { margin-top: 3px; color: #526f50; }
.quest-briefing-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }
.secondary-action { padding: 10px 15px; color: #174d82; background: #fff; border: 2px solid #9fc5df; border-radius: 14px; font-weight: 900; }

.reward-guide-modal { position: relative; width: min(840px, 100%); padding-top: clamp(48px, 6vw, 62px); text-align: left; border-color: #78bce2; box-shadow: 0 20px 0 #397eaf, 0 40px 80px rgba(0,0,0,.36); }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; color: #174777; background: #eef7fd; border: 2px solid #b8d6e9; border-radius: 14px; font-size: 1.55rem; font-weight: 1000; line-height: 1; }
.reward-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 24px 0; }
.reward-guide-grid article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 15px; background: #f5faff; border: 2px solid #d0e3f1; border-radius: 17px; }
.reward-guide-grid article > span { display: grid; place-items: center; width: 45px; height: 45px; background: #fff; border-radius: 13px; font-size: 1.45rem; }
.reward-guide-grid b { color: #174477; }
.reward-guide-grid p { margin: 4px 0 0; color: #56697f; font-size: .875rem; }
.daily-reward-note { display: flex; gap: 13px; align-items: center; padding: 15px 17px; color: #684f00; background: #fff7ca; border: 2px solid #e5c954; border-radius: 17px; }
.daily-reward-note > span { font-size: 1.75rem; }
.daily-reward-note p { margin: 0; }

.match-card { overflow-wrap: anywhere; touch-action: manipulation; }
.match-card.is-audio { display: grid; place-items: center; align-content: center; gap: 3px; color: #fff; background: linear-gradient(145deg, #176aaa, #0e4d88); border-color: #79bde3; box-shadow: 0 5px 0 #0a3d70; }
.match-card.is-audio span, .match-card.is-audio small { display: block; }
.match-card.is-audio span { font-size: 1.2rem; }
.match-card.is-audio small { color: #e4f5ff; font-size: .72rem; }
.match-card.is-audio.is-selected { color: #173c6d; background: linear-gradient(#ffe66d, #ffca30); border-color: #efb926; box-shadow: 0 5px 0 #b8780b; }
.match-card.is-audio.is-selected small { color: #173c6d; }
.match-card.has-transcript-fallback span { font-size: .85rem; line-height: 1.2; }
.match-status, .audio-fallback { margin: 20px 0 0; padding: 12px 14px; color: #385b78; background: #eef6fc; border: 2px solid #cbdfea; border-radius: 14px; font-weight: 800; }
.audio-fallback span { display: block; margin-top: 4px; color: #174477; }
.match-round-complete { padding: 20px; background: linear-gradient(145deg, #f7fbff, #eaf6ff); border-radius: 22px; }

.story-speaking-mission { display: grid; gap: 19px; }
.speaking-mission-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.speaking-mission-head > span { display: grid; place-items: center; width: 72px; height: 72px; background: #e9f6ff; border: 3px solid #abd4ec; border-radius: 21px; font-size: 2.15rem; }
.speaking-mission-head h2 { margin: 0; color: #123a73; font-size: clamp(1.8rem, 4vw, 3rem); }
.speaking-mission-head p:last-child { margin: 4px 0 0; color: #566a80; font-weight: 700; }
.speaking-prompt { display: grid; gap: 7px; padding: 20px; color: #153f76; background: linear-gradient(120deg, #fff9d9, #fff1a3); border: 3px solid #e7c64b; border-radius: 20px; }
.speaking-prompt small { color: #855b08; font-size: .72rem; font-weight: 1000; letter-spacing: .1em; }
.speaking-prompt strong { font-size: clamp(1.05rem, 2.4vw, 1.35rem); }
.story-speaking-mission > .primary-button { justify-self: end; }

.mission-briefing { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 18px; align-items: center; padding: 24px; background: linear-gradient(145deg, #f5fbff, #e8f5ff); border: 3px solid #bfddf0; border-radius: 24px; }
.mission-briefing-icon { grid-row: 1 / span 3; display: grid; place-items: center; width: 78px; height: 78px; background: #fff; border: 3px solid #9fcce7; border-radius: 22px; font-size: 2.25rem; }
.mission-briefing .question-kicker, .mission-briefing h2, .mission-briefing > p:not(.question-kicker) { grid-column: 2; }
.mission-briefing .question-kicker { margin: 0; }
.mission-briefing h2 { margin: 0; color: #123a73; font-size: clamp(1.7rem, 3.4vw, 2.65rem); }
.mission-briefing > p:not(.question-kicker) { margin: 0; color: #566a80; font-weight: 700; }
.mission-checkpoints { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 17px 0; }
.mission-checkpoints span { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 9px 11px; color: #174477; background: #fff; border: 2px solid #c9dfed; border-radius: 14px; font-weight: 850; }
.mission-checkpoints i { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; color: #fff; background: #2878b8; border-radius: 10px; font-style: normal; }
.mission-briefing .primary-button { grid-column: 1 / -1; justify-self: end; }
.mission-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 470px; margin: 0 0 22px; background: linear-gradient(#d4e3ed 0 0) center / 100% 4px no-repeat; }
.mission-meter i { z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; justify-self: center; color: #53677d; background: #fff; border: 3px solid #c6d8e6; border-radius: 50%; font-style: normal; font-weight: 1000; }
.mission-meter i.is-active { color: #fff; background: #c94f0c; border-color: #8f3507; }
.mission-meter i.is-done { color: #fff; background: #438f35; border-color: #2d7025; }

.world-mission-briefing { display: grid; justify-items: center; gap: 15px; padding: clamp(24px, 5vw, 44px); text-align: center; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(255,218,73,.23), transparent 28%), linear-gradient(140deg, #082d68, #1269a8 68%, #1689b6); border-radius: 26px; }
.world-mission-icon { display: grid; place-items: center; width: 86px; height: 86px; background: rgba(255,255,255,.15); border: 3px solid rgba(255,255,255,.68); border-radius: 25px; font-size: 2.65rem; }
.world-mission-briefing .question-kicker { margin: 0; color: #ffe36a; }
.world-mission-briefing h2 { margin: -7px 0 0; font-size: clamp(2rem, 4vw, 3.3rem); }
.world-mission-briefing > p { max-width: 720px; margin: 0; color: #e6f5ff; font-weight: 700; }
.world-mission-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.world-mission-skills span { padding: 8px 12px; color: #173d73; background: #fff; border-radius: 99px; font-weight: 900; }
.mission-rule { display: grid; gap: 2px; max-width: 670px; padding: 13px 16px; color: #5c4800; background: #fff4b9; border: 2px solid #e6c84e; border-radius: 16px; }
.mission-rule span { font-size: .86rem; }
.world-mission { text-align: left; }
.world-mission .mission-meter { grid-template-columns: repeat(6, 1fr); max-width: 600px; }
.mission-type-form { max-width: 760px; padding: 20px; background: #f4f9fd; border: 3px solid #c9dfed; border-radius: 21px; }
.mission-type-form label { display: block; margin-bottom: 9px; color: #174477; font-weight: 900; }
.mission-type-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.mission-type-form input { width: 100%; min-height: 56px; padding: 12px 14px; color: #173d73; background: #fff; border: 3px solid #aecde2; border-radius: 15px; font-size: 1rem; }
.typing-support { margin: 10px 0 0; color: #596b80; font-size: .875rem; }
.gap-sentence.context-choice { min-height: 110px; font-size: clamp(1.15rem, 3vw, 1.7rem); }

.result-numbers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.result-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; margin: -13px 0 24px; padding: 14px; background: #f5f9fc; border: 2px solid #d4e3ee; border-radius: 17px; }
.result-rewards:empty { display: none; }
.result-rewards > * { padding: 9px; color: #174477; background: #fff; border-radius: 12px; }
.result-rewards small, .result-rewards b { display: block; }
.result-rewards small { color: #56697f; font-size: .75rem; }
.result-rewards b { margin-top: 2px; }

@media (min-width: 981px) {
  .power-panel { position: sticky; top: 104px; }
}

@media (max-width: 980px) {
  .duo-header { grid-template-columns: auto 1fr; }
  .brand-lockup { justify-self: end; }
  .header-stats { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .hero-panel { grid-template-columns: 1fr; }
  .reward-strip { grid-template-columns: repeat(2, 1fr); }
  .smart-review-card { grid-template-columns: auto 1fr auto; }
  .journey-compass { grid-template-columns: auto minmax(0, 1fr); }
  .compass-reason { grid-column: 2; }
  .compass-actions { grid-column: 2; grid-template-columns: auto auto; justify-content: start; }
  .confidence-card { grid-template-columns: 1fr; }
  .confidence-proof { grid-column: 1; grid-row: auto; max-width: 520px; }
  .adventure-map-path { grid-template-columns: repeat(12, minmax(68px, 1fr)); }
  .year-journey { grid-template-columns: 1fr; }
  .review-start { grid-column: 2 / -1; justify-self: start; }
  .unit-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-shelf, .passport-section .badge-shelf { grid-template-columns: repeat(2, 1fr); }
  .play-layout { grid-template-columns: 1fr; }
  .power-panel { position: static; top: auto; z-index: auto; grid-row: 1; grid-template-columns: repeat(3, 1fr); }
  .activity-card { grid-row: 2; }
  .power-panel > div { padding: 13px; }
  .combo-card strong, .quest-score strong { font-size: 1.75rem; }
  .stage-rail { overflow-x: auto; grid-template-columns: repeat(7, minmax(105px, 1fr)); padding-bottom: 9px; }
  .study-hero { grid-template-columns: 1fr; }
  .quest-briefing-footer { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 650px) {
  main { width: min(100% - 20px, 1240px); }
  .duo-header { position: static; gap: 8px; padding: 10px; }
  .brand-lockup img { width: 46px; height: 46px; }
  .brand-lockup strong { font-size: .95rem; }
  .brand-lockup small { font-size: .7rem; }
  .back-link { font-size: .85rem; }
  .header-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .header-stats span { display: grid; justify-items: center; gap: 0; min-height: 48px; padding: 4px; }
  .header-stats b { font-size: .75rem; }
  .screen { padding-top: 20px; }
  .hero-copy, .daily-goal-card { border-radius: 25px; }
  .daily-goal-card { grid-template-columns: 1fr; text-align: center; }
  .goal-ring { margin: auto; width: 130px; }
  .goal-ring::before { width: 96px; }
  .reward-strip, .unit-grid { grid-template-columns: 1fr; }
  .smart-review-card { grid-template-columns: auto 1fr; gap: 14px; margin-top: -20px; padding: 18px; }
  .journey-compass { grid-template-columns: auto 1fr; gap: 13px; padding: 18px; border-radius: 22px; }
  .compass-mark { width: 54px; height: 54px; border-radius: 17px; font-size: 1.7rem; }
  .compass-copy h2 { font-size: 1.2rem; }
  .compass-copy p:last-child { font-size: .88rem; }
  .compass-reason, .compass-actions { grid-column: 1 / -1; }
  .compass-actions { grid-template-columns: 1fr; }
  .compass-actions button { width: 100%; }
  .confidence-card { gap: 14px; margin-bottom: 42px; padding: 19px; border-radius: 23px; }
  .confidence-heading h2 { font-size: 1.5rem; }
  .confidence-proof { width: 100%; }
  .confidence-proof span { min-height: 72px; padding: 10px 5px; }
  .confidence-use { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .confidence-use .compass-secondary { width: 100%; margin-top: 4px; }
  .adventure-map { padding: 20px 16px; border-radius: 24px; }
  .adventure-map-heading { display: block; }
  .adventure-map-heading > p { margin-top: 10px; text-align: left; }
  .adventure-map-path { margin-top: 24px; }
  .adventure-map-footer { display: grid; text-align: center; }
  .adventure-map-footer .compass-secondary { width: 100%; }
  .smart-review-icon { width: 52px; height: 52px; }
  .review-metrics { grid-column: 1 / -1; justify-content: stretch; }
  .review-metrics span { flex: 1; }
  .review-start { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .year-journey { margin: 28px 0 45px; padding: 18px; border-radius: 24px; }
  .weekly-challenge-card { grid-template-columns: auto 1fr; padding: 16px; }
  .world-section .unit-card { scroll-margin-block-end: 96px; }
  .world-cta { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: calc(100% - 4px); margin: 18px auto 0; padding: 9px 9px 9px 13px; text-align: left; border-radius: 18px; }
  .world-cta small { font-size: .68rem; }
  .world-cta strong { overflow: hidden; font-size: .82rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
  .world-cta .primary-button { width: auto; min-width: 112px; min-height: 44px; padding: 9px 10px; font-size: .76rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; text-align: left; }
  .badge-shelf, .passport-section .badge-shelf { grid-template-columns: 1fr; }
  .passport-section .badge { min-height: 158px; }
  .passport-actions { display: grid; }
  .passport-action, .passport-actions .reset-progress { width: 100%; margin: 0; text-align: center; }
  .quest-status { display: block; }
  .session-target { margin-top: 18px; min-width: 0; }
  .activity-card { min-height: 460px; padding: 20px 15px; border-radius: 22px; }
  .quest-briefing-hero { grid-template-columns: 1fr; padding: 19px; text-align: center; }
  .quest-briefing-hero > span { width: 68px; height: 68px; margin: auto; }
  .quest-route-list { grid-template-columns: 1fr; }
  .quest-route-list li:last-child:nth-child(odd) { grid-column: auto; }
  .quest-briefing-footer { display: grid; }
  .quest-briefing-actions { display: grid; width: 100%; }
  .modal-backdrop { padding: 6px; }
  .reward-guide-modal { width: 100%; max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); padding: 58px 16px 22px; border-width: 3px; border-radius: 22px; }
  .reward-guide-grid { grid-template-columns: 1fr; }
  .activity-head { align-items: start; }
  .choice-grid, .sort-actions { grid-template-columns: 1fr; }
  .choice-button { min-height: 62px; }
  .dialogue-scene { grid-template-columns: auto 1fr; padding: 17px; }
  .dialogue-scene button { grid-column: 1 / -1; width: 100%; }
  .mission-briefing { grid-template-columns: 1fr; padding: 18px; text-align: center; }
  .mission-briefing-icon { grid-column: 1; grid-row: auto; width: 68px; height: 68px; margin: auto; }
  .mission-briefing .question-kicker, .mission-briefing h2, .mission-briefing > p:not(.question-kicker), .mission-checkpoints, .mission-briefing .primary-button { grid-column: 1; }
  .mission-checkpoints { grid-template-columns: 1fr; text-align: left; }
  .mission-briefing .primary-button { justify-self: stretch; width: 100%; }
  .world-mission .mission-meter { gap: 4px; }
  .world-mission .mission-meter i { width: 38px; height: 38px; font-size: .8rem; }
  .mission-type-form > div { grid-template-columns: 1fr; }
  .mission-type-form .primary-button { width: 100%; }
  .story-briefing { grid-template-columns: 1fr; text-align: center; }
  .story-briefing-icon { width: 72px; height: 72px; margin: 0 auto; font-size: 2.2rem; }
  .story-route { grid-template-columns: 1fr; }
  .story-route li { min-height: 86px; text-align: left; }
  .story-start-row { display: grid; text-align: center; }
  .story-start-row .primary-button { width: 100%; }
  .story-player-top { grid-template-columns: auto 1fr; padding: 17px 15px 10px; }
  .story-playing-badge { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .story-soundscape { margin-inline: 14px; }
  .story-controls { display: grid; grid-template-columns: 1fr 1fr; padding-inline: 14px; }
  .story-control { min-width: 0; min-height: 50px; padding-inline: 8px; }
  .story-control.primary { grid-column: 1 / -1; }
  .story-scene-track small { display: none; }
  .story-support-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .story-support-bar button { padding-inline: 7px; font-size: .76rem; }
  .story-support-bar span { grid-column: 1 / -1; margin: 0; text-align: center; }
  .story-transcript-line { grid-template-columns: 1fr; }
  .story-transcript-line b { grid-row: auto; }
  .story-transcript-line small { grid-column: 1; }
  .story-ready-row { display: grid; text-align: center; }
  .story-ready-actions { display: grid; width: 100%; }
  .story-ready-actions .text-button { justify-content: center; width: 100%; }
  .story-ready-row .primary-button { width: 100%; }
  .story-question-audio { grid-template-columns: 1fr 1fr; }
  .story-question-audio > div { grid-column: 1 / -1; }
  .story-question-audio button { min-height: 48px; }
  .story-finish-grid { grid-template-columns: 1fr; }
  .speaking-mission-head { grid-template-columns: 1fr; text-align: center; }
  .speaking-mission-head > span { margin: auto; }
  .story-speaking-mission > .primary-button { justify-self: stretch; width: 100%; }
  .evidence-card { gap: 7px; padding: 18px 12px; }
  .evidence-token { min-height: 44px; padding: 7px 8px; }
  .case-comparison { grid-template-columns: 1fr; }
  .case-actions { display: grid; }
  .case-actions button { width: 100%; }
  .feedback { display: block; }
  .continue-button { width: 100%; margin-top: 12px; }
  .power-panel { position: static; grid-template-columns: repeat(2, 1fr); }
  .power-panel .mini-rewards { grid-column: 1 / -1; }
  .match-board { grid-template-columns: repeat(2, 1fr); }
  .word-tools { display: grid; grid-template-columns: 1fr; }
  .chest-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .chest-choices button { width: 100%; min-width: 0; }
  .result-numbers { grid-template-columns: repeat(2, 1fr); }
  .result-numbers span:last-child { grid-column: 1 / -1; }
  .study-backdrop { padding: 0; }
  .study-modal { width: 100%; max-height: 100vh; max-height: 100dvh; min-height: 100vh; min-height: 100dvh; border-width: 0; border-radius: 0; box-shadow: none; }
  .study-header { grid-template-columns: auto 1fr auto; gap: 10px; padding: max(16px, env(safe-area-inset-top)) 14px 16px; }
  .study-world-icon { width: 52px; height: 52px; border-radius: 16px; font-size: 1.45rem; }
  .study-header h2 { font-size: 1.55rem; }
  .study-header p:last-child { display: none; }
  .study-tabs { padding: 9px; }
  .study-tabs button { min-height: 44px; padding: 7px 5px; font-size: .8rem; }
  .study-panel { padding: 18px 14px; }
  .study-points, .study-notes, .study-talks, .key-patterns, .phrase-bank { grid-template-columns: 1fr; }
  .study-footer { grid-template-columns: 1fr 1fr; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .study-primary-actions { grid-column: 1 / -1; grid-row: 1; display: grid; }
  .study-nav-button:last-child { grid-column: 2; }
}

@media (max-width: 360px) {
  .world-cta { grid-template-columns: 1fr; padding: 10px; text-align: center; }
  .world-cta .primary-button { width: 100%; }
}

@media (max-height: 650px) {
  .study-modal { display: block; overflow-y: auto; }
  .study-tabs { position: sticky; top: 0; z-index: 3; }
  .study-panel { overflow: visible; }
  .study-footer { position: sticky; bottom: 0; z-index: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .activity-card.is-story-playing .story-soundscape i { animation: none !important; }
}
