:root {
  --sky-50: #fdfaf1;
  --sky-100: #e1f5ff;
  --sky-200: #cce8ff;
  --sky-300: #a8d6ff;
  --mint-100: #dff9ea;
  --mint-200: #c7f0d0;
  --peach-100: #ffe9d5;
  --peach-200: #ffd5a7;
  --pink-100: #ffe1ef;
  --pink-200: #ffc5db;
  --yellow-100: #fff2b5;
  --yellow-200: #ffe786;
  --grass-100: #dff7c4;
  --grass-200: #c2ea8d;
  --text-900: #2f3d46;
  --text-700: #4b5d68;
  --shadow-soft: 0 14px 28px rgba(80, 121, 191, 0.12);
  --shadow-card: 0 12px 22px rgba(58, 87, 120, 0.14);
  --green: #45c96a;
  --green-dark: #279d4d;
  --red: #ef5a59;
  --red-dark: #d4413e;
  --blue: #4aa2ff;
  --blue-deep: #1d7be8;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, var(--sky-50), #edfafe 30%, #eefaf1);
  color: var(--text-900);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(58, 118, 255, 0.5);
  outline-offset: 2px;
}

.page-shell {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.topbar {
  display: flex;
  justify-content: flex-start;
  min-height: 52px;
}

.nav-button {
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-900);
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.nav-button.hidden {
  display: none;
}

.app-main {
  position: relative;
}

.screen {
  display: none;
  animation: fadeIn 0.25s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-wrap {
  display: grid;
  gap: 24px;
  padding: 12px 0 28px;
}

.title-block {
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.1rem, 3vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: #19458d;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.7);
}

.subtitle {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--text-700);
  line-height: 1.6;
}

.mascot-scene {
  position: relative;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.sun {
  position: absolute;
  right: 16%;
  top: 22px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7a8 0%, #ffe16e 45%, #ffd553 100%);
  box-shadow: 0 0 32px rgba(255, 210, 78, 0.8);
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(137, 166, 188, 0.15);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.cloud-one {
  left: 58px;
  top: 56px;
  width: 110px;
  height: 42px;
}

.cloud-one::before {
  width: 46px;
  height: 46px;
  left: 20px;
  top: -18px;
}

.cloud-one::after {
  width: 52px;
  height: 52px;
  right: 16px;
  top: -22px;
}

.cloud-two {
  right: 24%;
  top: 110px;
  width: 132px;
  height: 48px;
}

.cloud-two::before {
  width: 54px;
  height: 54px;
  left: 18px;
  top: -18px;
}

.cloud-two::after {
  width: 60px;
  height: 60px;
  right: 12px;
  top: -24px;
}

.mascot {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 180px;
  height: 170px;
  transform: translateX(-50%);
  border-radius: 30% 30% 46% 46%;
  background: linear-gradient(180deg, #fff 0%, #dfeeff 100%);
  box-shadow: inset 0 -18px 0 rgba(36, 122, 181, 0.08);
}

.mascot::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 72px;
  background: #fff;
  border-radius: 50% 50% 48% 48%;
  left: 24px;
  top: 12px;
  box-shadow: 76px 0 0 #fff;
}

.mascot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 110px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(80, 140, 255, 0.12);
}

.mascot-face {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 130px;
  height: 90px;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, #ffffff 0%, #e9f6ff 100%);
  box-shadow: inset 0 -8px 0 rgba(38, 125, 187, 0.08);
}

.eye {
  position: absolute;
  top: 32px;
  width: 14px;
  height: 18px;
  background: #1a2740;
  border-radius: 50%;
}

.eye.left {
  left: 36px;
}

.eye.right {
  right: 36px;
}

.smile {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 40px;
  height: 24px;
  transform: translateX(-50%);
  border-bottom: 5px solid #ff7e7e;
  border-radius: 0 0 50px 50px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.game-card {
  background: rgba(255, 255, 255, 0.72);
  border: 3px solid rgba(111, 168, 233, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  text-align: left;
  color: var(--text-900);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-game-card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
  min-height: 410px;
}

.game-card:hover,
.game-card:active {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 30px rgba(77, 120, 182, 0.18);
}

.card-illustration {
  position: relative;
  height: 180px;
  border-radius: 24px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(164, 213, 255, 0.4), rgba(255, 255, 255, 0.7));
  overflow: hidden;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  line-height: 1.2;
}

.card-body p {
  margin: 0;
  color: var(--text-700);
  line-height: 1.5;
  font-size: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 18px;
  margin-top: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #6dd6ff, #41b7ff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 0 #2a9be7;
}

.tomato-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.bag {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bag-top {
  position: absolute;
  top: 18px;
  width: 92px;
  height: 24px;
  border-radius: 12px 12px 10px 10px;
  background: #d09d66;
  border: 3px solid #b77d52;
  box-shadow: inset 0 -6px 0 rgba(133, 84, 42, 0.1);
}

.bag-body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  top: 28px;
  border-radius: 18px 18px 22px 22px;
  background: linear-gradient(180deg, #d7a067, #bf8556);
  border: 3px solid #a96842;
}

.tomato-cluster {
  position: absolute;
  inset: 34px 18px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 6px;
}

.tomato-cluster-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fruit {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffb0af, #ef3d3d 45%, #d01629 100%);
  box-shadow: inset -2px -3px 0 rgba(120, 15, 30, 0.12), 0 2px 0 rgba(170, 28, 53, 0.2);
}

.fruit::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 6px;
  left: 2px;
  top: -7px;
  border-radius: 100% 100% 0 100%;
  background: linear-gradient(180deg, #71d770, #3fb85d);
  transform: rotate(-16deg);
}

.fruit::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 6px;
  left: 8px;
  top: -10px;
  background: #4aa958;
}

.tomato.small {
  width: 15px;
  height: 15px;
}

.tomatoes-side {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 12px 4px;
}

.object-illustration {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stone-set,
.fish-set {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.stone {
  width: 22px;
  height: 18px;
  border-radius: 42% 50% 48% 54%;
  background: linear-gradient(180deg, #d1d6cf, #8f8f8f);
  box-shadow: inset -3px -4px 0 rgba(82, 82, 82, 0.12);
}

.fish {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 0 rgba(58, 118, 255, 0.12));
}

.penguin-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.penguin-card-bear {
  position: relative;
  width: 150px;
  height: 132px;
}

.penguin-mini {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 96px;
  height: 104px;
  transform: translateX(-50%);
  border-radius: 45% 45% 42% 42%;
  background: linear-gradient(180deg, #1f1d2e, #2f2d4a 40%, #0f1530);
  box-shadow: inset 0 0 0 12px #ffffff;
}

.penguin-mini::before,
.penguin-mini::after {
  content: "";
  position: absolute;
  top: 26px;
  width: 16px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
}

.penguin-mini::before {
  left: 20px;
}

.penguin-mini::after {
  right: 20px;
}

.penguin-bill {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 24px;
  height: 12px;
  transform: translateX(-50%);
  background: #ffce5c;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 0 rgba(255, 191, 69, 0.5);
}

.number-badges {
  position: absolute;
  inset: 0;
}

.number-badges span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #ffd963;
  font-size: 0.8rem;
  font-weight: 800;
  color: #3a6aeb;
}

.number-badges span:nth-child(1) { left: 12px; top: 16px; }
.number-badges span:nth-child(2) { left: 42px; top: 0; }
.number-badges span:nth-child(3) { right: 14px; top: 22px; }
.number-badges span:nth-child(4) { right: 10px; bottom: 6px; }

.game-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.tomato-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.objects-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.game-card.board-card {
  position: relative;
  padding: 18px 18px 16px;
  min-height: 280px;
}

.game-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 136px;
  padding: 16px 12px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(224, 239, 255, 0.7));
}

.tomato-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tomato-bag-wrap {
  position: relative;
  width: 70px;
  height: 96px;
  flex: 0 0 auto;
}

.tomato-bag-crop {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tomato-bag-image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 180%;
  max-width: none;
  height: auto;
}

.tomato-bag {
  width: 100%;
  height: 100%;
}

.tomato-bag-inner {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 36px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tomato-grid-cells {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 5px;
  justify-items: center;
  align-items: center;
  width: 100%;
}

.tomato-outside {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding-top: 10px;
}

.tomato-outside-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-700);
  margin-bottom: 2px;
}

.answer-slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  margin-top: 12px;
}

.answer-trigger {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe98a, #ffd45c);
  color: #5e4200;
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: 0 6px 0 rgba(240, 173, 40, 0.9);
}

.answer-field-wrap {
  display: flex;
  align-items: center;
}

.answer-input {
  width: 90px;
  height: 44px;
  border: 3px solid rgba(68, 129, 217, 0.35);
  border-radius: 14px;
  padding: 0 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-900);
  background: rgba(255, 255, 255, 0.9);
}

