:root {
  color-scheme: light;
  --ink: #173f35;
  --muted: #60766e;
  --paper: #fffaf0;
  --cream: #f5ead5;
  --green: #438c68;
  --green-dark: #28664f;
  --terracotta: #c86d4f;
  --mustard: #e2b34e;
  --teal: #3e8588;
  --line: rgba(39, 102, 79, .16);
  --shadow: 0 18px 45px rgba(48, 72, 61, .13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(234, 183, 76, .2), transparent 24rem),
    radial-gradient(circle at 94% 17%, rgba(61, 139, 124, .16), transparent 28rem),
    #f5eddd;
  font-family: "Segoe UI", Arial, sans-serif;
}

button { font: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 4px solid rgba(225, 168, 56, .6);
  outline-offset: 3px;
}

.app {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 46px;
}

.game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 24px;
  background: rgba(255, 250, 240, .9);
  box-shadow: 0 10px 28px rgba(58, 75, 62, .09);
  backdrop-filter: blur(9px);
}

.game-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.game-brand > span:last-child { display: grid; min-width: 0; gap: 2px; }
.game-brand strong { font-size: clamp(18px, 2vw, 24px); line-height: 1.12; }
.game-brand small { color: var(--muted); font-size: 13px; }

.game-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #4d9a74, #2d7156);
  box-shadow: inset 0 1px rgba(255,255,255,.32), 0 8px 18px rgba(37,103,79,.2);
}

.game-icon svg {
  width: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.age-pill {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  color: #694b22;
  background: #ffe2a2;
  font-size: 14px;
  font-weight: 850;
}

.screen {
  display: none;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 34px;
  background: rgba(255, 251, 243, .95);
  box-shadow: var(--shadow);
}

.screen.is-active { display: grid; }

.eyebrow {
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
}

.home-screen {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px 34px;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
}

.hero-copy { align-self: center; }

.hero-copy h1,
.section-title h2,
.task-head h2,
.result-copy h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.07;
  letter-spacing: -.035em;
}

.hero-copy h1 { max-width: 520px; font-size: clamp(35px, 4.5vw, 55px); }

.hero-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.hero-facts,
.result-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 25px;
}

.hero-facts span,
.result-facts span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #3e6257;
  background: #edf4e8;
  font-size: 14px;
  font-weight: 850;
}

.primary-button,
.secondary-button,
.hint-button,
.next-button,
.route-card button {
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.primary-button,
.next-button {
  padding: 14px 20px;
  color: #fff;
  background: linear-gradient(145deg, #4b9872, #2f7759);
  box-shadow: 0 9px 20px rgba(38, 104, 79, .22);
}

.primary-button:hover,
.next-button:hover,
.secondary-button:hover,
.hint-button:hover,
.route-card button:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
}

.hero-board {
  position: relative;
  align-self: center;
  min-width: 0;
  aspect-ratio: 1.16;
  border: 1px solid rgba(49, 113, 82, .14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), transparent 48%),
    linear-gradient(180deg, #dcebdd 0 58%, #e6cfa6 58% 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.78), 0 15px 35px rgba(45, 85, 65, .12);
  overflow: hidden;
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: auto 0 37% 0;
  height: 28%;
  opacity: .74;
  background:
    radial-gradient(ellipse at 12% 100%, #7fa273 0 35%, transparent 36%),
    radial-gradient(ellipse at 37% 100%, #6f976b 0 39%, transparent 40%),
    radial-gradient(ellipse at 71% 100%, #8caf7b 0 36%, transparent 37%),
    radial-gradient(ellipse at 96% 100%, #72936c 0 38%, transparent 39%);
}

.hero-board::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 8%;
  left: 6%;
  height: 5px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #866647 0 11%, #f4dfb2 11% 16%);
  box-shadow: 0 9px 0 #76573f;
}

.hero-vehicle {
  position: absolute;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(48, 55, 42, .17));
}

.hero-bus { right: 3%; bottom: 6%; width: 31%; }
.hero-plane { top: 5%; right: 5%; width: 29%; transform: rotate(-5deg); }
.hero-boat { bottom: 5%; left: 2%; width: 28%; }

.hero-crossword {
  position: absolute;
  z-index: 3;
  top: 19%;
  left: 18%;
  display: grid;
  grid-template-columns: repeat(5, 42px);
  grid-template-rows: repeat(5, 42px);
  gap: 4px;
  transform: rotate(-3deg);
}

.hero-crossword i {
  display: grid;
  grid-column: var(--x);
  grid-row: var(--y);
  place-items: center;
  border: 2px solid #4c8a6b;
  border-radius: 8px;
  color: #285c49;
  background: #fff8df;
  box-shadow: 0 5px 0 #d7bd85, 0 8px 12px rgba(61, 68, 52, .14);
  font-style: normal;
  font-size: 21px;
  font-weight: 900;
}

.how-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.how-strip article {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(48, 104, 79, .12);
  border-radius: 18px;
  background: rgba(255,255,255,.65);
}

.how-strip article > b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
}

.how-strip span { display: grid; gap: 3px; }
.how-strip strong { font-size: 15px; }
.how-strip small { color: var(--muted); line-height: 1.38; }

.routes-screen,
.play-screen {
  padding: clamp(22px, 3.4vw, 38px);
}

.section-title,
.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-title h2 { font-size: clamp(30px, 4vw, 44px); }
.section-title > p { margin: 0; color: var(--muted); font-weight: 750; }

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.route-card {
  display: grid;
  grid-template-rows: auto 126px auto 1fr auto;
  min-width: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 76%);
  border-radius: 25px;
  background: linear-gradient(160deg, #fff 0 46%, var(--soft) 100%);
  box-shadow: 0 12px 26px rgba(49, 75, 61, .1);
}

.route-number {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--soft);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}

.route-preview {
  display: flex;
  align-items: end;
  justify-content: center;
  margin-top: -5px;
}

.route-preview span {
  display: grid;
  place-items: center;
  width: 38%;
  aspect-ratio: 1;
  margin: 0 -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: 0 7px 14px rgba(50, 64, 52, .1);
}

.route-preview span:nth-child(2) { z-index: 2; width: 44%; }

.route-preview img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.route-copy { margin-top: 10px; text-align: center; }
.route-copy h3 { margin: 0; font-size: 23px; }
.route-copy p { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }

.route-progress {
  align-self: end;
  display: grid;
  gap: 7px;
  margin: 18px 0 14px;
}

.route-progress > span {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(35, 79, 62, .1);
}

.route-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.route-progress b { color: var(--muted); font-size: 13px; text-align: center; }

.route-card button {
  align-self: end;
  width: 100%;
  padding: 12px 14px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--accent), transparent 72%);
}

