:root {
  --bg-top: #fff5dd;
  --bg-bottom: #ffd89c;
  --card: rgba(255, 252, 244, 0.92);
  --text: #41311d;
  --accent: #ff8a3d;
  --accent-strong: #e4572e;
  --good: #3bb273;
  --bad: #e63946;
  --hero: #58a6ff;
  --monster: #ff7a59;
  --shadow: 0 18px 45px rgba(117, 72, 21, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 161, 90, 0.35), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.stage-forest {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 35%),
    radial-gradient(circle at bottom right, rgba(121, 209, 124, 0.25), transparent 30%),
    linear-gradient(180deg, #f2ffe4, #ffd89c);
}

body.stage-sea {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 35%),
    radial-gradient(circle at bottom right, rgba(93, 149, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #e2f7ff, #b9e4ff);
}

body.stage-sky {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 199, 107, 0.24), transparent 30%),
    linear-gradient(180deg, #f2f6ff, #ffe0a8);
}

.app-frame {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app-shell {
  width: min(100%, 480px);
  margin: 0 auto;
  padding:
    max(10px, env(safe-area-inset-top))
    10px
    max(14px, env(safe-area-inset-bottom))
    10px;
  transform-origin: top center;
}

.hero-card,
.battle-card,
.quiz-card {
  background: var(--card);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 14px 14px 12px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #966034;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.35rem);
  line-height: 1;
}

.subtitle {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.progress-strip {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.level-badge {
  min-width: 62px;
  padding: 10px 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffb45b, #ff8a3d);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 8px 16px rgba(228, 87, 46, 0.2);
}

.xp-panel {
  padding: 8px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.xp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.xp-label,
.xp-value,
.bonus-text {
  margin: 0;
  font-weight: 800;
}

.xp-label,
.xp-value {
  font-size: 0.82rem;
}

.xp-track {
  margin-top: 6px;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(65, 49, 29, 0.12);
}

.xp-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #76d1ff, #5d95ff);
  transition: width 220ms ease;
}

.bonus-text {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #8e6035;
}

.sticker-strip {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.sticker-label,
.parent-stat,
.parent-note {
  margin: 0;
  font-weight: 800;
}

.sticker-label {
  font-size: 0.74rem;
}

.sticker-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sticker {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff6bf, #ffd36f);
  box-shadow: 0 6px 12px rgba(255, 185, 56, 0.18);
  font-size: 1rem;
}

.economy-strip {
  margin-top: 6px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.coin-badge {
  padding: 8px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe38e, #ffb938);
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(255, 185, 56, 0.24);
}

.boss-panel {
  padding: 7px 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.boss-label,
.reward-text,
.shop-note {
  margin: 0;
  font-weight: 800;
}

.boss-label {
  font-size: 0.76rem;
}

.boss-track {
  margin-top: 6px;
  height: 10px;
  border-radius: 999px;
  background: rgba(65, 49, 29, 0.12);
  overflow: hidden;
}

.boss-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffcf66, #ff6f59);
  transition: width 220ms ease;
}

.audio-note {
  margin: 6px 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: #7b5c33;
}

.battle-card {
  margin-top: 8px;
  padding: 10px 10px 12px;
}

.battle-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.event-panel {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 249, 229, 0.92), rgba(255, 232, 186, 0.9));
}

.event-badge,
.event-text {
  margin: 0;
  font-weight: 800;
}

.event-badge {
  font-size: 0.7rem;
  color: #a45b17;
}

.event-text {
  margin-top: 4px;
  font-size: 0.76rem;
  color: #7b4d19;
}

.stage-chip,
.monster-trait,
.mission-title,
.mission-time,
.mission-text {
  margin: 0;
  font-weight: 800;
}

.stage-chip,
.monster-trait {
  font-size: 0.72rem;
}

.stage-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.monster-trait {
  color: #8e6035;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fighter {
  position: relative;
  overflow: hidden;
  padding: 10px 8px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 200ms ease, filter 200ms ease;
}

.fighter::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% -15%;
  height: 60%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.fighter-hero {
  border: 2px solid rgba(88, 166, 255, 0.35);
}

.fighter-monster {
  border: 2px solid rgba(255, 122, 89, 0.35);
}

.fighter h2 {
  position: relative;
  margin: 2px 0 5px;
  font-size: 0.9rem;
  z-index: 1;
}

.fighter-emoji {
  position: relative;
  font-size: 2.4rem;
  z-index: 1;
  transition: transform 200ms ease;
}

.hp-track {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(65, 49, 29, 0.12);
  overflow: hidden;
}

.hp-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  transition: width 280ms ease;
}

.hero-hp {
  background: linear-gradient(90deg, #7dc9ff, var(--hero));
}

.monster-hp {
  background: linear-gradient(90deg, #ffb06b, var(--monster));
}

.hp-label {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 0.88rem;
}

.battle-stage {
  margin-top: 8px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(122, 214, 255, 0.32), rgba(255, 232, 188, 0.58)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0.16) 12px,
      transparent 12px,
      transparent 24px
    );
}

.impact-message {
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.impact-message.critical-text {
  color: #d9480f;
  text-shadow: 0 0 10px rgba(255, 196, 79, 0.55);
}

.impact-message.danger-text {
  color: #b42318;
  text-shadow: 0 0 10px rgba(255, 129, 129, 0.45);
}

.reward-strip {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.praise-burst {
  min-height: 22px;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  color: #d96b00;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 180ms ease, transform 180ms ease;
}

.praise-burst.show {
  opacity: 1;
  transform: scale(1);
}

.reward-text {
  font-size: 0.78rem;
  color: #7b5c33;
}

.quiz-card {
  position: relative;
  margin-top: 8px;
  padding: 12px 10px 12px;
}

.mission-panel {
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 252, 229, 0.92), rgba(255, 236, 195, 0.92));
}

.mission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mission-title,
.mission-time {
  font-size: 0.82rem;
}

.mission-text {
  margin-top: 4px;
  font-size: 0.74rem;
  color: #8e6035;
}

.mission-track {
  margin-top: 6px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(65, 49, 29, 0.12);
}

.mission-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #76d1ff, #ffb45b);
  transition: width 180ms ease;
}

.question-wrap {
  text-align: center;
}

.question-label {
  margin: 0;
  color: #8c5e36;
  font-weight: 700;
}

.question {
  margin-top: 4px;
  font-size: clamp(1.85rem, 9vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.visual-panel {
  margin-top: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.visual-panel.compact {
  padding-bottom: 6px;
}

.visual-toggle {
  border: none;
  border-radius: 999px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  background: linear-gradient(180deg, #fffdf8, #ffe3b8);
}

.visual-board {
  margin-top: 8px;
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.visual-panel.compact .visual-board {
  display: none;
}

.visual-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.visual-plus,
.visual-equals {
  font-size: 1.15rem;
  font-weight: 900;
  color: #8e6035;
}

.visual-token {
  font-size: 1.1rem;
}

.timer-panel {
  margin-top: 10px;
  padding: 10px 10px 11px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 244, 221, 0.95), rgba(255, 233, 187, 0.9));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timer-label,
.timer-value {
  margin: 0;
  font-weight: 900;
}

.timer-value {
  font-size: 0.98rem;
}

.timer-track {
  margin-top: 6px;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(65, 49, 29, 0.12) 0,
      rgba(65, 49, 29, 0.12) calc(20% - 2px),
      rgba(255, 255, 255, 0.8) calc(20% - 2px),
      rgba(255, 255, 255, 0.8) 20%
    );
  box-shadow: inset 0 0 0 2px rgba(65, 49, 29, 0.08);
}

.timer-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7fe28d, #ffc94b 65%, #ff7c53);
  transition: width 100ms linear, filter 150ms ease;
}

.timer-fill.low-time {
  filter: saturate(1.4) brightness(1.03);
}

.choice-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.choice-pager {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pager-button {
  border: none;
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(180deg, #fff8ef, #ffe6c5);
}

.pager-button:disabled {
  opacity: 0.45;
}

.pager-text {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
}

.choice-button {
  min-height: 52px;
  border: none;
  border-radius: 16px;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  background: linear-gradient(180deg, #fff8ef, #ffe4c2);
  box-shadow: 0 10px 18px rgba(162, 103, 32, 0.15);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.choice-button.pressed {
  transform: scale(0.96);
  box-shadow:
    0 0 0 4px rgba(255, 171, 192, 0.5),
    0 0 26px rgba(255, 126, 156, 0.38),
    0 10px 18px rgba(162, 103, 32, 0.18);
}

.choice-button:active {
  transform: scale(0.96);
}

.choice-button:disabled {
  opacity: 0.65;
}

.choice-button.correct {
  background: linear-gradient(180deg, #d8ffe9, #9cf0be);
}

.choice-button.wrong {
  background: linear-gradient(180deg, #ffd8dd, #ff9eab);
}

.answer-flash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 28px;
  padding: 20px;
  background: rgba(255, 214, 224, 0.16);
  color: white;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 4;
}

.answer-flash.show {
  opacity: 1;
  transform: scale(1);
}

.answer-flash.correct {
  background:
    linear-gradient(180deg, rgba(255, 183, 204, 0.3), rgba(255, 120, 156, 0.42)),
    radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 60%);
}

.answer-flash.wrong {
  background:
    linear-gradient(180deg, rgba(255, 205, 219, 0.38), rgba(255, 108, 124, 0.44)),
    radial-gradient(circle, rgba(255, 255, 255, 0.36), transparent 58%);
}

.answer-flash-title,
.answer-flash-detail {
  margin: 0;
  text-shadow: 0 4px 16px rgba(102, 24, 39, 0.28);
}

.answer-flash-title {
  font-size: clamp(1.8rem, 9vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.answer-flash-detail {
  font-size: clamp(0.96rem, 4.2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-line;
}

.footer-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.streak {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
}

.mini-score {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8e6035;
}

.reset-button {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: white;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 18px rgba(228, 87, 46, 0.22);
}

.shop-card {
  margin-top: 8px;
  padding: 10px;
  background: var(--card);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.parent-card {
  margin-top: 8px;
  padding: 10px;
  background: var(--card);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.parent-head h2 {
  margin: 0;
  font-size: 0.98rem;
}

.parent-note {
  margin-top: 4px;
  font-size: 0.72rem;
  color: #8e6035;
}

.parent-stats {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

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

.report-card {
  margin: 0;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.report-card span {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  color: #8e6035;
}

.parent-stat {
  font-size: 0.76rem;
}

.parent-controls {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.time-setting {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.time-label {
  font-size: 0.74rem;
  font-weight: 800;
}

.time-select {
  min-width: 110px;
  border: none;
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  background: linear-gradient(180deg, #fff8ef, #ffe6c5);
}

.control-button {
  border: none;
  border-radius: 14px;
  padding: 10px 8px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(180deg, #fff8ef, #ffe6c5);
}

.shop-head h2 {
  margin: 0;
  font-size: 1rem;
}

.shop-note {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #8e6035;
}

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

.costume-button {
  border: none;
  border-radius: 16px;
  padding: 10px 8px;
  background: linear-gradient(180deg, #fff8ef, #ffe6c5);
  text-align: center;
  font: inherit;
  box-shadow: 0 8px 16px rgba(162, 103, 32, 0.12);
}

.costume-button.locked {
  opacity: 0.72;
}

.costume-button.equipped {
  outline: 3px solid rgba(88, 166, 255, 0.45);
  background: linear-gradient(180deg, #e5f3ff, #cfe8ff);
}

.costume-emoji {
  display: block;
  font-size: 1.8rem;
}

.costume-name,
.costume-price {
  display: block;
  margin-top: 4px;
  font-weight: 800;
  font-size: 0.74rem;
}

.attack {
  animation: attack 420ms ease;
}

.hit {
  animation: hit 420ms ease;
}

.victory {
  animation: victory 700ms ease;
}

.shake {
  animation: shake 500ms ease;
}

.urgent {
  animation: urgent 700ms ease infinite;
}

.critical-hit {
  animation: critical-hit 650ms ease;
}

.danger-hit {
  animation: danger-hit 650ms ease;
}

@keyframes attack {
  0%,
  100% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(18px) scale(1.08);
  }
}

@keyframes hit {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  30% {
    transform: scale(0.94) rotate(-4deg);
    filter: brightness(1.35);
  }
  60% {
    transform: scale(1.03) rotate(3deg);
  }
}

@keyframes victory {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px) rotate(-5deg);
  }
  50% {
    transform: translateY(0) rotate(5deg);
  }
  75% {
    transform: translateY(-8px) rotate(-3deg);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(6px);
  }
}

@keyframes urgent {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes critical-hit {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  20% {
    transform: scale(1.14) rotate(-5deg);
    filter: brightness(1.4) saturate(1.35);
  }
  50% {
    transform: scale(0.96) rotate(4deg);
  }
}

@keyframes danger-hit {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  15% {
    transform: scale(0.9) rotate(-6deg);
    filter: brightness(1.45) saturate(1.45);
  }
  40% {
    transform: scale(1.05) rotate(5deg);
  }
  70% {
    transform: scale(0.95) rotate(-3deg);
  }
}

@media (max-width: 360px) {
  .app-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .choice-button {
    min-height: 48px;
    font-size: 1.28rem;
  }

  .reset-button {
    padding: 9px 12px;
  }
}

@media (max-height: 760px) {
  .app-shell {
    padding-top: max(6px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .hero-card {
    padding: 10px 10px 8px;
  }

  .eyebrow {
    font-size: 0.66rem;
  }

  h1 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .subtitle {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .progress-strip {
    margin-top: 6px;
  }

  .level-badge {
    min-width: 54px;
    padding: 8px 6px;
    font-size: 0.9rem;
  }

  .xp-panel {
    padding: 6px 8px;
  }

  .bonus-text,
  .audio-note,
  .xp-label,
  .xp-value,
  .boss-label,
  .reward-text,
  .shop-note,
  .sticker-label,
  .parent-stat,
  .parent-note,
  .time-label,
  .time-select {
    font-size: 0.7rem;
  }

  .battle-card,
  .quiz-card,
  .shop-card,
  .parent-card {
    margin-top: 6px;
    padding: 8px;
  }

  .fighter {
    padding: 8px 6px;
  }

  .fighter-emoji {
    font-size: 2rem;
  }

  .fighter h2 {
    font-size: 0.8rem;
    margin: 2px 0 4px;
  }

  .hp-track {
    height: 10px;
  }

  .hp-label {
    font-size: 0.8rem;
    margin-top: 3px;
  }

  .battle-stage {
    min-height: 42px;
    padding: 8px;
  }

  .impact-message {
    font-size: 0.88rem;
  }

  .question-label,
  .timer-label,
  .timer-value,
  .streak,
  .mini-score,
  .stage-chip,
  .monster-trait,
  .mission-title,
  .mission-time,
  .mission-text,
  .pager-button,
  .pager-text {
    font-size: 0.76rem;
  }

  .question {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .timer-panel {
    margin-top: 8px;
    padding: 8px;
  }

  .mission-panel,
  .visual-panel {
    padding: 8px;
  }

  .timer-track {
    height: 12px;
  }

  .choice-grid {
    margin-top: 8px;
    gap: 6px;
  }

  .choice-button {
    min-height: 42px;
    border-radius: 14px;
    font-size: 1.15rem;
  }

  .footer-row {
    margin-top: 8px;
    gap: 8px;
  }

  .reset-button {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .costume-button {
    padding: 8px 6px;
  }

  .parent-controls {
    gap: 6px;
  }

  .control-button {
    padding: 8px 6px;
    font-size: 0.68rem;
  }
}