.answer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
}

.answer-icon--good {
  background: rgba(69, 201, 106, 0.15);
  color: var(--green-dark);
}

.answer-icon--bad {
  background: rgba(239, 90, 89, 0.15);
  color: var(--red-dark);
}

.answer-feedback {
  margin: 0;
  color: var(--text-700);
  font-size: 0.9rem;
  font-weight: 700;
}

.answer-slot.is-correct .answer-trigger,
.answer-slot.is-correct .answer-field-wrap {
  display: none;
}

.answer-slot.is-correct .answer-feedback {
  color: var(--green-dark);
}

.answer-slot.is-incorrect .answer-feedback {
  color: var(--red-dark);
}

.objects-label {
  margin: 0 0 12px;
  text-align: center;
  color: #355eae;
  font-size: 1.5rem;
}

.count-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.count-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 30px;
}

.stone-icon {
  width: 34px;
  height: 28px;
}

.fish-icon {
  width: 42px;
  height: 28px;
}

.game-header {
  text-align: center;
  margin-top: 8px;
}

.game-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: #234c8d;
  line-height: 1.3;
}

.game-header p {
  margin: 10px auto 0;
  max-width: 760px;
  color: var(--text-700);
  font-size: 1.05rem;
  line-height: 1.6;
}

.game-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.primary-button,
.secondary-button {
  min-height: 58px;
  padding: 12px 24px;
  border: none;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.primary-button {
  background: linear-gradient(180deg, #69d5ff, #41b7ff);
  color: #fff;
  box-shadow: 0 8px 0 #2999ea;
}

.secondary-button {
  background: linear-gradient(180deg, #ffefb7, #ffd975);
  color: #5d4b12;
  box-shadow: 0 8px 0 #f1b63d;
}

.primary-button:active,
.secondary-button:active,
.nav-button:active,
.game-card:active {
  transform: translateY(3px) scale(0.99);
}

.win-banner {
  margin: 20px auto 0;
  max-width: 700px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #e7ffef, #d1ffde);
  border: 2px solid rgba(69, 201, 106, 0.25);
  color: var(--green-dark);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.confetti-host {
  position: relative;
  height: 0;
  overflow: visible;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 18px;
  border-radius: 4px;
  animation: confettiDrop 1.8s ease-in forwards;
}

@keyframes confettiDrop {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--dx, 0px), 180px, 0) rotate(360deg);
    opacity: 0;
  }
}

.penguin-scene {
  position: relative;
  width: min(90vw, 620px);
  min-height: 450px;
  margin: 26px auto 0;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(182, 224, 255, 0.28));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.penguin-scene::before,
.penguin-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
}