.text-button {
  justify-self: start;
  margin-top: 22px;
  padding: 8px 2px;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.task-head { justify-content: flex-start; }
.task-head > div { flex: 1; min-width: 0; }
.task-head h2 { font-size: clamp(24px, 3vw, 34px); }

.round-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--green-dark);
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.counter {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #edf4e8;
  font-weight: 900;
}

.task-progress {
  height: 8px;
  margin: 17px 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(45, 105, 80, .1);
}

.task-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #dfac43, #4a9570);
  transition: width .25s ease;
}

.crossword-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: start;
  gap: 18px;
}

.grid-card,
.clue-card {
  min-width: 0;
  border: 1px solid rgba(46, 102, 78, .13);
  border-radius: 26px;
  background: #fffdf7;
  box-shadow: 0 12px 28px rgba(49, 72, 60, .1);
}

.grid-card { padding: clamp(12px, 2.4vw, 22px); }

.crossword-grid-wrap {
  display: grid;
  place-items: center;
  min-height: 478px;
  padding: 10px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.25)),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(63,127,99,.045) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(63,127,99,.045) 24px 25px),
    #edf4e8;
}

.crossword-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  gap: 3px;
  width: min(100%, calc(var(--cols) * 54px));
}

.crossword-gap { aspect-ratio: 1; }

.crossword-cell {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  min-width: 0;
  padding: 0;
  border: 2px solid #c9b98f;
  border-radius: 8px;
  color: var(--ink);
  background: #fff9e9;
  box-shadow: inset 0 -3px rgba(134, 102, 55, .08), 0 3px 7px rgba(53, 70, 57, .08);
  cursor: default;
}

.crossword-cell.is-active {
  border-color: #76a88d;
  background: #f1f8eb;
}

