.gm-board { --cols: 14; container-type: inline-size; display: grid; grid-template-rows: 1fr 18px 1fr; height: clamp(340px, 78vw, 520px); margin-top: 8px; padding: 10px; border-radius: 16px; background: #5b3818; box-shadow: var(--shadow-lg), inset 0 0 0 6px #3e260f; user-select: none; -webkit-user-select: none; }
.gm-row { display: grid; grid-template-columns: repeat(6, 1fr) .8fr repeat(6, 1fr) .9fr; gap: 0 2px; background: #2f6b4f; border-radius: 8px; overflow: hidden; }
.gm-mid { }
.gm-pt { position: relative; display: flex; flex-direction: column; align-items: center; cursor: default; padding: 2px 0; }
.gm-pt::before { content: ""; position: absolute; left: 4%; right: 4%; top: 0; height: 84%; background: #e7d3a8; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.gm-pt.odd::before { background: #b5462f; }
.gm-pt.bottom { flex-direction: column-reverse; }
.gm-pt.bottom::before { top: auto; bottom: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.gm-num { position: relative; z-index: 1; font-size: .62rem; font-weight: 800; color: rgba(255, 255, 255, .6); line-height: 1; padding: 1px 0; }
.gm-stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.gm-pt.bottom .gm-stack, .gm-bar.bottom { flex-direction: column-reverse; }
.gm-chk { display: grid; place-items: center; width: min(5.6cqw, 34px); aspect-ratio: 1; border-radius: 50%; margin: -1px 0; font-size: .7rem; font-weight: 800; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .4); }
.gm-chk.w { background: radial-gradient(circle at 35% 30%, #fff, #e9e3d4); color: #333; }
.gm-chk.b { background: radial-gradient(circle at 35% 30%, #555, #1b1b1b); color: #fff; }
.gm-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; padding-top: 4px; background: #3e260f; }
.gm-bar.bottom { justify-content: flex-start; padding: 0 0 4px; }
.gm-off { display: grid; place-content: center; justify-items: center; gap: 2px; background: #3e260f; color: #fff; }
.gm-off b { font: 800 1.2rem var(--font-display); }
.gm-off small { font-size: .65rem; opacity: .7; }
.gm-pt.can, .gm-bar.can { cursor: pointer; }
.gm-pt.can .gm-stack .gm-chk:last-child, .gm-pt.bottom.can .gm-stack .gm-chk:last-child, .gm-bar.can .gm-chk:last-child { box-shadow: 0 0 0 3px #f2b705, inset 0 -3px 0 rgba(0, 0, 0, .25); }
.gm-pt.sel { background: rgba(242, 183, 5, .25); }
.gm-pt.target, .gm-off.target { background: rgba(127, 224, 181, .35); cursor: pointer; }
.gm-pt.target::after { content: ""; position: absolute; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #7fe0b5; transform: translateX(-50%); bottom: 40%; z-index: 2; }
.gm-pt.bottom.target::after { bottom: auto; top: 40%; }
.gm-pt:focus-visible, .gm-off:focus-visible { outline: 3px solid #f2b705; outline-offset: -3px; }
.gm-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.gm-dice { display: flex; gap: 8px; min-height: 48px; align-items: center; }
.gm-die { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #fffdf8; border: 2px solid var(--line-strong); font: 800 1.4rem var(--font-display); color: #14211e; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.gm-die.used { opacity: .35; }
@media (max-width: 560px) { .gm-board { padding: 6px; border-radius: 10px; margin-inline: -8px; } .gm-num { font-size: .5rem; } .gm-chk { font-size: .55rem; } }