.penguin-scene::before {
  background-image: radial-gradient(circle at 12% 20%, rgba(255,255,255,0.7) 0 8px, transparent 9px),
    radial-gradient(circle at 86% 26%, rgba(255,255,255,0.7) 0 8px, transparent 9px),
    radial-gradient(circle at 68% 18%, rgba(255,255,255,0.65) 0 7px, transparent 8px);
}

.penguin-scene::after {
  background-image: radial-gradient(circle at 30% 80%, rgba(255,255,255,0.76) 0 9px, transparent 9px),
    radial-gradient(circle at 74% 72%, rgba(255,255,255,0.72) 0 8px, transparent 9px);
}

.penguin-svg {
  position: absolute;
  inset: 30px 16px 18px;
  width: calc(100% - 32px);
  height: calc(100% - 48px);
}

.penguin-point {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border: 2px solid rgba(51, 112, 233, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #234d8f;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 8px 14px rgba(92, 124, 191, 0.12);
}

.penguin-point.is-hidden {
  background: linear-gradient(180deg, #fff9d9, #ffe9a5);
  border-color: rgba(233, 180, 62, 0.5);
}

.penguin-point.is-correct {
  background: rgba(212, 251, 221, 0.95);
  border-color: rgba(69, 201, 106, 0.5);
  color: var(--green-dark);
}

.penguin-point.is-incorrect {
  background: rgba(255, 232, 232, 0.96);
  border-color: rgba(239, 90, 89, 0.42);
  color: var(--red-dark);
}

.penguin-input-pop {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.penguin-input-pop input {
  width: 62px;
  height: 46px;
  border: 3px solid rgba(65, 110, 219, 0.25);
  border-radius: 12px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-900);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .games-grid,
  .tomato-grid,
  .objects-grid {
    grid-template-columns: 1fr;
  }

  .home-game-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 14px, 100%);
  }

  .topbar {
    padding-top: 4px;
  }

  .title-block h1 {
    letter-spacing: 0.04em;
  }

  .game-card.board-card {
    padding: 14px 12px 14px;
  }

  .answer-input {
    width: 72px;
  }

  .penguin-scene {
    min-height: 380px;
  }

  .penguin-point {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
  }
}