.crossword-cell.is-filled { background: #fffdf6; }

.crossword-cell.is-locked {
  border-color: #5a9876;
  color: #215844;
  background: #dff0df;
}

.crossword-cell.is-selected {
  z-index: 2;
  border-color: #246a50;
  background: #fff2ba;
  box-shadow: 0 0 0 4px rgba(47, 121, 88, .2), inset 0 -3px rgba(132, 92, 27, .08);
  cursor: pointer;
}

.crossword-cell:disabled { opacity: 1; }

.crossword-cell small {
  position: absolute;
  top: 2px;
  left: 3px;
  color: #7b6c4e;
  font-size: clamp(7px, .8vw, 10px);
  line-height: 1;
}

.crossword-cell b {
  font-size: clamp(12px, 2vw, 22px);
  line-height: 1;
}

.clue-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.clue-tab {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #f3ead8;
  cursor: pointer;
}

.clue-tab span {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.2;
}

.clue-tab img { width: 94%; height: 94%; object-fit: contain; }

.clue-tab b {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #fff;
  background: #6f7d72;
  font-size: 12px;
}

.clue-tab.is-active {
  border-color: var(--green);
  background: #e7f2e5;
}

.clue-tab.is-solved { background: #dff0df; }
.clue-tab.is-solved b { background: var(--green); }
.clue-tab:disabled { opacity: 1; cursor: default; }

.clue-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.clue-picture {
  display: grid;
  place-items: center;
  min-height: 174px;
  border-radius: 21px;
  background:
    radial-gradient(circle at 50% 80%, rgba(219, 190, 127, .42), transparent 45%),
    linear-gradient(160deg, #f7edda, #e9f2e7);
}

.clue-picture img {
  width: 76%;
  height: 164px;
  object-fit: contain;
  filter: drop-shadow(0 8px 7px rgba(52, 62, 47, .17));
}

.clue-copy h3 { margin: 0; font-size: 24px; }
.clue-copy > p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.word-pattern {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px 0;
}

.pattern-cell {
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  border: 2px solid #cdbb8e;
  border-radius: 9px;
  color: #99876a;
  background: #fff9e9;
  font-size: 17px;
  font-weight: 900;
}

.pattern-cell.is-filled { color: var(--ink); background: #e6f1e2; border-color: #73a287; }
.pattern-cell.is-selected { border-color: #246a50; background: #fff0ae; box-shadow: 0 0 0 3px rgba(47,121,88,.16); }

.feedback {
  display: grid;
  min-height: 70px;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 105, 81, .13);
  border-radius: 15px;
  background: #f1f5e9;
}

.feedback b { font-size: 15px; }
.feedback span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.feedback.is-wrong { border-color: rgba(190,89,70,.24); background: #fff0e8; }
.feedback.is-wrong b { color: #a64f3f; }
.feedback.is-right { background: #eaf4e6; }
.feedback.is-hint { border-color: rgba(198,144,42,.28); background: #fff5cf; }
.feedback.is-success { border-color: rgba(44,127,87,.27); background: #def1e1; }

.letter-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(43px, 1fr));
  gap: 7px;
}

.letter-button {
  min-height: 46px;
  border: 1px solid #ddc894;
  border-radius: 12px;
  color: #285a47;
  background: #fff7dd;
  box-shadow: 0 4px 0 #d7b977;
  cursor: pointer;
  font-size: 20px;
  font-weight: 950;
  transition: transform .14s ease, background .14s ease;
}

.letter-button:hover { transform: translateY(-2px); background: #fff0be; }
.letter-button:active { transform: translateY(2px); box-shadow: 0 2px 0 #d7b977; }
.letter-button.is-wrong { color: #a94738; background: #ffd8cb; animation: soft-shake .32s ease; }

.clue-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.hint-button,
.secondary-button {
  padding: 12px 15px;
  color: #6a4d21;
  background: #ffe5a7;
  box-shadow: 0 6px 13px rgba(156, 111, 34, .14);
}

.next-button { width: 100%; padding: 13px 16px; }

.result-screen {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 5vw, 58px);
}

.result-illustration {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 360px;
  padding: 34px 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), transparent 60%),
    linear-gradient(180deg, #dfeee3 0 58%, #ecd8ad 58% 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}

.result-illustration::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 12%;
  left: 8%;
  height: 5px;
  border-radius: 999px;
  background: #887058;
  box-shadow: 0 9px 0 #c9ab74;
}

.result-illustration span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34%;
  aspect-ratio: 1;
  margin: 0 -4px 33px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f7eed9;
  box-shadow: 0 10px 20px rgba(53, 70, 56, .13);
}

.result-illustration img { width: 92%; height: 92%; object-fit: contain; }

.result-illustration span b {
  position: absolute;
  right: 4%;
  bottom: 2%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.result-copy h2 { font-size: clamp(34px, 4.5vw, 52px); }
.result-copy > p:not(.eyebrow) { margin: 17px 0 0; color: var(--muted); font-size: 17px; line-height: 1.58; }
.result-facts b { margin-right: 3px; color: var(--green-dark); font-size: 20px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@keyframes soft-shake {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

@media (max-width: 920px) {
  .home-screen { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy h1,
  .hero-copy > p:not(.eyebrow) { margin-right: auto; margin-left: auto; }
  .hero-facts { justify-content: center; }
  .hero-board { width: min(620px, 100%); justify-self: center; aspect-ratio: 1.38; }
  .how-strip { grid-template-columns: 1fr; }
  .crossword-workspace { grid-template-columns: 1fr; }
  .crossword-grid-wrap { min-height: 0; }
  .clue-card { grid-template-columns: 170px minmax(0, 1fr); align-items: center; }
  .clue-picture { min-height: 158px; }
  .clue-picture img { height: 145px; }
  .word-pattern,
  .feedback,
  .letter-palette,
  .clue-actions { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .route-grid { grid-template-columns: 1fr; }
  .route-card { grid-template-columns: 100px minmax(0, 1fr); grid-template-rows: auto auto auto auto; align-items: center; gap: 0 16px; }
  .route-number { grid-column: 2; grid-row: 1; justify-self: end; }
  .route-preview { grid-column: 1; grid-row: 1 / 4; margin: 0; }
  .route-preview span { display: none; width: 100%; margin: 0; }
  .route-preview span:nth-child(2) { display: grid; width: 100%; }
  .route-copy { grid-column: 2; grid-row: 2; margin: 0; text-align: left; }
  .route-progress { grid-column: 2; grid-row: 3; width: 100%; margin: 12px 0; }
  .route-card button { grid-column: 1 / -1; grid-row: 4; margin-top: 12px; }
  .result-screen { grid-template-columns: 1fr; text-align: center; }
  .result-illustration { min-height: 300px; }
  .result-facts,
  .result-actions { justify-content: center; }
}

@media (max-width: 560px) {
  .app { width: min(1120px, calc(100% - 20px)); margin-top: 14px; }
  .game-head { padding: 10px 12px; border-radius: 19px; }
  .game-icon { width: 46px; height: 46px; border-radius: 15px; }
  .game-icon svg { width: 36px; }
  .game-brand strong { font-size: 17px; }
  .game-brand small { display: none; }
  .age-pill { padding: 7px 9px; font-size: 12px; }
  .screen { border-radius: 24px; }
  .home-screen,
  .routes-screen,
  .play-screen,
  .result-screen { padding: 16px 12px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.5; }
  .hero-board { aspect-ratio: 1.1; }
  .hero-crossword { top: 21%; left: 17%; grid-template-columns: repeat(5, 31px); grid-template-rows: repeat(5, 31px); gap: 3px; }
  .hero-crossword i { border-radius: 7px; font-size: 16px; }
  .hero-plane { width: 31%; }
  .hero-bus { width: 35%; }
  .hero-boat { width: 31%; }
  .section-title { align-items: flex-start; }
  .section-title h2 { font-size: 31px; }
  .section-title > p { font-size: 13px; text-align: right; }
  .route-card { grid-template-columns: 82px minmax(0, 1fr); padding: 14px; }
  .route-copy h3 { font-size: 20px; }
  .task-head { gap: 10px; }
  .task-head h2 { font-size: 20px; }
  .task-head .eyebrow { font-size: 9px; }
  .round-button { width: 42px; height: 42px; }
  .counter { padding: 7px 9px; font-size: 13px; }
  .grid-card { padding: 10px; border-radius: 20px; }
  .crossword-grid-wrap { padding: 5px; }
  .crossword-grid { gap: 2px; }
  .crossword-cell { border-width: 1.5px; border-radius: 5px; }
  .crossword-cell b { font-size: clamp(11px, 4vw, 17px); }
  .crossword-cell small { top: 1px; left: 2px; font-size: 7px; }
  .clue-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
  .clue-tab { padding: 3px; border-radius: 10px; }
  .clue-tab b { width: 19px; height: 19px; font-size: 10px; }
  .clue-card { grid-template-columns: 104px minmax(0, 1fr); gap: 11px; padding: 13px; border-radius: 20px; }
  .clue-picture { min-height: 108px; border-radius: 15px; }
  .clue-picture img { width: 90%; height: 100px; }
  .clue-copy h3 { font-size: 20px; }
  .clue-copy > p:not(.eyebrow) { margin-top: 5px; font-size: 14px; line-height: 1.4; }
  .word-pattern { gap: 3px; }
  .pattern-cell { width: 25px; height: 31px; border-radius: 7px; font-size: 14px; }
  .feedback { min-height: 64px; }
  .letter-palette { grid-template-columns: repeat(auto-fit, minmax(39px, 1fr)); gap: 6px; }
  .letter-button { min-height: 43px; font-size: 18px; }
  .result-illustration { min-height: 235px; padding: 18px 10px; }
  .result-illustration span { margin-bottom: 24px; }
  .result-copy h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
