/* Local refinements: existing palettes, fonts, and navigation remain authoritative. */
.objective-card{position:relative;isolation:isolate;gap:12px;padding:12px 16px;margin-bottom:8px}
.objective-card .activity-open::after{position:absolute;inset:0;content:"";z-index:0}
.objective-card .objective-action{position:relative;z-index:1;gap:6px}
.objective-card h3{margin:5px 0!important;font-size:15px!important;line-height:1.4!important}
.objective-card .objective-copy>p{margin:3px 0!important;font-size:13px!important}
.objective-card .objective-tags{gap:6px;font-size:10px}
.objective-card .objective-copy>small{display:inline-block;margin-right:12px;font-size:11px}
.objective-card .objective-action>a{min-height:44px!important}
.objective-card.blocked{cursor:default}
.task-load-error{padding:clamp(20px,4vw,40px);max-width:680px;margin:auto}
.task-load-error h2{font:600 23px var(--tg-font-title);color:var(--op-text)}
.task-load-error .actions{display:flex;gap:12px;flex-wrap:wrap}
.task-load-error button,.task-load-error a{min-height:44px}
html body.tg-ui .avatar-display,html body.tg-ui .avatar-preview-column,
html body.tg-ui .cinema-operator,html body.tg-ui .qg-operator,
html body.tg-ui .qg-rank,html body.tg-ui .operator-viewer,html body.tg-ui .mission-rank .rank-art{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html body.tg-ui .avatar-preview-column::before,html body.tg-ui .avatar-display::before{border:0!important;box-shadow:none!important}
.avatar-editor-note{max-width:60ch}
.payment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:0;border:0;margin:28px 0}
.payment-options legend{font:600 18px var(--tg-font-title);margin-bottom:18px}
.payment-option{position:relative;cursor:pointer;min-width:0;display:block!important;margin:0!important}
.payment-option>input{position:absolute!important;width:1px!important;height:1px!important;opacity:0;clip-path:inset(50%);overflow:hidden}
.payment-face{display:flex;flex-direction:column;gap:12px;min-height:215px;padding:26px;border:1px solid var(--op-border,#355266);border-radius:18px;background:var(--op-surface,#122031);transition:transform .2s,border-color .2s,box-shadow .2s}
.payment-face svg{width:38px;height:38px;fill:none;stroke:var(--op-accent,#86ddd5);stroke-width:1.5}
.payment-face strong{font:600 21px var(--tg-font-title);letter-spacing:.04em;color:var(--op-text,#edf4fa)}
.payment-face>span{font-size:13px;line-height:1.6;color:var(--op-muted,#acbecb)}
.payment-selected{opacity:0;font:600 10px var(--tg-font-title);letter-spacing:.12em;color:var(--op-accent,#86ddd5);margin-top:auto}
.payment-option input:checked+.payment-face{border-color:var(--op-accent,#86ddd5);box-shadow:inset 0 0 28px color-mix(in srgb,var(--op-accent,#86ddd5) 8%,transparent),0 8px 30px #0002}
.payment-option input:checked+.payment-face .payment-selected{opacity:1}
.payment-option input:focus-visible+.payment-face{outline:3px solid var(--op-accent,#86ddd5);outline-offset:4px}
@media(hover:hover){.payment-option:hover .payment-face{transform:translateY(-3px)}}
.price-comparison{align-items:center!important;line-height:1.7}
.price-comparison del{font-size:18px!important;font-weight:500}
.price-comparison span{font-size:12px!important}
.tg-role-choice{min-height:48px!important;font-family:var(--tg-font-title)!important;font-size:16px!important}
.target-selection-error{border-left:3px solid var(--op-accent);padding:12px 16px;font-weight:600}
html body.tg-ui .welcome-image{overflow:visible!important;background:none!important;border:0!important;height:auto!important;padding-bottom:60px}
html body.tg-ui .welcome-image>img{position:relative!important;display:block;width:100%!important;height:min(76vh,780px)!important;object-fit:contain!important;object-position:center bottom!important;mask-image:none!important;-webkit-mask-image:none!important;filter:drop-shadow(0 14px 22px #0004)}
.mentor-nameplates{bottom:0!important}
.dawn-cloud-layer{position:absolute;inset:0;z-index:-2;pointer-events:none;overflow:hidden}
.dawn-cloud-layer::before,.dawn-cloud-layer::after{content:"";position:absolute;inset:2% -30% 45%;opacity:.23;background:radial-gradient(ellipse at 20% 60%,#cbd7e355,transparent 36%),radial-gradient(ellipse at 65% 45%,#dde4ed44,transparent 42%);filter:blur(20px);animation:tg-cloud-drift 32s ease-in-out infinite alternate;will-change:transform}
.dawn-cloud-layer::after{inset:25% -30% 10%;opacity:.14;animation-duration:46s;animation-direction:alternate-reverse}
.dawn-narrative.written-story{max-width:720px!important}
.dawn-narrative.written-story p{font-size:clamp(16px,1.5vw,20px)!important;line-height:1.7!important;margin:0 0 12px!important}
@keyframes tg-cloud-drift{from{transform:translate3d(-4%,0,0)}to{transform:translate3d(8%,3%,0)}}
.quiet .dawn-cloud-layer::before,.quiet .dawn-cloud-layer::after,[data-reduced-motion="true"] .dawn-cloud-layer::before,[data-reduced-motion="true"] .dawn-cloud-layer::after{animation:none}
.learning-variants{margin:24px 0;padding:20px;border:1px solid var(--op-border,#355266);border-radius:12px}
.learning-variants fieldset{margin:18px 0;padding:16px;border:1px solid var(--op-border,#355266)}
@media(max-width:760px){.objective-card{padding:10px 12px;gap:8px}.objective-card .objective-action{gap:8px}.objective-card h3{font-size:14px!important}.payment-options{gap:12px}.payment-face{padding:18px;min-height:215px}.payment-face strong{font-size:17px}.welcome-image>img{max-height:480px}.dawn-cloud-layer::before,.dawn-cloud-layer::after{filter:blur(10px)}}
@media(max-width:440px){.payment-options{grid-template-columns:1fr}.payment-face{min-height:0;display:grid;grid-template-columns:38px 1fr;align-items:center;gap:8px 14px}.payment-face svg{grid-row:1/3}.payment-face>span,.payment-selected{grid-column:2}.payment-face strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.dawn-cloud-layer::before,.dawn-cloud-layer::after{animation:none}.payment-face{transition:none}}

/* Keep the full-body illustration in normal flow on compact screens. */
@media(max-width:760px){
 html body.tg-ui .welcome-image{min-height:0!important;max-height:none!important;margin:0!important;padding-bottom:54px}
 html body.tg-ui .welcome-image>img{position:relative!important;display:block;height:auto!important;max-height:480px!important}
 html body.tg-ui .welcome-image .mentor-nameplates{bottom:0!important;left:4%;right:4%;font-size:21px}
 html body.tg-ui .welcome-copy{margin-top:0!important;padding-top:26px!important}
}
.stage-1 .commercial-panel>.price{font-size:clamp(24px,2.05vw,32px)!important;white-space:nowrap;letter-spacing:-.04em;line-height:1.3;margin-top:26px}
.effects-paused .dawn-cloud-layer::before,.effects-paused .dawn-cloud-layer::after{animation:none!important}
