.play { height: 100dvh; padding: max(102px, calc(env(safe-area-inset-top) + 88px)) 28px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.topbar > * { flex-shrink: 0; }
.topbar .title { min-width: 0; flex-shrink: 1; line-height: 1.15; }
.question { display: flex; align-items: center; justify-content: center; gap: 16px; width: min(100%, 1000px); flex-shrink: 0; }
.mascot-box { align-items: center; min-height: 120px; min-width: 0; }
.mascot-box img { width: 112px; flex-shrink: 0; }
.mascot-box .bubble { margin: 0; max-width: 650px; }
.replay { display: grid; place-items: center; min-width: 64px; min-height: 64px; padding: 10px; border-radius: 14px; background: var(--butter); box-shadow: var(--shadow); flex-shrink: 0; }
.replay svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.replay svg path:first-child { fill: currentColor; }
.board { flex: 1; min-height: 0; min-width: 0; width: min(100%, 900px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 26px; padding: 22px; border-radius: 40px; background: rgba(255,255,255,.65); box-shadow: var(--shadow); }
.art { display: grid; place-items: center; pointer-events: none; padding: 12px 28px; border-radius: 32px; background: var(--butter); }
.art, .art * { pointer-events: none; }
.art img { display: block; width: auto; max-width: 100%; height: clamp(110px, 24dvh, 220px); object-fit: contain; }
.choices { display: flex; align-items: center; justify-content: center; width: 100%; gap: clamp(10px, 2vw, 24px); }
.tile { flex: 1 1 0; min-width: 64px; max-width: 168px; min-height: 96px; display: grid; place-items: center; border-radius: 28px; background: var(--card); box-shadow: 0 7px 0 var(--sky); font-size: clamp(48px, 9vw, 84px); font-weight: 800; line-height: 1; color: var(--ink); transition: transform .2s; }
@media (hover: hover) { .tile:hover { transform: translateY(-5px); } }
.tile:focus-visible, .replay:focus-visible { outline: 5px solid var(--lav-deep); outline-offset: 5px; }
.tile.wrong { animation: wiggle .45s ease; }
.tile.hint { outline: 5px solid var(--butter-deep); animation: glow 1.5s ease infinite; }
.tile.correct { background: var(--mint); }
.round-info { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; text-align: center; font-size: 21px; font-weight: 700; }
.round-dots { display: flex; gap: 12px; }
.round-dots i { width: 16px; height: 16px; background: var(--card); border-radius: 50%; }
.round-dots i.now { outline: 3px solid var(--lav-deep); }
.round-dots i.ok { background: var(--butter-deep); }
.panel { max-height: calc(100dvh - 40px); }
@media (max-width: 1100px) { .play { padding-inline: 20px; } .topbar { gap: 10px; } .topbar .title { font-size: 27px; } .board { padding: 18px; } }
@media (max-height: 700px) { .play { gap: 10px; } .mascot-box { min-height: 90px; } .mascot-box img { width: 85px; } .board { gap: 16px; } .art img { height: 110px; } .tile { min-height: 80px; } .panel .mascot { width: 120px; } }
@media (orientation: portrait) {
  .play { gap: 22px; padding-inline: 24px; padding-bottom: max(30px, env(safe-area-inset-bottom)); }
  .topbar { gap: 8px; }
  .topbar .title { font-size: clamp(22px, 3vw, 30px); }
  .question { flex-wrap: wrap; gap: 14px; }
  .mascot-box { flex: 1 1 100%; justify-content: center; }
  .mascot-box .bubble { max-width: 480px; }
  .board { gap: 24px; padding: 24px 18px; }
  .art img { height: clamp(120px, 20dvh, 240px); }
  .tile { min-height: 110px; font-size: clamp(52px, 11vw, 92px); }
}
@media (orientation: landscape) and (max-height: 800px) {
  .board { gap: 18px; }
  .question { gap: 16px; }
}
@media (max-width: 600px) {
  .play { gap: 10px; padding: max(70px, calc(env(safe-area-inset-top) + 60px)) 12px max(12px, env(safe-area-inset-bottom)); }
  .topbar { gap: 6px; }
  .topbar .title { font-size: 17px; }
  .question { flex-wrap: nowrap; gap: 8px; min-height: 72px; }
  .mascot-box { flex: 1 1 auto; justify-content: flex-start; min-height: 0; gap: 6px; }
  .mascot-box img { width: 58px; }
  .mascot-box .bubble { font-size: 17px; line-height: 1.3; padding: 8px 14px; border-radius: 20px; }
  .replay { min-width: 56px; min-height: 56px; padding: 8px; border-radius: 20px; }
  .replay svg { width: 32px; height: 32px; }
  .board { gap: 12px; padding: 12px; border-radius: 28px; }
  .art { padding: 8px 18px; border-radius: 24px; }
  .art img { height: clamp(90px, 20dvh, 160px); }
  .choices { gap: 10px; }
  .tile { min-height: 84px; border-radius: 22px; box-shadow: 0 5px 0 var(--sky); font-size: 52px; }
  .round-info { gap: 6px; font-size: 17px; line-height: 1.3; }
  .round-dots { gap: 9px; }
  .round-dots i { width: 14px; height: 14px; }
}
