.play {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 92px 20px 20px;
  gap: 12px;
}

.stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.stage .mascot-box {
  justify-self: end;
}

.stage .mascot-box img {
  width: clamp(80px, 10vw, 120px);
}

.stage .bubble {
  max-width: 230px;
}

.picture {
  width: clamp(170px, 30vh, 300px);
  aspect-ratio: 1;
  padding: 16px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.85);
  border: 8px solid var(--sky-deep);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(61, 58, 92, 0.18));
}

.picture.enter-in {
  animation: pop-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.picture.done {
  border-color: var(--mint-deep);
  background: #f1fff7;
  transform: scale(1.06) rotate(-3deg);
}

.meaning {
  justify-self: start;
  max-width: 260px;
  padding: 12px 22px;
  border-radius: 26px;
  background: var(--butter);
  box-shadow: var(--shadow);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  visibility: hidden;
}

.meaning small {
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--ink-soft);
}

.meaning.show {
  visibility: visible;
  animation: pop-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.slots,
.tiles {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1vw, 12px);
}

.slots.wobble {
  animation: shake 0.45s ease;
}

.slot {
  width: clamp(52px, 7vw, 76px);
  height: clamp(60px, 9.5vh, 80px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 5px dashed var(--lav-deep);
  display: grid;
  place-items: center;
  font-size: clamp(34px, 5.4vh, 48px);
  font-weight: 800;
  line-height: 1;
  color: var(--lav-deep);
}

.slot.now {
  border-color: var(--butter-deep);
  background: #fff;
}

.slot.filled {
  border-style: solid;
  background: #fff;
  animation: pop-in 0.25s ease;
}

.slots.done .slot {
  border-color: var(--mint-deep);
  color: var(--mint-deep);
}

.tiles {
  min-height: clamp(64px, 10.5vh, 88px);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  box-shadow: var(--shadow);
  box-sizing: content-box;
}

.tile,
.fly-tile {
  width: clamp(64px, 8vw, 84px);
  height: clamp(64px, 10.5vh, 88px);
  border-radius: 22px;
  background: var(--c, var(--sky));
  display: grid;
  place-items: center;
  font-size: clamp(36px, 5.8vh, 52px);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(61, 58, 92, 0.22);
}

.tile {
  animation: pop-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
  transition: transform 0.12s ease;
}

.tile:hover {
  transform: translateY(-3px);
}

.tile:active {
  transform: translateY(4px);
}

.tile.used {
  visibility: hidden;
}

.tile.nope {
  animation: shake 0.45s ease;
}

.tile.hint {
  background: var(--butter-deep);
  animation: glow 1s ease-in-out infinite;
}

.fly-tile {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  transform-origin: top left;
  transition: transform 0.32s cubic-bezier(0.3, 0.9, 0.4, 1);
}

.round-dots {
  display: flex;
  gap: 10px;
}

.round-dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.round-dots i.now {
  box-shadow: 0 0 0 4px var(--butter-deep);
}

.round-dots i.ok {
  background: var(--butter-deep);
}

@media (max-width: 760px) {
  .stage {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }
  .stage .mascot-box,
  .meaning {
    justify-self: center;
  }
  .stage .mascot-box img {
    width: 64px;
  }
  .stage .bubble {
    margin-bottom: 16px;
  }
  .tiles {
    flex-wrap: wrap;
  }
}
.play {
  height: 100dvh;
  padding: 104px 24px 24px;
  gap: clamp(12px, 2dvh, 24px);
}

.stage {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
}

.stage .mascot-box {
  align-items: center;
}

.stage .mascot-box img {
  width: clamp(64px, 7vw, 100px);
}

.stage .bubble {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.picture {
  width: clamp(180px, 28dvh, 280px);
}

.slots, .tiles {
  gap: clamp(6px, 0.8vw, 10px);
  max-width: 100%;
}

.tiles {
  box-sizing: border-box;
  padding: 12px;
  min-height: 0;
}

.tile, .fly-tile {
  width: clamp(56px, 7vw, 80px);
  height: clamp(64px, 10dvh, 84px);
  flex: 0 0 auto;
}

@media (orientation: portrait) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: center;
    gap: 18px;
  }
  .stage .mascot-box, .meaning {
    justify-self: center;
  }
  .stage .bubble {
    max-width: 460px;
  }
  .picture {
    width: clamp(220px, 28dvh, 340px);
  }
  .meaning {
    max-width: 100%;
    text-align: center;
    padding: 8px 22px;
  }
  .tiles {
    flex-wrap: wrap;
  }
}

@media (orientation: landscape) and (max-width: 1150px) {
  .stage .mascot-box {
    flex-direction: column;
    justify-self: center;
  }
  .stage .bubble {
    max-width: 240px;
    text-align: center;
  }
  .stage .bubble::after {
    display: none;
  }
}

@media (hover: none) {
  .tile:hover {
    transform: none;
  }
}
