/* Infinite Learning Quiz — /play
   Spec colors; Lexend only; mobile-first 390×844, max 460px desktop. */

:root {
  --play-ink: #1c1a3a;
  --play-accent: #f2b256;
  --play-correct-fill: #ddf3e6;
  --play-correct: #1f7a45;
  --play-incorrect-fill: #fbe3e6;
  --play-incorrect: #b3263e;
  --play-bg: #3d3a6b;
  --play-white: #ffffff;
  --play-feedback-bg: #f3f2f6;
  --play-font: 'Lexend', system-ui, -apple-system, sans-serif;
  --play-shadow-card: 6px 6px 0 var(--play-ink);
  --play-shadow-btn: 4px 4px 0 var(--play-ink);
  --play-radius-card: 24px;
  --play-max: 460px;
}

/* Interest / intro screens (weird-science). Versions:
   - sun-stranger (default): “The Sun is stranger than it looks”
   - sun-dot: “The Sun is the dot”
   - v1-marble-scale: archived teal marble gate
   Switch: ?intro=sun-stranger | ?intro=sun-dot | ?intro=v1-marble-scale
   (see play/intros/resolve.php). To restore prior default, set PLAY_INTRO_DEFAULT. */
.play-interest {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--play-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Lexend', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

/* The attribute has to win, or the gate is permanently on screen.
   .play-interest sets display:flex in the author sheet, and the UA's
   [hidden]{display:none} loses to any author rule regardless of specificity —
   so without this the gate covered the quiz on EVERY /play route. */
.play-interest[hidden] {
  display: none;
}

.play-interest:not([hidden]) ~ #play-header,
.play-interest:not([hidden]) ~ #play-main {
  display: none !important;
}

/* ——— v1-marble-scale (archived) ——— */
.play-interest--v1-marble-scale {
  background: #346b5f;
  padding: max(12px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  max-width: var(--play-max);
  margin: 0 auto;
}

.play-interest--v1-marble-scale .play-interest__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.play-interest--v1-marble-scale .play-interest__tag {
  background: rgba(0, 0, 0, 0.3);
  color: var(--play-white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.play-interest--v1-marble-scale .play-interest__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--play-max);
  margin: 0 auto;
  width: 100%;
}

.play-interest--v1-marble-scale .play-interest__illustration {
  margin-bottom: 40px;
}

.play-interest--v1-marble-scale .play-interest__svg {
  width: 100%;
  height: 160px;
  max-width: 340px;
  margin: 0 auto;
  display: block;
}

.play-interest--v1-marble-scale .play-interest__headline {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px 0;
  text-align: left;
}

.play-interest--v1-marble-scale .play-interest__support {
  font-size: 18px;
  line-height: 1.4;
  color: #e3eeea;
  margin: 0 0 40px 0;
}

.play-interest--v1-marble-scale .play-interest__actions {
  margin-top: auto;
  margin-bottom: 40px;
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1;
}

.play-interest--v1-marble-scale .play-interest__start {
  width: 100%;
  height: 74px;
  background: #e8b652;
  color: #1e1a3a;
  border: 4px solid #1c1a3a;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 6px 6px 0 #1c1a3a;
  margin-bottom: 16px;
}

.play-interest--v1-marble-scale .play-interest__start:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 #1c1a3a;
}

.play-interest--v1-marble-scale .play-interest__start:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 #1c1a3a;
}

.play-interest--v1-marble-scale .play-interest__meta {
  text-align: center;
  font-size: 14px;
  color: #e3eeea;
  margin: 0;
}

@media (max-height: 760px) {
  .play-interest--v1-marble-scale .play-interest__header { margin-bottom: 12px; }
  .play-interest--v1-marble-scale .play-interest__illustration { margin-bottom: 20px; }
  .play-interest--v1-marble-scale .play-interest__svg { height: 112px; }
  .play-interest--v1-marble-scale .play-interest__headline { font-size: 28px; margin-bottom: 14px; }
  .play-interest--v1-marble-scale .play-interest__support { font-size: 16px; margin-bottom: 20px; }
  .play-interest--v1-marble-scale .play-interest__start { height: 64px; margin-bottom: 10px; }
  .play-interest--v1-marble-scale .play-interest__actions { margin-bottom: 16px; }
}

