:root {
  --lemon: #ffd93d;
  --lemon-deep: #f5b700;
  --green: #5f9f1b;
  --green-dark: #356b12;
  --pink: #ff6f9f;
  --pink-dark: #d93f78;
  --sky: #38bdf8;
  --cream: #fff9df;
  --ink: #3d321f;
  --muted: #746b5e;
  --white: #fff;
  --shadow: 0 14px 35px rgba(83, 61, 11, .14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, .75) 0 5%, transparent 5.5%),
    linear-gradient(155deg, #fff8c5 0%, #fffdf3 42%, #e9faff 100%);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.65;
}

button,
select,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 4px solid #1677d2;
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  background: #111;
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.compact-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 18px;
}

.site-header h1,
.compact-header h1 {
  margin: 0;
  line-height: 1.2;
}

.site-header h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
}

.brand-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--lemon);
  box-shadow: var(--shadow);
  font-size: 2.25rem;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tagline {
  margin: 4px 0 0;
  color: var(--pink-dark);
  font-weight: 800;
}

.landing-page main,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 46%);
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .7), transparent 24%),
    linear-gradient(135deg, #ffe775, #ffbd59 55%, #ff8db4);
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  right: -65px;
  bottom: -95px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  z-index: 1;
  padding: clamp(28px, 6vw, 72px);
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.25;
}

.hero-copy p {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  font-weight: 700;
}

.hero-card > img {
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
  border-radius: 70px 0 0 70px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 13px;
  border: 2px solid rgba(53, 107, 18, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: var(--green-dark);
  font-size: .84rem;
  font-weight: 900;
}

.game-choice-section {
  padding: 72px 0 28px;
}

.section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.section-heading span {
  color: var(--pink-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.top-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.top-game-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: clamp(26px, 5vw, 48px);
  border: 4px solid #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.top-game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(83, 61, 11, .2);
}

.kitchen-card {
  background: linear-gradient(145deg, #fff3a4, #ffc94c);
}

.catch-card {
  background: linear-gradient(145deg, #d9f5ff, #60c8f2);
}

.game-card-icon {
  font-size: 4.8rem;
  line-height: 1;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .1));
}

.game-card-label {
  margin-top: 22px;
  color: var(--green-dark);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.top-game-card strong {
  margin: 4px 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  line-height: 1.25;
}

.top-game-card > span:not(.game-card-icon, .game-card-label, .play-button) {
  font-weight: 700;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin-top: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  font-weight: 900;
}

.promise-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 30px;
  margin: 52px 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.promise-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 34%;
}

.promise-card div {
  padding: 24px 34px 24px 0;
}

.promise-card h2,
.promise-card p {
  margin: 0;
}

.promise-card p {
  margin-top: 8px;
}

.site-footer {
  padding: 30px 0 50px;
  border-top: 2px solid rgba(53, 107, 18, .12);
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green-dark);
  font-weight: 800;
}

.compact-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  min-height: 76px;
  padding: 10px max(16px, calc((100% - 1040px) / 2));
  border-bottom: 3px solid rgba(255, 255, 255, .8);
  background: rgba(255, 249, 223, .94);
  box-shadow: 0 6px 20px rgba(83, 61, 11, .08);
  backdrop-filter: blur(12px);
}

.compact-header > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.compact-header h1 {
  overflow: hidden;
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-link,
.sound-button {
  display: grid;
  min-width: 48px;
  min-height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(65, 45, 0, .12);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.sound-button {
  min-width: 66px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .78rem;
}

.app-shell {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0 70px;
}

.kitchen-intro,
.catch-intro {
  display: grid;
  grid-template-columns: minmax(220px, 36%) 1fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff3a5, #fff);
  box-shadow: var(--shadow);
}

.kitchen-intro img,
.catch-intro img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.kitchen-intro > div,
.catch-intro > div {
  padding: 26px 34px 26px 0;
}

.kitchen-intro h2,
.catch-intro h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.3;
}

.kitchen-intro p,
.catch-intro p {
  margin: 0;
  font-weight: 700;
}

.progress-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin: 26px 0;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 7px 22px rgba(83, 61, 11, .09);
}

