/* Inside 3HUE — guided tour. Brand tokens mirror 3hue.net (Roboto headings, Inter body, 3HUE cyan on navy). */
:root {
  --bg: #0a1220; --bg-deep: #05090f;
  --panel: rgba(8, 15, 28, 0.78); --panel-solid: #0e1a2b;
  --line: rgba(226, 232, 240, 0.12); --line-strong: rgba(226, 232, 240, 0.26);
  --text: #e8eef6; --text-muted: #9fb0c4; --text-dim: #64748b;
  --blue: #1fb6ff; --gold: #ffd63a; --green: #2ee59d;
  --font-head: 'Roboto', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --hud-h: 60px; --bar-h: 3.5vh;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg-deep); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.5; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(8,15,28,0.6); color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: 14px; letter-spacing: 0.01em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background 160ms, border-color 160ms, transform 160ms var(--ease); }
.btn:hover { background: rgba(31,182,255,0.12); border-color: rgba(31,182,255,0.5); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #03111c; }
.btn.primary:hover { background: #4cc6ff; }
.btn.icon { padding: 8px; width: 38px; height: 38px; justify-content: center; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }

/* ---------- scene ---------- */
#scene { position: fixed; inset: 0; background: var(--bg-deep); overflow: hidden; }
#scene .bg { position: absolute; inset: 0; opacity: 0; transition: opacity 1400ms var(--ease); will-change: transform, opacity; overflow: hidden; }
#scene .bg.on { opacity: 1; }
#scene .bg img, #scene .bg video { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%) scale(1); transform-origin: 50% 50%; will-change: transform; filter: saturate(1.05); }
#scene .bg video { opacity: 0; transition: opacity 600ms var(--ease); pointer-events: none; }
#scene .bg.live video { opacity: 1; }
#scene .vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 40%, rgba(3,9,16,0) 50%, rgba(3,9,16,0.62) 100%),
              linear-gradient(to bottom, rgba(3,9,16,0.55), rgba(3,9,16,0) 18%, rgba(3,9,16,0) 55%, rgba(3,9,16,0.78) 100%); }
#scene .bar { position: absolute; left: 0; right: 0; height: var(--bar-h); background: #000; z-index: 2; }
#scene .bar.top { top: 0; } #scene .bar.bottom { bottom: 0; }

/* ---------- title card ---------- */
#title-card { position: fixed; left: 50%; top: 22%; transform: translate(-50%, 0); z-index: 25; text-align: center; pointer-events: none; opacity: 0; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
#title-card.show { opacity: 1; transform: translate(-50%, -12px); }
#title-card i { display: block; font-style: normal; font-family: var(--font-head); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
#title-card b { font-family: var(--font-head); font-weight: 500; font-size: clamp(28px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.01em; text-shadow: 0 4px 30px rgba(0,0,0,0.8); }
#title-card::after { content: ""; display: block; width: 64px; height: 2px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, var(--blue), transparent); }

/* ---------- HUD ---------- */
#hud { position: fixed; left: 0; right: 0; top: 0; height: var(--hud-h); z-index: 40; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: linear-gradient(to bottom, rgba(5,9,15,0.85), rgba(5,9,15,0)); }
#hud .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
#hud .brand img { width: 30px; height: 32px; object-fit: contain; }
#hud .brand b { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; }
#hud .brand span { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
#hud .progress { flex: 1; display: flex; gap: 6px; align-items: center; justify-content: center; }
#hud .progress i { display: block; width: 26px; height: 3px; border-radius: 2px; background: rgba(226,232,240,0.18); transition: background 300ms, box-shadow 300ms; }
#hud .progress i.done { background: rgba(31,182,255,0.55); }
#hud .progress i.now { background: var(--blue); box-shadow: 0 0 12px rgba(31,182,255,0.8); }
#hud .progress i.gold.now { background: var(--gold); box-shadow: 0 0 12px rgba(255,214,58,0.8); }
#hud .controls { display: flex; align-items: center; gap: 8px; }
#c-pause .i-play, #c-pause[aria-pressed="true"] .i-pause { display: none; }
#c-pause[aria-pressed="true"] .i-play { display: block; }
#c-mute .i-off, #c-mute[aria-pressed="true"] .i-on { display: none; }
#c-mute[aria-pressed="true"] .i-off { display: block; }

/* ---------- callouts ---------- */
#callout { position: fixed; right: 28px; top: calc(var(--hud-h) + 28px); width: min(380px, 34vw); z-index: 30; display: grid; gap: 12px; pointer-events: none; }
#callout > * { opacity: 0; transform: translateX(24px); animation: co-in 700ms var(--ease) forwards; }
#callout > *:nth-child(2) { animation-delay: 120ms; } #callout > *:nth-child(3) { animation-delay: 240ms; }
@keyframes co-in { to { opacity: 1; transform: none; } }
#callout.out > * { animation: co-out 400ms var(--ease) forwards; }
@keyframes co-out { to { opacity: 0; transform: translateX(16px); } }
.co { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.co h4 { margin: 0 0 10px; font-family: var(--font-head); font-weight: 500; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.co.chips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.co.chips li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.35; opacity: 0; animation: co-in 500ms var(--ease) forwards; }
.co.chips li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-top: 7px; box-shadow: 0 0 10px rgba(31,182,255,0.8); }
.co.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.co.stats.n2 { grid-template-columns: repeat(2, 1fr); }
.co.stats div { text-align: center; padding: 10px 6px; border-radius: 8px; background: rgba(31,182,255,0.06); border: 1px solid rgba(31,182,255,0.15); opacity: 0; animation: co-in 600ms var(--ease) forwards; }
.co.stats b { display: block; font-family: var(--font-head); font-weight: 500; font-size: clamp(16px, 1.5vw, 24px); white-space: nowrap; letter-spacing: -0.01em; color: #fff; line-height: 1.1; }
.co.stats span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--text-muted); margin-top: 6px; }
.co.card img { display: block; width: 100%; border-radius: 8px; margin-bottom: 10px; max-height: 190px; object-fit: cover; border: 1px solid var(--line); }
.co.card p { margin: 0; font-size: 14px; color: var(--text-muted); }
.co.card b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 15px; margin-bottom: 4px; color: var(--text); }

