:root {
  --bg: #fbf7f0;
  --surface: #fffdf8;
  --card: #ffffff;
  --text: #24313a;
  --muted: #5f6870;
  --accent: #a94f5d;
  --accent-2: #f1b84b;
  --accent-3: #2a6f78;
  --accent-strong: #7a2e3d;
  --focus-ring: var(--accent-strong);
  --ink: #1f2933;
  --border: rgba(36, 49, 58, 0.14);
  --shadow: 0 16px 36px rgba(36, 49, 58, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbf7f0 0%, #f3f8f8 48%, #fffdf8 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 13px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
  transition: transform 140ms ease;
}

/* Plain :focus, not :focus-visible. The link is only ever reached by keyboard
   or assistive technology, and :focus-visible depends on a browser heuristic
   that can leave the link hidden while it holds focus. */
.skip-link:focus {
  transform: translateY(0);
}

/* The skip target takes focus so the jump actually moves the tab position,
   but it is a region rather than a control, so it shows no ring of its own. */
main[tabindex="-1"]:focus {
  outline: none;
}

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1.35rem;
}

.brand--with-mark {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
}

.brand__mark {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(99, 42, 54, 0.16));
}

/* Reading and playing screens stay immersive, so the mark carries the brand
   without competing with the story or the activity. */
.brand--compact {
  min-height: 44px;
}

.brand--compact .brand__mark {
  width: 32px;
  height: 32px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

nav a:hover {
  background: rgba(47, 127, 136, 0.10);
  color: var(--ink);
}

.private-link {
  color: #8a3d4b;
  background: rgba(183, 93, 105, 0.10);
}

/* Marks a menu entry whose section is not built yet, so the site never
   promises a child something the page cannot deliver. */
.nav-soon {
  margin-left: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(122, 46, 61, 0.12);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 36px;
  align-items: center;
  padding: 56px 0 40px;
}

.eyebrow {
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  line-height: 1.02;
  margin: 0 0 24px;
}

h2 {
  margin-top: 0;
  line-height: 1.2;
}

.hero-copy > p:not(.eyebrow),
.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 680px;
}

.hero-media {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
}

.hero-media__scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: #111827;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.button.secondary:hover {
  background: #ffffff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}

.card,
.welcome-note,
.warning {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 24px;
}

.feature-card {
  display: block;
  text-decoration: none;
  min-height: 188px;
}

.feature-card:hover {
  border-color: rgba(47, 127, 136, 0.38);
  transform: translateY(-2px);
}

.card p,
.welcome-note p,
.warning p {
  color: var(--muted);
}

.welcome-note {
  border-left: 6px solid var(--accent-2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-3);
  font-weight: 800;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--ink);
}

.page {
  padding-top: 44px;
}

.warning {
  border-left: 6px solid var(--accent);
}

.soon-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
  padding: 18px 22px;
  background: rgba(122, 46, 61, 0.07);
  border: 1px dashed rgba(122, 46, 61, 0.34);
  border-radius: 8px;
}

.soon-notice__badge {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.soon-notice p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--muted);
}

.warning .eyebrow {
  color: var(--accent);
}

.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}

.timeline li {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.timeline strong {
  background: var(--accent-2);
  border-radius: 8px;
  min-width: 44px;
  text-align: center;
  padding: 8px 14px;
}

.gallery-placeholder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-placeholder article {
  min-height: 180px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(183, 93, 105, 0.22), rgba(47, 127, 136, 0.22)),
    white;
  border: 1px dashed rgba(47, 42, 53, 0.22);
  padding: 24px;
}

.gallery-placeholder p {
  color: var(--muted);
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
  color: var(--muted);
}

.library-page {
  padding-bottom: 64px;
}

.library-page h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.book-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.book-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4eee5;
}

.book-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(0.96);
  transition: transform 180ms ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.025);
}

.book-level {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
}

.book-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
  border-top: 6px solid var(--accent);
}

.book-button {
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
}

.story-library {
  margin: 38px 0 34px;
}

