/* Awalé / Oware — plateau family (design/Jeu - Awalé). A wooden two-player board
   set on a warm leather surface (the same band the arcade games use, in leather
   brown), the same in light and dark. Carved round pits hold hand-sown seeds
   (gold = yours, cream = the computer's); a pill store at each end keeps the
   captures. Column letters + counts are engraved in the board. Scoped .aw-root. */

.aw-root { display: flex; flex-direction: column; align-items: stretch; inline-size: 100%; color: var(--color-text); }

/* The leather surface: a full-width warm-ink band, the same in both themes. */
.aw-plateau {
  inline-size: 100%; box-sizing: border-box;
  background: #43302b; border-block: 1px solid #2c1f1b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: var(--space-6) 0; color: #f4ece5;
}
.aw-inner { max-inline-size: 940px; margin-inline: auto; padding-inline: var(--space-4); box-sizing: border-box; }
.aw-siderow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-3); }
.aw-side-k { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 236, 229, 0.66); }
.aw-side-k.you { color: var(--color-accent-300); }
.aw-side-k.over { color: var(--color-accent-300); }
.aw-sow { font-size: 11.5px; color: rgba(244, 236, 229, 0.66); font-variant-numeric: tabular-nums; }

/* The board: a wood a tone above the leather, sitting on the desk. */
.aw-planche {
  display: flex; align-items: stretch; gap: 14px; padding: 18px; border-radius: 26px; box-sizing: border-box;
  background: #55392c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.30);
}
.aw-center { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: 8px; }

/* Pill stores at each end. */
.aw-store {
  flex: none; inline-size: 100px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 22px 12px; border-radius: 50px; background: #3a271f;
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.55), inset 0 -2px 0 rgba(255, 255, 255, 0.10);
}
.aw-store.you { box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.55), inset 0 -2px 0 rgba(255, 255, 255, 0.10), 0 0 0 1.5px var(--color-accent-400); }
.aw-store-l { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 236, 229, 0.72); }
.aw-store.you .aw-store-l { color: var(--color-accent-300); }
.aw-store-n { font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(244, 236, 229, 0.72); }

/* Engraved column legends: a letter (A–F yours, a–f facing) and a live count. */
.aw-legends { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.aw-leg { display: flex; align-items: baseline; justify-content: center; gap: 6px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55); }
.aw-leg-l { font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: rgba(244, 236, 229, 0.82); }
.aw-legends.you .aw-leg-l { color: var(--color-accent-300); }
.aw-leg-n { font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(244, 236, 229, 0.78); }

/* Carved round pits. */
.aw-pits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.aw-pits.you { margin-block-start: 6px; }
.aw-pit {
  position: relative; display: flex; align-items: center; justify-content: center;
  inline-size: 100%; max-inline-size: 104px; margin-inline: auto; aspect-ratio: 1;
  padding: 14px; border: 0; border-radius: 50%; box-sizing: border-box; background: #3a271f;
  box-shadow: inset 0 7px 14px rgba(0, 0, 0, 0.55), inset 0 -2px 0 rgba(255, 255, 255, 0.10);
  cursor: default;
}
.aw-pit.playable { cursor: pointer; }
.aw-pit.playable:hover, .aw-pit.hint { box-shadow: inset 0 7px 14px rgba(0, 0, 0, 0.55), inset 0 -2px 0 rgba(255, 255, 255, 0.10), 0 0 0 2px var(--color-accent-400); }

/* Hand-sown seed pebbles: gold on your side, cream on the computer's. */
.aw-dots { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; justify-content: center; max-inline-size: 62px; }
.aw-dots i { display: block; border-radius: 50%; box-sizing: border-box; background: #e8dccb; box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, 0.30), 0 1px 1px rgba(0, 0, 0, 0.35); }
.aw-pits.you .aw-dots i, .aw-store.you .aw-dots i { background: var(--color-accent-400); }

@media (max-width: 620px) {
  .aw-planche { gap: 8px; padding: 12px; border-radius: 18px; }
  .aw-store { inline-size: 68px; padding: 16px 8px; }
  .aw-legends, .aw-pits { gap: 8px; }
  .aw-pit { padding: 9px; }
}
