body.fun-body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: #f5f9ff;
  background:
    radial-gradient( circle at 14% 16%, rgba( 46, 163, 194, 0.22 ), transparent 20% ),
    radial-gradient( circle at 86% 14%, rgba( 255, 178, 93, 0.16 ), transparent 18% ),
    linear-gradient( 180deg, #040a18 0%, #081225 44%, #0e1d34 100% );
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

.space-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: -20%;
  background-image: radial-gradient( rgba( 255, 255, 255, 0.88 ) 0.9px, transparent 1px );
  background-size: 42px 42px;
}

.stars-a {
  opacity: 0.32;
  animation: starsMove 46s linear infinite;
}

.stars-b {
  opacity: 0.14;
  transform: scale( 1.35 );
  animation: starsRotate 80s linear infinite;
}

.question-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 6px 24px 18px;
}

.question-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.question-kicker {
  margin: 0 0 8px;
  color: rgba( 184, 221, 255, 0.78 );
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 12px;
}

.question-heading h1 {
  margin: 0;
  font-size: clamp( 2.5rem, 5vw, 4.2rem );
  letter-spacing: 0.12em;
  animation: tracking-in-expand-fwd 0.8s cubic-bezier( 0.215, 0.61, 0.355, 1 ) both;
}

.control-pill {
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid rgba( 255, 255, 255, 0.14 );
  border-radius: 20px;
  background: rgba( 10, 22, 40, 0.62 );
  box-shadow: 0 18px 36px rgba( 0, 0, 0, 0.22 );
  backdrop-filter: blur( 14px );
}

.control-pill.narrow {
  min-width: 250px;
}

.control-pill span {
  color: rgba( 226, 236, 255, 0.68 );
  font-size: 12px;
}

.control-pill select,
.control-pill input {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  color: #11283d;
  background: linear-gradient( 135deg, rgba( 255, 255, 255, 0.96 ), rgba( 203, 231, 255, 0.92 ) );
}

.question-layout {
  display: grid;
  grid-template-columns: minmax( 0, 1fr ) 320px;
  gap: 18px;
  min-height: calc( 100vh - 126px );
}

.screen-panel {
  border: 1px solid rgba( 255, 255, 255, 0.14 );
  border-radius: 28px;
  background: rgba( 8, 20, 38, 0.66 );
  box-shadow: 0 22px 60px rgba( 0, 0, 0, 0.24 );
  backdrop-filter: blur( 18px );
}

.question-stage-panel {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
}

.question-stage-meta {
  display: grid;
  grid-template-columns: minmax( 0, 1fr ) minmax( 320px, 420px ) auto;
  align-items: flex-start;
  gap: 18px;
}

.question-stage-meta h2 {
  margin: 0;
  font-size: 1.45rem;
}

.question-stage-meta p {
  margin: 8px 0 0;
  color: rgba( 220, 232, 255, 0.7 );
}

.status-badge {
  padding: 8px 14px;
  border-radius: 999px;
  color: #dce7ff;
  background: rgba( 255, 255, 255, 0.08 );
  border: 1px solid rgba( 255, 255, 255, 0.12 );
  white-space: nowrap;
}

.question-stage {
  position: relative;
  flex: 1;
  min-height: 560px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 24px;
  contain: layout paint;
  background:
    radial-gradient( circle at center, rgba( 54, 124, 255, 0.12 ), transparent 36% ),
    radial-gradient( circle at 50% 110%, rgba( 255, 222, 138, 0.1 ), transparent 34% );
  perspective: 1800px;
}

.question-floating-controls {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: center;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  align-self: start;
  transform: translateX( -230px );
}

.question-sphere,
.question-highlight {
  position: absolute;
  inset: 0;
}

.question-sphere {
  transform-style: preserve-3d;
  will-change: transform;
  animation: sphereFloat 26s linear infinite;
}

.question-sphere.is-spinning {
  animation: sphereSpin 1s linear infinite;
}

