/* Talking to Orb on the web: Orb in the middle of the night, and one bar at the bottom (add, type, talk). It sits on the landing page's night (landing.css). */
body.talk { min-height: 100vh; overflow: hidden; }
.talk [hidden] { display: none !important; }
.mini { position: fixed; inset: 0 0 auto 0; z-index: 25; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 max(16px, env(safe-area-inset-left)); }
.mini { white-space: nowrap; }
.mini .brand { font-size: 20px; }
.orb-fallback { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 150px; height: auto; z-index: 8; pointer-events: none; }
@media (max-width: 600px) { #who { display: none; } .mini { gap: 12px; } .mini .link { font-size: 14px; } } .mini .grow { flex: 1; }
.mini .link { color: var(--muted); text-decoration: none; font-size: 15px; } .mini .link:hover { color: var(--ink); }
.acct { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 14px; }
.acct button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.talkstage { position: fixed; inset: 0; height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.hello { position: absolute; left: 50%; top: 15%; transform: translateX(-50%); margin: 0; width: min(560px, 90vw); text-align: center; font: 500 clamp(22px, 4.6vw, 30px)/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); transition: opacity 0.3s; z-index: 5; }
body.busy .hello, body.drawing .hello { opacity: 0; }
@media (max-height: 560px) { .hello { display: none; } }
.signin { position: absolute; left: 50%; top: auto; bottom: max(10px, env(safe-area-inset-bottom)); max-height: 60dvh; overflow-y: auto; transform: translateX(-50%); width: min(340px, 88vw); display: grid; gap: 7px; text-align: center; z-index: 22; }
.signin p { margin: 0; color: var(--muted); font-size: 16px; }
.signin form { display: flex; gap: 8px; } .signin input { flex: 1; min-width: 0; }
.signin input, .signin form button { border: 1px solid var(--line); background: var(--well); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 15px; }
.signin form button { cursor: pointer; } .signin form button:hover { border-color: var(--gold); }
.textlink { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: center; padding: 4px 8px; }
.textlink:hover { color: var(--ink); }
.gold { border: 0; border-radius: 14px; padding: 12px 18px; background: var(--gold); color: var(--gold-ink); font: 600 17px var(--display); cursor: pointer; box-shadow: 0 10px 30px -14px var(--gold); }
.gold:active { transform: scale(0.97); }

/* Orb listens: ripples round Orb that grow with how loud you are, and Orb itself can be held to talk. */
.orb-hit { position: fixed; z-index: 21; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.rings { position: fixed; z-index: 9; pointer-events: none; display: none; }
.rings i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: -50% 0 0 -50%; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; transform: scale(0.6); }
body.listening .rings { display: block; }
body.listening .rings i { animation: ring 2.1s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
body.listening .rings i:nth-child(2) { animation-delay: 0.7s; } body.listening .rings i:nth-child(3) { animation-delay: 1.4s; }
@keyframes ring { 0% { opacity: 0.75; transform: scale(calc(0.55 + var(--lvl, 0) * 0.25)); } 100% { opacity: 0; transform: scale(calc(1.45 + var(--lvl, 0) * 0.6)); } }
body.listening .hello { opacity: 1; }

.dock { width: min(560px, 100% - 24px); margin-bottom: max(14px, env(safe-area-inset-bottom)); z-index: 24; display: grid; gap: 8px; justify-items: center; position: relative; }
#status { margin: 0; text-align: center; color: var(--muted); font-size: 15px; min-height: 1.3em; max-width: 100%; }
#status.bad { color: #ffb4a8; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink); max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chip button { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
/* voice first: one big button to talk, a smaller + on one side and a quiet "type instead" on the other */
.voice { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 8vw, 44px); }
.bigmic { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--gold); color: var(--gold-ink); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 16px 40px -14px var(--gold), 0 0 0 7px color-mix(in srgb, var(--gold) 16%, transparent); transition: transform 0.15s var(--out), background 0.2s; }
.bigmic svg { width: 40px; height: 40px; }
.bigmic:active { transform: scale(0.95); }
.bigmic.on { background: #ff7a6b; color: #2a0b07; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 16px 40px -14px #ff7a6b, 0 0 0 7px rgba(255, 122, 107, 0.2); } 50% { box-shadow: 0 16px 40px -14px #ff7a6b, 0 0 0 18px rgba(255, 122, 107, 0); } }
.round { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--well); color: var(--ink); cursor: pointer; transition: transform 0.15s var(--out), border-color 0.15s; }
.round:hover { border-color: var(--gold); } .round:active { transform: scale(0.94); }
.round svg, .menu svg, .bigmic svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .round svg, .menu svg { width: 22px; height: 22px; }
.cap { margin: 0; color: var(--faint); font-size: 13.5px; }
.talkbar { width: 100%; display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.talkbar:focus-within { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.talkbar .round { width: 44px; height: 44px; }
.talkbar textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 17px; line-height: 1.45; padding: 10px 4px; max-height: 140px; }
.talkbar textarea::placeholder { color: var(--faint); }
.gold-round { background: var(--gold); color: var(--gold-ink); border-color: transparent; }
#back .i-send { display: none; } #back.send .i-send { display: block; } #back.send .i-mic { display: none; } #back svg { stroke-width: 2.2; }
.dock.typing .voice, .dock.typing .cap { display: none; } .dock.typing .talkbar { display: flex; }
.menu { position: absolute; left: 0; top: auto; bottom: 76px; gap: 0; opacity: 1; transform: none; font-size: 1rem; font-style: normal; min-width: 270px; white-space: nowrap; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; justify-items: stretch; z-index: 30; }
.menu button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 11px; background: none; color: var(--ink); font-family: inherit; font-size: 15.5px; text-align: left; cursor: pointer; }
.menu button:hover { background: var(--well); }
.follow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.follow button { border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 500 14.5px var(--display); cursor: pointer; }
.follow button:hover { background: color-mix(in srgb, var(--gold) 22%, transparent); }
.nextq { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .nextq:empty { display: none; }
.nextq button { text-align: left; }
/* Two suggested questions are the main thing; the rest is a quiet row of small tools under them. */
.follow .tools { flex-basis: 100%; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.follow .tools button { padding: 6px 12px; font-size: 13px; opacity: .85; }
.follow .tools button.icon { padding: 6px 10px; font-size: 15px; line-height: 1; }
.share { display: flex; gap: 6px; justify-content: center; }
.share input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.share button { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); border-radius: 999px; padding: 6px 14px; font: 500 13.5px var(--display); cursor: pointer; }
.share button:hover { border-color: var(--gold); color: var(--ink); }
/* the quiz: one question at a time, over the night, with Orb still in view */
.quiz { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -52%); width: min(520px, 92vw); max-height: 80dvh; overflow: auto; z-index: 26; padding: 18px 18px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); display: grid; gap: 12px; }
.plain { max-height: 70dvh; }
.plain-list { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 16.5px; line-height: 1.45; color: var(--ink); }
.plain-list li::marker { color: var(--gold); }
.plain-list.ans { list-style: none; padding-left: 0; gap: 0; }
.plain-list.ans li { display: grid; grid-template-columns: minmax(1.6em, max-content) 1fr; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.plain-list.ans li:first-child { border-top: 0; }
.plain-list.ans b { color: var(--gold); font-weight: 650; max-width: 9em; }
.plain-list.ans b:empty { display: none; }
.plain-list.ans li:has(b:empty) { grid-template-columns: 1fr; }
.plain-list.ans li span { white-space: pre-line; }
.plain-list.ans li.sec { display: block; padding: 14px 0 6px; color: var(--gold); font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; border-top: 0; }
.plain-list.ans li.grid { display: block; padding: 4px 0 10px; }
.grid-scroll { overflow-x: auto; }
.grid table { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 5px 10px; text-align: right; white-space: nowrap; }
.grid thead th { color: rgba(255, 255, 255, .6); font-weight: 600; }
.grid tbody th { text-align: left; color: var(--gold); font-weight: 650; }
.grid tbody tr:nth-child(even) { background: rgba(255, 255, 255, .05); }
.q-top { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: 14px; }
.q-top button { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.q-ask { margin: 0; font: 600 clamp(19px, 4.6vw, 23px)/1.3 var(--display); }
.q-opts { display: grid; gap: 8px; }
.q-opts button { text-align: left; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--well); color: var(--ink); font-family: inherit; font-size: 16.5px; cursor: pointer; transition: transform 0.12s var(--out), border-color 0.12s, background 0.2s; }
.q-opts button:hover:not(:disabled) { border-color: var(--gold); } .q-opts button:active:not(:disabled) { transform: scale(0.985); }
.q-opts button.right { background: color-mix(in srgb, #4cd08a 24%, var(--well)); border-color: #4cd08a; }
.q-opts button.wrong { background: color-mix(in srgb, #ff7a6b 22%, var(--well)); border-color: #ff7a6b; }
.q-opts button:disabled { cursor: default; }
.q-why { margin: 0; min-height: 1.4em; color: var(--muted); font-size: 15.5px; }
.q-next, .q-end button { justify-self: end; border: 0; border-radius: 12px; padding: 10px 20px; background: var(--gold); color: var(--gold-ink); font: 600 16px var(--display); cursor: pointer; }
.q-end { display: grid; gap: 10px; text-align: center; } .q-end p { margin: 0; font: 600 21px var(--display); } .q-end div { display: flex; gap: 8px; justify-content: center; }
.q-end #q-done { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 520px) { .bigmic { width: 96px; height: 96px; } .round { width: 54px; height: 54px; } .menu { min-width: 0; right: 0; bottom: 118px; } }
#orb-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 10; pointer-events: none; }
/* the shared-explainer page */
.watch { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 0 20px; }
.watch h1, .watch p, .watch .btn { transition: opacity 0.4s ease; } body.drawing .watch h1, body.drawing .watch p { opacity: 0; }
.watch h1 { font: 600 clamp(26px, 5vw, 38px)/1.15 var(--display); max-width: 22ch; margin: 0; }
.watch .btn { border: 0; cursor: pointer; z-index: 24; } .watch .fine { color: var(--faint); font-size: 14px; max-width: 46ch; margin: 0; z-index: 24; }
@media (prefers-reduced-motion: reduce) { .bigmic.on { animation: none; } body.listening .rings i { animation: none; opacity: 0.45; transform: scale(1.1); } }

/* My explainers */
.mini .lib-btn { background: none; border: 0; font: inherit; font-size: 15px; cursor: pointer; padding: 0; }
.library { width: min(620px, 94vw); max-height: 78dvh; }
.lib-empty { margin: 0; color: var(--muted); }
.lib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lib-list li { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); }
.lib-list li b { display: block; font: 600 16.5px var(--display); } .lib-list li small { color: var(--faint); font-size: 13px; }
.lib-list li div:last-child { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-list button { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 10px; padding: 7px 12px; font: 500 14px var(--display); cursor: pointer; }
.lib-list button:hover { border-color: var(--gold); }
.lib-list button.go { background: var(--gold); color: var(--gold-ink); border-color: transparent; }
.lib-list button.on { border-color: color-mix(in srgb, #4cd08a 70%, transparent); color: #9be8bf; }
.lib-list button.del { color: #ffb4a8; margin-left: auto; }


/* a file to keep */
.made { width: min(560px, 94vw); }
.made-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.made-acts button { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 12px; padding: 10px 14px; font: 500 15px var(--display); cursor: pointer; }
.made-acts button:hover { border-color: var(--gold); } .made-acts button.go { background: var(--gold); color: var(--gold-ink); border-color: transparent; }

/* Immersive: while Orb draws (or quizzes) the page behind goes dark and quiet, so the board is the only thing there is. */
body.talk::after { content: ''; position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; background: radial-gradient(ellipse at 50% 38%, rgba(10, 6, 28, 0.8), rgba(2, 1, 10, 0.95)); }
body.drawing::after { opacity: 1; }
.dock, .mini { transition: opacity 0.35s ease; }
body.drawing .dock, body.drawing .mini { opacity: 0; pointer-events: none; }
/* The drawing is finished and still on show: only the ways to carry on appear, under it (the bar to type or talk waits until it is put away). */
body.drawing.fin .talkstage { z-index: 30; } body.fin .talkstage::before { display: none; } body.drawing.fin .dock { opacity: 1; pointer-events: auto; } body.fin #voice, body.fin #chip, body.fin #pic-ideas, body.fin #ideas, body.fin #cap { display: none; }
/* A phone: the header has room for the brand and what matters. */
@media (max-width: 600px) { .mini { gap: 14px; } .mini .brand { margin-right: 4px; } .mini a.link { display: none; } .mini .lib-btn { font-size: 14.5px; } }


.sound-pill { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; border: 0; border-radius: 999px; padding: 12px 20px; background: var(--gold); color: var(--gold-ink); font: 600 16px var(--display); box-shadow: 0 14px 34px -12px var(--gold); cursor: pointer; }

/* Simpler and calmer: one short line, Orb in a soft glow, and nothing else until there is something to say. */
.hello { font-size: clamp(22px, 4vw, 28px); font-weight: 500; opacity: 0; animation: arrive 0.9s 0.15s var(--out) forwards; }
@keyframes arrive { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
body.busy .hello, body.drawing .hello, body.used .hello { opacity: 0 !important; animation: none; }
.talkstage::before { content: ''; position: absolute; left: 50%; top: 54%; width: min(560px, 92vw); height: min(560px, 92vw); transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--orb) 34%, transparent) 0%, color-mix(in srgb, var(--orb) 12%, transparent) 38%, transparent 68%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
body.listening .talkstage::before { animation-duration: 2.2s; }
@media (prefers-reduced-motion: reduce) { .talkstage::before { animation: none; } .hello { animation: none; opacity: 1; } }
.cap { font-size: 14px; letter-spacing: 0.01em; }
.follow button { border-color: transparent; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); backdrop-filter: blur(8px); }
.follow button:hover { background: color-mix(in srgb, var(--gold) 26%, transparent); }
.bigmic { animation: idle 3.2s ease-in-out infinite; } @keyframes idle { 0%, 100% { box-shadow: 0 16px 40px -14px var(--gold), 0 0 0 7px color-mix(in srgb, var(--gold) 14%, transparent); } 50% { box-shadow: 0 16px 44px -12px var(--gold), 0 0 0 12px color-mix(in srgb, var(--gold) 6%, transparent); } }
.bigmic.on { animation: pulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .bigmic { animation: none; } }
/* the way to more, when today's allowance (or voice) is used up */
.upgrade { width: min(430px, 92vw); text-align: center; gap: 10px; }
.upgrade .q-ask { font-size: clamp(20px, 4.4vw, 24px); } .upgrade .q-why { min-height: 0; }
.up-amt { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.up-amt button { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 15px var(--display); cursor: pointer; }
.up-amt button.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.up-amt label { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.up-amt input { width: 74px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 7px 12px; font: 600 15px var(--display); }
.up-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.up-acts button { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 12px; padding: 11px 18px; font: 600 16px var(--display); cursor: pointer; }
.up-acts button.go { background: var(--gold); color: var(--gold-ink); border-color: transparent; box-shadow: 0 10px 28px -12px var(--gold); }
.up-acts button.later { border-color: transparent; color: var(--muted); font-weight: 500; } .up-acts button:hover:not(.go) { border-color: var(--gold); }

/* Orb's menu: a fan of round buttons springs out round Orb, each with its name under it. */
.menu-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.menu-btn:hover { color: var(--ink); border-color: var(--gold); } .menu-btn svg { width: 22px; height: 22px; fill: currentColor; }
.arc { position: fixed; inset: 0; z-index: 28; background: transparent; }
.arc-item { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 7px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 0; width: 96px; opacity: 0; }
.arc.on .arc-item { animation: arc-pop 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) calc(var(--i) * 45ms) both; }
@keyframes arc-pop { from { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.arc-disc { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); transition: transform 0.15s var(--out), border-color 0.15s; }
.arc-disc svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .arc-disc [data-fill] { fill: currentColor; stroke: none; }
.arc-item:hover .arc-disc, .arc-item:focus-visible .arc-disc { transform: scale(1.1); border-color: var(--gold); } .arc-item:active .arc-disc { transform: scale(0.94); }
.arc-label { font: 600 13px var(--display); letter-spacing: 0.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .arc.on .arc-item { animation: none; opacity: 1; } }

/* The scenes behind it: full-screen and quiet, like the first-run tour. Orb stands large above; one thing to do below. */
.orbscene { position: fixed; inset: 0; z-index: 27; pointer-events: none; }
.orbscene > * { pointer-events: auto; }
.scene-x { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; }
.scene-body { position: absolute; left: 0; right: 0; top: 42%; bottom: 0; overflow-y: auto; padding: 4px 20px max(28px, env(safe-area-inset-bottom)); text-align: center; display: grid; align-content: start; justify-items: center; gap: 4px; pointer-events: none; }
.scene-body > section { pointer-events: auto; width: min(560px, 100%); animation: st-word 0.7s var(--out); }
.orbscene .st-title { font-size: clamp(28px, 7vw, 44px); } .orbscene .st-say { min-height: 0; margin-bottom: 4px; }
.orbscene .colours { justify-content: center; gap: 9px; max-width: 520px; margin: 14px auto 0; } .orbscene .colours button { width: 34px; height: 34px; }
.orbscene .outfits { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; margin: 14px auto 0; } @media (min-width: 560px) { .orbscene .outfits { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 560px; } }
.orbscene .outfits button { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.pf-card { margin: 14px auto 0; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 7%, transparent); border: 1px solid var(--line); display: grid; gap: 12px; text-align: left; }
.pf-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 4px 12px; font-size: 15px; color: var(--muted); } .pf-row b { color: var(--ink); font: 600 17px var(--display); }
.pf-row small { grid-column: 2; color: var(--faint); font-size: 13px; margin-top: -4px; }
.pf-meter { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; } .pf-meter i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width 0.7s var(--out); }
.pf-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.pf-acts button { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 14px; padding: 12px 22px; font: 600 16px var(--display); cursor: pointer; } .pf-acts button:hover:not(.go) { border-color: var(--gold); }
.pf-acts button.go { background: var(--gold); color: var(--gold-ink); border-color: transparent; box-shadow: 0 10px 28px -12px var(--gold); }
.choices { display: grid; gap: 10px; margin-top: 14px; } .choices button { display: grid; justify-items: center; gap: 2px; padding: 14px; border-radius: 16px; border: 2px solid transparent; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); cursor: pointer; transition: border-color 0.15s, transform 0.15s var(--out); }
.choices button b { font: 600 18px var(--display); } .choices button small { color: var(--faint); font-size: 13px; } .choices button:hover { transform: translateY(-2px); } .choices button[aria-pressed='true'] { border-color: var(--gold); }
.tips { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; } .tips li { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); font-size: 15.5px; line-height: 1.4; } .tips b { color: var(--ink); }
/* while a scene is up the page behind is as quiet as while Orb draws */
body.orbscene::after { opacity: 1; } body.orbscene .dock, body.orbscene .mini, body.orbscene .hello { opacity: 0 !important; pointer-events: none; }

.tap-hint { position: fixed; left: 50%; transform: translateX(-50%); z-index: 8; margin: 0; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--muted); font: 500 14px var(--display); pointer-events: none; animation: arrive 0.6s var(--out) both; }
body.drawing .tap-hint, body.orbscene .tap-hint, body.listening .tap-hint { display: none; }

/* the quiz: an answer in your own words, judged by meaning */
.q-own { display: flex; gap: 8px; margin-top: 10px; }
.q-own input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--well); color: var(--ink); font-family: inherit; font-size: 16px; }
.q-own button { padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--well); color: var(--ink); font-family: inherit; font-size: 15px; cursor: pointer; }
.q-own button:disabled, .q-own input:disabled { opacity: .5; cursor: default; }
.q-opts button.partly { background: color-mix(in srgb, #f0c05a 24%, var(--well)); border-color: #f0c05a; }

/* sign-in consent, your data, and reporting a problem */
.consent { margin: 10px 0 0; font-size: 12.5px; opacity: .75; max-width: 34ch; text-align: center; } .consent a { color: inherit; text-decoration: underline; }
.pf-data { margin-top: 6px; } .pf-data button { font-size: 14px; padding: 9px 16px; opacity: .85; } .pf-data .danger { border-color: #ff7a6b; color: #ff9a8d; } .pf-data .danger.armed { background: #ff7a6b; color: #2a0f0b; opacity: 1; }
.pf-note { min-height: 1.3em; margin: 8px auto 0; max-width: 40ch; text-align: center; font-size: 13.5px; opacity: .85; }
.follow .quiet { opacity: .6; font-size: 13px; }
.rp-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; } .rp-kinds button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--well); color: var(--ink); font: 500 14.5px var(--display); cursor: pointer; } .rp-kinds button[aria-checked="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 22%, var(--well)); }
#rp-note { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--well); color: var(--ink); font: 16px var(--display); resize: vertical; }
.rp-incl { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: 14px; opacity: .9; } .rp-say { font-size: 14px; opacity: .9; align-self: center; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }


/* first visit: an example, what to try, and labels on the side buttons */
.textlink.example { justify-self: center; opacity: .95; font-size: 15px; } .fine-note { font-size: 12.5px !important; opacity: .65; line-height: 1.3; } .signin .consent { font-size: 12px; line-height: 1.3; }
.notice { background: color-mix(in srgb, var(--gold) 14%, var(--well)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 14px !important; color: var(--ink) !important; } .notice .textlink { display: inline; padding: 0; text-decoration: underline; color: inherit; }
.ideas { gap: 8px; flex-wrap: wrap; justify-content: center; } .ideas button { font-size: 14.5px; }
.round.side { position: relative; } .round.side::after { content: attr(data-label); position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); font: 600 11.5px var(--display); opacity: .7; letter-spacing: .02em; pointer-events: none; }
.q-missed { margin: 10px 0 4px; text-align: left; font-size: 15px; } .q-missed ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; } .q-missed li span { opacity: .8; }
.lib-search { width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--well); color: var(--ink); font: 16px var(--display); }