/* ---------- dialogue ---------- */
#dialogue { position: fixed; left: 28px; right: 28px; bottom: calc(var(--bar-h) + 22px); z-index: 35; display: grid; grid-template-columns: 150px minmax(0, 720px); gap: 18px; align-items: end; }
#dialogue .guide { position: relative; width: 150px; height: 150px; }
#dialogue .guide canvas { width: 150px; height: 150px; display: block; filter: drop-shadow(0 0 18px rgba(31,182,255,0.35)); }
#dialogue .box { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px 14px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); min-height: 96px; }
#dialogue .box::before { content: ""; position: absolute; left: -9px; bottom: 34px; width: 16px; height: 16px; background: var(--panel); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
#dialogue .name { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
#dialogue .name b { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
#dialogue .name span { font-size: 12.5px; color: var(--text-muted); }
#dialogue .name em { margin-left: auto; font-style: normal; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
#dialogue .name em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
#dialogue .name em[data-state="paused"]::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
#dialogue .name em[data-state="listening"]::before { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
#dialogue .caption { margin: 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; min-height: 1.55em; color: var(--text); }
#dialogue .caption .w { opacity: 0.22; transition: opacity 120ms; }
#dialogue .caption .w.on { opacity: 1; }
#dialogue .caption .w.now { color: #fff; text-shadow: 0 0 12px rgba(31,182,255,0.6); }
body.no-cc #dialogue .caption { visibility: hidden; height: 0; min-height: 0; margin: 0; }
#dialogue .choices { display: grid; gap: 8px; margin-top: 12px; }
#dialogue .choices:empty { display: none; }
#dialogue .choices .prompt { font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--text-muted); margin: 2px 0 4px; }
#dialogue .choices button { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(8,15,28,0.55); opacity: 0; transform: translateY(8px); animation: co-in 400ms var(--ease) forwards; transition: background 160ms, border-color 160ms, transform 160ms var(--ease); }
#dialogue .choices button:nth-child(2) { animation-delay: 60ms; } #dialogue .choices button:nth-child(3) { animation-delay: 120ms; } #dialogue .choices button:nth-child(4) { animation-delay: 180ms; } #dialogue .choices button:nth-child(5) { animation-delay: 240ms; } #dialogue .choices button:nth-child(6) { animation-delay: 300ms; } #dialogue .choices button:nth-child(7) { animation-delay: 360ms; }
#dialogue .choices button:hover, #dialogue .choices button:focus-visible { background: rgba(31,182,255,0.14); border-color: var(--blue); transform: translateX(4px); outline: none; }
#dialogue .choices button i { font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--blue); }
#dialogue .choices button b { font-family: var(--font-head); font-weight: 500; font-size: 15px; }
#dialogue .choices button small { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-muted); }
#dialogue .choices button em { font-style: normal; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
#dialogue .choices button.done { opacity: 0.7; }
#dialogue .choices button.done b::after { content: " ✓"; color: var(--green); }
#dialogue .choices.compact { grid-template-columns: 1fr 1fr; }
#dialogue .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
#dialogue .row:empty, #dialogue .row:not(:has(:not([hidden]))) { display: none; }