.sphere-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  min-height: 92px;
  padding: 10px 12px;
  border-radius: 22px;
  color: #f7fbff;
  background:
    linear-gradient( 180deg, rgba( 255, 255, 255, 0.16 ), rgba( 255, 255, 255, 0.06 ) ),
    linear-gradient( 145deg, rgba( 78, 127, 255, 0.55 ), rgba( 47, 232, 203, 0.28 ) );
  border: 1px solid rgba( 255, 255, 255, 0.16 );
  box-shadow: 0 12px 22px rgba( 4, 12, 28, 0.18 );
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform:
    translate( -50%, -50% )
    translate3d( var( --x ), var( --y ), var( --z ) )
    rotateY( var( --ry ) )
    rotateX( var( --rx ) )
    scale( var( --card-scale, 1 ) );
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.sphere-card.is-drawn {
  opacity: 0.16;
  filter: grayscale( 0.9 );
}

.sphere-card.is-preview {
  box-shadow: 0 0 0 2px rgba( 255, 255, 255, 0.44 ), 0 18px 40px rgba( 117, 174, 255, 0.3 );
  transform:
    translate( -50%, -50% )
    translate3d( var( --x ), var( --y ), calc( var( --z ) + 48px ) )
    rotateY( var( --ry ) )
    rotateX( var( --rx ) )
    scale( calc( var( --card-scale, 1 ) * 1.08 ) );
}

.sphere-card-id,
.highlight-id,
.result-card-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba( 245, 251, 255, 0.86 );
  background: rgba( 255, 255, 255, 0.12 );
}

.sphere-card-name,
.highlight-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
}

.sphere-card-meta,
.highlight-card small {
  display: block;
  margin-top: 8px;
  color: rgba( 236, 243, 255, 0.72 );
}

.question-highlight {
  display: grid;
  place-items: center;
  pointer-events: none;
}

.question-highlight:empty {
  display: none;
}

.question-highlight:not(:empty) {
  padding: 36px;
  background: radial-gradient( circle at center, rgba( 9, 18, 34, 0.08 ), rgba( 8, 16, 31, 0.72 ) 70% );
}

.question-highlight:not(:empty) + .question-sphere {
  filter: blur( 2px ) saturate( 0.75 );
  opacity: 0.32;
}

.question-highlight {
  grid-template-columns: var( --highlight-grid-columns, repeat( auto-fit, minmax( var( --highlight-card-min, 220px ), var( --highlight-card-max, 320px ) ) ) );
  gap: var( --highlight-gap, 18px );
  align-content: center;
  justify-content: center;
}

.highlight-card {
  width: min( var( --highlight-card-max, 320px ), 100% );
  min-height: var( --highlight-card-height, 186px );
  padding: var( --highlight-card-padding, 28px 24px );
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #0f2237;
  background:
    linear-gradient( 180deg, rgba( 255, 255, 255, 0.96 ), rgba( 255, 242, 214, 0.92 ) ),
    linear-gradient( 135deg, rgba( 255, 211, 111, 0.72 ), rgba( 255, 255, 255, 0.9 ) );
  border: 1px solid rgba( 255, 255, 255, 0.82 );
  box-shadow: 0 24px 46px rgba( 0, 0, 0, 0.24 );
  animation: highlightRise 560ms cubic-bezier( 0.22, 1, 0.36, 1 ) both;
}

.highlight-card strong {
  margin-top: 16px;
  font-size: var( --highlight-name-size, clamp( 1.6rem, 2vw, 2rem ) );
}

.highlight-card small {
  margin-top: 14px;
  font-size: var( --highlight-meta-size, 1rem );
}

.question-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 96px;
  margin-top: 10px;
}

.result-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.start-wrap {
  display: flex;
  justify-content: center;
}

.btn-start,
.btn-cancel {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 13rem;
  height: 3.2rem;
  overflow: hidden;
  border: double 4px transparent;
  border-radius: 5rem;
  cursor: pointer;
  backdrop-filter: blur( 1rem );
  transition: transform 180ms ease;
  background-size: 300% 300%;
  background-origin: border-box;
  background-clip: content-box, border-box;
}