/* the microphone: why we ask, and how to turn it back on when the browser has blocked it */
.mc-steps { margin: 4px 0 12px; padding-left: 22px; display: grid; gap: 7px; font-size: 15.5px; line-height: 1.4; } .mc-steps:empty { display: none; }
.bigmic.blocked { background: color-mix(in srgb, var(--gold) 38%, var(--well)); color: var(--ink); }
.bigmic.blocked::after { content: ''; position: absolute; width: 44px; height: 3px; border-radius: 2px; background: var(--ink); transform: rotate(-45deg); opacity: .9; } .bigmic { position: relative; }

#input:disabled, #say:disabled { cursor: progress; } #input:disabled::placeholder { opacity: .75; }

/* ---- Play with Orb: the games, in the middle of the page ---- */
.play { position: fixed; inset: 0; z-index: 40; display: grid; justify-items: center; align-items: end; padding: 12px 12px max(120px, 16vh); }
.play[hidden] { display: none; }
.pl-card-box { width: min(380px, 100%); padding: 12px 12px 10px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: pl-in 0.2s ease both; }
@keyframes pl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.play .q-top { display: flex; align-items: center; gap: 10px; padding: 0 4px; } .play .q-top > span:first-of-type { flex: 1; text-align: left; font: 700 16px var(--display); }
.pl-sub { margin: 2px 4px 8px; color: var(--muted); font-size: 13.5px; }
.pl-cards { display: grid; gap: 4px; }
.pl-card { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 13px; background: none; color: var(--ink); font-family: inherit; text-align: left; cursor: pointer; }
.pl-card:hover, .pl-card:focus-visible { background: var(--well); outline: none; }
.pl-card svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-card span { flex: 1; min-width: 0; display: grid; } .pl-card b { font: 700 15px var(--display); } .pl-card small { color: var(--muted); font-size: 13px; }
.pl-card em { flex: none; font-style: normal; font-size: 12px; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .pl-card-box { animation: none; } }

