.strategy-stats { flex-wrap: wrap; }
.strategy-stats .stat { min-width: 90px; flex: 1; }
.strategy-stats .stat strong { font-size: clamp(.9rem, 2.5vw, 1.3rem); }
.strategy-hint { text-align: center; font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.strategy-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin: 14px 0; font-size: .85rem; }
.strategy-legend span { display: inline-flex; align-items: center; gap: 8px; }
.strategy-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 1px 4px #0003; }
.strategy-dot.coral { background: #d97461; }.strategy-dot.cream { background: #f4dfb5; }
.checker-frame { max-width: 480px; margin: auto; padding: 12px; background: #224849; border-radius: 24px; box-shadow: 0 14px 26px #133b3420, inset 0 1px #ffffff40; }
.checker-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); overflow: hidden; border-radius: 14px; }
.checker-cell { border: 0; padding: 0; aspect-ratio: 1; position: relative; display: grid; place-items: center; min-width: 0; }
.checker-cell:disabled { opacity: 1; }.checker-cell.dark { background: #65807b; }.checker-cell.light { background: #e3dbbd; }
.checker-cell.selected { background: #d8b165; box-shadow: inset 0 0 0 3px #f9df93; }.checker-cell.destination { background: #86a993; }
.checker-cell:focus-visible { outline-offset: -4px; z-index: 1; }.checker-cell:not(:disabled):hover { filter: brightness(1.13); }
.checker-coordinate { position: absolute; top: 3px; left: 4px; font-size: clamp(7px, 1.4vw, 10px); color: #18333770; }.checker-cell.dark .checker-coordinate { color: #fff8; }
.checker-piece { display: grid; place-items: center; width: 72%; height: 72%; border-radius: 50%; font-size: clamp(15px, 4vw, 31px); box-shadow: 0 4px 0 #0003, 0 5px 7px #0003, inset 0 0 0 5px #ffffff26; transition: transform .2s; }
.checker-piece.side-0 { color: #ffe8c3; background: radial-gradient(circle at 35% 28%, #efa08a, #cb624f); }.checker-piece.side-1 { color: #765137; background: radial-gradient(circle at 35% 28%, #fff4d8, #d3ba8c); }
.checker-cell.selected .checker-piece { transform: translateY(-2px); }.checker-target { width: 27%; height: 27%; background: #f7e7ad; border-radius: 50%; box-shadow: 0 0 0 6px #faf4c51c; }
.mancala-label { text-align: center; font-size: .8rem; font-weight: 600; margin: 15px 0 8px; }
.mancala-board { display: grid; grid-template-columns: minmax(35px, .85fr) minmax(0, 6fr) minmax(35px, .85fr); grid-template-rows: 1fr 1fr; gap: 12px; background: linear-gradient(135deg, #d9b181, #bc8c5a); border: 1px solid #976944; border-radius: 48px; padding: 18px 12px; box-shadow: 0 12px 24px #573c1d1a, inset 0 1px 2px #fff9; max-width: 750px; margin: auto; }
.mancala-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; grid-column: 2; }.mancala-row.upper { grid-row: 1; }.mancala-row.lower { grid-row: 2; }
.mancala-pit { border: 0; border-radius: 45%; background: #94683f66; box-shadow: inset 0 3px 7px #583a3450, 0 1px 0 #fff6; aspect-ratio: .8; position: relative; padding: 4px; min-width: 0; overflow: hidden; }
.mancala-pit:disabled { opacity: 1; }.mancala-pit:not(:disabled) { outline: 2px solid #fde6ad; outline-offset: 1px; }.mancala-pit:not(:disabled):hover { background: #ad8355; transform: translateY(-2px); }
.mancala-pit strong { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); background: #faf0d8e8; padding: 1px 6px; border-radius: 20px; font-size: .8rem; min-width: 22px; }.mancala-pit.last { box-shadow: inset 0 0 0 3px #fee49a, inset 0 3px 7px #583a3450; }
.mancala-stones { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 2px; height: 70%; }.mancala-stones i { width: 22%; aspect-ratio: 1; border-radius: 45%; background: #d0ece1; box-shadow: inset -2px -2px 2px #19403933; transform: rotate(calc(var(--stone) * 23deg)); }.mancala-stones i:nth-child(3n) { background: #efc778; }.mancala-stones i:nth-child(3n + 1) { background: #e3a596; }
.mancala-store { border-radius: 40px; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #8e623c66; box-shadow: inset 0 3px 8px #55371a55; color: #fff3d9; gap: 9px; }.mancala-store span { font-size: 9px; letter-spacing: .05em; }.mancala-store strong { font-size: clamp(1.3rem, 4vw, 2rem); }.mancala-store.opponent-store { grid-column: 1; }.mancala-store.own-store { grid-column: 3; }
.domino-table { border-radius: 24px; background: radial-gradient(ellipse at center, #285857, #193c3f); color: #e6f0e5; padding: 22px; box-shadow: inset 0 0 0 1px #ffffff18; }.domino-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: .13em; color: #bfcec6; }.domino-ends span { display: flex; align-items: center; gap: 8px; }.domino-ends strong { color: #f2d193; font-size: 1.2rem; letter-spacing: 0; }
.domino-chain { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; min-height: 140px; padding: 22px 0; }.domino-tile { display: inline-flex; flex-shrink: 0; border-radius: 8px; padding: 5px; background: #fbf4e6; color: #294344; border: 1px solid #e0cda8; box-shadow: 0 3px 0 #baa783, 0 5px 8px #0002; }.domino-half { font-size: 27px; line-height: 1.2; padding: 0 3px; min-width: 28px; text-align: center; }.domino-half + .domino-half { border-left: 1px solid #baa78366; }.domino-half[data-pips="0"] { color: #baa783; font-size: 24px; }
.domino-empty { margin: 0; text-align: center; font-family: Georgia, serif; font-size: 1.6rem; color: #ebd6a9; }.domino-empty small { font-family: "Segoe UI", sans-serif; font-size: .8rem; color: #a9c5bc; }
.strategy-hand-title { margin: 24px 0 14px; font-size: 1rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }.strategy-hand-title span { color: var(--muted); font-size: .75rem; font-weight: 400; }.domino-hand { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }.domino-choice { display: flex; align-items: center; flex-direction: column; padding: 12px 7px 8px; background: #e8ece4; border-radius: 14px; border: 1px solid #d8dfd4; gap: 10px; }.domino-choice > div { display: flex; gap: 5px; }.domino-place { background: #fffdf5; border: 1px solid #c4d2c7; border-radius: 8px; font-size: .66rem; font-weight: 600; padding: 7px 5px; min-height: 32px; }.domino-place:not(:disabled):hover { background: #f4d792; border-color: #d2ac52; }.strategy-actions { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 22px; }.strategy-actions .muted { font-size: .8rem; }
.hex-surround { max-width: 520px; margin: 22px auto 0; padding: 23px 10% 26px 2%; position: relative; }.hex-grid { padding: 8px 0; border-top: 5px solid #e5ae49; border-bottom: 5px solid #e5ae49; border-radius: 4px; position: relative; }.hex-grid:before, .hex-grid:after { content: ""; position: absolute; top: 0; bottom: 0; width: 5px; background: #408d8d; transform: skewY(22deg); }.hex-grid:before { left: -5px; }.hex-grid:after { right: -5px; transform: translateX(38px) skewY(22deg); }
.hex-row { display: flex; margin-left: calc(var(--row) * 1.75%); width: 100%; gap: 3px; margin-top: -5px; }.hex-row:first-child { margin-top: 0; }.hex-cell { flex: 1; min-width: 0; aspect-ratio: 1.1; padding: 0; border: 0; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: #dbe2d7; display: grid; place-items: center; transition: background .2s, transform .2s; }.hex-cell:disabled { opacity: 1; }.hex-cell.side-1 { background: #e8b553; color: #ffd88c; }.hex-cell.side-2 { background: #397e80; color: #70b1ac; }.hex-cell span { font-size: clamp(16px, 4vw, 30px); }.hex-cell.last span { text-shadow: 0 0 4px #fff; }.hex-cell.winning { background: #ec9847; }.hex-cell.side-2.winning { background: #38a597; }.hex-cell:not(:disabled):hover { background: #f1d99a; transform: scale(.9); }.hex-cell:focus-visible { background: #ffe0a3; outline-offset: -6px; }.hex-edge-label { position: absolute; left: 34%; font-size: 9px; font-weight: 700; letter-spacing: .2em; color: #9c701e; }.hex-edge-label.top { top: 0; }.hex-edge-label.bottom { bottom: 3px; }
.nim-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }.nim-pile { background: #edf0e7; border: 1px solid #d9e1d3; border-radius: 22px; padding: 18px; }.nim-pile.last { border-color: #c6ab66; box-shadow: 0 0 0 2px #f2dca340; }.nim-pile header { display: flex; justify-content: space-between; align-items: center; gap: 7px; }.nim-pile header > span { font-size: .65rem; font-weight: 700; letter-spacing: .12em; color: #718271; }.nim-pile strong { font-size: 1.3rem; }.nim-pile small { font-weight: 400; font-size: .7rem; }.nim-stones { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; min-height: 90px; padding: 18px 0; }.nim-stones i { width: 22px; height: 25px; background: radial-gradient(ellipse at 30% 25%, #d0afa0, #997a71); border-radius: 47% 53% 55% 45%; box-shadow: 0 3px 3px #34534528; transform: rotate(calc(var(--stone) * 37deg)); }.nim-stones i:nth-child(even) { background: radial-gradient(ellipse at 30% 25%, #9bc9bb, #5d908a); }.nim-takes { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }.nim-takes button { background: #fffdf5; border: 1px solid #c9d6c5; border-radius: 9px; min-width: 34px; min-height: 34px; font-size: .8rem; padding: 6px; }.nim-takes button:not(:disabled):hover { background: #f3d595; border-color: #c3a251; }.nim-empty { color: #81917e; font-family: Georgia, serif; font-style: italic; }
@media (max-width: 540px) { .checker-frame { padding: 7px; border-radius: 17px; }.checker-coordinate { top: 2px; left: 2px; }.mancala-board { gap: 7px; padding: 14px 7px; border-radius: 27px; grid-template-columns: 30px minmax(0, 6fr) 30px; }.mancala-row { gap: 5px; }.mancala-pit { aspect-ratio: .7; }.mancala-pit strong { min-width: 17px; padding: 0 3px; font-size: .7rem; }.mancala-store span { font-size: 7px; }.domino-table { padding: 15px; }.domino-ends { font-size: 8px; letter-spacing: .08em; }.domino-ends span { gap: 5px; }.domino-chain .domino-half { font-size: 22px; min-width: 23px; padding: 0 2px; }.nim-pile { padding: 12px; border-radius: 16px; }.nim-board { gap: 9px; }.nim-stones { gap: 5px; }.nim-stones i { width: 18px; height: 21px; }.hex-grid:after { transform: translateX(26px) skewY(22deg); }.hex-row { margin-top: -3px; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .checker-piece, .hex-cell { transition: none; } }