.btn-start {
  animation: gradientButton 5s ease infinite, pulsate-fwd 1.2s ease-in-out infinite both;
  background-image:
    linear-gradient( #141d31, #141d31 ),
    linear-gradient( 137deg, #ffdb3b 12%, #fe53bb 43%, #8f51ea 68%, #2256ff 88% );
}

.btn-cancel {
  animation: gradientButton 5s ease infinite;
  background-image:
    linear-gradient( #141d31, #141d31 ),
    linear-gradient( 137deg, #7ce7da 12%, #66c6ff 42%, #53a2ff 68%, #7a83ff 88% );
}

.btn-start:hover,
.btn-cancel:hover,
.btn-end:hover,
.btn-ghost-action:hover,
.mini-ghost:hover {
  transform: translateY( -2px ) scale( 1.02 );
}

.btn-start strong,
.btn-cancel strong {
  position: relative;
  z-index: 2;
  color: #fff;
  letter-spacing: 0.32em;
  font-size: 12px;
}

.button-stars,
.button-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.button-stars::before,
.button-stars::after {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: radial-gradient( #ffffff 1px, transparent 1px );
  background-size: 32px 32px;
}

.button-stars::before {
  opacity: 0.48;
  animation: starsMove 38s linear infinite;
}

.button-stars::after {
  opacity: 0.22;
  animation: starsRotate 58s linear infinite;
}

.button-glow::before,
.button-glow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6rem;
  height: 2.1rem;
  filter: blur( 1.7rem );
  transform: translateY( -50% );
  z-index: 1;
}

.button-glow::before {
  left: 12%;
  background: rgba( 254, 83, 186, 0.62 );
}

.button-glow::after {
  right: 12%;
  background: rgba( 142, 81, 234, 0.62 );
}

.btn-end,
.btn-ghost-action,
.mini-ghost {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.btn-end {
  --glow-color: rgb( 217, 176, 255 );
  --glow-spread-color: rgba( 191, 123, 255, 0.78 );
  --btn-color: rgb( 100, 61, 136 );
  padding: 1em 3em;
  color: var( --glow-color );
  font-size: 15px;
  font-weight: 700;
  background-color: var( --btn-color );
  border: 0.25em solid var( --glow-color );
  box-shadow:
    0 0 1em 0.25em var( --glow-color ),
    0 0 4em 1em var( --glow-spread-color ),
    inset 0 0 0.75em 0.25em var( --glow-color );
  text-shadow: 0 0 0.5em var( --glow-color );
  animation: pulsate-fwd 0.9s ease-in-out infinite both;
}

.btn-ghost-action {
  padding: 0.95rem 1.5rem;
  color: rgba( 245, 251, 255, 0.78 );
  background: rgba( 255, 255, 255, 0.08 );
}

.mini-ghost {
  padding: 0.72rem 1rem;
  color: rgba( 245, 251, 255, 0.84 );
  background: rgba( 255, 255, 255, 0.08 );
}

.question-result-panel {
  padding: 20px;
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.result-head h2 {
  margin: 0;
}

.result-head p {
  margin: 8px 0 0;
  color: rgba( 220, 232, 255, 0.7 );
}

.result-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-height: calc( 100vh - 260px );
  overflow: auto;
  padding-right: 4px;
}

.result-round {
  padding: 14px;
  border-radius: 22px;
  background: rgba( 255, 255, 255, 0.06 );
  border: 1px solid rgba( 255, 255, 255, 0.08 );
}

.result-round-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.result-round-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #11283d;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient( 135deg, #ffd86b, #ffeca7 );
}

.result-round-grid {
  display: grid;
  gap: 10px;
}

.result-card {
  padding: 14px 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba( 255, 255, 255, 0.09 );
  border: 1px solid rgba( 255, 255, 255, 0.08 );
  box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.06 );
}

.result-card.is-current {
  background: rgba( 255, 255, 255, 0.16 );
  border-color: rgba( 255, 255, 255, 0.18 );
}

.result-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.12rem;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  left: 50%;
  top: 16%;
  width: 12px;
  height: 28px;
  border-radius: 4px;
  background: var( --color );
  opacity: 0;
  transform: translateX( 0 ) translateY( 0 ) rotate( 0deg );
  animation: confettiFall var( --duration ) ease-out var( --delay ) forwards;
}

.empty-screen {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 20px;
  text-align: center;
  color: rgba( 245, 251, 255, 0.72 );
}

.recitation-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 10px 24px 18px;
}

.recitation-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  text-align: center;
}

.recitation-heading h1 {
  margin: 0;
  font-size: clamp( 2.5rem, 5vw, 4.2rem );
  letter-spacing: 0.12em;
  animation: tracking-in-expand-fwd 0.8s cubic-bezier( 0.215, 0.61, 0.355, 1 ) both;
}

.recitation-hero-copy {
  max-width: 780px;
  margin: 12px auto 0;
  color: rgba( 220, 232, 255, 0.78 );
  line-height: 1.7;
}