/* ---------- sheets (map, ask) ---------- */
#map, #ask { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(3,8,14,0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 100px rgba(0,0,0,0.6); display: flex; flex-direction: column; }
.sheet .head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet .head b { font-family: var(--font-head); font-weight: 500; font-size: 17px; }
.sheet .head span { color: var(--text-muted); font-size: 13px; flex: 1; }
.sheet .head .btn { margin-left: auto; }
.sheet .foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); }
#map-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
#map-list button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 10px; transition: background 150ms; }
#map-list button:hover { background: rgba(31,182,255,0.1); }
#map-list button i { font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 12px; color: var(--text-dim); }
#map-list button b { font-family: var(--font-head); font-weight: 500; font-size: 15px; }
#map-list button small { display: block; color: var(--text-muted); font-size: 12.5px; }
#map-list button em { font-style: normal; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
#map-list button.now i, #map-list button.now em { color: var(--blue); } #map-list button.done em { color: var(--green); }

/* ask: docked communication console */
#ask { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; display: block; }
body.ask-open #dialogue { opacity: 0; pointer-events: none; }
body.ask-open #callout { opacity: 0; }
#ask .console { pointer-events: auto; position: absolute; right: 24px; top: calc(var(--hud-h) + 18px); bottom: 24px; width: min(600px, 44vw); display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(10,18,32,0.94), rgba(6,12,22,0.96)); border: 1px solid rgba(31,182,255,0.28); border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(31,182,255,0.06), 0 30px 90px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform: translateX(24px); opacity: 0; animation: console-in 420ms var(--ease) forwards; overflow: hidden; }
@keyframes console-in { to { transform: none; opacity: 1; } }
#ask.min .console { display: none; }
#ask .pill { pointer-events: auto; position: absolute; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(8,15,28,0.85); border: 1px solid rgba(31,182,255,0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
#ask .pill canvas { width: 30px; height: 30px; }
#ask .pill b { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
#ask .pill span { font-size: 13px; color: var(--text-muted); }
#ask .btn.ghost { background: none; border-color: transparent; color: var(--text-muted); backdrop-filter: none; }
#ask .btn.ghost:hover { color: var(--text); background: rgba(226,232,240,0.06); }

