@font-face{font-family:Galmuri11;src:url('/decision-gate/assets/galmuri.woff2') format('woff2');font-display:swap}
:root{color-scheme:dark;--bg:#091421;--panel:#102334;--line:#304d60;--ink:#dfede8;--muted:#8eabbc;--accent:#9de1ce}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 75% 5%,#18374755,transparent 60%),var(--bg);color:var(--ink);font:12px/1.8 Galmuri11,'Malgun Gothic',sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #e7d595}[hidden]{display:none!important}.shell{max-width:1300px;margin:auto;padding:0 30px}.top{height:94px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:21px;white-space:nowrap}.brand b{color:var(--accent);font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:2px;color:#87a7b5}.brandmark{display:grid;place-items:center;width:46px;height:46px;background:#183b43;border:1px solid #6aada8;color:#c7f4d7;font-size:28px;box-shadow:4px 4px #030c17}.top nav{display:flex;align-items:center;gap:12px;font-size:9px;color:#93b1c1}.dev-tag{padding:4px 8px;border:1px solid #5d674c;color:#d8d59a;white-space:nowrap}.game-list-button{display:inline-flex;align-items:center;padding:8px 11px;background:#162c40;border:1px solid #49677d;color:#dcefe8;font-size:10px;white-space:nowrap;box-shadow:3px 3px #030b15}.game-list-button:hover{background:#254256}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:42px;padding:44px 0 36px;align-items:center}.eyebrow{color:var(--accent);font-size:9px;letter-spacing:1px}.hero h1{font-size:35px;line-height:1.6;font-weight:400;letter-spacing:-1.5px;margin:15px 0}.hero em{color:#96ddcd;font-style:normal}.hero p{font-size:12px;line-height:2;color:#9fb8c8}.hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.hero-tags span{font-size:9px;padding:4px 9px;border:1px solid #3c5b60;color:#b3d5d4}.hero-room{height:285px;position:relative;background:linear-gradient(#203b4b55 1px,transparent 1px),linear-gradient(90deg,#203b4b55 1px,transparent 1px),#0e2030;background-size:28px 28px;border:1px solid #476474;box-shadow:6px 6px #030c16;overflow:hidden}.hero-room:before{content:'';position:absolute;inset:15px;border:1px solid #365462}.hero-room:after{content:'';position:absolute;left:50%;top:50%;width:75px;height:75px;transform:translate(-50%,-50%);border:1px dashed #4d7f8255;border-radius:50%}.mini-gate{position:absolute;display:flex;align-items:center;gap:8px;padding:7px 10px;background:#142d3d;border:1px solid #4a6372;font-size:9px;min-width:94px;justify-content:center;z-index:1}.g-top{top:23px;left:50%;transform:translateX(-50%)}.g-bottom{bottom:35px;left:50%;transform:translateX(-50%)}.g-left{left:22px;top:46%;transform:translateY(-50%)}.g-right{right:22px;top:46%;transform:translateY(-50%)}.shape{display:inline-block;width:17px;height:17px;flex:none;background:currentColor}.circle{border-radius:50%}.triangle{clip-path:polygon(50% 0,100% 100%,0 100%)}.star{clip-path:polygon(50% 0,62% 32%,98% 36%,71% 60%,79% 96%,50% 76%,21% 96%,29% 60%,2% 36%,38% 32%)}.blue{color:#79cfff}.red{color:#ff8199}.yellow{color:#f3d582}.green{color:#8de5bb}.mini-player{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);z-index:2}.mini-player img{width:40px;height:40px;image-rendering:pixelated;filter:drop-shadow(0 5px 5px #020a14)}.hero-room-note{position:absolute;bottom:10px;left:18px;right:18px;text-align:right;font-size:7px;color:#7b9ba9;letter-spacing:1px}.section-line{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:17px}.section-line h2{font-size:16px;font-weight:400;margin:0}.section-line>span{font-size:8px;color:#7f9dac;letter-spacing:1px}.difficulty-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.difficulty{position:relative;padding:21px 23px 25px;text-align:left;background:#102334;border:1px solid #345163;box-shadow:4px 4px #030c15;transition:background .12s,transform .12s}.difficulty[data-difficulty=normal]{--accent:#8fcbf0}.difficulty[data-difficulty=hard]{--accent:#e7c187}.difficulty:hover{transform:translateY(-2px);background:#172e40}.difficulty[aria-pressed=true]{border-color:var(--accent);background:linear-gradient(120deg,#1b3845,#122637)}.difficulty h3{display:flex;justify-content:space-between;align-items:center;font-size:23px;font-weight:400;color:var(--accent);margin:12px 0}.difficulty h3 b{font-size:29px;font-weight:400;opacity:.6}.difficulty p{font-size:11px;color:#a1bac9;margin:10px 0}.difficulty dl{display:flex;gap:26px;margin:18px 0 0}.difficulty dt{font-size:8px;color:#7d9dab}.difficulty dd{font-size:12px;color:#c6dfda;margin:3px 0 0}.selected{display:none;position:absolute;right:18px;top:17px;font-size:9px;color:var(--accent)}.difficulty[aria-pressed=true] .selected{display:block}.home-lower{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:33px 0}.panel{background:#102131;border:1px solid #304e61;padding:20px;box-shadow:3px 3px #050e19}.panel h3{font-weight:400}.launch,.records{padding:24px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fields label{font-size:10px;color:#a4beca}input,select{display:block;width:100%;min-width:0;padding:10px;background:#081624;border:1px solid #405d73;color:#daebe7;margin-top:6px}input:focus,select:focus{border-color:var(--accent)}button.primary,button.secondary{display:block;width:100%;border:1px solid #5a788b;background:#193348;color:#d9ece6;padding:12px 14px;box-shadow:3px 3px #030c16;text-align:center}.primary{background:#9fdfcb!important;border-color:#baf4df!important;color:#0b242b!important}.primary:hover{background:#b5eddc!important}.secondary:hover{background:#254b60}.launch>.primary,.launch>.secondary{margin-top:14px}.fine{font-size:9px;line-height:1.9;color:#87a8b8}.profile{padding:13px 15px;margin:17px 0;border:1px solid #3a5b65;background:#102c37}.profile>span{font-size:9px;color:#97bec6}.profile strong{display:block;font:15px/1.8 Consolas,monospace;color:#b4edda;letter-spacing:1px}.profile small{display:block;color:#83a6b2;font-size:8px}.practice-config{margin-top:17px}.practice-config summary,.records summary{cursor:pointer;color:#c3dbd5;font-size:10px}.practice-config .fields{margin-top:12px}.text-btn{border:0;padding:6px 0;background:transparent;color:#9dbac6;font-size:10px}.text-btn:hover{color:#d5e6da}.records ol{list-style:none;padding:0;margin:15px 0}.records li{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #2b4254;font-size:10px}.records li>b{width:24px;flex:none;color:#8ccec0;font:11px Consolas,monospace}.records li>span{flex:1;min-width:0;overflow-wrap:anywhere}.records li small{display:block;font-size:8px;color:#81a1b4}.records li strong{font-weight:400;font-size:16px;color:#ead69b;white-space:nowrap}.records details{margin-top:22px}.records details p{font-size:10px;color:#91aebf;line-height:1.9}.game-top{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:19px 0}.game-top h2{font-size:17px;font-weight:400;margin:4px 0}.game-top h2 small{display:block;color:#708f9f;font-size:8px;margin-top:4px}.stats{display:flex;gap:28px}.stats>span{font-size:9px;color:#9cb9c7}.stats b{display:block;font-size:24px;line-height:1.7;font-weight:400;color:#abe9d4;font-variant-numeric:tabular-nums}#score{color:#efda9a}#lives{font-size:19px;color:#f99caf}.actions{display:flex;gap:8px;align-items:center}.compact{width:auto!important;padding:7px 10px!important;font-size:10px!important}.signal-bar{position:relative;display:flex;align-items:center;gap:20px;min-height:51px;padding:10px 16px;background:#15303c;border:1px solid #426475;margin-bottom:15px}.signal-bar>span:first-child{font-size:10px;color:#95b4c2}.signal-bar>strong{font-weight:400;font-size:15px;color:#d6f1e3}.signal-bar #room-time{margin-left:auto;color:#ead59a;font-size:16px;font-variant-numeric:tabular-nums}.time-track{position:absolute;left:0;bottom:0;right:0;height:3px;background:#203c4d}.time-track i{display:block;height:3px;background:#9de1ce;width:100%}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:24px;align-items:start}.arena-frame{width:min(100%,calc(100dvh - 255px));min-width:280px;max-width:720px;margin:0 auto;background:#132636;border:1px solid #486476;padding:8px;box-shadow:5px 5px #030b14}.board-label,.board-foot{display:flex;justify-content:space-between;gap:8px;font-size:8px;color:#88aab9;padding:2px 3px 9px}.board-label span:first-child{color:#a9dccc}.board-foot{padding:8px 3px 1px}#board{display:block;width:100%;height:auto;aspect-ratio:1;background:#0a1421;image-rendering:pixelated;outline-offset:2px}aside{display:grid;gap:12px}aside .panel{padding:15px}.target-panel{text-align:center}.target-panel>.eyebrow{font-size:8px;letter-spacing:.4px}#target{display:block;width:200px;max-width:100%;height:140px;margin:0 auto;image-rendering:pixelated}.target-panel p{font-size:9px;color:#a0b7c4;margin:2px 0}.rule-panel h3{font-size:15px;color:#b6ecd9;line-height:1.8;margin:9px 0}.rule-panel>p{font-size:10px;color:#a3bdca}.effect{display:inline-block;padding:3px 7px;border:1px solid #655b45;background:#332e2a;color:#e9cc95;font-size:9px;margin:3px 4px 3px 0}.run-panel>div{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#93b0bf}.run-panel b{font-size:18px;font-weight:400;color:#ccded6}.run-panel p{font-size:9px;color:#d9d4a2;border-top:1px solid #2b495a;padding-top:10px;margin-bottom:0;min-height:32px}.practice-tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:18px;padding:12px;border:1px solid #716343;background:#292a29;font-size:9px;color:#e4ce99}.practice-tools>b{font-size:9px;font-weight:400}.practice-tools select{width:auto;max-width:205px;font-size:9px;padding:7px;margin:0}.practice-tools .secondary{font-size:9px!important;padding:7px!important}.practice-tools #answer{flex-basis:100%;color:#b6f1d3;font-size:12px}footer{display:flex;gap:20px;flex-wrap:wrap;font-size:8px;color:#6e8b9c;padding:26px 0}footer a:first-of-type{margin-left:auto}.overlay{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#030c17cf;backdrop-filter:blur(4px);padding:20px}.dialog{padding:30px;background:#142b3a;border:2px solid #527c87;box-shadow:7px 7px #020912;width:min(100%,530px);max-height:90dvh;overflow:auto}.dialog h2{font-size:24px;font-weight:400;margin:13px 0}.dialog p{color:#a3bfca;font-size:11px}.dialog>.primary,.dialog>.secondary{margin-top:15px}.result-score{font-size:44px;color:#b5eed7;margin:16px 0}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.result-grid span{font-size:9px;color:#98b5c1;border-top:1px solid #3d5b6c;padding-top:8px}.result-grid b{display:block;font-size:18px;color:#dcebe2;font-weight:400}.result-status{padding-top:13px;border-top:1px solid #3b596a;font-size:10px!important;color:#afd8ca!important}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#203e49;color:#e0eee4;border:1px solid #67929b;padding:12px 18px;font-size:11px;z-index:50}.practice-mode .dev-tag{border-color:#b09656;color:#ebd293}body[data-phase=play] .signal-bar{border-color:#73a99c}body[data-phase=trick] .signal-bar{border-color:#b99b66;background:#302f2b}
@media(max-width:1000px){.shell{padding:0 20px}.brand{font-size:18px}.top nav #connection{display:none}.hero{gap:25px}.hero h1{font-size:29px}.hero-room{height:250px}.g-left{left:14px}.g-right{right:14px}.difficulty{padding:18px}.difficulty dl{gap:15px}.stats{gap:17px}.stats b{font-size:20px}.play-layout{grid-template-columns:minmax(0,1fr) 210px;gap:17px}.game-top{gap:12px}.actions{flex-wrap:wrap;max-width:205px;justify-content:flex-end}.arena-frame{width:min(100%,calc(100dvh - 265px))}.target-panel>.eyebrow{font-size:7px}}
@media(max-width:720px){.shell{padding:0 13px}.top{height:80px;gap:10px}.brand{font-size:15px;gap:9px}.brandmark{width:35px;height:39px;font-size:24px}.brand small{font-size:6px;letter-spacing:1px}.dev-tag{display:none}.game-list-button{font-size:9px;padding:7px}.hero{grid-template-columns:1fr;padding:29px 0;gap:20px}.hero h1{font-size:31px;margin:13px 0}.hero-room{height:240px}.hero-tags{margin-top:15px}.g-left{left:25px}.g-right{right:25px}.difficulty-grid{grid-template-columns:1fr;gap:12px}.difficulty{padding:17px 20px}.difficulty h3{margin:7px 0;font-size:21px}.difficulty p{margin:5px 0}.difficulty dl{margin-top:12px;gap:32px}.home-lower{grid-template-columns:1fr;gap:20px;margin-top:24px}.launch,.records{padding:19px}.hero-room-note{font-size:7px}.game-top{flex-wrap:wrap;padding:16px 0}.game-top>div:first-child{min-width:100px}.stats{margin-left:auto;gap:18px}.stats b{font-size:19px}.stats #lives{font-size:16px}.actions{max-width:none;width:100%;justify-content:flex-end}.signal-bar{gap:12px;padding:9px;font-size:10px}.signal-bar>strong{font-size:13px}.signal-bar #room-time{font-size:13px}.play-layout{grid-template-columns:1fr}.arena-frame{width:100%;max-width:600px;min-width:0}aside{grid-template-columns:1fr 1fr;gap:10px}aside .run-panel{grid-column:1/-1}.target-panel{display:flex;align-items:center;flex-direction:column;justify-content:center}.target-panel .eyebrow{font-size:8px}#target{width:150px;height:105px}.rule-panel h3{font-size:13px}.rule-panel>p{font-size:9px}.run-panel{display:grid;grid-template-columns:1fr 1fr;gap:10px}.run-panel>div{justify-content:flex-start;gap:15px}.run-panel>p{grid-column:1/-1}.practice-tools select{max-width:155px}.practice-tools #answer{font-size:11px}.dialog{padding:23px}.dialog h2{font-size:20px}.result-grid b{font-size:16px}footer{gap:12px}.section-line h2{font-size:14px}.section-line>span{font-size:7px}.profile strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.difficulty{transition:none}}
/* Keep the complete decision field and practice controls in view. */
body.in-game{--board-size:max(280px,min(720px,calc(100dvh - 255px),calc(100vw - 310px)))}body.in-game.practice-mode{--board-size:max(280px,min(720px,calc(100dvh - 300px),calc(100vw - 310px)))}body.in-game .top{height:58px}body.in-game .brand{font-size:17px}body.in-game .brand small{display:none}body.in-game .brandmark{width:35px;height:35px;font-size:23px}body.in-game .play-layout{grid-template-columns:var(--board-size) 235px;justify-content:center}body.in-game .arena-frame{width:100%;min-width:0}body.in-game .practice-tools{margin:0 0 12px;padding:8px;gap:7px}body.in-game .practice-tools select{max-width:160px}body.in-game .practice-tools #answer{flex-basis:auto;font-size:10px;margin-left:auto}body.in-game aside{gap:10px}body.in-game aside .panel{padding:10px}body.in-game #target{width:120px;height:84px}body.in-game .target-panel>p{font-size:8px;line-height:1.6}body.in-game .rule-panel>.eyebrow{display:none}body.in-game .rule-panel h3{font-size:13px;margin:3px 0;line-height:1.6}body.in-game .rule-panel>p{font-size:9px;line-height:1.6;margin:5px 0}body.in-game .rule-panel #next-change{font-size:8px;margin-bottom:0}body.in-game .run-panel>div{display:inline-flex;gap:10px;width:48%}body.in-game .run-panel b{font-size:15px}body.in-game .run-panel p{font-size:8px;line-height:1.6;margin-top:6px;padding-top:6px;min-height:0}
@media(min-width:721px) and (max-width:1000px){body.in-game{--board-size:max(280px,min(720px,calc(100dvh - 265px),calc(100vw - 285px)))}body.in-game.practice-mode{--board-size:max(280px,min(720px,calc(100dvh - 330px),calc(100vw - 285px)))}body.in-game .play-layout{grid-template-columns:var(--board-size) 210px}}
@media(max-width:720px){body.in-game .play-layout{grid-template-columns:1fr}body.in-game .arena-frame{width:100%;max-width:600px}body.in-game .practice-tools #answer{flex-basis:100%;margin-left:0}body.in-game .brand{font-size:14px}body.in-game .run-panel>div{display:flex;width:auto}body.in-game .run-panel p{grid-column:1/-1}}
body.in-game .game-top{padding:12px 0}body.in-game .game-top h2{font-size:16px;line-height:1.5;margin:2px 0}body.in-game .game-top h2 small{line-height:1.5;margin-top:2px}body.in-game .game-top .eyebrow{font-size:8px}body.in-game .run-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 12px}body.in-game .run-panel>div{display:flex;width:auto;min-width:0;gap:7px;font-size:9px}body.in-game .run-panel p{grid-column:1/-1}
.signal-bar>strong{flex:1;min-width:0;line-height:1.5}.signal-bar #room-time{flex:none;white-space:nowrap}.signal-bar>span:first-child{flex:none}
.question-overlay{position:fixed;inset:0;z-index:25;display:flex;justify-content:center;align-items:center;background:#030c17db;backdrop-filter:blur(6px);padding:18px}.question-dialog{width:min(100%,620px);max-height:calc(100dvh - 36px);overflow:auto;background:linear-gradient(140deg,#183540,#102332);border:2px solid #82b4b4;box-shadow:8px 8px #020b15,0 0 70px #62cbb719;padding:27px 32px;text-align:center;outline:none}.question-kicker{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#9fc8cb;letter-spacing:1px}.question-kicker>span:first-child{color:#d8e9bc}.question-dialog h2{font-size:clamp(25px,3.5vw,36px);line-height:1.6;font-weight:400;color:#ecf9e8;margin:19px 0 8px;word-break:keep-all;overflow-wrap:normal;text-wrap:balance}.question-dialog>p{margin:8px 0}.question-dialog #question-help{font-size:13px;color:#b4d1d8}.question-object{margin:16px auto 9px}.question-object>span{display:block;font-size:10px;color:#8dabbc}.question-object canvas{display:block;width:280px;height:196px;max-width:100%;margin:0 auto;image-rendering:pixelated}.question-effects{font-size:12px;line-height:1.8;white-space:pre-line;word-break:keep-all;color:#ffe3a6;min-height:22px}.question-timing{font-size:18px;color:#afe9ce;font-variant-numeric:tabular-nums}.question-guide-track{height:4px;background:#284958;margin:13px 0}.question-guide-track i{display:block;width:100%;height:100%;background:#a4e5ce}.question-start-help{font-size:10px;line-height:1.9;color:#91afbe}.question-practice{display:flex;justify-content:center;gap:10px;margin-top:16px}.question-practice button{font-size:10px!important}
@media(max-height:680px){.question-dialog{padding:17px 24px}.question-dialog h2{font-size:26px;line-height:1.5;margin:10px 0 5px}.question-dialog #question-help{font-size:11px}.question-object{margin:6px auto}.question-object canvas{width:200px;height:140px}.question-effects{margin:3px 0!important}.question-timing{font-size:16px;margin:5px 0!important}.question-guide-track{margin:9px 0}.question-practice{margin-top:9px}.question-start-help{font-size:9px}.question-kicker{font-size:9px}}
@media(max-width:480px){.question-dialog{padding:18px}.question-dialog h2{font-size:25px}.question-dialog #question-help{font-size:11px}.question-object canvas{width:220px;height:154px}.question-kicker{font-size:9px}}
