/* ZimiGames: what the world board games share (a drawn board with buttons over it). Tokens come from games.css and board.css. */ .wk-board { position: relative; --bs: min(100vw - 24px, 100svh - 230px, 560px); width: var(--bs); user-select: none; -webkit-user-select: none; touch-action: manipulation; } .wk-board > svg { display: block; width: 100%; height: auto; overflow: visible; } .wk-pt { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; border-radius: 6px; -webkit-appearance: none; appearance: none; } .wk-pt:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; z-index: 3; } .wk-pt[aria-disabled="true"] { cursor: default; } /* A small place aimed by a finger: a ring wider than the fingertip, so it shows round the finger; a second touch plays it. */ .wk-pt.wk-aim { z-index: 4; overflow: visible; } .wk-pt.wk-aim::before { content: ""; box-sizing: border-box; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 2px var(--surface), 0 2px 8px rgba(0, 0, 0, 0.35); pointer-events: none; } .wk-board .wk-ink { fill: var(--ink); } .wk-board text { font-family: var(--font); pointer-events: none; } /* The player chip: 13px, 28px tall, a pill with a dot, the name and a number. The current player has an amber outline and glow, the name in ink. */ .bg-score .wk-who { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--sp-3); border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-small); } .bg-score .wk-who.turn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); color: var(--ink); } .bg-score .wk-who b { font-variant-numeric: tabular-nums; } .wk-pip { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--disc-edge); vertical-align: -2px; box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.45); } .bg-controls:empty { display: none; } .bg-controls .ar-btn[hidden] { display: none; } @media (prefers-reduced-motion: reduce) { html:not([data-anim="normal"]):not([data-anim="fast"]) .wk-board * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; } } /* The opponent's chip pulses while the computer thinks. */ .bg-score .wk-who.turn.thinking { animation: wk-think 1s ease-in-out infinite alternate; } @keyframes wk-think { from { box-shadow: 0 0 0 3px var(--accent-glow); } to { box-shadow: 0 0 0 6px transparent; } } html[data-anim="off"] .bg-score .wk-who.thinking { animation: none; } @media (prefers-reduced-motion: reduce) { html:not([data-anim="normal"]):not([data-anim="fast"]) .bg-score .wk-who.thinking { animation: none; } }