/* A game is being played on the page: the bottom bar and the greeting step back, and the finger belongs to the game. */
body.gaming { touch-action: none; overscroll-behavior: none; } body.gaming .dock { opacity: 0; pointer-events: none; transition: opacity 0.25s ease; } body.gaming .hello, body.gaming #status { visibility: hidden; }

/* The end of a quiz: the score as a big number, a line about it, then what to look at again, each question with its answer under it (one under the other, the full width of the card). */
.q-end p { display: grid; gap: 6px; justify-items: center; font-family: inherit; font-weight: 400; font-size: 16px; line-height: 1.45; color: var(--muted); } .q-end .q-num { font: 700 40px var(--display); color: var(--ink); letter-spacing: 0.5px; }
.q-end .q-missed { display: block; margin: 8px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; } .q-missed > b { display: block; font: 700 13px var(--display); letter-spacing: 0.6px; text-transform: uppercase; color: var(--gold); }
.q-missed ul { list-style: none; padding: 0; margin: 10px 0 0; gap: 12px; } .q-missed li { display: grid; gap: 3px; } .q-missed li b { font-weight: 600; color: var(--ink); } .q-missed li span { opacity: 1; color: var(--muted); font-size: 14.5px; line-height: 1.4; }


/* Orb ended on a question: the way to answer it aloud, first among what comes next. Gold while it listens, with a ring that follows the voice. */
.follow .reply { flex-basis: auto; display: inline-flex; align-items: center; gap: 8px; margin: 0 20% 2px; padding: 9px 18px; background: color-mix(in srgb, var(--gold) 20%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); font-weight: 600; }
.follow .reply[hidden] { display: none; }
.follow .reply svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.follow .reply.on { background: var(--gold); color: #1b1300; box-shadow: 0 0 0 calc(3px + var(--lvl, 0) * 9px) color-mix(in srgb, var(--gold) 30%, transparent); transition: box-shadow 0.08s linear; }
@media (max-width: 520px) { .follow .reply { margin-inline: 0; } }