.recitation-layout {
  display: grid;
  grid-template-columns: minmax( 0, 1fr ) 340px;
  gap: 18px;
  min-height: calc( 100vh - 154px );
}

.recitation-stage-panel {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
}

.recitation-stage-meta {
  display: grid;
  grid-template-columns: minmax( 0, 1fr ) minmax( 320px, 420px ) auto;
  align-items: flex-start;
  gap: 18px;
}

.recitation-stage-meta h2 {
  margin: 0;
  font-size: 1.45rem;
}

.recitation-stage-meta p {
  margin: 8px 0 0;
  color: rgba( 220, 232, 255, 0.7 );
}

.recitation-floating-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  justify-self: center;
  align-items: stretch;
  width: 100%;
  max-width: 420px;
}

.recitation-class-select {
  min-width: 220px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  color: #11283d;
  background: linear-gradient( 135deg, rgba( 255, 255, 255, 0.96 ), rgba( 203, 231, 255, 0.92 ) );
  box-shadow: 0 14px 30px rgba( 0, 0, 0, 0.18 );
}

.recitation-reset-button {
  min-width: 118px;
  min-height: 54px;
  padding-inline: 18px;
  align-self: stretch;
}

.recitation-reset-button.is-disabled {
  opacity: 0.48;
  cursor: default;
  transform: none !important;
}

.recitation-stage {
  display: flex;
  flex: 1;
  min-height: 560px;
  flex-direction: column;
  margin-top: 16px;
  padding: 18px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient( circle at 18% 16%, rgba( 83, 157, 255, 0.18 ), transparent 26% ),
    radial-gradient( circle at 84% 22%, rgba( 255, 211, 111, 0.14 ), transparent 24% ),
    linear-gradient( 180deg, rgba( 10, 23, 42, 0.84 ), rgba( 9, 18, 35, 0.94 ) );
}

.recitation-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.recitation-stage-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.recitation-stage-head p {
  margin: 6px 0 0;
  color: rgba( 220, 232, 255, 0.68 );
}

.recitation-progress {
  display: grid;
  gap: 8px;
  min-width: 180px;
  justify-items: end;
}

.recitation-progress span {
  color: rgba( 242, 247, 255, 0.86 );
  font-size: 12px;
  letter-spacing: 0.22em;
}

.recitation-progress-track {
  width: 180px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba( 255, 255, 255, 0.08 );
  box-shadow: inset 0 0 0 1px rgba( 255, 255, 255, 0.06 );
}

.recitation-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient( 90deg, #7ce7da, #66c6ff, #ffd86b );
  transition: width 260ms ease;
}

.recitation-card-wall {
  display: grid;
  grid-template-columns: repeat( auto-fill, minmax( 170px, 1fr ) );
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
  overflow: auto;
}

.recitation-card {
  position: relative;
  min-height: 136px;
  padding: 18px 16px;
  border: 1px solid rgba( 255, 255, 255, 0.14 );
  border-radius: 24px;
  cursor: pointer;
  text-align: left;
  color: #f7fbff;
  background:
    linear-gradient( 180deg, rgba( 255, 255, 255, 0.12 ), rgba( 255, 255, 255, 0.04 ) ),
    linear-gradient( 145deg, rgba( 78, 127, 255, 0.42 ), rgba( 47, 232, 203, 0.2 ) );
  box-shadow: 0 16px 28px rgba( 5, 12, 28, 0.22 );
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: recitationCardRise 420ms cubic-bezier( 0.22, 1, 0.36, 1 ) both;
}

.recitation-card:hover {
  transform: translateY( -4px );
  border-color: rgba( 255, 255, 255, 0.28 );
  box-shadow: 0 24px 36px rgba( 23, 58, 120, 0.24 );
}

.recitation-card-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba( 245, 251, 255, 0.86 );
  background: rgba( 255, 255, 255, 0.12 );
}

.recitation-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1.2rem;
}

.recitation-card small {
  display: block;
  margin-top: 10px;
  color: rgba( 236, 243, 255, 0.72 );
  font-size: 0.94rem;
}

.recitation-result-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 20px;
}

.recitation-side-badge {
  min-width: 74px;
  text-align: center;
}

.recitation-done-list {
  display: grid;
  gap: 12px;
  flex: 1;
  min-height: 0;
  margin-top: 18px;
  padding-right: 4px;
  align-content: start;
  justify-items: start;
  overflow: auto;
}

