/* Toy trays, jelly tokens and original picture stickers for every board game. */
.board,
.free-board,
.solitaire-board {
  --toy-outline: #29475e;
  --toy-cream: #fff9ee;
  color: var(--toy-outline);
}
.cartoon-sticker,
.cartoon-token,
.soko-art,
.block-face,
.card-suit-art,
.card-back-art,
.marble-shine {
  pointer-events: none;
}
.cartoon-sticker {
  display: block;
  width: 83%;
  height: 83%;
  max-width: 88px;
}
.merge-board,
.memory-board,
.mines-board,
.sudoku-board,
.ttt-board,
.wood-board,
.reversi-board,
.connect-board,
.soko-board,
.free-board,
.solitaire-board {
  border: 3px solid var(--toy-outline);
  border-radius: 24px;
  box-shadow: 0 6px 0 #b4cedd, inset 0 3px 0 #ffffffb0;
}
.merge-board,
.memory-board,
.sudoku-board,
.ttt-board,
.wood-board,
.reversi-board,
.soko-board {
  grid-auto-rows: minmax(0, 1fr);
}
.merge-board button,
.memory-board button,
.sudoku-board button,
.ttt-board button,
.wood-board button,
.reversi-board button,
.soko-board button {
  min-height: 0;
}
.merge-board {
  background: #a9d3e8;
  padding: 14px;
  gap: 10px;
}
.merge-board button {
  background-image: linear-gradient(145deg, #ffffff70, transparent 55%);
  border: 3px solid #29475e;
  border-radius: 22%;
  box-shadow: inset 0 -5px 0 #29475e18, 0 3px 0 #29475e2b;
  isolation: isolate;
}
.merge-board button::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 12%;
  width: 23%;
  height: 6%;
  border-radius: 99px;
  background: #fff9eea8;
  transform: rotate(-12deg);
  pointer-events: none;
}
.merge-board button[data-value="0"] {
  background-image: none;
  border: 2px solid #93bdd0;
  box-shadow: inset 0 3px 0 #29475e12;
}
.merge-board button[data-value="0"]::before {
  display: none;
}
.candy-value {
  position: relative;
  z-index: 1;
  font-weight: 800;
  letter-spacing: -.055em;
  text-shadow: 0 1px 0 #fff9ee30;
}
.memory-board {
  background: #d8eafa;
  padding: 12px;
  gap: 8px;
}
.memory-board button {
  border: 2px solid #29475e;
  border-radius: 19%;
  background: repeating-linear-gradient(135deg, #a9dfff 0 10px, #c9eaff 10px 20px);
  box-shadow: 0 3px 0 #6c9ab2, inset 0 2px 0 #fff9ee;
}
.memory-board button.open {
  border-color: #29475e;
  background: #fff9ee;
}
.memory-board button.matched {
  background: #d8f4e7;
  border-color: #397c65;
  box-shadow: 0 3px 0 #80bba6;
}
.mines-board {
  padding: 12px;
  gap: 3px;
  background: #c9eaff;
  border-radius: 18px;
}
.mines-board button {
  background: linear-gradient(145deg, #c9f1e0, #95dbc0);
  border: 1.5px solid #497568;
  border-radius: 22%;
  box-shadow: inset 0 2px 0 #fff9eea0, 0 2px 0 #4975684d;
  font-weight: 800;
}
.mines-board button.revealed {
  background: #fff9ee;
  border-color: #a8c2c8;
  box-shadow: inset 0 1px 0 #29475e12;
}
.mines-board button.flagged {
  background: #ffe3d1;
}
.mines-board button.mine {
  background: #ffd4dc;
  border-color: #ac6074;
}
.mines-board .cartoon-sticker {
  width: 90%;
  height: 90%;
}
.sudoku-board {
  padding: 9px;
  gap: 0;
  background: #a9dfff;
  border-radius: 20px;
  overflow: hidden;
}
.sudoku-board button {
  background: #fff9ee;
  border-color: #becfda;
  color: #286297;
  font-size: clamp(16px, 3.4vw, 25px);
  font-weight: 700;
  border-radius: 5px;
}
.sudoku-board button.fixed {
  color: #29475e;
  background: #e7f5ff;
  font-weight: 800;
}
.sudoku-board button.edge-right {
  border-right: 3px solid #628ca4;
}
.sudoku-board button.edge-bottom {
  border-bottom: 3px solid #628ca4;
}
.sudoku-board button.selected {
  background: #ffe19a;
  box-shadow: inset 0 0 0 2px #aa7929;
}
.sudoku-board button.conflict {
  background: #ffd4dc;
  color: #983451;
}
.sudoku-board button.notes {
  color: #416174;
  font-size: clamp(8px, 1.5vw, 11px);
  font-weight: 600;
  letter-spacing: -.03em;
}
.ttt-board {
  background: #c9eaff;
  padding: 16px;
  gap: 12px;
}
.ttt-board button {
  background: #fff9ee;
  border: 2.5px solid #29475e;
  border-radius: 23%;
  box-shadow: inset 0 -4px 0 #29475e12, 0 3px 0 #739bb2;
}
.cartoon-token {
  width: 85%;
  height: 85%;
}
.ttt-board button.winning {
  background: #d8f4e7;
  outline: 3px solid #397c65;
  outline-offset: -3px;
}
.wood-board {
  background: #ffe2b9;
  border-color: #67503e;
  padding: 14px;
  gap: 0;
}
.wood-board button {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.wood-board button::before,
.wood-board button::after {
  background: #ba9469;
  pointer-events: none;
}
.wood-board button.winning {
  background: #95dbc09c;
  border-radius: 8px;
}
.wood-board .stone,
.reversi-board .stone {
  position: relative;
  border: 2px solid #29475e;
  box-shadow: inset 0 -3px 0 #29475e35, 0 2px 0 #29475e30;
  font-weight: 800;
}
.wood-board .stone::before,
.reversi-board .stone::before {
  content: "";
  width: 32%;
  height: 15%;
  position: absolute;
  left: 16%;
  top: 15%;
  border-radius: 99px;
  transform: rotate(-25deg);
  background: #fff9ee83;
  pointer-events: none;
}
.wood-board .stone.black,
.reversi-board .stone.black {
  background: radial-gradient(circle at 30% 25%, #5c7689, #29475e 70%);
  color: #fff9ee;
}
.wood-board .stone.white,
.reversi-board .stone.white {
  background: radial-gradient(circle at 30% 25%, #ffffff, #fff0cd 80%);
  color: #29475e;
}
.reversi-board {
  padding: 12px;
  gap: 4px;
  background: #67a68d;
}
.reversi-board button {
  background: #95dbc0;
  border: 1px solid #397c65;
  border-radius: 13%;
  box-shadow: inset 0 2px 0 #d8f4e766;
}
.reversi-board button.legal:empty::after {
  background: #fff9ee;
  width: 21%;
  height: 21%;
  border: 1.5px solid #397c65;
  box-shadow: 0 1px 0 #397c6533;
  pointer-events: none;
}
.connect-board {
  background: #dff2ff;
  padding: 12px;
  gap: 7px;
}
.connect-board button {
  background: #fff9ee;
  border: 2px solid #29475e;
  border-radius: 19%;
  box-shadow: 0 3px 0 #9cbaca;
}
.connect-board button.selected {
  border-color: #286297;
  background: #c9eaff;
  box-shadow: inset 0 0 0 1px #286297, 0 3px 0 #9cbaca;
}
.connect-board button.hint {
  border-color: #a65c2f;
  background: #ffe3d1;
  box-shadow: inset 0 0 0 1px #a65c2f, 0 3px 0 #d39978;
}
.free-board {
  background: #d7e9f1;
  border-radius: 21px;
  overflow: hidden;
}
.block-piece {
  background: linear-gradient(150deg, #ffffff4d, transparent 55%), var(--block-fill, #95dbc0);
  color: #29475e;
  border: 4px solid #d7e9f1;
  border-radius: 18px;
  box-shadow: inset 0 0 0 2.5px #29475e, inset 0 -7px 0 #29475e26;
  align-content: center;
  gap: 0;
  padding: 5px;
}
.block-piece.goal {
  background: linear-gradient(150deg, #ffffff4d, transparent 55%), #ff9e94;
  font-size: clamp(20px, 5vw, 29px);
}
.block-piece.selected {
  box-shadow: inset 0 0 0 3px #29475e, inset 0 0 0 6px #fff9ee, inset 0 -9px 0 #29475e26;
}
.block-face {
  width: min(100%, 95px);
  height: auto;
  max-height: 50%;
}
.block-label {
  font-weight: 800;
  font-size: .8em;
  line-height: 1;
}
.exit-label {
  height: 9px;
  background: #397c65;
  border-radius: 8px 8px 0 0;
  z-index: 2;
  pointer-events: none;
}
.soko-board {
  background: #a9d3e8;
  padding: 9px;
  gap: 3px;
}
.soko-board button {
  background: #fff0d5;
  border: 1px solid #e2cda8;
  border-radius: 13%;
}
.soko-board button.wall {
  background: #a2bfd0;
  border-color: #29475e;
}
.soko-board button.target {
  background: #e1f4e8;
}
.soko-art {
  width: 100%;
  height: 100%;
}
.spot-scenes {
  gap: 12px;
  padding: 12px;
}
.spot-scenes svg {
  border: 3px solid #29475e;
  border-radius: 20px;
  box-shadow: 0 4px 0 #aac9da;
}
.chinese-stage svg {
  overflow: visible;
}
.chinese-stage .hole {
  stroke: #648597;
  stroke-width: 1.5px;
}
.chinese-stage .hole.selected {
  stroke: #29475e;
  stroke-width: 4px;
}
.chinese-stage .hole.legal {
  stroke: #b45b28;
  stroke-width: 4px;
}
.chinese-stage .hole:focus-visible {
  outline: none;
  stroke: #286297;
  stroke-width: 4px;
}
.solitaire-board {
  background: #95dbc0;
  color: #29475e;
  padding: 14px;
}
.solitaire-board .card-slot {
  color: #29475e;
  background: #c8f1e166;
  border: 2px dashed #397c65;
  border-radius: 12px;
  font-weight: 700;
}
.solitaire-board .stock-slot {
  border: 2px solid #29475e;
  background: repeating-linear-gradient(135deg, #a9dfff 0 8px, #c9eaff 8px 16px);
  padding-top: 0;
  display: grid;
  align-content: center;
  justify-items: center;
}
.stock-count {
  position: absolute;
  right: 4px;
  bottom: 3px;
  background: #fff9ee;
  border: 1px solid #29475e;
  padding: 1px 4px;
  border-radius: 5px;
  font-size: 10px;
}
.recycle-mark {
  font-size: 30px;
  line-height: 1;
}
.solitaire-board .playing-card {
  color: #29475e;
  position: relative;
  background: #fff9ee;
  border: 2px solid #29475e;
  border-radius: 11px;
  padding: 5px;
  min-height: 87px;
  box-shadow: 0 2px 0 #397c6580;
}
.solitaire-board .playing-card.red {
  color: #b74661;
}
.solitaire-board .playing-card.down {
  background: repeating-linear-gradient(135deg, #a9dfff 0 8px, #c9eaff 8px 16px);
  color: #29475e;
}
.solitaire-board .playing-card.selected {
  outline: 3px solid #b45b28;
  outline-offset: 1px;
}
.solitaire-board .tableau .playing-card {
  position: absolute;
}
.card-corner {
  position: absolute;
  top: 4px;
  left: 5px;
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  line-height: 1;
}
.card-corner span {
  font-size: .9em;
}
.card-suit-art {
  display: block;
  position: absolute;
  width: 45%;
  height: 45%;
  left: 28%;
  top: 28%;
}
.card-bottom-rank {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-size: .9em;
  font-weight: 800;
}
.card-back-art {
  display: block;
  width: 75%;
  height: 65px;
  margin: auto;
}
@media (max-width: 480px) {
  .merge-board,
  .ttt-board {
    padding: 10px;
    gap: 8px;
  }
  .merge-board button {
    border-width: 2px;
  }
  .memory-board {
    padding: 9px;
    gap: 5px;
  }
  .connect-board {
    gap: 4px;
    padding: 8px;
  }
  .connect-board button {
    border-width: 1.5px;
  }
  .sudoku-board {
    padding: 6px;
  }
  .wood-board {
    padding: 9px;
  }
  .wood-board .stone {
    border-width: 1px;
  }
  .block-piece {
    border-width: 3px;
    padding: 4px;
  }
  .spot-scenes {
    gap: 6px;
    padding: 6px;
  }
  .spot-scenes svg {
    border-width: 2px;
    border-radius: 12px;
  }
  .solitaire-board {
    padding: 7px;
  }
  .solitaire-board .playing-card {
    padding: 3px;
    min-height: 73px;
    border-width: 1.5px;
    border-radius: 7px;
  }
  .card-corner {
    left: 3px;
    top: 4px;
    font-size: 11px;
  }
  .card-bottom-rank {
    font-size: 10px;
    bottom: 3px;
    right: 3px;
  }
  .card-back-art {
    height: 55px;
  }
}
