#publicView.games-document {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.game-app {
  --teal: #246575;
  --pink: #b63e64;
  --line: #cddfe3;
  --board-height: max(220px, calc(100dvh - 282px));
  max-width: none;
  margin-inline: auto;
  padding: 16px clamp(12px, 2.2vw, 28px) 22px;
  color: #24434f;
}

body.member-mode .game-app { margin-inline: 0; }
.game-app [hidden] { display: none !important; }
.game-app a { color: var(--teal); }
.game-app .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.game-app h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.15;
}

.game-app h2 { margin: 0 0 8px; font-size: 1.05rem; }
.game-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 4px;
  margin-bottom: 12px;
}

.game-app .back-link { font-size: .86rem; }
.game-toolbar, .game-choice, .option-bar, .game-app .option-bar label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.game-toolbar { gap: 8px 16px; margin-bottom: 12px; }
.game-choice { gap: 0; }
.game-app :is(button, select, input, .game-share-actions a) {
  min-width: 0;
  font-family: inherit;
}

.game-app :is(.mode-card, .primary, .secondary, select, input) {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #99b8c0;
  border-radius: 7px;
  background: white;
  color: #24434f;
}

.game-app .mode-card { font-weight: 650; }
.game-app .mode-card:first-child { border-radius: 7px 0 0 7px; }
.game-app .mode-card:last-child { border-radius: 0 7px 7px 0; margin-left: -1px; }
.game-app .mode-card.selected { position: relative; border-color: var(--teal); background: #dfefec; color: #1c5360; }
.game-app .option-bar select { width: auto; }
.game-app .primary { border-color: var(--teal); background: var(--teal); color: white; }
.game-app :is(.mode-card, .primary, .secondary):hover:not(:disabled) { box-shadow: inset 0 0 0 1px currentColor; }
.game-app :is(a, button, input, select, summary):focus-visible { outline: 3px solid #ad6500; outline-offset: 2px; }
.game-app .subtle { color: #486772; font-size: .87rem; }
.game-app p:empty { display: none; }

.game-play {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(250px, 1fr);
  align-items: start;
  gap: 14px;
}

.play-main, .game-aside section, .together-options {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.play-heading, .game-app .players {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}

.play-heading { margin-bottom: 8px; }
.game-status { margin: 0; font-weight: 700; line-height: 1.35; }
.round-label { font-size: .8rem; color: #506d78; white-space: nowrap; }
.board-wrap { max-width: min(880px, calc(var(--board-height) * 1.16)); margin-inline: auto; }

.column-buttons {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 5px;
  padding-inline: 7px;
}

.column-buttons button {
  min-height: 42px;
  padding: 0;
  border: 1px solid #c5dce0;
  border-radius: 6px;
  background: #eef6f5;
  color: var(--teal);
  font-size: 1.14rem;
  font-weight: 750;
}

.column-buttons button:hover:not(:disabled) { background: #d7eae5; }
.game-board {
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 5px;
  padding: 7px;
  border-radius: 10px;
  background: var(--teal);
  box-shadow: inset 0 -4px 0 #143c4944;
}

/* Uploaded games render their own board and controls inside this host. */
.game-app[data-game="module"] .game-board {
  display: block;
  min-width: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.board-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.game-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #eaf2f2;
  box-shadow: inset 0 3px 5px #112d3a45;
  font-weight: 800;
  font-size: clamp(.9rem, 2.4vw, 1.9rem);
  line-height: 1;
}

.game-cell[data-player="1"], .counter.one { background: #d9eebd; color: #22463a; }
.game-cell[data-player="2"], .counter.two { background: #ba4165; color: white; }
.game-cell[data-player]:not([data-player="0"]) { box-shadow: inset 0 -3px 0 #132c3730; }
.game-cell.last::after {
  position: absolute;
  inset: 12%;
  border: 2px dashed currentColor;
  border-radius: 50%;
  opacity: .55;
  content: "";
}

.game-cell.win { outline: 4px solid #ffe381; outline-offset: -3px; }
.game-app .players { margin-top: 8px; }
.player-label { display: flex; align-items: center; gap: 5px; font-size: .87rem; font-weight: 650; overflow-wrap: anywhere; }
.counter {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-style: normal;
}

.game-aside section { margin-bottom: 10px; }
.game-ad-placement:not(:empty) { margin-block: 150px 24px; }
.game-ad-placement .adsbygoogle { display: block; }

.game-aside p { margin: 5px 0 8px; font-size: .92rem; }
.game-aside .invite-panel { background: #f7fbfa; }
.game-share-actions, .game-share-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.game-share-actions { margin-bottom: 10px; }
.game-share-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.game-share-copy input { flex: 1 1 120px; width: 100%; font-size: .83rem; }
.game-aside summary { cursor: pointer; font-weight: 650; }
.game-aside .rules details { border-top: 1px solid var(--line); padding-top: 6px; }
.game-finish { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.game-finish p { margin: 0; }

.game-error {
  background: #fff1ef;
  border: 2px solid #a32d2d;
  color: #801f20;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: 650;
}

.together-options p { margin: 0 0 8px; }
.together-options label { display: block; font-weight: 650; }
.together-options input { display: block; width: 100%; }
.together-options #gameNameLabel { max-width: 320px; }
.game-app .check-label { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 400; }
.game-app .check-label input { appearance: auto; width: 18px; height: 18px; min-height: 18px; margin: 0; flex: none; }
.admission-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.game-app .text-button { min-height: 36px; padding: 4px 0; border: 0; background: none; color: var(--teal); text-decoration: underline; }

body:not(.member-mode) .game-catalogue { max-width: var(--site-content-width, 1270px); }

.game-catalogue h1 { margin-bottom: 14px; }

@media (max-width: 920px) {
  .game-play { grid-template-columns: minmax(0, 1fr) minmax(210px, 255px); }
}

@media (max-width: 720px) {
  .game-app { padding-top: 10px; }
  .game-play { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .play-main { padding: 9px; }
  .column-buttons, .board-row, .game-board { gap: 4px; }
  .game-board, .column-buttons { padding-inline: 5px; }
  .column-buttons button { min-height: 44px; }
  .game-heading { margin-bottom: 8px; }
  .game-toolbar { margin-bottom: 8px; }
  .game-play:has(.together-options:not([hidden]), .invite-panel:not([hidden])) .game-aside { order: -1; }
  .game-play:has(.together-options:not([hidden]), .invite-panel:not([hidden])) .rules { display: none; }
}

.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.game-tile {
  display: grid;
  grid-template-rows: 132px 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 5px 20px #24434f0a;
}

.game-tile:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 18px #24434f16;
}

.game-tile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  gap: 7px;
}

.game-tile-text strong {
  font-size: 1.17rem;
  line-height: 1.25;
}

.game-tile-text > span {
  color: #496873;
}

.game-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.preview-four {
  background: #dceff1;
}

.preview-four > span {
  width: clamp(22px, 4vw, 39px);
  aspect-ratio: 1;
  border: 2px solid #24434f33;
  border-radius: 50%;
  background: var(--teal);
}

.preview-four > span:nth-child(2n) {
  background: var(--pink);
}

.preview-tic {
  background: #e6f0e7;
}

.preview-tic-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 110px;
  padding: 4px;
  background: #bdd4c5;
  border-radius: 9px;
}

.preview-tic-board i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #fcfffc;
  border-radius: 4px;
  color: var(--teal);
  font-size: 1.3rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
}

.preview-memory {
  background: #f6e9db;
}

.preview-memory > span {
  display: grid;
  place-items: center;
  width: 47px;
  height: 62px;
  border: 1px solid #d5baa1;
  border-radius: 7px;
  background: #fff9f2;
  color: var(--teal);
  font-size: 1.38rem;
  font-weight: 750;
  transform: rotate(-9deg);
}

.preview-memory > span:nth-child(2) {
  color: white;
  background: var(--teal);
  transform: none;
}

.preview-memory > span:nth-child(3) {
  transform: rotate(9deg);
}

.game-tiles {
  display: grid;
  container-type: inline-size;
  margin: 0 auto;
  gap: 8px;
}

.game-tiles.tic-tac-toe {
  max-width: min(640px, var(--board-height));
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-tiles.memory {
  max-width: min(600px, var(--board-height));
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-tile-button {
  min-width: 0;
  min-height: 44px;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #b6d1d6;
  border-radius: 10px;
  background: #f4fafb;
  color: var(--teal);
  font-size: clamp(1.3rem, 6vw, 2.8rem);
  font-weight: 750;
  line-height: 1;
}

.game-tile-button[aria-disabled="true"] {
  cursor: default;
}

.game-tile-button[aria-disabled="false"]:hover {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.game-tile-button[data-player="2"] {
  color: var(--pink);
}

.game-tile-button.win {
  background: #deefe8;
  border-color: #387359;
}

.game-app .tic-tac-toe .game-tile-button { position: relative; font-size: 0; }
.tic-tac-toe .game-tile-button[data-player="1"]::before,
.tic-tac-toe .game-tile-button[data-player="1"]::after {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 67%;
  height: 9%;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  content: "";
}
.tic-tac-toe .game-tile-button[data-player="1"]::after { transform: rotate(-45deg); }
.tic-tac-toe .game-tile-button[data-player="2"]::before {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60%;
  height: 60%;
  box-sizing: border-box;
  border: clamp(3px, 1.8cqw, 10px) solid currentColor;
  border-radius: 50%;
  content: "";
}
.memory .game-symbol { font-size: clamp(1.4rem, 13cqw, 5rem); line-height: 1; }
.memory [data-face="hidden"] .game-symbol { font-size: clamp(1.4rem, 11cqw, 4.25rem); }

.memory .game-tile-button[data-face="hidden"] {
  background: #286a79;
  color: #fff;
}

.memory .game-tile-button[data-face="hidden"][aria-disabled="false"]:hover {
  background: #1d5361;
}

.memory .game-tile-button[data-face="matched"] {
  border-color: #72a790;
  background: #e4f2e9;
}

@media (max-width: 720px) {
  .game-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .game-tile {
    grid-template-columns: minmax(94px, 29%) 1fr;
    grid-template-rows: auto;
  }

  .game-tile-text {
    padding: 14px;
    gap: 5px;
  }

  .game-tile-text strong {
    font-size: 1.03rem;
  }

  .game-preview {
    gap: 3px;
    padding: 7px;
  }

  .preview-four > span {
    width: 17px;
  }

  .preview-tic-board {
    width: 70px;
  }

  .preview-tic-board i {
    font-size: .9rem;
  }

  .preview-memory > span {
    width: 25px;
    height: 36px;
    font-size: .9rem;
  }
}

.preview-sea { background: #deedf5; color: #9d3049; }
.preview-sea span { width: clamp(17px, 4vw, 36px); aspect-ratio: 1; border-radius: 4px; background: #286a79; }
.preview-sea i { font-size: 1.6rem; font-style: normal; font-weight: 800; }
.preview-draughts { background: #ebdfcd; }
.preview-draughts span { width: clamp(19px, 4vw, 37px); aspect-ratio: 1; border: 2px solid #765538; border-radius: 50%; background: #fff9e8; }
.preview-draughts span:nth-child(even) { background: #38464b; border-color: #26373d; }

.game-app[data-game="draughts"] .board-wrap { max-width: min(720px, var(--board-height)); }
.draughts-board {
  display: grid;
  container-type: inline-size;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #855b3c;
  border-radius: 8px;
}
.game-app .draughts-cell, .game-app .sea-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: clamp(.8rem, 2.3vw, 1.8rem);
  line-height: 1;
}
.game-app .draughts-cell { background: #f2e4cf; color: #14232a; }
.game-app .draughts-cell[data-dark="true"] { background: #947053; color: #fff; }
.draughts-cell[data-choice="true"]::after {
  position: absolute;
  z-index: 1;
  inset: 4px;
  border: 2px solid #f8da6a;
  border-radius: 4px;
  content: "";
}
.draughts-cell[data-choice="true"]:empty::after {
  inset: 34%;
  border: 0;
  border-radius: 50%;
  background: #f8da6a;
}
.draughts-cell[data-selected="true"] { box-shadow: inset 0 0 0 3px #f9e087; }
.draughts-cell[data-last="true"] { box-shadow: inset 0 0 0 2px #bfe1de; }
.draughts-cell[data-color]::before {
  position: absolute;
  inset: 12%;
  border: 1px solid #26373d;
  border-radius: 50%;
  background: #38474b;
  box-shadow: inset 0 0 0 3px #ffffff2c, 0 2px 4px #392b2140;
  content: "";
}
.draughts-cell[data-color="white"]::before { border-color: #c7a47d; background: #fff9ea; }
.draughts-cell[data-color="white"] { color: #775537; }
.draughts-cell[data-captured="true"]::before { opacity: .48; }
.draughts-cell span { position: relative; z-index: 1; font-size: clamp(1.05rem, 5cqw, 3rem); }
.game-app :is(.draughts-cell, .sea-cell):focus-visible { z-index: 2; outline-offset: -3px; }
.game-app :is(.draughts-cell, .sea-cell)[aria-disabled="true"] { cursor: default; }
.draughts-hint { margin: 0 0 6px; color: #3a5964; font-size: .88rem; }

.game-app[data-game="battleship"] .board-wrap { max-width: none; }
.sea-match { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sea-field { min-width: 0; margin-inline: auto; width: min(100%, var(--board-height), 540px); }
.sea-field h3 { margin: 0 0 6px; font-size: .95rem; }
.sea-match[data-stage="setup"] { grid-template-columns: minmax(0, 1fr); }
.sea-match[data-stage="setup"] .sea-field { width: min(100%, max(230px, calc(var(--board-height) - 86px)), 540px); }
.sea-tabs { display: none; gap: 4px; margin-bottom: 8px; }
.sea-tabs button[aria-pressed="true"] { border-color: var(--teal); background: #dfefec; }
.sea-grid {
  display: grid;
  grid-template-columns: 1.1em repeat(10, minmax(0, 1fr));
  align-items: stretch;
  gap: 2px;
  padding: 5px;
  border: 1px solid #bfd8e2;
  border-radius: 7px;
  background: #eff7fa;
}
.sea-axis { display: grid; place-items: center; min-height: 1.1em; color: #315668; font-size: .74rem; }
.game-app .sea-cell { border: 1px solid #b3d2df; border-radius: 3px; background: #dceff6; color: #1c4f65; }
.game-app .sea-cell[data-ship] { border-color: #246575; background: #377489; color: #fff; }
.game-app .sea-cell[data-mark="miss"] { background: #eff7fb; }
.game-app .sea-cell[data-mark="hit"] { border-color: #95402f; background: #edc0ad; color: #762c20; }
.game-app .sea-cell[data-mark="sunk"] { border-color: #873349; background: #a53858; color: #fff; }
.game-app .sea-cell[data-current="true"] { box-shadow: inset 0 0 0 2px #fbdb68; }
.game-app .sea-cell[aria-disabled="false"]:hover { box-shadow: inset 0 0 0 2px var(--teal); }
.sea-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 auto 8px; max-width: 560px; }
.game-app .sea-setup select { flex: 1 1 165px; width: auto; }
.game-app .sea-setup :is(button, select) { min-height: 38px; }
.sea-setup label { font-size: .9rem; }
.sea-sink-count { color: #456975; margin: 4px 0 0; font-size: .8rem; }

@media (max-width: 1120px) {
  .sea-match { grid-template-columns: minmax(0, 1fr); }
  .sea-tabs:not([hidden]) { display: flex; }
  .sea-match[data-stage="battle"][data-pane="own"] .sea-enemy,
  .sea-match[data-stage="battle"][data-pane="enemy"] .sea-own { display: none; }
}

.preview-dice { background: #e2edf4; }
.preview-dice, .preview-backgammon { font-size: clamp(2rem, 4vw, 3.6rem); color: #20525f; }
.preview-backgammon { color: #7d4b28; background: #f3e3c5; }
.game-app:is([data-game="five-dice"], [data-game="backgammon"]) .board-wrap { max-width: none; }
.dice-game, .backgammon-game { display: grid; gap: 8px; }
.dice-game { max-width: 660px; margin-inline: auto; }
.dice-controls, .backgammon-actions, .dice-hand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.game-app .dice-face {
  inline-size: clamp(42px, 9vw, 72px); aspect-ratio: 1; padding: 0;
  font-size: clamp(2.3rem, 8vw, 4.2rem); line-height: 1; color: #17424e;
}
.game-app .dice-face[aria-pressed="true"] { background: #cfe9bc; border-color: #436831; }
.dice-scorecard { width: 100%; border-collapse: collapse; text-align: right; }
.dice-scorecard th, .dice-scorecard td { padding: 2px 8px; border-bottom: 1px solid #d9e5e9; }
.dice-scorecard th:first-child { text-align: left; }
.dice-scorecard tfoot { font-weight: 700; }
.game-app .dice-score { min-inline-size: 44px; min-block-size: 26px; padding: 2px 10px; color: #134450; background: #e4f2eb; }
.backgammon-surface { border: 5px solid #64432d; border-radius: 8px; background: #f5e6ca; overflow: hidden; }
.backgammon-row { display: grid; grid-template-columns: repeat(6, 1fr) 9px repeat(6, 1fr); }
.backgammon-row > :nth-child(7) { grid-column-start: 8; }
.backgammon-row + .backgammon-row { border-top: 13px solid #c7a47f; }
.game-app .backgammon-point {
  isolation: isolate; position: relative; display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center; gap: 3px; color: #3f2d24;
  block-size: clamp(98px, 25dvh, 248px); padding: 2px; min-inline-size: 0;
  border: 0; border-radius: 0; background: transparent; opacity: 1;
}
.game-app .backgammon-row + .backgammon-row .backgammon-point { flex-direction: column-reverse; }
.backgammon-point::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #d2a675; clip-path: polygon(0 0, 100% 0, 50% 88%); }
.backgammon-point:nth-child(even)::before { background: #ead0a7; }
.backgammon-row + .backgammon-row .backgammon-point::before { transform: scaleY(-1); }
.backgammon-number { font-size: .7rem; font-weight: 700; }
.backgammon-stack { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 1px; }
.backgammon-row + .backgammon-row .backgammon-stack { flex-direction: column-reverse; }
.backgammon-stack i {
  display: grid; place-items: center; aspect-ratio: 1; inline-size: min(92%, 3.9dvh, 44px);
  border: 2px solid #a78552; border-radius: 50%; color: #312419; background: #fff4df; font: 700 .72rem system-ui;
}
.backgammon-point[data-owner="other"] i { background: #294850; color: white; border-color: #17313a; }
.game-app .backgammon-point[data-source="true"], .game-app .backgammon-bar[data-source="true"] { box-shadow: inset 0 0 0 2px #146473; }
.game-app :is(.backgammon-point,.backgammon-off)[data-target="true"] { background: #f5d681; box-shadow: inset 0 0 0 2px #946600; }
.game-app :is(.backgammon-point,.backgammon-bar)[aria-pressed="true"] { background: #c2e8de; }
@media (max-width: 500px) {
  .backgammon-row { grid-template-columns: repeat(6, 1fr) 5px repeat(6, 1fr); }
  .dice-controls { gap: 5px; }
  .dice-scorecard th, .dice-scorecard td { padding-inline: 4px; }
}

.preview-chess, .preview-reversi { font-size: clamp(2rem, 4vw, 3.6rem); }
.preview-chess { color: #463523; background: #efe2ca; }
.preview-reversi { color: #173b30; background: #d5e9da; }
.game-app:is([data-game="chess"], [data-game="reversi"]) .board-wrap { max-width: min(700px, var(--board-height)); }
.eight-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border: 4px solid #61503f; border-radius: 8px; }
.game-app .eight-square {
  isolation: isolate; position: relative; display: grid; place-items: center;
  aspect-ratio: 1; min-width: 0; padding: 0; line-height: 1; border: 0; border-radius: 0;
  font-size: clamp(1.6rem, min(7.5vw, 6dvh), 4.2rem);
  font-family: "DejaVu Sans", "Segoe UI Symbol", sans-serif;
}
.game-app .eight-square:focus-visible { z-index: 1; outline: 3px solid #005f84; outline-offset: -3px; }
.game-app .chess-board .eight-square { background: #f5e8d2; color: #30363d; }
.game-app .chess-board .eight-square[data-shade="1"] { background: #a98160; }
.chess-board .eight-square[data-piece^="w"] { color: #fffbed; -webkit-text-stroke: 1px #4d4033; }
.game-app .chess-board .eight-square[data-last="true"] { box-shadow: inset 0 0 0 2px #517364; }
.game-app .chess-board .eight-square[data-selected="true"] { background: #c4e9dc; }
.game-app .chess-board .eight-square[data-check="true"] { background: #e09a8f; }
.eight-square[data-target="true"]::after {
  content: ""; position: absolute; inset: 40%; border-radius: 50%;
  background: #f3c65a; box-shadow: 0 0 0 1px #54452f;
}
.eight-square[data-target="true"][data-piece]:not([data-piece=""])::after {
  inset: 5%; border-radius: 3px; border: 2px solid #d29a24; background: transparent; box-shadow: none;
}
.chess-promotion:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-end: 8px; }
.chess-promotion button { padding: 4px 8px; }
.reversi-board { border-color: #2c5244; }
.game-app .reversi-board .eight-square { border: 1px solid #537f68; background: #317057; }
.reversi-board .eight-square[data-disc]:not([data-disc=""])::before {
  content: ""; inset: 10%; position: absolute; border-radius: 50%;
  background: #f9f7e9; border: 1px solid #1d2a24; box-shadow: 0 2px 2px #13392b88;
}
.game-app .reversi-board .eight-square[data-disc="black"]::before { background: #1e2928; }
.reversi-board .eight-square[data-last="true"]::before { outline: 2px solid #e9bd62; }

.preview-mancala { background: #f4e4ca; color: #8b4d2b; font-size: clamp(1.9rem, 4vw, 3rem); }
.admin-game-artwork {
  --teal: #246575;
  --pink: #b63e64;
  width: 68px;
  height: 44px;
  display: block;
}
.admin-game-artwork .game-preview { width: 100%; height: 100%; gap: 3px; border-radius: 7px; font-size: 1rem; }
.admin-game-artwork .preview-four > span,
.admin-game-artwork .preview-sea > span,
.admin-game-artwork .preview-draughts > span { width: 11px; }
.admin-game-artwork .preview-sea i { font-size: .9rem; }
.admin-game-artwork .preview-tic-board { width: 37px; gap: 1px; padding: 2px; border-radius: 4px; }
.admin-game-artwork .preview-tic-board i { font-size: .55rem; border-radius: 2px; }
.admin-game-artwork .preview-memory > span { width: 15px; height: 22px; font-size: .57rem; border-radius: 3px; }

.admin-game-toolbar, .admin-game-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-game-list { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.admin-game-list:empty { display: none; }
.admin-game-list > li { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; }
.admin-game-list > li + li { border-top: 1px solid var(--line); }
.admin-game-list strong { display: block; overflow-wrap: anywhere; }
.admin-game-state { display: inline-block; margin-top: 3px; color: var(--muted); font-size: .77rem; }
.admin-game-state[data-active="true"] { color: #2c6246; }
.admin-game-actions button { padding: 6px 10px; min-height: 36px; font-size: .84rem; }
.admin-game-artwork .preview-backgammon { font-size: .8rem; white-space: nowrap; }
@media (max-width: 560px) {
  .admin-game-list > li { grid-template-columns: 68px minmax(0, 1fr); gap: 5px 10px; }
  .admin-game-actions { grid-column: 2; }
}

.preview-module { --art-fill: #fff; --art-outline: #6894ad; --art-ink: #184c68; background: #dfedf6; }
.preview-module-mint { --art-outline: #648f70; --art-ink: #25573d; background: #dcebdc; }
.preview-module-sand { --art-outline: #a78050; --art-ink: #725127; background: #f5e9d1; }
.preview-module-rose { --art-outline: #a87b8d; --art-ink: #773650; background: #f2e2e8; }
.preview-module i {
  display: grid;
  place-items: center;
  width: clamp(24px, 4vw, 52px);
  aspect-ratio: 1;
  background: var(--art-fill);
  color: var(--art-ink);
  border: 1px solid var(--art-outline);
  border-radius: .36em;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1rem, 3vw, 2rem);
}
.admin-game-artwork .preview-module i { width: 14px; font-size: .67rem; }
