:root{color-scheme:light;--ink:#252d8d;--blue:#263eaf;--paper:#fff4dd;--coral:#f48e77;--muted:#58343c;font-family:Arial,Helvetica,sans-serif;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:var(--coral);color:var(--ink)}button,input{font:inherit}button{min-width:44px;min-height:44px;border:1px solid transparent;cursor:pointer;color:var(--ink);background:var(--paper);border-radius:100px;padding:10px 17px;font-size:13px;font-weight:700;line-height:1.15;box-shadow:0 2px 0 #853d3520;touch-action:manipulation}button:hover{background:#fffaf0;transform:translateY(-1px)}button:active{transform:translateY(1px)}button:focus-visible,canvas:focus-visible,input:focus-visible{outline:3px solid var(--ink);outline-offset:4px}button[aria-pressed=true]{background:var(--ink);color:var(--paper)}button:disabled{opacity:.48;cursor:default;transform:none}button.primary{background:var(--blue);color:white;min-width:166px;text-align:left;display:flex;justify-content:space-between;gap:18px}.primary span{font-size:20px;line-height:14px}#square{display:block;position:fixed;inset:0;width:100%;height:100%;touch-action:none;outline-offset:-6px}.masthead{position:fixed;top:max(28px,env(safe-area-inset-top));left:max(32px,env(safe-area-inset-left));pointer-events:none}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:700;margin:0 0 14px}.eyebrow span{margin-left:12px;opacity:.6}h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-1.6px;line-height:.99;font-size:46px;margin:0}.period{color:var(--paper)}.subtitle{font-family:Georgia,serif;font-size:15px;font-style:italic;margin:13px 0}.utilities{position:fixed;top:max(25px,env(safe-area-inset-top));right:max(30px,env(safe-area-inset-right));display:flex;gap:8px}.utilities button{background:#ffefd969;box-shadow:none;border:1px solid #263eaf26}.utilities #help{font-family:Georgia,serif;font-size:22px;padding:8px}.utilities #sound{font-size:16px}.utilities #sound span{font:700 11px Arial;margin-left:8px}.story{position:fixed;left:32px;bottom:185px;max-width:350px;pointer-events:none}.story .chapter{font-size:9px;letter-spacing:1.7px;font-weight:700;margin:0 0 8px}.story h2{font:normal 26px/1.12 Georgia,serif;letter-spacing:-.5px;margin:0 0 8px}.story>p:last-of-type{font-size:12px;line-height:1.6;margin:0;color:#58343c;max-width:320px}.receipt{display:flex;gap:12px;align-items:center;margin-top:12px}.receipt[hidden]{display:none}.receipt span{font-size:9px;text-align:center;display:flex;flex-direction:column}.receipt svg{width:60px;height:46px}.receipt button{pointer-events:auto;font-size:11px;padding:10px 14px}.selected-label{position:fixed;right:32px;bottom:161px;font-size:10px;letter-spacing:.2px;pointer-events:none}.selected-dot{width:7px;height:7px;background:var(--paper);display:inline-block;border-radius:50%;margin-right:7px;box-shadow:0 0 0 2px var(--ink)}#selected-name{font-weight:700}#phrase-count{color:#58343c}#dancer-detail{display:block;margin-top:5px;font-size:9px;color:#58343c}.dock{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:32px;right:32px;pointer-events:none;display:flex;flex-direction:column;gap:8px;align-items:center}.dock button{pointer-events:auto}.actions,.transport{display:flex;gap:7px;justify-content:center}.transport button{background:#ffeed9ad;font-size:11px;font-weight:600;padding:10px 14px;box-shadow:none;border-color:#fff3dc55}.transport button[aria-pressed=true]{background:#27368e;color:var(--paper)}.input-hint{margin:1px 0 0;font-size:10px;letter-spacing:.25px;color:#58343c;pointer-events:none}dialog{width:min(550px,calc(100% - 26px));max-height:calc(100dvh - 40px);border:0;border-radius:22px;background:var(--paper);color:var(--ink);padding:25px 30px;box-shadow:0 20px 100px #542a3950;overflow:auto}dialog::backdrop{background:#3f284d60;backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-top .eyebrow{margin:0}#close-help{font-size:24px;background:#f8d1bc;flex-shrink:0}dialog h2{font:normal 33px/1.06 Georgia,serif;margin:15px 0}dialog p,dialog li{font-size:13px;line-height:1.6}dialog ol{padding-left:22px}dialog li{margin:12px 0}dialog strong{font-weight:700}.motion-setting{border-top:1px solid #27368e33;border-bottom:1px solid #27368e33;padding:15px 0}.motion-setting label{display:flex;min-height:44px;align-items:center;gap:12px;font-weight:700;font-size:13px}.motion-setting input{accent-color:var(--blue);width:22px;height:22px}.motion-setting p{margin-bottom:0}.credits{font-size:11px;opacity:.8}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}noscript{position:fixed;bottom:45%;background:var(--paper);padding:20px;margin:15px}
@media(min-width:1000px){.dock{align-items:flex-end}.story{bottom:40px;max-width:315px}.selected-label{bottom:178px}.actions,.transport{gap:8px}.input-hint{margin-right:3px}.masthead h1{font-size:50px}}
@media(max-width:600px){.masthead{top:max(23px,env(safe-area-inset-top));left:20px}.eyebrow{font-size:8px;letter-spacing:1.3px;margin-bottom:12px}.eyebrow span{margin-left:6px}h1{font-size:36px;letter-spacing:-1px}.subtitle{font-size:13px;margin-top:10px}.utilities{top:max(21px,env(safe-area-inset-top));right:14px;flex-direction:column;gap:7px}.utilities button{padding:10px;width:44px}.utilities #sound span{display:none}.story{left:20px;right:20px;top:172px;bottom:auto;max-width:290px}.story .chapter{font-size:8px;letter-spacing:1.4px;margin-bottom:6px}.story h2{font-size:22px;margin-bottom:6px}.story>p:last-of-type{font-size:11px;line-height:1.4;max-width:280px}.dock{left:12px;right:12px;bottom:max(14px,env(safe-area-inset-bottom));gap:8px}.actions{width:100%;gap:6px}.actions button{flex:1;padding:10px 10px;min-width:0;font-size:11px;min-height:46px}.actions button.primary{min-width:0;gap:4px}.transport{width:100%;gap:4px;flex-wrap:wrap}.transport button{padding:8px 9px;font-size:10px;min-height:44px;flex:1;white-space:nowrap}#follow{flex:1.65}#flourish{flex:1.2}.input-hint{font-size:9px;letter-spacing:0;text-align:center;max-width:95%;line-height:1.4;margin:0}.selected-label{left:20px;right:auto;bottom:146px;font-size:9px}.receipt{margin-top:8px;gap:9px}.receipt svg{height:34px;width:46px}.receipt button{font-size:10px}.receipt span{font-size:8px}dialog{padding:20px}dialog h2{font-size:29px}}
@media(max-width:350px){h1{font-size:32px}.eyebrow span{display:none}.subtitle{font-size:12px}.story{top:161px}.story h2{font-size:20px}.story>p:last-of-type{font-size:10px;max-width:250px}.transport{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.transport button{padding:6px 3px;white-space:normal;font-size:9px}.selected-label{bottom:148px}.actions button{font-size:10px;padding:9px 8px}.input-hint{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}button:hover,button:active{transform:none}}

/* Focused return and small-screen spacing. */
.receipt{gap:10px}.receipt svg{width:100px;height:78px}.receipt span{font-size:11px}.receipt button{min-height:44px}
@media(max-width:600px){
 .story{max-width:none}.story>p:last-of-type{max-width:100%}
 .transport{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .transport button{min-height:44px;min-width:0;font-size:11px;line-height:1.2;padding:8px 5px;white-space:nowrap}
 .actions{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:6px}
 .actions button{font-size:11px;line-height:1.2;padding:9px 6px;min-height:46px}
 .actions button.primary{gap:3px}.primary span{font-size:15px}
 .selected-label{bottom:198px;right:20px;font-size:10px;line-height:1.3}
 #dancer-detail{font-size:10px}.input-hint{font-size:10px;min-height:28px;line-height:1.35}
 .receipt{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr) 90px;gap:6px;align-items:center;margin-top:8px}
 .receipt svg{width:100%;height:72px}.receipt span{font-size:10px}.receipt button{font-size:11px;padding:10px 8px;line-height:1.3}
}
@media(max-width:350px){
 .story>p:last-of-type{font-size:11px;line-height:1.4}.actions button{font-size:11px}.input-hint{font-size:10px}
 .receipt{grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) 78px;gap:5px}.receipt svg{height:62px}
}
