/* Layout: topic index on the left, one document sheet on the right. */
:root{--paper:#f6f7f5;--sheet:#fff;--ink:#17223b;--soft:#515c72;--rule:#d5deea;--pen:#b3262e;--mark:#ffe9a0;--mark-ink:#17223b;color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--paper:#101624;--sheet:#171f31;--ink:#e8ecf4;--soft:#a8b2c6;--rule:#2b3650;--pen:#ff8a8f;--mark:#5a4a12;--mark-ink:#fff3c4;color-scheme:dark}}
:root[data-theme="dark"]{--paper:#101624;--sheet:#171f31;--ink:#e8ecf4;--soft:#a8b2c6;--rule:#2b3650;--pen:#ff8a8f;--mark:#5a4a12;--mark-ink:#fff3c4;color-scheme:dark}
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--paper);color:var(--ink);font:15px/1.55 "Instrument Sans",system-ui,sans-serif}
.wrap{max-width:1120px;margin:0 auto;padding:0 18px}
header{border-bottom:1px solid var(--rule)}
header .wrap{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding-block:14px}
.logo{font:600 23px Newsreader,Georgia,serif}.logo span{color:var(--pen)}
button,select,textarea,input{font:inherit;color:inherit}
button{cursor:pointer;border:1px solid var(--rule);background:transparent;border-radius:4px;padding:8px 14px}
button.on,button.go{background:var(--ink);color:var(--paper);border-color:var(--ink)}
button:disabled{opacity:.5;cursor:default}
:focus-visible{outline:3px solid var(--pen);outline-offset:2px}
.views,.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{border-radius:99px;font-size:13px;padding:6px 12px}
main{padding:22px 0 60px}
.cols{display:grid;grid-template-columns:310px minmax(0,1fr);gap:24px;margin-top:16px;align-items:start}
input,textarea,select{background:var(--sheet);border:1px solid var(--rule);border-radius:4px;padding:10px;width:100%}
.list{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.item{text-align:left;background:var(--sheet);padding:11px 13px}
.item.on{background:var(--sheet);color:var(--ink);border:1px solid var(--pen);box-shadow:inset 4px 0 var(--pen)}
.item b{display:block;font:500 17px/1.3 Newsreader,Georgia,serif}
.meta{font-size:12px;color:var(--soft)}
.sheet{background:var(--sheet);border:1px solid var(--rule);padding:30px;min-width:0;overflow-wrap:anywhere}
.doc{font:18px/1.7 Newsreader,Georgia,serif;max-width:68ch}
.doc h2{font:600 25px/1.25 Newsreader,Georgia,serif;margin:6px 0 14px;text-wrap:balance}
.doc h3{font:600 19px/1.4 Newsreader,Georgia,serif;margin:22px 0 8px}
.doc p{margin:0 0 12px}.doc ul{padding-left:22px;margin:0 0 12px}
.doc .link{padding-left:24px;text-indent:-24px}
.note{background:var(--mark);color:var(--mark-ink);padding:10px 14px;font-size:14px;margin:18px 0 0;max-width:70ch}
.note summary{cursor:pointer;font-weight:600}.note ul{padding-left:18px;margin-top:6px}
.ask{max-width:780px;margin-top:16px}
.ask label{display:block;font-weight:600;margin:12px 0 6px}
.row{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;align-items:center}
.row select{width:auto}
#out{margin-top:20px}
a{color:inherit}
@media(max-width:800px){.cols{grid-template-columns:minmax(0,1fr)}.sheet{padding:20px}.list{max-height:300px;overflow:auto}}

/* Mystical accents: twilight header and mascot panel. Reading sheets are unchanged. */
header{--paper:#171232;--ink:#f0ecff;--soft:#bdb4e6;--rule:#4a3f86;--sheet:#221a47;--pen:#7ee8dc;
  color:var(--ink);background:radial-gradient(60% 160% at 15% 0%,#4b2a8a 0%,transparent 60%),radial-gradient(50% 140% at 90% 100%,#0f5f66 0%,transparent 60%),#171232 !important;
  border-bottom:1px solid #5d4bb0;box-shadow:0 6px 24px -12px #7b5cff}
.logo{display:flex;align-items:center}
.logo img{margin-right:10px}
.logo img{width:38px;height:38px;border-radius:50%;border:2px solid #7ee8dc;box-shadow:0 0 12px #8b6cff}
.familiar{display:flex;flex-wrap:wrap;align-items:center;gap:22px;padding:20px;border-radius:10px;color:#f0ecff;
  background:radial-gradient(70% 140% at 0% 0%,#4b2a8a 0%,transparent 65%),radial-gradient(60% 120% at 100% 100%,#0f5f66 0%,transparent 65%),#171232;
  box-shadow:0 14px 34px -22px #7b5cff}
.familiar>img{width:150px;height:150px;border-radius:12px;border:1px solid #7ee8dc;box-shadow:0 0 22px #8b6cffaa;flex:none}
.familiar .say{flex:1 1 260px;min-width:0}
.familiar h2{font:500 24px/1.2 Newsreader,Georgia,serif;margin:0 0 6px;color:inherit}
.familiar p{margin:0 0 12px;color:#cfc8f2;font-size:15px}
.choices{display:flex;flex-wrap:wrap;gap:10px}
.choices button{display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;border:1px solid #4a3f86;border-radius:10px;padding:6px;color:#f0ecff;font:500 12px "Instrument Sans",system-ui,sans-serif;cursor:pointer}
.choices button img{width:58px;height:58px;border-radius:8px}
.choices button[aria-pressed="true"]{border-color:#7ee8dc;box-shadow:0 0 14px #7ee8dc88;background:#2b2160}
@media(max-width:520px){.familiar>img{width:110px;height:110px}}

.label{font-weight:600;font-size:13px;margin:0 0 6px}.row .label{margin:0}
#school{width:auto;min-width:220px}
/* Writing studio: the mascot's picture beside the surface it writes on. */
.studio{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:20px;margin-top:20px;align-items:start}
.scene{position:sticky;top:12px;container-type:inline-size}
.scene img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:10px;box-shadow:0 0 26px #8b6cff66}
.scene figcaption{font-size:13px;color:var(--soft);margin-top:8px}
.ink{position:absolute;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;font:700 4.2cqw/1.05 Caveat,cursive;text-align:center;pointer-events:none}
.writing .ink::after{content:"\2726";align-self:center;color:#7ee8dc;text-shadow:0 0 10px #8b6cff,0 0 4px #000;animation:quill .7s ease-in-out infinite alternate}
.writing .scene img{animation:glow 1.6s ease-in-out infinite alternate}
@keyframes quill{from{transform:translateX(-1.4em) scale(.8)}to{transform:translateX(1.4em) scale(1.3)}}
@keyframes glow{from{box-shadow:0 0 18px #8b6cff66}to{box-shadow:0 0 38px #7ee8dccc}}
@media(prefers-reduced-motion:reduce){.writing .ink::after,.writing .scene img{animation:none}}
.board{min-width:0;min-height:320px;overflow-wrap:anywhere;border-radius:8px;padding:28px;background:var(--bg);color:var(--fg);border:10px solid var(--frame);--soft:var(--fg)}
.board .hint{font:700 28px/1.25 Caveat,cursive}
.board .doc{color:var(--fg)}.board .doc h2{font:700 32px/1.15 Caveat,cursive}.board .doc h3{color:var(--head)}
[data-surface=book]{--bg:#f4e9cd;--fg:#2c1e10;--head:#6b2412;--frame:#5a3b22}
[data-surface=chalkboard]{--bg:#1d2b28;--fg:#eef6ee;--head:#ffe9a0;--frame:#6d4a2b}
[data-surface=whiteboard]{--bg:#fbfcff;--fg:#1f1a52;--head:#7a1f8a;--frame:#9aa0b5}
@media(max-width:800px){.studio{grid-template-columns:minmax(0,1fr)}.scene{position:relative;top:0;max-width:440px}.board{padding:18px;border-width:6px}}
main{padding-bottom:140px}

.say .tour-btn{margin:0 0 12px;background:#7ee8dc;border:1px solid #7ee8dc;color:#12182b;border-radius:99px;padding:7px 16px;font:600 13px "Instrument Sans",system-ui,sans-serif;cursor:pointer}
.coach{position:fixed;right:14px;bottom:14px;z-index:50;display:flex;align-items:flex-end;gap:10px;max-width:calc(100% - 28px)}
.coach .bubble{background:#171232;color:#f0ecff;border:1px solid #7ee8dc;border-radius:14px 14px 4px 14px;padding:12px 14px;width:300px;min-width:0;box-shadow:0 12px 30px -10px #000a,0 0 16px #8b6cff66;font:14px/1.45 "Instrument Sans",system-ui,sans-serif}
.coach .bubble b{display:block;font:600 16px Newsreader,Georgia,serif;margin-bottom:4px}
.coach .bubble p{margin:0;color:#e4defc}
.coach .acts{display:flex;gap:8px;margin-top:10px}
.coach .acts button{background:transparent;color:#f0ecff;border:1px solid #6e5dc4;border-radius:99px;padding:5px 12px;font:600 12px "Instrument Sans",system-ui,sans-serif;cursor:pointer}
.coach .face{flex:none;width:64px;height:64px;padding:0;border-radius:50%;overflow:hidden;border:2px solid #7ee8dc;background:#171232;box-shadow:0 0 18px #8b6cff;cursor:pointer}
.coach .face img{width:100%;height:100%;object-fit:cover;display:block}
.coach.quiet:not(.touring){display:none}
.coach .bubble[hidden],.coach .acts button[hidden]{display:none}
.spot{outline:3px solid #7ee8dc !important;outline-offset:4px;box-shadow:0 0 26px #8b6cff !important;border-radius:6px}
@media(max-width:520px){.coach .bubble{width:auto;font-size:13px}.coach .face{width:48px;height:48px}}

body:not(.locked) #gate{display:none}
body.locked>header,body.locked>main,body.locked>.coach{display:none}
body.noguide>.coach,body.noguide #familiar,body[data-view=ask] #familiar,body[data-view=settings] #familiar{display:none}
#familiar{padding:12px 16px;gap:14px}
#familiar>img{width:72px;height:72px}
#familiar h2{font-size:18px;margin:0 0 2px}#familiar p{margin:0 0 8px;font-size:14px}
/* Log in and first-visit mascot choice */
#gate{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100vh}
.gate-art{background:radial-gradient(70% 60% at 0% 0%,#4b2a8a,transparent 65%),radial-gradient(60% 50% at 100% 100%,#0f5f66,transparent 65%),#171232;color:#f0ecff;padding:36px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.logo-g{font:600 28px Newsreader,Georgia,serif}.logo-g span{color:#7ee8dc}
#g-img{width:min(100%,440px);height:auto;aspect-ratio:1;border-radius:14px;box-shadow:0 0 34px #8b6cffaa}
.gate-art .bubble{border:1px solid #7ee8dc;border-radius:12px;padding:10px 16px;max-width:440px;text-align:center}
.gate-art ul{color:#cfc8f2;font-size:14px;padding-left:18px}
.gate-form{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:36px;max-width:520px;width:100%;margin:0 auto;min-width:0}
.gate-form h1,#v-settings h2{font:600 28px/1.2 Newsreader,Georgia,serif}
#gate label,#v-settings label{display:block;font-weight:600;font-size:14px;margin:14px 0 6px}
.wide{display:block;width:100%;margin-top:14px;padding:12px}
.linkish{border:0;padding:0;text-decoration:underline;font:inherit}
.picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media(max-width:600px){.picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
.picker button{padding:8px;border-radius:10px;font-weight:600;font-size:13px;min-width:0}
.picker img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:8px;margin-bottom:6px}
.picker button[aria-pressed=true]{border-color:#2fb8aa;box-shadow:0 0 0 2px #2fb8aa,0 0 18px #8b6cff}
/* Settings */
#v-settings{max-width:760px;margin:0 auto}
#v-settings .card{background:var(--sheet);border:1px solid var(--rule);border-radius:8px;padding:24px;margin-bottom:18px}
#v-settings h2{font-size:22px}
#v-settings label.check{display:flex;gap:10px;align-items:center;font-weight:400}.check input{width:auto}
/* Ask the Desk: the mascot takes half the space */
.studio{grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-top:0}
.ask{max-width:none;margin:0}.ask label{margin-top:0}
.desk{min-width:0;display:flex;flex-direction:column;gap:16px}
.ink{font-size:4.4cqw}
@media(max-width:800px){.studio{grid-template-columns:minmax(0,1fr)}.scene{max-width:none}#gate{grid-template-columns:minmax(0,1fr)}.gate-art{padding:24px}#g-img{width:min(100%,260px)}.gate-art ul{display:none}.gate-form{padding:24px}}

body[data-view=practice] #familiar{display:none}
body[data-view=practice]>.coach,body[data-view=ask]>.coach{display:none}
.left{min-width:0;position:sticky;top:12px;display:flex;flex-direction:column;gap:12px}
.left .scene{position:relative;top:0}
.scene{margin:0}
.frame{position:relative;container-type:inline-size}
.cam{overflow:hidden;border-radius:12px;box-shadow:0 0 26px #8b6cff66}
.scene .cam img{box-shadow:none;border-radius:0;transition:transform .9s ease}
.scene.writing .cam img{animation:lean 1.5s ease-in-out infinite alternate}
.scene.looking .cam img{transform:scale(1.28);animation:breathe 3s ease-in-out .9s infinite alternate}
@keyframes lean{from{transform:scale(1.02) rotate(-.5deg)}to{transform:scale(1.045) rotate(.6deg) translate(.5%,.3%)}}
@keyframes breathe{from{transform:scale(1.28)}to{transform:scale(1.31) translateY(.5%)}}
.slate{position:absolute;overflow:hidden;opacity:0;transform:scale(.7);transition:opacity .4s,transform .4s;padding:3cqw;border-radius:8px;background:var(--bg);color:var(--fg);border:1.2cqw solid var(--frame);font:700 4.4cqw/1.15 Caveat,cursive;box-shadow:0 8px 24px #000a}
.slate.open{opacity:.96;transform:none}
.slate ol{list-style:none;margin:0;padding:0}.slate li{margin-bottom:1.4cqw}.slate li:first-child{color:var(--head)}
.tool{display:inline-block;width:.35em;height:1.15em;margin-left:.15em;vertical-align:-.15em;border-radius:.15em;background:var(--fg);transform-origin:bottom;animation:scribble .22s linear infinite alternate}
[data-surface=book] .tool{width:.18em;height:1.5em;background:linear-gradient(#7ee8dc,#4b2a8a 70%,#2c1e10);border-radius:50% 50% 0 0}
@keyframes scribble{from{transform:rotate(24deg) translateY(0)}to{transform:rotate(42deg) translateY(-.12em)}}
.speak{position:absolute;left:50%;bottom:4%;transform:translateX(-50%);width:max-content;max-width:90%;background:#171232ee;color:#f0ecff;border:1px solid #7ee8dc;border-radius:14px;padding:10px 18px;text-align:center;font:700 clamp(18px,4.6cqw,28px)/1.2 Caveat,cursive;box-shadow:0 0 18px #8b6cff}
.speak[hidden]{display:none}
.room{border:1px solid #4a3f86;border-radius:10px;background:#171232;color:#f0ecff;padding:12px 14px;font-size:13px}
.room .meta{color:#cfc8f2}
#shelf{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 8px;padding-bottom:6px;border-bottom:6px solid #6d4a2b}
#shelf span{width:44px;height:44px;display:grid;place-items:center;border:1px dashed #4a3f86;border-radius:8px;color:#6e5dc4;font-size:20px}
#shelf span.got{border:1px solid #7ee8dc;font-size:27px;box-shadow:0 0 12px #8b6cff}
#activity h2{font:600 24px/1.2 Newsreader,Georgia,serif;margin:0 0 6px}
#activity label{display:block;font-weight:600;font-size:14px;margin:12px 0 6px}
#pBoard{min-height:0}
.try{margin-bottom:14px}
@media(max-width:800px){.left{position:static}}
@media(prefers-reduced-motion:reduce){.scene .cam img,.tool{animation:none!important;transition:none}.slate{transition:none}}

.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.filters label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px}
.filters select,.filters input,#school{width:100%;min-width:0;height:42px;padding:0 10px;font-weight:400;font-size:14px}
.scene .cam{position:relative}
.scene .cam video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.scene .cam video[hidden]{display:none}
/* The clip does the moving, so the picture effects are switched off while it plays. */
.scene.film .cam img{animation:none;transform:none;visibility:hidden}
@media(max-width:700px){.filters{grid-template-columns:minmax(0,1fr)}}

.scene .pan{position:relative;transition:transform .9s ease}
.scene .cam .pan img{display:block;width:100%;animation:none;transform:none}
.scene.writing .pan{animation:lean 1.5s ease-in-out infinite alternate}
.scene.looking .pan{transform:scale(1.07)}
.scene.film .pan{animation:none;transform:none}
/* Handwriting sits directly on the board or page: no panel, so nothing covers the mascot. */
.scene .slate,.scene .slate.open{background:none;border:0;border-radius:0;box-shadow:none;padding:0;pointer-events:none;display:flex;flex-direction:column;overflow:hidden;text-align:center;font-size:4cqw;line-height:1.1;transition:opacity .3s}
.scene .slate{opacity:0}.scene .slate.open{opacity:1}
.scene .slate ol{margin:auto 0 0}.scene .slate li{margin:0 0 .6cqw}
.scene .slate li:first-child{color:inherit}
.scene .slate[data-surface=chalkboard]{color:#f6fbf6;text-shadow:0 0 3px #000,0 0 8px #000}
.scene .slate[data-surface=whiteboard]{color:#1f1a52;text-shadow:0 0 6px #fff,0 0 3px #fff}
.scene .slate[data-surface=book]{color:#2c1e10;text-shadow:0 0 5px #fff4d6,0 0 3px #fff4d6,0 0 10px #fff4d6;font-size:3.6cqw}
.scene.film .slate{font-size:5.4cqw}
.scene.film .slate.long{font-size:3.7cqw}
@media(prefers-reduced-motion:reduce){.scene .pan{animation:none!important;transition:none}}

.scene canvas.chalk{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none}

.ptopic{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px}
.ptopic select{width:100%;height:42px;padding:0 10px;font-weight:400;font-size:14px}

.scene .ink-layer{position:absolute;inset:0;pointer-events:none}

.scene .wand{position:absolute;width:9cqw;height:9cqw;transform:translateY(-100%);transform-origin:0 100%;pointer-events:none;
  filter:drop-shadow(0 0 5px #7ee8dc) drop-shadow(0 0 12px #8b6cff)}
.scene .wand[hidden]{display:none}
.scene .wand svg{display:block;width:100%;height:100%}
.scene .wand::after{content:"\2726";position:absolute;left:-.5em;bottom:-.55em;color:#c9fff7;font-size:3.6cqw;animation:twinkle .35s ease-in-out infinite alternate}
@keyframes twinkle{from{opacity:.35;transform:scale(.7)}to{opacity:1;transform:scale(1.25)}}

.scene .cam .pan img.plate,.scene .cam .pan img.arm{position:absolute;left:0;top:0;width:100%;height:100%;animation:none}
.scene .cam .pan img.plate,.scene .cam .pan img.arm{visibility:visible;border-radius:0;box-shadow:none}
.scene .cam .pan img.plate[hidden],.scene .cam .pan img.arm[hidden]{display:none}
.scene .cam .pan img.arm{transform-origin:0 0;transition:transform .12s linear;pointer-events:none}
/* chalk held in the paw: its writing end is top-right, on the stroke */
.scene .wand.held{width:5.6cqw;height:5.6cqw;transform:translate(-100%,0);transform-origin:100% 0;transition:left .12s linear,top .12s linear}
.scene .wand.held svg{transform:rotate(180deg)}
.scene .wand.held::after{left:auto;bottom:auto;right:-.5em;top:-.55em}

#activity select{width:100%;height:42px;padding:0 10px;font-size:14px}

.scene .wand{filter:drop-shadow(1px 2px 2px #0009);width:7cqw;height:7cqw}
.scene .wand::after{content:none}

/* the mascot says the summary; it only repeats on the card when tips are switched off */
#today .summary{display:none}body.noguide #today .summary{display:block}

.scene .spell{position:absolute;left:0;right:0;text-align:center;pointer-events:none;font:italic 600 8.4cqw/1.12 "Cormorant Garamond",Newsreader,serif;
  color:#eafffb;text-shadow:0 0 6px #7ee8dc,0 0 18px #8b6cff,0 0 34px #8b6cff,0 2px 4px #000,0 0 3px #000}
.scene .spell div{white-space:pre}.scene .spell span{display:inline-block;white-space:pre}
#q.lit{border-color:#7ee8dc;animation:askme 1.5s ease-in-out infinite alternate}
#q.lit::placeholder{color:#eafffb}
@keyframes askme{from{box-shadow:0 0 5px #7ee8dc88}to{box-shadow:0 0 12px #7ee8dc,0 0 30px #8b6cff}}
@media(prefers-reduced-motion:reduce){#q.lit{animation:none;box-shadow:0 0 14px #8b6cff}}

html,body{margin:0;padding:0;background:#07060d;color:#ece6ff;overflow-x:hidden}
body{min-height:100vh}
[hidden]{display:none!important}
.bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:10px 14px;background:#100c20;border-bottom:1px solid #4a3f86}
.bar h1{font:italic 600 24px "Cormorant Garamond",serif;margin:0;color:#eafffb;text-shadow:0 0 12px #8b6cff}
.spots{display:flex;flex-wrap:wrap;gap:8px}
.spots button,.pill{background:#1b1534;color:#ece6ff;border:1px solid #6e5dc4;border-radius:99px;padding:7px 14px;cursor:pointer;font:600 13px "Instrument Sans",system-ui,sans-serif}
.year{display:inline-block;margin-left:4px;border-radius:99px;padding:0 7px;background:#ffd76a;color:#2a1c00;font-size:11px;font-weight:800}
.spots button.on{background:#7ee8dc;border-color:#7ee8dc;color:#0b1220}
#frame{position:relative}
#view{position:relative;overflow:hidden;cursor:grab;user-select:none}
#view canvas{display:block;outline:0}
#view:active{cursor:grabbing}#view.hot{cursor:pointer}
.turn{position:absolute;top:44%;z-index:4;width:44px;height:64px;border-radius:10px;border:1px solid #6e5dc4;background:#100c20cc;color:#eafffb;font-size:26px;cursor:pointer}
.turn.l{left:8px}.turn.r{right:8px}
.tools{position:absolute;right:10px;bottom:10px;z-index:5;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center}
.tools span{background:#100c20cc;border-radius:99px;padding:7px 12px;font:600 12px "Instrument Sans",system-ui,sans-serif;pointer-events:none}
#caption{position:absolute;left:50%;bottom:62px;translate:-50% 0;z-index:5;background:#100c20e8;border:1px solid #7ee8dc;border-radius:99px;padding:8px 18px;font:italic 600 22px "Cormorant Garamond",serif;white-space:nowrap}
.host{position:absolute;left:10px;bottom:10px;z-index:5;display:flex;gap:10px;align-items:flex-end;max-width:min(430px,calc(100% - 20px));pointer-events:none}
.host button{pointer-events:auto;flex:none;width:66px;aspect-ratio:1;border-radius:50%;border:2px solid #7ee8dc;padding:0;overflow:hidden;cursor:pointer;box-shadow:0 0 18px #8b6cff;background:#100c20}
.host img{width:100%;height:100%;object-fit:cover;display:block}
.host p{margin:0;background:#100c20d9;border:1px solid #4a3f86;border-radius:12px;padding:8px 12px;font-size:13px}
.host p b{display:block;color:#7ee8dc;font-family:Newsreader,Georgia,serif}
/* the same choices as plain buttons: shown on phones, on keyboard focus, and where 3D cannot run */
#roomList{position:absolute;left:-9999px;width:320px;padding:10px 14px 30px}
#roomList:focus-within{position:static;width:auto}
#roomList h3{font:italic 600 22px "Cormorant Garamond",serif;margin:12px 0 6px;color:#eafffb}
#roomList .row{display:flex;flex-wrap:wrap;gap:8px}
#roomList .pill{text-align:left;border-radius:14px}
.nogl #view{display:none}.nogl #roomList{position:static;width:auto;max-width:900px;margin:0 auto}.nogl .host{position:static;margin:10px 14px}
@media(max-width:700px){
  #roomList{position:static;width:auto}
  .host{position:static;max-width:none;padding:10px 14px;align-items:center}
  .turn{display:none}
  .tools span{display:none}
  #caption{font-size:17px}
}

.veil{position:fixed;inset:0;z-index:30;background:#07060df2;overflow:auto;padding:14px}
.veil>.inner{max-width:1120px;margin:0 auto}
.veil>.inner>.top{position:sticky;top:-14px;z-index:6;background:#07060d;margin-top:-14px!important;padding:14px 0 10px;box-shadow:0 8px 12px -8px #000}
.veil .top{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:12px}
.veil h2.title{font:italic 600 28px "Cormorant Garamond",serif;margin:0;color:#eafffb}
#ov-search label{display:block;margin-bottom:6px}#seek{width:100%;box-sizing:border-box;padding:12px 14px;border-radius:10px;border:1px solid #7ee8dc;background:#100c20;color:#eafffb;font:18px "Instrument Sans",sans-serif;box-shadow:0 0 18px #8b6cff66}
#results{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
#results .item{text-align:left;background:#1b1534;color:#ece6ff;border:1px solid #4a3f86;border-radius:10px;padding:12px;cursor:pointer}#results .item b{display:block;margin-bottom:4px}
#ov-profile .card{background:#fff;color:#17112f;border:2px solid #e8e6f2;border-radius:24px;padding:20px 24px;margin-bottom:14px}
#ov-profile .card h3{margin:6px 0 10px;font:800 22px "Instrument Sans",sans-serif;color:#17112f}
#ov-profile .plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
#ov-profile .plans .card.current{border-color:#6a4fd0;box-shadow:0 0 0 1px #6a4fd0}
#ov-profile ul{margin:0 0 14px;padding-left:20px;color:#5f5878;line-height:1.7}
.tag{display:inline-block;border-radius:99px;padding:4px 14px;font-weight:800;font-size:13px}.tag.free{background:#efebfb;color:#5f5878}.tag.plus{background:#fcefc4;color:#7a5b10}
.yours{display:inline-block;border-radius:99px;padding:6px 16px;background:#e2f6ec;color:#2f7d58;font-weight:800;font-size:13px}
#ov-profile .big{background:#6a4fd0;color:#fff;border:0;border-bottom:5px solid #4a34a0;border-radius:99px;padding:12px 28px;font:800 15px "Instrument Sans",sans-serif;cursor:pointer}
#ov-profile .small{color:#5f5878;font-size:13px;margin:8px 0 0}.usage{margin:0 0 14px;color:#d8d2f5}
.pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.pick button{background:#fff;color:#17112f;border:2px solid #e8e6f2;border-radius:16px;padding:8px;font:700 12px "Instrument Sans",sans-serif;cursor:pointer;min-width:0}
.pick button[aria-pressed=true]{border-color:#6a4fd0;box-shadow:0 0 0 2px #6a4fd0}
.pick img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;margin-bottom:6px}
.pick.themes{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.swatch{display:block;height:64px;border-radius:10px;margin-bottom:6px}.pick em{display:block;font-style:normal;font-weight:600;color:#7a5b10;min-height:16px}
#ov-profile .row_{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}
body[data-world=highlands] .bar{background:#223a48;border-color:#ffd7a0}body[data-world=coral] .bar{background:#053240;border-color:#17808c}body[data-world=spires] .bar{background:#14143a;border-color:#8b86c8}body[data-world=frontier] .bar{background:#4a2616;border-color:#f2b878}body[data-world=stones] .bar{background:#252c44;border-color:#ffc68a}body[data-world=mars] .bar{background:#2a100c;border-color:#d08a5c}body[data-world=valley] .bar{background:#142814;border-color:#b8d060}body[data-world=lair] .bar{background:#1c0c10;border-color:#ff8a30}body[data-world=neon] .bar{background:#120a26;border-color:#ff3ea0}
#lockNote{margin:0;text-align:center;font-size:14px}
#prizes{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.prize{background:#fff;color:#17112f;border-radius:20px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.prize.locked{opacity:.55}.prize .icon{font-size:40px}.prize h4{margin:0;font:800 18px "Instrument Sans",sans-serif;color:#17112f}.prize p{margin:0;color:#5f5878;font-size:14px;flex:1}.prize .need{flex:none;font-weight:800;color:#7a5b10}
.big{background:#6a4fd0;color:#fff;border:0;border-bottom:5px solid #4a34a0;border-radius:99px;padding:10px 22px;font:800 14px "Instrument Sans",sans-serif;cursor:pointer}
#play{max-width:640px;margin:0 auto;background:#fff;color:#17112f;border-radius:24px;padding:22px}
#play h3{font:800 24px "Instrument Sans",sans-serif;color:#17112f;margin:12px 0 6px}#play h4{margin:10px 0 4px;color:#17112f}#play p{color:#17112f}
#play input,#play textarea{display:block;width:100%;box-sizing:border-box;border:2px solid #cfc9ea;border-radius:12px;padding:11px;font:16px "Instrument Sans",sans-serif;margin:8px 0;background:#fff;color:#17112f}
#play .pill{margin:4px 6px 4px 0}#play .choices .pill{background:#efebfb;color:#17112f}#play .clock{font:800 26px "Instrument Sans",sans-serif}
.certificate{border:8px double #c9a24a;border-radius:8px;padding:24px;text-align:center;background:#fdf7e3}.certificate h4{font:italic 600 40px "Cormorant Garamond",serif;margin:6px 0}
#ink{position:fixed;inset:0;z-index:20;pointer-events:none}
#unlock{position:fixed;left:50%;bottom:20px;translate:-50% 0;z-index:45;display:flex;flex-wrap:wrap;gap:12px;align-items:center;width:min(640px,calc(100% - 24px));box-sizing:border-box;background:#fff;color:#17112f;border-radius:20px;padding:14px 18px;box-shadow:0 0 30px #8b6cff}
#unlock .icon{font-size:34px}#unlock div{flex:1;min-width:180px;font-weight:700}#unlock .pill{background:#efebfb;color:#17112f}
#ov-practice .pickline{margin:4px 0 10px;font:800 17px "Instrument Sans",sans-serif;text-align:center}
#ov-practice .desk #modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
#ov-practice .desk #modes button{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;background:#fffdf5;border:3px solid #6a4fd0;border-radius:18px;padding:16px 10px;cursor:pointer;color:#17112f;animation:invite 1.7s ease-in-out infinite alternate;white-space:normal}
#ov-practice .desk #modes button:hover,#ov-practice .desk #modes button:focus-visible{translate:0 -3px}
#ov-practice .desk #modes button.on{background:#6a4fd0;color:#fff;animation:none;box-shadow:0 0 0 4px #ffd76a,0 0 24px #8b6cff}
#ov-practice .desk #modes .icon{font-size:34px}#ov-practice .desk #modes strong{font:800 17px "Instrument Sans",sans-serif;color:inherit}#ov-practice .desk #modes small{font-size:13px;color:inherit;opacity:.85;min-height:2.8em;display:flex;align-items:center}
#ov-practice .desk #modes .points{font:800 14px "Instrument Sans",sans-serif;background:#ffd76a;color:#3a2800;border-radius:99px;padding:4px 14px}#ov-practice .desk #modes em{font-style:normal;font-weight:800;font-size:12px;color:inherit}
@keyframes invite{from{box-shadow:0 0 4px #8b6cff55}to{box-shadow:0 0 22px #8b6cff}}
@media(max-width:620px){#ov-practice .desk #modes{grid-template-columns:minmax(0,1fr)}}
.quick{position:absolute;right:12px;top:12px;z-index:6;display:flex;gap:8px}
.quick button,#vista button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;padding:6px 14px 6px 8px;background:#100c20e0;color:#fff;border:2px solid #7ee8dc;border-radius:99px;font:700 13px "Instrument Sans",system-ui,sans-serif;cursor:pointer}
.quick.side{left:12px;right:auto;top:82px;flex-direction:column;align-items:flex-start}
.quick #zoomIn,.quick #zoomOut{padding:6px;width:44px}.quick #zoomIn i,.quick #zoomOut i{font:700 24px/1 sans-serif}
.quick b{min-width:20px;padding:0 6px;border-radius:99px;background:#ffd76a;color:#2a1c00;font:800 12px/20px "Instrument Sans",system-ui,sans-serif}.quick b:empty{display:none}
#trayRow button.got,#trayRow button.locked{flex-basis:128px}#trayRow button.got{border-color:#7ee8dc}#trayRow button.locked i{opacity:.55}
#trayRow button.got i,#trayRow button.locked i{display:flex;align-items:center;justify-content:center;font-style:normal;font-size:30px;height:46px;background:#100c20}
#trayRow em{display:block;font-style:normal;font-weight:600;color:#ffd76a;margin-top:3px}
.quick i{font-style:normal;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:18px}.quick img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.quick button[aria-expanded=true],.quick button[aria-pressed=true]{background:#6a4fd0;border-color:#fff}
#tray{position:absolute;left:10px;right:10px;bottom:10px;z-index:8;background:#100c20f2;border:2px solid #7ee8dc;border-radius:18px;padding:10px 12px;color:#fff}
#tray[hidden]{display:none}#tray .head{display:flex;justify-content:space-between;align-items:center;font:700 14px "Instrument Sans",system-ui,sans-serif}
#trayClose{width:36px;height:36px;border-radius:50%;border:1px solid #6e5dc4;background:none;color:#fff;cursor:pointer}
#trayRow{display:flex;gap:8px;overflow-x:auto;padding:8px 2px 4px;position:relative}
#trayRow button{flex:0 0 112px;background:#1b1534;color:#fff;border:2px solid #4a3f86;border-radius:14px;padding:6px;font:700 12px "Instrument Sans",system-ui,sans-serif;cursor:pointer}
#trayRow button[aria-pressed=true]{border-color:#ffd76a;box-shadow:0 0 0 2px #ffd76a}
#trayRow i,#trayRow img{display:block;width:100%;height:62px;object-fit:cover;object-position:50% 25%;border-radius:9px;margin-bottom:5px}
body.traying .host,body.traying .tools,body.traying #caption{visibility:hidden}
#vista{position:absolute;left:50%;bottom:14px;translate:-50% 0;z-index:6;display:none;gap:8px;white-space:nowrap}#vista button{padding:6px 18px}
body.exploring #vista{display:flex}body.exploring .host,body.exploring .tools,body.exploring #goal,body.exploring #caption{display:none}
body.exploring.traying #vista{display:none}
.nogl .quick,.nogl #tray{display:none}
#goal{position:absolute;left:12px;top:12px;z-index:5;display:grid;grid-template-columns:auto auto;column-gap:8px;align-items:center;text-align:left;background:#100c20e0;color:#fff;border:2px solid #ffd76a;border-radius:16px;padding:8px 14px;font:800 13px "Instrument Sans",sans-serif;cursor:pointer}
#goal .icon{grid-row:span 2;font-size:26px}.prizes-head{grid-column:1/-1;margin:8px 0 0;font:600 22px Newsreader,Georgia,serif}#goal .bar_{grid-column:2}
.bar_{display:block;width:100%;min-width:150px;height:7px;border-radius:99px;background:#8884;overflow:hidden}.bar_ i{display:block;height:100%;background:linear-gradient(90deg,#8b6cff,#ffd76a)}
#fxnote{position:fixed;left:50%;top:80px;translate:-50% 0;z-index:25;display:flex;gap:12px;align-items:center;width:min(680px,calc(100% - 24px));box-sizing:border-box;background:#100c20ee;color:#fff;border:2px solid #ffd76a;border-radius:18px;padding:12px 18px;font:700 15px "Instrument Sans",sans-serif;box-shadow:0 0 26px #ffd76a77}
#fxnote .icon{font-size:30px}#fxnote div{flex:1}
.gain{position:fixed;left:50%;top:45%;translate:-50% 0;z-index:48;font:800 34px "Instrument Sans",sans-serif;color:#ffd76a;text-shadow:0 0 14px #000,0 0 30px #8b6cff;pointer-events:none;animation:rise 1.8s ease-out forwards}
@keyframes rise{from{opacity:0;transform:translateY(30px)}20%{opacity:1}to{opacity:0;transform:translateY(-90px)}}
@media(max-width:700px){.quick{right:8px;top:8px;flex-direction:column;gap:6px}.quick.side{left:8px;right:auto;top:70px}.quick.side button{position:relative}.quick b{position:absolute;right:-4px;top:-4px}#frame[data-facing="1"] .quick.side{top:auto;bottom:8px;flex-direction:row;gap:3px}.quick span{display:none}.quick button{padding:6px;width:44px}#goal{max-width:calc(100% - 80px)}#trayRow button{flex-basis:92px}body.traying .host{visibility:visible}}
@media(max-width:700px){#goal{font-size:11px;padding:6px 10px}.bar_{min-width:90px}}
#ov-tome{overflow:hidden;display:flex;flex-direction:column}
#ov-tome>.inner{flex:1;min-height:0;width:100%;display:flex;flex-direction:column}
#ov-tome .top{flex:none}
.tome{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:14px}
#ov-tome .tome .list{height:100%;max-height:none;min-height:0;overflow:auto;margin:0}
.reader{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:0}
#ov-tome .reader .page{align-self:stretch;flex:0 1 auto;min-height:0;overflow:hidden;position:relative}
#ov-tome .reader .page.cut::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(transparent,#f4e9cd)}
#ov-tome .reader .page.open{overflow:auto}
#more{flex:none}
.page{background:#f4e9cd;color:#2c1e10;border:10px solid #5a3b22;border-radius:8px;padding:24px;min-width:0;--soft:#6b5a3e;--rule:#bfa77a;--ink:#2c1e10;--sheet:#fbf3df}
.page .doc{color:#2c1e10}.page button,.page a{color:#2c1e10}
.veil .item{font-family:Newsreader,Georgia,serif}
@media(max-width:760px){.tome{grid-template-columns:minmax(0,1fr);grid-template-rows:30% minmax(0,1fr)}}
.lesson{background:#1c2422;border:10px solid #5a3b22;border-radius:8px;padding:24px;color:#eef6ee;font:400 19px/1.6 Kalam,Caveat,cursive}
.lesson h3{color:#ffe9a0;font:700 22px/1.4 Kalam,Caveat,cursive;margin:0 0 14px}
.lesson .news{border:1px solid #7ee8dc;border-radius:12px;padding:10px 16px;margin-bottom:16px;background:#0f2b2a;font-family:"Instrument Sans",sans-serif;font-size:15px}.lesson .news b{color:#7ee8dc;text-transform:uppercase;letter-spacing:.06em;font-size:13px}.lesson .news p{margin:4px 0 0}.lesson .news .src{font-size:13px;color:#b9d8d2}.lesson .news a{color:#9ff5ea}
.lesson .more{margin:2px 0 4px;font-family:"Instrument Sans",sans-serif}.lesson ul{margin:0;padding-left:22px}.lesson li{margin:0 0 8px}.lesson li::marker{color:#7ee8dc}.lesson .count{margin:0;color:#b9d8d2;font-size:15px}
.lesson h4{color:#7ee8dc;margin:20px 0 6px;font:700 16px "Instrument Sans",sans-serif;letter-spacing:.08em;text-transform:uppercase}

/* Practice is written in the blank book itself */
#ov-practice .studio{display:block}
#ov-practice #pScene,#ov-practice #pBoard,#ov-practice #pStatus+.board+.meta,#ov-practice .desk>p.meta:last-child{display:none}
.recommended{margin-top:14px;border-top:2px dashed #bfa77a;padding-top:10px}.recommended h3{margin:0 0 6px}
#ov-practice .desk button:disabled{opacity:.45;cursor:default}
#ov-practice .left{max-width:980px;margin:0 auto 12px}
#ov-practice .desk{max-width:980px;margin:0 auto;color:#2c1e10;border:14px solid #4a1e18;border-radius:14px;padding:26px 34px 34px;--soft:#6b5a3e;--rule:#bfa77a;--sheet:#fbf3df;--ink:#2c1e10;--paper:#f4e9cd;
  background:linear-gradient(90deg,transparent calc(50% - 42px),#7a5a2a33 calc(50% - 2px),#4a321455 50%,#7a5a2a33 calc(50% + 2px),transparent calc(50% + 42px)),#f4e9cd;box-shadow:0 0 40px #8b6cff66}
#ov-practice .desk::before{content:"Practice makes the master";display:block;text-align:center;font:600 30px Kalam,Caveat,cursive;margin-bottom:14px}
#ov-practice .desk button,#ov-practice .desk select,#ov-practice .desk textarea,#ov-practice .desk input,#ov-practice .desk label{color:#2c1e10}
#askScene .who,#askScene .front{position:absolute;left:0;top:0;width:100%;pointer-events:none}
#askScene .who{height:100%;transform-origin:50% 70%;animation:who-breathe 3.2s ease-in-out infinite}
#askScene .who[data-stage="0"] img{top:24%;height:54%!important}#askScene .who[data-stage="1"] img{top:14%;height:65%!important}
#askScene .who img{position:absolute!important;left:12%;width:76%!important;top:7%;height:73%!important;aspect-ratio:auto!important;object-fit:contain;object-position:50% 100%;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 8px 14px #0009)}
#askScene.writing .who{animation:who-lean .6s ease-in-out infinite alternate}
@keyframes who-lean{from{transform:translateY(6%) rotate(-3deg) scale(1.02,.95)}to{transform:translateY(7.5%) rotate(-5deg) scale(1.03,.93)}}
#askScene.looking .who{animation:who-hop 1.6s ease-in-out 2,who-breathe 3.2s ease-in-out 3.2s infinite}
#askScene .cam .pan img.front{position:absolute;box-shadow:none;border-radius:0}
@keyframes who-breathe{0%,100%{transform:none}50%{transform:translateY(-.7%) scale(1.012)}}
@keyframes who-write{from{transform:translateY(.4%) rotate(-2.4deg)}to{transform:translateY(1.4%) rotate(2.4deg)}}
@keyframes who-hop{0%,100%{transform:none}30%{transform:translateY(-4%) rotate(-3deg)}60%{transform:translateY(0) scale(1.03)}}
@media(prefers-reduced-motion:reduce){#askScene .who{animation:none!important}}
#entry .goal{color:#ffe9a0;font-weight:600;margin:0 auto 14px}
.shut{opacity:.6}.shut em{display:block;font-style:normal;font-size:11px;font-weight:700}
#qRank{display:flex;align-items:center;gap:9px;text-align:left;background:#17112fe8;color:#fff;border:2px solid #ffd76a;border-radius:16px;padding:5px 14px 6px 6px;cursor:pointer;font:700 13px "Instrument Sans",sans-serif}
#qRank img{width:44px;height:44px;object-fit:contain;background:#2b2160;border-radius:12px}#qRank strong{display:block;font-size:17px;color:#ffd76a}#qRank .xpb{display:block;width:110px;height:6px;background:#3a3470;border-radius:9px;overflow:hidden;margin-top:3px}#qRank .xpb i{display:block;height:100%;background:linear-gradient(90deg,#59d0ff,#8b6cff)}
@media(max-width:700px){#qRank img{width:34px;height:34px}#qRank .xpb{width:70px}#qRank .who_{display:none}}
#ov-practice .desk textarea{background:#fffaf0;line-height:1.6;padding:12px 14px;border:2px solid #bfa77a;border-radius:10px}
#ov-practice .desk button.on,#ov-practice .desk button.go{background:#2c1e10;color:#f4e9cd}
@media(max-width:700px){#ov-practice .desk{padding:16px 14px;background:#f4e9cd;border-width:8px}}

#login{position:fixed;inset:0;z-index:60;overflow:auto;padding:28px 14px;text-align:center;background:radial-gradient(circle at 50% 0,#3a2a7a,#0b0818 70%)}
#login .mark{font-size:64px;line-height:1.1;filter:drop-shadow(0 0 18px #8b6cff)}
#login h2{font:italic 600 46px/1.1 "Cormorant Garamond",serif;margin:6px 0;color:#eafffb;text-shadow:0 0 18px #8b6cff}
#login .line{margin:0 0 18px;font-weight:700;font-size:17px}
.door{max-width:420px;margin:0 auto;text-align:left;background:#fff;color:#17112f;border-radius:28px;padding:24px 28px;box-shadow:0 10px 0 #4a34a0,0 0 40px #8b6cff55}
.door h3{margin:0 0 14px;font:800 28px "Instrument Sans",sans-serif;color:#17112f}
.door label{display:block;margin:10px 0 6px;font-weight:800;font-size:14px;color:#17112f}
.door input{display:block;width:100%;box-sizing:border-box;border:2px solid #e8e6f2;border-radius:16px;padding:13px 14px;font:16px "Instrument Sans",sans-serif;background:#fff;color:#17112f}
.door input:focus{outline:3px solid #8b6cff;border-color:transparent}
#loginNote{min-height:20px;margin:8px 0;color:#b3264b;font-size:13px;font-weight:600}
.door .primary,.door .second{display:block;width:100%;border-radius:99px;padding:14px;cursor:pointer;font:800 16px "Instrument Sans",sans-serif;margin-bottom:12px}
.door .primary{background:#6a4fd0;color:#fff;border:0;border-bottom:5px solid #4a34a0}.door .second{background:#fff;color:#17112f;border:3px solid #17112f}
.door .swap{text-align:center;margin:4px 0 0;color:#5f5878;font-size:14px}.door .swap button{background:none;border:0;padding:0;color:#6a4fd0;font:800 14px "Instrument Sans",sans-serif;cursor:pointer}
#login .foot{margin:22px 0 0;font-size:13px;color:#d8d2f5}
#entry{position:fixed;inset:0;z-index:50;overflow:auto;padding:24px 14px;text-align:center;background:radial-gradient(circle at 50% 0,#3a2a7a,#0b0818 70%)}
#entry h2{font:italic 600 44px/1.1 "Cormorant Garamond",serif;margin:8px 0;color:#eafffb;text-shadow:0 0 18px #8b6cff}
#hosts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:min(980px,calc((100vh - 250px)*2));margin:18px auto}
#hosts button{background:#100c20;border:1px solid #4a3f86;border-radius:12px;padding:8px;color:#ece6ff;cursor:pointer;font-weight:600;font-size:12px;min-width:0}
#hosts button[aria-pressed=true]{border-color:#7ee8dc;box-shadow:0 0 18px #7ee8dc}
#hosts img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block;margin-bottom:6px}
@media(max-width:700px){#hosts{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}}

/* connected sign-in */
.door .pair{display:flex;gap:10px}
.door .pair select{flex:1;min-width:0;border:2px solid #e8e6f2;border-radius:16px;padding:12px;font:16px "Instrument Sans",sans-serif;background:#fff;color:#17112f}
.door .pair input{flex:1;min-width:0}
.door .link{display:block;margin:0 auto 10px;background:none;border:0;color:#4a34a0;text-decoration:underline;cursor:pointer;font:600 14px "Instrument Sans",sans-serif}
#born[hidden],.door .link[hidden],.door .second[hidden]{display:none}
.door .agree{display:flex;gap:10px;align-items:flex-start;margin-top:12px;font-weight:500}
.door .agree input{width:20px;height:20px;flex:none;margin:2px 0 0;padding:0}
.door .agree a{color:#4a34a0}
#login .foot.legal{margin-top:8px}#login .foot.legal a{color:inherit}

/* Premium stands out; Free stays plain */
#ov-profile .plans{grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:stretch}
#ov-profile #planFree{background:#eeecf5;color:#4b4566}
#ov-profile #planFree .cost{margin:0 0 8px}
#ov-profile #planPlus{position:relative;color:#fff;border:3px solid #ffd45c;background:linear-gradient(160deg,#4a2fa8 0,#2a1766 55%,#190d42 100%);box-shadow:0 0 34px #ffc83d66}
#ov-profile #planPlus.current{border-color:#ffd45c}
#ov-profile #planPlus h3{color:#fff;font-size:27px}
#ov-profile #planPlus .tag{background:#ffd45c;color:#2a1c00}
#ov-profile #planPlus .cost{margin:0;font-size:16px}#ov-profile #planPlus .cost b{font-size:34px;color:#ffd45c}
#ov-profile #planPlus .deal{margin:4px 0 14px;font-size:14px;color:#e6e0ff}#ov-profile #planPlus .deal em{font-style:normal;font-weight:800;background:#d9f2e0;color:#17532f;border-radius:99px;padding:2px 10px;white-space:nowrap}
#ov-profile #planPlus .lead{margin:0 0 8px;font-weight:700;color:#cfc6ff}
#ov-profile #planPlus ul.wins{list-style:none;margin:0 0 16px;padding:0}
#ov-profile #planPlus .wins li{position:relative;padding-left:30px;margin-bottom:10px;color:#fff}
#ov-profile #planPlus .wins li::before{content:"✓";position:absolute;left:0;top:1px;width:20px;height:20px;border-radius:50%;background:#ffd45c;color:#2a1c00;font:900 13px/20px "Instrument Sans",sans-serif;text-align:center}
#ov-profile #planPlus .wins b{display:block;font-size:17px}#ov-profile #planPlus .wins span{display:block;font-size:13px;color:#cfc6ff}
#ov-profile #planPlus .big{background:#ffd45c;color:#2a1c00;border-bottom-color:#b8860b;font-size:16px}
#ov-profile #planPlus .small{color:#e6e0ff}
@media (max-width:640px){#ov-profile .plans{grid-template-columns:minmax(0,1fr)}#ov-profile #planPlus{order:-1}}

#billing[hidden],#buy[hidden],#manage[hidden]{display:none!important}
#buy{display:flex;flex-wrap:wrap;gap:10px}

#report[hidden]{display:none}

/* writing in the book: the host's hand and quill */
#askScene .writer{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:0;transition:opacity .25s;filter:drop-shadow(2px 5px 4px #0007)}
#askScene .writer.on{opacity:1}#askScene .writer.resting .limb{opacity:0;transition:opacity .3s}
#askScene.writing .who.profile{animation:none;transform:translateY(6%)}
#askScene.writing .who.profile img{transform:scaleX(-1) rotate(17deg);transform-origin:50% 85%;animation:nod 1.4s ease-in-out infinite alternate}
@keyframes nod{from{transform:scaleX(-1) rotate(15deg)}to{transform:scaleX(-1) rotate(20deg)}}
/* waiting for an answer, and the answer arriving */
.dots i{font-style:normal;animation:dot 1.2s infinite both}.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}
@keyframes dot{0%,70%,100%{opacity:.15}35%{opacity:1}}
#out .thinking{font-style:italic}
#out .streaming>:last-child::after{content:"▍";margin-left:3px;animation:caret .9s steps(1) infinite}
@keyframes caret{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.dots i,#out .streaming>:last-child::after{animation:none}}

@media(prefers-reduced-motion:reduce){#askScene.writing .who.profile img{animation:none}}

/* the writing picture covers the scene and fades away as the host looks up */
#askScene .writer.photo{filter:none;transition:opacity .5s}
#askScene .writer.photo .limb{transition:opacity .5s}
#askScene .writer.photo.resting .words{fill:#fff;filter:drop-shadow(0 0 6px #7a5cff)}

/* the page of writing is laid flat on the book */
#askScene .writer.inkpage{width:300px;height:140px;right:auto;bottom:auto;transform-origin:0 0;filter:none;overflow:visible}
#askScene .writer.hand_layer{filter:none}#askScene .writer.hand_layer.photo{transition:opacity .5s}

#askScene canvas.writer.face{filter:none}#askScene canvas.writer.face[hidden]{display:none}

#askScene .pan .spell{z-index:3}