.progress-panel > div:first-child {
  display: flex;
  flex-direction: column;
}

.progress-panel span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.progress-panel strong {
  font-size: 1.35rem;
}

.progress-track {
  overflow: hidden;
  height: 13px;
  border-radius: 999px;
  background: #eee9d8;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lemon-deep), var(--pink));
  transition: width .4s ease;
}

.danger-text-button {
  min-height: 44px;
  padding: 8px 6px;
  border: 0;
  background: transparent;
  color: #a13a32;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guardian-controls {
  max-width: 680px;
  margin: 30px auto 0;
}

.guardian-controls details {
  overflow: hidden;
  border: 2px solid rgba(83, 61, 11, .12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .72);
}

.guardian-controls summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 18px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.guardian-controls__body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(83, 61, 11, .1);
  text-align: center;
}

.guardian-controls__body p {
  margin: 16px 0 4px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.mini-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mini-game-card {
  position: relative;
  display: flex;
  min-height: 235px;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px;
  border: 3px solid #fff;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fff, var(--card-color, #fff4b3));
  box-shadow: 0 8px 24px rgba(83, 61, 11, .1);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease;
}

.mini-game-card:hover {
  transform: translateY(-4px);
}

.mini-game-card .icon {
  font-size: 3.15rem;
}

.mini-game-card strong {
  margin: 8px 0 5px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.mini-game-card p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.card-progress {
  display: flex;
  gap: 4px;
  margin-top: auto;
  padding-top: 13px;
}

.card-progress i {
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(61, 50, 31, .12);
}

.card-progress i.done {
  background: var(--green);
}

.card-progress i.next {
  outline: 2px solid var(--lemon-deep);
  background: var(--lemon);
}

.play-view {
  min-height: 70vh;
}

.play-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.secondary-button,
.primary-button {
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.secondary-button {
  background: #fff;
  box-shadow: 0 5px 16px rgba(83, 61, 11, .1);
  color: var(--green-dark);
}

.primary-button {
  background: linear-gradient(135deg, var(--lemon), var(--lemon-deep));
  box-shadow: 0 7px 18px rgba(195, 134, 0, .28);
  color: #3a2a00;
}

.danger-button {
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #a13a32;
  box-shadow: 0 7px 18px rgba(120, 35, 29, .22);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.big-button {
  display: block;
  width: min(360px, 100%);
  min-height: 60px;
  margin: 28px auto 0;
  font-size: 1.15rem;
}

.level-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  font-weight: 900;
}

.level-dots {
  display: flex;
  gap: 5px;
}

.level-dots i,
.level-dots button {
  width: 14px;
  height: 14px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ddd5be;
  color: transparent;
  cursor: pointer;
}

.level-dots i.done,
.level-dots button.done {
  background: var(--green);
}

.level-dots i.current,
.level-dots button.current {
  outline: 3px solid rgba(245, 183, 0, .25);
  background: var(--lemon-deep);
}

.level-dots button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.play-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 22px rgba(83, 61, 11, .08);
}

.play-heading h2,
.play-heading p {
  margin: 0;
}

.play-heading h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.play-icon {
  display: grid;
  min-width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 24px;
  background: var(--cream);
  font-size: 3rem;
}

.challenge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding: 12px 18px;
  border: 2px dashed rgba(53, 107, 18, .2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .65);
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 900;
}

.switch-label input {
  width: 24px;
  height: 24px;
  accent-color: var(--pink-dark);
}

#challengeHelp {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.character-message {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffe9f1, #fff);
  box-shadow: 0 6px 18px rgba(132, 39, 78, .08);
}

.character-message img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  object-position: center 30%;
}

.character-message p {
  margin: 0;
  padding: 14px 18px 14px 0;
  font-weight: 900;
}

