:root{--bg:#101216;--card:#191c23;--raised:#232731;--line:#333946;--text:#eef0f4;--muted:#8f97a6;--red:#e5484d;--yellow:#f2c230;--green:#2fb56a;--on-yellow:#2b2200;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{background:var(--bg);min-height:100%;color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font-family:Pretendard,system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:15px;line-height:1.5}h1,h2,h3,p{margin:0}h3{color:var(--muted);font-size:14px;font-weight:600}button,input{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);background:var(--raised);touch-action:manipulation;border-radius:10px;padding:10px 14px}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--green);border-color:var(--green);color:#04200f;font-weight:700}button.danger{background:var(--red);border-color:var(--red);color:#fff}button.ghost{color:var(--muted);background:0 0;border-color:#0000}button.small,.small{font-size:13px}input{background:var(--bg);border:1px solid var(--line);border-radius:10px;width:100%;padding:10px 12px}:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}.muted{color:var(--muted)}.center{text-align:center}.app{max-width:480px;min-height:100dvh;padding:0 14px calc(14px + env(safe-area-inset-bottom));flex-direction:column;margin:0 auto;display:flex}.top{padding:calc(10px + env(safe-area-inset-top)) 0 10px;border-bottom:1px solid var(--line);grid-template-columns:44px 1fr 44px;align-items:center;display:grid}.top h1{text-align:center;letter-spacing:-.02em;font-size:18px}.top button{padding:6px;font-size:18px}main{flex-direction:column;flex:1;display:flex}.screen{flex-direction:column;flex:1;gap:12px;padding-top:14px;display:flex}.subhead{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.lights{justify-content:center;gap:3px;display:inline-flex}.lights i,.dot,.online{border-radius:50%;width:9px;height:9px;display:inline-block}.r{background:var(--red)}.y{background:var(--yellow)}.g{background:var(--green)}.home{justify-content:center;gap:14px;padding-bottom:12vh}.lead{text-align:center;color:var(--muted);margin-bottom:6px}.mode{text-align:left;background:var(--card);border-radius:16px;align-items:center;gap:14px;padding:16px;display:flex}.mode>span:last-child{flex-direction:column;display:flex}.mode b{font-size:17px}.mode small{color:var(--muted);font-size:13px}.mode em{color:var(--green);margin-top:4px;font-size:13px;font-style:normal}.mode-icon{color:#fff;border-radius:50%;flex:none;place-items:center;width:52px;height:52px;font-weight:800;display:grid}.mode-icon.g{color:#04200f}.board{flex-direction:column;gap:5px;display:flex}.board.scroll{max-height:38dvh;padding-right:2px;overflow-y:auto}.row{flex:none;grid-template-columns:repeat(9,minmax(0,1fr));gap:5px;display:grid}.row.missed{text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:8px;padding:8px;font-size:13px;display:block}.tile{aspect-ratio:1;border:2px solid var(--line);min-width:0;color:var(--text);font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none;background:0 0;border-radius:8px;place-items:center;padding:0;font-size:clamp(18px,5.6vw,26px);font-weight:800;line-height:1;display:grid}.tile.filled{border-color:#5b6373}.tile.cursor{border-color:var(--text);box-shadow:inset 0 -3px 0 var(--text)}.tile.secret{background:var(--raised);border-color:var(--raised)}.tile.pending{color:var(--muted);border-style:dashed}.tile.g,.key.g{background:var(--green);border-color:var(--green);color:#04200f}.tile.y,.key.y{background:var(--yellow);border-color:var(--yellow);color:var(--on-yellow)}.tile.r,.key.r{background:var(--red);border-color:var(--red);color:#fff}.tile.reveal{animation:.5s both flip}@keyframes flip{0%,49%{color:var(--text);background:0 0;border-color:#5b6373}0%{transform:rotateX(0)}49%,50%{transform:rotateX(90deg)}to{transform:rotateX(0)}}.shake{animation:.35s shake}@keyframes shake{25%{transform:translate(-6px)}50%{transform:translate(6px)}75%{transform:translate(-3px)}}.notice{text-align:center;min-height:22px;color:var(--muted);font-size:14px}.notice.bad{color:#ff8a8e}.notice.good{color:var(--green)}.keypad{flex-direction:column;gap:6px;margin-top:auto;display:flex}.keys{gap:5px;display:grid}.keys.digits{grid-template-columns:repeat(10,1fr)}.keys.ops{grid-template-columns:repeat(6,1fr) 1.6fr}.key{border-radius:8px;height:48px;padding:0;font-size:20px;font-weight:700}.key.r{opacity:.55}.submit{height:48px;font-size:16px}.result{background:var(--card);border:1px solid var(--line);text-align:center;border-radius:16px;flex-direction:column;gap:12px;padding:16px;display:flex}.appear{animation:.4s .6s both appear}@keyframes appear{0%{opacity:0;transform:translateY(8px)}}.result h2{font-size:22px}.win{color:var(--green)}.lose{color:#ff8a8e}.answer{font-variant-numeric:tabular-nums;letter-spacing:.08em;color:var(--text)}.stats{grid-template-columns:repeat(4,1fr);display:grid}.stats div{flex-direction:column;display:flex}.stats b{font-size:22px}.stats span{color:var(--muted);font-size:12px}.dist{text-align:left;flex-direction:column;gap:4px;display:flex}.dist-row{align-items:center;gap:8px;font-size:13px;display:flex}.dist-row span{width:10px;color:var(--muted)}.bar{background:var(--raised);text-align:right;border-radius:4px;padding:1px 8px;font-weight:700}.bar.me{background:var(--green);color:#04200f}.actions{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.panel{background:var(--card);border:1px solid var(--line);border-radius:16px;flex-direction:column;gap:12px;padding:16px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field>span{color:var(--muted);font-size:13px}.choices{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.choice.on{border-color:var(--green);color:var(--green);font-weight:700}.join{gap:8px;display:flex}.join button{flex:none}.code{letter-spacing:.18em;font-variant-numeric:tabular-nums;font-size:40px;font-weight:800}.panel .small{word-break:break-all}.scoreboard{grid-template-columns:1fr 1fr;gap:8px;display:grid}.player{background:var(--card);border:1px solid var(--line);border-radius:10px;align-items:center;gap:6px;min-width:0;padding:8px 10px;display:flex}.player.empty{color:var(--muted);border-style:dashed;font-size:13px}.player .name{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:14px;overflow:hidden}.player .ready{color:var(--green);font-weight:800}.online{background:#4a5160;flex:none}.online.on{background:var(--green)}.timer{font-variant-numeric:tabular-nums;font-weight:700}.timer.off{color:var(--muted);font-size:13px;font-weight:400}.timer.hurry{color:#ff8a8e}.tabs{grid-template-columns:1fr 1fr;gap:6px;display:grid}.tab{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;background:0 0;padding:7px;font-size:13px;overflow:hidden}.tab.on{background:var(--raised);color:var(--text);font-weight:700}.side{flex-direction:column;gap:8px;display:none}.side.on{display:flex}.confirm{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;font-size:13px;display:flex}.confirm button{padding:6px 12px}@media (width>=900px){.app:has(.boards){max-width:920px}.tabs{display:none}.boards{grid-template-columns:1fr 1fr;gap:24px;display:grid}.side{display:flex}:is(.app:has(.boards) .keypad,.app:has(.boards) .result){width:100%;max-width:452px;margin-left:auto;margin-right:auto}}.modal-back{z-index:10;background:#0009;place-items:center;padding:14px;display:grid;position:fixed;inset:0}.modal{background:var(--card);border:1px solid var(--line);border-radius:16px;flex-direction:column;gap:10px;width:100%;max-width:460px;max-height:88dvh;padding:16px;display:flex;overflow-y:auto}.modal-head{justify-content:space-between;align-items:center;display:flex}.modal h3{color:var(--text);margin-top:8px}.modal ul{margin:0;padding-left:18px}.modal ul.legend{padding:0;list-style:none}.example{grid-template-columns:auto 1fr;align-items:center;gap:5px 8px;display:grid}.example-label{color:var(--muted);font-size:12px}.example p{color:var(--muted);grid-column:1/-1;font-size:13px}.example .tile{font-size:17px}@media (prefers-reduced-motion:reduce){.tile.reveal,.shake,.appear{animation:none}}
