.theme-wordjumble {
  --bg: #f5f4e8; --surface: #fffdf1; --wash: #ebedda; --ink: #222b19; --muted: #555e42;
  --line: #cbd0b7; --focus: #526518; --accent: #d1ea76; --accent-hover: #c1db63; --on-accent: #232d0c;
  --hero-ink: #526518; --radius: .42rem; --control-radius: .24rem; --thumb-radius: .2rem;
  --display-font: Georgia, "Times New Roman", serif;
}
.theme-wordjumble .site-header { border-top: .27rem solid #526518; }
.word-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .92fr);
  gap: clamp(1.1rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.35rem, 4.6vw, 3.7rem);
  border: 1px solid var(--line);
  background: radial-gradient(#64703c35 1px, transparent 1px) 0 0 / 14px 14px, #f0f2dd;
}
.word-lead .lead-copy { background: #f0f2dd; }
.word-lead h1 { font-weight: 700; }
.word-lead h1 em { font-style: italic; }
.word-board { position: relative; min-width: 0; }
.letter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .24rem;
  width: min(100%, 21rem);
  margin: 0 auto -.6rem;
  padding: .32rem;
  background: #273019;
  transform: rotate(4deg) scale(.94);
  box-shadow: .55rem .55rem 0 #7d8a5635;
}
.letter-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1.35;
  background: #e2eaa9;
  color: #293019;
  font: 800 clamp(.95rem, 3vw, 2.15rem)/1 monospace;
}
.letter-grid .blank { background: #455432; }
.letter-grid span:nth-child(3n):not(.blank) { background: #fcf2ca; }
.word-board .hero-game { position: relative; margin-inline: auto; max-width: 24rem; box-shadow: .26rem .26rem 0 #526518; }
.theme-wordjumble .home-inlay { border-bottom: 1px solid var(--line); padding: .85rem 0 1.2rem; }
.theme-wordjumble .home-inlay h2 { font-size: 1.3rem; }
.theme-wordjumble .lead-list .game-card {
  grid-template: auto / minmax(2.7rem, 4rem) minmax(0, 1fr) auto;
  align-items: center;
}
.theme-wordjumble .lead-list .game-art { grid-column: 1; }
.theme-wordjumble .lead-list .game-art img { aspect-ratio: 1; }
.theme-wordjumble .lead-list .card-copy { grid-column: 2; }
.theme-wordjumble .lead-list .card-arrow { align-self: center; }
.theme-wordjumble .editorial-panel { border-top: .3rem solid #526518; }
.theme-wordjumble .panel-1 { --panel: #f2ebce; }
.theme-wordjumble .catalogue-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
.theme-wordjumble .category-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 1.2rem;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.theme-wordjumble .shelf-grid { margin: 0; }
.theme-wordjumble .shelf-grid .game-art img { aspect-ratio: 1.65; }
.theme-wordjumble .detail-card { border-top: .3rem solid var(--focus); }

.theme-hoops {
  color-scheme: dark;
  --bg: #10192b; --surface: #182541; --header: #122039; --wash: #223352; --ink: #fff2e7; --muted: #bec9dc;
  --line: #405174; --focus: #ffaf7b; --accent: #ffaf7b; --accent-hover: #ffc198; --on-accent: #2d190f;
  --hero-ink: #ffb182; --radius: .95rem; --control-radius: 2rem; --thumb-radius: .55rem;
  --display-font: Impact, "Arial Narrow", "Segoe UI", sans-serif;
}
.theme-hoops h1, .theme-hoops h2 { font-weight: 600; letter-spacing: -.025em; }
.court-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, .72fr);
  align-items: center;
  gap: 1rem 2rem;
  min-height: 25rem;
  position: relative;
  isolation: isolate;
  padding: clamp(1.25rem, 5.7vw, 4.85rem);
  background: linear-gradient(112deg, #182b4c 0 49%, #203b64 49% 100%);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}
.court-lead h1 { text-transform: uppercase; font-size: clamp(3.15rem, 8.1vw, 7rem); line-height: .99; }
.court-lines { position: absolute; z-index: -1; inset: 6% 3.4% 6% 52%; border: 2px solid #d4946779; overflow: hidden; border-radius: .3rem; }
.court-lines::before, .court-lines::after { content: ''; position: absolute; border: 2px solid #d4946779; }
.court-lines::before { width: 76%; height: 85%; border-radius: 50%; right: -45%; top: 7.5%; }
.court-lines::after { width: 40%; height: 42%; right: -2px; top: 29%; }
.court-feature { display: flex; justify-content: center; position: relative; }
.court-feature .hero-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 17rem;
  align-items: start;
  background: #14223d;
  border: 2px solid #e49b72;
  padding: .65rem;
  box-shadow: .6rem .65rem 0 #10192b;
}
.court-feature .hero-art { grid-column: 1 / -1; }
.court-feature .hero-art img { aspect-ratio: 1.26; }
.court-feature .hero-game-copy { padding: .15rem .15rem .35rem; }
.theme-hoops .home-inlay {
  display: grid;
  grid-template-columns: minmax(7rem, .55fr) minmax(0, 3.5fr);
  align-items: center;
  margin-top: .8rem;
  gap: .7rem 1.2rem;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
}
.theme-hoops .home-inlay h2 { margin: 0; font-size: 1.4rem; color: #ffb182; }
.theme-hoops .lead-list .game-card {
  grid-template: auto / minmax(2.4rem, 3.5rem) minmax(0, 1fr) auto;
  align-items: center;
}
.theme-hoops .lead-list .game-art { grid-column: 1; }
.theme-hoops .lead-list .game-art img { aspect-ratio: 1; }
.theme-hoops .lead-list .card-copy { grid-column: 2; }
.theme-hoops .editorial-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.theme-hoops .editorial-panel { background: #1b2d4e; }
.theme-hoops .panel-1 { background: #282c4e; }
.theme-hoops .category-panel { border-left: .33rem solid #c87958; }
.theme-hoops .detail-layout { grid-template-columns: minmax(0, 2.65fr) minmax(13rem, .95fr); }
.theme-hoops .detail-card { background: linear-gradient(160deg, #18294a, #17223b); }

.theme-dominoes {
  --bg: #e7f1e8; --surface: #f8faf0; --wash: #d8eadf; --ink: #17312a; --muted: #436156;
  --line: #b8d1c5; --focus: #246554; --accent: #23634f; --accent-hover: #2e725e; --on-accent: #fffdf3;
  --hero-ink: #246554; --radius: 1.4rem; --control-radius: 1.5rem; --thumb-radius: .65rem;
  --display-font: Georgia, "Times New Roman", serif;
}
.domino-lead {
  position: relative;
  isolation: isolate;
  padding: clamp(1.5rem, 4.8vw, 3.8rem);
  border: 1px solid #b6cdbf;
  border-radius: 1.5rem;
  background-color: #deede0;
  background-image: linear-gradient(#9ebbae36 1px, transparent 1px), linear-gradient(90deg, #9ebbae36 1px, transparent 1px);
  background-size: 24px 24px;
}
.domino-lead .lead-copy { width: fit-content; margin: auto; padding: .5rem .85rem; text-align: center; background: #deede0; }
.domino-lead .lead-text { margin-inline: auto; }
.domino-lead h1 { font-size: clamp(2.55rem, 6.6vw, 6rem); }
.domino-lead h1 em { font-style: italic; }
.domino-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 3.5vw, 2rem); width: min(100%, 48rem); margin: clamp(1.45rem, 3vw, 2.4rem) auto .35rem; }
.domino-tile {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  align-items: center;
  gap: .35rem;
  min-width: 0;
  text-decoration: none;
  padding: .55rem;
  border: 1px solid #86ad9a;
  border-radius: .7rem;
  box-shadow: .1rem .35rem 0 #367563;
  background: #f9fbef;
}
.domino-tile:first-child { transform: rotate(-5deg); }
.domino-tile:last-child { transform: rotate(5deg); }
.domino-tile:hover { border-color: var(--focus); background: #fffee9; }
.domino-tile:hover strong { text-decoration: underline; }
.pip-row { display: grid; justify-items: center; line-height: 1; font: 700 clamp(1.25rem, 3vw, 2.6rem)/.94 "Segoe UI Symbol", sans-serif; color: #246554; border-right: 1px solid var(--line); }
.domino-thumbnail { display: grid; gap: .28rem; }
.domino-thumbnail img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; border-radius: .3rem; }
.domino-thumbnail strong { font-size: .86rem; line-height: 1.2; overflow-wrap: anywhere; }
.theme-dominoes .home-inlay { display: grid; grid-template-columns: 1fr minmax(0, 1.7fr); align-items: center; gap: .65rem 1.2rem; padding: .75rem 1rem; background: #c9e2d2; border-radius: 1.15rem; }
.theme-dominoes .home-inlay h2 { margin: 0; padding-left: .3rem; }
.theme-dominoes .hero-game { border-radius: .8rem; }
.theme-dominoes .editorial-panel { border-radius: 1.15rem .35rem 1.15rem .35rem; }
.theme-dominoes .panel-1 { --panel: #e9ebcf; }
.theme-dominoes .category-panel:nth-child(4n + 2), .theme-dominoes .category-panel:nth-child(4n + 3) { --panel: #e9ebd4; }
.theme-dominoes .detail-card { box-shadow: 0 .3rem 0 #b1cabd; }

.theme-breakout {
  color-scheme: dark;
  --bg: #171326; --surface: #242039; --wash: #2e2647; --ink: #f8f3ff; --muted: #c8bcdf;
  --line: #51466a; --focus: #dcff73; --accent: #dcff73; --accent-hover: #e8ffa2; --on-accent: #20260f;
  --hero-ink: #dcff73; --radius: 1.25rem; --control-radius: .5rem; --thumb-radius: .55rem;
  --display-font: "Arial Black", "Segoe UI", Arial, sans-serif;
}
.theme-breakout .site-header { border-top: .23rem solid #dfff76; }
.arcade-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr) minmax(0, .65fr);
  gap: clamp(.55rem, 1.7vw, 1.2rem);
}
.arcade-intro {
  display: grid;
  align-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #33264d;
  border: 1px solid #67528b;
  border-radius: 1.3rem;
  min-height: 23rem;
  padding: clamp(1.15rem, 3vw, 2.35rem);
}
.arcade-intro h1 { font-size: clamp(2.5rem, 5.8vw, 5.3rem); }
.arcade-intro .lead-copy { position: relative; z-index: 1; }
.arcade-path { position: absolute; inset: auto -18% -48% 28%; height: 95%; border: 2px solid #a87deb45; border-radius: 50%; transform: rotate(-27deg); }
.arcade-path::after { content: ''; position: absolute; inset: -14%; border: 2px solid #a87deb45; border-radius: 50%; }
.arcade-path i { position: absolute; display: block; width: 1rem; height: 1rem; border-radius: 50%; background: #c096ff; left: 14%; top: 6%; }
.arcade-path i:nth-child(2) { left: 28%; top: -13%; background: #97ded3; width: .65rem; height: .65rem; }
.arcade-path i:nth-child(3) { left: 63%; top: -8%; width: .45rem; height: .45rem; background: #d9f27b; }
.arcade-lead .hero-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  border-color: #746291;
  padding: .55rem;
}
.arcade-lead .hero-art { position: relative; grid-column: 1 / -1; min-height: 13.5rem; }
.arcade-lead .hero-art img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.arcade-lead .hero-game-copy { padding: .42rem .4rem .62rem; }
.arcade-lead .lead-list { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
.arcade-lead .lead-list .game-card { grid-template: minmax(0, 1fr) / minmax(3rem, .85fr) minmax(0, 1.2fr) auto; align-items: stretch; }
.arcade-lead .lead-list .game-art { grid-column: 1; }
.arcade-lead .lead-list .game-art img { height: 100%; }
.arcade-lead .lead-list .card-copy { grid-column: 2; align-content: center; }
.arcade-lead .lead-list .card-arrow { align-self: center; }
.theme-breakout .editorial-panel { --panel: #2d2545; }
.theme-breakout .panel-1 { --panel: #203541; }
.theme-breakout .category-panel:nth-child(4n + 2) { --panel: #24333e; }
.theme-breakout .category-panel:nth-child(4n + 3) { --panel: #2d2749; }
.theme-breakout .category-panel h3 { color: #e2d4fa; }
.theme-breakout .detail-card { border-top: .3rem solid #b197ea; }

.theme-blockstack {
  --bg: #f2ece0; --surface: #fff8e9; --wash: #e9ddca; --header: #f6eddf; --ink: #282a22; --muted: #5e584a;
  --line: #cfc1ad; --focus: #98462e; --accent: #98462e; --accent-hover: #ad5335; --on-accent: #fff9ec;
  --hero-ink: #98462e; --radius: 0; --control-radius: 0; --thumb-radius: .18rem;
  --display-font: "Arial Black", "Segoe UI", Arial, sans-serif;
}
.stack-lead { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); border: 1px solid #bbad91; background: #f8eed8; min-height: 26.5rem; }
.stack-copy { display: grid; padding: clamp(1.15rem, 5vw, 4rem); }
.stack-lead h1 { font-size: clamp(2.6rem, 6.2vw, 5.85rem); }
.stack-architecture {
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  min-height: 20rem;
  padding: clamp(.75rem, 3vw, 1.7rem);
  background: #d8c6a2;
  background-image: linear-gradient(#59492f27 1px, transparent 1px), linear-gradient(90deg, #59492f27 1px, transparent 1px);
  background-size: 1.6rem 1.6rem;
  overflow: hidden;
  border-left: 1px solid #b1a181;
}
.stack-architecture .hero-game { max-width: 25rem; position: relative; box-shadow: .3rem .3rem 0 #684a34; }
.block-model { position: absolute; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); z-index: -1; width: min(75%, 20rem); aspect-ratio: 1; top: 5.5%; left: 11%; transform: rotate(-7deg); filter: drop-shadow(.55rem .62rem 0 #6650344d); }
.block-model i { background: #a64c32; border: 1px solid #684a34; }
.block-model i:nth-child(1) { grid-area: 1 / 2 / 2 / 4; background: #b85536; }
.block-model i:nth-child(2) { grid-area: 2 / 1 / 3 / 3; background: #f1ce77; }
.block-model i:nth-child(3) { grid-area: 2 / 3 / 4 / 4; background: #48687a; }
.block-model i:nth-child(4) { grid-area: 3 / 1 / 4 / 2; background: #e48353; }
.block-model i:nth-child(5) { grid-area: 3 / 2 / 5 / 3; background: #814433; }
.block-model i:nth-child(6) { grid-area: 4 / 3 / 5 / 5; background: #ecba58; }
.block-model i:nth-child(7) { grid-area: 3 / 4 / 4 / 5; background: #ead7ae; }
.theme-blockstack .home-inlay { background: #eadbc2; border: 1px solid var(--line); padding: 1rem; }
.theme-blockstack .home-inlay .game-card { grid-template: auto / minmax(2.6rem, 4.6rem) minmax(0, 1fr) auto; align-items: center; }
.theme-blockstack .lead-list .game-art { grid-column: 1; }
.theme-blockstack .lead-list .game-art img { aspect-ratio: 1; }
.theme-blockstack .lead-list .card-copy { grid-column: 2; }
.theme-blockstack .editorial-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.theme-blockstack .editorial-panel { border-top: .28rem solid #a54d33; --panel: #e9d8b9; }
.theme-blockstack .panel-1 { border-top-color: #44697b; --panel: #dee4df; }
.theme-blockstack .category-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); align-items: center; gap: .7rem; }
.theme-blockstack .category-panel:nth-child(even) { --panel: #e3e4dc; }
.theme-blockstack .category-panel .shelf-grid { margin: 0; }
.theme-blockstack .detail-card { box-shadow: .4rem .4rem 0 #c0a88d; }

@media (max-width: 900px) {
  .theme-blockstack .category-panel { grid-template-columns: minmax(0, 1fr); }
  .theme-blockstack .category-panel .shelf-grid { margin-top: .2rem; }
}
@media (max-width: 850px) {
  .theme-hoops .editorial-layout, .theme-blockstack .editorial-layout, .theme-hoops .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .arcade-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-lead .lead-list { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .word-lead, .stack-lead, .theme-wordjumble .category-panel { grid-template-columns: minmax(0, 1fr); }
  .word-board { margin-top: .2rem; }
  .letter-grid { width: min(75%, 13.5rem); }
  .letter-grid span { aspect-ratio: 1.65; }
  .court-lead { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); min-height: 19rem; gap: .65rem; }
  .court-lead h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
  .court-feature .hero-game { box-shadow: .25rem .3rem 0 #10192b; gap: .4rem; padding: .45rem; }
  .court-feature .hero-game .card-arrow, .court-feature .hero-game small { display: none; }
  .theme-hoops .home-inlay, .theme-dominoes .home-inlay { grid-template-columns: minmax(0, 1fr); }
  .stack-architecture { border-left: 0; border-top: 1px solid #b1a181; min-height: 14rem; }
  .block-model { width: min(62%, 15rem); top: 0; left: 35%; }
  .theme-blockstack .category-panel .shelf-grid { margin-top: .15rem; }
}
@media (max-width: 480px) {
  .theme-wordjumble .lead-list .game-card, .theme-hoops .lead-list .game-card,
  .theme-blockstack .lead-list .game-card, .arcade-lead .lead-list .game-card { grid-template: auto 1fr / minmax(0, 1fr); }
  .theme-wordjumble .lead-list .card-copy, .theme-hoops .lead-list .card-copy,
  .theme-blockstack .lead-list .card-copy, .arcade-lead .lead-list .card-copy { grid-column: 1; }
  .lead-list .game-card > .card-arrow { display: none; }
  .arcade-lead { grid-template-columns: minmax(0, 1fr); }
  .arcade-intro { min-height: 0; }
  .arcade-lead .hero-game { grid-template-columns: 4.8rem minmax(0, 1fr) auto; grid-template-rows: auto; }
  .arcade-lead .hero-art { grid-column: 1; min-height: 0; }
  .arcade-lead .hero-art img { position: static; height: auto; aspect-ratio: 1; }
  .arcade-lead .hero-game-copy { padding: .22rem .05rem; }
  .court-lead { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 1rem; }
  .court-lines { inset: 62% 0 0 30%; }
  .court-feature { justify-content: flex-start; }
  .court-feature .hero-game { display: flex; align-items: center; width: 100%; max-width: 100%; }
  .court-feature .hero-art img { aspect-ratio: 1; }
  .court-feature .hero-game small { display: block; }
  .domino-tile { grid-template-columns: minmax(0, 1fr); }
  .pip-row { display: flex; justify-content: center; gap: .08rem; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: .26rem; }
  .domino-path { gap: .45rem; }
  .domino-thumbnail strong { font-size: .78rem; }
}
