

/* One dark visual world by choice: a full-screen canvas with a low control sheet resting on it. */
:root{
  color-scheme: dark;
  --ink:#05060a;
  --sheet:rgba(13,15,24,.84);
  --text:#ebe7df;
  --muted:#9d9aa8;
  --line:rgba(255,255,255,.11);
  --accent:#8fc3cf;
  --display:"Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body:"Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--ink);color:var(--text);font-family:var(--body);font-size:15px;line-height:1.45;overflow:hidden;-webkit-font-smoothing:antialiased}
canvas{position:fixed;inset:0;width:100%;height:100%;display:block}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.sheet{
  position:fixed;left:12px;right:12px;bottom:12px;max-width:430px;max-height:66%;
  overflow-y:auto;padding:16px 16px 14px;border:1px solid var(--line);border-radius:18px;
  background:var(--sheet);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  display:flex;flex-direction:column;gap:14px;
  transition:opacity .6s ease, transform .6s ease;
}
@media (min-width:720px){.sheet{left:24px;bottom:24px;right:auto;width:430px;max-height:calc(100% - 48px)}}
.sheet.away{opacity:0;transform:translateY(16px);pointer-events:none}

.head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
h1{font-family:var(--display);font-weight:400;font-size:30px;line-height:1;margin:0;letter-spacing:.01em}
h1 em{color:var(--accent);font-style:italic}
.tag{color:var(--muted);font-size:13px;text-align:right}

.group{display:flex;flex-direction:column;gap:7px}
.label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{
  border:1px solid var(--line);background:transparent;border-radius:999px;padding:7px 12px;
  font-size:14px;color:var(--text);min-height:36px;
}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#0a0c12;font-weight:600}
.filebtn{position:relative;overflow:hidden;display:inline-flex;align-items:center}
.filebtn input{position:absolute;inset:0;opacity:0;cursor:pointer;font-size:0}
.filebtn:focus-within{outline:2px solid var(--accent);outline-offset:2px}

.read{
  border-left:2px solid var(--accent);padding:2px 0 2px 11px;font-size:13.5px;color:var(--text);
  display:flex;flex-direction:column;gap:3px;
}
.read span{color:var(--muted)}
.read b{font-weight:600;font-variant-numeric:tabular-nums}

.row{display:flex;align-items:center;gap:12px}
.row label{font-size:13px;color:var(--muted)}
input[type=range]{flex:1;accent-color:var(--accent);min-width:0}
.go{
  flex:1;border:0;border-radius:12px;background:var(--accent);color:#0a0c12;font-weight:600;
  font-size:16px;padding:13px 16px;min-height:48px;
}
.ghost{border:1px solid var(--line);background:transparent;border-radius:12px;padding:12px 14px;min-height:48px;font-size:14px}
.note{font-size:12px;color:var(--muted);margin:0}

.hint{
  position:fixed;left:0;right:0;bottom:22px;text-align:center;font-size:13px;color:var(--muted);
  opacity:0;transition:opacity 1s ease;pointer-events:none;
}
.hint.on{opacity:.8}
.cue{
  position:fixed;left:24px;right:24px;top:12%;text-align:center;font-family:var(--display);font-size:26px;
  line-height:1.25;color:var(--text);opacity:0;transition:opacity 2.5s ease;pointer-events:none;text-wrap:balance;
}
.cue.on{opacity:.92}
.end{
  position:fixed;inset:0;display:none;align-items:center;justify-content:center;text-align:center;
  font-family:var(--display);font-size:22px;color:#6d6a66;background:#000;padding:24px;
}
.end.on{display:flex}
@media (prefers-reduced-motion:reduce){.sheet,.hint,.cue{transition:none}}
