.workspace{grid-template-columns:minmax(0,1fr) minmax(0,.85fr)}.preview{background:#302b25;align-self:start}.bar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin:.6rem 0}.bar h2{margin:0}#board,#tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}#board{padding:10px;background:#aa835d;border:5px solid #75563f;border-radius:14px;max-width:465px;margin:auto}#board button,#tray button{display:grid;place-items:center;aspect-ratio:1;padding:0;position:relative;min-width:0;border-radius:6px}#board button{background:radial-gradient(circle,#795a41 53%,#9b7856 54%)}#board button.selected{outline:3px dashed #ffe2a0;outline-offset:-4px}#board button.win{box-shadow:inset 0 0 0 4px #9ff2ad}#tray{max-width:280px;margin:auto}#tray button{background:#3e3830;border:1px solid #625546}#tray button.used{opacity:.15}#tray button[aria-pressed=true]{outline:2px solid #f9ba62}.piece{display:grid;place-items:center;width:56%;height:54%;border-radius:50%;background:linear-gradient(135deg,#ffe6b6,#d4af76);box-shadow:0 3px #947047,0 4px 3px #0006;position:relative;color:#423321}.piece.dark{background:linear-gradient(135deg,#5e554d,#322e2b);box-shadow:0 3px #201c19,0 4px 3px #0006;color:#f4dfbf}.piece.square{border-radius:9%}.piece.high{transform:translateY(-7%);box-shadow:0 .35em #8b6b48,0 .5em #765637,0 .56em 2px #0006}.piece.high.dark{box-shadow:0 .35em #332b25,0 .5em #211b17,0 .56em 2px #0006}.piece.hole:before{content:'';width:32%;aspect-ratio:1;background:#514132;border-radius:50%;box-shadow:inset 1px 2px 2px #1a130e}.piece.dark.hole:before{background:#151311;border:1px solid #766d5b}.piece b{font-size:clamp(.55rem,1.6vw,.78rem);position:absolute;bottom:-.25rem;right:-.3rem;background:#132020;color:white;border-radius:3px;padding:1px 3px}#status,#pieceInfo{color:#edcf9d}.plan{margin-top:1rem}.plan a{color:#efc18b}@media(max-width:680px){.workspace{grid-template-columns:minmax(0,1fr)}#board{max-width:325px}#tray{max-width:240px}.controls{padding:1rem}}

/* 다듬기 */
.rules{padding-left:1.2rem;color:var(--text-2);font-size:.95rem}.rules li{margin:.35rem 0}
.controls label{display:block}.controls select{width:100%}
#status{font-weight:600;min-height:1.6em}
#tray button:not(:disabled):not(.used){border-color:#a88b62}
:root[data-theme="light"] .preview{background:#efe6d8}
:root[data-theme="light"] #status,:root[data-theme="light"] #pieceInfo{color:#7a4a12}
:root[data-theme="light"] #tray button{background:#e9dfcf;border-color:#cdb99a}