#ask .head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 6px 22px; }
#ask .head canvas { width: 60px; height: 60px; flex: none; filter: drop-shadow(0 0 12px rgba(31,182,255,0.4)); }
#ask .head .who b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; }
#ask .head .who span { display: block; font-size: 14px; color: var(--text-muted); margin-top: -2px; }
#ask .head .win { margin-left: auto; display: flex; gap: 2px; }
#ask .intro { padding: 6px 22px 0; }
#ask .intro h2 { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.01em; line-height: 1.1; }
#ask .intro p { margin: 6px 0 12px; color: var(--text-muted); font-size: 15px; }
#ask .stop { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid rgba(31,182,255,0.45); background: rgba(31,182,255,0.06); font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--gold); }
#ask .stop svg { width: 16px; height: 16px; color: var(--gold); }
#ask .tabs { display: flex; gap: 6px; padding: 12px 14px 0; border-bottom: 1px solid var(--line); }
#ask .tabs button { padding: 10px 12px; font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
#ask .tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
#ask .pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
#ask .thread { padding: 16px 18px 6px 22px; display: grid; gap: 14px; align-content: start; }
#ask .msg { display: grid; gap: 4px; max-width: 92%; }
#ask .msg .meta { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--text-dim); }
#ask .msg .meta b { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--text); }
#ask .msg.you { justify-self: end; text-align: right; }
#ask .msg.you .meta { justify-content: flex-end; }
#ask .msg .t { padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; text-align: left; }
#ask .msg.you .t { background: rgba(31,182,255,0.16); border: 1px solid rgba(31,182,255,0.35); border-top-right-radius: 4px; }
#ask .msg.ai { grid-template-columns: 34px 1fr auto; column-gap: 12px; }
#ask .msg.ai .av { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd63a 0, rgba(255,214,58,0.25) 20%, rgba(31,182,255,0.35) 55%, rgba(31,182,255,0) 72%); box-shadow: 0 0 14px rgba(31,182,255,0.4); grid-row: 1 / span 2; }
#ask .msg.ai .t { background: none; padding: 0 0 0 2px; grid-column: 2; }
#ask .msg.ai .meta { grid-column: 2; }
#ask .msg.ai .say { grid-column: 3; grid-row: 1 / span 2; align-self: start; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text-muted); }
#ask .msg.ai .say:hover, #ask .msg.ai .say.on { color: var(--blue); border-color: var(--blue); }
#ask .msg.ai .say svg { width: 16px; height: 16px; }
#ask .msg.ai .say.wait { animation: say-wait 1s ease-in-out infinite; }
@keyframes say-wait { 50% { opacity: 0.35; } }
#ask .msg.ai .acts { grid-column: 2; display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
#ask .msg.ai .acts .btn { font-size: 13px; padding: 6px 10px; }
#ask .msg.ai.thinking .t { color: var(--text-muted); }
#ask .msg.ai.thinking .t::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
#ask .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 18px 0 22px; }
#ask .cards:empty { display: none; }
#ask .cards button { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid rgba(31,182,255,0.35); background: rgba(31,182,255,0.05); transition: background 160ms, border-color 160ms, transform 160ms var(--ease); }
#ask .cards button:hover { background: rgba(31,182,255,0.12); border-color: var(--blue); transform: translateY(-1px); }
#ask .cards button svg { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.6; }
#ask .cards button b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 15px; }
#ask .cards button small { display: block; font-size: 12.5px; color: var(--text-muted); }
#ask .cards button i { color: var(--blue); font-style: normal; font-size: 18px; }
#ask .also { padding: 14px 18px 12px 22px; }
#ask .also > span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
#ask .suggest { display: flex; gap: 8px; flex-wrap: wrap; }
#ask .suggest button { font-size: 13.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); background: rgba(8,15,28,0.5); }
#ask .suggest button:hover { border-color: var(--blue); }
#ask .explore { list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 2px; }
#ask .explore button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 10px; }
#ask .explore button:hover { background: rgba(31,182,255,0.1); }
#ask .explore button i { font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 12px; color: var(--text-dim); }
#ask .explore button b { font-family: var(--font-head); font-weight: 500; font-size: 15px; }
#ask .explore button small { display: block; color: var(--text-muted); font-size: 12.5px; }
#ask .explore button em { font-style: normal; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
#ask .explore button.now i, #ask .explore button.now em { color: var(--blue); } #ask .explore button.done em { color: var(--green); }
#ask .transcript { padding: 14px 22px; display: grid; gap: 14px; }
#ask .transcript h5 { margin: 6px 0 0; font-family: var(--font-head); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
#ask .transcript p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
#ask .transcript p.now { color: var(--text); }
#ask .compose { display: flex; align-items: center; gap: 10px; margin: 8px 18px 0 22px; padding: 6px 6px 6px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(8,15,28,0.6); }
#ask .compose:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,182,255,0.15); }
#ask .compose input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 15px; padding: 10px 0; }
#ask .compose input:focus { outline: none; }
#ask .compose .send { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #03111c; display: grid; place-items: center; flex: none; }
#ask .compose .send svg { width: 20px; height: 20px; stroke-width: 2.4; }
#ask .foot { display: flex; align-items: center; gap: 14px; padding: 12px 22px 18px; }
#ask .foot .voice { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-head); font-weight: 500; font-size: 14px; }
#ask .foot .voice svg { width: 18px; height: 18px; color: var(--blue); }
#ask .foot .voice[aria-pressed="true"] { border-color: #f87171; color: #f87171; animation: pulse-mic 1.2s ease-in-out infinite; }
#ask .foot .voice[aria-pressed="true"] svg { color: #f87171; }
@keyframes pulse-mic { 50% { box-shadow: 0 0 0 6px rgba(248,113,113,0.2); } }
#ask .foot em { font-style: normal; font-size: 13px; color: var(--text-muted); }
#ask .foot .talk { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-family: var(--font-head); font-weight: 500; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
#ask .foot .talk svg { width: 16px; height: 16px; }
#ask .capture { margin: 10px 18px 0 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(31,182,255,0.35); background: rgba(31,182,255,0.06); }
#ask .capture .cap-head b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 15px; }
#ask .capture .cap-head span { font-size: 13px; color: var(--text-muted); }
#ask .capture .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 8px; }
#ask .capture .grid label:nth-child(3) { grid-column: 1 / -1; }
#ask .capture label { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-muted); }
#ask .capture label i { font-style: normal; color: var(--text-dim); }
#ask .capture input[type="text"], #ask .capture input[type="email"] { padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(8,15,28,0.6); color: var(--text); font: inherit; }
#ask .capture .consent { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; }
#ask .capture .row { display: flex; gap: 8px; }
#ask .capture .note { margin: 8px 0 0; font-size: 13px; color: var(--green); min-height: 1em; }
#ask .capture .note.err { color: #f87171; }

