/* Mobile-first enhancement: all motion uses opacity and transforms to keep
   animation smooth on mobile GPUs. This file contains no guest state. */
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { -webkit-tap-highlight-color:transparent; }
button { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.choices, .choice, .choice-title, .statbar, .round-theme-bar {min-width:0}
.choice-title {overflow-wrap:anywhere;line-height:1.45}
.round-stage,.stage-primary,.choice,.question-shell,.welcome-aura,.blessing-halo,.cinematic,.chapter-curtain { -webkit-backface-visibility:hidden;backface-visibility:hidden; }
/* Make selection feedback reliable on touch (no :hover dependency). */
.choice:focus-visible {outline:2px solid #ffe6a4;outline-offset:2px}
.choice:active:not(:disabled) {transform:scale(.975)}
.choice.selected,.choice[aria-pressed="true"] {transform:translate3d(0,0,0) scale(1.015)}
.choice.picked {animation:mobileTapPop .44s cubic-bezier(.2,.78,.2,1) both}
@keyframes mobileTapPop {0%{transform:scale(.97)}52%{transform:scale(1.04)}100%{transform:scale(1.015)}}
/* Pure-transform sparkles also work on browsers without complex filters. */
.sparkle-track i {width:6px;height:6px;will-change:transform,opacity}
.chapter-curtain {overflow:hidden;overscroll-behavior:contain}
.chapter-curtain .curtain-core {max-width:min(92vw,420px)}
.chapter-curtain .curtain-rays {inset:-45vmax}
.confirm-overlay {overflow-y:auto;overscroll-behavior:contain}
.confirm-card {max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
@media(max-width:600px) {
  html,body {max-width:100%;overflow-x:clip}
  body {min-height:100svh}
  .shell {width:100%;max-width:100%;padding:calc(15px + env(safe-area-inset-top,0px)) max(13px,env(safe-area-inset-right,0px)) calc(34px + env(safe-area-inset-bottom,0px)) max(13px,env(safe-area-inset-left,0px))}
  .top {gap:7px;align-items:flex-start}
  .brand {gap:7px;letter-spacing:1px;font-size:10px;min-width:0}
  .brand-mark {width:34px;height:34px;flex:0 0 34px;font-size:20px}
  .brand small {font-size:8px;letter-spacing:.65px;line-height:1.5}
  .live {font-size:8px;letter-spacing:.35px;padding:7px 8px;max-width:45%;white-space:normal;text-align:center;line-height:1.4}
  .hero,.hero.compact {padding:25px 0 20px}
  h1 {font-size:clamp(40px,12vw,61px);letter-spacing:-1.7px;line-height:1.05;margin:10px 0 13px}
  .hero p {font-size:12px;line-height:1.55}
  .eyebrow {font-size:9px;letter-spacing:1.5px}
  .scene-label {letter-spacing:1px;font-size:9px;line-height:1.6}
  .crown {margin-top:8px;font-size:28px}
  .mystery {gap:5px;margin-top:18px}
  .mystery span {width:clamp(31px,10vw,42px);height:clamp(41px,12vw,52px);font-size:20px}
  .ceremony-clock {max-width:100%;padding:13px 9px;margin-top:17px}
  .clock-values {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .clock-values b {min-width:0;font-size:clamp(18px,6vw,27px);padding:6px 1px}
  .clock-values b small {font-size:8px;letter-spacing:0}
  .panel {border-radius:20px;padding:19px 14px;backdrop-filter:none;-webkit-backdrop-filter:none}
  .panel h2 {font-size:clamp(23px,6.3vw,30px);overflow-wrap:anywhere}
  .round-stage {height:124px;margin:0 0 15px;contain:paint}
  .round-stage::before {inset:-55px;filter:none;opacity:.32}
  .round-stage::after {filter:blur(16px);opacity:.18}
  .stage-mandala {width:88px;height:88px;top:9px}
  .stage-primary {font-size:41px}
  .stage-caption {letter-spacing:1.3px;font-size:8px;bottom:7px}
  .stage-orbit {font-size:15px}
  .round-theme-bar {font-size:9px;gap:7px;letter-spacing:.55px;margin-bottom:14px}
  .round-symbol {width:35px;height:35px;flex:0 0 35px;font-size:19px}
  .round-index {font-size:8px;letter-spacing:.25px}
  .roundline {margin-bottom:16px}
  .statbar {margin-bottom:16px}
  .stat {padding:8px 9px}
  .question-shell {padding:3px 5px 5px}
  .question {font-size:clamp(19px,5.4vw,24px);line-height:1.33;margin:10px 0 16px}
  .choices {gap:10px}
  .choice {min-height:61px;padding:11px 12px;gap:10px;border-radius:14px;animation:mobileChoiceIn .48s cubic-bezier(.2,.7,.2,1) both}
  .choice:nth-child(2){animation-delay:.07s}.choice:nth-child(3){animation-delay:.14s}.choice:nth-child(4){animation-delay:.21s}
  .choice .letter {width:34px;height:34px;flex:0 0 34px}
  .choice-title {font-size:clamp(13px,3.6vw,16px)}
  .choice-status {font-size:17px;flex:0 0 auto}
  .choice.selected,.choice[aria-pressed="true"] {outline:0;box-shadow:0 0 0 2px var(--scene-warm),0 0 17px color-mix(in srgb,var(--scene-glow) 40%,transparent)}
  .cta,.secondary-action {min-height:48px;font-size:13px;line-height:1.3}
  .welcome-aura {height:112px}.welcome-aura:before {width:116px;height:116px}.welcome-aura span{font-size:29px}.welcome-aura span:nth-child(2){font-size:50px}
  .welcome-experience h2 {font-size:clamp(26px,7.5vw,36px)}
  .welcome-chips {margin:15px 0 20px}.welcome-chips span {font-size:10px;padding:8px}
  .blessing-halo {width:126px;height:126px;margin:8px auto 17px}.blessing-icon {font-size:52px}
  .gratitude-title {font-size:clamp(26px,7.4vw,36px)!important}
  .gratitude-copy {font-size:13px;line-height:1.75}
  .blessing-message {gap:5px;padding:13px 8px}.blessing-message>span{font-size:18px}
  .blessing-message strong {font-size:12px}.blessing-message small {font-size:11px}
  .chapter-curtain .curtain-symbol {font-size:65px}.curtain-title {font-size:clamp(23px,7vw,32px)}
  .cinematic {padding:22px 8px 25px}.temple-stage {height:185px}.temple-doors {height:137px}
  .cinema-name {max-width:100%}.revealed-name {overflow-wrap:anywhere;font-size:clamp(27px,7.5vw,55px)}
  .cinema-actions {flex-direction:column;align-items:stretch}.cinema-actions .cta,.cinema-actions .secondary-action {width:100%}
  .confirm-card {padding:20px 15px;border-radius:18px}
  .confirm-card h3 {font-size:20px}.confirm-answer {font-size:18px}
  .confirm-actions {flex-direction:column}.confirm-actions>* {width:100%}
  #confetti {position:fixed;contain:strict;pointer-events:none}
  /* Avoid expensive offscreen blur filters which can stall low-end phones. */
  .panel.round-arrive {animation:mobilePanelIn .46s ease-out both}
  .question-entrance {animation:mobileQuestionIn .56s ease-out both}
  .round-stage.stage-active {animation:mobileStageIn .58s ease-out both}
  .round-stage.stage-active .stage-primary {animation:mobileIconIn .6s ease-out both,iconAscend 3.5s ease-in-out .6s infinite}
  .chapter-curtain.curtain-leave {animation:mobileCurtainOut .42s ease-in forwards}
}
@keyframes mobileChoiceIn {from{opacity:0;transform:translate3d(0,13px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes mobileStageIn {from{opacity:.5;transform:translate3d(0,15px,0) scale(.96)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes mobilePanelIn {from{opacity:0;transform:translate3d(0,16px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes mobileQuestionIn {from{opacity:0;transform:translate3d(0,11px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes mobileIconIn {from{opacity:0;transform:translate3d(0,8px,0) scale(.75)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes mobileCurtainOut {to{opacity:0;transform:scale(1.035)}}
@media(max-width:340px){.brand small{display:none}.panel{padding:16px 11px}.live{font-size:7px}.stat span{font-size:8px}.round-index{font-size:7px}}
@media(prefers-reduced-motion:reduce){html:not(.motion-override) .choice,html:not(.motion-override) .round-stage,html:not(.motion-override) .round-stage *,html:not(.motion-override) .chapter-curtain,html:not(.motion-override) .chapter-curtain *,html:not(.motion-override) .question-entrance,html:not(.motion-override) .panel.round-arrive{animation:none!important;transition:none!important}html:not(.motion-override) .chapter-curtain{opacity:1}html:not(.motion-override) .choice.selected{transform:none}
}

/* Automatic animations: no preview button or manual control. */
.motion-preview{animation:motionPreview 1.15s ease-in-out both!important;transform-origin:center;}
@keyframes motionPreview{0%{transform:scale(.85) rotate(-6deg);opacity:.65}45%{transform:scale(1.09) rotate(3deg);opacity:1;filter:drop-shadow(0 0 14px #f3d396)}100%{transform:scale(1) rotate(0);opacity:1}}
#main{scroll-margin-top:16px}
@media(max-width:600px){
  .round-stage{isolation:isolate}
  .choice.picked,.choice.selected.picked{animation:mobileTapPop .44s ease-out both!important}
  .chapter-curtain{will-change:opacity;transform:translateZ(0)}
  .stage-primary,.stage-orbit{will-change:transform,opacity}
}