@media (max-height: 620px) {
  .play-interest--v1-marble-scale .play-interest__illustration { margin-bottom: 14px; }
  .play-interest--v1-marble-scale .play-interest__svg { height: 88px; }
  .play-interest--v1-marble-scale .play-interest__headline { font-size: 23px; margin-bottom: 10px; }
  .play-interest--v1-marble-scale .play-interest__support { font-size: 14px; line-height: 1.35; margin-bottom: 14px; }
  .play-interest--v1-marble-scale .play-interest__start { height: 58px; }
  .play-interest--v1-marble-scale .play-interest__actions { margin-bottom: 10px; }
}

/* ——— sun-stranger (default) ——— */
.play-interest--sun-stranger {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #000000;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  min-height: 100vh;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content column: 700px max, centered; full-bleed black stays on the section */
.play-interest--sun-stranger .play-interest__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  max-height: 100dvh;
  max-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-interest--sun-stranger .play-interest__frame picture,
.play-interest--sun-stranger .play-interest__art {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  max-height: 100dvh;
  max-height: 100vh;
  object-fit: contain;
  object-position: center;
}

/* Full-screen transparent hit target — art already shows the CTA pill */
.play-interest--sun-stranger .play-interest__start {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.play-interest--sun-stranger .play-interest__start:focus-visible {
  outline: 2px solid #00a3ff;
  outline-offset: -4px;
}

.play-interest--sun-stranger .play-interest__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— sun-dot ——— */
.play-interest--sun-dot {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #0b0d1a;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  min-height: 100vh;
  padding: 0;
  box-sizing: border-box;
  /* Override base .play-interest flex so the centered frame can size freely */
  display: block;
}

.play-interest--sun-dot .play-interest__starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Content column: 700px max, centered; full-bleed bg stays on the section */
.play-interest--sun-dot .play-interest__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  height: 100%;
  min-height: 100dvh;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
}

.play-interest--sun-dot .play-interest__logo {
  position: absolute;
  top: max(26px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  z-index: 2;
  color: #ffffff;
  font-family: 'Lexend', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.play-interest--sun-dot .play-interest__stage {
  /* Designed at 390×844: star center ~245px, caption ~428px.
     Use vw/vh (not %) in --star-size so the same token is safe in width and in
     vertical calc() for the caption. Cap with the 700px frame via max(). */
  --star-size: min(330px, 84vw, 39vh, 588px); /* 588 = 84% of 700 */
  --star-center-y: min(245px, 29vh);
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.play-interest--sun-dot .play-interest__star {
  position: absolute;
  top: var(--star-center-y);
  left: 50%;
  width: var(--star-size);
  /* Width drives size; aspect-ratio keeps a true circle (never stretch) */
  height: auto;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(
    circle at center,
    #ffb37c 0%,
    #e8783f 45%,
    #b9471f 80%,
    #8a2f14 100%
  );
  box-shadow: 0 0 70px rgba(232, 120, 63, 0.5);
}

.play-interest--sun-dot .play-interest__sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  aspect-ratio: 1 / 1;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff3c4;
  box-shadow: 0 0 10px #ffe9a0, 0 0 3px #ffffff;
}

.play-interest--sun-dot .play-interest__sun-label {
  position: absolute;
  top: calc(50% + 11px);
  left: 50%;
  transform: translateX(-50%);
  color: #2a0f05;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.play-interest--sun-dot .play-interest__caption {
  position: absolute;
  top: calc(var(--star-center-y) + (var(--star-size) / 2) + 14px);
  left: 24px;
  right: 24px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #b8bccf;
}

.play-interest--sun-dot .play-interest__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  padding:
    0
    max(24px, env(safe-area-inset-right))
    max(34px, calc(34px + env(safe-area-inset-bottom)))
    max(24px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.play-interest--sun-dot .play-interest__headline {
  margin: 0;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 62px;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.play-interest--sun-dot .play-interest__headline-line {
  display: block;
}

.play-interest--sun-dot .play-interest__headline-gold {
  display: block;
  color: #f2c14e;
}

.play-interest--sun-dot .play-interest__support {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: #dfe2ee;
}

.play-interest--sun-dot .play-interest__start {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: #f2c14e;
  color: #0b0d1a;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(242, 193, 78, 0.45);
  -webkit-tap-highlight-color: transparent;
}

.play-interest--sun-dot .play-interest__start:active {
  transform: scale(0.985);
}

.play-interest--sun-dot .play-interest__start-label {
  display: block;
}

.play-interest--sun-dot .play-interest__meta {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #b8bccf;
}

/* Short screens: shrink star, keep bottom anchored, no scroll */
@media (max-height: 780px) {
  .play-interest--sun-dot .play-interest__stage {
    --star-size: min(240px, 68vw, 30vh, 476px); /* 476 = 68% of 700 */
    --star-center-y: min(190px, 26vh);
  }
  .play-interest--sun-dot .play-interest__headline {
    font-size: 48px;
  }
  .play-interest--sun-dot .play-interest__support {
    font-size: 15px;
  }
  .play-interest--sun-dot .play-interest__bottom {
    gap: 12px;
    padding-bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
  }
  .play-interest--sun-dot .play-interest__start {
    min-height: 64px;
    font-size: 20px;
  }
}

@media (max-height: 640px) {
  .play-interest--sun-dot .play-interest__stage {
    --star-size: min(160px, 48vw, 22vh, 336px); /* 336 = 48% of 700 */
    --star-center-y: min(140px, 22vh);
  }
  .play-interest--sun-dot .play-interest__caption {
    font-size: 11px;
  }
  .play-interest--sun-dot .play-interest__headline {
    font-size: 38px;
  }
  .play-interest--sun-dot .play-interest__support {
    font-size: 14px;
    line-height: 1.35;
  }
  .play-interest--sun-dot .play-interest__bottom {
    gap: 10px;
  }
  .play-interest--sun-dot .play-interest__start {
    min-height: 58px;
    font-size: 18px;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--play-font);
  color: var(--play-ink);
  background: var(--play-bg);
  -webkit-text-size-adjust: 100%;
}

.play-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--play-white);
  color: var(--play-ink);
  font-weight: 700;
}
.play-skip-link:focus { left: 12px; top: 12px; }

.play-body {
  min-height: 100dvh;
  min-height: 100vh;
  transition: background-color 0.25s ease;
}

.play-app {
  width: 100%;
  max-width: var(--play-max);
  margin: 0 auto;
  min-height: 100dvh;
  min-height: 100vh;
  padding:
    max(12px, env(safe-area-inset-top))
    16px
    max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.play-top { flex: 0 0 auto; color: var(--play-white); }
.play-top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
.play-top__row--meta { margin-top: 10px; align-items: flex-end; }
.play-top__right { display: flex; align-items: center; gap: 8px; }

.play-wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--play-white);
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
}
.play-wordmark__img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.play-learned {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--play-white);
  font-size: 13px;
  font-weight: 700;
}

.play-skip-topic {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--play-white);
  font: 600 14px/1 var(--play-font);
  min-height: 44px;
  padding: 8px 6px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.play-skip-topic:disabled { opacity: 0.5; cursor: default; text-decoration: none; }

.play-topic {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.play-qmeta {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
  white-space: nowrap;
}

.play-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 12px;
}
.play-progress__seg {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}
.play-progress__seg.is-current { background: var(--play-accent); }
.play-progress__seg.is-done { background: var(--play-white); }

.play-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.play-card {
  background: var(--play-white);
  border: 3px solid var(--play-ink);
  border-radius: var(--play-radius-card);
  box-shadow: var(--play-shadow-card);
  padding: 20px 18px 18px;
}
.play-card--error p { margin: 0 0 16px; font-size: 15px; line-height: 1.45; }

.play-prompt {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.play-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.play-option {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  text-align: left;
  border: 3px solid var(--play-ink);
  border-radius: 999px;
  background: var(--play-white);
  box-shadow: var(--play-shadow-btn);
  color: var(--play-ink);
  font: 600 17px/1.25 var(--play-font);
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.2s ease, background 0.15s ease, border-color 0.15s ease;
}
.play-option:disabled { cursor: default; }
.play-option:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--play-ink); }
.play-option.is-dim { opacity: 0.45; }
.play-option.is-correct {
  background: var(--play-correct-fill);
  border-color: var(--play-correct);
}
.play-option.is-incorrect {
  background: var(--play-incorrect-fill);
  border-color: var(--play-incorrect);
}

