/* RobotLab — laboratório de robótica do futuro (sci-fi dark).
   Camadas: 1) tokens  2) base  3) componentes compartilhados  4) telas.  Cores só por token; literais apenas dentro do SVG do robô. */
:root {
  /* identidade (roxo Accenture predominante) */
  --accent: #a100ff;        /* preenchimentos, bordas ativas, brilhos */
  --accent-2: #c45cff;      /* texto, links, foco (contraste ≥ 5,9:1 sobre o fundo) */
  --accent-deep: #5b00a8;   /* gradientes e superfícies de apoio */
  --accent-soft: #e3b3ff;   /* realces claros */
  --on-accent: #ffffff;     /* texto sobre --accent (5,3:1) */
  /* superfícies e texto */
  --bg: #080711;
  --surface: #121020;
  --surface-2: #1b1630;
  --inset: #0d0b18;         /* campos e áreas rebaixadas */
  --text: #f5f2ff;
  --text-2: #b7afc9;
  --line: #33264a;
  --line-strong: #5a3d8c;
  /* estado (distintos do roxo; sempre acompanhados de ícone/texto) */
  --ok: #4ade80; --warn: #facc15; --err: #fb7185; --info: #7dd3fc;
  /* tipografia */
  --font-display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-tech: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --fs-label: 0.72rem; --fs-small: 0.85rem; --fs-body: 1rem;
  /* espaçamento, raios, toque */
  --space-1: 6px; --space-2: 8px; --space-3: 10px; --space-4: 16px; --space-5: 24px;
  --radius: 18px; --radius-sm: 12px; --radius-md: 16px; --radius-btn: 14px;
  --touch: 44px;
  /* efeitos e movimento */
  --glow: 0 0 0 1px rgba(196, 92, 255, 0.55);
  --glow-soft: 0 0 0 1px rgba(196, 92, 255, 0.25);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --dur-1: 0.15s; --dur-2: 0.35s;
  /* breakpoints (referência; CSS não aceita var() em @media): 420 · 860 · 1024 */
  /* nomes antigos, mantidos para o CSS das telas */
  --bg2: var(--surface-2); --card: rgba(18, 16, 32, 0.9); --card-border: var(--line);
  --muted: var(--text-2); --yellow: var(--warn); --green: var(--ok); --red: var(--err); --pink: #f472b6;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  min-height: 100dvh; overflow-x: hidden;
}
body::before { /* atmosfera: brilho roxo + grade técnica (estático, sem custo de animação) */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 12% -8%, rgba(161, 0, 255, 0.16), transparent 62%),
    radial-gradient(640px 420px at 100% 4%, rgba(91, 0, 168, 0.20), transparent 62%),
    linear-gradient(rgba(196, 92, 255, 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(196, 92, 255, 0.03) 1px, transparent 1px) 0 0 / 44px 44px;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-2); }

/* ---------- layout ---------- */
.page { max-width: 560px; margin: 0 auto; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; min-height: 100dvh; }
.page.wide { max-width: 1280px; }
.center { align-items: center; text-align: center; justify-content: center; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.col { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-small); }

/* painel HUD: camada escura, borda fina, marcadores de canto */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.card h3 { margin-bottom: 8px; }
.hud-label { font-family: var(--font-tech); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }

/* ---------- marca ---------- */
.logo { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; letter-spacing: -1px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent-2) 45%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
 }
.logo.sm { font-size: 2.2rem; }
.slogan { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-2); }