.story-library__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.story-library__heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.story-count {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(360px, 1fr) minmax(200px, 0.7fr);
  gap: 22px;
  margin: 30px 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.library-search label,
.level-filter legend {
  display: block;
  margin-bottom: 9px;
  font-weight: 800;
}

.library-search input,
.library-search select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.library-search input:focus,
.library-search select:focus,
.level-filter__options label:has(input:focus-visible) {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.level-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.level-filter__options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.level-filter__options label {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}

.level-filter__options label:has(input:checked) {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.level-filter__options input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.story-card .book-cover {
  aspect-ratio: 4 / 3;
}

.story-card .book-card__body {
  padding: 18px;
  border-top-color: var(--accent-3);
}

.story-card .book-card__body h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
  line-height: 1.3;
}

.book-author {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-card .book-button {
  padding-inline: 14px;
}

.story-empty {
  padding: 42px 0;
  color: var(--muted);
  text-align: center;
}

.load-more {
  margin: 28px auto 0;
}

.reader-body {
  min-height: 100vh;
  background: #f5f1e9;
}

.reader-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reader-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.reader-back:hover {
  color: var(--ink);
}

.reader {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  padding: 22px 0 56px;
}

.reader-title {
  margin-bottom: 20px;
}

.reader-title h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.reader-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  min-height: 560px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.reader-picture {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 22px;
  background: #f8f6f1;
}

.reader-picture img {
  display: block;
  width: 100%;
  height: min(66vh, 660px);
  object-fit: contain;
}

.reader-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  border-left: 1px solid var(--border);
}

.reader-page-number {
  margin: 0 0 22px;
  color: var(--accent-3);
  font-weight: 800;
}

/* Page text ranges from four words to over a thousand characters. One size
   either wastes the page or overflows it, so the reader picks a step from the
   length of the page it is about to show. */
.reader-text {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
  hyphens: none;
}

.reader-text--medium {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  line-height: 1.55;
}

.reader-text--small {
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.6;
}

.reader-text--long {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

/* The longest pages run to a thousand characters. Handing the column the
   larger share of the stage keeps them from turning into a tall ribbon.
   Only above the breakpoint: below it the stage is a single column, and this
   selector outranks the one that sets that. */
@media (min-width: 761px) {
  .reader-stage:has(.reader-text--long) {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  }
}

.reader-controls {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 0 10px;
}

.reader-button {
  min-width: 132px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.reader-button--next {
  color: #ffffff;
  background: var(--ink);
}

.reader-button:hover:not(:disabled) {
  border-color: var(--accent-3);
}

.reader-button--next:hover:not(:disabled) {
  background: #111827;
}

.reader-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.reader-progress {
  height: 8px;
  overflow: hidden;
  background: rgba(36, 49, 58, 0.12);
  border-radius: 4px;
}

.reader-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent-3);
  transition: width 180ms ease;
}

.reader-status {
  min-height: 26px;
  margin: 0;
  text-align: center;
  color: var(--accent);
  font-weight: 800;
}

.book-credits {
  margin-top: 22px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.book-credits summary {
  min-height: 36px;
  font-weight: 800;
  cursor: pointer;
}

.book-credits dl {
  display: grid;
  gap: 9px;
}

.book-credits dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}

.book-credits dt {
  font-weight: 800;
}

.book-credits dd {
  margin: 0;
  color: var(--muted);
}

.book-credits dd a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.book-credits p {
  color: var(--muted);
}

.reader-header .brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.reader-error {
  padding: 48px 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  /* Seven wrapped entries cost about 200px of header before any content, so
     on a phone the menu becomes one swipeable row instead. The mask on the
     trailing edge shows that the row continues. */
  nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    /* Keeps a keyboard-focused entry clear of the trailing mask when the
       browser scrolls it into view. */
    scroll-padding-inline: 0 36px;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .cards,
  .gallery-placeholder {
    grid-template-columns: 1fr;
  }

  .story-library__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .library-tools {
    grid-template-columns: 1fr;
  }

  .level-filter__options {
    grid-template-columns: 1fr 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: clamp(2.1rem, 14vw, 3.4rem);
  }

  .book-card {
    display: flex;
  }

  .book-card__body {
    padding: 18px;
    border-top: 6px solid var(--accent-3);
  }

  .reader-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .reader-picture {
    padding: 14px;
  }

  .reader-picture img {
    height: auto;
    max-height: 52vh;
    aspect-ratio: 1 / 1;
  }

  .reader-copy {
    min-height: 210px;
    padding: 24px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  /* The steps have to be restated here: this block comes later in the file,
     so a bare .reader-text rule would otherwise flatten all of them. */
  .reader-text {
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .reader-text--medium {
    font-size: clamp(1.15rem, 5vw, 1.4rem);
  }

  .reader-text--small {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  }

  .reader-text--long {
    font-size: clamp(1rem, 3.8vw, 1.15rem);
  }

  .reader-controls {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .reader-progress {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .reader-button {
    min-width: 0;
  }

  .book-credits dl div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.reader-stage--text-only {
  grid-template-columns: 1fr;
  min-height: 360px;
}

.reader-stage--text-only .reader-copy {
  border-left: 0;
}

/* Some spreads are wordless on purpose. The illustration takes the whole
   stage and only the page counter stays, so the child is not left looking at
   an empty column. */
.reader-stage--picture-only {
  grid-template-columns: 1fr;
}

.reader-stage--picture-only .reader-copy {
  justify-content: flex-start;
  padding: 16px clamp(20px, 4vw, 40px) 20px;
  border-top: 1px solid var(--border);
  border-left: 0;
}

.reader-stage--picture-only .reader-page-number {
  margin: 0;
}

.reader-stage--picture-only .reader-text {
  display: none;
}

/* The tallest pages still need somewhere to go on a short screen. */
.reader-copy {
  overflow-y: auto;
}

@media (max-width: 440px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.home-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

[hidden] {
  display: none !important;
}

nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(47, 127, 136, 0.12);
}

.games-landing h1 {
  max-width: 820px;
}

.game-category {
  margin-top: 52px;
}

.game-category__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.game-category__heading > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.game-category__heading h2,
.game-category__heading p {
  margin: 0;
}

.game-category__heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}

.game-category__heading > p {
  max-width: 390px;
  color: var(--muted);
  text-align: right;
}

.game-category__symbol {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: var(--accent);
  border-radius: 18px;
  font-size: 1.35rem;
  font-weight: 900;
}

.game-category__symbol--math {
  background: var(--accent-3);
  font-size: 0.95rem;
}

.game-category__symbol--logic {
  background: #73588f;
  font-size: 2rem;
}

.game-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.game-card > img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  padding: 24px;
  object-fit: contain;
  background: #f7f0e7;
}

.game-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
}

.game-card__body h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.game-card__body > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.game-card__button {
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
}

.learning-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent-2);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.learning-link-card h2,
.learning-link-card p {
  margin: 0;
}

.learning-link-card p {
  color: var(--muted);
}

.game-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #fbf7f0 0%, #edf7f5 100%);
}

.game-header {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.game-back,
.sound-toggle,
.game-exit-button,
.listen-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.game-back {
  justify-self: start;
}

.sound-toggle {
  justify-self: end;
}

.game-page {
  width: min(940px, calc(100% - 32px));
  max-width: none;
  padding: 24px 0 64px;
}

.game-intro,
.game-completion,
.game-error {
  max-width: 760px;
  margin: 32px auto 0;
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.game-intro h1,
.game-completion h1,
.game-error h1,
.game-shell h1 {
  font-size: clamp(2.1rem, 6vw, 3.7rem);
}

.game-intro .lead,
.game-completion .lead {
  margin-inline: auto;
}

.game-intro__picture {
  width: min(340px, 100%);
  aspect-ratio: 4 / 3;
  margin: 24px auto;
  overflow: hidden;
  background: #f7f0e7;
  border-radius: 12px;
}

.game-intro__picture img {
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
}

.game-session-note {
  color: var(--muted);
}

.difficulty-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
  padding: 0;
  border: 0;
  text-align: left;
}

.difficulty-picker legend {
  width: 100%;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
  text-align: center;
}

.difficulty-picker label {
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: #fffdf8;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.difficulty-picker label:has(input:checked) {
  background: #e9f5f3;
  border-color: var(--accent-3);
}

.difficulty-picker label:has(input:focus-visible) {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.difficulty-picker input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--accent-3);
}

.difficulty-picker span {
  display: grid;
  gap: 3px;
}

.difficulty-picker strong {
  line-height: 1.25;
}

.difficulty-picker small {
  color: var(--muted);
  line-height: 1.35;
}

.game-level-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin: 0;
  padding: 5px 10px;
  color: #225f62;
  background: #e2f1ef;
  border: 1px solid #9bc5c4;
  border-radius: 7px;
  font-weight: 800;
}

.game-primary-button {
  justify-content: center;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.game-shell__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.game-shell__top h1 {
  margin-bottom: 12px;
}

.game-exit-button {
  flex: 0 0 auto;
}

.progress-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 24px;
  padding: 0;
  list-style: none;
}

.progress-dots li {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #6c747a;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--border);
  border-radius: 50%;
}

.progress-dots .is-current {
  color: var(--ink);
  background: var(--accent-2);
  border-color: #d79b28;
  transform: scale(1.08);
}

.progress-dots .is-complete {
  color: white;
  background: var(--accent-3);
  border-color: var(--accent-3);
}

.game-stage {
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.game-prompt {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
}

.game-visual {
  display: grid;
  min-height: 230px;
  place-items: center;
  margin-bottom: 16px;
}

.game-visual > img {
  width: min(300px, 90%);
  height: 220px;
  object-fit: contain;
}

.listen-button {
  min-width: 128px;
  margin-bottom: 22px;
}

.listen-button:hover,
.sound-toggle:hover,
.game-exit-button:hover,
.game-back:hover {
  background: white;
  border-color: var(--accent-3);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

.answer-option {
  min-height: 82px;
  padding: 12px;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid rgba(47, 127, 136, 0.28);
  border-radius: 12px;
  font: inherit;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  white-space: normal;
  cursor: pointer;
}

.answer-option:hover:not(:disabled) {
  background: #eef8f7;
  border-color: var(--accent-3);
  transform: translateY(-2px);
}

.answer-option.needs-retry {
  color: var(--muted);
  background: #f5f2eb;
  border-color: #c8c1b5;
  text-decoration: line-through;
}

.answer-option.is-correct {
  color: #173b35;
  background: #dff1e8;
  border-color: #4f8b78;
  text-decoration: none;
}

.answer-option.is-correct::after {
  content: " ✓";
}

.game-feedback {
  min-height: 54px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 800;
}

.game-feedback.is-positive {
  color: #286654;
}

.game-feedback__example {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 10px 16px;
  color: var(--ink);
  background: #fff5d8;
  border-radius: 10px;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
}

.game-hint {
  max-width: 620px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  color: var(--ink);
  background: #fff5d8;
  border-left: 5px solid var(--accent-2);
  border-radius: 8px;
  text-align: left;
}

.counting-objects {
  display: flex;
  max-width: 620px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.letter-case-display {
  display: grid;
  width: clamp(150px, 32vw, 210px);
  aspect-ratio: 1;
  place-items: center;
  margin: 0;
  color: var(--ink);
  background: #fff5d8;
  border: 4px solid #d79b28;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(54, 69, 79, 0.1);
  font-family: Arial, sans-serif;
  font-size: clamp(6rem, 20vw, 9rem);
  font-weight: 700;
  line-height: 1;
}

.letter-case-word {
  display: grid;
  width: min(420px, 100%);
  place-items: center;
  gap: 10px;
}

.letter-case-word img {
  width: min(240px, 76%);
  height: 160px;
  object-fit: contain;
}

.letter-case-word__label {
  margin: 0;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  font-weight: 700;
}

.letter-case-word__label strong {
  color: #236c75;
  text-decoration: underline;
  text-decoration-color: #f0bd44;
  text-decoration-thickness: 5px;
  text-underline-offset: 6px;
}

.counting-object {
  width: 104px;
  min-height: 92px;
  padding: 6px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
}

.counting-object img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: contain;
}

.counting-object.is-counted {
  background: #e7f4ef;
  border-color: #4f8b78;
}

.counting-object.is-counted::after {
  content: "Sayıldı ✓";
  color: #286654;
  font-weight: 800;
}

.number-sequence {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.number-token {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--ink);
  background: #e3f0ef;
  border: 2px solid #76a8aa;
  border-radius: 14px;
  font-size: 2rem;
  font-weight: 900;
}

.number-token--missing {
  background: #fff5d8;
  border-color: #d79b28;
  border-style: dashed;
}

.operation-visual {
  display: grid;
  width: min(760px, 100%);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.operation-group {
  display: flex;
  min-height: 112px;
  padding: 12px;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 4px;
  background: #eef8f7;
  border: 2px solid #76a8aa;
  border-radius: 16px;
}

.operation-group img {
  width: clamp(38px, 7vw, 58px);
  height: clamp(38px, 7vw, 58px);
  object-fit: contain;
}

.operation-group--removed {
  position: relative;
  background: #f5f2eb;
  border-color: #a9a196;
}

.operation-group--removed img {
  opacity: 0.48;
  filter: grayscale(0.45);
}

.operation-group--removed::after {
  position: absolute;
  width: 70%;
  height: 4px;
  background: #746d64;
  border-radius: 4px;
  content: "";
  transform: rotate(-12deg);
}

.operation-symbol,
.operation-zero {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 900;
}

.missing-word-visual {
  display: grid;
  width: min(620px, 100%);
  place-items: center;
  gap: 14px;
}

.missing-word-visual img {
  width: min(260px, 80%);
  height: 170px;
  object-fit: contain;
}

.missing-word-pattern {
  max-width: 100%;
  margin: 0;
  padding: 12px 18px;
  color: var(--ink);
  background: #fff5d8;
  border: 2px dashed #d79b28;
  border-radius: 10px;
  font-size: clamp(1.65rem, 6vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.missing-word-pattern.is-complete {
  color: #235f4f;
  background: #dff1e8;
  border-color: #4f8b78;
  border-style: solid;
}

.visual-fallback {
  max-width: 440px;
  padding: 24px;
  color: var(--muted);
  background: #f5f2eb;
  border-radius: 10px;
}

.adult-info {
  margin-top: 24px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.adult-info summary {
  min-height: 44px;
  font-weight: 800;
  cursor: pointer;
}

.adult-info dl {
  display: grid;
  gap: 10px;
}

.adult-info dl div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
}

.adult-info dt {
  font-weight: 800;
}

.adult-info dd {
  margin: 0;
  color: var(--muted);
}

.completion-star {
  position: relative;
  z-index: 0;
  width: min(280px, 72vw);
  margin: -24px auto 6px;
  transform-origin: 50% 60%;
}

.completion-star::before {
  position: absolute;
  z-index: -1;
  top: 47%;
  right: 62%;
  width: min(38vw, 320px);
  height: 18px;
  background: linear-gradient(90deg, transparent, rgba(246, 143, 169, 0.12) 28%, rgba(246, 143, 169, 0.72));
  border-radius: 999px;
  content: "";
  filter: blur(5px);
  opacity: 0;
  transform: rotate(-10deg);
  transform-origin: right center;
}

.completion-star img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(169, 79, 93, 0.2));
}

.completion-star.is-arriving {
  animation: star-arrive 900ms cubic-bezier(0.16, 0.82, 0.24, 1) both;
}

.completion-star.is-arriving::before {
  animation: star-trail 900ms ease-out both;
}

@keyframes star-arrive {
  0% {
    opacity: 0;
    transform: translate3d(-82vw, -24vh, 0) rotate(-24deg) scale(0.35);
  }
  72% {
    opacity: 1;
    transform: translate3d(10px, -5px, 0) rotate(4deg) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes star-trail {
  0% {
    opacity: 0;
    transform: rotate(-10deg) scaleX(2.4);
  }
  18% {
    opacity: 1;
  }
  76% {
    opacity: 0.7;
    transform: rotate(-10deg) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: rotate(-10deg) scaleX(0.15);
  }
}

.completion-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.game-exit-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 30px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.game-exit-dialog::backdrop {
  background: rgba(31, 41, 51, 0.45);
}

/* Adam Asmaca ------------------------------------------------------------ */

/* Six balloons hold the word up. One leaves with each wrong letter, so the
   remaining chances are countable at a glance and nothing is ever "lost". */
.balloon-row {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.balloon {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1;
  color: var(--accent);
  transition: opacity 320ms ease, transform 320ms ease;
}

.balloon--gone {
  color: #c8c1b5;
  opacity: 0.6;
  transform: translateY(-10px);
}

.balloon-status {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.word-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 12px);
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.word-slot {
  display: grid;
  width: clamp(38px, 9vw, 58px);
  height: clamp(50px, 11vw, 72px);
  place-items: center;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid rgba(47, 127, 136, 0.28);
  border-bottom-width: 5px;
  border-radius: 10px;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
}

.word-slot--found {
  background: #dff1e8;
  border-color: #4f8b78;
}

.word-slot--space {
  width: 16px;
  background: none;
  border: 0;
}

.letter-keyboard {
  display: grid;
  max-width: 620px;
  margin: 0 auto;
  gap: clamp(6px, 1.4vw, 10px);
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.letter-key {
  min-height: 52px;
  padding: 4px;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid rgba(47, 127, 136, 0.28);
  border-radius: 10px;
  font: inherit;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  font-weight: 800;
  cursor: pointer;
}

.letter-key:hover:not(:disabled) {
  background: #eef8f7;
  border-color: var(--accent-3);
  transform: translateY(-2px);
}

.letter-key.is-found {
  color: #173b35;
  background: #dff1e8;
  border-color: #4f8b78;
}

/* A missing letter is dimmed and struck through rather than reddened, so the
   feedback reads as "already tried", not as a mistake. */
.letter-key.is-missing {
  color: var(--muted);
  background: #f5f2eb;
  border-color: #c8c1b5;
  text-decoration: line-through;
}

.round-reveal {
  max-width: 640px;
  margin: 8px auto 0;
  padding: 24px clamp(16px, 4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.round-reveal h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
}

.reveal-word {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.word-meaning {
  margin-top: 18px;
  padding: 18px;
  background: #fff5d8;
  border-radius: 10px;
  text-align: left;
}

.word-meaning img {
  display: block;
  width: 130px;
  height: 100px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.word-meaning p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  line-height: 1.65;
}

.word-meaning .listen-button {
  margin-bottom: 0;
}

/* Sudoku ---------------------------------------------------------------- */

.sudoku-stage {
  padding-right: clamp(16px, 4vw, 38px);
  padding-left: clamp(16px, 4vw, 38px);
}

.sudoku-instruction {
  max-width: 680px;
  margin-bottom: 24px;
}

.sudoku-board {
  display: grid;
  width: min(100%, 560px);
  margin: 0 auto;
  overflow: hidden;
  background: #fffdf8;
  border: 4px solid #33444d;
  border-radius: 12px;
  grid-template-columns: repeat(var(--sudoku-size), minmax(0, 1fr));
}

.sudoku-board--mini {
  width: min(100%, 390px);
}

.sudoku-row {
  display: contents;
}

.sudoku-cell {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  color: #24313a;
  background: #fffdf8;
  border: 0;
  border-right: 1px solid #a6afb2;
  border-bottom: 1px solid #a6afb2;
  border-radius: 0;
  font: inherit;
  font-size: clamp(1.45rem, calc(8rem / var(--sudoku-size)), 2.6rem);
  font-weight: 800;
  cursor: pointer;
}

.sudoku-cell.is-region-a {
  background: #f1f9f7;
}

.sudoku-cell.is-region-b {
  background: #fff8e7;
}

.sudoku-cell.is-box-right {
  border-right: 4px solid #33444d;
}

.sudoku-cell.is-box-bottom {
  border-bottom: 4px solid #33444d;
}

.sudoku-cell.is-given {
  color: #173c44;
  font-weight: 900;
  cursor: default;
  opacity: 1;
  background-image: radial-gradient(circle, rgba(42, 111, 120, 0.14) 0 38%, transparent 40%);
}

.sudoku-cell.is-peer {
  background: #edf5f5;
}

.sudoku-cell.is-same-number {
  color: #6d3140;
  background: #f8e5e8;
}

.sudoku-cell.is-selected {
  z-index: 1;
  background: #fff0bc;
  box-shadow: inset 0 0 0 4px #c48718;
}

.sudoku-cell.has-conflict,
.sudoku-cell.needs-retry {
  background: #fff4e6;
  box-shadow: inset 0 0 0 3px #b46b2f;
  text-decoration: underline dotted 3px;
  text-underline-offset: 7px;
}

.sudoku-cell:hover:not(:disabled) {
  background: #fff0bc;
}

.sudoku-cell:focus-visible {
  z-index: 2;
  outline-offset: -5px;
}

.sudoku-number-pad {
  display: grid;
  width: min(100%, 560px);
  margin: 22px auto 0;
  gap: 10px;
  grid-template-columns: repeat(var(--sudoku-size), minmax(0, 1fr));
}

.sudoku-number {
  min-height: 58px;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid rgba(47, 127, 136, 0.34);
  border-radius: 11px;
  font: inherit;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 900;
  cursor: pointer;
}

.sudoku-number:hover {
  background: #e9f5f3;
  border-color: var(--accent-3);
}

.sudoku-tools {
  display: grid;
  max-width: 720px;
  margin: 18px auto 0;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sudoku-tools .button {
  min-width: 0;
  justify-content: center;
  padding-right: 12px;
  padding-left: 12px;
  text-align: center;
}

.sudoku-keys {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sudoku-celebration {
  position: relative;
  width: min(580px, 100%);
  min-height: 230px;
  margin: -32px auto -6px;
}

.sudoku-celebration .completion-star {
  position: absolute;
  top: 2px;
  right: 0;
  left: 0;
  width: min(230px, 58vw);
  margin: auto;
}

.sudoku-firework {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  color: var(--firework-color);
  background: currentColor;
  border-radius: 50%;
  box-shadow:
    0 -54px 0 -1px currentColor,
    38px -38px 0 -1px currentColor,
    54px 0 0 -1px currentColor,
    38px 38px 0 -1px currentColor,
    0 54px 0 -1px currentColor,
    -38px 38px 0 -1px currentColor,
    -54px 0 0 -1px currentColor,
    -38px -38px 0 -1px currentColor;
  opacity: 0;
  transform: scale(0.1) rotate(-12deg);
}

.sudoku-firework--one {
  top: 78px;
  left: 18%;
  --firework-color: #a94f5d;
}

.sudoku-firework--two {
  top: 58px;
  right: 16%;
  --firework-color: #c88b16;
}

.sudoku-firework--three {
  top: 34px;
  left: 50%;
  --firework-color: #2a6f78;
}

.sudoku-celebration.is-celebrating .sudoku-firework {
  animation: sudoku-firework-burst 900ms cubic-bezier(0.1, 0.72, 0.28, 1) both;
}

.sudoku-celebration.is-celebrating .sudoku-firework--two {
  animation-delay: 180ms;
}

.sudoku-celebration.is-celebrating .sudoku-firework--three {
  animation-delay: 360ms;
}

@keyframes sudoku-firework-burst {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(-12deg);
  }
  24% {
    opacity: 1;
  }
  74% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: scale(1.08) rotate(12deg);
  }
}

/* Tetris ---------------------------------------------------------------- */

.tetris-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  margin-bottom: 16px;
}

/* The board is a real ten-by-twenty grid, so the cell has to shrink against
   both the width and the height of a phone or the bottom rows fall off the
   screen behind the controls. */
.tetris-board {
  display: grid;
  padding: 6px;
  gap: 2px;
  grid-template-columns: repeat(10, var(--cell));
  grid-auto-rows: var(--cell);
  background: #eef1ee;
  border: 2px solid var(--border);
  border-radius: 10px;

  --cell: clamp(11px, min(calc((100vw - 172px) / 10), 3.1vh), 28px);
  --cell: clamp(11px, min(calc((100vw - 172px) / 10), 3.1dvh), 28px);
}

.tetris-cell {
  background: rgba(36, 49, 58, 0.06);
  border-radius: 3px;
}

.tetris-cell.is-I { background: #3aa6b0; }
.tetris-cell.is-O { background: #e0a92b; }
.tetris-cell.is-T { background: #a05fb4; }
.tetris-cell.is-S { background: #5d9c59; }
.tetris-cell.is-Z { background: #cf6b5e; }
.tetris-cell.is-J { background: #4a72b8; }
.tetris-cell.is-L { background: #d8813d; }

.tetris-cell.is-active {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.tetris-side {
  display: flex;
  min-width: 118px;
  flex-direction: column;
  gap: 12px;
}

.tetris-panel {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}

.tetris-panel h2 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tetris-number {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 900;
}

.next-piece {
  display: grid;
  justify-content: center;
  gap: 2px;
  grid-template-columns: repeat(var(--next-columns, 4), 16px);
  grid-auto-rows: 16px;
}

.next-piece .tetris-cell:not([class*=" is-"]) {
  background: none;
}

.next-piece .tetris-cell[class*="is-"] {
  border-radius: 3px;
}

.tetris-controls {
  display: grid;
  max-width: 460px;
  margin: 0 auto 10px;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.control-key {
  display: grid;
  min-height: 66px;
  place-items: center;
  gap: 2px;
  padding: 8px 4px;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid rgba(47, 127, 136, 0.28);
  border-radius: 12px;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 900;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  cursor: pointer;
}

.control-key * {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.control-key.is-held {
  background: #dff1e8;
  border-color: #4f8b78;
  box-shadow: inset 0 -4px 0 rgba(35, 95, 79, 0.18);
  transform: translateY(2px) scale(0.97);
}

.control-key small {
  font-size: 0.8rem;
  font-weight: 700;
}

.control-key:hover {
  background: #eef8f7;
  border-color: var(--accent-3);
}

/* Rotating is the move the game is about, and a tablet has no up arrow, so
   the button is given its own weight rather than hiding among the arrows. */
.control-key--rotate {
  background: #fff5d8;
  border-color: var(--accent-2);
}

.leaderboard {
  max-width: 520px;
  margin: 28px auto 0;
  padding: 20px clamp(14px, 4vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
}

.leaderboard h2 {
  margin: 0 0 14px;
  font-size: clamp(1.1rem, 3.4vw, 1.35rem);
}

.leaderboard-list {
  margin: 0;
  padding: 0 0 0 26px;
}

.leaderboard-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.leaderboard-list li:last-child {
  border-bottom: 0;
}

.leaderboard-list li.is-new {
  padding-right: 8px;
  padding-left: 8px;
  background: #fff5d8;
  border-radius: 8px;
}

.leaderboard-name {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.leaderboard-score {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.leaderboard-empty {
  margin: 0;
  color: var(--muted);
}

.score-entry {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 18px clamp(14px, 4vw, 22px);
  background: #fff5d8;
  border-radius: 12px;
  text-align: left;
}

.score-entry label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.score-entry__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.score-entry input {
  min-width: 0;
  flex: 1 1 180px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid rgba(47, 127, 136, 0.28);
  border-radius: 10px;
  font: inherit;
  font-size: 1.05rem;
}

.score-entry__note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Araba Yarışı ---------------------------------------------------------- */

.race-shell {
  width: min(100%, 720px);
  max-width: none;
  margin-inline: auto;
}

.race-layout {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.race-cabinet {
  width: min(100%, 500px, calc(55dvh - 85px));
  overflow: hidden;
  padding: 9px;
  color: #fff6df;
  background: #26323a;
  border: 4px solid #33434d;
  border-radius: 18px 12px 22px 14px;
  box-shadow: 0 8px 0 #172229;
}

.race-hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 9px 10px 11px;
  background: #12212a;
  border-radius: 8px 8px 0 0;
}

.race-hud > div:nth-child(2) {
  text-align: center;
}

.race-hud > div:last-child {
  text-align: right;
}

.race-hud span,
.race-fuel span {
  display: block;
  margin-bottom: 4px;
  color: #81ded9;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.race-hud strong {
  font-size: clamp(0.78rem, 2.2vw, 1rem);
}

.race-hud i {
  color: #f4be3b;
  font-size: clamp(1rem, 3vw, 1.32rem);
  font-style: normal;
}

.race-canvas-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #2a6f78;
  isolation: isolate;
}

#race-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.race-pause {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  min-height: 42px;
  padding: 8px 12px;
  color: #fff6df;
  background: rgba(18, 33, 42, 0.82);
  border: 2px solid rgba(255, 246, 223, 0.6);
  border-radius: 18px 12px 18px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.race-pause:hover,
.race-pause:focus-visible {
  background: #244957;
}

.race-controller {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.race-control-switch {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  padding: 3px;
  background: rgba(18, 33, 42, 0.84);
  border: 1px solid rgba(255, 246, 223, 0.52);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(5, 17, 23, 0.24);
  pointer-events: auto;
}

.race-control-switch button {
  min-height: 34px;
  padding: 5px 10px;
  color: rgba(255, 246, 223, 0.78);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.race-control-switch button[aria-pressed="true"] {
  color: #17343b;
  background: #fff6df;
  box-shadow: 0 2px 7px rgba(5, 17, 23, 0.26);
}

.race-driving-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.race-steering-view,
.race-pedals {
  pointer-events: auto;
}

.race-steering-view[hidden] {
  display: none;
}

.race-arrow-steering {
  display: flex;
  gap: 8px;
}

.race-pedals {
  display: grid;
  gap: 8px;
}

.race-controller .control-key {
  width: clamp(58px, 14vw, 72px);
  min-height: clamp(54px, 12vw, 66px);
  padding: 5px 3px;
  background: rgba(255, 253, 248, 0.9);
  border: 2px solid rgba(255, 246, 223, 0.88);
  border-radius: 50% 44% 50% 44%;
  box-shadow: 0 5px 15px rgba(5, 17, 23, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.race-controller .control-key span {
  line-height: 1;
}

.race-controller .control-key small {
  font-size: 0.67rem;
}

.race-controller .control-key.is-held {
  color: #102f35;
  background: #bcece6;
  border-color: #59c9c1;
  box-shadow: inset 0 3px 8px rgba(10, 62, 65, 0.22);
}

.race-wheel-steering {
  display: block;
}

.race-wheel {
  --wheel-turn: 0deg;
  position: relative;
  width: clamp(82px, 22vw, 106px);
  aspect-ratio: 1;
  background: rgba(18, 33, 42, 0.7);
  border: clamp(7px, 1.8vw, 9px) solid #1b3039;
  border-radius: 50% 50% 44% 44% / 50% 50% 42% 42%;
  box-shadow: 0 0 0 4px rgba(255, 246, 223, 0.88),
    0 5px 15px rgba(5, 17, 23, 0.4),
    inset 0 0 0 2px rgba(79, 200, 193, 0.34);
  transform: rotate(var(--wheel-turn));
  transition: transform 90ms ease-out, border-color 120ms ease, background-color 120ms ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}

.race-wheel:focus-visible {
  outline: 4px solid #f4be3b;
  outline-offset: 4px;
}

.race-wheel.is-held {
  background: rgba(79, 200, 193, 0.4);
  border-color: #214d55;
  box-shadow: 0 0 0 4px #a9f1ec,
    0 3px 10px rgba(5, 17, 23, 0.36),
    inset 0 0 0 2px rgba(255, 246, 223, 0.46);
  cursor: grabbing;
}

.race-wheel__spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44%;
  height: 7px;
  background: #dce9e5;
  border-radius: 999px;
  transform-origin: 0 50%;
}

.race-wheel__spoke--left {
  transform: rotate(155deg);
}

.race-wheel__spoke--right {
  transform: rotate(25deg);
}

.race-wheel__spoke--bottom {
  transform: rotate(90deg);
}

.race-wheel i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1;
  background: #f4be3b;
  border: 3px solid #172229;
  border-radius: 42% 58% 48% 52%;
  box-shadow: 0 2px 7px rgba(5, 17, 23, 0.35);
  transform: translate(-50%, -50%);
}

.race-fuel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 10px 4px;
}

.race-fuel strong {
  font-size: 0.92rem;
}

.race-fuel__track {
  height: 14px;
  overflow: hidden;
  background: #52616a;
  border: 2px solid #6e7b82;
  border-radius: 999px;
}

.race-fuel__track i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #d95048 0 24%, #f4be3b 24% 48%, #4fc8c1 48%);
  border-radius: inherit;
  transition: width 180ms linear;
}

.race-fuel__track.is-low {
  border-color: #f4be3b;
  box-shadow: 0 0 0 3px rgba(244, 190, 59, 0.2);
}

.race-controller .race-control--brake {
  background: rgba(242, 238, 231, 0.92);
  border-color: #9aa4a8;
}

.race-controller .race-control--gas {
  color: #21343b;
  background: rgba(255, 241, 190, 0.94);
  border-color: #d8a92e;
}

.race-controller .race-control--gas:hover {
  background: #ffeaa0;
  border-color: #b98d20;
}

.race-is-playing .game-page {
  padding-top: 6px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.race-is-playing .game-shell__top {
  align-items: center;
  flex-direction: row;
  width: min(100%, 500px);
  margin-inline: auto;
  gap: 8px;
}

.race-is-playing .game-shell__top > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.race-is-playing .game-shell__top .eyebrow {
  display: none;
}

.race-is-playing .game-shell__top h1 {
  margin: 0;
  font-size: clamp(1.08rem, 5vw, 1.45rem);
  white-space: nowrap;
}

.race-is-playing .game-level-badge {
  margin: 0;
  padding: 4px 7px;
  font-size: 0.68rem;
  white-space: nowrap;
}

.race-is-playing .game-exit-button {
  min-height: 38px;
  padding: 6px 9px;
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .race-is-playing .game-page {
    padding-top: 2px;
  }

  .race-is-playing .game-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding-block: 3px;
  }

  .race-is-playing .game-header .brand {
    display: none;
  }

  .race-is-playing .game-header .game-back,
  .race-is-playing .game-header .sound-toggle {
    grid-row: 1;
    grid-column: auto;
    min-height: 40px;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .race-is-playing .game-shell__top {
    gap: 5px;
  }

  .race-is-playing .game-shell__top > div {
    gap: 5px;
  }

  .race-is-playing .game-shell__top h1 {
    font-size: clamp(1rem, 4.6vw, 1.2rem);
  }

  .race-is-playing .game-level-badge {
    padding: 3px 6px;
    font-size: 0.62rem;
  }

  .race-is-playing .game-shell__top .game-exit-button {
    min-height: 40px;
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .race-shell {
    padding-inline: 4px;
  }

  .race-layout {
    margin-top: 2px;
  }

  .race-cabinet {
    width: min(100%, 500px);
    padding: 7px;
    border-width: 2px;
    border-radius: 14px 9px 17px 10px;
    box-shadow: 0 5px 0 #172229;
  }

  .race-canvas-frame {
    aspect-ratio: 3 / 4;
  }

  .race-hud {
    padding: 6px 6px 8px;
  }

  .race-hud span,
  .race-fuel span {
    font-size: 0.58rem;
  }

  .race-hud strong {
    font-size: clamp(0.68rem, 3.1vw, 0.86rem);
  }

  .race-hud i {
    font-size: clamp(0.88rem, 4vw, 1.12rem);
  }

  .race-fuel {
    padding: 7px 6px 2px;
  }

  .race-pause {
    top: 8px;
    right: 8px;
    min-height: 36px;
    padding: 5px 9px;
    font-size: 0.7rem;
  }

  .race-control-switch {
    top: 8px;
    left: 8px;
  }

  .race-control-switch button {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .race-driving-controls {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }
}

@media (max-width: 390px) {
  .race-controller .control-key {
    width: 58px;
    min-height: 54px;
  }

  .race-arrow-steering {
    gap: 6px;
  }

  .race-pedals {
    gap: 6px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .race-is-playing .game-header {
    display: none;
  }

  .race-is-playing .game-page {
    padding-block: 3px;
  }

  .race-is-playing .game-shell__top {
    position: absolute;
    z-index: 6;
    top: 8px;
    right: 8px;
    width: auto;
  }

  .race-is-playing .game-shell__top > div {
    display: none;
  }

  .race-cabinet {
    width: min(100%, calc(66.67dvh - 8px));
  }
}

/* Game controls keep pinch-to-zoom available for accessibility while removing
   the delayed/double-tap zoom gesture that can interrupt a quick second tap. */
.game-body,
.games-landing {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

.game-body :is(button, a.button, .game-back, .difficulty-picker label, .counting-object, .adult-info summary),
.games-landing :is(a.button, .game-card) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(42, 111, 120, 0.2);
}

.game-body :is(button, a.button, .game-back, .difficulty-picker label, .counting-object),
.games-landing a.button {
  user-select: none;
  -webkit-user-select: none;
}

/* Fluid targets grow on roomy screens but never shrink below a comfortable
   child-friendly tap size. The uneven pebble corners distinguish controls
   from cards and game-board squares. */
.game-body .button,
.games-landing .button {
  min-height: clamp(48px, 6.5vw, 58px);
  padding: clamp(11px, 1.7vw, 15px) clamp(16px, 2.8vw, 26px);
  border-radius: 999px 999px 999px 24px;
  font-size: clamp(0.96rem, 1.6vw, 1.08rem);
  line-height: 1.2;
  text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease, transform 100ms ease;
}

.games-landing .game-card__button {
  justify-content: space-between;
}

.game-back,
.sound-toggle,
.game-exit-button,
.listen-button {
  min-height: clamp(48px, 6vw, 56px);
  padding: clamp(9px, 1.5vw, 13px) clamp(12px, 2.2vw, 20px);
  border-radius: 999px 999px 999px 20px;
  font-size: clamp(0.88rem, 1.7vw, 1rem);
  line-height: 1.2;
  transition: background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease, transform 100ms ease;
}

.difficulty-picker label {
  min-height: clamp(82px, 10vw, 104px);
  padding: clamp(12px, 2vw, 17px);
  border-radius: 22px 22px 28px 14px;
  transition: background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease, transform 100ms ease;
}

.answer-option {
  min-height: clamp(68px, 9vw, 88px);
  padding: clamp(10px, 2vw, 16px);
  border-radius: 24px 24px 30px 14px;
  transition: background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease, transform 100ms ease;
}

.counting-object {
  width: clamp(82px, 18vw, 108px);
  min-height: clamp(84px, 17vw, 104px);
  border-radius: 48% 52% 44% 56% / 44% 42% 58% 56%;
  transition: background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease, transform 100ms ease;
}

.letter-key {
  min-height: clamp(48px, 7vw, 58px);
  border-radius: 50% 50% 44% 44% / 38% 38% 62% 62%;
  transition: background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease, transform 100ms ease;
}

.sudoku-number {
  min-height: clamp(50px, 7vw, 62px);
  border-radius: 50% 50% 44% 44% / 38% 38% 62% 62%;
  transition: background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease, transform 100ms ease;
}

.control-key {
  min-height: clamp(62px, 9vw, 76px);
  border-radius: 30px 18px 30px 18px;
  transition: background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease, transform 100ms ease;
}

.game-body :is(button, a.button, .game-back, .difficulty-picker label, .counting-object):active:not(:disabled),
.games-landing a.button:active {
  box-shadow: none;
  transform: translateY(2px) scale(0.97);
}

@media (hover: none) {
  .answer-option:hover:not(:disabled),
  .letter-key:hover:not(:disabled) {
    transform: none;
  }
}

@media (pointer: coarse) {
  .game-body :is(.button, .game-back, .sound-toggle, .game-exit-button, .listen-button, .letter-key, .sudoku-number),
  .games-landing .button {
    min-height: 52px;
  }
}

@media (max-width: 900px) {
  .home-cards {
    grid-template-columns: 1fr 1fr;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-card > img {
    height: 190px;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .game-category__heading,
  .learning-link-card,
  .game-shell__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-category__heading > p {
    text-align: left;
  }
  .home-cards {
    grid-template-columns: 1fr;
  }

  .game-card-grid {
    grid-template-columns: 1fr;
  }

  .game-header {
    grid-template-columns: 1fr 1fr;
  }

  .game-header .brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .game-back,
  .sound-toggle {
    grid-row: 2;
  }

  .answer-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  }

  .difficulty-picker {
    grid-template-columns: 1fr;
  }

  .difficulty-picker label {
    min-height: clamp(72px, 12vw, 88px);
  }

  .answer-option {
    min-height: clamp(68px, 12vw, 82px);
  }

  .operation-visual {
    gap: 8px;
  }

  .letter-keyboard {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tetris-side {
    min-width: 96px;
  }

  .tetris-panel {
    padding: 8px 10px;
  }

  .sudoku-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-group {
    min-height: 92px;
    padding: 8px;
  }

  .adult-info dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 440px) {
  .game-page {
    width: min(100% - 20px, 940px);
  }

  .game-stage,
  .game-intro,
  .game-completion {
    padding: 22px 16px;
  }

  .progress-dots {
    gap: 7px;
  }

  .progress-dots li {
    width: 30px;
    height: 30px;
  }

  .counting-object {
    width: 82px;
  }

  .number-token {
    width: 60px;
    height: 60px;
  }

  .letter-keyboard {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sudoku-number-pad {
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }

  .letter-key {
    min-height: 48px;
  }

  .sudoku-cell {
    font-size: clamp(1.25rem, calc(7.6rem / var(--sudoku-size)), 2rem);
  }

  .sudoku-number {
    min-height: 50px;
  }

  .completion-actions .button,
  .completion-actions .text-link,
  .dialog-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* On the narrowest phones the Tetris information moves below the board. This
   keeps both the playfield and every control inside the viewport. */
@media (max-width: 340px) {
  .game-header {
    width: calc(100% - 20px);
    gap: 8px;
  }

  .game-back,
  .sound-toggle {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 0.82rem;
  }

  .letter-keyboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tetris-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .tetris-board {
    align-self: center;

    --cell: clamp(11px, min(calc((100vw - 56px) / 10), 3.1vh), 28px);
    --cell: clamp(11px, min(calc((100vw - 56px) / 10), 3.1dvh), 28px);
  }

  .tetris-side {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .tetris-panel,
  .tetris-side .button {
    min-width: 0;
    padding: 7px 5px;
  }

  .next-piece {
    grid-template-columns: repeat(var(--next-columns, 4), 12px);
    grid-auto-rows: 12px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .game-header {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .game-page {
    padding-top: 10px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .game-stage {
    padding-top: clamp(14px, 3vw, 24px);
    padding-bottom: clamp(14px, 3vw, 24px);
  }

  .game-shell__top h1 {
    margin-bottom: 6px;
  }

  .game-feedback {
    margin-top: 10px;
  }
}

/* Portrait tablets sit just above the phone breakpoint. Centre the compact
   Sudoku title block there so the heading cannot be squeezed sideways by the
   exit control. */
@media (orientation: portrait) and (max-width: 900px) {
  .sudoku-body .game-shell__top {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .sudoku-body .game-shell__top > div {
    width: 100%;
  }

  .sudoku-body .game-exit-button {
    align-self: center;
  }
}

/* This must follow the shared game-control rule so a held Tetris arrow cannot
   turn into a page pan before its repeat action begins. */
body.game-body .tetris-controls .control-key {
  touch-action: none;
}