/* paused pill (bottom-left while the console is open) */
#paused { position: fixed; left: 28px; bottom: calc(var(--bar-h) + 22px); z-index: 61; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(8,15,28,0.85); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
#paused i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
#paused b { font-family: var(--font-head); font-weight: 500; font-size: 15px; }
#paused span { font-size: 13px; color: var(--text-muted); }
#paused .btn { border-radius: 999px; padding: 9px 16px; }

/* ---------- intro / pre-roll ---------- */
#intro { position: fixed; inset: 0; z-index: 70; background: #000; display: grid; place-items: center; transition: opacity 900ms var(--ease); }
#intro.out { opacity: 0; pointer-events: none; }
#intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#intro .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,14,26,0.92) 0%, rgba(6,14,26,0.25) 45%, rgba(6,14,26,0.4) 100%); }
#intro .copy { position: relative; text-align: center; max-width: 760px; padding: 0 24px; transform: translateY(6vh); }
#intro .eyebrow { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
#intro h1 { font-family: var(--font-head); font-weight: 500; font-size: clamp(28px, 4vw, 46px); line-height: 1.15; margin: 0 0 14px; }
#intro p { color: var(--text-muted); font-size: 16px; line-height: 1.55; margin: 0 auto 26px; max-width: 600px; }
#intro .actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
#intro .actions .btn.primary { padding: 12px 22px; font-size: 15px; }
#intro .logo { position: relative; width: clamp(130px, 21vh, 220px); aspect-ratio: 349 / 376; margin: 0 auto 22px; opacity: 0; transition: opacity 500ms var(--ease); }
#intro .logo.on { opacity: 1; }
#intro .logo svg, #intro .logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro .logo img { opacity: 0; transform: scale(0.96); transition: opacity 1100ms var(--ease), transform 1100ms var(--ease); filter: drop-shadow(0 0 18px rgba(31,182,255,0.35)); }
#intro .logo.lit img { opacity: 1; transform: none; }
#intro .logo path { fill: none; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
#intro .logo path.line { stroke: #dff6ff; stroke-width: 1.6; filter: url(#weld); }
#intro .logo path.glow { stroke: var(--blue); stroke-width: 6; opacity: 0.55; filter: url(#bloom); }
#intro .logo.trace path { animation: weld var(--d) linear var(--t) forwards; }
@keyframes weld { to { stroke-dashoffset: 0; } }
#intro .logo .spark { opacity: 0; }
#intro .logo .spark.go { opacity: 1; animation: flicker 90ms steps(2) infinite; }
#intro .logo .spark .core { fill: #fff; filter: url(#weld); }
#intro .logo .spark .halo { fill: var(--blue); opacity: 0.55; filter: url(#bloom); }
@keyframes flicker { 50% { opacity: 0.75; } }
#intro .logo.lit svg { transition: opacity 1400ms var(--ease) 300ms; opacity: 0; }
#intro .logo.lit path.glow { opacity: 0.9; }