.play-option__badge {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--play-ink);
  color: var(--play-white);
  font-size: 13px;
  font-weight: 800;
}
.play-option.is-correct .play-option__badge {
  background: var(--play-correct);
  border-radius: 999px;
}
.play-option.is-incorrect .play-option__badge {
  background: var(--play-incorrect);
  border-radius: 999px;
}
.play-option__text { flex: 1 1 auto; }

.play-feedback {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--play-feedback-bg);
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.play-feedback[hidden] { display: none; }
.play-feedback__verdict {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.play-feedback__verdict.is-correct { color: var(--play-correct); }
.play-feedback__verdict.is-incorrect { color: var(--play-incorrect); }
.play-feedback__label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--play-ink);
  opacity: 0.7;
}
.play-feedback__body {
  white-space: pre-line;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.play-helper {
  margin: 14px 0 0;
  text-align: center;
  color: var(--play-white);
  font-size: 14px;
  font-weight: 600;
}
.play-helper[hidden] { display: none; }

.play-next-wrap {
  margin-top: 16px;
}
.play-next-wrap[hidden] { display: none; }

.play-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 3px solid var(--play-ink);
  border-radius: 999px;
  box-shadow: var(--play-shadow-btn);
  background: var(--play-white);
  color: var(--play-ink);
  font: 800 17px/1.2 var(--play-font);
  cursor: pointer;
  text-decoration: none;
}
.play-btn--accent { background: var(--play-accent); }
.play-btn--tall { min-height: 64px; font-size: 18px; }
.play-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--play-ink); }
.play-btn.is-pulse {
  animation: play-pulse 0.55s ease-in-out 1;
}