[hidden] {
  display: none !important;
}

.reading-mode {
  background: #fff;
}

.reading-mode .page-shell {
  width: 100%;
  padding: 0 0 74px;
}

.reading-mode .topbar {
  position: relative;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 22px;
  background: #fff;
  border-top: 3px solid #3d3d3d;
  border-bottom: 1px solid #ededed;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.reading-mode .nav-button {
  padding: 8px 0;
  background: transparent;
  color: #7890a3;
  border-radius: 0;
  box-shadow: none;
  font-weight: 400;
}

.reader-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #8498a9;
  font-size: 0.95rem;
  white-space: nowrap;
}

.reading-mode .screen {
  padding-bottom: 18px;
}

.reading-mode .game-header {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  margin: 28px auto 0;
  padding: 48px 0 0;
  text-align: left;
}

.lesson-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  width: 60px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #e2efff;
  color: #1e53aa;
  font-size: 1rem;
  font-weight: 700;
}

.reading-mode .game-header h2 {
  color: #394f60;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.reading-mode .game-header p {
  max-width: 800px;
  margin: 8px 0 0;
  color: #617384;
  font-size: 0.95rem;
  line-height: 1.5;
}

.reading-mode .game-grid {
  margin: 52px auto 0;
  gap: 38px 48px;
}

.reading-mode .tomato-grid {
  width: min(1000px, calc(100% - 36px));
  grid-template-columns: repeat(3, minmax(170px, 200px));
  justify-content: space-between;
}

.reading-mode .tomato-grid .tomato-card:nth-child(4) {
  grid-column: 2;
}

.reading-mode .objects-grid {
  width: min(760px, calc(100% - 36px));
  grid-template-columns: repeat(2, minmax(180px, 200px));
  justify-content: space-around;
  gap: 42px;
}