.recitation-done-item {
  display: grid;
  grid-template-columns: 42px auto auto;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 14px;
  border: 0;
  border: 1px solid rgba( 255, 255, 255, 0.08 );
  border-radius: 22px;
  text-align: left;
  color: #f5f9ff;
  background: rgba( 255, 255, 255, 0.06 );
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.recitation-done-item:hover {
  transform: translateX( 4px );
  border-color: rgba( 255, 255, 255, 0.16 );
  background: rgba( 255, 255, 255, 0.1 );
}

.recitation-done-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #11283d;
  font-weight: 800;
  background: linear-gradient( 135deg, #ffd86b, #ffeca7 );
}

.recitation-done-copy {
  min-width: 0;
}

.recitation-done-copy strong {
  display: block;
  font-size: 1rem;
}

.recitation-done-copy span {
  display: block;
  margin-top: 6px;
  color: rgba( 220, 232, 255, 0.68 );
  font-size: 0.9rem;
}

.recitation-done-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #11283d;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient( 135deg, #ffd86b, #ffeca7 );
}

@keyframes recitationCardRise {
  0% {
    opacity: 0;
    transform: translateY( 18px ) scale( 0.94 );
  }
  100% {
    opacity: 1;
    transform: translateY( 0 ) scale( 1 );
  }
}

@keyframes sphereFloat {
  0% { transform: rotateX( -10deg ) rotateY( 0deg ); }
  100% { transform: rotateX( -10deg ) rotateY( 360deg ); }
}

@keyframes sphereSpin {
  0% { transform: rotateX( -10deg ) rotateY( 0deg ); }
  100% { transform: rotateX( -10deg ) rotateY( 360deg ); }
}

@keyframes highlightRise {
  0% {
    opacity: 0;
    transform: translateY( 24px ) scale( 0.92 );
  }
  100% {
    opacity: 1;
    transform: translateY( 0 ) scale( 1 );
  }
}

@keyframes confettiFall {
  0% {
    opacity: 0;
    transform: translateX( 0 ) translateY( 0 ) rotate( 0deg ) scale( 0.8 );
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX( var( --x ) ) translateY( 360px ) rotate( var( --rotate ) ) scale( 1 );
  }
}

@keyframes starsMove {
  from { transform: translateY( 0 ); }
  to { transform: translateY( -140px ); }
}

@keyframes starsRotate {
  from { transform: rotate( 0deg ) scale( 1.35 ); }
  to { transform: rotate( 360deg ) scale( 1.35 ); }
}

@keyframes gradientButton {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulsate-fwd {
  0% { transform: scale( 1 ); }
  50% { transform: scale( 1.08 ); }
  100% { transform: scale( 1 ); }
}

@keyframes tracking-in-expand-fwd {
  0% {
    letter-spacing: -0.4em;
    transform: translateZ( -220px );
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    transform: translateZ( 0 );
    opacity: 1;
  }
}

@media ( max-width: 1080px ) {
  .question-layout {
    grid-template-columns: 1fr;
  }

  .recitation-layout {
    grid-template-columns: 1fr;
  }

  .question-stage {
    min-height: 500px;
  }

  .recitation-stage {
    min-height: 500px;
  }
}

@media ( max-width: 720px ) {
  .question-shell {
    padding-inline: 14px;
  }

  .recitation-shell {
    padding-inline: 14px;
  }

  .question-stage-panel,
  .question-result-panel {
    padding-inline: 14px;
  }

  .recitation-stage-panel,
  .recitation-result-panel {
    padding-inline: 14px;
  }

  .question-stage-meta {
    grid-template-columns: 1fr;
  }

  .recitation-stage-meta {
    grid-template-columns: 1fr;
  }

  .result-head {
    flex-direction: column;
  }

  .question-floating-controls {
    justify-content: flex-start;
  }

  .recitation-floating-controls {
    justify-content: flex-start;
    align-items: stretch;
  }

  .recitation-progress {
    min-width: 0;
    justify-items: stretch;
  }

  .recitation-progress-track {
    width: 100%;
  }

  .recitation-stage-head {
    flex-direction: column;
    align-items: stretch;
  }

  .recitation-done-item {
    width: 100%;
    grid-template-columns: 42px minmax( 0, 1fr ) auto;
  }

  .result-actions {
    gap: 12px;
  }
}
