/* A paper board, polished stones and measured search marks. */
.hex-instrument{--hex-ink:#14171c;--hex-cyan:#00a0e0;--hex-yellow:#ffe600;--hex-paper:#fcfcfb;--hex-line:#c3c8d0;--hex-spring:linear(0,.203,.459,.765,.995,1.111,1.166,1.155,1.118,1.065,1.019,.975,.972,.984,1,1.005,1);display:grid;gap:16px;align-content:start;color:var(--hex-ink);min-width:0;font:inherit}
.hex-board-wrap{width:100%;margin:0;padding:0}
.hex-board{width:100%;height:auto;display:block;overflow:visible;touch-action:manipulation}
.hex-edge-ai{fill:var(--hex-cyan)}.hex-edge-human{fill:var(--hex-ink)}
.hex-cell{outline:none;cursor:default}.hex-instrument.is-my-turn .hex-cell:not(.is-full){cursor:pointer}
.hex-tile{fill:var(--hex-paper);stroke:var(--hex-line);stroke-width:1.2;transition:fill .12s}
.hex-ghost{fill:var(--hex-ink);opacity:0;transition:opacity .12s;pointer-events:none}
.hex-instrument.is-my-turn .hex-cell:not(.is-full):hover .hex-ghost{opacity:.22}
.hex-cell:focus-visible .hex-tile{fill:var(--hex-yellow);stroke:var(--hex-ink);stroke-width:2.88}
.hex-search{fill:var(--hex-cyan);opacity:.36;pointer-events:none}
.hex-stone{pointer-events:none;opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(.3);transition:transform .52s var(--hex-spring),opacity .1s}
.is-human .hex-stone,.is-ai .hex-stone{opacity:1;transform:scale(1)}
.hex-stone-shade{fill:rgba(20,23,28,.22)}
.is-human .hex-stone-body{fill:var(--hex-ink)}.is-ai .hex-stone-body{fill:var(--hex-cyan)}
.hex-stone-shine{fill:#fff;opacity:.2}
.hex-last{fill:var(--hex-yellow);opacity:0}.is-latest .hex-last{opacity:1}
.is-winning .hex-stone-body{stroke:var(--hex-yellow);stroke-width:3.84}
.hex-status{min-height:30px;margin:0;font-family:var(--head,var(--body,sans-serif));font-weight:700;font-size:.9375rem;line-height:1.9}
.hex-metrics{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-width:0}
.hex-meter-label{color:#4a4f58;white-space:nowrap;font-size:.75rem;line-height:1.9}
.hex-meter-label output{font-family:var(--mono,ui-monospace,Menlo,Consolas,monospace);font-size:inherit;font-weight:400;color:var(--hex-ink);font-variant-numeric:tabular-nums}
.hex-meter-bar{flex:1 1 96px;height:8px;border-radius:999px;background:var(--hex-ink);overflow:hidden}
.hex-meter-bar i{display:block;height:100%;background:var(--hex-cyan);transform-origin:left;transform:scaleX(.5);transition:transform .4s cubic-bezier(.22,1.1,.48,1)}
.hex-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0}
.hex-actions>button{display:inline-flex;align-items:center;justify-content:center;appearance:none;height:44px;padding:0 20px;border:1px solid var(--hex-line);border-radius:999px;background:var(--hex-paper);color:var(--hex-ink);font:700 .875rem/1 var(--head,var(--body,sans-serif));white-space:nowrap;cursor:pointer;transition:background-color .15s,transform .5s var(--hex-spring)}
.hex-actions>button:hover{background:#e9ebee}.hex-actions>button:active{transform:scale(.95);transition-duration:.08s}
.hex-actions>.hex-reset{border-color:var(--hex-ink);background:var(--hex-ink);color:var(--hex-paper)}.hex-actions>.hex-reset:hover{background:#2b3038}
.hex-actions button:focus-visible{outline:2px solid var(--hex-ink);outline-offset:2px;box-shadow:0 0 0 4px var(--hex-yellow)}
.hex-difficulty{display:inline-flex;align-items:center;padding:4px;border-radius:999px;background:#e9ebee}
.hex-difficulty .hex-time{appearance:none;height:36px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:var(--hex-ink);font:700 .8125rem/1 var(--head,var(--body,sans-serif));white-space:nowrap;cursor:pointer;transition:background-color .15s,transform .15s}
.hex-difficulty .hex-time[aria-pressed=true]{background:var(--hex-paper);box-shadow:0 1px 2px rgba(20,23,28,.24)}
.hex-difficulty .hex-time:active{transform:scale(.94)}
.no-motion .hex-tile,.no-motion .hex-ghost,.no-motion .hex-stone,.no-motion .hex-meter-bar i,.no-motion .hex-actions button{transition:none}
@media(max-width:480px){.hex-instrument{gap:16px}.hex-metrics{gap:8px 10px}.hex-meter-bar{flex-basis:65px}.hex-actions{gap:10px}.hex-actions>button{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){.hex-tile,.hex-ghost,.hex-stone,.hex-meter-bar i,.hex-actions button{transition:none}}
