body.game-playing {
  padding-bottom: 0;
  overflow: hidden;
}
.game-playing .app-header {
  height: calc(48px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  padding-right: max(16px, env(safe-area-inset-right));
  padding-left: max(16px, env(safe-area-inset-left));
}
.game-playing .app-header .eyebrow {
  display: none;
}
.game-playing .app-header h1 {
  font-size: 1rem;
}
.game-playing .app-main {
  height: calc(100dvh - 48px - env(safe-area-inset-top) - var(--nav-space));
  padding: 8px 12px;
  padding-right: max(12px, env(safe-area-inset-right));
  padding-left: max(12px, env(safe-area-inset-left));
  gap: 0;
  overflow: hidden;
}
.game-playing .site-footer {
  display: none;
}
.game-round {
  border-radius: 24px;
  background: radial-gradient(
    ellipse at top right,
    var(--scene-glow, #a78bfa18),
    transparent 70%
  );
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  flex: 1;
  min-height: 0;
  gap: 8px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
.game-scene-0 {
  --scene-glow: #ff7aaa24;
}
.game-scene-1 {
  --scene-glow: #51dbbd24;
}
.game-scene-2 {
  --scene-glow: #a78bfa24;
}
.game-scene-3 {
  --scene-glow: #ffd56a24;
}
.play-extra {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  padding: 0 12px;
}
.play-extra summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}
.play-extra summary::before {
  content: "＋";
  color: var(--color-accent-3);
}
.play-extra[open] summary::before {
  content: "−";
}
.play-extra p {
  margin: 8px 0 12px;
}
.rescue-choice-pictures {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}
.rescue-choice-pictures .rescue-picture {
  max-width: 48px;
  max-height: 48px;
}
.rescue-choices.combo {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.game-round .kit-choice {
  border-radius: 18px;
  box-shadow: 0 3px 0 var(--color-border);
  transition: transform 0.15s;
}
.game-round .kit-choice:active {
  transform: translateY(2px);
}
.game-round .kit-choice.correct {
  box-shadow:
    0 3px 0 var(--color-border),
    inset 0 0 0 2px var(--color-accent-3);
}
.game-round-heading .arcade-offer {
  font-size: 0.8rem;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  width: auto;
  flex: 1 1 128px;
  order: 1;
}
@media (prefers-reduced-motion: reduce) {
  .game-round .kit-choice {
    transition: none;
  }
}
.game-round > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.game-round-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.game-round-heading > .back-link {
  margin: 0;
  min-height: 44px;
  max-width: 45%;
  font-size: 0.8rem;
}
.game-round-heading .kit-header {
  flex: 1;
  min-width: 0;
}
html[data-mode] .game-round-heading .kit-header h2 {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-round-heading .kit-header p {
  display: none;
}
.game-round-heading .kit-round,
.game-round-heading .play-coach {
  flex-basis: 100%;
  margin: 0;
}
.game-round-heading .speech-help {
  order: 1;
  flex: 1 1 128px;
  min-width: 0;
  margin: 0;
}
.game-round-heading .speech-actions {
  gap: 6px;
}
.game-round-heading .endless-stage-head {
  margin: 0;
}
.game-round-heading .speech-actions .chip {
  min-height: 44px;
  padding: 6px 10px;
  font-size: 0.8rem;
}
.game-round-heading .play-example {
  max-height: 20dvh;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
}
.game-round-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
  scroll-padding: 4px;
}
.game-round-content > * {
  flex-shrink: 0;
}
.game-round-content .card {
  padding: 10px;
  margin: 0;
}
.game-round-content h3 {
  margin: 0 0 6px;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.game-round-content .play-object,
.game-round-content .rescue-wish {
  padding: 8px;
  margin: 4px 0;
}
.game-round-content .play-object .play-token {
  font-size: 2.7rem;
}
.game-round-content .play-choices {
  margin: 0;
}
.game-round-content .play-choices .kit-choice {
  min-height: 64px;
  padding: 8px;
  gap: 4px;
}
.game-round-content .kit-choice {
  padding: 10px;
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.game-round-content .learning-scene {
  padding: 6px 8px;
  margin: 0;
}
.game-round-content .journey-companion {
  display: none;
}
.game-round-content .learning-scene-guide {
  flex-basis: 40px;
}
.game-round-content .learning-scene-guide .journey-art {
  width: 40px;
  height: 40px;
}
.game-round-content .discovery-step svg {
  height: 30px;
}
.game-round-response {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 16px;
  padding: 8px;
  display: grid;
  gap: 8px;
}
.game-response-info {
  min-width: 0;
  max-height: 20dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.game-response-info .kit-feedback {
  padding: 8px;
  animation: none;
}
.game-response-info .endless-ailink {
  padding: 8px;
  margin: 6px 0 0;
}
.game-response-info .endless-sparks {
  margin: 4px 0;
}
.game-response-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.game-round-response .btn {
  min-height: 44px;
  width: 100%;
}
.game-response-actions > *,
.game-response-actions .play-retry .btn {
  flex: 1;
  min-width: 0;
}
.game-response-actions .play-retry {
  display: flex;
  margin: 0;
}
.game-response-actions .play-retry p {
  display: none;
}
.game-round .spot-art {
  max-height: 110px;
}
.spot-scene .repair-ink {
  fill: #343456;
}
.spot-scene .repair-fill {
  fill: inherit;
}
.spot-scene .repair-line {
  fill: none;
  stroke: #343456;
  stroke-width: 6;
  stroke-linecap: round;
}
.spot-scene .repair-window {
  fill: #ddf4ff;
}
.spot-scene .repair-warm {
  fill: #ffd46e;
}
.spot-scene .repair-stem,
.spot-scene .repair-leaf {
  fill: #64cba3;
  stroke: #64cba3;
  stroke-width: 6;
}
.game-round .rescue-picture {
  width: 64px;
  height: 64px;
}
@media (max-height: 500px) and (orientation: landscape) {
  .game-round-heading .speech-help {
    flex-basis: auto;
  }
  .game-round-heading .play-coach {
    flex-basis: auto;
    flex: 1;
  }
  .game-round {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .game-round-heading {
    grid-column: 1 / -1;
  }
  .game-round-response {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }
  .game-response-info {
    max-height: 26dvh;
  }
}
