.play { height: 100%; padding: 102px 28px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mascot-box { align-items: center; min-height: 120px; }
.mascot-box img { width: 112px; }
.mascot-box .bubble { margin: 0; max-width: 650px; }
.question { display: flex; align-items: center; gap: 16px; }
.replay { min-width: 64px; min-height: 64px; padding: 10px 18px; border-radius: 24px; background: var(--butter); font-size: 22px; box-shadow: var(--shadow); }
.board { flex: 1; min-height: 0; width: min(100%, 1120px); 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); }
.choices { display: flex; align-items: center; justify-content: center; width: 100%; gap: clamp(12px,2vw,24px); }
.choice { position: relative; flex: 1; max-width: 188px; min-width: 64px; border-radius: 28px; background: var(--card); padding: 12px; box-shadow: 0 7px 0 var(--sky); transition: transform .2s; }
@media (hover: hover) { .choice:hover { transform: translateY(-5px); } }
.choice:focus-visible, .replay:focus-visible, .big-btn:focus-visible { outline: 5px solid var(--lav-deep); outline-offset: 5px; }
.choice img { display: block; width: 100%; height: clamp(104px,18vh,172px); object-fit: contain; }
.choice .badge { display: grid; place-items: center; margin: 8px auto 0; width: 42px; height: 42px; border-radius: 50%; background: var(--sky); font-size: 26px; font-weight: 800; }
.choice.wrong { animation: wiggle .45s ease; }
.choice.hint { outline: 5px solid var(--butter-deep); animation: glow 1.5s ease infinite; }
.choice.correct { background: var(--mint); }
.color-choice { background: transparent; box-shadow: none; padding: 6px; }
.color-choice .tint-balloon { display: block; height: clamp(180px,30vh,270px); animation: bob 3s ease-in-out infinite; animation-delay: var(--delay); }
.color-choice.wrong .tint-balloon { animation: wiggle .45s ease; }
.color-choice.correct .tint-balloon { animation: balloon-pop .5s ease forwards; }
.round-info { display: flex; flex-direction: column; align-items: center; gap: 8px; 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); }
.sequence { display: flex; width: 100%; gap: 9px; justify-content: center; }
.tile { position: relative; flex: 1; min-width: 0; max-width: 128px; aspect-ratio: 1; border: 4px solid var(--sky); border-radius: 22px; background: var(--card); display: grid; place-items: center; }
.tile img { width: 90%; height: 90%; object-fit: contain; }
.tile.empty { border: 4px dashed var(--lav-deep); font-size: 52px; font-weight: 800; color: var(--lav-deep); }
.tile.unit { background: var(--butter); border-color: var(--butter-deep); }
.unit-label { margin: 0; min-height: 30px; font-size: 22px; font-weight: 700; color: var(--ink-soft); }
.sequence.happy { animation: bob .5s ease; }
.flying-picture { position: fixed; object-fit: contain; z-index: 35; pointer-events: none; }
@keyframes balloon-pop { to { transform: scale(1.4); opacity: 0; } }
@media (max-width: 1100px) { .play { padding-inline: 20px; } .topbar { gap: 10px; } .topbar .title { font-size: 27px; } .board { padding: 18px; } .choice { padding: 8px; } .sequence { gap: 6px; } .tile { border-radius: 17px; } }
@media (max-height: 700px) { .play { gap: 10px; } .mascot-box { min-height: 90px; } .mascot-box img { width: 85px; } .choice img { height: 110px; } .board { gap: 16px; } .tile { max-width: 100px; } .color-choice .tint-balloon { height: 180px; } .panel .mascot { width: 120px; } }

.play { height: 100dvh; padding-top: max(102px, calc(env(safe-area-inset-top) + 88px)); padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.topbar > * { flex-shrink: 0; }
.topbar .title { min-width: 0; flex-shrink: 1; line-height: 1.15; }
.question { width: min(100%, 1000px); justify-content: center; flex-shrink: 0; }
.mascot-box { min-width: 0; }
.mascot-box img { flex-shrink: 0; }
.replay { flex-shrink: 0; min-height: 56px; }
.board { min-width: 0; }
.round-info { flex-shrink: 0; text-align: center; }
.unit-label { text-align: center; }
.panel { max-height: calc(100dvh - 40px); }
.big-btn { min-height: 56px; }
@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; }
  .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; justify-items: center; }
  .choice { width: 100%; min-width: 56px; }
  .choice img { height: clamp(120px, 15dvh, 190px); }
  .color-choice .tint-balloon { height: clamp(180px, 21dvh, 270px); }
  .sequence { gap: 5px; }
  .tile { border-radius: 14px; border-width: 3px; }
  .tile.empty { border-width: 3px; }
  .round-info { font-size: 20px; }
}
@media (orientation: landscape) and (max-height: 800px) {
  .board { gap: 18px; }
  .tile { max-width: 105px; }
  .question { gap: 16px; }
}
