:root {
  --ink: #2a2740; --night: #232c5a; --dusk: #6d5f9c; --cream: #fbf1dc; --gold: #f6c453; --glow: #fff2b5;
  --glass: rgba(34, 31, 54, .72); --line: rgba(255, 242, 181, .18); --soft: #c9c3dd;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: #17152a; color: var(--cream); font: 15px/1.45 "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }
h2 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 0; font-weight: 600; }
p { margin: 0 0 10px; }
.small { font-size: 13px; color: var(--soft); }
.glow { color: var(--glow); }
button, .button { font: inherit; color: var(--ink); background: var(--gold); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
button.quiet { background: transparent; color: var(--soft); border: 1px solid var(--line); }
button:disabled { background: rgba(255, 255, 255, .08); color: var(--soft); cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }

/* the stage fills the window; the frame is the picture itself, sized by the renderer */
#stage { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #2a2740, #131124); }
#frame { position: relative; container-type: inline-size; overflow: clip; } /* Focusing controls must not scroll the painting. */
#sleep-veil { position: absolute; inset: 0; z-index: 4; background: #100f19; opacity: 0; pointer-events: none; }
#canvas { position: absolute; inset: 0; }
#canvas canvas { display: block; width: 100% !important; height: 100% !important; filter: saturate(1.06) contrast(.97); }
#vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(20, 16, 40, .5) 100%); }
#grain { position: absolute; inset: -50%; pointer-events: none; opacity: .11; mix-blend-mode: overlay; animation: grain .9s steps(4) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } 100% { transform: translate(3%, 3%); } }
@media (prefers-reduced-motion: reduce) { #grain { animation: none; } }

#top { position: absolute; top: 1.6cqw; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.chip { background: var(--glass); backdrop-filter: blur(6px); padding: 3px 12px; border-radius: 999px; font-size: clamp(11px, 1.5cqw, 14px); transition: opacity .8s; }
#beat { color: var(--glow); }
#mode { color: var(--soft); }
.chip:empty, .chip.faded { opacity: 0; }
#caption { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); max-width: min(78%, 620px); background: rgba(251, 241, 220, .95); color: var(--ink); padding: .5em 1em; border-radius: 14px; text-align: center; font-size: clamp(12px, 2.1cqw, 20px); box-shadow: 0 6px 24px rgba(20, 16, 40, .25); animation: rise .35s ease-out; }
#caption.think { font-style: italic; background: rgba(255, 250, 235, .96); border-radius: 22px; max-width: min(70%, 380px); transform: none; animation: none; }
#caption-timer { display:block; height:2px; margin-top:7px; background:rgba(109,95,156,.12); border-radius:999px; overflow:hidden; }
#caption-fill { display:block; width:100%; height:100%; background:rgba(109,95,156,.6); transform:scaleX(0); transform-origin:left center; }
#talk { display: grid; grid-template-columns: auto 1fr; column-gap: .9em; align-items: start; position: absolute; left: 50%; transform: translateX(-50%); width: min(92%, 760px); top: 8%; z-index: 2; background: rgba(251, 241, 220, .96); color: var(--ink); padding: .7em 1.1em .5em; border-radius: 16px; font-size: clamp(12px, 2.1cqw, 20px); box-shadow: 0 6px 24px rgba(20, 16, 40, .25); animation: rise .3s ease-out; }
@keyframes rise { from { opacity: 0; margin-top: 8px; } to { opacity: 1; margin-top: 0; } }
#talk-face { width: 3.4em; height: 3.9em; object-fit: contain; background: #efe3c8; border-radius: 14px; padding: .15em; grid-row: 1 / span 2; }
#talk-face[hidden] { display: none; }
#talk-body { min-width: 0; }
#talk.narrator #talk-text { font-style: italic; text-align: center; }
#talk-text { min-height: 2.6em; }
#talk-who { font-size: .78em; font-weight: 700; color: var(--dusk); letter-spacing: .03em; }
#talk-answers { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .5em; }
#talk-answers:empty { display: none; }
#talk-answers button { background: #eadfc6; padding: .3em .9em; font-size: .92em; }
#talk-answers button.on { background: var(--gold); }
#talk-more { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: .4em; font-size: .68em; color: #7c769a; min-height: 1.2em; }
#hint { position: absolute; left: 0; right: 0; bottom: 2.2cqw; text-align: center; font-size: clamp(11px, 1.5cqw, 14px); color: var(--cream); text-shadow: 0 1px 6px rgba(20, 16, 40, .9); pointer-events: none; transition: opacity .6s; }
#hint:empty { opacity: 0; }
#title-card { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; background: rgba(20, 16, 40, .35); animation: card 5s ease-in-out forwards; }
#title-card span { font-size: clamp(11px, 1.6cqw, 15px); letter-spacing: .2em; text-transform: uppercase; color: var(--glow); }
#title-card strong { font: 500 clamp(22px, 5cqw, 52px)/1.15 Georgia, "Iowan Old Style", serif; text-shadow: 0 2px 18px rgba(20, 16, 40, .7); }
@keyframes card { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }
#toast { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); background: var(--glass); backdrop-filter: blur(6px); color: var(--glow); padding: 6px 16px; border-radius: 999px; font-size: clamp(11px, 1.6cqw, 15px); border: 1px solid var(--line); animation: card 4s ease-in-out forwards; }
#end { position: absolute; inset: 0; z-index: 3; background: rgba(20, 16, 40, .6); display: grid; place-items: center; padding: 16px; animation: rise .8s ease-out; }
#end[hidden], #talk[hidden], #caption[hidden], #message[hidden], #title-card[hidden], #toast[hidden], .drawer[hidden] { display: none; }
.end-box { background: var(--cream); color: var(--ink); border-radius: 20px; padding: 20px 26px; max-width: 560px; text-align: center; }
.end-box .small { color: #7c769a; }
.end-box .row { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.end-box button.quiet { color: #7c769a; border-color: #d9cfb6; }
#end-question { font: 500 clamp(15px, 2.6cqw, 22px)/1.3 Georgia, serif; margin: 10px 0; }
#message { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--soft); }

/* the docks: small round buttons in the corners; the drawers open under them and never cover the middle */
.dock { position: fixed; top: max(10px, env(safe-area-inset-top)); display: flex; gap: 8px; z-index: 6; }
.dock.left { left: max(10px, env(safe-area-inset-left)); }
.dock.right { right: max(10px, env(safe-area-inset-right)); }
.dock button { width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--glass); color: var(--cream); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: 16px; opacity: .75; transition: opacity .2s, background .2s; }
.dock button:hover, .dock button[aria-expanded="true"] { opacity: 1; }
.dock button[aria-expanded="true"] { background: var(--gold); color: var(--ink); }
.dock button.off { text-decoration: line-through; opacity: .5; }
.drawer { position: fixed; top: calc(max(10px, env(safe-area-inset-top)) + 48px); z-index: 5; width: min(300px, calc(100vw - 20px)); max-height: min(64vh, 520px); display: flex; flex-direction: column; background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(10, 8, 24, .4); animation: rise .22s ease-out; }
.drawer.left { left: max(10px, env(safe-area-inset-left)); }
.drawer.right { right: max(10px, env(safe-area-inset-right)); }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; }
.drawer .close { background: none; color: var(--soft); padding: 0 6px; font-size: 20px; line-height: 1; }
.drawer .scroll { overflow-y: auto; padding: 0 14px 14px; }
.drawer .later { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin-top: 10px; }
.drawer form { display: flex; gap: 8px; }
.drawer input[type="text"] { flex: 1; min-width: 0; font: inherit; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); color: var(--soft); }
.drawer .line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.drawer input[type="range"] { flex: 1; accent-color: var(--gold); }
.drawer input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
#chapter-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
#chapter-list a { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; align-items: baseline; padding: 7px 10px; border-radius: 12px; color: var(--cream); text-decoration: none; border: 1px solid transparent; }
#chapter-list a:hover { border-color: var(--line); }
#chapter-list a[aria-current] { background: rgba(255, 242, 181, .12); border-color: var(--line); }
#chapter-list .n, #chapter-list .m { color: var(--soft); font-size: 12px; }
#chapter-list .done .n { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips button { background: rgba(255, 255, 255, .08); color: var(--cream); padding: 4px 11px; font-size: 13px; border: 1px solid transparent; }
.chips button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
#board-options { max-height: 150px; overflow-y: auto; }
#board-sentence { font: 500 16px/1.3 Georgia, serif; color: var(--glow); min-height: 1.3em; }

/* the touch pad: shown once the screen has been touched */
#pad { position: fixed; inset: auto 0 max(14px, env(safe-area-inset-bottom)) 0; display: none; justify-content: space-between; padding: 0 max(14px, env(safe-area-inset-left)); z-index: 4; pointer-events: none; }
body.touch #pad { display: flex; }
body.touch #hint { display: none; }
#pad button { pointer-events: auto; width: 62px; height: 62px; padding: 0; border-radius: 50%; background: var(--glass); color: var(--cream); border: 1px solid var(--line); backdrop-filter: blur(6px); font-size: 20px; touch-action: none; user-select: none; -webkit-user-select: none; }
#pad #right { margin-right: auto; margin-left: 10px; }
#pad #act { background: rgba(246, 196, 83, .85); color: var(--ink); width: 72px; height: 72px; }
#talk-answers[hidden] { display: none; }

/* said in pictures: a paper bubble over the head of whoever says it */
#bubble { position: absolute; max-width: calc(100% - 16px); background: rgba(255, 250, 235, .97); border-radius: 22px; padding: .45em .7em; box-shadow: 0 6px 22px rgba(20, 16, 40, .28); animation: pop .2s ease-out; z-index: 2; font-size: clamp(12px, 1.65cqw, 16px); }
#bubble[hidden] { display: none; }
#bubble { color:var(--ink); }
#bubble:has(#bubble-text:not(:empty)) { padding:.65em 1em; }
#bubble-text { max-width:34ch; font:400 1em/1.45 Georgia,serif; white-space:pre-wrap; }
#bubble-hint { color:#7c769a; font-size:.68em; margin-top:5px; }
#bubble-text:empty, #bubble-pics:empty, #bubble-hint:empty { display:none; }
#bubble::after, #caption.think::after { content: ""; position: absolute; left: var(--tail-left); top: var(--tail-top); width: var(--tail-width); height: var(--tail-height); background: inherit; clip-path: polygon(var(--base-a) var(--base-y), var(--base-b) var(--base-y), var(--tip-x) var(--tip-y)); pointer-events: none; }
#bubble-pics { display: flex; gap: .35em; justify-content: center; position: relative; z-index: 1; }
#bubble-pics img { width: clamp(36px, 5.6cqw, 64px); height: clamp(36px, 5.6cqw, 64px); }
#bubble-answers { display: flex; flex-wrap: wrap; gap: .45em; justify-content: center; margin-top: .4em; position: relative; z-index: 1; }
#bubble-answers:empty { display: none; }
#bubble-answers button { background: #eadfc6; padding: .2em .55em; display: flex; gap: .2em; align-items: center; border-radius: 14px; }
#bubble-answers button.on { background: var(--gold); }
#bubble-answers img { width: clamp(30px, 4.2cqw, 48px); height: clamp(30px, 4.2cqw, 48px); }
/* the replies to a question: separate paper bubbles in a row over the hero, each one clickable; the first is given
   by itself when nobody chooses, and while the story plays alone a line under it runs out */
#replies { position: absolute; display: flex; gap: .55em; align-items: flex-end; z-index: 3; font-size: clamp(12px, 1.65cqw, 16px); animation: pop .2s ease-out; }
#replies[hidden] { display: none; }
#replies::after { content: ""; position: absolute; left: calc(var(--tail, 50%) - 5px); bottom: -15px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 250, 235, .97); box-shadow: 5px 9px 0 -2px rgba(255, 250, 235, .97); pointer-events: none; }
#replies .reply { position: relative; display: flex; align-items: center; gap: .2em; padding: .32em .6em .38em; border: 2px solid transparent; border-radius: 18px; background: rgba(255, 250, 235, .97); color: var(--ink); font: 400 .9em/1.3 Georgia, serif; box-shadow: 0 5px 16px rgba(20, 16, 40, .26); cursor: pointer; overflow: hidden; transition: transform .12s, border-color .12s, background .12s; }
#replies .reply:not(:has(img)) { padding:.55em .85em; }
#replies .reply img { width: clamp(28px, 4.2cqw, 46px); height: clamp(28px, 4.2cqw, 46px); }
#replies .reply:hover { transform: translateY(-3px); background: #fff; border-color: var(--gold); }
#replies .reply.on { border-color: var(--gold); }
#replies .reply:active { transform: translateY(0) scale(.97); }
#replies .reply .key { position: absolute; left: .45em; top: .2em; font: 600 .5em/1 "Avenir Next", system-ui, sans-serif; color: #9a93b3; }
#replies .reply .timer { display: none; position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--left, 1) * 100%); background: var(--gold); }
#replies.timed .reply.first .timer { display: block; }
#replies.timed .reply.first { padding-bottom: .5em; }
body.touch #replies .reply .key { display: none; }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
body.quiet #top { opacity: 0; }
body.quiet #grain { opacity: .5; }

/* floating: the stage lives in a small window of its own; this page says so */
#floated { position: fixed; inset: 0; display: grid; place-content: center; gap: 14px; text-align: center; color: var(--soft); padding: 24px; }
#floated[hidden] { display: none; }
body.floating { margin: 0; overflow: hidden; background: #1e1a34; }
body.floating #stage { position: fixed; inset: 0; }
body.floating #hint, body.floating #pad { display: none; }

/* pause: a small button in the corner of the picture (it travels with the picture into the floating window) */
#pause { position: absolute; left: 1.4cqw; bottom: 1.4cqw; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: var(--glass); color: var(--cream); border: 1px solid var(--line); font-size: 11px; opacity: .55; transition: opacity .2s; z-index: 3; }
#pause:hover, #pause[aria-pressed="true"] { opacity: 1; }
#pause[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
#clock { position: absolute; left: calc(1.4cqw + 42px); bottom: calc(1.4cqw + 6px); background: var(--glass); color: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font: 12px/1.5 ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; opacity: .7; pointer-events: none; z-index: 3; }
#clock:empty { display: none; }
#paused { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--glass); backdrop-filter: blur(6px); color: var(--cream); padding: .5em 1.4em; border-radius: 999px; border: 1px solid var(--line); font-size: clamp(13px, 2cqw, 20px); letter-spacing: .08em; cursor: pointer; z-index: 3; }
#paused[hidden] { display: none; }

/* the browser is holding the sound back until the page is touched */
#sound-wait { position: absolute; right: 1.4cqw; bottom: 1.4cqw; background: var(--glass); backdrop-filter: blur(6px); color: var(--cream); padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: clamp(11px, 1.5cqw, 14px); z-index: 3; pointer-events: none; }
#sound-wait[hidden] { display: none; }
#playing { position: fixed; right: 0; bottom: 0; width: 240px; height: 160px; opacity: .01; pointer-events: none; z-index: -1; }

/* A visible invitation to use the always-on-top window. */
.top-actions { position:fixed; z-index:6; top:10px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 460px); text-align:center; }
.top-actions #float { display:block; max-width:100%; margin:0 auto 5px; padding:7px 14px; border:1px solid rgba(255,242,181,.24); color:var(--cream); background:rgba(34,31,54,.85); backdrop-filter:blur(8px); font-size:12px; line-height:1.4; }
.top-actions #float[hidden] { display:none; }
#community-status:empty { display:none; }
#community-status { max-width:440px; margin:4px auto; font-size:11px; background:var(--glass); border-radius:8px; padding:4px 8px; }
body.floated .top-actions #float { opacity:.7; }
.community-drawer { width:min(440px,calc(100vw - 28px)); top:110px; max-height:calc(100dvh - 130px); z-index:8; }
.community-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:end; margin:16px 0; }
.community-toolbar label { display:grid; gap:4px; font-size:11px; color:var(--soft); }
select, textarea { font:inherit; color:var(--cream); background:#302b43; border:1px solid var(--line); border-radius:9px; padding:9px; }
select { max-width:100%; }
textarea { resize:vertical; width:100%; line-height:1.5; }
.stack-form, .drawer .stack-form { display:grid; gap:10px; margin:16px 0; }
.stack-form label { display:grid; gap:5px; color:var(--soft); font-size:14px; min-width:0; }
.stack-form input { width:100%; font:inherit; color:var(--cream); background:#302b43; border:1px solid var(--line); border-radius:9px; padding:10px; }
.stack-form button { justify-self:start; }
.stack-form p { margin:0; }
.community-list { display:grid; gap:10px; margin:14px 0; }
.community-card { background:rgba(255,255,255,.045); border:1px solid var(--line); border-radius:14px; padding:14px; overflow-wrap:anywhere; }
.community-card h3 { font:500 19px/1.3 Georgia,serif; color:var(--cream); margin:10px 0; }
.community-card p { margin:10px 0; white-space:pre-wrap; font-size:16px; }
.card-meta { display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; color:var(--soft); font-size:11px; }
.kind-label { color:var(--gold); }
.community-card details { border-top:1px solid var(--line); padding-top:9px; margin:10px 0; }
.community-card summary { cursor:pointer; color:var(--soft); font-size:12px; }
.canonical { color:var(--glow); border-left:2px solid #857648; padding:6px 10px; }
.vote { background:rgba(255,255,255,.07); color:var(--cream); border:1px solid var(--line); padding:4px 12px; }
.vote[aria-pressed=true] { color:var(--ink); background:var(--gold); }
.moment-link { padding:0; border-radius:0; background:none; color:var(--gold); font-size:11px; text-align:left; }
#auth-dialog { width:min(400px,calc(100vw - 32px)); max-height:90vh; overflow:auto; background:#252136; color:var(--cream); border:1px solid var(--line); border-radius:20px; padding:26px; box-shadow:0 20px 70px #0008; }
#auth-dialog::backdrop { background:#151224bb; backdrop-filter:blur(3px); }
#auth-dialog h2 { color:var(--gold); margin-bottom:12px; }
.auth-close { position:absolute; top:8px; right:8px; }
.auth-social { display:grid; gap:9px; margin:18px 0; }
.auth-social button { width:100%; min-height:44px; }
.auth-divider { display:flex; align-items:center; gap:10px; text-align:center; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; border-top:1px solid currentColor; opacity:.3; }
#auth-dialog [hidden], #proposal-compose[hidden] { display:none; }
.community-drawer [hidden] { display:none; }
@media(max-width:850px) {
 .top-actions { max-width:calc(100vw - 130px); }
 .dock.right { flex-direction:column; }
 .top-actions #float { font-size:11px; }
}

#replies { padding-top:28px; }
#replies .reply.first { border-color:#a57928; box-shadow:0 0 0 2px #f6c45355,0 5px 16px #14102842; }
#replies .reply-wrap { position:relative; display:flex; }
#replies .reply-default { position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); padding:3px 7px; border:1px solid #c9ab6a; border-radius:10px; background:#fff9eb; box-shadow:0 2px 6px #0002; font:600 9px/1.2 system-ui,sans-serif; color:#755214; white-space:nowrap; pointer-events:none; }
#replies .reply-default::after { content:""; position:absolute; left:calc(50% - 3px); bottom:-4px; width:6px; height:6px; border-right:1px solid #c9ab6a; border-bottom:1px solid #c9ab6a; background:#fff9eb; transform:rotate(45deg); }
#replies:not(.timed) .reply-default { display:none; }

body.floating-player :is(.dock,.top-actions,.drawer,#mini-back) { display:none; }
body.floating-player #stage { position:fixed; inset:0; }

/* Choices have an explicit selectable outline; the timer belongs to its own label. */
#replies .reply { border:2px solid #9a783b; box-shadow:0 2px 0 #755926,0 5px 16px #14102842; }
#replies .reply:hover, #replies .reply.on { border-color:#6d4b14; background:#fff3d3; }
#replies .reply-default { padding-bottom:7px; }
#replies .reply-default .timer { display:none; position:absolute; left:3px; bottom:2px; height:2px; width:calc((100% - 6px) * var(--left,1)); border-radius:2px; background:#ad7a20; }
#replies.timed .reply-default .timer { display:block; }
#replies.timed .reply.first { padding-bottom:.38em; }

/* Choice controls have no speech/thought tail until an answer is actually spoken. */
#replies { width:max-content; max-width:calc(100% - 16px); flex-wrap:wrap; justify-content:center; align-items:flex-end; row-gap:32px; }
#replies::after { content:none; }
#replies .reply-wrap { max-width:100%; min-width:0; }
#replies .reply { flex-wrap:wrap; justify-content:center; max-width:100%; min-height:44px; overflow-wrap:anywhere; }
#replies .reply img { width:clamp(24px,3.8cqw,40px); height:clamp(24px,3.8cqw,40px); }
#replies .reply:focus-visible { outline:3px solid #755214; outline-offset:3px; }

#frame:has(#replies:not([hidden])) :is(#paused,#sound-wait),
#frame:has(#bubble:not([hidden])) #paused { display:none; }
@media (max-width:600px) {
  #replies { padding-top:24px; }
  #replies .reply-default { font-size:8px; padding:2px 6px 6px; bottom:calc(100% + 4px); }
}