@keyframes play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.play-score {
  color: var(--play-white);
  text-align: center;
  padding-top: 8px;
}
.play-score[hidden] { display: none; }
.play-score__topic {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.play-score__n {
  margin: 0;
  font-size: clamp(72px, 22vw, 104px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.play-score__line {
  margin: 12px 0 18px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.play-score__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
}
.play-score__dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid var(--play-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--play-ink);
}
.play-score__dot.is-correct { background: var(--play-white); color: var(--play-correct); }
.play-score__dot.is-miss { background: var(--play-accent); }
.play-score__learned {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
}
.play-upnext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  margin-bottom: 16px;
}
.play-upnext__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.play-upnext__name {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 800;
}
.play-upnext__meta {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.9;
}

.play-score__actions { display: flex; flex-direction: column; gap: 12px; }
.play-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--play-white);
  font: 600 15px/1.2 var(--play-font);
  min-height: 44px;
  padding: 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.play-save {
  margin-top: 16px;
  text-align: left;
  color: var(--play-ink);
}
.play-save__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.play-save__body {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}
.play-save__notnow {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: center;
  color: var(--play-ink);
  opacity: 0.7;
}

.play-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(28, 26, 58, 0.45);
  padding: 16px;
}
.play-sheet[hidden] { display: none; }
.play-sheet__panel {
  width: 100%;
  max-width: var(--play-max);
  background: var(--play-white);
  border: 3px solid var(--play-ink);
  border-radius: 24px 24px 16px 16px;
  box-shadow: var(--play-shadow-card);
  padding: 20px 18px max(18px, env(safe-area-inset-bottom));
}
.play-sheet__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}
.play-sheet__body {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
}
.play-sheet__actions { display: flex; flex-direction: column; gap: 10px; }

.play-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--play-ink);
  color: var(--play-white);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--play-shadow-btn);
}
.play-toast[hidden] { display: none; }

.play-question.is-leave .play-card {
  animation: play-leave 0.25s ease forwards;
}
.play-question.is-enter .play-card {
  animation: play-enter 0.25s ease;
}
.play-feedback.is-open {
  animation: play-feedback-in 0.2s ease;
}

@keyframes play-leave {
  to { transform: translateY(-28px); opacity: 0; }
}
@keyframes play-enter {
  from { transform: translateY(36px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes play-feedback-in {
  from { opacity: 0; transform: scaleY(0.92); }
  to { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .play-body { transition: none; }
  .play-option, .play-btn { transition: none; }
  .play-btn.is-pulse { animation: none; }
  .play-question.is-leave .play-card,
  .play-question.is-enter .play-card,
  .play-feedback.is-open {
    animation: play-fade 0.15s ease;
  }
  @keyframes play-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
