.workspace{grid-template-columns:minmax(0,1.45fr) minmax(210px,.7fr);align-items:start}.preview,.controls{min-width:0}.bar{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.bar h2{margin-right:auto}.bar button{flex:0 1 auto}#board{margin:1rem auto;display:grid;gap:3px;max-width:520px;background:#17252b;padding:.55rem;border-radius:.65rem;aspect-ratio:var(--ratio);align-items:stretch}#board .clue{display:grid;place-content:center;line-height:1;font-size:clamp(.7rem,2vw,1rem);font-weight:700;border-radius:.25rem}.pos{color:#ffad9e}.neg{color:#a0d7ea}.clue.bad{outline:2px solid #ffb727;background:#573a23}.clue.met{background:#2e4348}.piece{appearance:none;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;align-items:stretch;font:700 clamp(.85rem,4vw,1.7rem)/1 system-ui;border:1.5px solid #8ea6ac;border-radius:.5rem;padding:0;background:#34444b;color:#a9b9bd;overflow:hidden;min-width:0;min-height:0}.piece.vertical{grid-auto-flow:row;grid-template-rows:1fr 1fr}.piece span{display:grid;place-items:center}.piece span+span{border-left:1px dashed #62747c}.piece.vertical span+span{border-left:0;border-top:1px dashed #62747c}.piece .plus{color:#401f1a;background:#ee9a89}.piece .minus{color:#163945;background:#9ed4e4}.piece .empty{color:#d4dbd9;background:#495957;font-size:.75em}.piece.clash{outline:3px solid #efb63e;outline-offset:-3px}.piece:focus-visible{outline:3px solid #fff;z-index:1}.pluskey,.legend b{color:#f0a295}.minuskey,.legend strong{color:#a0d7ea}.legend{text-align:center}.legend span{color:#cad2ca}#status{min-height:1.5em}#progress{font-variant-numeric:tabular-nums}.controls details{margin-top:1rem}@media(max-width:720px){.workspace{grid-template-columns:minmax(0,1fr)}}

#status.win{color:var(--accent);font-weight:700}.controls .bar{margin-top:.9rem}.legend span{color:var(--text-2)}
:root[data-theme="light"] .legend b{color:#c2412d}:root[data-theme="light"] .legend strong{color:#1d6f8c}

/* 밝은 테마: 공용 입력 칸의 어두운 바탕(#0f0f13)이 밝은 테마에서도 남아 글자가 안 보이던 것, 강조색 단추 위 글자 */
:root[data-theme="light"] :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),select,textarea){background:#fff;color:var(--text)}
:root[data-theme="light"] button.primary{color:#fff}