.reading-mode .game-card.board-card {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.reading-mode .game-card.board-card:hover,
.reading-mode .game-card.board-card:active {
  transform: none;
  box-shadow: none;
}

.reading-mode .game-card-visual {
  height: 136px;
  min-height: 136px;
  padding: 8px;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  background: #fff;
}

.reading-mode .tomato-scene {
  gap: 4px;
}

.reading-mode .tomato-bag-wrap {
  width: 64px;
  height: 88px;
}

.reading-mode .tomato-card:last-child .tomato-bag-wrap {
  width: 64px;
  height: 88px;
}

.reading-mode .tomato-grid-cells {
  gap: 3px 4px;
}

.reading-mode .tomato-grid-cells .fruit {
  width: 12px;
  height: 12px;
}

.reading-mode .tomato-grid-cells .fruit::before {
  width: 8px;
  height: 4px;
  left: 1px;
  top: -4px;
}

.reading-mode .tomato-grid-cells .fruit::after {
  left: 5px;
  top: -6px;
  height: 4px;
}

.reading-mode .tomato-outside {
  min-width: 45px;
  max-width: 58px;
  padding-top: 0;
}

.reading-mode .tomato-outside-label {
  display: none;
}

.reading-mode .answer-slot {
  min-height: 44px;
  margin: 3px 0 0 5px;
  gap: 8px;
}

.reading-mode .answer-trigger {
  width: 50px;
  height: 40px;
  border-radius: 0;
  background: #fff;
  color: #6a7d8e;
  font-size: 1.1rem;
  box-shadow: none;
  border-bottom: 1px solid #d4dce1;
}

.reading-mode .answer-input {
  width: 64px;
  height: 38px;
  border: 0;
  border-bottom: 2px solid #3b64cf;
  border-radius: 0;
  font-size: 1.2rem;
  text-align: center;
  padding: 0 2px;
  background: #fff;
}

.reading-mode .answer-icon {
  width: 24px;
  height: 24px;
  font-size: 1rem;
}

.reading-mode .answer-feedback {
  position: absolute;
  left: 58px;
  top: 40px;
  width: max-content;
  max-width: 210px;
  font-size: 0.76rem;
}

.reading-mode .objects-label {
  display: none;
}

.reading-mode .object-picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reading-mode .objects-card .game-card-visual {
  height: 136px;
}

.reading-mode .penguin-scene {
  position: relative;
  width: min(920px, calc(100% - 64px));
  min-height: 0;
  aspect-ratio: 1032 / 584;
  margin: 22px auto 0;
  overflow: visible;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.reading-mode .penguin-scene::before,
.reading-mode .penguin-scene::after {
  display: none;
}

.penguin-picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.penguin-number {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  font-family: inherit;
  color: #151515;
  font-size: clamp(13px, 1.65vw, 21px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

button.penguin-number {
  min-width: 26px;
  min-height: 26px;
  font: inherit;
  color: #171717;
  cursor: pointer;
}

.penguin-number.is-hidden-number {
  width: 4.5%;
  height: 7.5%;
  min-width: 0;
  min-height: 0;
  color: transparent;
}

button.penguin-number:focus-visible {
  outline: 2px solid #2364cf;
  outline-offset: 1px;
}

button.penguin-number.is-number-correct {
  background: #fff;
  color: #269b47;
  font-size: clamp(13px, 1.7vw, 20px);
}

button.penguin-number.is-number-incorrect {
  background: #fff;
  color: #d63e3e;
}

.penguin-input-pop {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.penguin-input-pop input {
  width: clamp(34px, 5.2vw, 62px);
  height: clamp(32px, 4.2vw, 46px);
  padding: 0;
  border: 2px solid #3d6dce;
  border-radius: 3px;
  background: #fff;
  font-size: clamp(16px, 2vw, 22px);
}

.penguin-feedback {
  min-height: 24px;
  margin: 8px auto 0;
  color: #d4413e;
  font-weight: 600;
  text-align: center;
}

.reading-mode .game-actions {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 56px;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 7px max(16px, calc((100vw - 1280px) / 2));
  background: #f2f5fa;
}

.reading-mode .primary-button,
.reading-mode .secondary-button {
  min-height: 38px;
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0;
  box-shadow: none;
}

.reading-mode .primary-button {
  background: #1744c4;
  color: #fff;
}

.reading-mode .secondary-button {
  background: transparent;
  color: #4267bb;
  border: 1px solid #b8c7e9;
}

.reading-mode .win-banner {
  position: relative;
  z-index: 21;
  margin-bottom: 64px;
}

@media (max-width: 700px) {
  .reading-mode .topbar {
    padding: 0 14px;
  }

  .reader-title {
    font-size: 0.8rem;
  }

  .reading-mode .game-header {
    width: calc(100% - 32px);
    margin-top: 20px;
    padding-top: 46px;
  }

  .reading-mode .game-grid {
    margin-top: 30px;
    gap: 26px 18px;
  }

  .reading-mode .tomato-grid {
    width: calc(100% - 32px);
    grid-template-columns: repeat(2, minmax(140px, 200px));
    justify-content: center;
  }

  .reading-mode .tomato-grid .tomato-card:nth-child(4) {
    grid-column: auto;
  }

  .reading-mode .objects-grid {
    width: calc(100% - 32px);
    grid-template-columns: repeat(2, minmax(130px, 200px));
    gap: 18px;
  }

  .reading-mode .game-card-visual,
  .reading-mode .objects-card .game-card-visual {
    height: 116px;
    min-height: 116px;
  }

  .reading-mode .tomato-bag-wrap {
    width: 58px;
    height: 76px;
  }

  .reading-mode .tomato-card:last-child .tomato-bag-wrap {
    width: 58px;
    height: 76px;
  }

  .reading-mode .tomato-outside {
    min-width: 34px;
    max-width: 44px;
  }

  .reading-mode .tomato-grid-cells .fruit {
    width: 10px;
    height: 10px;
  }

  .reading-mode .tomato-grid-cells {
    gap: 2px;
  }

  .reading-mode .penguin-scene {
    width: calc(100% - 24px);
    margin-top: 26px;
  }

  .reading-mode .penguin-number {
    font-size: clamp(11px, 3vw, 16px);
  }

  button.penguin-number {
    min-width: 20px;
    min-height: 20px;
  }

  .penguin-number.is-hidden-number {
    min-width: 0;
    min-height: 0;
  }

  .reading-mode .game-actions {
    padding: 7px 12px;
  }

  .reading-mode .primary-button,
  .reading-mode .secondary-button {
    padding: 8px 16px;
  }
}

@media (max-width: 420px) {
  .reading-mode .tomato-grid {
    grid-template-columns: minmax(0, 220px);
  }
}

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