:root {
  color-scheme: light;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #302910;
  background: #f6f0e5;
  --green: #365f32;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1040px; margin: auto; padding: 24px 24px 12px; }
header, .brand, .players, .player { display: flex; align-items: center; }
header { justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.brand { gap: 12px; }
.brand-mark { display: block; width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; border-radius: 20%; }
h1 { font-size: 23px; line-height: 1.2; letter-spacing: -.5px; margin: 0; font-weight: 650; }
.connection { font-size: 12px; border: 1px solid #d8cbb6; padding: 6px 12px; border-radius: 20px; text-align: center; }
.connection::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: #a98c55; }
.connection.online::before { background: #438442; }
.players { justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.player { flex: 1; gap: 10px; border-radius: 10px; padding: 9px 12px; border: 1px solid transparent; }
.player.active { background: #eee4cf; border-color: #d8c49d; }
.player span { font-weight: 600; }
.player small { display: block; color: #8a785b; font-size: 11px; font-weight: 400; }
.checker-icon { display: inline-block; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1px solid #302910; box-shadow: 2px 2px 3px #30291040; }
.checker-icon.light { background: radial-gradient(circle at 30% 30%, #ffeeaa, #ccae76); }
.checker-icon.dark { background: radial-gradient(circle at 30% 30%, #55411b, #302910); }
.versus { color: #b3a180; }
.board-wrap { position: relative; filter: drop-shadow(0 12px 18px #30291024); }
#board { display: block; width: 100%; max-height: 70vh; min-height: 240px; border-radius: 8px; touch-action: none; user-select: none; -webkit-user-select: none; }
.point { cursor: pointer; outline: none; }
.point .target { opacity: 0; fill: #00ff00; transition: opacity .16s; }
.point.destination .target { opacity: .65; }
.point:focus-visible .target { opacity: .35; }
.checker { cursor: pointer; outline: none; }
.checker .rim { stroke: #000; stroke-width: 2; fill: none; }
.checker.available .rim { stroke: #00a500; animation: hint 2s ease-in-out infinite; }
.checker.selected .rim, .checker:focus-visible .rim { stroke: #00ff00; stroke-width: 4; }
.checker.dragging { filter: url(#lift-shadow); }
.dice-group { cursor: pointer; }
.die { filter: url(#shadow); }
.die.used { opacity: .5; }
.die.rolling { animation: shake .11s ease-in-out infinite alternate; }
.roll-area { fill: #ccff99; opacity: 0; pointer-events: none; }
.can-roll .roll-area { animation: roll-hint 2s ease-in-out infinite alternate; }
#new-game { display: block; margin: 20px auto 0; }
.store-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin: 24px 0 12px; }
.store-link { display: block; height: 52px; border-radius: 6px; outline-offset: 4px; }
.store-link:hover { opacity: .85; }
.store-link img, .store-link svg { display: block; width: auto; height: 52px; }
button { font: inherit; font-size: 13px; font-weight: 600; padding: 11px 17px; border: 1px solid #945d00; border-radius: 7px; background: #945d00; color: #fff8e9; cursor: pointer; transition: background .15s; }
button:hover:enabled { background: #7b4c00; }
button:disabled { opacity: .4; cursor: default; }
.offline { position: absolute; inset: 0; background: #fff5dfc9; backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; border-radius: 8px; }
[hidden] { display: none !important; }
@keyframes hint { 50% { stroke: #000; } }
@keyframes roll-hint { to { opacity: .32; } }
@keyframes shake { from { translate: -2px -3px; rotate: -5deg; } to { translate: 2px 3px; rotate: 5deg; } }
@media (max-width: 620px) {
  main { padding: 14px 10px 8px; }
  header { margin-bottom: 14px; gap: 8px; }
  h1 { font-size: 19px; }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .connection { font-size: 10px; padding: 5px 8px; }
  .player { gap: 7px; padding: 8px 4px; font-size: 13px; }
  #board { max-height: none; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