.game-stage {
  min-height: 410px;
  padding: clamp(18px, 4vw, 34px);
  border: 4px solid #fff;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}

.order-card {
  position: relative;
  margin-bottom: 24px;
  padding: 20px;
  border: 3px solid #e5c13e;
  border-radius: 18px;
  background: #fff9d8;
  text-align: center;
}

.order-card::before {
  position: absolute;
  top: -14px;
  left: 20px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  content: "ちゅうもん";
  font-size: .76rem;
  font-weight: 900;
}

.order-card strong {
  display: block;
  font-size: clamp(1.25rem, 4vw, 1.9rem);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.choice-button,
.food-button,
.coin-button {
  min-height: 82px;
  padding: 12px;
  border: 3px solid #efe5c8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 11px rgba(75, 53, 7, .08);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.choice-button .emoji,
.food-button .emoji {
  display: block;
  margin-bottom: 3px;
  font-size: 2rem;
}

.choice-button.selected,
.food-button.selected {
  border-color: var(--green);
  background: #edffd9;
}

.choice-button.wrong,
.food-button.wrong {
  animation: shake .3s ease;
  border-color: var(--pink-dark);
  background: #fff0f5;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.count-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.count-control button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--lemon);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 900;
}

.count-control output {
  min-width: 44px;
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
}

.build-area {
  display: grid;
  min-height: 270px;
  place-items: end center;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(#e7f8ff, #fff4d5);
}

.stack {
  display: flex;
  width: min(310px, 90%);
  flex-direction: column-reverse;
  align-items: center;
  gap: 3px;
}

.stack-layer {
  display: grid;
  width: var(--layer-width, 85%);
  min-height: 34px;
  place-items: center;
  border: 3px solid rgba(61, 50, 31, .18);
  border-radius: 999px;
  background: var(--layer-color, #eee);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .08);
  font-size: .82rem;
  font-weight: 900;
}

.stack-layer.top {
  min-height: 58px;
  border-radius: 80px 80px 20px 20px;
}

.stack-layer.bottom {
  min-height: 43px;
}

.hidden-recipe {
  filter: blur(8px);
  user-select: none;
}

.recipe-timer {
  margin-top: 8px;
  color: var(--pink-dark);
  font-weight: 900;
}

.tray-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 20px;
  padding: 12px;
  border: 8px solid #d99c56;
  border-radius: 25px;
  background: #f2bd71;
}

.tray-slot {
  display: grid;
  min-height: 100px;
  place-items: center;
  padding: 8px;
  border: 3px dashed rgba(77, 47, 9, .25);
  border-radius: 16px;
  background: #fff8e4;
  cursor: pointer;
  text-align: center;
}

.tray-slot.filled {
  border-style: solid;
  border-color: var(--green);
  background: #efffde;
  font-size: 2rem;
}

.people-row,
.plate-row,
.category-row,
.coin-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.person-plate {
  min-width: 90px;
  padding: 14px;
  border: 3px solid #ddd;
  border-radius: 18px;
  background: #fff;
  font-size: 2rem;
  text-align: center;
}

.category-button {
  min-width: 120px;
  min-height: 64px;
  padding: 10px 16px;
  border: 3px solid #dcefc7;
  border-radius: 16px;
  background: #f7fff0;
  cursor: pointer;
  font-weight: 900;
}

.classification-current {
  margin: 20px auto;
  font-size: 4.4rem;
  text-align: center;
}

.coin-button {
  min-width: 72px;
  min-height: 72px;
  border-radius: 50%;
  background: #fff7c8;
  font-size: 1.05rem;
}

.money-total {
  margin: 18px 0;
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
}

.timer-bar {
  overflow: hidden;
  height: 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #ece5d4;
}

.timer-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--lemon-deep));
  transition: width 1s linear;
}

.clear-dialog {
  width: min(470px, calc(100% - 30px));
  padding: 34px;
  border: 4px solid #fff;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #fff, #fff4b4);
  box-shadow: 0 30px 80px rgba(44, 27, 0, .28);
  text-align: center;
}

.clear-dialog::backdrop {
  background: rgba(41, 31, 11, .55);
  backdrop-filter: blur(5px);
}

.clear-dialog h2 {
  margin: 4px 0;
  font-size: 2rem;
}

.reset-dialog {
  background: linear-gradient(145deg, #fff, #fff1ea);
}

.reset-dialog p {
  color: #6d342f;
  font-weight: 800;
}

.clear-burst {
  font-size: 4.5rem;
  line-height: 1;
  animation: pop .6s ease;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.catch-intro {
  background: linear-gradient(135deg, #dff7ff, #fff);
}

.catch-intro img {
  object-position: center;
}

.character-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 680px;
  margin: 28px auto 20px;
}

.character-choice-button {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  min-height: 130px;
  padding: 10px 20px 10px 10px;
  border: 4px solid #fff;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 7px 20px rgba(40, 88, 114, .12);
  cursor: pointer;
  text-align: left;
}

.character-choice-button.selected {
  border-color: var(--lemon-deep);
  background: #fff9d9;
}

.character-choice-button img {
  width: 100px;
  height: 105px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 15px;
}

.character-choice-button strong {
  font-size: 1.1rem;
}

.difficulty-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.difficulty-choice label {
  font-weight: 900;
}

.difficulty-choice select {
  min-height: 48px;
  padding: 7px 38px 7px 15px;
  border: 3px solid #c9eefd;
  border-radius: 14px;
  background: #fff;
  font-weight: 900;
}

.keyboard-note {
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

.catch-game {
  text-align: center;
}

.catch-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.catch-hud span {
  padding: 10px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(40, 88, 114, .1);
  font-size: .88rem;
  font-weight: 800;
}

.catch-hud strong {
  display: block;
  font-size: 1.3rem;
}

.canvas-wrap {
  overflow: hidden;
  width: min(100%, 560px);
  margin: 0 auto;
  border: 5px solid #fff;
  border-radius: 28px;
  background: #a6e4ff;
  box-shadow: var(--shadow);
}

#catchCanvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}

.touch-controls {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  gap: 10px;
  width: min(100%, 560px);
  margin: 12px auto;
}

.touch-controls button {
  min-height: 66px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #dff7ff);
  box-shadow: 0 6px 14px rgba(40, 88, 114, .12);
  color: #12668c;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 900;
  touch-action: manipulation;
}

.result-score {
  display: block;
  margin: 12px 0;
  color: var(--pink-dark);
  font-size: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

@keyframes pop {
  0% { transform: scale(.2) rotate(-20deg); }
  70% { transform: scale(1.2) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}

@media (max-width: 780px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-card > img {
    order: -1;
    min-height: 280px;
    max-height: 380px;
    border-radius: 0 0 50px 50px;
  }

  .hero-copy {
    padding: 30px 24px 38px;
  }

  .top-game-grid,
  .mini-game-grid {
    grid-template-columns: 1fr;
  }

  .top-game-card {
    min-height: 340px;
  }

  .promise-card {
    grid-template-columns: 120px 1fr;
  }

  .promise-card img {
    height: 100%;
  }

  .kitchen-intro,
  .catch-intro {
    grid-template-columns: 1fr;
  }

  .kitchen-intro img,
  .catch-intro img {
    height: 210px;
  }

  .kitchen-intro > div,
  .catch-intro > div {
    padding: 0 23px 26px;
  }

  .progress-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mini-game-card {
    min-height: 175px;
  }

  .challenge-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .character-choice-button {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 10px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    font-size: 1.7rem;
  }

  .hero-card {
    border-radius: 26px;
  }

  .hero-card > img {
    min-height: 230px;
  }

  .game-choice-section {
    padding-top: 46px;
  }

  .promise-card {
    grid-template-columns: 1fr;
  }

  .promise-card img {
    height: 180px;
  }

  .promise-card div {
    padding: 0 22px 25px;
  }

  .compact-header {
    gap: 9px;
  }

  .compact-header .eyebrow {
    display: none;
  }

  .sound-button {
    min-width: 57px;
  }

  .play-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .level-status {
    width: 100%;
    justify-content: space-between;
  }

  .play-heading {
    padding: 17px;
  }

  .play-icon {
    min-width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 2.3rem;
  }

  .character-message {
    grid-template-columns: 72px 1fr;
  }

  .character-message img {
    width: 72px;
    height: 82px;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-button,
  .food-button {
    min-height: 75px;
    padding: 9px;
    font-size: .88rem;
  }

  .character-choice {
    gap: 10px;
  }

  .character-choice-button img {
    width: 100%;
    height: 115px;
  }

  .touch-controls {
    grid-template-columns: 1fr 58px 1fr;
  }
}

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