/* First-expedition presentation. Touch zoom stays available to the player. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,summary{touch-action:manipulation}
/* Illustration/background taps also opt out of Safari double-tap zoom.
   Pinch zoom remains available for accessibility. */
html,body,#menu,#entry,#modal,dialog{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
input,select,textarea,.journey-name-label input{font-size:16px}
.camp-settings-dialog{overscroll-behavior:contain}

/* Start in the reveal pose even while the retouch loads. Anchoring the top
   makes every landmark rise as the lower scene opens; the skyline never dips. */
#entry-art,.entry-live-art{height:100%;object-position:center center;transform-origin:50% 0;transform:scale(1.08)}
@keyframes title-drift{from{transform:scale(1.08)}to{transform:scale(1)}}
#entry.art-ready #entry-art,#entry.art-ready .entry-live-art{animation-duration:9s}

/* Compass badge and enamel-like, readable navigation. */
.mission-test-controls{margin-top:18px;padding:14px;border:1px solid #789ca777;border-radius:12px;background:#173747;text-align:left}
.mission-test-controls>small{display:block;font-size:11px;letter-spacing:.1em;color:#d8c39c;margin-bottom:8px}
.mission-test-controls>button{width:100%;min-height:44px;font-size:15px;background:#2c5263;border:1px solid #86a8b3;color:#fff0ce}
.mission-test-controls>p{font-size:12px;line-height:1.4;margin:8px 0 0;color:#c1d6da}
.mission-test-controls>[role=status]:empty{display:none}
.panel[data-screen=paused]>p:empty{display:none}
.panel[data-screen=paused]>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}
.panel[data-screen=paused]>.actions>button{width:auto;min-width:0;min-height:44px;padding:9px 8px;font-size:14px;line-height:1.25;white-space:normal}
.profile-emblem{border-radius:50%;background:radial-gradient(circle at 35% 20%,#699b86,#284d4e 58%,#132d39);border:2px solid #d6b67c;box-shadow:0 0 0 3px #15383d,inset 0 0 0 3px #193a40,0 3px 8px #051d2470}
.profile-emblem .camp-icon{width:34px;height:34px;filter:drop-shadow(0 2px 1px #051d24b0)}
.profile-emblem b{border-radius:5px 5px 7px 7px;min-width:21px;background:linear-gradient(#ffe9b4,#d7ae6a);border-color:#927044;box-shadow:0 2px 0 #102832;font-size:11px}
.camp-nav{position:sticky;bottom:0;z-index:5;background:linear-gradient(#143137f7,#102a31);border-top:1px solid #8aab9866;padding:9px 0 max(5px,env(safe-area-inset-bottom));gap:3px}
.camp-nav>button{position:relative;min-height:74px;gap:5px;border:1px solid transparent;border-radius:14px;font-size:11px;color:#b7d2c7;transition:background .18s,border-color .18s}
.camp-nav>button>.camp-icon{width:39px;height:39px;padding:3px;filter:drop-shadow(0 2px 1px #051b26);border-radius:11px;background:radial-gradient(ellipse at 50% 20%,#68978b44,#173d4233)}
.camp-nav>button[aria-current=page]{background:linear-gradient(#789c7644,#385e5155);border-color:#d3bb8177;color:#ffdf9e;box-shadow:inset 0 1px #ffebc122}
.camp-nav>button[aria-current=page]:after{content:'';position:absolute;bottom:3px;left:38%;right:38%;height:2px;border-radius:4px;background:#edcc8b}
.camp-nav>button[aria-disabled=true]{opacity:1;color:#758f8b;background:#10282c55}.camp-nav>button[aria-disabled=true]>.camp-icon{filter:grayscale(.85);opacity:.42}
.camp-nav .nav-lock{top:4px;right:5px;padding:2px;border-radius:50%;background:#1c363c;border:1px solid #98825a99}.camp-nav .nav-lock svg{width:12px;height:12px}
.camp-stage:before{background-size:auto,240px 240px;background-position:0 0,0 0}
.camp-first-light{padding:8px 10px;border-radius:12px;gap:9px;background:linear-gradient(100deg,#335b50,#1b3b40);border-color:#92b9a44d;box-shadow:inset 3px 0 #e0bf7d}
.camp-first-light img{width:35px;height:43px;object-position:50% 18%;border:1px solid #bea77d66;border-radius:8px}
.camp-first-light b{font-size:13px}.camp-first-light small{font-size:11px;letter-spacing:0;margin-top:3px}.camp-first-light>span{flex:1}.camp-first-light>svg{width:18px}
.camp-context-step{outline:1px solid #e7c785!important;outline-offset:3px;box-shadow:0 0 0 6px #e8c58313!important}

/* One choice at the start; short acknowledged lessons after real milestones. */
.tutorial-choice{text-align:center;max-width:390px;padding-top:18px}.tutorial-choice>small{font-size:10px;letter-spacing:.16em;color:#d9bd81}.tutorial-choice h2{font-size:30px;margin:12px 0}.tutorial-choice>p{font-size:15px;line-height:1.5}.tutorial-choice button{width:100%;min-height:50px;margin-top:10px}.tutorial-choice .tutorial-choice-note{font-size:12px;color:#a9c7bc;line-height:1.5}
.tutorial-welcome-art{position:relative;width:100px;height:116px;margin:0 auto 16px;overflow:hidden;border-radius:48px 48px 16px 16px;border:1px solid #d4ba84;box-shadow:0 0 0 5px #d5be8733,0 8px 25px #061e2355}
.tutorial-welcome-art img{width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.coach-focus{border:2px solid #ffe4a9;border-radius:16px;box-shadow:0 0 0 200vmax #05171eca,0 0 22px #f4cd8599;animation:none}
.coach-focus:after{content:'';position:absolute;inset:-5px;border:2px solid #ffdf9a;border-radius:20px;box-shadow:0 0 12px #ffe7a99c,inset 0 0 8px #ffdfa950;pointer-events:none;animation:coach-focus-pulse 1.65s ease-in-out infinite}
@keyframes coach-focus-pulse{0%,100%{opacity:.4;box-shadow:0 0 6px #ffdfa94d,inset 0 0 4px #ffdfa924}50%{opacity:1;box-shadow:0 0 22px #ffe7a9cc,inset 0 0 12px #ffdfa970}}
.coach-target-hint{animation:coach-tap-pulse 1.65s ease-in-out infinite}
@keyframes coach-tap-pulse{50%{transform:translateY(-4px)}}
.coach-card .coach-actions{padding:5px!important;margin:0 -5px!important}
.coach-card,.coach-card.compact{padding-bottom:15px!important;overflow:hidden}
.coach-reading{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9b28366 transparent}
.choice.choice-discovered{animation:choice-discovery 1.8s ease-in-out infinite}
@keyframes choice-discovery{50%{border-color:#f5d08e;box-shadow:inset 0 0 0 2px #f5d08e88,0 0 14px #f5d08e44}}
@media(prefers-reduced-motion:reduce){.coach-focus:after,.coach-target-hint,.choice.choice-discovered{animation:none}.choice.choice-discovered{outline:2px solid #f5d08e;outline-offset:-3px}}
.coach-focus>i{position:absolute;width:15px;height:15px;border:3px solid #ffe2a5;filter:drop-shadow(0 0 3px #efc28155)}
.coach-focus>i:nth-child(1){left:-3px;top:-3px;border-right:0;border-bottom:0;border-radius:10px 0 0 0}.coach-focus>i:nth-child(2){right:-3px;top:-3px;border-left:0;border-bottom:0;border-radius:0 10px 0 0}.coach-focus>i:nth-child(3){left:-3px;bottom:-3px;border-right:0;border-top:0;border-radius:0 0 0 10px}.coach-focus>i:nth-child(4){right:-3px;bottom:-3px;border-left:0;border-top:0;border-radius:0 0 10px 0}
.coach-target-hint{right:-11px;bottom:-14px;width:29px;height:29px;background:linear-gradient(#537f6d,#254943);box-shadow:0 2px 6px #061e26;border-color:#efd69e}.coach-target-hint .camp-icon{width:21px;height:21px}
.coach-overlay.without-target{background:#05171ec9}.coach-card{padding:18px 20px 0;max-width:386px;border-radius:22px;border-color:#dbbd87;background:radial-gradient(ellipse at 0 0,#3c685c,#1b3c42 74%);box-shadow:0 18px 60px #001019a6,inset 0 0 0 4px #a9c6b414}
.coach-chapter{font-size:9px;letter-spacing:.16em;padding:0 0 9px;border-bottom:1px solid #c4b18733;justify-content:space-between}.coach-card header{margin:14px 0}.coach-heading h2{font-size:25px;line-height:1.13}.coach-portrait{border-radius:40px 40px 12px 12px;box-shadow:0 4px 14px #102a3066;flex-basis:76px;width:76px;height:100px}.coach-heading small{font-size:8px}.coach-card .coach-copy p{font-size:15px;line-height:1.5;margin-bottom:14px}.coach-visual{background:#122e3580;border-color:#98b7a330;border-radius:12px;padding:9px;margin-bottom:14px;min-height:48px}.coach-chip{font-size:11px}.coach-card .coach-actions{gap:8px;padding:0;margin-bottom:0}.coach-card .coach-actions button{border-radius:10px;min-height:46px}.coach-card footer{position:static;justify-content:center;min-height:34px;margin:0;padding:0;right:auto;bottom:auto;color:#a6c0b5}.coach-card footer span,.coach-card.compact footer span{display:block;font-size:10px}
.coach-card.compact{padding:12px 14px 0}.coach-card.compact .coach-actions{padding:0;margin:0}.coach-card.compact header{margin:8px 0;gap:12px}.coach-card.compact .coach-portrait{width:52px;height:69px;flex-basis:52px}.coach-card.compact .coach-heading h2{font-size:21px}.coach-card.compact .coach-copy p{font-size:14px;line-height:1.4}.coach-card.compact .coach-visual{margin-bottom:9px}.coach-card.compact footer{position:static;min-height:28px}

/* Mission stays at the top left. Lyra steps aside during movement and fights. */
.in-first-light #stageLabel{display:none}.in-first-light .topline>.right{display:none}.in-first-light .topline>div:first-child{flex:1;min-width:0}.in-first-light #loadout{pointer-events:auto}
#firstLightHud{position:static;transform:none;display:block;width:auto;min-width:0;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;pointer-events:auto}
#firstLightHud .first-light-objective{display:flex;gap:7px;align-items:center;padding:0 4px 0 0;background:none;border:0;min-height:44px;text-align:left;width:100%}
#firstLightHud .first-light-objective>.camp-icon{width:26px;height:26px;flex-shrink:0}#firstLightHud .first-light-objective>span{min-width:0}
#firstLightHud .first-light-count{display:block;font-size:9px;letter-spacing:.07em;line-height:1.3;color:#d5b77e}#firstLightHud h2{font:13px/1.3 var(--body);color:#f5ead0;margin:3px 0 0;letter-spacing:0}
#firstLightHud p{font-size:11px;line-height:1.35;margin-top:5px;color:#e1c38f}#firstLightHud .first-light-drill{height:4px;margin:4px 0 0}#firstLightHud [data-retry]{padding:6px;min-height:44px;font-size:13px}
.first-light-choice .offer-actions{display:flex}.first-light-choice .choice b{font-size:22px}.first-light-choice .choice p{font-size:14px}.first-light-choice .offer-actions small{font-size:11px}

/* Illustrated story, then a deliberate handoff to play. */
.beacon-cinematic{width:min(100vw,520px);height:100dvh;max-height:100dvh;overscroll-behavior:none;touch-action:manipulation}
.beacon-film,.beacon-shade{position:absolute;inset:0;width:100%;height:100%;display:block}
.beacon-shade{pointer-events:none;background:linear-gradient(#041d2866,transparent 15%,transparent 45%,#071d27d9 72%,#071d27 100%)}
.beacon-top{position:absolute;left:20px;right:14px;top:max(12px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center}.beacon-top>span{font-size:10px;letter-spacing:.17em;color:#e5d4b4;text-shadow:0 1px 6px #06192b}.beacon-top .arrival-close{position:static;min-width:44px;min-height:44px;padding:0;border:1px solid #dfcba155;background:#123039aa}
.beacon-cinematic section{padding:22px 24px max(24px,env(safe-area-inset-bottom));overflow:auto;max-height:48%}.beacon-cinematic h1{font:32px/1.08 var(--display);margin:10px 0 14px;max-width:330px;letter-spacing:-.03em}.beacon-cinematic .beacon-line{font-size:16px;line-height:1.5;color:#d9e8dd;min-height:72px}.beacon-speaker{letter-spacing:.18em;color:#edc77f;font-size:11px}
.beacon-reel{display:flex;gap:6px;margin:18px 0}.beacon-reel i{position:relative;flex:1;height:3px;background:#91b4ac33;overflow:hidden;border-radius:3px}.beacon-reel i:after{content:'';position:absolute;inset:0 auto 0 0;width:var(--progress,0%);background:#f0d492}
.beacon-controls{display:flex;min-height:50px;gap:10px}.beacon-controls>button{flex:1;min-height:48px;border-radius:11px;font-size:15px}.beacon-controls #beaconPause{background:#15374080;border-color:#86ada55c}.beacon-controls .primary{background:linear-gradient(#f2d6a2,#dfb979);box-shadow:0 3px 0 #805f3c}

/* Compact choices keep one useful line instead of repeated helper copy. */
#modal .panel>p:empty,.offer-actions>small:empty{display:none}
.choice>small{font-size:11px;letter-spacing:.05em}.choice>b{line-height:1.2}.choice>p{line-height:1.4}
canvas[data-art="RailCannon"]{image-rendering:auto}

/* Read-only class dossier, using real weapon cadence and existing effects. */
#heroFieldKit{grid-column:1/-1;display:flex;align-items:center;gap:9px;min-height:48px;border-radius:10px;border-color:#c7b18266;background:#31544c;font-size:14px}#heroFieldKit>.camp-icon{width:24px;height:24px}#heroFieldKit>span{margin-left:auto}
.hero-demo{width:min(calc(100vw - 24px),450px);max-width:450px;padding:18px;border-radius:20px;overscroll-behavior:contain}.hero-demo header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.hero-demo header small{font-size:9px;color:#d8bd82}.hero-demo h2{font-size:32px;margin-top:5px}.hero-demo-close{width:44px;min-height:44px;padding:0;background:transparent;border:0;font-size:25px}
.hero-demo-arena{position:relative;overflow:hidden;border-radius:14px;border:1px solid #819a7d77;background:#1f3d3e}.hero-demo-arena>canvas{display:block;width:100%;height:auto}.hero-demo-badge{position:absolute;left:10px;top:9px;padding:5px 8px;border:1px solid #b8c7a633;border-radius:7px;background:#14343bbf;color:#f0dfb6;font-size:11px}.hero-demo-loading{position:absolute;inset:0;display:grid;place-items:center;background:#193940e8;font-size:13px;text-align:center;padding:20px}
.hero-demo-controls{display:flex;gap:8px;margin:12px 0}.hero-demo-controls button{flex:1;padding:8px 6px;font-size:13px;min-height:44px;border-radius:9px;background:#234849}.hero-demo-controls button[aria-pressed=true]{background:#d3bd8a;color:#173438;border-color:#f0d4a0}
.hero-demo .hero-demo-description{font-size:14px;line-height:1.5;margin:12px 0}.hero-demo-passive{display:flex;gap:12px;align-items:center;padding:13px 12px;border:1px solid #98b99d44;border-radius:12px;background:#31574a77;margin:16px 0}.hero-demo-passive>.camp-icon{width:26px;height:26px}.hero-demo-passive small{display:block;font-size:9px;letter-spacing:.07em;color:#cebe92}.hero-demo-passive strong{display:block;margin-top:6px;font-size:13px;line-height:1.4;color:#eff0d7}
.hero-demo-affinities h3{font:17px var(--display);color:#eee1bf}.hero-demo .hero-demo-affinities p{font-size:12px;line-height:1.4;margin:7px 0 12px}.hero-demo-affinities>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hero-demo-affinities>div>span{display:flex;align-items:center;gap:6px;min-width:0;border:1px solid #65887d33;border-radius:9px;background:#18353d66;padding:7px}.hero-demo-affinities canvas{width:28px;height:28px;flex-shrink:0}.hero-demo-affinities b{font-size:11px;line-height:1.3;font-weight:400;color:#d0e3d6}.hero-demo .hero-demo-entitlement{font-size:12px;line-height:1.5;color:#d1bd8f;margin:16px 0}.hero-demo-back{width:100%;min-height:48px;border-radius:10px}
.hero-demo header{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:12px;align-items:start}.hero-demo header small{white-space:nowrap}.hero-demo header h2{margin:7px 0 0}.hero-demo header .hero-demo-close{width:44px;min-height:44px;margin:0;padding:0;text-align:center}.hero-demo-controls button{margin:0;text-align:center}
@media(max-height:650px){.beacon-cinematic section{padding:14px 20px 18px;max-height:55%}.beacon-cinematic h1{font-size:27px;margin:7px 0 10px}.beacon-cinematic .beacon-line{font-size:14px;min-height:57px;line-height:1.4}.beacon-reel{margin:12px 0}.camp-nav>button{min-height:66px}.tutorial-choice h2{font-size:25px}.tutorial-welcome-art{width:66px;height:78px;margin-bottom:12px}.hero-demo-arena>canvas{max-height:180px;object-fit:contain}}
@media(prefers-reduced-motion:reduce){.camp-stage:before,.coach-focus{animation:none}#entry-art,#entry.art-ready #entry-art,#entry.art-ready .entry-live-art{animation:none;transform:none}}