/* ---------- botões e campos ---------- */
/* Botão (ver components/Button.js). Altura visual: sm 36 · md 44 · lg 48; o toque efetivo de sm chega a 44 px pelo ::before. */
.btn {
  appearance: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-decoration: none; text-align: center;
  white-space: nowrap; border-radius: var(--radius-btn); padding: 0 20px; min-height: 44px; font-size: 1rem; color: var(--on-accent);
  transition: background-color var(--dur-1), border-color var(--dur-1), transform var(--dur-1) var(--ease), filter var(--dur-1);
}
.btn-sm { min-height: 36px; min-width: 40px; padding: 0 14px; font-size: 0.9rem; border-radius: var(--radius-sm); }
.btn-sm::before { content: ''; position: absolute; inset: -4px -2px; } /* área de toque efetiva ≥ 44 px */
.btn-md { min-height: 44px; }
.btn-lg { min-height: 48px; font-size: 1.1rem; padding: 0 24px; }
.btn.block { width: 100%; }
.btn .btn-label { white-space: inherit; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent-2); box-shadow: 0 0 0 0 transparent; }
.btn-primary:hover:not(:disabled) { background: #b13aff; }
.btn-secondary { background: rgba(161, 0, 255, 0.16); border-color: var(--accent-2); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: rgba(161, 0, 255, 0.26); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--accent-2); background: rgba(196, 92, 255, 0.08); }
.btn-outline.session-delete { display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; color: var(--err); border-color: var(--err); }
.btn-outline.session-delete .btn-label { display: none; }
.btn-outline.session-delete:hover:not(:disabled) { color: var(--err); border-color: var(--err); background: transparent; }
.btn-ghost { background: transparent; color: var(--accent-soft); }
.btn-ghost:hover:not(:disabled) { background: rgba(196, 92, 255, 0.12); }
.btn-destructive { background: var(--err); border-color: #fda4af; color: #1d0309; }
.btn-destructive:hover:not(:disabled) { background: #ff8a9b; }
.btn.success { background: var(--ok); border-color: #bbf7d0; color: #04170b; }
.btn.loading { pointer-events: none; }
.btn.loading .btn-label, .btn.loading .icon { visibility: hidden; }
.btn.loading::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: currentColor; animation: spin 0.8s linear infinite; }
.icon { flex: none; }
.emoji-content { font-size: 1.1em; line-height: 1; }

.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label { font-weight: 800; font-size: 0.9rem; color: var(--text-2); }
.input {
  width: 100%; min-height: 56px; border-radius: var(--radius-md); padding: 10px 16px; font-size: 1.1rem; font-weight: 700;
  background: var(--inset); border: 1px solid var(--line-strong); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #8a7fa3; }
.input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(196, 92, 255, 0.3); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input.code { text-align: center; letter-spacing: 0.35em; text-transform: uppercase; font-family: var(--font-display); font-size: 1.6rem; }
.input.sm { min-height: var(--touch); font-size: 0.95rem; padding: 4px 10px; border-radius: var(--radius-sm); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 0.8rem; background: rgba(196, 92, 255, 0.12); border: 1px solid var(--line-strong); }
.badge.pilot { background: linear-gradient(90deg, var(--warn), #fb923c); color: #3b2300; border-color: transparent; }
.badge.ok { background: rgba(74, 222, 128, 0.14); color: var(--ok); border-color: rgba(74, 222, 128, 0.4); }
.badge.warn { background: rgba(250, 204, 21, 0.14); color: var(--warn); border-color: rgba(250, 204, 21, 0.4); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #6b6385; display: inline-block; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---------- avisos ---------- */
.banner { position: sticky; top: 0; z-index: 50; padding: 10px 16px; text-align: center; font-weight: 800; background: #8a4b00; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.banner.err { background: #9f1239; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--accent-2); padding: 12px 20px; border-radius: var(--radius-md); font-weight: 800;
  box-shadow: var(--shadow-card), var(--glow-soft); animation: pop 0.25s; max-width: 90vw; }
.error-text { color: var(--err); font-weight: 800; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent-2); animation: spin 0.9s linear infinite; }
.skeleton { border-radius: var(--radius-md); min-height: 16px; background: linear-gradient(90deg, var(--surface-2), #2a2145, var(--surface-2)) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.empty-state { text-align: center; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-2); }
.empty-state .es-icon { font-size: 2.2rem; }

/* ---------- cronômetro ---------- */
.timer { display: flex; flex-direction: column; gap: 8px; }
.timer-clock { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; font-variant-numeric: tabular-nums; line-height: 1; }
.timer-bar { height: 12px; border-radius: 99px; background: var(--inset); border: 1px solid var(--line); overflow: hidden; position: relative; }
.timer-bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.4s linear; }
.timer.warn .timer-clock { color: var(--warn); text-shadow: none; }
.timer.warn .timer-bar > i { background: var(--warn); }
.timer.crit .timer-clock { color: var(--err); text-shadow: none; animation: pulse 0.8s infinite; }
.timer.crit .timer-bar > i { background: var(--err); }
.timer.crit { animation: glow 0.8s infinite; border-radius: var(--radius-md); }
.timer-label { font-family: var(--font-tech); font-weight: 700; color: var(--accent-2); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.14em; }

/* ---------- progresso das etapas ---------- */
.stepper { display: flex; gap: 6px; }
.step { flex: 1; text-align: center; padding: 8px 2px; border-radius: var(--radius-sm); background: var(--surface); font-size: 1.2rem; position: relative; border: 1px solid var(--line); transition: all var(--dur-2) var(--ease); }
.step small { display: block; font-family: var(--font-tech); font-size: 0.72rem; font-weight: 700; color: var(--text-2); margin-top: 2px; }
.step.done { background: rgba(74, 222, 128, 0.10); border-color: rgba(74, 222, 128, 0.4); }
.step.current { border-color: var(--accent-2); background: rgba(161, 0, 255, 0.2); box-shadow: var(--glow); }
.step.locked { opacity: 0.5; filter: grayscale(0.7); }

/* ---------- cartão de missão ---------- */
.mission-card { position: relative; overflow: hidden; }
.mission-icon { font-size: 2.6rem; }
.task { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--inset); border: 1px solid var(--line); align-items: flex-start; }

/* ---------- HUD: tela inicial, holograma, comandos ---------- */
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.home { gap: 18px; }
.panel-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.command-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cmd-cell { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmd-cell b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cmd-cell.time b { font-size: 2.2rem; }
.cmd-cell.live { border-color: var(--accent-2); box-shadow: var(--glow-soft); }
.cmd-cell.warn b { color: var(--warn); } .cmd-cell.crit b { color: var(--err); }

/* ---------- equipes ---------- */
.team-pick { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 2px solid var(--card-border); background: rgba(255, 255, 255, 0.05); cursor: pointer; text-align: left; width: 100%; transition: transform 0.1s, border-color 0.2s; }
.team-pick:hover { transform: translateY(-2px); }
.team-pick.sel { border-color: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 30%, transparent); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.team-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.team-card { border-top: 4px solid var(--tc); display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.team-card .robot-wrap { height: 120px; }
.members { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 0.9rem; }
.member { display: flex; align-items: center; gap: 8px; }
.dash { display: grid; grid-template-columns: 330px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.qr { background: #fff; border-radius: 18px; padding: 8px; width: 100%; max-width: 240px; align-self: center; }
.qr img { width: 100%; display: block; }
.code-big { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: 0.2em; color: var(--accent-soft); text-align: center; }
.progress-dots { display: flex; gap: 4px; }
.progress-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.progress-dots i.on { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- robô ---------- */
.robot-wrap { width: 100%; display: flex; justify-content: center; }
.robot { height: 100%; width: auto; max-width: 100%; overflow: visible; }
.robot-stage { height: 260px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.robot-stage::after { content: ''; position: absolute; bottom: -6px; width: 82%; height: 34px; border-radius: 50%; border: 1px solid rgba(196, 92, 255, 0.6);  pointer-events: none; }
.robot-stage::before { content: ''; position: absolute; bottom: 0; width: 70%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(161, 0, 255, 0.45), transparent); }
.robot .bob { animation: bob 3.2s ease-in-out infinite; transform-origin: 120px 260px; }
.robot .blink { animation: blink 4.5s infinite; transform-box: fill-box; transform-origin: center; }
.robot .antenna-light { animation: pulse 1.6s infinite; }
.robot .scan { animation: scan 2.4s linear infinite; }
.robot .arm-l { animation: wave 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: top right; }
.robot .arm-r { animation: wave 3.6s ease-in-out infinite reverse; transform-box: fill-box; transform-origin: top left; }
.robot .part-pop { animation: assemble 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; transform-box: fill-box; transform-origin: center; }
.robot .ghost { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-dasharray: 7 6; opacity: 0.55; animation: dash 2s linear infinite; }

/* ---------- animações ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.08); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 rgba(251, 113, 133, 0); } 50% { box-shadow: 0 0 24px rgba(251, 113, 133, 0.6); } }
@keyframes pop { from { transform: translateX(-50%) scale(0.8); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes sweep { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
@keyframes assemble { 0% { transform: scale(0) rotate(-25deg); opacity: 0; filter: brightness(3); } 100% { transform: scale(1) rotate(0); opacity: 1; filter: none; } }
@keyframes dash { to { stroke-dashoffset: -26; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }
@keyframes scan { 0% { transform: translateY(-6px); opacity: 0; } 20%, 80% { opacity: 0.6; } 100% { transform: translateY(70px); opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.rise { animation: rise 0.45s both; }
.float { animation: bob 3.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } }

/* ---------- etapa 2: sala de espera, estados, projetor ---------- */
.wait-title { font-size: 1.35rem; }
.dots i { font-style: normal; animation: pulse 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
.wait-member { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: rgba(8, 7, 17, 0.5); border: 2px solid transparent; flex-wrap: wrap; }
.wait-member.is-pilot { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25); }
.pause-card { border-color: var(--yellow); background: rgba(250, 204, 21, 0.12); text-align: center; }
.mstate { padding: 6px 10px; border-radius: 12px; background: rgba(8, 7, 17, 0.5); }
.badge.ms-locked { opacity: 0.6; }
.badge.ms-released { background: rgba(250, 204, 21, 0.2); color: var(--yellow); }
.badge.ms-running { background: rgba(74, 222, 128, 0.2); color: var(--green); animation: pulse 2s infinite; }
.badge.ms-closed { background: rgba(196, 92, 255, 0.2); color: var(--accent-2); }

.projector { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3vw; padding: 4vh 4vw; align-items: center; }
.proj-left { display: flex; flex-direction: column; gap: 2.2vh; }
.proj-left .logo { font-size: clamp(3rem, 6vw, 6rem); }
.proj-title { font-size: clamp(1.6rem, 3vw, 3rem); color: var(--accent-2); }
.proj-steps { font-size: clamp(1.2rem, 2.2vw, 2.2rem); font-weight: 800; line-height: 1.5; padding-left: 1.4em; margin: 0; }
.proj-steps li::marker { color: var(--accent-2); }
.proj-started { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 4rem); color: var(--green); }
.proj-counters { display: flex; gap: 2vw; }
.proj-counters div { background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; padding: 1.4vh 2vw; text-align: center; }
.proj-counters b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 5rem); color: var(--accent-2); line-height: 1; font-variant-numeric: tabular-nums; }
.proj-counters span { color: var(--muted); font-weight: 800; }
.proj-right { display: flex; flex-direction: column; align-items: center; gap: 1.6vh; }
.proj-qr { width: min(38vh, 34vw); }
.proj-qr .qr { max-width: none; padding: 14px; }
.proj-code { font-size: clamp(3rem, 7vw, 7rem); }
.proj-robot { height: 14vh; }
@media (max-width: 900px) { .projector { grid-template-columns: 1fr; } }

/* ---------- Missão 1 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m1-hero { text-align: center; border-top: 4px solid var(--ac, #475569); transition: border-color 0.6s; }
.m1-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.m1-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: 0.8rem; padding: 8px 2px; border-radius: 14px; background: rgba(255,255,255,.06); color: var(--muted); border: 2px solid transparent; }
.m1-steps li.current { border-color: var(--accent-2); color: var(--text); background: rgba(161,0,255,.14); }
.m1-steps li.done { color: var(--green); background: rgba(74,222,128,.12); }
.m1-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-family: var(--font-display); }
.m1-steps li.done .m1-dot { background: var(--green); color: #052e16; }

.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.area-card { position: relative; appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 12px; min-height: 118px;
  border-radius: 20px; border: 2px solid color-mix(in srgb, var(--ac) 40%, transparent); background: color-mix(in srgb, var(--ac) 12%, rgba(8,7,17,.6)); transition: transform .1s, box-shadow .2s, border-color .2s; }
.area-card:active:not(:disabled) { transform: scale(.96); }
.area-card:disabled { opacity: .55; cursor: not-allowed; }
.area-card.sel { border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 35%, transparent), 0 0 22px color-mix(in srgb, var(--ac) 40%, transparent); }
.area-card.leader { outline: 3px dashed var(--yellow); outline-offset: 2px; }
.area-card b { font-family: var(--font-display); font-size: 1.1rem; }
.area-icon { font-size: 2.1rem; line-height: 1; }
.area-count { font-weight: 800; font-size: .85rem; color: var(--muted); }
.area-tag { position: absolute; top: -8px; right: -4px; background: var(--ac); color: #080711; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.area-tag.lead { top: auto; bottom: -8px; right: auto; left: 50%; transform: translateX(-50%); background: var(--yellow); white-space: nowrap; }
.area-done { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: color-mix(in srgb, var(--ac) 16%, rgba(8,7,17,.6)); border: 2px solid var(--ac); }
.pilot-panel { border-color: var(--yellow); background: rgba(250, 204, 21, .08); padding: 14px; }

.problem-box { resize: none; min-height: 110px; font-size: 1.05rem; line-height: 1.4; }
.problem-box.readonly { padding: 12px 16px; border-radius: 16px; background: rgba(8,7,17,.7); border: 2px dashed var(--card-border); white-space: pre-wrap; word-break: break-word; }
.inspire summary { cursor: pointer; font-weight: 800; color: var(--accent-2); }
.chip { appearance: none; text-align: left; cursor: pointer; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--card-border); background: rgba(255,255,255,.06); font-weight: 700; }
.suggestion { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(8,7,17,.5); }
.name-chip { appearance: none; cursor: pointer; text-align: left; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; padding: 14px 16px; min-height: 56px; border-radius: 18px; border: 2px solid var(--card-border); background: rgba(255,255,255,.06); }
.name-chip.sel { border-color: var(--accent-2); background: rgba(161,0,255,.16); box-shadow: 0 0 0 2px rgba(161,0,255,.3); }
.name-chip:disabled { opacity: 1; cursor: default; }

.nameplate { margin: 6px auto 4px; display: inline-flex; flex-direction: column; align-items: center; padding: 6px 22px; border-radius: 14px; background: #080711; border: 2px solid var(--accent-2);
  box-shadow: 0 0 0 1px rgba(196,92,255,.5); font-family: var(--font-display); color: var(--accent-2); animation: baptize .9s cubic-bezier(.2,1.4,.4,1); }
.nameplate b { font-size: 1.5rem; letter-spacing: .04em; }
.nameplate .np-label { font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.nameplate.empty { border-style: dashed; box-shadow: none; color: var(--muted); font-size: .9rem; animation: none; opacity: .7; }
@keyframes baptize { 0% { transform: scale(.2) rotate(-6deg); opacity: 0; filter: brightness(3); } 100% { transform: none; opacity: 1; filter: none; } }

.robot .purpose-ring { transform-box: fill-box; transform-origin: center; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 2px solid var(--green); background: linear-gradient(180deg, rgba(74,222,128,.14), var(--card)); }
.m1-summary { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.m1-summary > div { padding: 10px 14px; border-radius: 14px; background: rgba(8,7,17,.5); display: flex; flex-direction: column; word-break: break-word; }

.pending-box { padding: 12px; border-radius: 16px; border: 2px solid var(--yellow); background: rgba(250,204,21,.1); display: flex; flex-direction: column; gap: 4px; }
.badge.danger-badge { background: rgba(251,113,133,.2); color: var(--red); }
.progress-dots.steps3 i { border-radius: 4px; }

.release { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center; padding: 24px; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, rgba(196,92,255,.55), rgba(8,7,17,.97) 70%); animation: fadein .35s both; }
.release-inner { max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.release-kicker { font-weight: 800; letter-spacing: .2em; color: var(--accent-2); animation: rise .5s both; }
.release h1 { font-size: clamp(1.7rem, 7vw, 3rem); animation: zoomin .7s .15s cubic-bezier(.2,1.3,.4,1) both; text-shadow: 0 0 24px rgba(161,0,255,.6); }
.release-robot { height: 190px; animation: rise .6s .4s both; }
.release p { color: var(--muted); font-weight: 700; animation: rise .5s .7s both; }
.release small { color: var(--accent-2); animation: pulse 1.4s 1.2s infinite both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomin { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Missão 2: personalidade ---------- */
.trait-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trait-card { position: relative; appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 12px; min-height: 132px; text-align: center;
  border-radius: 20px; border: 2px solid color-mix(in srgb, var(--tc) 40%, transparent); background: color-mix(in srgb, var(--tc) 12%, rgba(8,7,17,.6)); transition: transform .1s, box-shadow .2s; }
.trait-card:active:not(:disabled) { transform: scale(.96); }
.trait-card:disabled { opacity: .5; cursor: not-allowed; }
.trait-card.sel { border-color: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 35%, transparent), 0 0 22px color-mix(in srgb, var(--tc) 45%, transparent); animation: popin .3s; }
.trait-card b { font-family: var(--font-display); font-size: 1.1rem; }
.trait-icon { font-size: 2.1rem; line-height: 1; }
.trait-desc { font-size: .78rem; color: var(--muted); font-weight: 700; line-height: 1.25; }
.trait-badge { position: absolute; top: -8px; right: -4px; background: var(--tc); color: #080711; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
@keyframes popin { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

.trait-slots { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.slot { flex: 1; max-width: 110px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 16px; padding: 6px 4px;
  border: 2px dashed var(--card-border); background: rgba(8,7,17,.5); }
.slot.filled { border-style: solid; border-color: var(--tc); background: color-mix(in srgb, var(--tc) 18%, rgba(8,7,17,.6)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 40%, transparent); }
.slot-icon { font-size: 1.4rem; }
.slot.filled b { font-size: .8rem; }
.trait-slots.activating .slot.filled { animation: unlock .8s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes unlock { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; filter: brightness(3); } 100% { transform: none; opacity: 1; filter: none; } }

.rank-row { display: grid; grid-template-columns: 30px minmax(0,1.2fr) minmax(0,1fr) 22px; gap: 8px; align-items: center; font-weight: 800; font-size: .9rem; }
.rank-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--tc); border-radius: 99px; transition: width .4s; }
.tie-box { padding: 12px; border-radius: 16px; border: 2px dashed var(--yellow); background: rgba(250,204,21,.08); }
.personality-text { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }

/* reações de personalidade (leves; desligadas por prefers-reduced-motion) */
.robot .head, .robot .eyes { transform-box: fill-box; transform-origin: 50% 100%; }
.robot.react-curioso .head { animation: tilt 4.5s ease-in-out infinite; }
.robot.react-curioso .eyes { transform-origin: center; animation: lookaround 4.5s ease-in-out infinite; }
.robot.react-calmo .bob { animation-duration: 6.5s; }
.robot.react-calmo .blink { animation-duration: 8s; }
.robot.react-calmo .scan { animation-duration: 5s; }
.robot.react-energetico .bob { animation-duration: 1.1s; }
.robot.react-energetico .antenna-light { animation-duration: .5s; }
.robot .energy-ring { transform-box: fill-box; transform-origin: center; animation: energy .9s ease-out infinite; }
.robot.react-divertido .bob { animation-name: hop; animation-duration: 1.5s; }
.robot.react-protetor .eye-glow, .robot.react-protetor .eyes path { filter: drop-shadow(0 0 8px #fbbf24); }
.robot .guard-ring { animation: guard 2.2s ease-in-out infinite; }
.robot .ready-light { animation: pulse 1s infinite; }
.robot.react-prestativo .arm-r { animation-duration: 1.8s; }
.robot.react-custom .head { animation: glowhead 3s ease-in-out infinite; }
.robot.activate { animation: activate 1.4s ease-out; }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 30%, 60% { transform: rotate(-7deg); } 80% { transform: rotate(4deg); } }
@keyframes lookaround { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 55% { transform: translateX(7px); } }
@keyframes energy { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-14px); } 50% { transform: translateY(0); } 65% { transform: translateY(-6px); } }
@keyframes guard { 0%, 100% { opacity: .25; } 50% { opacity: .95; } }
@keyframes glowhead { 0%, 100% { filter: none; } 50% { filter: brightness(1.25); } }
@keyframes activate { 0% { filter: brightness(1); transform: scale(1); } 30% { filter: brightness(2.2) drop-shadow(0 0 24px var(--core)); transform: scale(1.08); } 100% { filter: none; transform: scale(1); } }

/* ---------- Missão 3: sensores ---------- */
.intro-quote { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; margin: 6px 0; color: var(--accent-2); animation: rise .8s both; }
.sensor-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sensor-card { position: relative; appearance: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "i t" "i d" "u u"; column-gap: 12px; row-gap: 2px; align-items: center; text-align: left;
  padding: 14px; border-radius: 20px; border: 2px solid color-mix(in srgb, var(--sc) 40%, transparent); background: color-mix(in srgb, var(--sc) 10%, rgba(8,7,17,.6)); transition: transform .1s, box-shadow .2s; }
.sensor-card:active:not(:disabled) { transform: scale(.98); }
.sensor-card:disabled { opacity: .5; cursor: not-allowed; }
.sensor-card.sel { border-color: var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 35%, transparent), 0 0 22px color-mix(in srgb, var(--sc) 40%, transparent); animation: popin .3s; }
.sensor-card .sensor-icon { grid-area: i; font-size: 2.2rem; text-align: center; }
.sensor-card b { grid-area: t; font-family: var(--font-display); font-size: 1.15rem; }
.sensor-card .sensor-desc { grid-area: d; font-size: .85rem; color: var(--muted); font-weight: 700; }
.sensor-card .sensor-use { grid-area: u; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--card-border); font-size: .8rem; font-weight: 700; color: var(--text); opacity: .9; }
.sensor-line { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--sc) 14%, rgba(8,7,17,.6)); border-left: 4px solid var(--sc); animation: rise .5s both; }
.sensor-line .sensor-icon { font-size: 1.8rem; }

.online-bar { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ob-label { font-weight: 800; }
.ob-track { height: 12px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.ob-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .6s cubic-bezier(.2,1,.3,1); box-shadow: 0 0 12px var(--accent-2); }
.ob-pills { display: flex; gap: 8px; justify-content: center; }
.ob-pill { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255,255,255,.07); border: 2px dashed var(--card-border); filter: grayscale(1); opacity: .6; transition: all .4s; }
.ob-pill.on { filter: none; opacity: 1; border: 2px solid var(--sc); background: color-mix(in srgb, var(--sc) 22%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc) 55%, transparent); animation: unlock .7s cubic-bezier(.2,1.4,.4,1) both; }
.limit-row { padding: 8px 10px; border-radius: 12px; background: rgba(8,7,17,.5); }

/* animações de ativação dos sensores no robô (leves; desligadas por prefers-reduced-motion) */
.robot .fx { fill: none; stroke-linecap: round; transform-box: fill-box; }
.robot .fx-wave { stroke: #c45cff; stroke-width: 4; opacity: 0; animation: wave-out 1.6s var(--d) ease-out infinite; }
.robot .fx-ring { stroke: #fb923c; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring-out 2s var(--d) ease-out infinite; }
.robot .fx-pulse { stroke: #fbbf24; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring-out 1.4s var(--d) ease-out infinite; }
.robot .fx-particle { fill: #c45cff; stroke: none; opacity: 0; animation: rise-fade 1.8s var(--d) ease-out infinite; }
.robot .fx-trail { stroke: #4ade80; stroke-width: 4; opacity: 0; animation: trail 1.3s var(--d) ease-out infinite; }
.robot .fx-orb { stroke: none; fill: #fde047; transform-box: fill-box; transform-origin: center; animation: orb 2.4s var(--d) ease-in-out infinite; filter: drop-shadow(0 0 6px #fde047); }
.robot.sx-expressoes .eyes { transform-box: fill-box; transform-origin: center; animation: morph 3s ease-in-out infinite; }
@keyframes wave-out { 0% { opacity: 0; transform: translateX(-6px); } 30% { opacity: .95; } 100% { opacity: 0; transform: translateX(10px); } }
@keyframes ring-out { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes rise-fade { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) translateX(8px); } }
@keyframes trail { 0% { opacity: 0; transform: translateX(14px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateX(-12px); } }
@keyframes orb { 0%, 100% { transform: scale(.7); filter: drop-shadow(0 0 4px #fde047) hue-rotate(0deg); } 50% { transform: scale(1.3); filter: drop-shadow(0 0 10px #f472b6) hue-rotate(160deg); } }
@keyframes morph { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.15, .6) rotate(-4deg); } 50% { transform: scale(.85, 1.2); } 75% { transform: scale(1.1, .8) rotate(4deg); } }

/* ---------- Missão 4: face digital ---------- */
.face-editor { display: flex; flex-direction: column; gap: 10px; }
.face-canvas { width: 100%; aspect-ratio: 1000 / 740; display: block; border-radius: 22px; border: 3px solid #1e3a8a; background: #080711;
  box-shadow: inset 0 0 30px rgba(161,0,255,.15), 0 0 18px rgba(161,0,255,.18);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: crosshair; overscroll-behavior: contain; }
.fe-tools, .fe-widths { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fe-palette { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); background: var(--c); box-shadow: none; cursor: pointer; padding: 0; }
.swatch.sel { border-color: #fff; transform: scale(1.12); }
.swatch:disabled { opacity: .5; }
.wbtn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; border: 2px solid var(--card-border); background: rgba(255,255,255,.07); cursor: pointer; padding: 0; }
.wbtn i { display: block; border-radius: 50%; background: var(--text); }
.wbtn.sel { border-color: var(--accent-2); background: rgba(161,0,255,.18); }

.expr-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin-top: 8px; }
.expr-btn { appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px; border-radius: 16px; font-size: 1.6rem;
  border: 2px solid color-mix(in srgb, var(--ec) 40%, transparent); background: color-mix(in srgb, var(--ec) 10%, rgba(8,7,17,.6)); }
.expr-btn b { font-size: .7rem; font-family: var(--font-display); }
.expr-btn.sel { border-color: var(--ec); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ec) 50%, transparent); }

.face-thumb { width: 100%; height: auto; display: block; border-radius: 14px; }
.preset-face { aspect-ratio: 1000 / 740; display: grid; place-items: center; font-size: 2rem; background: #080711; box-shadow: 0 0 10px var(--ec); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 18px; background: rgba(8,7,17,.5); border: 2px solid var(--card-border); align-items: stretch; }
.g-card.sel { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(161,0,255,.35); }
.g-card.leader { outline: 3px dashed var(--yellow); outline-offset: 2px; }
.g-card.cand { border-color: var(--green); }
.face-on { font-family: var(--font-display); font-size: 1.3rem; color: var(--green); margin-top: 6px; }
.face-on.pop { animation: faceon 1.1s cubic-bezier(.2,1.4,.4,1); }
@keyframes faceon { 0% { transform: scale(.4); opacity: 0; filter: brightness(3); } 100% { transform: none; opacity: 1; filter: none; } }

/* ---------- Grande Revelação (telão 16:9: tudo em em; 1em = 1% da largura do palco) ---------- */
.rv-viewport { position: fixed; inset: 0; background: #030a20; display: grid; place-items: center; overflow: hidden; }
.rv-stage { width: min(100vw, 177.78vh); aspect-ratio: 16 / 9; font-size: calc(min(100vw, 177.78vh) / 100); position: relative; overflow: hidden;
  background: radial-gradient(60em 40em at 20% 0%, rgba(161,0,255,.18), transparent 60%), radial-gradient(60em 40em at 100% 10%, rgba(196,92,255,.22), transparent 60%), linear-gradient(180deg, #1b1630, #080711); }
.rv-stage::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(196,92,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(196,92,255,.05) 1px, transparent 1px); background-size: 4em 4em; }
.rv-frame { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 2.2em 3.5em 2em; }
.rv-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 1.5em; z-index: 1; }
.rv-head .logo { font-size: 2.6em; }
.rv-pos { color: #b7afc9; } .rv-left { color: #e3b3ff; font-variant-numeric: tabular-nums; }
.rv-head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .15em; }
.rv-head-meta .rv-pos { font-size: .75em; }
.rv-body { flex: 1; display: grid; place-items: center; position: relative; z-index: 1; min-height: 0; animation: fadein .5s both; }
.rv-prog { height: .5em; border-radius: 9em; background: rgba(255,255,255,.1); overflow: hidden; z-index: 1; }
.rv-prog i { display: block; height: 100%; background: linear-gradient(90deg, #c45cff, #c45cff); transition: width .25s linear; }
.rv-dots { display: flex; gap: .35em; justify-content: center; margin-top: .8em; z-index: 1; }
.rv-dots b { width: .7em; height: .7em; border-radius: 50%; background: rgba(255,255,255,.18); } .rv-dots b.done { background: #c45cff; } .rv-dots b.cur { background: #c45cff; box-shadow: 0 0 1em #c45cff; transform: scale(1.4); }
.rv-kicker { letter-spacing: .3em; font-weight: 800; color: #c45cff; font-size: 2em; }
.rv-title { font-family: var(--font-display); font-size: 5.4em; line-height: 1.05; text-align: center; }
.rv-lead { font-size: 2.2em; color: #d8ccf0; font-weight: 700; text-align: center; max-width: 34em; }
.rv-slogan { font-family: var(--font-display); font-size: 3em; color: #e3b3ff; }
.rv-intro, .rv-closing { display: flex; flex-direction: column; align-items: center; gap: 1.2em; }
.rv-count { font-family: var(--font-display); font-weight: 800; font-size: 13em; line-height: 1; color: #fff; animation: zoomin .6s both; }
.rv-ghosts { display: flex; gap: 1.4em; justify-content: center; flex-wrap: wrap; }
.rv-robot { height: 100%; aspect-ratio: 4 / 5; } .rv-robot svg { height: 100%; width: 100%; }
.rv-ghosts .rv-robot { height: 11em; opacity: .55; } .rv-ghosts .rv-robot.on { opacity: 1; height: 12em; }
.rv-robot.huge { height: 36em; } .rv-robot.big { height: 36em; } .rv-robot.tile { height: var(--th, 11em); } .rv-robot.mini { height: 8em; } .rv-robot.detail { height: 12.5rem; } .rv-robot.follower { height: 16em; margin: 0 auto; }
.rv-rise { animation: rise .8s cubic-bezier(.2,1.2,.4,1) both; }
.rv-activation { display: flex; flex-direction: column; align-items: center; gap: .6em; }
.rv-act-text { text-align: center; opacity: 0; transform: translateY(1em); transition: all .6s; } .rv-act-text.on { opacity: 1; transform: none; }
.rv-team { font-size: 2.4em; font-weight: 800; color: #d8ccf0; }
.rv-name { font-family: var(--font-display); font-size: 5.5em; line-height: 1; color: #e3b3ff; }
.rv-name-sm { font-family: var(--font-display); font-size: 2.2rem; color: #e3b3ff; }
.rv-sheet, .rv-expr { display: grid; grid-template-columns: 34% 1fr; gap: 3em; align-items: center; width: 100%; height: 100%; }
.rv-robot-col { height: 100%; display: grid; place-items: center; }
.rv-info { display: flex; flex-direction: column; gap: 1em; }
.rv-info .rv-name { font-size: 6em; }
.rv-row { display: flex; gap: .7em; flex-wrap: wrap; }
.rv-chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .9em; border-radius: 9em; font-weight: 800; font-size: 2em; background: color-mix(in srgb, var(--c, #c45cff) 22%, transparent); border: .12em solid var(--c, #c45cff); }
.rv-problem { font-size: 2.3em; font-weight: 700; font-style: italic; line-height: 1.25; color: #f5f2ff; }
.rv-summary { font-size: 1.75em; color: #d8ccf0; font-weight: 600; line-height: 1.35; max-width: 40em; }
.rv-missing { font-size: 1.4em; color: #7f93bd; font-style: italic; font-weight: 700; border: .1em dashed #4b5f8d; border-radius: .6em; padding: .1em .6em; } .rv-missing.big { font-size: .5em; }
.rv-face-chip { display: flex; align-items: center; gap: 1em; font-size: 1.6em; font-weight: 700; } .rv-thumb { width: 9em; }
.rv-in { opacity: 0; animation: rise .6s var(--d, 0s) both; }
.rv-expr-side { display: flex; flex-direction: column; gap: 1.2em; align-items: flex-start; }
.rv-moods { display: flex; gap: .8em; flex-wrap: wrap; } .rv-mood { font-size: 2.2em; font-weight: 800; padding: .25em .8em; border-radius: 9em; background: rgba(255,255,255,.08); color: #b7afc9; transition: all .3s; }
.rv-mood.on { background: #c45cff; color: #080711; transform: scale(1.1); box-shadow: 0 0 1em #c45cff; }
.rv-bigface { width: 24em; max-width: 100%; } .rv-bigface svg, .rv-thumb svg { width: 100%; height: auto; display: block; border-radius: 1em; box-shadow: 0 0 1.5em rgba(161,0,255,.35); }
.rv-caption { font-size: 2.2em; font-weight: 800; color: #f5f2ff; }
.rv-gallery { display: flex; flex-direction: column; align-items: center; gap: 1em; width: 100%; height: 100%; }
.rv-gallery .rv-title { font-size: 3.6em; }
.rv-mosaic { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 1.4em 2em; width: 100%; flex: 1; align-content: center; justify-items: center; }
.rv-tile { display: flex; flex-direction: column; align-items: center; gap: .1em; border-bottom: .2em solid var(--c); padding-bottom: .4em; width: 100%; max-width: 20em; } .rv-tile b { font-size: 1.7em; } .rv-tile span { font-size: 1.2em; color: #b7afc9; }
.rv-ui { position: fixed; left: 0; right: 0; bottom: 0; padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .6rem; background: linear-gradient(0deg, rgba(8,7,17,.97) 75%, transparent); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 20; }
.rv-ui.show { opacity: 1; pointer-events: auto; }
.rc-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.rc-bar.compact { justify-content: flex-start; }
.rc-select { width: auto; max-width: 11rem; } .rc-pace { display: inline-flex; align-items: center; gap: .3rem; } .rc-pace input { width: 4.2rem; }

/* galeria / detalhe */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1rem; }
.gal-card { display: flex; flex-direction: column; gap: .4rem; border-top: 4px solid var(--c); border-radius: 18px; background: var(--card); border-left: 1px solid var(--card-border); border-right: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); padding: .6rem; }
.gal-open { appearance: none; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .15rem; color: inherit; text-align: center; }
.gal-open b { font-family: var(--font-display); font-size: 1.15rem; } .gal-open span { color: var(--muted); font-size: .85rem; }
.gal-card .rv-robot.tile { height: 9rem; }
.modal { position: fixed; inset: 0; background: rgba(8,7,17,.85); display: grid; place-items: center; z-index: 90; padding: 1rem; overflow: auto; }
.modal-card { position: relative; width: min(46rem, 100%); background: #1b1630; border: 1px solid var(--card-border); border-radius: 22px; padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem; max-height: 95vh; overflow: auto; }
.play-robot-detail { display: flex; justify-content: center; width: 100%; }
.play-robot-card { max-height: none; }
.modal-x { position: absolute; top: .6rem; right: .6rem; }
.detail-top { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.detail-top > * { min-width: 0; }
.detail-top .rv-robot.detail { justify-self: center; }
@media (max-width: 560px) { .detail-top { grid-template-columns: minmax(0, 1fr); } .rv-robot.detail { height: 14rem; margin: 0 auto; } }
.detail-moods { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: .6rem; } .detail-moods figure { margin: 0; text-align: center; font-size: .8rem; font-weight: 800; } .detail-moods .rv-robot.mini { margin: 0 auto; }
.detail-moods figure.orig { grid-column: span 2; } .detail-moods .rv-bigface { width: 100%; }
.detail-top .rv-chip, .modal-card .rv-chip { font-size: .95rem; } .modal-card .rv-problem { font-size: 1.05rem; } .modal-card .rv-summary { font-size: .95rem; } .modal-card .rv-missing { font-size: .85rem; } .modal-card .rv-team { font-size: 1.1rem; } .modal-card .rv-row { gap: .4rem; }
.detail-group { display: grid; gap: .3rem; }
.detail-label { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-personality .rv-chip { border-style: dashed; background: color-mix(in srgb, var(--c, #c45cff) 10%, transparent); }
.detail-interaction .rv-chip { border-radius: .45rem; background: color-mix(in srgb, var(--c, #22d3ee) 22%, transparent); }
.rv-missing + .rv-missing { margin-left: 0; }

@media print { body { background: #fff; color: #000; } body::before { display: none; } .no-print, .banner, .toast { display: none !important; } .page { max-width: none; } .gal-card { break-inside: avoid; background: #fff; border-color: #999; } .gal-open { color: #000; } .gal-open span { color: #444; } .modal { display: none; } }

/* ficha única por equipe: robô/nome à esquerda; equipe e detalhes à direita */
.rv-sheet { grid-template-columns: 40% minmax(0, 1fr); gap: 3em; align-items: center; }
.rv-robot-col.stack { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8em; min-width: 0; }
.rv-robot.sheet-bot { height: 34em; max-height: 68vh; }
.rv-robot-col .rv-name { max-width: 100%; text-align: center; overflow-wrap: anywhere; font-size: 4.4em; }
.rv-info { gap: 1.6em; min-width: 0; }
.rv-info .rv-team { font-size: 2em; }
.rv-info .rv-chip { font-size: 1.7em; }
.rv-info .rv-problem { font-size: 2em; }
.rv-info .rv-summary { font-size: 1.5em; }
.rv-team-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.rv-team-row > :last-child { margin-left: auto; }
.rv-team-row .rv-chip { font-size: 1.25em; flex-shrink: 0; }
.rv-detail-group { display: flex; align-items: center; flex-wrap: wrap; gap: .45em; }
.rv-detail-label { flex-basis: 100%; color: #b7afc9; font-size: 1.1em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rv-detail-group .rv-chip { font-size: 1.2em; }
.rv-personality .rv-chip { border-style: dashed; background: color-mix(in srgb, var(--c, #c45cff) 10%, transparent); }
.rv-interaction .rv-chip { border-radius: .45em; background: color-mix(in srgb, var(--c, #22d3ee) 22%, transparent); }
.rv-sheet .rv-missing { font-size: 1.25em; }
.btn.block { white-space: normal; }

/* ---------- etapa 8: painel de controle e gamificação ---------- */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 8px; }
.btn:focus-visible, .input:focus-visible, summary:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px rgba(161, 0, 255, 0.55); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.timer-alert { min-height: 1.4em; font-weight: 800; font-size: 0.95rem; visibility: hidden; }
.timer-alert.on { visibility: visible; }
.timer.warn .timer-alert { color: var(--yellow); }
.timer.crit .timer-alert { color: var(--red); }

.dlg-back { position: fixed; inset: 0; z-index: 95; background: rgba(8, 7, 17, 0.8); display: grid; place-items: center; padding: 1rem; overflow: auto; }
.dlg { width: min(30rem, 100%); background: #1b1630; border: 1px solid var(--card-border); border-radius: 22px; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; max-height: 92vh; overflow: auto; }
.dlg p { margin: 0; }
.impact { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }

.sched { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sched-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid transparent; }
.sched-row.current { border-color: var(--accent-2); background: rgba(161, 0, 255, 0.1); }
.sched-row.locked { border-color: var(--yellow); border-style: dashed; }
.sched-row.done { opacity: 0.85; }
.sched-row.upcoming { opacity: 0.7; }
.sched-plan { font-weight: 800; font-variant-numeric: tabular-nums; }
.sched-edit { padding-top: 6px; }
.events { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.events time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.events .denied { color: var(--red); }
.status-bar { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.lab-ticker { margin: 0; text-align: center; color: var(--muted); font-size: 0.9rem; min-height: 1.3em; }

/* celebração: conteúdo em texto; o confete é só enfeite (transform/opacity) */
.celebrate { position: fixed; left: 0; right: 0; top: calc(10px + env(safe-area-inset-top)); z-index: 80; display: grid; justify-items: center; padding: 0 12px; pointer-events: none; }
.celebrate-card { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 12px; max-width: 520px; width: 100%; padding: 12px 14px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(161, 0, 255, 0.95), rgba(196, 92, 255, 0.95)); color: #080711; box-shadow: var(--shadow-card); animation: rise 0.4s both; }
.celebrate.all .celebrate-card { background: linear-gradient(135deg, #facc15, #f472b6); }
.celebrate-card h2 { margin: 0; font-size: 1.25rem; line-height: 1.15; }
.celebrate-card p { margin: 2px 0 0; font-weight: 700; }
.celebrate-kicker { font-weight: 800; letter-spacing: 0.12em; font-size: 0.72rem; }
.celebrate-robot { width: 64px; flex: none; }
.celebrate-card .btn { margin-left: auto; color: #080711; border-color: rgba(4, 19, 46, 0.4); background: rgba(255, 255, 255, 0.5); }
.confetti { position: absolute; inset: 0; overflow: hidden; height: 100vh; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: confetti 2.6s ease-in both; }
@keyframes confetti { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(70vh) rotate(540deg); opacity: 0; } }
.celebrate.big { top: 6vh; }
.celebrate.big .celebrate-card { max-width: 60vw; padding: 2vh 2vw; gap: 2vw; }
.celebrate.big .celebrate-card h2 { font-size: 3vw; }
.celebrate.big .celebrate-card p { font-size: 1.8vw; }
.celebrate.big .celebrate-robot { width: 9vw; }

/* telão das missões */
.board { min-height: 100dvh; display: flex; flex-direction: column; gap: 2.2vh; padding: 3vh 4vw; font-size: clamp(14px, 1.6vw, 28px); }
.board-head { display: flex; align-items: center; gap: 1.5vw; }
.board-main { display: flex; justify-content: space-between; align-items: center; gap: 3vw; flex-wrap: wrap; }
.board-kicker { text-transform: uppercase; letter-spacing: 0.15em; font-weight: 800; color: var(--accent-2); }
.board h1 { margin: 0.2em 0; font-size: 2.4em; line-height: 1.05; }
.board-obj { margin: 0 0 0.6em; color: var(--muted); max-width: 32em; font-size: 1.2em; }
.badge.big { font-size: 1.1em; padding: 0.3em 1em; }
.board-clock { text-align: center; padding: 1.2vh 2.5vw; border-radius: 28px; background: var(--card); border: 2px solid var(--card-border); }
.board-time { font-family: var(--font-display); font-weight: 800; font-size: 5.5em; line-height: 1; font-variant-numeric: tabular-nums; }
.board-time-label { font-weight: 800; font-size: 1.2em; min-height: 1.4em; color: var(--muted); }
.board-clock.warn { border-color: var(--yellow); } .board-clock.warn .board-time, .board-clock.warn .board-time-label { color: var(--yellow); }
.board-clock.crit { border-color: var(--red); animation: glow 0.9s infinite; } .board-clock.crit .board-time, .board-clock.crit .board-time-label { color: var(--red); }
.board-progress { display: flex; flex-direction: column; gap: 1.4vh; }
.board-count { font-size: 1.5em; }
.board-meter { height: 1.1em; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.board-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 0.6s; border-radius: 99px; }
.board-teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: 1vw; }
.board-team { display: flex; flex-direction: column; gap: 0.3em; padding: 0.8em 1em; border-radius: 18px; background: var(--card); border: 2px solid var(--tc); }
.board-team.k-done { background: rgba(74, 222, 128, 0.18); }
.board-team.k-offline { border-style: dashed; }
.board-team-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3em; color: var(--tc); }
.board-team-dots { display: flex; gap: 0.35em; } .board-team-dots i { width: 0.8em; height: 0.8em; border-radius: 50%; background: rgba(255, 255, 255, 0.18); } .board-team-dots i.on { background: var(--green); }
.board-team-st { font-weight: 700; }
.board-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 2vw; flex-wrap: wrap; color: var(--accent-2); font-weight: 700; }
.board-reveal-wait { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2vh; overflow: hidden; text-align: center; isolation: isolate; }
.board-reveal-wait h1 { max-width: 22em; font-size: clamp(2rem, 5vw, 5rem); }
.board-reveal-wait p { margin: 0; color: var(--muted); font-size: 1.35em; }
.reveal-wait-robot { position: relative; z-index: 1; animation: wait-bob 3s ease-in-out infinite; filter: drop-shadow(0 0 2em rgba(34, 211, 238, .28)); }
.reveal-wait-orbit { position: absolute; z-index: -1; width: min(68vw, 70vh); aspect-ratio: 1; border: 2px solid rgba(34, 211, 238, .18); border-radius: 50%; animation: wait-orbit 12s linear infinite; }
.reveal-wait-orbit::before, .reveal-wait-orbit::after { content: ''; position: absolute; width: .8em; height: .8em; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 1.2em #22d3ee; }
.reveal-wait-orbit::before { top: 16%; left: 18%; }
.reveal-wait-orbit::after { right: 12%; bottom: 24%; background: #c45cff; box-shadow: 0 0 1.2em #c45cff; }
.reveal-wait-orbit.orbit-two { width: min(54vw, 58vh); border-color: rgba(196, 92, 255, .18); animation-direction: reverse; animation-duration: 18s; }
.reveal-wait-dots { display: flex; gap: .55em; margin-top: .2em; }
.reveal-wait-dots i { width: .55em; height: .55em; border-radius: 50%; background: #22d3ee; animation: wait-dot 1.2s ease-in-out infinite; }
.reveal-wait-dots i:nth-child(2) { animation-delay: .2s; background: #a78bfa; }
.reveal-wait-dots i:nth-child(3) { animation-delay: .4s; background: #c45cff; }
@keyframes wait-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wait-orbit { to { transform: rotate(360deg); } }
@keyframes wait-dot { 0%, 60%, 100% { opacity: .35; transform: scale(.75); } 30% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .reveal-wait-robot, .reveal-wait-orbit, .reveal-wait-dots i { animation: none; } }

/* movimento reduzido: sem animações contínuas, confete oculto, transições instantâneas; a informação continua em texto */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .confetti { display: none; }
  .celebrate-card, .rise { animation: none !important; }
  .timer.crit, .timer.crit .timer-clock, .board-clock.crit, .badge.ms-running { animation: none !important; }
}
@media (max-width: 420px) { .celebrate-robot { width: 48px; } .celebrate-card h2 { font-size: 1.05rem; } }
.board .badge.ms-running { animation: none; opacity: 1; background: rgba(74, 222, 128, 0.28); color: #bbf7d0; }

/* alvos de toque ≥ 44 px (auditoria de responsividade) */
.input.sm { min-height: 44px; }
summary { padding-block: 13px; cursor: pointer; }
.tap { display: inline-flex; align-items: center; justify-content: center; min-height: var(--touch); min-width: var(--touch); padding-inline: var(--space-2); }

/* utilitários (substituem estilos inline repetidos; !important preserva a precedência que o inline tinha) */
.u-center { text-align: center !important; }
.u-between { justify-content: space-between !important; }
.u-jcenter { justify-content: center !important; }
.u-mt8 { margin-top: var(--space-2) !important; }
.u-mt10 { margin-top: var(--space-3) !important; }
.u-gap8 { gap: var(--space-2) !important; }
.u-gap6 { gap: var(--space-1) !important; }
.u-summary { cursor: pointer; font-weight: 800; }
.u-nolink { text-decoration: none !important; }
.u-linkbtn { text-decoration: none !important; display: inline-flex !important; align-items: center !important; }
.u-kicker { font-weight: 800; text-transform: uppercase; }
.u-huge { font-size: 3rem !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

.card .row.wrap > .btn { white-space: normal; }

.row.wrap > .input.grow { flex: 1 1 160px; }

/* marca em imagem */
.logo { background: none; filter: none; line-height: 0; }
.logo-img { display: block; height: 1.4em; width: auto; max-width: 100%; }
.home-mascot { width: calc(100% + 48px); max-width: 480px; margin-inline: -24px; height: auto; display: block; }

/* home: bloco centralizado (vertical e horizontal), respiro antes dos botões e botões mais estreitos */
.home { justify-content: center; gap: clamp(28px, 6vh, 56px); }
.home-actions { width: 100%; max-width: 320px; }

/* /#/host (login): logo maior e caixa de conteúdo mais estreita */
.host-logo .logo { font-size: 8rem; }
.host-login .card { width: 100%; max-width: 380px; }

/* ---------- painel do apresentador em tela larga (computador/notebook/projeção) ---------- */
.page.host-wide { max-width: none; padding: 14px clamp(14px, 1.6vw, 28px) 24px; gap: 12px; min-height: 0; }
.host-wide .dash { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); gap: 14px; }
@media (min-width: 861px) {
  .host-wide .dash > aside { position: sticky; top: 10px; max-height: calc(100dvh - 20px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
}
.host-wide aside .card { padding: 14px; }
.host-wide aside .btn-md { padding: 0 12px; font-size: 0.92rem; }
.host-wide .qr { max-width: 150px; padding: 6px; border-radius: 12px; }
.host-wide .code-big { font-size: 2rem; }
.join-url { text-align: center; word-break: break-all; font-size: 0.75rem; }
/* cronograma em faixa */
.sched-card { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.sched.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sched.strip .sched-row { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 10px; }
.sched-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sched-top b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.9rem; line-height: 1.15; }
@media (max-width: 1100px) { .sched.strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sched.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* equipes: grade densa */
.host-wide .team-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.team-card.compact { padding: 12px; gap: 8px; border-top-width: 3px; }
.tc-head { display: flex; align-items: center; gap: 4px; }
.tc-head h3 { margin: 0; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tc-body { display: flex; gap: 10px; align-items: center; }
.tc-robot { width: 56px; height: 72px; flex: none; }
.tc-robot .robot { height: 100%; width: auto; }
.tc-info { gap: 3px; min-width: 0; }
.tc-members { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.85rem; font-weight: 700; }
.tc-members li { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.tc-members li.on { color: var(--text); }
.tc-manage summary { font-size: 0.82rem; color: var(--text-2); font-weight: 700; }
.tc-manage .members { margin-top: 6px; }
.host-wide .tc-manage .member { flex-wrap: wrap; }

.host-wide aside .btn, .host-wide aside .row.wrap > .btn { white-space: normal; min-width: 0; }
.host-wide aside .btn-md { padding: 0 8px; gap: 5px; font-size: 0.88rem; }
.host-wide aside .card { min-width: 0; max-width: 100%; }
.host-wide aside .mstate { flex-wrap: wrap; white-space: normal; }
.host-wide aside .mstate .grow { min-width: 0; overflow-wrap: anywhere; }
.host-wide aside { scrollbar-gutter: stable; }
.host-wide aside .row.wrap { flex-wrap: wrap; }
.host-wide aside .row.wrap > .btn:not(.grow) { flex: 1 1 auto; }

.next-action { border-color: var(--accent-2); }
.host-wide .command-bar { gap: 8px; }
.host-wide .cmd-cell { padding: 8px 12px; }
.host-wide .cmd-cell b { font-size: 1.25rem; }
.host-wide .cmd-cell.time b { font-size: 1.8rem; }
.host-wide .sched-card { padding: 10px 12px; gap: 8px; }
.host-wide .event-log { padding: 10px 14px; }

/* /#/host depois do login: formulário em duas colunas e lista de sessões ao lado (computador) */
.page.host-setup { max-width: 1100px; }
.setup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; align-items: start; }
.setup-form > h2, .setup-form > details, .setup-form > .badge, .setup-form > .error-text, .setup-form > .btn, .setup-form > .field.wide { grid-column: 1 / -1; }
.setup-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.setup-time-column { display: grid; align-content: start; gap: 12px; min-width: 0; }
.setup-time { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.setup-time > span { display: flex; align-items: center; gap: 5px; }
.setup-time .input { width: 90px; }
@media (min-width: 1000px) {
  .page.host-setup { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 16px; }
  .host-setup .setup-top { grid-column: 1 / -1; }
  .host-setup.solo .setup-form { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .setup-form { grid-template-columns: 1fr; } .setup-times { gap: 12px; } }
.host-wide aside, .host-wide .dash > aside { scrollbar-color: var(--line-strong) transparent; }

.sessions-card { max-height: 60dvh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sessions-card h3 { position: sticky; top: -18px; background: var(--surface); padding: 4px 0; z-index: 1; }
@media (min-width: 1000px) { .sessions-card { position: sticky; top: 12px; max-height: calc(100dvh - 24px); } }

@media (max-width: 860px) { .host-wide .dash { grid-template-columns: minmax(0, 1fr); } .host-wide aside .row.wrap { flex-wrap: wrap; } }
