.gb-board{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));width:100%;max-width:29rem;margin:1rem auto;gap:2px;box-sizing:border-box;touch-action:manipulation}
.gb-board .cell{position:relative;display:grid;place-items:center;line-height:1;min-width:0;min-height:0;width:100%;aspect-ratio:1;padding:0;margin:0;border-radius:3px;box-sizing:border-box;opacity:1;overflow:hidden}
.gb-board .cell:focus-visible,.gb-peg:focus-visible{outline:3px solid #066eaf;outline-offset:-3px;z-index:2}
.gb-controls{display:flex;gap:.45rem;flex-wrap:wrap;justify-content:center;margin:.8rem 0}
.gb-controls .selected{background:#26364c;color:#fff}
.gb-stats{display:flex;gap:.45rem 1rem;flex-wrap:wrap;justify-content:center;align-items:center}
.gb-stats .stat{display:inline-flex;gap:.3rem;align-items:baseline;font-variant-numeric:tabular-nums}
.gb-stats .stat small{font-size:.85rem;color:#555f70}
.gb-note,.gb-history{text-align:center;line-height:1.5;overflow-wrap:anywhere}
.gb-board button:disabled{cursor:default}
.gb-mines{max-width:24rem;background:#c5d0d8;border:2px solid #c5d0d8;gap:1px}
.gb-mines .cell{font:700 clamp(.85rem,3.8vw,1.2rem)/1 system-ui;border:0;border-radius:0}
.gb-mines .closed{background:#e0e7ec;box-shadow:inset 1px 1px #fcfdff,inset -2px -2px #b4c2cc}
.gb-mines .opened{background:#f6f8fa;color:#20384f;box-shadow:none}
.gb-mines .flagged{color:#903b32}.gb-mines .exploded{background:#f1afa1}
.gb-mines .mine-n1{color:#245989}.gb-mines .mine-n2{color:#28633b}.gb-mines .mine-n3{color:#a13f37}.gb-mines .mine-n4{color:#5f458c}
.gb-merge{max-width:22rem;gap:.36rem;padding:.45rem;border-radius:.6rem;background:#c0c7cb}
.gb-merge .tile{border:0;background:#e4e8e9;color:#f9fafb;font:bold clamp(1.2rem,5.6vw,2rem)/1 system-ui;border-radius:.32rem}
.gb-merge .t2{background:#f5f5ef;color:#434c50}.gb-merge .t4{background:#e2e9d6;color:#3c4c3c}.gb-merge .t8{background:#c4dfc5;color:#294b34}.gb-merge .t16{background:#a9cfc0;color:#234638}.gb-merge .t32{background:#78ae93;color:#143a29}.gb-merge .t64{background:#4e886c}.gb-merge .t128,.gb-merge .t256{background:#346b62}.gb-merge .t512,.gb-merge .t1024,.gb-merge .t2048{background:#234855}
.gb-nonogram{max-width:22rem;gap:2px;background:#c8d3d8;padding:2px}
.gb-nonogram .cell{background:white;border:0;border-radius:0}
.gb-nonogram .ng-filled{background:#344657}.gb-nonogram .ng-cross{color:#647789;font:500 1.2rem/1 sans-serif}
.gb-nonogram .ng-clue,.gb-nonogram .ng-origin{display:grid;place-content:center;text-align:center;background:#e9edf1;font-size:clamp(.75rem,3vw,.96rem);font-weight:700;line-height:1.05;color:#344152}
.gb-nonogram .ng-top,.gb-nonogram .ng-origin{min-height:2.6rem}
.gb-gomoku{gap:0;background:#e9e0cd;border:8px solid #e9e0cd;max-width:29rem}
.gb-gomoku .gb-point{background:linear-gradient(transparent calc(50% - .5px),#aba38f calc(50% - .5px),#aba38f calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(to right,transparent calc(50% - .5px),#aba38f calc(50% - .5px),#aba38f calc(50% + .5px),transparent calc(50% + .5px));border:0;border-radius:0}
.gb-board .stone{display:block;position:relative;width:80%;height:80%;border-radius:50%;box-sizing:border-box}
.gb-board .stone-black{background:#25303c;border:1px solid #16202b;box-shadow:inset -1px -2px 4px #0e1624}
.gb-board .stone-white{background:#fffdf7;border:1px solid #9eabac;box-shadow:inset -1px -2px 3px #d0d4cf}
.gb-board .last .stone::after{content:'';position:absolute;width:19%;height:19%;border-radius:50%;background:#e67b60;top:40.5%;left:40.5%}
.gb-chess,.gb-reversi{gap:0;border:2px solid #566578;max-width:25rem}
.gb-chess .sq,.gb-reversi .rev-square{border:0;border-radius:0}
.gb-chess .light{background:#eaf0f1}.gb-chess .dark{background:#a3b4bd}
.gb-chess .recent{box-shadow:inset 0 0 0 2px #839867}.gb-chess .sq.selected{box-shadow:inset 0 0 0 3px #397482;background:#a8c8c5}
.gb-board .move-dot{display:block;width:24%;height:24%;border-radius:50%;background:#446769;opacity:.8}
.gb-chess .target:has(.piece){box-shadow:inset 0 0 0 3px #305e64}
.gb-chess .piece{z-index:1;font-family:"DejaVu Sans","Arial Unicode MS","Segoe UI Symbol","Apple Symbols",serif;font-size:clamp(1.5rem,7.6vw,2.65rem);line-height:1}
.gb-chess .piece-w{color:#fffdf5;-webkit-text-stroke:1px #344554;text-shadow:0 1px 1px #1d303c}
.gb-chess .piece-b{color:#283745}
.gb-chess small{position:absolute;z-index:2;font:600 clamp(.47rem,1.65vw,.62rem)/1 system-ui;color:#364250}
.gb-chess .rank{left:2px;top:2px}.gb-chess .file{right:2px;bottom:2px}
.gb-reversi .rev-square{background:#c7dcd1;border:.5px solid #a4b8af}
.gb-reversi .stone{width:76%;height:76%}
.gb-hanoi{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;max-width:29rem;margin:1rem auto}
.gb-peg{border:1px solid #cbd3db;border-radius:.5rem;padding:.4rem;color:#263647;background:#f6f8f9;min-width:0}
.gb-peg.selected{border-color:#3f6857;background:#deece4}.gb-peg:disabled{opacity:1}
.h-stack{display:flex;flex-direction:column-reverse;align-items:center;justify-content:flex-start;min-height:7.6rem;border-bottom:4px solid #77848c;background:linear-gradient(to right,transparent calc(50% - 2px),#b3bec4 calc(50% - 2px),#b3bec4 calc(50% + 2px),transparent calc(50% + 2px));margin:0 0 .5rem}
.h-disk{display:grid;place-items:center;border:1px solid #657b7a;box-sizing:border-box;border-radius:.3rem;height:1.12rem;font:600 .74rem/1 system-ui;color:#263943;background:#cfe3dc}.h-disk.d2{background:#b5d1c9}.h-disk.d3{background:#a6c3cb}.h-disk.d4{background:#d9cdb1}.h-disk.d5{background:#ddc1b3}.h-disk.d6{background:#d4bcca}
@media(max-width:400px){.gb-controls{gap:.25rem}.gb-controls .button{padding:.42rem .5rem}.gb-gomoku{border-width:4px}}
