/* Home page. Tokens, links, top bar and footer come from topbar.css. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
main { display: flex; flex-direction: column; }
.hidden { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; }
.mono { font-family: var(--font-mono); }
.dim { color: var(--dim); }

@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(1.4em, .9em) } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-5deg) } 50% { transform: translateY(-10px) rotate(-3deg) } }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
.drift { animation: drift 5s ease-in-out infinite; }
.float { animation: float 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pulse, .drift, .float { animation: none; } }

/* small uppercase label with the accent square */
.eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }

/* "selected element" frame: outline, four handles and a coordinates tag */
.sel { position: relative; display: inline-block; outline: 2px solid var(--accent); }
.sel > i { position: absolute; width: 10px; height: 10px; background: var(--bg); border: 2px solid var(--accent); }
.sel > i.tl { left: -6px; top: -6px; } .sel > i.tr { right: -6px; top: -6px; }
.sel > i.bl { left: -6px; bottom: -6px; } .sel > i.br { right: -6px; bottom: -6px; }
.sel > b { position: absolute; right: -2px; top: calc(100% + 10px); padding: 5px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }

/* ---------------------------------------------------------------- hero */
.hero { border-bottom: 1px solid var(--line); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 28px 28px; background-position: center top; }
.hero-in { padding: 64px 24px 88px; display: flex; flex-direction: column; gap: 28px; }
h1 { margin: 0 0 20px; font-size: clamp(44px, 6.6vw, 96px); line-height: 1; letter-spacing: -0.025em; }
h1 .sel { padding: 0.02em 0.12em 0.08em; margin: 0 0.03em; }
/* a frame's tag that is only decoration keeps its words out of the page's text */
.sel > b[data-t]::before { content: attr(data-t); }
/* the home's title carries its small line above it (see index.html) */
.hero h1 { display: flex; flex-direction: column; gap: 28px; }
.hero h1 > .eyebrow { font-weight: 400; line-height: 1.5; }
.hero-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; }
.hero-left { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* login card (three views: first setup, start, waiting for the code) */
.card { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 24px; }
.view { display: flex; flex-direction: column; gap: 14px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: filter .15s ease; }
.btn:hover { filter: brightness(1.1); color: var(--accent-ink); }
.btn:disabled { opacity: .55; cursor: default; filter: none; }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn.ghost { min-height: 46px; background: transparent; border: 1px solid var(--line-3); color: var(--text); font-size: 14px; font-weight: 500; }
.btn.ghost:hover { color: var(--text); border-color: var(--muted); }
.btn.inline { display: inline-flex; width: auto; padding: 0 24px; }
.note { margin: 0; display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.note b { color: var(--text); font-weight: 600; }
.rowlink { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 8px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; text-decoration: none; }
.rowlink svg { flex: none; width: 16px; height: 16px; }
/* streamer or moderator, picked on the login card: two options side by side, the picked one in pink */
.role { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.role legend { grid-column: 1 / -1; margin: 0 0 8px; padding: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.role-opt { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 58px; padding: 8px 12px; border: 1px solid var(--line-3); border-radius: 10px; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.role-opt:hover { border-color: var(--muted); }
.role-opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.role-opt svg { flex: none; width: 20px; height: 20px; }
.role-opt > span { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.role-opt b { font-size: 15px; font-weight: 600; }
.role-opt > span > span { font-size: 12.5px; color: var(--muted); }
.role-opt.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.role-opt.on > span > span { color: var(--accent-ink); }
.role-opt:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.fine { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.err { margin: 0; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 10px; font-size: 14px; line-height: 1.45; color: var(--accent-soft); }
.err:empty { display: none; }
/* first setup */
.field { width: 100%; min-height: 46px; padding: 8px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: var(--font-mono); font-size: 14px; }
.field::placeholder { color: var(--dim); }
.field:focus { outline: none; border-color: var(--accent); }
/* waiting for the code */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.steps li::before { content: "0" counter(step); flex: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--dim); }
.steps b { color: var(--text); font-weight: 600; }
.codebox { display: flex; justify-content: center; padding: 22px 12px 44px; background-color: var(--bg); background-image: repeating-linear-gradient(135deg, #191518 0, #191518 1px, transparent 1px, transparent 12px); border: 1px solid var(--line); border-radius: 10px; }
.codebox .sel { padding: 10px 14px 10px 20px; background: var(--bg); }
.code { font-family: var(--font-mono); font-size: clamp(24px, 6vw, 34px); font-weight: 500; letter-spacing: 0.18em; line-height: 1; user-select: all; }

/* overlay preview */
.pv { flex: 2.2 1 520px; min-width: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.pv-live { display: flex; align-items: center; gap: 8px; }
.pv-live i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pv-stage { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; background-color: #100D0F; background-image: repeating-linear-gradient(135deg, #191518 0, #191518 1px, transparent 1px, transparent 12px); }
.pv-in { position: absolute; inset: 0; font-size: 1cqw; color: var(--text); }
.pv-corner { position: absolute; width: 2.4em; height: 2.4em; }
.pv-corner.tl { left: 2em; top: 2em; border-left: 1px solid var(--line-3); border-top: 1px solid var(--line-3); }
.pv-corner.tr { right: 2em; top: 2em; border-right: 1px solid var(--line-3); border-top: 1px solid var(--line-3); }
.pv-corner.bl { left: 2em; bottom: 2em; border-left: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
.pv-corner.br { right: 2em; bottom: 2em; border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
.pv-mark { position: absolute; left: 50%; top: 15.5em; transform: translateX(-50%); font-family: var(--font-mono); font-size: 1.7em; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: var(--dim); }
.pv-alert { position: absolute; left: 4em; top: 4em; display: flex; align-items: center; gap: 1.8em; padding: 1.5em 2.6em 1.5em 1.5em; background: var(--text); color: #1A0611; border-radius: 1.8em; box-shadow: 0 1.2em 3em rgba(0, 0, 0, 0.5); }
.pv-alert img { flex: none; width: 6.4em; height: 6.4em; }
.pv-alert div { display: flex; flex-direction: column; gap: 0.3em; }
.pv-alert .k { font-family: var(--font-mono); font-size: 1.7em; font-weight: 500; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; color: #8A1239; }
.pv-alert .v { font-family: var(--font-display); font-size: 3.3em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.pv-poll { position: absolute; right: 4em; top: 4em; width: 36em; display: flex; flex-direction: column; gap: 1.6em; padding: 2.2em; background: #1B171A; border: 1px solid var(--line-2); border-radius: 1.8em; box-shadow: 0 1.2em 3em rgba(0, 0, 0, 0.5); }
.pv-poll-head { display: flex; justify-content: space-between; gap: 1em; font-family: var(--font-mono); font-size: 1.6em; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; color: var(--muted); }
.pv-poll-q { font-family: var(--font-display); font-size: 2.9em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.pv-opt { display: flex; flex-direction: column; gap: 0.7em; }
.pv-opt-row { display: flex; justify-content: space-between; font-size: 2.1em; line-height: 1.2; }
.pv-track { height: 1.2em; background: var(--line); border-radius: 0.6em; overflow: hidden; }
.pv-track div { height: 100%; background: var(--accent); border-radius: 0.6em; }
.pv-opt.alt .pv-track div { background: var(--muted); }
.pv-timer { position: absolute; left: 5.5em; bottom: 6em; display: flex; flex-direction: column; gap: 0.7em; padding: 1.4em 2em; outline: 0.22em solid var(--accent); }
.pv-timer .k { font-family: var(--font-mono); font-size: 1.6em; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; color: var(--muted); }
.pv-timer .t { font-family: var(--font-mono); font-size: 8.2em; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.pv-timer i { position: absolute; width: 1.4em; height: 1.4em; background: var(--bg); border: 0.22em solid var(--accent); }
.pv-timer i.tl { left: -0.81em; top: -0.81em; } .pv-timer i.tr { right: -0.81em; top: -0.81em; }
.pv-timer i.bl { left: -0.81em; bottom: -0.81em; } .pv-timer i.br { right: -0.81em; bottom: -0.81em; }
.pv-tag { padding: 0.35em 0.7em; border-radius: 0.35em; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 1.55em; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.pv-timer .pv-tag { position: absolute; left: -0.14em; bottom: calc(100% + 0.8em); }
.pv-draw { position: absolute; left: 40em; top: 26em; width: 27em; height: 22.85em; color: var(--accent); }
.pv-cursor { position: absolute; left: 63.2em; top: 32.2em; display: flex; align-items: flex-start; gap: 0.4em; }
.pv-cursor svg { flex: none; width: 3.4em; height: 3.4em; }
.pv-cursor .pv-tag { margin-top: 2em; }
.pv-count { position: absolute; right: 4.6em; bottom: 4.6em; font-family: var(--font-mono); font-size: 1.6em; letter-spacing: 0.04em; line-height: 1.2; white-space: nowrap; color: var(--muted); }

/* ---------------------------------------------------------------- features */
.sec { scroll-margin-top: 24px; }
.sec-in { padding: 104px 24px 0; display: flex; flex-direction: column; gap: 40px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; }
.feats { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feat { flex: 1 1 300px; min-width: 0; padding: 32px; background: var(--bg); display: flex; flex-direction: column; gap: 14px; }
.feat h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.feat p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.feat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.feat-top .num, .feat-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--dim); }
.feat-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; }
.feat-ico svg { width: 22px; height: 22px; }
.chips { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.chips > li, .chips > span { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 6px; }
.chips > .on { border-color: var(--accent); color: var(--text); }
.chips > svg { flex: none; width: 16px; height: 16px; color: var(--accent); }
.feat-main { flex: 1 1 100%; padding: 36px; background: var(--panel); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.feat-main-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.feat-main h3 { font-size: 36px; line-height: 1.1; letter-spacing: -0.025em; }
/* "em tempo real" in the main feature: a hand-drawn double underline and three little sparks, in the accent colour */
.feat-main h3.rt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.14em 0.26em; }
.rt-mark { position: relative; display: inline-block; padding-bottom: 0.22em; white-space: nowrap; }
.rt-mark svg { position: absolute; color: var(--accent); }
.rt-line { left: -3%; bottom: -0.08em; width: 106%; height: 0.44em; overflow: visible; }
.rt-spark { left: 100%; bottom: 62%; width: 0.52em; height: 0.48em; margin-left: 0.06em; }
.feat-main p { max-width: 44ch; font-size: 16px; }
.feat-meta { display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.feat-meta .out { padding: 3px 8px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); }
.tiles { flex: 1.2 1 380px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tiles li { flex: 1 1 92px; min-height: 104px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.tiles svg { width: 22px; height: 22px; color: var(--text); }
.tiles li.on { border-color: var(--accent); color: var(--text); }
.tiles li.on svg { color: var(--accent); }

/* ---------------------------------------------------------------- permissions */
.perm-in { padding: 120px 24px 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; }
.perm-left { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.perm-left > p:last-child { margin: 0; max-width: 40ch; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.perm-right { flex: 1.4 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.perm-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.perm-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.perm-list .what { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 500; }
.perm-list .what svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.perm-list .why { padding-left: 32px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.not-box { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border: 1px dashed var(--line-3); border-radius: 14px; }
.not-box > p { margin: 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.not-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.not-box li { display: flex; align-items: center; gap: 10px; }
.not-box svg { flex: none; width: 16px; height: 16px; color: var(--dim); }

/* ---------------------------------------------------------------- closing call */
.end-in { padding: 120px 24px 96px; }
.end-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; padding: 56px clamp(24px, 5vw, 64px); background-color: var(--panel); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 28px 28px; border: 1px solid var(--line); border-radius: 20px; }
.end-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.end-text h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; }
.end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; font-size: 13.5px; color: var(--muted); }
.end-mascot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0 auto; }
.end-mascot img { width: clamp(132px, 15vw, 196px); height: auto; transform: rotate(-5deg); }
.end-mascot span { width: 62%; height: 12px; border-radius: 50%; background: var(--bg); }

/* section "O painel": a miniature of the dashboard. It is drawn in em and is always 100em wide, so the whole
   picture scales with the page (font-size of .dp-scale) instead of reflowing. */
.dp-lead { max-width: 60ch; }
.dp { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dp-scale { font-size: min(calc(1vw - 0.5px), 11.5px); }
.dp-grid { display: grid; grid-template-columns: 20em minmax(0, 1fr) 20em; gap: 1em; height: 56em; box-sizing: border-box; padding: 1em; background: var(--bg); color: var(--text); line-height: 1.3; user-select: none; }
.dp-grid svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dp-grid img { flex: none; display: block; width: 2em; height: 2em; }
.dp-side { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 1.2em; }
.dp-title { font-family: var(--font-display); font-size: 1.4em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }

/* buttons of the miniature */
.dp-btn { display: flex; align-items: center; justify-content: center; gap: 0.6em; min-width: 0; height: 2.7em; box-sizing: border-box; padding: 0 0.8em; background: #1B171A; border: 1px solid var(--line-2); border-radius: 0.7em; }
.dp-btn > span { font-size: 1.05em; font-weight: 500; white-space: nowrap; }
.dp-btn svg { width: 1.3em; height: 1.3em; }
.dp-btn.grow { flex: 1 1 0; }
.dp-btn.sq { flex: none; width: 2.7em; padding: 0; }
.dp-btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dp-btn.pri > span { font-weight: 600; }

/* left panel */
.dp-who { display: flex; align-items: center; gap: 1em; padding: 1.4em; }
.dp-ava { flex: none; display: flex; align-items: center; justify-content: center; width: 3.6em; height: 3.6em; box-sizing: border-box; border: 0.18em solid var(--accent); border-radius: 50%; background: #1B171A; }
.dp-who-text { min-width: 0; display: flex; flex-direction: column; gap: 0.1em; }
.dp-name { font-family: var(--font-display); font-size: 1.4em; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.dp-role { font-size: 1em; color: var(--muted); }
.dp-brand { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 1em 1.4em; border-top: 1px solid var(--line); }
.dp-brand-name { display: flex; align-items: center; gap: 0.7em; min-width: 0; }
.dp-brand .dp-title { font-size: 1.2em; } /* the design has 1.4em here, which runs into "Connected" */
.dp-conn { flex: none; display: flex; align-items: center; gap: 0.5em; }
.dp-conn i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #5BD68A; }
.dp-conn span { font-family: var(--font-mono); font-size: 0.9em; color: var(--muted); }
.dp-copy { display: flex; gap: 0.7em; padding: 0.3em 1.4em 1.4em; }
.dp-sum { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 1.2em 1.4em; border-top: 1px solid var(--line); }
.dp-sum span { font-family: var(--font-mono); font-size: 0.95em; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dp-sum svg { width: 1.2em; height: 1.2em; color: var(--dim); }
.dp-els { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6em; padding: 0 1.4em 1.4em; }
.dp-els .dp-btn { justify-content: flex-start; padding: 0 0.7em; }
.dp-els .dp-btn > span { overflow: hidden; text-overflow: ellipsis; }
.dp-els svg { color: var(--muted); }
.dp-els .on { border-color: var(--accent); }
.dp-els .on svg { color: var(--accent); }

/* the stage in the middle */
.dp-stage { position: relative; min-width: 0; overflow: hidden; background-color: var(--bg); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 2.2em 2.2em; border: 1px solid var(--line); border-radius: 1.2em; }
.dp-plan { position: absolute; left: 0; right: 0; top: 0; height: 2.5em; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 0.7em; background: var(--panel); border-bottom: 1px solid var(--line); }
.dp-plan i { width: 0.65em; height: 0.65em; border-radius: 0.15em; background: var(--accent); }
.dp-plan span { font-family: var(--font-mono); font-size: 0.95em; letter-spacing: 0.04em; color: var(--muted); }
.dp-tag { position: absolute; padding: 0.3em 0.6em; border-radius: 0.35em; font-family: var(--font-mono); font-size: 0.95em; font-weight: 500; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; }
/* offsets below are the design's values in the stage's em, divided by the tag's own 0.95em */
.dp-tag.t-create { left: 2.105em; top: 4.526em; background: #1B171A; color: var(--muted); }
.dp-tag.t-live { left: 18.421em; top: 4.526em; background: var(--accent); color: var(--accent-ink); }
.dp-tag.t-prep { left: 18.421em; top: 28.947em; background: var(--line); color: var(--text); }
.dp-create { position: absolute; left: 2em; top: 6.4em; width: 13em; height: 41em; box-sizing: border-box; border: 1px solid #6A5F65; border-radius: 0.35em; background: #0E0B0D; }
.dp-create span { position: absolute; left: 1.4em; top: 1.8em; font-size: 1.7em; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.dp-live { position: absolute; left: 17.5em; top: 6.4em; width: 34.5em; height: 19.4em; box-sizing: border-box; overflow: hidden; border: 1px solid var(--accent); border-radius: 0.35em; background: #100D0F; }
.dp-live-in { position: absolute; left: 0; top: 0; width: 100em; height: 56.25em; font-size: 0.345em; }
.dp-alert { position: absolute; left: 4em; top: 4em; display: flex; align-items: center; gap: 1.8em; padding: 1.5em 2.6em 1.5em 1.5em; background: #F4EFF1; color: #1A0611; border-radius: 1.8em; box-shadow: 0 1.2em 3em rgba(0, 0, 0, 0.5); }
.dp-alert img { width: 6.4em; height: 6.4em; }
.dp-alert div { display: flex; flex-direction: column; gap: 0.3em; }
.dp-alert .k { font-family: var(--font-mono); font-size: 1.7em; font-weight: 500; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; color: #8A1239; }
.dp-alert .v { font-family: var(--font-display); font-size: 3.3em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.dp-poll { position: absolute; right: 4em; top: 4em; width: 36em; box-sizing: border-box; display: flex; flex-direction: column; gap: 1.6em; padding: 2.2em; background: #1B171A; border: 1px solid var(--line-2); border-radius: 1.8em; box-shadow: 0 1.2em 3em rgba(0, 0, 0, 0.5); }
.dp-poll-head { display: flex; justify-content: space-between; gap: 1em; }
.dp-poll-head span { font-family: var(--font-mono); font-size: 1.6em; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; color: var(--muted); }
.dp-poll .q { font-family: var(--font-display); font-size: 2.9em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.dp-opt { display: flex; flex-direction: column; gap: 0.7em; }
.dp-opt-row { display: flex; justify-content: space-between; }
.dp-opt-row span { font-size: 2.1em; line-height: 1.2; }
.dp-track { height: 1.2em; background: var(--line); border-radius: 0.6em; overflow: hidden; }
.dp-track div { height: 100%; background: var(--accent); border-radius: 0.6em; }
.dp-opt.alt .dp-track div { background: var(--muted); }
.dp-timer { position: absolute; left: 5.5em; bottom: 6em; display: flex; flex-direction: column; gap: 0.7em; padding: 1.4em 2em; outline: 0.22em solid var(--accent); }
.dp-timer .k { font-family: var(--font-mono); font-size: 1.6em; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; color: var(--muted); }
.dp-timer .t { font-family: var(--font-mono); font-size: 8.2em; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.dp-timer i { position: absolute; width: 1.4em; height: 1.4em; box-sizing: border-box; background: var(--bg); border: 0.22em solid var(--accent); }
.dp-timer i.tl { left: -0.81em; top: -0.81em; } .dp-timer i.tr { right: -0.81em; top: -0.81em; }
.dp-timer i.bl { left: -0.81em; bottom: -0.81em; } .dp-timer i.br { right: -0.81em; bottom: -0.81em; }
.dp-timer-tag { position: absolute; left: -0.14em; bottom: calc(100% + 0.8em); padding: 0.35em 0.7em; border-radius: 0.35em; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 1.55em; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.dp-prep { position: absolute; left: 17.5em; top: 29.6em; width: 34.5em; height: 17.8em; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6em; border: 1px solid var(--dim); border-radius: 0.35em; background-color: var(--bg); background-image: repeating-linear-gradient(135deg, #1B171A 0, #1B171A 1px, transparent 1px, transparent 1.1em); }
.dp-prep .big { font-family: var(--font-display); font-size: 3.6em; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.dp-prep .clock { font-family: var(--font-mono); font-size: 1.5em; font-weight: 500; line-height: 1; color: var(--muted); }
.dp-drag { position: absolute; left: 9.4em; top: 31.5em; }
.dp-gif { display: flex; align-items: center; justify-content: center; width: 7.4em; height: 4.8em; box-sizing: border-box; background: #1B171A; border: 0.14em dashed var(--accent); }
.dp-gif span { font-family: var(--font-mono); font-size: 1.1em; letter-spacing: 0.16em; color: var(--muted); }
.dp-cursor { position: absolute; left: 5.6em; top: 3.2em; display: flex; align-items: flex-start; gap: 0.2em; }
.dp-cursor svg { width: 2em; height: 2em; fill: #F4EFF1; stroke: #0B090A; stroke-width: 1.4; }
.dp-cursor span { margin-top: 1.4em; padding: 0.35em 0.7em; border-radius: 0.35em; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 0.9em; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.dp-tools { position: absolute; left: 1.2em; right: 1.2em; bottom: 1.2em; display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.dp-tools > div { display: flex; align-items: center; gap: 0.5em; }
.dp-pill { display: flex; align-items: center; justify-content: center; gap: 0.6em; height: 2.6em; box-sizing: border-box; padding: 0 1em; background: var(--panel); border: 1px solid var(--line); border-radius: 0.7em; }
.dp-pill.sq { width: 2.6em; padding: 0; }
.dp-pill span { font-size: 0.95em; color: var(--muted); }
.dp-pill span.txt { font-size: 1.05em; font-weight: 500; color: var(--text); }
.dp-pill svg { width: 1.2em; height: 1.2em; }

/* right panel */
.dp-ctl-head { display: flex; align-items: center; gap: 0.8em; padding: 1.4em; }
.dp-ctl-head svg { width: 1.6em; height: 1.6em; color: var(--accent); }
.dp-props { display: flex; flex-direction: column; gap: 0.9em; padding: 0 1.4em 1.4em; }
.dp-prop-name { display: flex; align-items: center; gap: 0.9em; }
.dp-prop-name > span:last-child { font-size: 1.1em; font-weight: 500; }
.dp-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 2.9em; height: 2.9em; box-sizing: border-box; border: 1px solid var(--line-2); border-radius: 0.7em; }
.dp-ico svg { width: 1.5em; height: 1.5em; color: var(--accent); }
.dp-cols2, .dp-cols3, .dp-cols4 { display: grid; gap: 0.6em; }
.dp-cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dp-cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5em; }
.dp-field { display: flex; flex-direction: column; gap: 0.4em; }
.dp-field > span:first-child { font-size: 0.95em; color: var(--muted); }
.dp-select { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; height: 2.7em; box-sizing: border-box; padding: 0 0.8em; background: var(--bg); border: 1px solid var(--line); border-radius: 0.7em; }
.dp-select span { font-size: 1.05em; white-space: nowrap; }
.dp-select svg { width: 1.2em; height: 1.2em; color: var(--muted); }
.dp-alerts { display: flex; flex-direction: column; gap: 0.8em; padding: 0 1.4em 1.4em; }
.dp-ev { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5em; height: 4.8em; box-sizing: border-box; background: #1B171A; border: 1px solid var(--line-2); border-radius: 0.7em; }
.dp-ev svg { width: 1.45em; height: 1.45em; }
.dp-ev span { font-size: 0.9em; font-weight: 500; line-height: 1.1; }
.dp-studio { display: flex; flex-direction: column; padding: 0 1.4em 1.4em; }

/* the three notes under the miniature */
.dp-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dp-notes article { display: flex; flex-direction: column; gap: 12px; padding: 28px 32px 30px; background: var(--bg); }
.dp-note-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.3; }
.dp-note-top > span:first-child { letter-spacing: 0.08em; color: var(--dim); }
.dp-note-top > span:last-child { padding: 4px 8px; border: 1px solid; border-radius: 4px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.dp-note-top .c-create { border-color: var(--line-2); background: #1B171A; color: var(--muted); }
.dp-note-top .c-live { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.dp-note-top .c-prep { border-color: var(--line); background: var(--line); color: var(--text); }
.dp-notes h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.dp-notes p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* contact dialog (Discord) */
@keyframes modal-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(.98) } to { opacity: 1; transform: none } }
.modal { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 50; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-scrim { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: rgba(5, 4, 5, 0.72); cursor: default; animation: modal-fade .18s ease both; }
.modal-box { position: relative; box-sizing: border-box; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); animation: modal-pop .22s ease-out both; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.modal-x { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.modal-x:hover { color: var(--text); }
.modal-x svg { width: 18px; height: 18px; }
.modal-body { display: flex; flex-direction: column; gap: 16px; padding: 22px 20px 20px; }
.modal-body h2 { font-size: 32px; line-height: 1.05; letter-spacing: -0.025em; }
.modal-lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.userbox { padding: 26px 12px 46px; }
.userbox .sel { display: flex; align-items: baseline; padding: 10px 16px 12px; font-family: var(--font-mono); font-size: clamp(22px, 6vw, 30px); font-weight: 500; letter-spacing: 0.02em; line-height: 1; }
.userbox .at { color: var(--dim); }
.userbox .user { user-select: all; }
.userbox .sel > b.ok { background: #5BD68A; color: var(--bg); }
.userbox .sel > b.manual { background: #F5C16C; color: var(--bg); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-actions .btn.ghost svg { width: 16px; height: 16px; }
.st { display: none; align-items: center; gap: 10px; }
.modal[data-copied=""] .st-idle, .modal[data-copied="ok"] .st-ok, .modal[data-copied="manual"] .st-manual { display: flex; }
@media (prefers-reduced-motion: reduce) { .modal-scrim, .modal-box { animation: none; } }