/* ---------- boot ---------- */
#boot { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--bg-deep); color: var(--text-muted); font-family: var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; transition: opacity 400ms; }
#boot.out { opacity: 0; pointer-events: none; }

/* ---------- motion / responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  #scene .bg img, #scene .bg video { transition: none !important; }
  #intro, #callout > *, #dialogue .choices button { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
@media (max-width: 900px) {
  :root { --hud-h: 54px; --bar-h: 0px; }
  #hud { padding: 0 12px; gap: 10px; }
  #hud .brand span, #hud .progress, #c-back, #c-cc { display: none; }
  #hud .controls { margin-left: auto; gap: 6px; }
  #c-map, #c-ask { padding: 8px; width: 38px; height: 38px; justify-content: center; font-size: 0; gap: 0; }
  #c-map svg, #c-ask svg { width: 18px; height: 18px; }
  #callout { right: 12px; left: 12px; top: calc(var(--hud-h) + 10px); width: auto; }
  .co.card img { max-height: 120px; }
  #dialogue { left: 12px; right: 12px; bottom: 14px; grid-template-columns: 64px 1fr; gap: 10px; }
  #dialogue .guide, #dialogue .guide canvas { width: 64px; height: 64px; }
  #dialogue .box { padding: 12px 14px; }
  #dialogue .caption { font-size: 15px; }
  #dialogue .choices.compact { grid-template-columns: 1fr; }
  #ask .console { right: 0; left: 0; top: 0; bottom: 0; width: auto; border-radius: 0; border: 0; }
  #ask .cards { grid-template-columns: 1fr; }
  #ask .intro h2 { font-size: 22px; }
  #paused { display: none; }
  #ask .foot { padding: 10px 16px 14px; } #ask .foot em { display: none; }
  #ask .head { padding: 14px 12px 4px 16px; } #ask .intro { padding: 4px 16px 0; } #ask .thread, #ask .cards, #ask .also { padding-left: 16px; padding-right: 12px; } #ask .compose { margin: 8px 12px 0 16px; }
  #ask .capture .grid { grid-template-columns: 1fr; }
  #title-card { top: 18%; padding: 0 16px; width: 100%; }
}
