@font-face {
  font-family: "Aileron";
  src: url("../fonts/aileron-readable-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aileron";
  src: url("../fonts/aileron-readable-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aileron";
  src: url("../fonts/aileron-readable-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #27243c;
  --muted: #716777;
  --purple: #d92573;
  --pink: #d92573;
  --line: #eadfe5;
  --bg: #fffafc;
  --tint: #fff0f6;
  --accent: #aa245f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Aileron", sans-serif;
  font-size: 16px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
header {
  max-width: 1320px;
  margin: auto;
  min-height: 90px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--pink);
  text-decoration: none;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1.2px;
  white-space: nowrap;
}
.logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--pink);
  color: white;
  border-radius: 15px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  box-shadow: 0 4px 0 #fbb5d4;
  padding: 0;
  flex-shrink: 0;
}
.logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 0 32px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  color: #a3285b;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: -2.5px;
  line-height: 1.12;
  font-weight: 900;
  margin: 12px 0;
}
h1 span {
  color: var(--pink);
}
.arcade-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.surprise-button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #b62262;
  border: 2px solid #f2c5d9;
  border-radius: 14px;
  padding: 14px 21px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 0 #f6d8e5;
  min-height: 48px;
}
.surprise-button:hover {
  background: #fff0f6;
}
.section-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.section-caption h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
}
.spotlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--spot-border);
  background: var(--spot-bg);
  text-decoration: none;
  box-shadow: 0 5px 0 var(--spot-border);
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  overflow: hidden;
}
.word-spotlight {
  --spot-bg: #ffedf5;
  --spot-border: #f7c8dd;
  --spot-ink: #a01e57;
}
.merge-spotlight {
  --spot-bg: #fff2df;
  --spot-border: #efd7b2;
  --spot-ink: #9b5a19;
}
.sudoku-spotlight {
  --spot-bg: #edf4ff;
  --spot-border: #ceddf5;
  --spot-ink: #34558d;
}
.spotlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 var(--spot-border);
}
.spotlight-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.spotlight h3 {
  font-size: 29px;
  letter-spacing: -1.2px;
  margin: 0 0 10px;
}
.spotlight p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 17px;
  color: #655867;
}
.play-pill {
  display: inline-block;
  background: white;
  border: 1px solid var(--spot-border);
  border-radius: 100px;
  padding: 8px 15px;
  color: var(--spot-ink);
  font-size: 13px;
  font-weight: 800;
}
.spotlight-demo {
  display: grid;
  gap: 5px;
  flex-shrink: 0;
  width: 125px;
  transform: rotate(6deg);
}
.spotlight-demo i {
  font-style: normal;
  display: grid;
  place-items: center;
  background: #fff9fc;
  border: 1px solid #e7ccda;
  border-radius: 6px;
  aspect-ratio: 1;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 2px 0 #00000007;
}
.letter-demo {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 146px;
  gap: 4px;
}
.letter-demo i {
  border-color: #f0bbd3;
  font-size: 14px;
}
.letter-demo .exact {
  background: #d92573;
  color: white;
  border-color: #d92573;
}
.letter-demo .near {
  background: #efb84e;
  color: #513600;
  border-color: #dfab3e;
}
.merge-demo {
  grid-template-columns: repeat(3, 1fr);
  padding: 6px;
  border-radius: 9px;
  background: #ecd7b8;
}
.merge-demo i {
  background: #ffedd0;
  color: #805221;
  border: 0;
}
.sudoku-demo {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  transform: rotate(-7deg);
  background: white;
  border: 2px solid #5376ab;
  border-radius: 5px;
  overflow: hidden;
}
.sudoku-demo i {
  border-radius: 0;
  box-shadow: none;
  background: white;
  border: 1px solid #ceddf5;
  color: #456696;
}
.sudoku-demo i:nth-child(even) {
  background: #eef3fe;
}
.library {
  margin-top: 43px;
}
.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.library-heading h2 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 8px 0 0;
  font-weight: 900;
}
.category-nav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.category-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
}
.category-nav button.active {
  background: var(--pink);
  color: white;
  box-shadow: 0 3px 0 #f3b4cf;
}
.category-nav button:not(.active):hover {
  background: #fff0f6;
}
.category-nav button span {
  font-size: 12px;
  min-width: 23px;
  padding: 2px 5px;
  border-radius: 20px;
  background: #0000000a;
}
.category-nav button.active span {
  background: #a9275c;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 0 #ece5e9;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 9px 0 var(--card-shadow);
  border-color: var(--card-border);
}
.palette-0 {
  --card-bg: #ffeff6;
  --card-border: #f2c3d8;
  --card-accent: #b32c65;
  --card-shadow: #f4d6e3;
}
.palette-1 {
  --card-bg: #edf4ff;
  --card-border: #d0def4;
  --card-accent: #3c639a;
  --card-shadow: #dbe6f4;
}
.palette-2 {
  --card-bg: #ecf7f0;
  --card-border: #cde6d7;
  --card-accent: #377654;
  --card-shadow: #d8eee0;
}
.palette-3 {
  --card-bg: #fff3e1;
  --card-border: #efd7b5;
  --card-accent: #98621f;
  --card-shadow: #f3e4cb;
}
.palette-4 {
  --card-bg: #f2edff;
  --card-border: #dcd2f2;
  --card-accent: #7554aa;
  --card-shadow: #e6dcf7;
}
.palette-5 {
  --card-bg: #fff0eb;
  --card-border: #f2d1c4;
  --card-accent: #ac503b;
  --card-shadow: #f6ded4;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  padding: 15px 17px 0;
}
.game-category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--card-accent);
}
.badge {
  font-size: 11px;
  color: var(--card-accent);
  opacity: 0.8;
  font-weight: 700;
}
.card-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 111px;
  background: var(--card-bg);
  padding: 16px;
  overflow: hidden;
}
.mini-tile {
  display: grid;
  place-items: center;
  min-width: 31px;
  min-height: 37px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: white;
  box-shadow: 0 3px 0 var(--card-border);
  font-size: 17px;
  font-weight: 800;
  color: var(--card-accent);
}
.mini-exact {
  background: var(--card-accent);
  color: white;
  border-color: var(--card-accent);
}
.mini-near {
  background: #f5d174;
  color: #6a4f13;
  border-color: #e6c061;
}
.preview-search,
.preview-numsearch,
.preview-sudoku,
.preview-magic,
.preview-slide,
.preview-2048 {
  display: grid;
  grid-template-columns: repeat(3, 31px);
  gap: 4px;
  align-content: center;
  min-height: 134px;
  padding: 12px;
}
.preview-search .mini-tile,
.preview-numsearch .mini-tile,
.preview-sudoku .mini-tile,
.preview-magic .mini-tile,
.preview-slide .mini-tile,
.preview-2048 .mini-tile {
  min-width: 0;
  min-height: 29px;
  padding: 3px;
  font-size: 14px;
  border-radius: 4px;
  box-shadow: 0 2px 0 var(--card-border);
}
.preview-memory,
.preview-prime {
  flex-wrap: wrap;
  max-height: 134px;
  align-content: center;
}
.preview-memory .mini-tile {
  min-width: 36px;
}
.preview-ladder {
  gap: 5px;
  flex-wrap: wrap;
}
.preview-ladder .mini-tile {
  font-size: 13px;
  padding: 6px;
  min-width: 43px;
  transform: translateY(-8px);
}
.preview-ladder .mini-tile:nth-child(even) {
  transform: translateY(8px);
}
.preview-synonym .mini-tile,
.preview-opposite .mini-tile,
.preview-rhyme .mini-tile,
.preview-compound .mini-tile,
.preview-odd .mini-tile,
.preview-order .mini-tile {
  font-size: 12px;
  padding: 7px 6px;
  min-width: 0;
}
.preview-order,
.preview-odd {
  flex-wrap: wrap;
}
.preview-builder {
  gap: 3px;
}
.preview-builder .mini-tile {
  padding: 4px;
  min-width: 24px;
  font-size: 15px;
  transform: rotate(-4deg);
}
.preview-builder .mini-tile:nth-child(4) {
  background: #f5d174;
  color: #684613;
  transform: translateY(-8px);
}
.preview-sum .mini-tile,
.preview-math .mini-tile,
.preview-multiply .mini-tile,
.preview-24 .mini-tile {
  min-width: 26px;
  font-size: 16px;
  padding: 5px;
}
.preview-sort .mini-tile,
.preview-sequence .mini-tile {
  font-size: 14px;
  min-width: 29px;
  padding: 5px;
}
.card-copy {
  padding: 19px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 900;
  margin: 0 0 7px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.card-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #f0e9ee;
  margin-top: 16px;
  padding-top: 13px;
}
.card-play {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 100px;
  color: var(--card-accent);
  background: var(--card-bg);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.noscript-note {
  padding: 20px;
  text-align: center;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c2286c;
  outline-offset: 4px;
}
button,
.play-pill {
  touch-action: manipulation;
}
button:disabled:not(.cell):not(.key) {
  opacity: 0.6;
}
.primary,
.secondary {
  font-weight: 700;
}
@media (max-width: 1150px) {
  .spotlight {
    padding: 20px;
    gap: 10px;
  }
  .spotlight-demo {
    width: 100px;
  }
  .letter-demo {
    width: 115px;
  }
  .spotlight h3 {
    font-size: 26px;
  }
  .catalog {
    gap: 18px;
  }
  .card-preview {
    padding: 12px;
  }
  .mini-tile {
    min-width: 27px;
    font-size: 15px;
    padding: 5px 6px;
  }
  .preview-builder .mini-tile {
    min-width: 21px;
    padding: 3px;
  }
  .card h3 {
    font-size: 20px;
  }
}
@media (max-width: 950px) {
  .catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .spotlight {
    display: block;
    padding: 19px;
    min-height: 235px;
  }
  .spotlight-demo {
    position: absolute;
    right: 15px;
    bottom: 20px;
    width: 98px;
    opacity: 0.9;
  }
  .letter-demo {
    width: 104px;
    right: 10px;
    bottom: 26px;
  }
  .spotlight-copy p {
    max-width: 135px;
  }
  .spotlight h3 {
    font-size: 26px;
  }
  .arcade-intro h1 {
    font-size: 44px;
  }
  .surprise-button {
    padding: 12px 16px;
  }
}
@media (max-width: 650px) {
  header {
    padding: 18px 20px;
    min-height: 80px;
    gap: 12px;
  }
  .brand {
    font-size: 25px;
  }
  .logo {
    width: 42px;
    height: 42px;
    font-size: 33px;
    border-radius: 13px;
  }
  main {
    padding: 0 20px;
  }
  .arcade-intro h1 {
    margin-top: 14px;
  }
  .surprise-button {
    margin-top: 20px;
    min-height: 44px;
    box-shadow: 0 3px 0 #f6d8e5;
  }
  .spotlights {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #efb9d0 transparent;
  }
  .spotlight {
    flex: 0 0 88%;
    padding: 23px;
    scroll-snap-align: start;
  }
  .spotlight-demo {
    opacity: 1;
  }
  .library {
    margin-top: 25px;
  }
  .library-heading {
    display: block;
  }
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 12px;
  }
  .category-nav {
    gap: 5px;
    flex-wrap: nowrap;
  }
  .category-nav button span {
    font-size: 11px;
    min-width: 20px;
  }
  .card {
    border-radius: 14px;
  }
  .card-top {
    padding: 12px 12px 0;
  }
  .game-category,
  .badge {
    font-size: 9px;
    letter-spacing: 0.4px;
  }
  .card-preview {
    min-height: 100px;
    gap: 4px;
    padding: 10px 7px;
  }
  .mini-tile {
    font-size: 13px;
    min-width: 23px;
    min-height: 30px;
    padding: 3px 4px;
  }
  .preview-builder {
    gap: 2px;
    flex-wrap: wrap;
  }
  .preview-builder .mini-tile {
    min-width: 18px;
    font-size: 12px;
    padding: 3px;
  }
  .preview-synonym .mini-tile,
  .preview-opposite .mini-tile,
  .preview-rhyme .mini-tile,
  .preview-compound .mini-tile,
  .preview-odd .mini-tile,
  .preview-order .mini-tile {
    font-size: 10px;
    padding: 6px 3px;
  }
  .preview-synonym,
  .preview-rhyme,
  .preview-compound {
    gap: 3px;
    flex-wrap: wrap;
  }
  .preview-ladder .mini-tile {
    font-size: 11px;
    min-width: 38px;
  }
  .preview-search,
  .preview-numsearch,
  .preview-sudoku,
  .preview-magic,
  .preview-slide,
  .preview-2048 {
    grid-template-columns: repeat(3, 27px);
    gap: 3px;
    min-height: 117px;
    padding: 10px;
  }
  .preview-sequence,
  .preview-sort,
  .preview-math,
  .preview-multiply,
  .preview-sum,
  .preview-24 {
    flex-wrap: wrap;
    gap: 3px;
  }
  .preview-sequence .mini-tile,
  .preview-sort .mini-tile,
  .preview-math .mini-tile,
  .preview-multiply .mini-tile,
  .preview-sum .mini-tile,
  .preview-24 .mini-tile {
    font-size: 12px;
    min-width: 20px;
    padding: 3px;
  }
  .card-copy {
    padding: 15px 12px 12px;
  }
  .card h3 {
    font-size: 18px;
    letter-spacing: -0.5px;
  }
  .card p {
    font-size: 12px;
    line-height: 1.5;
  }
  .card-bottom {
    margin-top: 12px;
    padding-top: 10px;
  }
  .card-play {
    font-size: 11px;
    min-height: 29px;
    padding: 5px 12px;
  }
  .card-bottom {
    flex: none;
    justify-content: end;
  }
}
@media (max-width: 360px) {
  header {
    padding: 16px 14px;
  }
  .spotlight {
    padding: 19px;
    flex-basis: 94%;
    gap: 8px;
  }
  .card h3 {
    font-size: 17px;
  }
  .catalog {
    gap: 13px 10px;
  }
  .mini-tile {
    min-width: 20px;
    font-size: 12px;
  }
  .card-preview {
    gap: 3px;
  }
  .card-copy {
    padding: 14px 10px 10px;
  }
  .game-category {
    font-size: 8px;
  }
  .preview-synonym .mini-tile {
    font-size: 9px;
  }
  .preview-higher .mini-tile {
    min-width: 24px;
  }
  .preview-sudoku,
  .preview-search,
  .preview-numsearch,
  .preview-2048,
  .preview-magic,
  .preview-slide {
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Game controls and boards */
#instructions {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 25px;
}
#message {
  font-weight: 600;
  color: var(--purple);
  line-height: 1.5;
}
.secondary {
  background: #fff0f6;
  color: var(--purple);
  border: 0;
  padding: 11px 17px;
  border-radius: 9px;
}
#round-info {
  color: var(--muted);
  font-size: 13px;
}
.answer-form {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.answer-form input {
  min-width: 0;
  flex: 1;
  padding: 12px;
}
.primary {
  border: 0;
  border-radius: 9px;
  background: var(--purple);
  color: white;
  padding: 12px 18px;
}
.prompt {
  font-family: "Aileron", sans-serif;
  text-align: center;
}
.board {
  display: grid;
  margin: 18px auto;
  max-width: 100%;
}
.cell {
  display: grid;
  place-items: center;
  border: 1px solid #efd5e1;
  background: #fff5f9;
  border-radius: 6px;
  font-family: "Aileron", sans-serif;
  font-weight: 600;
  color: var(--ink);
}
button.cell {
  cursor: pointer;
}
.cell.correct {
  background: #3d9675;
  color: white;
  border-color: transparent;
}
.cell.present {
  background: #ce9d35;
  color: white;
  border-color: transparent;
}
.cell.absent {
  background: #8c879d;
  color: white;
  border-color: transparent;
}
.cell.fixed {
  background: #e4dff3;
  color: #52496f;
}
.sudoku .cell {
  width: 40px;
  height: 40px;
  font-size: 19px;
}
.sudoku {
  gap: 3px;
}
.sudoku input {
  text-align: center;
  padding: 0;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}
.choices button {
  border: 1px solid #f0cddd;
  border-radius: 9px;
  background: #fff4f8;
  padding: 13px 20px;
  color: var(--ink);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
  justify-content: center;
}
.chip {
  background: #fff0f6;
  padding: 7px 11px;
  border-radius: 7px;
}
.chip.done {
  text-decoration: line-through;
  background: #dff1e8;
  color: #28714f;
}
.history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}
.history-row {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.history-row small {
  margin-left: 10px;
  color: var(--muted);
}
.controls {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}
.tiny {
  text-align: center;
  color: var(--muted);
}
/* Dedicated game pages */
.back-link {
  text-decoration: none;
}
.game-heading p {
  color: var(--muted);
  max-width: 700px;
}
.game-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.game-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
}
select {
  font: inherit;
  background: white;
  border: 1px solid #d6d0e6;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  max-width: 100%;
}
.game-toolbar #round-info {
  font-size: 14px;
  color: var(--muted);
}
.game-actions {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.game-navigation {
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 20px 0;
}
.game-navigation a {
  font-size: 14px;
  color: var(--muted);
}
.game-navigation a:hover,
.back-link:hover {
  text-decoration: underline;
}
#play {
  min-height: 180px;
  max-width: 650px;
  margin: auto;
}
#message {
  max-width: 650px;
  margin: 20px auto;
  font-size: 15px;
  min-height: 24px;
}
.error {
  color: #a72d43 !important;
}
.success {
  color: #227756 !important;
}
.result {
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 650px;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.5;
}
.win {
  background: #e3f4eb;
  color: #216e4c;
}
.loss {
  background: #fff0e7;
  color: #9a4b22;
}
[hidden] {
  display: none !important;
}
.board {
  width: min(100%, var(--board-width, 360px));
  gap: 6px;
}
.cell {
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  font-size: clamp(1rem, 4vw, 1.75rem);
  padding: 0;
}
.board button {
  touch-action: manipulation;
}
.cell:disabled {
  opacity: 1;
  cursor: default;
}
.guess-board {
  --board-width: 300px;
}
.guess-board .cell {
  height: auto;
  width: 100%;
  border-width: 2px;
  border-radius: 7px;
}
.history-row .cell {
  width: clamp(30px, 8vw, 44px);
  height: auto;
  flex-shrink: 0;
}
.history-row {
  flex-wrap: wrap;
}
.history-row small {
  font-size: 13px;
}
.keyboard {
  max-width: 510px;
  margin: 22px auto 12px;
}
.keyboard-row {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 5px 0;
}
.key {
  border: 1px solid #efd0de;
  color: var(--ink);
  border-radius: 6px;
  min-height: 44px;
  padding: 7px 10px;
  font-weight: 600;
  min-width: 0;
}
.keyboard .key {
  padding: 8px 0;
  flex: 1;
  max-width: 45px;
  font-size: 14px;
}
.keyboard .key:disabled {
  opacity: 1;
}
.correct,
.key.correct,
.choice.correct {
  background: #3d9675 !important;
  color: white !important;
  border-color: #3d9675 !important;
}
.present,
.key.present {
  background: #bc8823 !important;
  color: white !important;
  border-color: #bc8823 !important;
}
.absent,
.key.absent {
  background: #716b80 !important;
  color: white !important;
  border-color: #716b80 !important;
}
.key.selected,
.preview {
  background: #f9c8dd !important;
  color: #972051 !important;
}
.choices {
  gap: 10px;
}
.choices .choice {
  flex: 1 1 120px;
  min-height: 48px;
  padding: 13px;
  overflow-wrap: anywhere;
}
.choice.wrong {
  background: #fff0f1;
  border-color: #df9aab;
  color: #a22c40;
}
.choice:disabled:not(.correct) {
  opacity: 0.65;
}
.next-question {
  display: block;
  margin: 18px auto;
}
.controls {
  flex-wrap: wrap;
  gap: 8px;
}
.controls button {
  font-size: 14px;
  min-height: 44px;
  padding: 10px 15px;
}
.controls .direction {
  font-size: 24px;
  padding: 7px 16px;
  background: #fff0f6;
}
.prompt {
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: 1px;
  overflow-wrap: anywhere;
  line-height: 1.55;
  padding: 22px 12px;
}
.draft,
.clue,
.misses,
.tile-stats,
.sum-total {
  font-size: 16px;
  text-align: center;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.clue {
  color: var(--muted);
}
.draft {
  min-height: 26px;
  font-weight: 700;
  letter-spacing: 2px;
}
.letter-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}
.letter-tile {
  min-width: 44px;
  min-height: 48px;
  font-weight: 700;
  font-size: 20px;
  border: 1px solid #f0c2d6;
  border-radius: 9px;
}
.letter-tile:disabled {
  opacity: 0.35;
}
.letter-tile.center-letter {
  background: #f4d58b;
  color: #5e4105;
  border-color: #d5af51;
}
.quiz-progress,
.lives {
  display: block;
  width: 100%;
  height: 10px;
  border: 0;
  accent-color: var(--purple);
  margin: 20px 0;
}
.lives {
  accent-color: #3d9675;
}
.memory-board {
  --board-width: 400px;
}
.memory-board .cell {
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  min-height: 50px;
}
.wordboard {
  --board-width: 490px;
  gap: 3px;
}
.wordboard .cell {
  width: 100%;
  height: auto;
  font-size: clamp(0.85rem, 3vw, 1.25rem);
  border-radius: 4px;
}
.search-board,
.merge-board {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.search-board .cell {
  aspect-ratio: 1.08;
}
.number-picks {
  --board-width: 390px;
}
.expression-keypad {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin: 18px 0;
}
.expression-keypad .key {
  min-width: 44px;
}
.slide-board {
  --board-width: 390px;
  gap: 7px;
}
.slide-board .cell {
  border-radius: 9px;
}
.slide-board .cell.in-place {
  background: #e0f2e7;
  color: #2c7c59;
}
.goal-preview {
  padding: 15px;
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.7;
  background: #fff4f8;
  border-radius: 9px;
}
.magic-board {
  --board-width: 270px;
}
.magic-board input {
  text-align: center;
}
.magic-totals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
  justify-content: center;
}
.conflict {
  background: #ffdde3 !important;
  color: #a9223b !important;
  border-color: #d66a80 !important;
}
.sudoku-board {
  --board-width: 450px;
  gap: 0;
  border: 2px solid #78698a;
}
.sudoku-board .cell {
  border-radius: 0;
  width: 100%;
  height: auto;
  border: 1px solid #d8d1e3;
  aspect-ratio: 1;
  font-size: clamp(1rem, 4vw, 1.6rem);
  background: white;
  font-weight: 500;
}
.sudoku-board .fixed {
  font-weight: 700;
}
.sudoku-board .peer {
  background: #fff3f8;
}
.sudoku-board .same-digit {
  background: #fbd9e8;
}
.sudoku-board .notes {
  font-size: clamp(0.65rem, 2vw, 0.9rem);
  line-height: 1.5;
  white-space: normal;
  padding: 2px;
  word-spacing: 2px;
}
.sudoku-keypad {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  max-width: 450px;
  margin: 18px auto;
}
.sudoku-keypad .key {
  padding: 7px 0;
}
.table-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.guess-log {
  max-height: 250px;
  overflow: auto;
  font-size: 15px;
  line-height: 1.9;
  padding-left: 30px;
}
button:disabled {
  cursor: default;
}
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d92573;
  outline-offset: 3px;
}
#game-tip {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 650px) {
  .game-layout {
    padding-left: 14px;
    padding-right: 14px;
  }
  .game-heading {
    padding-top: 25px;
  }
  .game-toolbar #round-info {
    font-size: 13px;
  }
  .answer-form {
    gap: 6px;
  }
  .answer-form input {
    width: 0;
    padding: 12px 10px;
    font-size: 16px;
  }
  .answer-form .primary {
    padding: 12px;
  }
  .game-navigation {
    flex-direction: column;
  }
  .board {
    gap: 5px;
  }
  .sudoku-board {
    gap: 0;
  }
  .wordboard {
    gap: 2px;
  }
  .controls button {
    padding: 10px 12px;
  }
  .memory-board .cell {
    min-height: 45px;
  }
  .game-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 360px) {
  .keyboard-row {
    gap: 3px;
  }
  .key {
    padding: 7px;
  }
  .board {
    gap: 4px;
  }
  .sudoku-board {
    gap: 0;
  }
  .wordboard {
    gap: 2px;
  }
  .sudoku-keypad .key {
    font-size: 14px;
  }
  .cell {
    font-size: 1rem;
  }
  main {
    padding: 0 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .cell.correct {
    transition: background 0.15s;
  }
  .letter-tile:hover,
  .key:hover {
    filter: brightness(0.96);
  }
}
.digit-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 18px auto;
}
.digit-status .chip {
  min-width: 30px;
  text-align: center;
}
.chip {
  font-size: 14px;
}
.tiny {
  font-size: 14px;
}
.letter-tile,
.key,
.direction,
.choice {
  touch-action: manipulation;
}
/* The puzzle desk */
.back-link {
  border: 1px solid #f1cddd;
  background: white;
  border-radius: 100px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  color: #ad285e;
}
.game-heading {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 32px 0 25px;
}
.game-emblem {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 24px;
  background: #ffeaf3;
  color: #b12762;
  border: 1px solid #f5c5da;
  box-shadow: 0 5px 0 #f6d9e5;
  font-size: 39px;
  font-weight: 900;
  transform: rotate(-5deg);
}
body[data-category="number"] .game-emblem {
  background: #fff1df;
  border-color: #eed7b7;
  color: #a16124;
  box-shadow: 0 5px 0 #f3e3cc;
}
.game-heading-copy {
  min-width: 0;
}
.game-heading .eyebrow {
  display: inline-block;
  padding: 5px 9px;
  background: #fff0f6;
  border: 1px solid #f4d3e2;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 1px;
}
.game-heading h1 {
  font-size: clamp(2.15rem, 5vw, 3rem);
  font-weight: 900;
  margin: 9px 0 10px;
  letter-spacing: -1.7px;
}
.game-heading p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.game-surface {
  background: white;
  border: 1px solid #eadbe2;
  border-radius: 22px;
  box-shadow: 0 7px 0 #f0e2e9;
  padding: 25px clamp(12px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}
.game-toolbar {
  padding: 0 0 20px;
  margin-bottom: 22px;
  border-color: #efe3e9;
}
.game-toolbar label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.game-toolbar select {
  background: #fff6fa;
  border-color: #efd5e1;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
}
.score-pill {
  padding: 9px 12px;
  border-radius: 9px;
  background: #f9f4f7;
  color: #77616d !important;
  font-size: 12px !important;
}
.game-actions {
  border-color: #eee0e7;
  justify-content: space-between;
}
.game-actions #restart {
  background: var(--pink);
  color: white;
  border: 0;
  border-radius: 11px;
  padding: 12px 20px;
  box-shadow: 0 3px 0 #f3bfd5;
}
.prompt {
  background: #fff3f8;
  border: 1px solid #f4dae6;
  border-radius: 15px;
  color: #85214c;
  font-weight: 800;
}
.answer-form input {
  border: 2px solid #edd6e1;
  background: #fffdfd;
  border-radius: 11px;
}
.answer-form .primary,
.next-question {
  box-shadow: 0 3px 0 #f2bed4;
  font-weight: 800;
  border-radius: 10px;
}
.controls button {
  border: 1px solid #efccdc;
  background: #fff0f6;
  color: #a2285d;
  border-radius: 10px;
  font-weight: 700;
}
.controls .primary {
  border-color: var(--pink);
  color: white;
  background: var(--pink);
}
.key {
  background: #fff4f8;
  border-color: #edccdb;
  box-shadow: 0 2px 0 #f0dce5;
}
.guess-board .cell {
  border-color: #efd3e0;
  background: #fff8fb;
}
.cell.selected {
  background: var(--pink);
  color: white;
}
.letter-tile {
  background: #fff0f6;
  border-color: #f0c3d7;
  color: #a0255a;
  box-shadow: 0 3px 0 #efcada;
}
.choices .choice {
  background: #fff6fa;
  border-color: #f0d3e0;
  box-shadow: 0 3px 0 #f6e6ed;
  font-weight: 700;
}
.game-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 25px;
}
.game-navigation a {
  padding: 17px 20px;
  border: 1px solid #efdae4;
  border-radius: 14px;
  background: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.game-navigation a:hover {
  background: #fff0f6;
  text-decoration: none;
  border-color: #efa8c7;
}
.game-navigation a:last-child {
  text-align: right;
}
.navigation-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #a73565;
  font-weight: 800;
}
.game-navigation strong {
  font-size: 18px;
  color: var(--ink);
}
.sudoku-board {
  border-color: #ad7690;
}
.sudoku-board .cell {
  border-color: #ecdae3;
}
.sudoku-board .box-right {
  border-right: 2px solid #ad7690;
}
.sudoku-board .box-bottom {
  border-bottom: 2px solid #ad7690;
}
.sudoku-board .fixed {
  background: #faf1f5;
  color: #664552;
}
.sudoku-board .selected {
  background: var(--pink) !important;
  color: white;
}
.sudoku-board .notes {
  color: #97667c;
}
.board .cell.conflict {
  background: #ffdde3 !important;
  color: #a9223b !important;
}
.goal-preview {
  border: 1px solid #f2dbe6;
}
.result {
  box-shadow: 0 3px 0 #d8e9df;
}
.loss {
  box-shadow: 0 3px 0 #f0d5c2;
}
.quiz-progress {
  height: 11px;
  border-radius: 100px;
}
.preview {
  background: #f9c8dd !important;
}
.chip {
  border: 1px solid #f2d8e4;
}
.chip.done {
  border-color: #d2e6da;
}
@media (max-width: 650px) {
  .back-link {
    padding: 9px 12px;
    font-size: 12px;
  }
  .game-layout {
    padding: 0 14px 25px;
  }
  .game-heading {
    gap: 15px;
    padding: 26px 0 24px;
    align-items: start;
  }
  .game-emblem {
    width: 57px;
    height: 57px;
    border-radius: 16px;
    font-size: 26px;
    margin-top: 6px;
    box-shadow: 0 3px 0 #f6d9e5;
  }
  .game-heading h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .game-heading p {
    font-size: 14px;
    line-height: 1.65;
  }
  .game-heading .eyebrow {
    font-size: 9px;
    padding: 4px 7px;
  }
  .game-surface {
    padding: 20px 12px;
    border-radius: 18px;
  }
  .score-pill {
    font-size: 11px !important;
    padding: 8px 9px;
  }
  .game-toolbar {
    padding-bottom: 17px;
    gap: 10px;
  }
  .game-navigation {
    gap: 10px;
  }
  .game-navigation a {
    padding: 15px 12px;
  }
  .game-navigation strong {
    font-size: 16px;
  }
  .navigation-label {
    font-size: 9px;
  }
  .game-actions #restart {
    padding: 11px 18px;
  }
}
@media (max-width: 360px) {
  .game-layout {
    padding: 0 10px 20px;
  }
  .game-heading {
    gap: 12px;
  }
  .game-emblem {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 23px;
  }
  .game-heading h1 {
    font-size: 29px;
  }
  .game-surface {
    padding: 17px 9px;
  }
  .score-pill {
    align-self: stretch;
    text-align: center;
  }
  .game-toolbar {
    flex-direction: row;
    align-items: center;
  }
  .game-toolbar label {
    font-size: 12px;
  }
  .game-toolbar select {
    font-size: 12px;
    padding: 8px 10px;
  }
  .back-link {
    font-size: 11px;
    padding: 8px 10px;
  }
  .game-navigation a {
    padding: 14px 10px;
  }
  .game-navigation strong {
    font-size: 15px;
  }
  .game-heading p {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .surprise-button:hover span {
    transform: rotate(35deg);
    transition: transform 0.2s;
  }
  .card:hover .card-play {
    background: var(--card-accent);
    color: white;
  }
  .game-navigation a {
    transition: background 0.15s;
  }
}
.catalog a.card {
  display: flex;
}
.catalog .card-preview {
  height: 134px;
  min-height: 134px;
  flex-shrink: 0;
}
@media (max-width: 650px) {
  .catalog .card-preview {
    height: 117px;
    min-height: 117px;
  }
}
@media (max-width: 650px) {
  .spotlight {
    display: block;
  }
  .spotlight h3 {
    font-size: 28px;
    white-space: nowrap;
  }
  .spotlight-demo {
    position: absolute;
    right: 20px;
    width: 100px;
  }
  .letter-demo {
    width: 105px;
  }
  .library-heading h2 {
    font-size: 27px;
  }
}
@media (max-width: 360px) {
  .spotlight {
    min-height: 228px;
  }
  .spotlight-copy p {
    font-size: 13px;
  }
  .spotlight-demo {
    right: 16px;
    width: 88px;
  }
  .letter-demo {
    width: 93px;
  }
  .spotlight h3 {
    font-size: 26px;
  }
  .library-heading h2 {
    font-size: 25px;
  }
}
@media (max-width: 650px) {
  .spotlight-demo {
    bottom: auto;
  }
}
/* Shorter copy, and a little personality on hover. */
.brand-name {
  display: inline-flex;
  align-items: baseline;
}
.brand-letter {
  display: inline-block;
  transform-origin: 50% 85%;
}
.card-bottom {
  justify-content: flex-end;
  flex: none;
}
.card-bottom .card-play {
  font-size: 12px;
}
.arcade-intro {
  padding: 26px 0;
}
.arcade-intro h1 {
  margin: 5px 0;
}
.library-heading h2 {
  margin-top: 0;
}
.library {
  margin-bottom: 45px;
}
.spotlight {
  min-height: 196px;
}
.spotlight-demo {
  align-self: center;
}
.game-layout {
  max-width: 740px;
  padding-bottom: 40px;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover .logo {
    animation: brand-wiggle 0.65s ease-in-out;
  }
  .brand:hover .brand-letter {
    animation: brand-hop 0.55s ease-in-out both;
    animation-delay: calc(var(--i) * 35ms);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .brand:focus-visible .logo {
    animation: brand-wiggle 0.65s ease-in-out;
  }
  .brand:focus-visible .brand-letter {
    animation: brand-hop 0.55s ease-in-out both;
    animation-delay: calc(var(--i) * 35ms);
  }
}
@keyframes brand-wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-9deg);
  }
  55% {
    transform: rotate(7deg);
  }
  80% {
    transform: rotate(-3deg);
  }
}
@keyframes brand-hop {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px) rotate(-4deg);
  }
  70% {
    transform: translateY(1px);
  }
}
@media (max-width: 650px) {
  .arcade-intro {
    display: flex;
    gap: 12px;
    padding: 25px 0;
  }
  .arcade-intro h1 {
    font-size: 36px;
    letter-spacing: -1.7px;
  }
  .surprise-button {
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
  }
  .spotlight {
    min-height: 192px;
  }
  .spotlight-demo {
    top: 49px;
  }
  .spotlight-copy p {
    min-height: 48px;
    max-width: 145px;
  }
  .spotlight h3 {
    margin-bottom: 12px;
  }
  .library-heading {
    margin-bottom: 16px;
  }
  .category-nav button {
    padding: 10px 9px;
    font-size: 12px;
    gap: 5px;
  }
  .game-layout {
    padding-bottom: 30px;
  }
  .brand {
    gap: 9px;
  }
}
@media (max-width: 360px) {
  .arcade-intro {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .arcade-intro h1 {
    font-size: 37px;
  }
  .surprise-button {
    font-size: 13px;
  }
  .spotlight-copy p {
    max-width: 132px;
  }
  .category-nav {
    gap: 3px;
  }
  .category-nav button {
    font-size: 11px;
    padding: 10px 8px;
    gap: 4px;
  }
  .brand {
    gap: 8px;
  }
}
/* Codepad */
.codepad-device {
  max-width: 350px;
  margin: 12px auto 26px;
  padding: 22px;
}
.codepad-device-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.codepad-device-name {
  font-size: 12px;
  font-weight: 800;
}
.codepad-attempts {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.codepad-screen {
  position: relative;
  border: 1px solid #655365;
  padding: 17px 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.codepad-screen-label {
  display: block;
  font-size: 10px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 13px;
}
.codepad-slots {
  display: grid;
  grid-template-columns: repeat(var(--digits), minmax(0, 1fr));
  gap: 8px;
  position: relative;
  pointer-events: none;
}
.codepad-slot {
  display: grid;
  place-items: center;
  min-height: 48px;
  font-family: "Aileron", sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.codepad-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  opacity: 0;
  cursor: text;
  font-size: 16px;
}
.codepad-screen:focus-within {
  outline: 2px solid #ee90b7;
  outline-offset: 2px;
}
.codepad-input:focus-visible {
  outline: 0;
}
.codepad-form {
  margin: 0;
}
.codepad-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.codepad-key {
  min-height: 58px;
  font-weight: 700;
  touch-action: manipulation;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    background-color 0.12s;
}
.codepad-function {
  font-weight: 600;
}
.codepad-submit {
  display: block;
  width: 100%;
  min-height: 47px;
  margin-top: 20px;
  color: white;
  font-weight: 800;
  font-size: 15px;
}
.codepad-log-title {
  font-size: 16px;
  letter-spacing: 0;
  margin: 30px auto 12px;
  text-align: center;
}
.codepad-history {
  max-width: 430px;
  margin: 0 auto;
}
.codepad-history .history-row small {
  font-size: 12px;
}
.codepad-key:disabled,
.codepad-submit:disabled {
  opacity: 0.65 !important;
  box-shadow: none;
}
/* Hangman */
.hangman-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 25px;
  max-width: 490px;
  margin: 10px auto 24px;
}
.hangman-drawing {
  background: #fff5f9;
  border: 1px solid #f0d9e4;
  border-radius: 17px;
  padding: 10px;
}
.hangman-figure {
  display: block;
  width: 100%;
  height: auto;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.hangman-frame {
  stroke: #aa879b;
}
.hangman-rope {
  stroke: #97798a;
  opacity: 0;
}
.hangman-part {
  stroke: #cc3979;
  opacity: 0;
}
.hangman-part.visible,
.hangman-rope.visible {
  opacity: 1;
}
.hangman-theme {
  display: inline-block;
  background: #fff0f6;
  color: #a32b60;
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #efcddd;
}
.hangman-remaining {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 14px 0 11px;
}
.hangman-lives {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.hangman-life {
  height: 10px;
  width: 19px;
  border-radius: 4px;
}
.hangman-life.alive {
  background: #d92573;
}
.hangman-life.lost {
  background: #eadce4;
}
.hangman-misses {
  margin-top: 25px;
}
.hangman-small-label {
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #977284;
  font-weight: 700;
}
.hangman-missed-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.hangman-missed-letter {
  display: grid;
  place-items: center;
  width: 25px;
  height: 29px;
  border: 1px solid #edcddd;
  background: #fff1f6;
  color: #a94268;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}
.hangman-no-misses {
  font-size: 13px;
  color: var(--muted);
}
.hangman-word {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 25px 0;
  min-height: 48px;
}
.hangman-letter {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 46px;
  border-bottom: 3px solid #d8adbf;
  font-size: 24px;
  font-weight: 800;
  color: #83294f;
  background: #fff7fa;
  border-radius: 7px 7px 0 0;
}
.hangman-letter.revealed {
  border-color: #d92573;
}
.hangman-letter.missed-answer {
  color: #a22b46;
  background: #ffe9ee;
}
.hangman-keyboard .key {
  border-radius: 8px;
  min-height: 47px;
}
.hangman-keyboard .key.absent {
  opacity: 0.5;
}
@media (max-width: 650px) {
  .codepad-device {
    max-width: 330px;
  }
  .codepad-key {
    min-height: 56px;
  }
  .hangman-area {
    gap: 16px;
  }
  .hangman-drawing {
    padding: 7px;
  }
  .hangman-remaining {
    font-size: 18px;
  }
  .hangman-misses {
    margin-top: 18px;
  }
  .hangman-letter {
    width: 29px;
    min-height: 38px;
    font-size: 20px;
  }
  .hangman-word {
    gap: 4px;
  }
  .hangman-life {
    width: 15px;
  }
}
@media (max-width: 360px) {
  .codepad-keypad {
    gap: 9px;
  }
  .codepad-key {
    min-height: 52px;
  }
  .codepad-slot {
    font-size: 24px;
    min-height: 42px;
  }
  .codepad-slots {
    gap: 5px;
  }
  .hangman-area {
    gap: 12px;
  }
  .hangman-remaining {
    font-size: 16px;
  }
  .hangman-theme {
    font-size: 11px;
  }
  .hangman-life {
    width: 12px;
  }
  .hangman-word .hangman-letter {
    width: 27px;
    font-size: 18px;
  }
  .hangman-missed-letter {
    width: 23px;
    height: 26px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hangman-part,
  .hangman-rope {
    transition: opacity 0.2s;
  }
}
.catalog .card-bottom .card-play {
  display: grid;
  max-width: none;
  color: var(--card-accent);
  line-height: 1.2;
}
.catalog .card:hover .card-play,
.catalog .card:focus-visible .card-play {
  background: var(--card-accent);
  color: white;
}
.hangman-expression {
  stroke: #cc3979;
  stroke-width: 3;
  opacity: 0;
}
.hangman-expression.visible {
  opacity: 1;
}
/* Account placeholder */
.header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.account-button {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  padding: 0;
  border: 1px solid #edc7d8;
  border-radius: 50%;
  color: #ac2b61;
  background: white;
  flex-shrink: 0;
}
.account-button:hover,
.account-button:focus-visible {
  background: #fff0f6;
  border-color: #dd8bad;
}
.account-button svg {
  display: block;
}
.header-actions .back-link {
  white-space: nowrap;
}
/* Codepad follows the site's lighter palette. */
.codepad-device {
  background: #fcf8fa;
  border: 1px solid #ead6e0;
  box-shadow: 0 3px 0 #efdee6;
  border-radius: 18px;
}
.codepad-device-name {
  color: #9d466d;
  letter-spacing: 1.5px;
}
.codepad-attempts {
  color: #897481;
}
.codepad-screen {
  background: white;
  border-color: #e7d4de;
  border-radius: 10px;
}
.codepad-screen-label {
  color: #9a7688;
  letter-spacing: 1px;
}
.codepad-slot {
  background: #fff7fa;
  border: 1px solid #eed4e1;
  color: #baa3af;
  border-radius: 5px;
  font-size: 27px;
}
.codepad-slot.filled {
  color: #843454;
  border-color: #e3b2c8;
}
.codepad-slot.cursor {
  border-bottom: 3px solid #d92573;
}
.codepad-screen:focus-within {
  outline-color: #d92573;
}
.codepad-key {
  background: white;
  color: #423443;
  border: 1px solid #e8d3de;
  box-shadow: 0 2px 0 #e7d5de;
  border-radius: 8px;
  font-size: 24px;
}
.codepad-function {
  background: #f8edf2;
  color: #965773;
  border-color: #e6c9d7;
  box-shadow: 0 2px 0 #e4cfda;
  font-size: 12px;
}
.codepad-key:hover {
  background: #fff0f6;
}
.codepad-function:hover {
  background: #f7dce9;
}
.codepad-key.ruled-out {
  background: #eae5e9;
  border-color: #d8cdd4;
  color: #92828d;
}
.codepad-key.in-code {
  background: #f9dd8e;
  border-color: #dfbf67;
  color: #705313;
}
.codepad-submit {
  background: var(--pink);
  border: 0;
  box-shadow: 0 2px 0 #ecbdd1;
  border-radius: 9px;
}
.codepad-submit:hover {
  background: #bd1e63;
}
.codepad-device .codepad-key:focus-visible {
  outline-color: #c52a6b;
}
@media (max-width: 650px) {
  .header-actions {
    gap: 10px;
  }
  .account-button {
    width: 36px;
    height: 36px;
  }
  .header-actions .back-link {
    padding: 8px 11px;
  }
  .codepad-device {
    padding: 18px;
  }
}
@media (max-width: 360px) {
  header {
    gap: 9px;
  }
  .header-actions {
    gap: 8px;
  }
  .account-button {
    width: 33px;
    height: 33px;
  }
  .account-button svg {
    width: 19px;
    height: 19px;
  }
  .brand {
    font-size: 21px;
  }
  .logo {
    width: 34px;
    height: 34px;
    font-size: 28px;
  }
  .header-actions .back-link {
    padding: 7px 9px;
    font-size: 11px;
  }
  .codepad-device {
    padding: 16px;
  }
}
/* Account preview */
.account-button {
  cursor: pointer;
  text-decoration: none;
}
.account-layout {
  max-width: 540px;
  padding-top: 28px;
  padding-bottom: 50px;
}
.account-back,
.account-return {
  font-size: 14px;
  color: #a32b60;
  text-decoration: none;
}
.account-back:hover,
.account-return:hover {
  text-decoration: underline;
}
.account-panel {
  margin-top: 25px;
  border: 1px solid #ead6e0;
  border-radius: 22px;
  background: white;
  padding: 35px;
  box-shadow: 0 5px 0 #f0e1e8;
}
.account-avatar {
  display: grid;
  place-items: center;
  background: #fff0f6;
  border: 1px solid #f0cada;
  color: #a52a60;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  margin: 0 auto 18px;
}
.account-preview-label {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #a52a60;
}
.account-panel h1 {
  font-size: 32px;
  letter-spacing: -1px;
  text-align: center;
  margin: 12px 0;
}
.account-notice {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}
.account-tabs {
  display: flex;
  gap: 6px;
  background: #fbf1f6;
  padding: 5px;
  border-radius: 11px;
  margin-bottom: 24px;
}
.account-tabs button {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 6px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #8c6277;
}
.account-tabs button[aria-pressed="true"] {
  background: white;
  color: #ac2b61;
  box-shadow: 0 2px 4px #482b3b0b;
}
.account-panel label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 17px 0 8px;
}
.account-panel input {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #ecd8e2;
  border-radius: 9px;
  font-size: 16px;
  background: #fcf9fb;
  color: #82727c;
  opacity: 1;
}
.account-submit {
  display: block;
  width: 100%;
  margin-top: 24px;
  min-height: 46px;
}
.account-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.account-return {
  display: block;
  text-align: center;
  margin-top: 22px;
}
@media (max-width: 650px) {
  .account-layout {
    padding: 25px 18px 40px;
  }
  .account-panel {
    padding: 27px 22px;
  }
}
@media (max-width: 360px) {
  .account-layout {
    padding: 22px 14px 35px;
  }
  .account-panel {
    padding: 24px 17px;
  }
  .account-tabs button {
    font-size: 13px;
  }
}
.account-button[aria-current="page"] {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

/* Puzzle modes, browsing tags, and dense board controls. */
.puzzle-modes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.puzzle-modes button[aria-pressed="true"] {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
}
.daily-date {
  color: var(--muted, #806773);
  font-size: 12px;
}
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}
.game-tag {
  border: 1px solid #efdae4;
  border-radius: 20px;
  padding: 3px 8px;
  color: #7b5367;
  background: #fff7fb;
  font-size: 11px;
  line-height: 1.4;
}
.board-frame {
  width: 100%;
  min-width: 0;
}
.board-view-controls {
  display: flex;
  justify-content: center;
  margin: 12px 0 8px;
}
.board-view-controls button {
  min-height: 44px;
  font-size: 13px;
}
.board-viewport {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: 4px;
}
.board-enlarged .board {
  width: var(--enlarged-board-width, calc(var(--cols) * 48px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.board-enlarged .cell {
  min-height: 44px;
  font-size: 21px;
}
.board-enlarged .sudoku-board .notes {
  font-size: 11px;
}
.board-enlarged .search-board,
.board-enlarged .search-board button {
  touch-action: pan-x pan-y pinch-zoom;
}
/* 2048: a quiet board, distinct tile values, and compact controls. */
.merge-board {
  --board-width: 420px;
  gap: clamp(6px, 1.5vw, 10px);
  padding: clamp(8px, 2vw, 12px);
  border-radius: 16px;
  background: #e9dce3;
  border: 1px solid #e0ccd6;
  isolation: isolate;
}
.merge-board .tile2048 {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 8px;
  background: #f4eaf0;
  color: #543548;
  font-size: clamp(26px, 6vw, 42px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.merge-board .tile2048[data-digits="3"] {
  font-size: clamp(23px, 5.5vw, 35px);
}
.merge-board .tile2048[data-digits="4"],
.merge-board .tile2048[data-digits="5"] {
  font-size: clamp(19px, 4.5vw, 29px);
}
.merge-board .tile2048[data-value="0"] {
  background: #f4eaf0;
  color: transparent;
}
.merge-board .tile2048[data-value="2"] {
  background: #fffafd;
}
.merge-board .tile2048[data-value="4"] {
  background: #fce1ec;
}
.merge-board .tile2048[data-value="8"] {
  background: #f8bdd5;
}
.merge-board .tile2048[data-value="16"] {
  background: #f493bb;
  color: #54263b;
}
.merge-board .tile2048[data-value="32"] {
  background: #eb6aa0;
  color: #481a2e;
}
.merge-board .tile2048[data-value="64"] {
  background: #de3b81;
  color: white;
}
.merge-board .tile2048[data-value="128"] {
  background: #bf2265;
  color: white;
}
.merge-board .tile2048[data-value="256"] {
  background: #a31c59;
  color: white;
}
.merge-board .tile2048[data-value="512"] {
  background: #87174d;
  color: white;
}
.merge-board .tile2048[data-value="1024"] {
  background: #6e1642;
  color: white;
}
.merge-board .tile2048[data-value="2048"] {
  background: #4e1234;
  color: white;
}
.merge-board .tile2048[data-value="4096"],
.merge-board .tile2048[data-value="8192"],
.merge-board .tile2048[data-value="16384"],
.merge-board .tile2048[data-value="32768"],
.merge-board .tile2048[data-value="65536"],
.merge-board .tile2048[data-value="131072"] {
  background: #3d142c;
  color: white;
}
.merge-stats {
  width: min(100%, 420px);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 4px auto 0;
}
.merge-stat {
  display: grid;
  text-align: left;
}
.merge-stat:last-child {
  text-align: right;
}
.merge-stat-label {
  color: #876c7a;
  font-size: 12px;
}
.merge-stat strong {
  font-size: 26px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.merge-controls {
  align-items: center;
  gap: 28px;
}
.merge-dpad {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(2, 44px);
  gap: 5px;
}
.merge-dpad .direction {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border-radius: 9px;
  font-size: 21px;
}
.direction-up {
  grid-area: 1 / 2;
}
.direction-left {
  grid-area: 2 / 1;
}
.direction-down {
  grid-area: 2 / 2;
}
.direction-right {
  grid-area: 2 / 3;
}
@keyframes merge-move {
  from {
    transform: translate(var(--from-x), var(--from-y));
  }
  to {
    transform: translate(0, 0);
  }
}
@keyframes merge-combine {
  0% {
    transform: translate(var(--from-x), var(--from-y));
  }
  65% {
    transform: translate(0, 0) scale(1);
  }
  82% {
    transform: translate(0, 0) scale(1.09);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes merge-spawn {
  from {
    transform: scale(0.6);
    opacity: 0.3;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .merge-board .tile-moved {
    animation: merge-move 130ms ease-out;
    position: relative;
    z-index: 1;
  }
  .merge-board .tile-merged {
    animation: merge-combine 220ms ease-out;
    position: relative;
    z-index: 2;
  }
  .merge-board .tile-spawned {
    animation: merge-spawn 160ms ease-out;
  }
}

/* Card previews use game actions; no animation runs until hover or keyboard focus. */
.mini-content {
  display: grid;
  grid-template-areas: "face";
  place-items: center;
  position: relative;
  min-width: 0;
  width: 100%;
  height: 100%;
  align-self: stretch;
  justify-self: stretch;
  border-radius: inherit;
}
.preview-before,
.preview-after {
  grid-area: face;
}
.preview-after {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: var(--preview-after-bg, transparent);
  color: var(--preview-after-ink, inherit);
  border-radius: inherit;
}
.preview-memory {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  gap: 6px;
  align-content: center;
}
.preview-memory .mini-tile {
  min-width: 0;
  min-height: 35px;
  padding: 3px;
  font-size: 12px;
}
.preview-readout {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--card-accent);
}
.preview-readout-after {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--card-bg);
}
.preview-sum {
  flex-wrap: wrap;
}
.preview-sum .preview-readout {
  width: 100%;
}
.preview-order {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.preview-order .mini-tile {
  white-space: nowrap;
}
.preview-scramble .mini-tile {
  width: 32px;
  flex: 0 0 32px;
}
.preview-sort .mini-tile {
  width: 32px;
  flex: 0 0 32px;
}
.preview-2048 {
  --preview-gap: 4px;
  grid-template-columns: repeat(4, 26px);
  gap: var(--preview-gap);
  background: var(--card-bg);
}
.preview-2048 .mini-tile {
  min-height: 26px;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  box-shadow: none;
  background: #e9dce3;
  color: #543548;
  font-size: 11px;
}
.preview-2048 .mini-content {
  height: 100%;
  background: var(--preview-tile-bg, transparent);
}
.preview-2048 .mini-tile[data-value="2"] {
  --preview-tile-bg: #fffafd;
}
.preview-2048 .mini-tile[data-value="4"] {
  --preview-tile-bg: #fce1ec;
}
.preview-2048 .mini-tile[data-value="8"] {
  --preview-tile-bg: #f8bdd5;
}
.preview-2048 .mini-tile[data-value="16"] {
  --preview-tile-bg: #f493bb;
}
.preview-2048 .mini-tile[data-value="32"] {
  --preview-tile-bg: #eb6aa0;
  color: #35202c;
}
.preview-2048 .mini-tile[data-value="64"] {
  --preview-tile-bg: #c92b72;
  color: white;
}
.preview-2048 .mini-tile[data-value="128"] {
  --preview-tile-bg: #bf2265;
  color: white;
}
.preview-2048 .mini-tile[data-value="256"] {
  --preview-tile-bg: #a31c59;
  color: white;
}
.preview-2048 .mini-tile[data-value="512"] {
  --preview-tile-bg: #87174d;
  color: white;
}
.preview-slide {
  --preview-gap: 4px;
  /* The sliding face is inset by the tile border on both sides. */
  --preview-border-offset: 2px;
}
.preview-slide .mini-tile {
  padding: 0;
  background: var(--card-border);
}
.preview-slide .mini-content {
  height: 100%;
  background: white;
}
.preview-slide .mini-tile[data-value=""] .mini-content {
  background: transparent;
}
@media (max-width: 650px) {
  .card-preview {
    --preview-gap: 4px;
  }
  .preview-scramble .mini-tile {
    width: 23px;
    flex-basis: 23px;
  }
  .preview-memory {
    grid-template-columns: repeat(3, 32px);
    gap: 4px;
  }
  .preview-order {
    padding-left: 3px;
    padding-right: 3px;
    gap: 3px;
    --preview-gap: 3px;
  }
  .preview-order .mini-tile {
    padding: 5px 1px;
    font-size: 9px;
  }
  .preview-memory .mini-tile {
    min-height: 30px;
    font-size: 11px;
  }
  .preview-sort .mini-tile {
    width: 23px;
    flex-basis: 23px;
  }
  .preview-2048 {
    --preview-gap: 3px;
    grid-template-columns: repeat(4, 23px);
  }
  .preview-2048 .mini-tile {
    min-height: 23px;
    font-size: 10px;
  }
  .preview-slide {
    --preview-gap: 3px;
  }
}
@keyframes preview-mark {
  0%,
  35% {
    background: transparent;
    color: inherit;
  }
  65%,
  100% {
    background: var(--preview-mark-color, #438b68);
    border-color: var(--preview-mark-color, #438b68);
    box-shadow: none;
    color: white;
  }
}
@keyframes preview-flip {
  0%,
  100% {
    transform: rotateX(0);
  }
  42% {
    transform: rotateX(90deg);
  }
  60% {
    transform: rotateX(0);
  }
}
@keyframes preview-conceal {
  0%,
  44% {
    opacity: 1;
  }
  45%,
  100% {
    opacity: 0;
  }
}
@keyframes preview-reveal {
  0%,
  44% {
    opacity: 0;
  }
  45%,
  100% {
    opacity: 1;
  }
}
@keyframes preview-fill {
  0%,
  35% {
    opacity: 0.5;
  }
  65%,
  100% {
    opacity: 1;
  }
}
@keyframes preview-slide {
  0%,
  15% {
    transform: translate(0, 0);
  }
  65%,
  100% {
    transform: translate(
      calc(var(--shift-x, 0) * (100% + var(--preview-gap, 6px) + var(--preview-border-offset, 0px))),
      calc(var(--shift-y, 0) * (100% + var(--preview-gap, 6px) + var(--preview-border-offset, 0px)))
    );
  }
}
@keyframes preview-arrange {
  0%,
  100% {
    transform: translate(0, 0);
  }
  30%,
  45% {
    transform: translateX(
      calc(var(--shift-x) * (100% + var(--preview-gap, 6px)))
    );
  }
  80% {
    transform: translate(0, 0);
  }
}
@keyframes preview-check {
  0%,
  100% {
    background: white;
    color: var(--card-accent);
  }
  25%,
  55% {
    background: #438b68;
    border-color: #438b68;
    box-shadow: none;
    color: white;
  }
}
@keyframes preview-merge-away {
  0%,
  15% {
    transform: translate(0, 0);
    opacity: 1;
  }
  44% {
    transform: translateX(calc(var(--shift-x) * (100% + var(--preview-gap))));
    opacity: 1;
  }
  50%,
  100% {
    transform: translateX(calc(var(--shift-x) * (100% + var(--preview-gap))));
    opacity: 0;
  }
}
@keyframes preview-merge-pop {
  0%,
  44%,
  100% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.16);
  }
}
@keyframes preview-fade {
  0%,
  35% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0.25;
  }
}
@keyframes preview-reject {
  0%,
  35% {
    opacity: 1;
    transform: translateY(0);
  }
  70%,
  100% {
    opacity: 0.3;
    transform: translateY(7px);
  }
}
@keyframes preview-link {
  0%,
  25%,
  100% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.25);
  }
}
@keyframes preview-rhythm {
  0%,
  100% {
    transform: scale(1);
  }
  25%,
  65% {
    transform: scale(1.1);
  }
  45%,
  85% {
    transform: scale(1);
  }
}
@keyframes preview-note {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-12deg);
  }
  65% {
    transform: rotate(12deg);
  }
}
@keyframes preview-keypress {
  0%,
  15%,
  65%,
  100% {
    transform: scale(1);
    background: #ffedd0;
  }
  35%,
  50% {
    transform: scale(0.9);
    background: #e4a967;
  }
}
@keyframes preview-memory-hide {
  0%,
  35%,
  100% {
    transform: rotateY(0);
  }
  44% {
    transform: rotateY(90deg);
  }
  60% {
    transform: rotateY(0);
  }
}
/* All effects are finite and opt-in for motion. Touch scrolling never starts them. */
@media (prefers-reduced-motion: no-preference) {
  .card:focus-visible .mini-tile {
    animation: var(--preview-tile-motion, none) 1000ms ease
      var(--preview-delay, 0ms) both;
  }
  .card:focus-visible .mini-content {
    animation: var(--preview-motion, none) 1000ms ease var(--preview-delay, 0ms)
      both;
  }
  .card:focus-visible .preview-before {
    animation: var(--preview-before-motion, none) 1000ms linear
      var(--preview-delay, 0ms) both;
  }
  .card:focus-visible .preview-after {
    animation: var(--preview-after-motion, none) 1000ms linear
      var(--preview-delay, 0ms) both;
  }
  .card:focus-visible .preview-readout-after {
    animation: preview-reveal 1800ms linear both;
  }
  .spotlight:focus-visible .letter-demo i {
    animation: preview-flip 650ms ease calc(var(--tile-i) * 65ms) both;
  }
  .spotlight:focus-visible .merge-demo i.key-hit {
    animation: preview-keypress 650ms ease var(--hit-delay, 0ms) both;
  }
  .spotlight:focus-visible .sudoku-demo i.demo-fill {
    animation: preview-mark 900ms ease calc(var(--tile-i) * 50ms) both;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover .mini-tile {
    animation: var(--preview-tile-motion, none) 1000ms ease
      var(--preview-delay, 0ms) both;
  }
  .card:hover .mini-content {
    animation: var(--preview-motion, none) 1000ms ease var(--preview-delay, 0ms)
      both;
  }
  .card:hover .preview-before {
    animation: var(--preview-before-motion, none) 1000ms linear
      var(--preview-delay, 0ms) both;
  }
  .card:hover .preview-after {
    animation: var(--preview-after-motion, none) 1000ms linear
      var(--preview-delay, 0ms) both;
  }
  .card:hover .preview-readout-after {
    animation: preview-reveal 1800ms linear both;
  }
  .spotlight:hover .letter-demo i {
    animation: preview-flip 650ms ease calc(var(--tile-i) * 65ms) both;
  }
  .spotlight:hover .merge-demo i.key-hit {
    animation: preview-keypress 650ms ease var(--hit-delay, 0ms) both;
  }
  .spotlight:hover .sudoku-demo i.demo-fill {
    animation: preview-mark 900ms ease calc(var(--tile-i) * 50ms) both;
  }
}

.sudoku-demo i.demo-fill {
  position: relative;
}
.sudoku-demo i.demo-fill::after {
  content: attr(data-digit);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .spotlight:focus-visible .sudoku-demo i.demo-fill::after {
    animation: preview-reveal 900ms linear calc(var(--tile-i) * 50ms) both;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .spotlight:hover .sudoku-demo i.demo-fill::after {
    animation: preview-reveal 900ms linear calc(var(--tile-i) * 50ms) both;
  }
}

.merge-demo i:empty {
  visibility: hidden;
}

.preview-compound {
  position: relative;
}
.preview-joined {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  display: grid;
  place-items: center;
  min-height: 37px;
  padding: 5px 10px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: white;
  color: var(--card-accent);
  font-size: 13px;
  font-weight: 800;
}
@media (prefers-reduced-motion: no-preference) {
  .card:focus-visible .preview-joined {
    animation: preview-reveal 1000ms linear both;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover .preview-joined {
    animation: preview-reveal 1000ms linear both;
  }
}

/* Keep the LemonYak.io wordmark clear beside navigation on small screens. */
@media (max-width: 450px) {
  .brand {
    font-size: 21px;
  }
}
@media (max-width: 360px) {
  .brand {
    font-size: 18px;
    gap: 6px;
  }
  .logo {
    width: 30px;
    height: 30px;
    font-size: 25px;
  }
}

/* Compact word and logic boards. */
body[data-category="logic"] .game-emblem {
  background: #eee9ff;
  color: #6651a3;
}
.preview-crossword,
.preview-nonogram,
.preview-mines,
.preview-kakuro {
  display: grid;
  grid-template-columns: repeat(3, 31px);
  gap: 4px;
  align-content: center;
  padding: 12px;
}
.preview-crossword .mini-tile,
.preview-nonogram .mini-tile,
.preview-mines .mini-tile,
.preview-kakuro .mini-tile {
  min-width: 0;
  min-height: 29px;
  height: 29px;
  padding: 3px;
  font-size: 14px;
  border-radius: 4px;
  box-shadow: 0 2px 0 var(--card-border);
}
.preview-nonogram .mini-filled {
  background: #bd3d78;
  border-color: #a93269;
  box-shadow: 0 2px 0 #a93269;
}
.preview-mines .mini-tile {
  background: #fff9fc;
  color: #3872ae;
}
.preview-mines .mini-tile:nth-child(2n) {
  color: #39835d;
}
.preview-mines .mini-tile:nth-child(5) {
  background: #f8deeb;
  color: #a92f69;
}
.preview-kakuro .mini-tile:nth-child(-n + 3) {
  background: #65505f;
  color: white;
  font-size: 11px;
}
@media (max-width: 650px) {
  .preview-crossword,
  .preview-nonogram,
  .preview-mines,
  .preview-kakuro {
    grid-template-columns: repeat(3, 27px);
    gap: 3px;
    padding: 10px;
  }
}
.crossword-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.crossword-board {
  display: grid;
  grid-template-columns: repeat(var(--puzzle-size), minmax(0, 1fr));
  border: 2px solid #66515d;
  border-radius: 8px;
  overflow: hidden;
}
.crossword-cell {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 1px solid #dfd1d9;
  border-radius: 0;
  background: white;
  font-size: clamp(20px, 5vw, 30px);
  color: #44333e;
}
.crossword-cell.in-word {
  background: #fff0f6;
}
.crossword-cell.active {
  background: #f8cee2;
  box-shadow: inset 0 0 0 2px #cc397a;
}
.crossword-number {
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: 11px;
  font-weight: 600;
}
.crossword-clues {
  display: grid;
  gap: 14px;
}
.crossword-clues h2 {
  font-size: 15px;
  margin: 0 0 6px;
}
.crossword-clue {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 9px;
  margin: 2px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 14px;
}
.crossword-clue[aria-pressed="true"] {
  background: #fff0f6;
  color: #a52b62;
}
.crossword-active {
  font-weight: 600;
  font-size: 14px;
}
.crossword-keyboard {
  margin-top: 16px;
}
.crossword-keyboard .key {
  min-width: 0;
  padding: 10px 0;
  flex: 1;
  max-width: 42px;
}
.crossword-cell.error-cell {
  color: #bb244a;
}
.nonogram-frame {
  max-width: 490px;
  margin: 20px auto;
}
.nonogram-board {
  display: grid;
  grid-template-columns: 48px repeat(var(--puzzle-size), minmax(0, 1fr));
  gap: 2px;
  padding: 4px;
  background: #ded3dc;
  border-radius: 10px;
}
.nonogram-column {
  white-space: pre-line;
  text-align: center;
  align-self: end;
  font-size: 14px;
  padding: 7px 0;
  line-height: 1.4;
  font-weight: 700;
}
.nonogram-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-size: 13px;
  font-weight: 700;
}
.nonogram-cell {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #fff;
  font-size: 22px;
  color: #a68c9a;
}
.nonogram-cell.filled {
  background: #bd3d78;
}
.nonogram-cell.marked {
  background: #fff6fa;
}
.controls button[aria-pressed="true"] {
  background: #f9d4e5;
  color: #9b245d;
  border-color: #d75a92;
}
.mines-board {
  max-width: 460px;
  margin: 22px auto;
  gap: 4px;
}
.mine-cell {
  aspect-ratio: 1;
  padding: 0;
  min-width: 0;
  min-height: 0;
  border: 1px solid #ead0de;
  background: #f8deeb;
  border-radius: 6px;
  font-size: clamp(14px, 4vw, 23px);
  font-weight: 800;
  color: #85526d;
}
.mine-cell.revealed {
  background: #fff9fc;
  border-color: #eee3e9;
}
.mine-cell[data-count="1"] {
  color: #3872ae;
}
.mine-cell[data-count="2"] {
  color: #39835d;
}
.mine-cell[data-count="3"] {
  color: #b34063;
}
.mine-cell[data-count="4"] {
  color: #7356a2;
}
.mine-cell.mine-hit {
  background: #f5bacb;
  color: #a22448;
}
@media (max-width: 600px) {
  .crossword-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .crossword-board {
    width: min(100%, 320px);
    margin: auto;
  }
  .crossword-clues {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .crossword-keyboard .keyboard-row {
    gap: 3px;
  }
  .nonogram-board {
    grid-template-columns: 40px repeat(var(--puzzle-size), minmax(0, 1fr));
  }
  .nonogram-column,
  .nonogram-row {
    font-size: 11px;
  }
}
.category-nav {
  flex-wrap: wrap;
}
.crypto-phrase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 16px;
  margin: 24px 0;
}
.crypto-word {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  max-width: 100%;
}
.crypto-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 31px;
  min-height: 56px;
  padding: 4px 0;
  border: 1px solid #ead3de;
  border-radius: 7px;
  background: #fff8fb;
  color: #44333e;
}
.crypto-answer {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
}
.crypto-code {
  font-size: 11px;
  color: #967788;
}
.crypto-tile.active {
  background: #fad6e7;
  border-color: #cd397b;
}
.crypto-tile.given .crypto-answer {
  color: #347354;
}
.crypto-wrong .crypto-answer {
  color: #bd284d;
}
.crypto-selection {
  text-align: center;
  font-weight: 700;
}
body[data-game="35"] .keyboard-row {
  gap: 3px;
}
body[data-game="35"] .key {
  min-width: 0;
  flex: 1;
  max-width: 42px;
  padding: 10px 0;
}
.kakuro-board {
  display: grid;
  grid-template-columns: repeat(var(--puzzle-size), minmax(0, 1fr));
  max-width: 420px;
  margin: 20px auto;
  gap: 2px;
  padding: 3px;
  background: #ddced8;
  border-radius: 10px;
  overflow: hidden;
}
.kakuro-cell,
.kakuro-block {
  aspect-ratio: 1;
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
}
.kakuro-cell {
  background: #fff;
  color: #493442;
  font-size: 25px;
}
.kakuro-cell.active {
  background: #fad6e7;
  box-shadow: inset 0 0 0 2px #cc397a;
}
.kakuro-cell.given {
  background: #f3ebf0;
  color: #846779;
}
.kakuro-cell.error-cell {
  color: #bf254c;
}
.kakuro-block {
  background: #65505f;
  color: #fff;
}
.kakuro-block.has-clue {
  background: linear-gradient(
    45deg,
    #65505f calc(50% - 1px),
    #a991a1 50%,
    #65505f calc(50% + 1px)
  );
}
.kakuro-down {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 14px;
  font-weight: 700;
}
.kakuro-right {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 14px;
  font-weight: 700;
}
.kakuro-notes {
  display: block;
  font-size: 10px;
  color: #8c697f;
  padding: 3px;
}
.kakuro-keypad {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  max-width: 420px;
  margin: 16px auto;
}
.kakuro-keypad .key {
  padding: 10px 0;
  min-width: 0;
}
.kakuro-active {
  text-align: center;
  font-weight: 700;
}
@media (max-width: 360px) {
  .crypto-tile {
    width: 25px;
    min-height: 49px;
  }
  .crypto-answer {
    font-size: 18px;
  }
  .crypto-word {
    gap: 2px;
  }
  .crypto-phrase {
    gap: 14px 10px;
  }
  .kakuro-down,
  .kakuro-right {
    font-size: 11px;
  }
}
body[data-game="35"] .game-emblem {
  font-size: 25px;
  line-height: 1;
  letter-spacing: -1px;
}
@media (max-width: 650px) {
  body[data-game="35"] .game-emblem {
    font-size: 18px;
  }
}
@media (max-width: 360px) {
  body[data-game="35"] .game-emblem {
    font-size: 16px;
  }
}
.how-to {
  margin: 0 0 18px;
  border: 1px solid #efdae5;
  border-radius: 12px;
  background: #fff;
}
.how-to summary {
  cursor: pointer;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #9f2e63;
}
.how-to-content {
  padding: 0 16px 15px;
  font-size: 14px;
  line-height: 1.6;
}
.how-to-example {
  padding: 12px;
  border-radius: 8px;
  background: #fff2f7;
  color: #60334b;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.how-to-content ol {
  padding-left: 20px;
  margin: 12px 0 0;
}
.how-to-content li + li {
  margin-top: 8px;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  gap: 3px;
  margin-bottom: 8px;
}
.example-grid span {
  background: white;
  border: 1px solid #e6c7d6;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #ae8d9f;
}
.example-grid .example-filled {
  background: #bd3d78;
}
.crossword-block {
  background: #65505f;
  aspect-ratio: 1;
  border: 1px solid #65505f;
}
.crossword-cell.revealed-letter {
  color: #397655;
}
.crossword-clue.clue-complete {
  color: #397655;
}
#game-tip {
  font-size: 12px;
  color: #8f6b80;
}
@media (max-width: 600px) {
  .crossword-clue {
    font-size: 13px;
    padding: 7px 5px;
  }
  .crossword-clues {
    grid-template-columns: 1fr 1fr;
  }
}
.preview-crossword {
  grid-template-columns: repeat(5, 17px);
  gap: 3px;
}
.preview-crossword .mini-tile {
  width: 17px;
  min-height: 17px;
  height: 17px;
  padding: 0;
  font-size: 10px;
  border-radius: 2px;
  box-shadow: none;
}
.preview-crossword .mini-block {
  background: #65505f;
  border-color: #65505f;
}
.example-kakuro,
.example-mines,
.example-crossword {
  grid-template-columns: repeat(3, 32px);
}
.example-grid .example-dark {
  background: #65505f;
  border-color: #65505f;
  color: white;
}
.example-grid .example-safe {
  background: #e5f4eb;
  color: #367353;
}
.example-sudoku {
  grid-template-columns: repeat(9, 20px);
  gap: 2px;
}
.example-grid span {
  color: #67485c;
}

/* Keep the puzzle close to the page heading and secondary help compact. */
.game-layout .game-heading {
  gap: 16px;
  padding: 18px 0 16px;
}
.game-layout .game-emblem {
  width: 64px;
  height: 64px;
  font-size: 28px;
}
.game-layout .game-heading h1 {
  margin: 5px 0 6px;
}
.game-layout .game-surface {
  padding-top: 16px;
  padding-bottom: 16px;
}
.game-layout .game-toolbar {
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.game-toolbar .puzzle-modes {
  margin: 0;
}
.game-toolbar .daily-date:empty,
.game-layout #message:empty,
.game-layout #game-tip:empty {
  display: none;
}
.game-toolbar .daily-date:not(:empty) {
  flex-basis: 100%;
}
.game-layout #message {
  margin: 12px auto;
}
.game-layout .game-actions {
  margin-top: 12px;
  padding-top: 12px;
}
.game-layout .prompt {
  margin-bottom: 20px;
}
.game-layout .codepad-device {
  margin: 0 auto 14px;
  padding: 14px;
}
.codepad-device .codepad-device-top {
  margin-bottom: 10px;
}
.codepad-device .codepad-screen {
  padding: 12px;
  margin-bottom: 12px;
}
.codepad-device .codepad-keypad {
  gap: 8px;
}
.codepad-device .codepad-key {
  min-height: 44px;
}
.codepad-device .codepad-submit {
  margin-top: 12px;
}
.game-layout .codepad-log-title {
  margin: 14px auto 8px;
}
.game-layout .codepad-history {
  max-height: 180px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
@media (max-width: 360px) {
  .game-layout .game-emblem {
    width: 48px;
    height: 48px;
    font-size: 23px;
  }
}

/* Visual walkthroughs animate only inside an open how-to guide. */
.how-to-demo {
  padding: 16px;
  border: 1px solid #efd7e3;
  border-radius: 12px;
  background: #fff7fb;
}
.demo-board {
  display: grid;
  grid-template-columns: repeat(var(--demo-cols), minmax(0, 1fr));
  gap: 6px;
  max-width: 420px;
  margin: auto;
}
.demo-tile {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 6px 2px;
  border: 1px solid #decbd6;
  border-radius: 7px;
  background: white;
  color: #634657;
  font-size: clamp(10px, 2.8vw, 15px);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: center;
}
.demo-selected {
  background: #fce1ee;
  border-color: #bd3d78;
}
.demo-correct {
  background: #e0f3e6;
  border-color: #5b9871;
  color: #28603a;
}
.demo-misplaced {
  background: #fff0be;
  border-color: #be943a;
  color: #73500c;
}
.demo-absent {
  background: #e8e3e6;
  border-color: #c3b8bf;
  color: #756770;
}
.demo-block,
.demo-clue {
  background: #65505f;
  color: white;
  border-color: #65505f;
}
.demo-caption {
  margin: 10px 0;
  line-height: 1.5;
  min-height: 3em;
}
.demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.demo-progress {
  color: #856577;
  font-size: 12px;
}
.demo-footer .demo-toggle {
  font-size: 12px;
  padding: 8px 10px;
}
.demo-sudoku {
  gap: 3px;
}
.demo-sudoku .demo-tile {
  padding-inline: 0;
}
@keyframes tutorial-tile-in {
  from {
    opacity: 0.4;
    transform: translateY(5px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .how-to[open] .how-to-demo:not(.demo-paused) .demo-tile {
    animation: tutorial-tile-in 0.4s ease both;
    animation-delay: calc(var(--tile-index) * 30ms);
  }
}

/* Help sits beside the title; its walkthrough opens above the puzzle. */
.game-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.how-to-trigger {
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid #ebccdc;
  border-radius: 100px;
  background: #fff7fb;
  color: #a42a63;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}
.how-to-trigger:hover {
  background: #fce7f1;
}
body.how-to-open {
  overflow: hidden;
}
.how-to-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #edd6e2;
  border-radius: 20px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 70px #51334333;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.how-to-dialog::backdrop {
  background: #30233380;
  backdrop-filter: blur(4px);
}
.how-to-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
}
.how-to-dialog-header h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.4px;
}
.how-to-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff0f6;
  color: #a42a63;
  font-size: 26px;
  line-height: 1;
  box-shadow: none;
}
.how-to-dialog .how-to-content {
  padding: 0 20px 20px;
}
@media (max-width: 450px) {
  .game-title-row {
    gap: 4px 10px;
  }
  .how-to-dialog-header {
    padding: 14px 14px 10px;
  }
  .how-to-dialog-header h2 {
    font-size: 18px;
  }
  .how-to-dialog .how-to-content {
    padding: 0 14px 14px;
  }
}

/* Round controls stay above the puzzle, including restart. */
.game-toolbar #restart {
  flex-shrink: 0;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #ebccdc;
  border-radius: 10px;
  background: #fff6fa;
  color: #a42a63;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}
.game-toolbar #restart:hover {
  background: #fce7f1;
}
@media (max-width: 650px) {
  .game-layout .game-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }
  .game-toolbar > label {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    gap: 6px;
  }
  .game-toolbar select {
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
  }
  .game-toolbar #restart {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    justify-self: end;
  }
  .game-toolbar #round-info {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    padding: 7px 10px;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .game-toolbar:has(.puzzle-modes) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .game-toolbar > .puzzle-modes {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }
  .game-toolbar:has(.puzzle-modes) #round-info {
    grid-column: 1;
    grid-row: 2;
  }
  .game-toolbar:has(.puzzle-modes) #restart {
    grid-column: 2;
    grid-row: 2;
  }
  .game-toolbar .daily-date {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* Traditional board games: original pieces and compact playing surfaces. */
body[data-category="board"] .game-emblem {
  background: #eaf1ff;
  border-color: #cddcf6;
  color: #43649a;
  box-shadow: 0 5px 0 #dfe7f5;
}
.board-game-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
}
.board-game-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.board-game-options select {
  border: 1px solid #ead4df;
  border-radius: 9px;
  padding: 8px 10px;
  background: #fff8fb;
  color: var(--ink);
}
.classic-board {
  display: grid;
  grid-template-columns: repeat(var(--classic-cols), minmax(0, 1fr));
  width: min(100%, 440px);
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #cbb2c1;
}
.classic-square {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 3px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff5fa;
  color: #b82c66;
  touch-action: manipulation;
  position: relative;
}
.classic-square:disabled {
  opacity: 1 !important;
  cursor: default;
}
.classic-square:focus-visible {
  outline: 3px solid #e94190;
  outline-offset: -3px;
  z-index: 1;
}
.tic-board {
  max-width: 320px;
  gap: 4px;
  background: #eed8e3;
  padding: 4px;
  border: 0;
}
.tic-board .classic-square {
  border-radius: 8px;
  font-size: clamp(36px, 9vw, 62px);
  font-weight: 900;
}
.tic-board .player-two {
  color: #456dab;
}
.tic-board .winning-square {
  background: #e0f3e6;
  color: #28603a;
}
.light-square {
  background: #fff6eb;
}
.dark-square {
  background: #c5a0b5;
}
.reversi-board {
  background: #dcebdd;
  border-color: #8ba991;
}
.reversi-board .classic-square {
  background: #e4f0e6;
  border: 1px solid #b4ceb8;
}
.game-disc {
  display: grid;
  place-items: center;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: clamp(12px, 3vw, 20px);
  font-weight: 900;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 3px #ffffff33,
    0 2px 2px #30243322;
}
.pink-disc {
  background: #bd3d78;
  color: white;
  border: 2px solid #a32862;
}
.blue-disc {
  background: #456dab;
  color: white;
  border: 2px solid #345487;
}
.classic-square.piece-selected {
  box-shadow: inset 0 0 0 3px #ffef94;
}
.classic-square.legal-square::after {
  content: "";
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #57755d;
  position: absolute;
}
.checkers-board .legal-square::after {
  background: #fff1a4;
}
.dots-board {
  max-width: 350px;
  grid-template-columns: 12px 1fr 12px 1fr 12px 1fr 12px;
  grid-template-rows: 12px 70px 12px 70px 12px 70px 12px;
  gap: 0;
  border: 0;
  padding: 10px;
  overflow: visible;
}
.board-dot {
  border-radius: 50%;
  background: #7d5b71;
  z-index: 1;
}
.dot-edge {
  padding: 0;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  touch-action: manipulation;
}
.dot-edge::after {
  content: "";
  position: absolute;
  background: #ecdce5;
  border-radius: 8px;
}
.horizontal-edge::after {
  height: 7px;
  left: 0;
  right: 0;
  top: 2px;
}
.vertical-edge::after {
  width: 7px;
  top: 0;
  bottom: 0;
  left: 2px;
}
.dot-edge::before {
  content: "";
  position: absolute;
  inset: -12px;
}
.dot-edge:disabled {
  opacity: 1 !important;
}
.owned-box {
  display: grid;
  place-items: center;
  margin: 5px;
  border-radius: 8px;
  font-size: 25px;
  font-weight: 800;
}
.pink-owned {
  color: #a32862;
  background: #f9d8e8;
}
.blue-owned {
  color: #345487;
  background: #dce7fa;
}
.dot-edge.pink-owned::after {
  background: #bd3d78;
}
.dot-edge.blue-owned::after {
  background: #456dab;
}
.peg-board {
  max-width: 390px;
  border: 0;
  gap: 4px;
  overflow: visible;
}
.peg-board .classic-square {
  background: #f4e5ed;
  border-radius: 50%;
}
.peg-board .empty-hole {
  background: #e6d1dd;
  box-shadow: inset 0 2px 4px #6c405222;
}
.peg-void {
  aspect-ratio: 1;
}
.preview-tictactoe,
.preview-checkers,
.preview-reversi,
.preview-dotsboxes,
.preview-pegsolitaire {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 4px;
}
.preview-tictactoe .mini-tile,
.preview-checkers .mini-tile,
.preview-reversi .mini-tile,
.preview-dotsboxes .mini-tile,
.preview-pegsolitaire .mini-tile {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 2px;
}
@media (max-width: 360px) {
  .dots-board {
    grid-template-rows: 12px 60px 12px 60px 12px 60px 12px;
  }
}
.game-toolbar > label[hidden] {
  display: none;
}
.game-toolbar .board-opponent {
  flex-wrap: nowrap;
}
.game-toolbar .board-opponent select {
  flex-shrink: 1;
}
body[data-category="board"] .game-title-row {
  margin-bottom: 5px;
}
@media (max-width: 650px) {
  .game-toolbar:has(> label[hidden]) #round-info {
    grid-column: 1;
    grid-row: 1;
  }
}

/* Checkers stays still while selecting and clearly marks the computer's move. */
.checkers-board .last-bot-square {
  outline: 2px solid #456dab;
  outline-offset: -2px;
}
.checkers-board .capture-required .game-disc {
  outline: 2px solid #fff1a4;
  outline-offset: 1px;
}

/* Gameplay updates stay still; animated how-to examples are separate. */
.classic-board,
.classic-board *,
.classic-board *::before,
.classic-board *::after {
  animation: none;
  transition: none;
}

/* Strategy games keep pieces still and use the existing board zoom control. */
.strategy-grid {
  width: min(100%, var(--board-width, 450px));
  gap: 0;
  border: 1px solid #c8ad83;
  border-radius: 8px;
  background: #f2dfbc;
}
.stone-board .classic-square {
  background:
    linear-gradient(#8e7258, #8e7258) center / 100% 1px no-repeat,
    linear-gradient(#8e7258, #8e7258) center / 1px 100% no-repeat;
  padding: 2px;
}
.stone-board .game-disc {
  position: relative;
  z-index: 1;
  width: 85%;
}
.strategy-grid .last-strategy-move::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 20%;
  height: 20%;
  border-radius: 50%;
  border: 1px solid white;
  background: #e8b644;
  pointer-events: none;
}
.strategy-grid .winning-square {
  background-color: #dae9c7;
}
.hex-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
}
.pink-text {
  color: #aa245f;
}
.blue-text {
  color: #345487;
}
/* A true point-up hex lattice: adjacent rows overlap by one quarter. */
.hex-arena {
  width: min(100%, 560px);
  margin: 0 auto 18px;
  padding: 30px;
  border-radius: 20px;
  background: #fff8fb;
  border: 1px solid #eedfe7;
}
.hex-board {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  aspect-ratio: calc(var(--hex-columns) / (var(--hex-rows) * 1.15470054));
  background: transparent;
}
.hex-goal-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hex-goal-edges path {
  fill: none;
  stroke-width: 0.13;
  stroke-linecap: round;
}
.pink-goal { stroke: #bd3d78; }
.blue-goal { stroke: #456dab; }
.hex-board .classic-square {
  position: absolute;
  width: calc(100% / var(--hex-columns));
  height: calc(100% / var(--hex-rows));
  aspect-ratio: auto;
  padding: 0;
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  background: transparent;
  z-index: 1;
  isolation: isolate;
}
.hex-board .classic-square::before {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: inherit;
  background: transparent;
  z-index: -1;
}
.hex-board .classic-square:not(:disabled):hover::before,
.hex-board .classic-square:focus-visible::before { background: #f5dce8; }
.hex-board .classic-square:focus-visible { background: #aa245f; }
.hex-stone {
  display: none;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #bd3d78;
  box-shadow: inset 0 0 0 2px #ffffff38, 0 2px 2px #30243322;
}
.hex-board .pink-hex .hex-stone,
.hex-board .blue-hex .hex-stone,
.hex-board .hex-preview .hex-stone { display: block; }
.hex-board .blue-hex .hex-stone { background: #456dab; }
.hex-board .hex-preview .hex-stone { opacity: .42; }
.hex-board .winning-square::before { background: #f5e6ba; }
.hex-board .winning-square .hex-stone { box-shadow: inset 0 0 0 3px #ffffffa8; }
.hex-board .last-strategy-move::after {
  content: "";
  position: absolute;
  width: 12%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  border: 0;
  z-index: 2;
}
@media (max-width: 450px) {
  .hex-arena { padding: 18px; border-radius: 14px; }
  .hex-board .classic-square::before { inset: 1.25px; }
}
.board-game-options:has(> button[hidden]) {
  margin: 0;
}
.mancala-board {
  border: 0;
  width: min(100%, 510px);
  gap: 7px;
  padding: 12px;
  background: #f3e5d5;
  align-items: center;
}
.mancala-store {
  grid-row: 1 / span 2;
  align-self: stretch;
  display: grid;
  place-items: center;
  border-radius: 40px;
  font-size: 23px;
  font-weight: 800;
}
.blue-store {
  grid-column: 1;
  color: #345487;
  background: #dbe5f6;
}
.pink-store {
  grid-column: 8;
  color: #a32862;
  background: #f8d5e5;
}
.mancala-pit {
  border: 1px solid #dfc4aa;
  box-shadow: inset 0 2px 3px #784b2420;
  aspect-ratio: 0.85;
  border-radius: 50%;
  padding: 0;
  min-width: 0;
  min-height: 0;
  background: #fff5e7;
  font-size: clamp(13px, 2.5vw, 20px);
  font-weight: 800;
}
.mancala-pit:disabled {
  opacity: 0.65;
}
.mancala-pit.last-strategy-move,
.mancala-store.last-strategy-move {
  outline: 2px solid #af7e2f;
  outline-offset: -2px;
}
.nim-board {
  display: block;
  border: 0;
  width: min(100%, 440px);
}
.nim-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #efdae5;
}
.nim-label {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.nim-stones {
  display: flex;
  flex: 1;
  gap: 4px;
  min-width: 0;
}
.nim-stone {
  width: calc((100% - 24px) / 7);
  max-width: 44px;
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: #fff0f6;
  color: #b82c66;
  font-size: 21px;
  box-shadow: none;
}
.nim-stone:disabled {
  opacity: 1 !important;
}
.black-disc {
  background: #33303c;
  border: 1px solid #17151e;
}
.white-disc {
  background: #fffcf7;
  border: 1px solid #aa9e8d;
}
.go-board .go-dead .game-disc {
  opacity: 0.35;
}
.go-controls,
.go-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}
.go-scoring {
  border: 1px solid #efd7e3;
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.go-scoring[hidden],
.go-controls button[hidden],
.board-game-options button[hidden] {
  display: none;
}
.go-score {
  font-weight: 800;
}
.preview-hex,
.preview-go {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 4px;
}
.preview-mancala {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  gap: 4px;
}
.preview-hex .mini-tile,
.preview-go .mini-tile,
.preview-mancala .mini-tile {
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 1px;
}
@media (max-width: 360px) {
  .mancala-board {
    gap: 3px;
    padding: 8px 4px;
  }
  .nim-row {
    gap: 6px;
  }
  .nim-stones {
    gap: 3px;
  }
}

/* Walkthroughs use full playable-board layouts and the real game pieces. */
.full-board-demo {
  display: block;
  max-width: 100%;
}
.tutorial-board {
  max-width: 100%;
  pointer-events: none;
  margin-bottom: 0;
}
.tutorial-board .tutorial-target { position: relative; }
.tutorial-board .tutorial-result { outline: none; }
.tutorial-board .game-disc {
  font-size: clamp(10px, 2.4vw, 20px);
}
.tutorial-board .mancala-pit {
  display: grid;
  place-items: center;
}
.tutorial-board .nim-stone {
  display: grid;
  place-items: center;
}
.tutorial-board .dot-edge.tutorial-target::after {
  background: #456dab;
}
.tutorial-board .classic-square {
  cursor: default;
}
.tutorial-score {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  margin: 10px 0 0;
}
.tutorial-step-controls {
  display: flex;
  gap: 6px;
}
.demo-footer {
  flex-wrap: wrap;
}
.tutorial-step-controls button {
  font-size: 12px;
  padding: 8px 10px;
}
.how-to-demo:has(.full-board-demo) {
  padding: 12px;
}
.tutorial-board.hex-board {
  margin-bottom: 8px;
}
@media (max-width: 450px) {
  .tutorial-step-controls {
    flex-basis: 100%;
    justify-content: center;
  }
}
.tutorial-puzzle-board {
  display: grid;
  width: 100%;
  gap: 4px;
}
.tutorial-puzzle-board .tutorial-puzzle-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  font-size: clamp(12px, 3vw, 22px);
}
.tutorial-puzzle-board.sudoku-board {
  gap: 0;
}
.tutorial-puzzle-board.sudoku-board .cell {
  border-radius: 0;
}
.tutorial-puzzle-board.memory-board .cell {
  font-size: clamp(11px, 3vw, 18px);
}
.tutorial-puzzle-board .crossword-block,
.tutorial-puzzle-board .kakuro-block {
  aspect-ratio: 1;
  min-height: 0;
}
.tutorial-puzzle-board .crossword-cell {
  position: relative;
}
.tutorial-crossword-letter {
  grid-area: 1/1;
}
.tutorial-puzzle-clues,
.tutorial-target-list {
  font-size: 13px;
  margin: 0 0 10px;
  text-align: center;
}
.tutorial-keypad {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
}
.tutorial-keypad span {
  display: grid;
  place-items: center;
  border: 1px solid #e8cbdc;
  border-radius: 7px;
  padding: 7px 0;
  background: #fff;
}
.tutorial-keypad .tutorial-target { background: var(--pink); color: white; border-color: var(--pink); }
.tutorial-puzzle-board.nonogram-board .nonogram-column,
.tutorial-puzzle-board.nonogram-board .nonogram-row {
  display: grid;
  place-items: center;
}
.tutorial-puzzle-board.nonogram-board {
  gap: 2px;
}
.tutorial-device {
  pointer-events: none;
  margin: 0 auto;
}
.tutorial-submit {
  display: block;
  text-align: center;
  margin: 12px auto;
  padding: 10px 15px;
  border-radius: 8px;
  background: #fce1ee;
  color: #b02769;
  font-weight: 800;
  width: max-content;
}
.tutorial-crypto {
  pointer-events: none;
  margin: 15px auto;
  justify-content: center;
}
.tutorial-crypto .crypto-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tutorial-crypto .crypto-answer {
  min-height: 1.2em;
}
.full-board-demo .tutorial-target { outline: none; }
.tutorial-letter-tiles {
  justify-content: center;
  flex-wrap: wrap;
}
.tutorial-letter {
  display: grid;
  place-items: center;
  width: 32px;
  height: 38px;
  background: white;
  border: 1px solid #e8cbdc;
  border-radius: 7px;
  font-weight: 800;
}
.tutorial-letter.required-letter {
  background: #fff0be;
  border-color: #be943a;
}
.tutorial-answer {
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #e8cbdc;
  border-radius: 8px;
  background: white;
  font-weight: 700;
}
.tutorial-question {
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 14px;
}
.tutorial-problem {
  font-size: clamp(18px, 5vw, 26px);
  padding: 12px 0;
}
.tutorial-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.tutorial-choice {
  display: grid;
  place-items: center;
  min-width: 0;
  font-size: 14px;
  padding: 12px 5px;
}
.tutorial-hangman {
  display: block;
  width: 110px;
  height: 104px;
  margin: 0 auto;
}
.fourinarow-board {
  width: min(100%, 430px);
  background: #456dab;
  border: 6px solid #456dab;
  gap: 5px;
  border-radius: 12px;
  padding: 5px;
}
.fourinarow-board .classic-square {
  background: #fff7fb;
  border-radius: 50%;
}
.fourinarow-board .game-disc {
  width: 92%;
}
.domineering-board {
  width: min(100%, 400px);
  gap: 3px;
  background: #e8d6e1;
  padding: 5px;
  border-radius: 8px;
}
.domineering-board .classic-square {
  background: #fff8fc;
  border-radius: 4px;
}
.domineering-board .pink-domino {
  background: #bd3d78;
}
.domineering-board .blue-domino {
  background: #456dab;
}
.domineering-board .vertical-domino.domino-start {
  margin-bottom: -3px;
  border-radius: 8px 8px 0 0;
}
.domineering-board .vertical-domino.domino-end {
  border-radius: 0 0 8px 8px;
}
.domineering-board .horizontal-domino.domino-start {
  margin-right: -3px;
  border-radius: 8px 0 0 8px;
}
.domineering-board .horizontal-domino.domino-end {
  border-radius: 0 8px 8px 0;
}
.foxhounds-board {
  width: min(100%, 440px);
  gap: 0;
  border: 3px solid #b794a8;
}
.foxhounds-board .game-disc svg {
  width: 75%;
  height: 75%;
}
.last-extra-move {
  outline: 2px solid #e5a62a;
  outline-offset: -2px;
}
.preview-fourinarow,
.preview-domineering,
.preview-foxhounds {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 4px;
}
.preview-fourinarow .mini-tile,
.preview-domineering .mini-tile,
.preview-foxhounds .mini-tile {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 2px;
}
.full-board-demo {
  position: relative;
}
.tutorial-board .game-disc {
  transform-origin: center;
}
.tutorial-ghost {
  display: grid;
  place-items: center;
}
.tutorial-sown-stone {
  border-radius: 50%;
  background: #bd3d78;
  box-shadow: 0 1px 3px #49334355;
}

@font-face {
  font-family: "Domino Symbols";
  src: url("../fonts/lemonyak-domino.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1F030-1F093;
}
.preview-domineering .mini-tile,
body[data-game="48"] .game-emblem,
.domino-symbol {
  font-family: "Domino Symbols", sans-serif;
  font-weight: 400;
}
.domino-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  margin-bottom: 12px;
}
.domino-symbol {
  font-size: 28px;
  vertical-align: middle;
  line-height: 1;
}
.domineering-board .domino-preview {
  box-shadow: inset 0 0 0 3px #e5a62a;
}
.preview-domineering .mini-content {
  font-size: 30px;
  line-height: 1;
}
body[data-game="48"] .game-emblem {
  font-size: 52px;
}
/* SVG thumbnails center the actual outlines, independent of font baselines. */
.preview-domineering .preview-before {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.preview-domineering svg { display: block; width: 26px; height: 26px; overflow: visible; }
.preview-domineering svg rect,
.preview-domineering svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.preview-domineering svg circle { fill: currentColor; }
/* Walkthroughs reuse the board's selection, legal-move and piece styles. */
.tutorial-board.hex-board .classic-square { position: absolute; }
.tutorial-board .tutorial-target.selected { outline: none; }
.tutorial-board .mancala-pit.tutorial-target { background: #f5dce8; }
.tutorial-board .nim-stone.tutorial-target { opacity: .4; }
.tutorial-choice.tutorial-target,
.tutorial-submit.tutorial-target { background: var(--pink); color: white; border-color: var(--pink); }
.tutorial-board.fourinarow-board .tutorial-target::after {
  content: ""; width: 80%; aspect-ratio: 1; border-radius: 50%; background: #bd3d78; opacity: .4;
}
.sound-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  margin: 0;
}
.sound-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound-toggle[aria-pressed="false"] {
  color: #8b7581;
  background: #f8f1f5;
}

.game-toolbar #round-info:empty {
  display: none;
}
@media (max-width: 650px) {
  .game-toolbar > :is(.domino-side, .hex-side) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .game-toolbar:has(:is(.domino-side, .hex-side)) #round-info {
    grid-row: 3;
  }
  .game-toolbar:has(:is(.domino-side, .hex-side)) #restart {
    grid-row: 3;
  }
}

/* Quiet, shared site information below the games. */
.site-footer {
  max-width: 1256px;
  margin: 32px auto 0;
  padding: 25px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.footer-brand {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
}
.footer-intro p {
  margin: 6px 0 0;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.site-footer nav a {
  text-decoration: none;
  padding: 5px 0;
}
.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:focus-visible,
.info-page a:focus-visible,
.info-back:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
  border-radius: 2px;
}
.info-layout {
  max-width: 800px;
  padding-top: 30px;
  padding-bottom: 16px;
}
.info-back {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.info-page {
  margin-top: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  line-height: 1.7;
}
.info-page h1 {
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -1px;
  margin: 0 0 10px;
}
.info-lead {
  color: var(--muted);
  margin-top: 0;
}
.info-page h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 28px 0 8px;
}
.info-page p {
  margin-bottom: 16px;
}
.info-page a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.info-updated {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1320px) {
  .site-footer {
    margin-left: 32px;
    margin-right: 32px;
  }
}
@media (max-width: 650px) {
  .site-footer {
    margin: 24px 16px 0;
    padding: 22px 0 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .site-footer nav {
    gap: 9px 20px;
  }
  .site-footer nav a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
  .info-layout {
    padding: 22px 16px 12px;
  }
  .info-page {
    padding: 22px 18px;
    margin-top: 18px;
    font-size: 15px;
  }
}


.hex-cell-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hex-grid-lines {
  stroke: #cdbbc6;
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-feedback {
  margin: 20px 0 0;
  padding: 14px;
  border: 1px solid #ead6e0;
  border-radius: 9px;
  background: #fff0f6;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.account-feedback-error {
  color: #8e1938;
  border-color: #c36d82;
}

.account-button { position: relative; }
.account-button.is-signed-in::after,
.cached-signed-in .account-button::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 7px;
  height: 7px;
  border: 2px solid white;
  border-radius: 50%;
  background: #26974b;
  box-shadow: 0 0 0 1px #20763c;
}

.account-signed-in { margin: 0 0 16px; text-align: left; }

/* Raised controls sink into their base while held down. */
:is(button, [role="button"], a.primary, a.secondary, a.account-button, a.back-link):not(:disabled):not([aria-disabled="true"]) {
  box-shadow: 0 3px 0 var(--button-base, #d9b8c8);
  transition: translate 140ms ease-out, box-shadow 140ms ease-out,
    background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
:is(button, [role="button"], a.primary, a.secondary, a.account-button, a.back-link):not(:disabled):not([aria-disabled="true"]):active {
  translate: 0 3px;
  transition-duration: 70ms;
  box-shadow: 0 0 0 var(--button-base, #d9b8c8), inset 0 2px 3px #27243c20;
}
/* Play links press as one surface, including their pill and preview. */
:is(.spotlight, .card) {
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}
.play-pill {
  box-shadow: 0 3px 0 var(--spot-border);
  transition: box-shadow 140ms ease-out;
}
.card-play {
  transition: box-shadow 140ms ease-out, background-color 150ms ease,
    border-color 150ms ease, color 150ms ease;
}
:is(.spotlight, .card):active {
  transform: translateY(3px);
  transition-duration: 70ms;
  box-shadow: 0 1px 0 var(--spot-border, var(--card-shadow, #d9b8c8));
}
:is(.spotlight, .card):active :is(.play-pill, .card-play) {
  transition-duration: 70ms;
  box-shadow: inset 0 2px 3px #27243c20;
}

.account-text-button {
  display: block;
  margin: 16px auto 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #fff0f6;
  color: #a32b60;
  font-size: 14px;
  font-weight: 700;
}
.streak-control { position: relative; }
.streak-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 41px;
  padding: 3px 9px 3px 5px;
  border: 1px solid #edc7d8;
  border-radius: 15px;
  background: white;
  color: #ac2b61;
  font-weight: 800;
  --button-base: #c789a4;
}
.streak-count { min-width: 3ch; inline-size: 3ch; font-size: 16px; font-variant-numeric: tabular-nums; text-align: center; }
.streak-flame { display: block; overflow: visible; filter: grayscale(1); opacity: .55; }
.streak-burning { color: #ac2b61; background: white; border-color: #edc7d8; }
.streak-burning .streak-flame { filter: none; opacity: 1; }
.streak-earned { border-color: #edc7d8; }
.streak-button:hover, .streak-button:focus-visible { background: #fff0f6; border-color: #dd8bad; }
.streak-details {
  position: absolute;
  top: calc(100% + 12px);
  right: -45px;
  width: min(285px, calc(100vw - 32px));
  z-index: 30;
  padding: 20px;
  border: 1px solid #ecd4be;
  border-radius: 16px;
  background: #fffaf4;
  color: var(--ink);
  box-shadow: 0 5px 0 #eedccd, 0 12px 30px #27243c20;
}
.streak-details h2 { font-size: 19px; margin: 0 0 10px; }
.streak-details p { font-size: 13px; line-height: 1.5; margin: 12px 0; }
.streak-summary { color: #a74e1e; font-weight: 700; }
.streak-stats { display: flex; gap: 20px; border-block: 1px solid #efddce; padding: 13px 0; }
.streak-stats span { flex: 1; font-size: 11px; color: var(--muted); }
.streak-stats strong { display: block; margin-top: 4px; color: var(--ink); font-size: 20px; }
.streak-sync { color: var(--muted); }
.streak-account-link { font-size: 13px; font-weight: 700; color: #a32b60; }
.streak-result-note { display: block; margin-top: 10px; font-size: 15px; color: #a84c16; }
@media (prefers-reduced-motion: no-preference) {
  .streak-burning .flame-outer { animation: streak-flicker 1500ms ease-in-out infinite alternate; transform-origin: 50% 95%; }
  .streak-burning .flame-middle { animation: streak-flicker 1100ms ease-in-out 150ms infinite alternate-reverse; transform-origin: 50% 95%; }
  .streak-burning .flame-core { animation: streak-glow 1200ms ease-in-out infinite alternate; }
  .streak-celebrate .streak-flame { animation: streak-pop 750ms ease-out; }
}
@keyframes streak-flicker { from { transform: scale(.96, 1.01) rotate(-2deg); } to { transform: scale(1.04, .96) rotate(2deg); } }
@keyframes streak-glow { from { opacity: .65; } to { opacity: 1; } }
@keyframes streak-pop { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.28) rotate(-7deg); } 65% { transform: scale(.95) rotate(4deg); } }
@media (max-width: 650px) {
  .streak-button { min-height: 36px; padding: 2px 7px 2px 4px; }
  .streak-flame { width: 22px; height: 28px; }
  .streak-count { font-size: 14px; }
  .streak-details { right: -46px; }
  header:has(.streak-control) { flex-wrap: wrap; row-gap: 12px; }
  header:has(.streak-control) .header-actions { margin-left: auto; }
}
@media (max-width: 360px) {
  .streak-button { min-height: 33px; padding-inline: 4px; gap: 2px; }
  .streak-flame { width: 20px; height: 26px; }
}

.account-settings { margin-top: 30px; }
.account-signed-in { text-align: center; }
.account-feedback:empty { display: none; }
.account-setting-danger { border-color: #e6bdc6; }
.account-setting-danger summary { color: #8e1938; }
.account-panel .settings-delete-confirm { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; line-height: 1.5; }
.account-panel .settings-delete-confirm input { width: 18px; height: 18px; min-height: 18px; padding: 0; flex: 0 0 18px; margin: 2px 0 0; }
.account-setting .account-delete-button { background: #8e1938; border-color: #8e1938; color: white; }
.account-setting .account-delete-button:hover { background: #6e122b; }
.account-settings > h2 { font-size: 22px; margin: 0 0 16px; }
.account-setting {
  border: 1px solid #ead6e0;
  border-radius: 12px;
  margin-top: 12px;
  background: #fffbfd;
}
.account-setting summary {
  padding: 16px;
  font-weight: 800;
  cursor: pointer;
  color: #a32b60;
}
.account-setting summary:focus-visible { outline: 3px solid #d92573; outline-offset: 3px; border-radius: 12px; }
.account-setting form { padding: 0 16px 16px; }
.account-setting .account-submit { margin-top: 18px; }
.settings-help, .settings-feedback { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.settings-help { color: var(--muted); }
.settings-help strong { color: var(--ink); }
.settings-feedback { margin-bottom: 0; font-weight: 700; color: #23663c; }
.settings-feedback:empty { display: none; }
.settings-feedback-error { color: #8e1938; }
.account-setting input:disabled { opacity: .65; }

/* Larger crossword grids keep letters and clue numbers distinct. */
.crossword-summary { font-size: 13px; color: #766470; margin: 0 0 8px; }
.crossword-layout { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.crossword-large .crossword-cell { font-size: clamp(15px, 3.7vw, 24px); }
.crossword-large .crossword-number { font-size: 8px; top: 1px; left: 2px; line-height: 1; }
.crossword-large .crossword-letter { display: block; padding-top: 5px; }
@media (max-width: 600px) {
  .crossword-layout { grid-template-columns: minmax(0, 1fr); }
  .crossword-board { width: min(100%, 420px); }
  .crossword-large .crossword-cell { font-size: 16px; }
}

.game-card-wrapper { position: relative; min-width: 0; display: flex; }
.game-card-wrapper[hidden] { display: none; }
.game-card-surface { position: relative; display: flex; flex: 1; min-width: 0; }
.game-card-surface > .card { flex: 1; min-width: 0; }
.favorite-button { width: 38px; height: 38px; flex-shrink: 0; padding: 0; border: 1px solid #e6cdd9; border-radius: 50%; background: #fffafc; color: #856170; font-size: 25px; line-height: 1; }
.favorite-button[aria-pressed="true"] { color: #b57412; background: #fff3d2; border-color: #ead194; }
.game-card-surface > .favorite-button { position: absolute; left: 19px; bottom: 17px; top: auto; right: auto; z-index: 2; }


.favorites-empty { grid-column: 1 / -1; padding: 40px 16px; color: #766470; text-align: center; }
.profile-link { font-size: 14px; font-weight: 600; color: #a52b62; }
.profile-layout { max-width: 950px; margin: 36px auto 64px; padding: 0 20px; }
.profile-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 26px; font-size: 14px; }
.profile-heading a { color: #a52b62; }
.profile-hero { display: flex; gap: 22px; align-items: center; padding: 30px; background: linear-gradient(125deg,#fff0f6,#fff8e6); border: 1px solid #ead7df; border-radius: 20px; }
.profile-avatar { width: 76px; height: 76px; flex-shrink: 0; display: grid; place-items: center; border-radius: 25px; background: #b52e68; color: white; font-size: 28px; font-weight: 700; box-shadow: 0 5px 0 #8f2452; }
.profile-eyebrow { font-size: 11px; letter-spacing: .12em; font-weight: 700; color: #a52b62; margin: 0 0 7px; }
.profile-hero h1 { margin: 0 0 8px; overflow-wrap: anywhere; }
.profile-hero p:last-child { margin: 0; color: #766470; }
.profile-sync { color: #766470; font-size: 13px; min-height: 20px; margin: 16px 0; }
.profile-layout > .primary { display: inline-block; margin-bottom: 18px; }
.profile-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 20px 0 36px; }
.profile-metrics > div { padding: 20px; border: 1px solid #ead7df; background: white; border-radius: 14px; }
.profile-metrics strong { display: block; font-size: 30px; color: #a52b62; }
.profile-metrics span { font-size: 13px; color: #766470; }
.profile-section { margin: 32px 0; }
.profile-section h2 { font-size: 22px; margin-bottom: 8px; }
.profile-section h2 span { margin-left: 6px; font-size: 14px; color: #a52b62; }
.profile-help { color: #766470; font-size: 14px; margin-bottom: 18px; }
.profile-favorites { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.profile-favorite-card { display: flex; align-items: center; gap: 8px; padding: 15px; border: 1px solid #ead7df; background: white; border-radius: 14px; }
.profile-favorite-card a { display: flex; flex: 1; min-width: 0; gap: 10px; align-items: center; color: #44333e; }
.profile-favorite-card strong { font-size: 14px; }
.profile-game-icon { font-size: 22px; color: #b52e68; }
.profile-empty { padding: 25px; border: 1px dashed #d9bac9; border-radius: 14px; color: #766470; }
.profile-table { border-collapse: collapse; width: 100%; text-align: left; background: white; font-size: 14px; }
.profile-table caption { text-align: left; font-size: 12px; color: #766470; margin-bottom: 10px; }
.profile-table th,.profile-table td { padding: 12px; border-bottom: 1px solid #ead7df; }
.profile-table a { color: #a52b62; }
.profile-table small { display: block; margin-top: 4px; font-weight: 400; text-transform: capitalize; color: #766470; }
@media(max-width:600px) {
 .profile-layout { padding: 0 16px; margin-top: 22px; }
 .profile-hero { padding: 20px 16px; gap: 14px; }
 .profile-avatar { width: 54px; height: 54px; font-size: 22px; border-radius: 18px; }
 .profile-hero h1 { font-size: 25px; }
 .profile-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .profile-favorites { grid-template-columns: minmax(0,1fr); }
 .profile-table { font-size: 12px; }
 .profile-table th,.profile-table td { padding: 10px 5px; }
 .library-heading { flex-wrap: wrap; gap: 8px; }
}

/* Save controls use the same star shape at every size. */
.favorite-button { display: inline-flex; align-items: center; justify-content: center; }
.favorite-button svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; flex-shrink: 0; }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.game-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.game-title-row h1 { flex: 1; min-width: 0; margin-bottom: 0; }
.game-title-row .game-favorite { width: auto; height: 36px; padding: 0 12px; gap: 7px; border-radius: 10px; font-size: 12px; font-weight: 600; background: transparent; box-shadow: 0 2px 0 #eadbe2; }
.game-title-row .game-favorite[aria-pressed="true"] { background: #fff3d2; box-shadow: 0 2px 0 #e7d6ad; }
.game-title-row .game-favorite:active { transform: translateY(2px); box-shadow: none; }
@keyframes preview-domino-settle {
  0%, 15% { opacity: .15; }
  60%, 100% { opacity: 1; }
}
@keyframes preview-checkers-jump {
  0%, 15% { transform: translate(0,0); }
  75%, 100% { transform: translate(var(--checker-dx,68px),var(--checker-dy,-68px)); }
}
.preview-checkers .mini-content { z-index: 2; }
.checkers-board { position: relative; }
.checkers-board > .moving-checker { position: absolute; z-index: 10; pointer-events: none; margin: 0; }
@media(max-width:600px) {
 .game-title-row { gap: 10px; flex-wrap: wrap; }
 .game-title-row .game-favorite { margin-bottom: 2px; }
}

/* Keep the hit area still; the card and star move on one inner surface. */
.game-card-surface { transition: transform 140ms ease-out; }
.game-card-wrapper > .game-card-surface > .card { transform: none; }
.game-card-surface > button.favorite-button:not(:disabled):not([aria-disabled="true"]) {
 translate: none; transform: none;
 transition: box-shadow 140ms ease-out, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
@media (hover:hover) and (pointer:fine) {
 .game-card-wrapper:hover > .game-card-surface { transform: translateY(-5px); }
}
.game-card-surface:has(> .card:focus-visible) { transform: translateY(-5px); }
.game-card-wrapper:active > .game-card-surface { transform: translateY(3px); }
.preview-checkers { grid-template-rows: repeat(3,30px); align-content: center; }
.preview-checkers .mini-tile { min-width: 0; }
@media (prefers-reduced-motion:reduce) {
 .game-card-surface { transition: none; }
}

/* Crawlable instructions and game collections stay below the playable board. */
.game-breadcrumbs { margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.game-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.game-breadcrumbs li { display: flex; align-items: center; gap: 7px; }
.game-breadcrumbs li + li::before { content: "/"; color: #977888; }
.game-breadcrumbs a { color: var(--accent); text-underline-offset: 3px; }
.game-guide { margin: 26px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.game-guide h2 { font-size: 20px; margin: 0 0 12px; }
.game-guide p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.game-guide-example { margin-bottom: 0; padding: 12px; border-radius: 8px; background: #fff3f8; color: var(--ink) !important; }
.collection-layout { max-width: 1180px; margin: 36px auto 60px; padding: 0 28px; }
.collection-back { display: inline-block; color: var(--muted); font-size: 14px; text-decoration: none; margin-bottom: 28px; }
.collection-back:hover { color: var(--accent); }
.collection-heading { display: block; padding: 0; border: 0; background: transparent; }
.collection-heading h1 { font-size: clamp(32px,5vw,48px); margin: 0 0 10px; letter-spacing: -1px; }
.collection-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.collection-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.collection-links a { padding: 10px 18px; border-radius: 100px; color: var(--muted); background: white; border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; }
.collection-links a:hover { border-color: var(--accent); color: var(--accent); }
.collection-links a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: white; }
.collection-back:focus-visible,.collection-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media(max-width:650px) {
 .collection-layout { padding: 0 16px; margin-top: 24px; }
 .collection-links { gap: 6px; }
 .collection-links a { padding: 9px 12px; }
 .game-guide { padding: 18px 16px; }
}

/* Both card actions share the Play pill treatment and move with the card. */
.game-card-surface > button.favorite-button.card-play {
 width: auto; height: auto; min-height: 34px; padding: 7px 11px;
 border: 0; border-radius: 100px; box-shadow: none;
 background: var(--card-bg); color: var(--card-accent); line-height: 1.2;
}
.game-card-surface > .favorite-button svg { width: 16px; height: 16px; }
.game-card-surface:has(> .card:hover) > .favorite-button,
.game-card-surface:has(> .card:focus-visible) > .favorite-button,
.game-card-surface:has(> .favorite-button:hover) .card-play,
.game-card-surface:has(> .favorite-button:focus-visible) .card-play {
 background: var(--card-accent); color: white;
}
@media(max-width:600px) {
 .game-card-surface > button.favorite-button.card-play { min-height: 29px; padding: 5px 12px; left: 13px; bottom: 13px; }
}
@media(max-width:360px) {
 .game-card-surface > button.favorite-button.card-play { left: 11px; bottom: 11px; }
}
.catalog .card-copy .card-bottom { margin-top: auto; }
.catalog .badge { opacity: 1; }

/* Every page shares the same header trail; game title actions stay together. */
header.site-header { display:grid; grid-template-columns:250px minmax(0,1fr) auto; grid-template-areas:"brand trail actions"; gap:24px; }
.site-header > .brand { grid-area:brand; }
.site-header > .header-actions { grid-area:actions; margin-left:0; }
.site-header > .header-breadcrumbs { grid-area:trail; justify-self:start; margin:0; max-width:100%; padding:4px; border:1px solid #f0dce6; border-radius:100px; background:#fff1f7; font-size:12px; }
.header-breadcrumbs ol { flex-wrap:nowrap; gap:4px; min-width:0; }
.header-breadcrumbs li { gap:4px; min-width:0; }
.header-breadcrumbs li + li::before { content:""; display:block; width:5px; height:5px; flex-shrink:0; border-top:1.5px solid #c596ac; border-right:1.5px solid #c596ac; transform:rotate(45deg); margin:0 5px 0 2px; }
.header-breadcrumbs a,.header-breadcrumbs [aria-current] { display:flex; align-items:center; gap:6px; padding:7px 10px; border-radius:100px; text-decoration:none; white-space:nowrap; line-height:1.3; }
.header-breadcrumbs a { color:#a44270; font-weight:600; }
.header-breadcrumbs a:hover { background:#ffe1ee; color:#a3245d; }
.header-breadcrumbs [aria-current] { display:block; background:white; color:var(--ink); font-weight:700; overflow:hidden; text-overflow:ellipsis; }
.header-breadcrumbs li:last-child { flex:1; }
.header-breadcrumbs .breadcrumb-home svg { flex-shrink:0; }
.header-breadcrumbs a:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.game-heading-copy { flex:1; }
.game-heading .game-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; margin-bottom:10px; }
.game-heading .game-title-row h1 { flex:1 1 auto; margin:0; min-width:0; }
.game-title-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:8px; flex-shrink:0; }
.game-title-actions .how-to-trigger,.game-title-actions .game-favorite { display:inline-flex; align-items:center; justify-content:center; gap:6px; width:auto; height:36px; min-height:36px; margin:0; padding:0 12px; border:1px solid #ebccdc; border-radius:100px; background:#fff7fb; color:#a42a63; font-size:12px; font-weight:700; line-height:1; box-shadow:0 3px 0 #ead1dd; white-space:nowrap; }
.game-title-actions .how-to-trigger svg,.game-title-actions .game-favorite svg { width:18px; height:18px; flex-shrink:0; }
.game-title-actions .how-to-trigger:hover,.game-title-actions .game-favorite:hover { background:#fce7f1; }
.game-title-actions .game-favorite[aria-pressed="true"] { background:#fff3d2; border-color:#ead194; color:#9b6a13; box-shadow:0 3px 0 #e7d6ad; }
.game-title-actions .game-favorite:active { transform:none; }
@media(max-width:1100px) {
 header.site-header { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"brand actions" "trail trail"; gap:14px 18px; }
 .site-header > .header-breadcrumbs { justify-self:start; }
}
@media(max-width:700px) {
 .game-heading .game-title-row h1 { flex-basis:100%; }
 .game-heading .game-title-row { gap:10px; }
 .game-title-actions .how-to-trigger,.game-title-actions .game-favorite { padding:0 10px; }
}
@media(max-width:450px) {
 header.site-header { padding:16px; gap:14px 8px; }
 .site-header > .header-breadcrumbs { width:100%; border-radius:14px; box-sizing:border-box; }
 .header-breadcrumbs .breadcrumb-home-label { display:none; }
 .header-breadcrumbs a,.header-breadcrumbs [aria-current] { padding:7px 8px; font-size:11px; }
 .header-breadcrumbs .breadcrumb-home { padding:7px; }
 .header-breadcrumbs li + li::before { margin-right:3px; }
 .site-header .brand { gap:7px; font-size:20px; }
 .site-header .logo { width:34px; height:34px; border-radius:11px; }
 .site-header .header-actions { gap:7px; }
 .site-header .header-actions .back-link { display:none; }
}

.header-breadcrumbs .breadcrumb-home { display:flex; font-weight:700; }
.header-breadcrumbs .breadcrumb-home-label { display:inline; }

/* Board intersections and squares stay flat while genuine controls remain raised. */
.classic-board button.classic-square,
.classic-board button.classic-square:not(:disabled):not([aria-disabled="true"]),
.classic-board button.classic-square:not(:disabled):not([aria-disabled="true"]):active {
 box-shadow:none; translate:none; transform:none;
 transition:background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

/* Keep enlarged search grids inside their existing container. */
.board-enlarged .search-board { width:min(100%,var(--enlarged-board-width)); max-width:100%; margin-inline:auto; }
.board-enlarged .search-board .cell { font-size:clamp(18px,4vw,26px); }

/* A compact heading keeps attention on the playable board. */
.game-layout .game-heading { padding: 8px 0 12px; }
.game-heading .game-title-row { margin-bottom: 0; gap: 10px 16px; }
.game-heading .game-title-row h1 { font-size: clamp(24px, 4vw, 32px); }
.game-title-actions .how-to-trigger,
.game-title-actions .game-favorite { background: transparent; }
.game-title-actions .sound-toggle { margin: 0; flex-shrink: 0; }
.game-layout .game-toolbar { gap: 8px 12px; padding-bottom: 10px; margin-bottom: 12px; }
.game-toolbar #round-info { background: transparent; border: 0; box-shadow: none; padding: 4px 0; }
.guide-round-instructions { color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
@media (max-width: 700px) {
 .game-heading .game-title-row { gap: 10px; }
 .game-title-actions { gap: 6px; }
}

/* Board size belongs with the help controls above the game. */
.game-title-actions .board-zoom {
 display: inline-flex; align-items: center; justify-content: center;
 height: 36px; min-height: 36px; margin: 0; padding: 0 12px;
 border: 1px solid #ebccdc; border-radius: 100px; background: transparent;
 color: #a42a63; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.game-title-actions .board-zoom:hover { background: #fce7f1; }
.game-title-actions:has(.board-zoom) { flex-wrap: wrap; flex-shrink: 1; }
@media (max-width: 700px) {
 .game-title-actions .board-zoom { padding: 0 10px; }
}

:is(.preview-klondike,.preview-playing-cards) { display:flex; align-items:center; justify-content:center; gap:7px; }
:is(.preview-klondike,.preview-playing-cards) .mini-tile { position:relative; width:44px; height:63px; padding:0; min-width:0; min-height:0; border:0; background:transparent; border-radius:0; box-shadow:none; }
:is(.preview-klondike,.preview-playing-cards) .mini-content { position:static; }
:is(.preview-klondike,.preview-playing-cards) .preview-before { display:block; }
:is(.preview-klondike,.preview-playing-cards) img { position:absolute; width:152.380952%; height:106.666667%; max-width:none; left:-26.190476%; top:-3.333333%; object-fit:fill; image-rendering:pixelated; }
:is(.preview-klondike,.preview-playing-cards) .mini-tile:nth-child(1) { transform:rotate(-8deg); }
:is(.preview-klondike,.preview-playing-cards) .mini-tile:nth-child(2) { transform:translateY(5px); }
:is(.preview-klondike,.preview-playing-cards) .mini-tile:nth-child(3) { transform:rotate(8deg); }
