/* Readable Korean type and a phone-first game layout. Self-hosted SIL OFL font. */
@font-face{font-family:WindSUIT;src:url('assets/SUIT-Variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--font-ui:WindSUIT,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;font-family:var(--font-ui);font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%;--ink:#f3f4ef;--muted:#bdc9ca}
body{font-family:var(--font-ui);line-height:1.65;letter-spacing:-.015em}
button,input{font-family:var(--font-ui)}
button{touch-action:manipulation}
h1,h2,h3,p,label,button{word-break:keep-all;overflow-wrap:anywhere}
.brand{font-family:var(--font-ui);font-weight:800;letter-spacing:-.04em;font-size:23px}
.brand b{font-weight:800}.brand small{font-family:var(--font-ui);font-size:11px;line-height:1.6;font-weight:500;letter-spacing:.01em}
.event-label,.eyebrow,.chapter-label{font-size:14px;letter-spacing:.02em;line-height:1.6}
.eyebrow{font-weight:700}.chapter-label{margin:22px 0 12px;color:#c8d3d4}
.hero-copy{max-width:540px}.hero-copy h1{font-family:var(--font-ui);font-size:clamp(68px,7.3vw,112px);font-weight:850;line-height:.94;letter-spacing:-.065em;text-shadow:0 4px 24px #0004}
.hero-copy h1>em{font-family:var(--font-ui);font-style:normal;font-size:23px;line-height:1.5;letter-spacing:-.025em;font-weight:650;margin-top:24px}
.hero-description{font-size:17px;line-height:1.8;margin:22px 0;max-width:420px}
.facts{gap:22px}.facts>span,.facts b{font-size:15px}.facts b{font-weight:750}.facts svg{width:20px;height:20px}
#start-form{max-width:410px}label[for=player-name]{display:block;font-size:16px;font-weight:700;line-height:1.5;margin-bottom:12px}
label[for=player-name] span{display:block;margin-top:5px;font-size:13px;font-weight:450;color:#bdc9ca}
.name-wrap{min-height:60px;border-radius:10px}.name-wrap input{font-size:17px;line-height:1.5}
.primary,.secondary{border-radius:10px;min-height:52px;font-size:16px;line-height:1.5;gap:12px;font-weight:700}
.fineprint{font-size:14px;line-height:1.75}.form-error{font-size:15px;line-height:1.6;min-height:0;margin:8px 0}.form-error:empty{display:none}.start-button{margin-top:14px}
.text-button,.nav-rank{font-size:15px;line-height:1.6}.text-button{font-weight:600}.world-caption{font-size:13px;letter-spacing:.03em}.world-caption>span:last-child{font-size:12px;letter-spacing:0}.coordinate{font-size:11px}.wind-badge div{font-size:16px}.wind-badge small{font-size:13px}.art-label b{font-size:14px;letter-spacing:0}
.voyage-strip p{font-size:16px;font-weight:650}.voyage-strip small{font-size:13px;font-weight:450}.voyage-strip>div>span{font:600 14px var(--font-ui)}
footer,footer .storage-label{font-size:12px;line-height:1.6}footer button{font-size:14px;min-height:44px;padding:8px 12px}
.sailor>span{font-size:17px;font-weight:700;max-width:220px}.sailor small,.hud-stat small{font-size:13px}.hud-stat b{font-family:var(--font-ui);font-size:30px;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.hull b{font-family:var(--font-ui);font-size:22px;letter-spacing:3px}
.stage-track li{font-size:14px;font-weight:600;line-height:1.4;border-radius:8px;padding:13px 12px}.stage-track li span{font:750 15px var(--font-ui)}
.scene-topline{font-size:14px}.live-mark{font-size:11px;letter-spacing:.02em}.scene-bottom{font-size:12px}.scene-bottom>span:last-child{font-size:11px;letter-spacing:0}.scene-legend{font-size:13px;line-height:1.65}
.mission-panel h2{font-family:var(--font-ui);font-size:32px;line-height:1.4;font-weight:750;letter-spacing:-.035em;margin:12px 0}
.mission-story{font-size:16px;line-height:1.8;margin-bottom:22px;color:#c2ced0}.question{font-size:20px;font-weight:700;line-height:1.65;margin-bottom:18px}.step-label{font-size:14px;font-weight:650;letter-spacing:0}
.choices{gap:12px}.choice{font-size:17px;line-height:1.55;min-height:62px;padding:14px 16px;border-radius:10px}.choice .letter{font:700 14px var(--font-ui);width:30px;height:30px;border-radius:6px}.choice.wrong:after{content:'✕';margin-left:auto;flex-shrink:0}.choice.correct:after{content:'✓';margin-left:auto;flex-shrink:0}
.mission-bottom{flex-wrap:wrap;gap:8px;font-size:13px}.hint-btn{font-size:15px;min-height:48px;padding:8px 4px}.hint-btn>span{font-size:13px}.hint-content,#feedback{font-size:16px;line-height:1.75}.continue-button{font-size:16px;min-height:54px}.puzzle-note{font-size:14px;line-height:1.75}.game-note{font-size:13px;line-height:1.7}
.angle-readout b{font:750 48px var(--font-ui);font-variant-numeric:tabular-nums}.angle-readout label{font-size:16px}.angle-readout span{font-size:12px}.range-labels{font-size:13px}.meter-label{font-size:15px}.meter-label b{font-size:22px}
input[type=range]{height:48px;min-height:48px;touch-action:pan-y}
.angle-controls{display:flex;gap:12px;margin:0 0 20px}.angle-controls button{flex:1;font-size:17px;min-height:48px}
.route-slot{font-size:16px;height:54px;border-radius:8px}.route-buttons{gap:10px}.route-buttons button{font-size:15px;line-height:1.5;min-height:78px;border-radius:10px;padding:12px 4px}.route-actions>.primary{font-size:16px;min-height:52px}
.scene-toggle{display:none}
.result h1{font-family:var(--font-ui);font-size:38px;font-weight:750;letter-spacing:-.035em;line-height:1.4}.result-subtitle{font-size:17px;line-height:1.8}.result-score{font:800 72px/1.15 var(--font-ui);font-variant-numeric:tabular-nums;letter-spacing:-.045em}.result-score small{font:500 14px/1.5 var(--font-ui);letter-spacing:0}.result-stats small{font-size:14px}.result-stats>div{font-size:23px;font-weight:650;font-variant-numeric:tabular-nums}.result-table table,.leader-table{font-size:15px}.result-table th,.leader-table th{font-weight:600}.result-table td,.leader-table td{font-variant-numeric:tabular-nums}
dialog{width:min(760px,calc(100% - 32px));max-height:88svh;padding:28px;border-radius:16px;scrollbar-gutter:stable;overscroll-behavior:contain}.modal-top{margin-bottom:20px}.modal-top>.eyebrow{font-size:13px;letter-spacing:.03em}.modal-top .icon-btn{min-width:44px;min-height:44px}dialog h2{font-size:28px;font-weight:750;line-height:1.4}dialog p,dialog li{font-size:16px;line-height:1.8}.leader-note{font-size:14px!important;line-height:1.75}.empty-state{font-size:16px;line-height:1.8}.rules-grid div{font-size:16px}.rules-grid small{font-size:14px}.operator-stat{flex-wrap:wrap;gap:12px 20px;font-size:15px}.op-status,.storage-warning{font-size:15px}.sound-previews{gap:12px}
@media(min-width:761px) and (max-width:1100px){.hero-copy h1{font-size:clamp(64px,8vw,84px)}.game-layout{grid-template-columns:1fr 1.05fr}.game-hud{gap:20px}.mission-panel{padding:26px 22px}.question{font-size:18px}.choice{font-size:16px}.stage-track li{font-size:13px}}
@media(max-width:760px), (max-width:1000px) and (max-height:500px){
 html{scroll-padding-top:126px}body{padding-bottom:env(safe-area-inset-bottom)}
 .topbar{height:auto;min-height:72px;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));gap:8px}.brand{font-size:17px;gap:8px}.brand>svg{width:30px;height:30px}.brand small{font-size:10px;letter-spacing:0}.topbar nav{gap:8px}.topbar .icon-btn{min-width:44px;min-height:44px}.nav-rank span{display:none}.nav-rank{min-width:44px;min-height:44px;justify-content:center}.topbar svg{width:19px;height:19px}#motion-btn{display:grid}
 .lobby{padding:32px max(20px,env(safe-area-inset-left)) 0;grid-template-columns:minmax(0,1fr);overflow:hidden}.hero-copy{padding:0 0 20px}.hero-copy>.eyebrow{font-size:13px;letter-spacing:.01em}.chapter-label{font-size:14px;letter-spacing:0;margin:18px 0 14px}.hero-copy h1{font-size:clamp(62px,17.3vw,94px);line-height:.95;letter-spacing:-.07em}.hero-copy h1>em{font-size:20px;line-height:1.5;margin-top:20px;letter-spacing:-.025em}.hero-description{font-size:16px;line-height:1.75;max-width:100%;margin:18px 0}.facts{gap:20px;margin:20px 0}.facts>span,.facts b{font-size:14px}
 .environment-shade{background:linear-gradient(90deg,#0b151ee8,#0b151e83),linear-gradient(0deg,#0b151ef5 8%,#0b151e9c 55%,#0b151e30)}
 .hero-world{display:none}#start-form{margin-top:26px;max-width:none}.name-wrap{min-height:60px}.name-wrap input{font-size:17px}.fineprint{font-size:13px;line-height:1.75}.primary,.secondary{min-height:54px;font-size:16px}.text-button{font-size:14px}.hero-copy #rules-btn{margin-top:2px;min-height:48px}.voyage-strip{gap:20px 12px;padding:20px 16px;border-radius:12px}.voyage-strip>div{gap:10px;padding-left:0;border:0}.voyage-strip svg{width:22px;height:22px}.voyage-strip p{font-size:15px}.voyage-strip small{font-size:12px;margin-top:3px}
 footer{padding:18px 20px max(18px,env(safe-area-inset-bottom));gap:8px 12px;align-items:center}footer>span:first-child{display:none}footer .storage-label{font-size:12px}footer button{font-size:14px;margin-left:auto}
 .play{padding:12px 12px 0}.game-hud{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:10px 12px;padding:10px 12px;position:sticky;top:0;z-index:8;border-radius:12px;background:#101f29f7;box-shadow:0 6px 20px #0004;backdrop-filter:none}.sailor{grid-column:1/3;order:0;min-width:0;width:auto;margin:0;gap:8px}.sailor>span{font-size:15px;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sailor>svg{width:17px;height:17px}.sailor small{display:none}.game-hud>#quit-btn{grid-column:3;grid-row:1;order:0;min-width:0;min-height:44px;justify-self:end;font-size:13px;padding:4px 0;margin:0}.hud-stat{order:0;min-width:0;gap:3px}.hud-stat small{font-size:12px}.hud-stat b{font-size:25px;line-height:1.15}.hull b{font-size:19px;letter-spacing:2px}
 .stage-track{gap:6px;margin:12px 0}.stage-track li{flex-direction:column;text-align:center;font-size:12px;line-height:1.4;gap:4px;padding:10px 2px;justify-content:center}.stage-track li span{font:750 13px var(--font-ui)}
 .game-layout{display:block;min-height:0;border-radius:14px;overflow:hidden}.mission-panel{padding:22px 18px 18px;min-height:0;border:0;box-shadow:none}.mission-panel:before{display:none}.mission-panel .eyebrow{font-size:13px;letter-spacing:0}.mission-panel h2{font-size:27px;line-height:1.4;margin:9px 0 12px}.mission-story{font-size:15px;line-height:1.7;margin-bottom:16px}.question{font-size:18px;line-height:1.65;margin:0 0 16px}.step-label{font-size:13px;margin-bottom:10px}.choices{gap:10px}.choice{min-height:60px;padding:12px 14px;font-size:17px;gap:12px}.choice .letter{width:28px;height:28px;font-size:14px}
 .scene-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:10px 14px;margin:0 0 20px;background:#223943;border:1px solid #9cb3b85e;border-radius:9px;color:#e4e9e4;font:650 15px/1.5 var(--font-ui);text-align:left}.scene-toggle:after{content:'+';font-size:23px;color:var(--gold);line-height:1}.scene-toggle[aria-expanded=true]:after{content:'−'}
 .mission-panel .scene-panel{height:360px;min-height:0!important;border:1px solid #8aa6aa55;border-radius:10px;margin:0 0 22px}.mission-panel .scene-panel[data-stage=structure]{height:400px}.scene-topline{font-size:13px;padding:12px}.live-mark{display:none}.scene-bottom{height:37px;font-size:11px;padding:8px 12px}.scene-legend{left:10px;right:10px;bottom:47px;font-size:12px;padding:7px 9px;line-height:1.6}.scene-toggle:focus-visible{outline-offset:3px}
 .mission-bottom{padding-top:12px;margin-top:20px;gap:6px;align-items:flex-start}.hint-btn{font-size:15px;min-height:48px;padding:8px 0}.hint-btn>span{font-size:13px}#attempt-text{font-size:12px;line-height:1.65;align-self:center}#feedback,.hint-content{font-size:16px;line-height:1.75}.continue-button{font-size:16px;min-height:54px}.puzzle-note{font-size:13px;line-height:1.75}.game-note{font-size:12px;padding:16px 4px}
 .angle-readout b{font-size:44px}.angle-readout label{font-size:15px}.angle-readout span{font-size:11px}.range-labels{font-size:13px}.meter-label{font-size:14px}.route-buttons button{font-size:14px;min-height:80px}.route-slot{font-size:15px}.route-actions{gap:10px}.route-actions>.primary{font-size:15px}
 .result{margin:16px 12px;padding:28px 18px;border-radius:14px}.result h1{font-size:28px;line-height:1.4}.result-subtitle{font-size:16px;line-height:1.75}.result .eyebrow{font-size:13px}.result-score{font-size:64px}.result-score small{display:block;margin:8px 0;font-size:13px}.result-stats{gap:18px;justify-content:space-between}.result-stats>div{font-size:22px}.result-stats small{font-size:12px}.result-table table{font-size:13px}.result-table th,.result-table td{font-size:13px;padding:12px 8px}.result-actions{flex-direction:column;gap:12px}
 dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:90svh;max-height:90dvh;padding:20px 20px max(24px,env(safe-area-inset-bottom));border-radius:22px 22px 0 0;border-bottom:0;scrollbar-gutter:auto}.modal-top{margin-bottom:18px}.modal-top>.eyebrow{font-size:12px}.modal-top .icon-btn{min-width:44px;min-height:44px}dialog h2{font-size:26px}dialog p,dialog li{font-size:15px;line-height:1.8}.leader-note{font-size:13px!important}.leader-table{font-size:14px}.leader-table th,.leader-table td{padding:14px 6px;line-height:1.5}.leader-table td:nth-child(2){max-width:110px}.leader-table th:last-child,.leader-table td:last-child{display:none}.empty-state{font-size:16px;padding:28px 12px}.rules-grid{grid-template-columns:1fr;gap:10px}.rules-grid div{font-size:16px;padding:15px}.rules-grid small{font-size:14px}.modal-actions{flex-direction:column;gap:12px}.modal-actions>button{width:100%}.operator-stat{font-size:14px;gap:10px 14px}.sound-previews button{min-width:84px;font-size:14px}.storage-warning{font-size:14px;max-width:calc(100% - 24px);bottom:max(12px,env(safe-area-inset-bottom))}
}
@media(max-width:359px){.brand{font-size:15px}.brand>svg{display:none}.brand small{font-size:9px}.topbar nav{gap:6px}.lobby{padding-left:16px;padding-right:16px}.mission-panel{padding-left:14px;padding-right:14px}.hero-copy h1{font-size:62px}.facts{gap:14px}.sailor>span{font-size:14px}.stage-track li{font-size:11px}.route-buttons button{font-size:13px}.route-actions .secondary{padding-left:12px;padding-right:12px}}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){.lobby{max-width:640px;margin:auto}.hero-copy h1{font-size:64px}.game-hud{position:relative}.play{max-width:720px;margin:auto}dialog{max-height:94dvh}.mission-panel .scene-panel{height:320px}.mission-panel .scene-panel[data-stage=structure]{height:390px}}
