@font-face{font-family:StageSerif;src:url('/assets/instrument.woff2') format('woff2');font-display:swap}
body:has(.paid-stage){background:#1e101d;color:#fff0e3}
.paid-stage{width:min(100% - 2rem,45rem);max-width:none;margin:1.4rem auto 3rem;padding:0}
.paid-stage [hidden]{display:none!important}
.stage-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.paid-stage .stage-brand,.paid-stage .sample-nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem 0;color:#f3bbd2;font-size:.77rem}
.paid-stage .stage-brand{border-bottom:1px solid #a05d7a;letter-spacing:.13em}
.sample-nav a,.paid-stage .gift-next a{color:#ffe1ec;text-underline-offset:.2em}
.paid-stage article{padding:0;overflow:hidden;background:#3a172b;border:1px solid #a66480;border-radius:.3rem;box-shadow:0 1.4rem 4rem #0e050d88;margin-top:.9rem}
.paid-stage .stage-art{position:relative;overflow:hidden;display:grid;aspect-ratio:3/2;margin:0;background:#471b2e;isolation:isolate;transition:aspect-ratio .5s ease}
.paid-stage .stage-art img{width:100%;height:100%;border-radius:0;object-fit:cover;object-position:center;position:absolute;inset:0}
.paid-stage .stage-art:after{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#2f1029a0)}
.paid-stage[data-layout=reveal] .stage-art i{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,transparent 47%,#ffd1de36 48%,#ffd1de66 50%,#ffd1de36 52%,transparent 53%);transition:opacity .35s,transform .5s}
.paid-stage[data-layout=reveal] article:not([data-step=cover]) .stage-art i{opacity:0;transform:scaleX(2.8)}
.paid-stage article:is([data-step=inside],[data-step=photo],[data-step=lock]) .stage-art{aspect-ratio:3.4;}
.paid-stage article:is([data-step=inside],[data-step=photo],[data-step=lock]) .stage-art img{object-position:50% 38%}
.paid-stage[data-layout=story] article:not([data-step=cover]) .stage-art img{filter:saturate(.7)}
.paid-stage[data-layout=story] article{background:#f6e5d6;color:#3a172b}
.paid-stage[data-layout=story] article[data-art="2"]{background:#f3cdd6}
.paid-stage[data-layout=story] article[data-art="4"]{background:#e8ddef}
.paid-stage[data-layout=story] article:is([data-step=cover],[data-step=final]){background:#f3d9d6}
.paid-stage article[data-personal-cover] .stage-art{aspect-ratio:4/3;background:#28151e}
.paid-stage article[data-personal-cover] .stage-art img{object-fit:contain}
.paid-stage .stage-copy{padding:clamp(1.1rem,4vw,2.1rem);display:flow-root}
.paid-stage small,.paid-stage #chapter-count{display:inline-block;color:#ffc6de;font-weight:750;text-transform:uppercase;font-size:.7rem;letter-spacing:.13em}
.paid-stage #chapter-count{margin:0 0 0 .7rem}
.paid-stage[data-layout=story] :is(small,#chapter-count){color:#8c3857}
.paid-stage h2{font:400 clamp(2.5rem,8vw,4.6rem)/.96 StageSerif,Georgia,serif;margin:.35em 0 .37em;overflow-wrap:anywhere}
.paid-stage #copy{font-size:1.04rem;line-height:1.63;max-width:33rem;margin:.7rem 0 1rem;overflow-wrap:anywhere}
.paid-stage #photo{max-height:24rem;width:auto;max-width:100%;border-radius:.2rem;border:1px solid #d69cb8;margin:.75rem 0}
.paid-stage .stage-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.paid-stage button{min-height:44px;border:1px solid #ae6f91;background:#f8c4d8;color:#371229;font-weight:700}
.paid-stage #back{background:transparent;color:inherit;border-color:currentColor}
.paid-stage #play-story{background:transparent;color:inherit;border-color:currentColor}
.paid-stage #tools{padding:.65rem 0}
.paid-stage #tools button{margin-right:.45rem}
.paid-stage #interaction input{max-width:28rem;margin:.8rem 0;min-height:44px}
.paid-stage #interaction .sample-answer{font-size:.88rem;color:#ffd0e2}
.paid-stage audio{width:min(100%,26rem)}
.paid-stage button:focus-visible,.paid-stage a:focus-visible{outline:2px solid #d997c6;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.paid-stage .stage-art,.paid-stage .stage-art i{transition:none}}

html:has(.paid-stage){background:#1e101d}
body:has(.paid-stage){display:flow-root}
#stage-feedback:empty{display:none}
#stage-feedback{font-weight:700;margin:.85rem 0 0;color:#9d244e}
.paid-stage #stage-feedback{color:#ffd2a8}
.paid-stage article[data-epic-puzzle] .stage-art{aspect-ratio:4.6;min-height:4.2rem}
.paid-stage article[data-epic-puzzle] h2{font-size:clamp(2.25rem,7.5vw,4rem);line-height:1.04}
.paid-stage article[data-epic-puzzle] #copy{margin-bottom:.85rem}
.epic-keyring{display:flex;align-items:center;gap:.5rem;color:#ffd6e6;font-size:.82rem;font-weight:700;margin:.75rem 0}
.epic-keyring b{display:grid;place-items:center;min-width:1.85rem;min-height:1.85rem;border:1px solid #a66480;border-radius:.3rem;color:#ffddaa;background:#24101f;font-size:1.05rem}
.epic-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;margin:.75rem 0}
.paid-stage .epic-options button{min-width:0;display:grid;align-content:center;gap:.28rem;min-height:4.7rem;border-radius:.4rem;background:#f9e8db;color:#3a162a;padding:.55rem .28rem;margin:0;text-align:center;overflow-wrap:anywhere}
.epic-options button strong{font-size:clamp(.82rem,3.2vw,1rem)}
.epic-options button span{font-size:.75rem;font-weight:500;color:#66324b}
.paid-stage .epic-options button[aria-pressed=true]{background:#ffd3e5;border:2px solid #fe9bc4;box-shadow:inset 0 -4px #d36a98}
.paid-stage .epic-options button:disabled{opacity:1;cursor:default}
.epic-sequence{margin:.45rem 0 0;color:#ffe0ec;font-size:.88rem}
.epic-hints,.epic-memory{border-top:1px solid #915b77;padding:.55rem 0;margin-top:.35rem}
.epic-hints summary,.epic-memory summary{display:list-item;min-height:44px;align-content:center;font-weight:650;color:#ffd0e3;cursor:pointer}
.epic-hints p,.epic-memory p{margin:.45rem 0;color:#ffdfeb}
.epic-hints p:empty{display:none}
.paid-stage .epic-text-button{border:0;background:transparent;padding:.46rem .13rem;color:#ffd8ea;text-decoration:underline;text-underline-offset:.25rem;font-weight:650}
.epic-code input{width:8.5rem;font-weight:750;letter-spacing:.24em}
.epic-tickets{grid-template-columns:repeat(2,minmax(0,1fr))}
.paid-stage .epic-tickets button{background:#f6dfb6;border:1px dashed #8d5064}
.paid-stage .epic-frames button{outline-offset:3px;background:#efdaed;border-block:5px dotted #552344}
.paid-stage article[data-epic-puzzle] #photo{max-height:10rem;object-fit:contain}
.paid-stage[data-epic] article[data-step=final] .stage-copy{
  background:linear-gradient(150deg,#4d1734,#290e22);
  border-top:1px solid #d89cb2;
}
.paid-stage[data-epic] article[data-step=final] #label{color:#ffdcae}
