/* figurinhas.live — preto, branco e verde neon, com pegada de adesivo recortado:
   contorno branco grosso, sombra dura deslocada, letreiro pesado.
   Do design system do Waavy ficam a estrutura: tokens semânticos, cards com raio 16,
   profundidade em camadas, cor só para estado, motion curto, mobile first. */

:root {
  --background: #000000;
  --surface: #0b0b0b;
  --surface-2: #151515;
  --surface-3: #202020;
  --border: #262626;
  --border-strong: #3d3d3d;
  --foreground: #ffffff;
  --muted-foreground: #a8a8a8;
  --subtle-foreground: #8c8c8c;

  --brand: #39ff14;
  --brand-hover: #6bff4f;
  --brand-soft: rgba(57, 255, 20, 0.12);
  --brand-foreground: #000000;
  --brand-from: #39ff14;
  --brand-to: #39ff14;
  --brand-ring: rgba(57, 255, 20, 0.35);
  --brand-text: #39ff14;

  --success: #39ff14;
  --success-bg: rgba(57, 255, 20, 0.16);
  --warning: #ffffff;
  --warning-bg: rgba(255, 255, 255, 0.1);
  --danger: #ff5c5c;
  --danger-bg: rgba(255, 92, 92, 0.16);

  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 40px -20px rgba(0, 0, 0, 0.9);
  --shadow-card-hover: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -22px rgba(57, 255, 20, 0.45);
  --shadow-thumb: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  /* recorte de adesivo: filete preto + contorno branco */
  --die-cut: 0 0 0 2px #000, 0 0 0 4px #fff;

  --ambient-1: rgba(57, 255, 20, 0.13);
  --ambient-2: rgba(57, 255, 20, 0.05);
  --ambient-dot: rgba(255, 255, 255, 0.07);
  --checker: rgba(255, 255, 255, 0.045);

  --font-display: "Lilita One", "Sora", system-ui, sans-serif;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --quick: 180ms;
  --standard: 280ms;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
svg.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- fundo ambiente: grade de pontos + blob brand no canto ---------- */
.ambient {
  position: absolute; inset: 0 0 auto; height: min(100%, 64rem); z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 100% -8%, var(--ambient-1), transparent 62%),
    radial-gradient(44rem 30rem at -12% 38%, var(--ambient-2), transparent 60%),
    radial-gradient(var(--ambient-dot) 1px, transparent 1px) 0 0 / 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

/* ---------- estrutura ---------- */
.shell { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.875rem 0;
}
.brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.brand-mark {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.625rem;
  color: #fff; font-size: 1rem;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 14px -6px color-mix(in oklab, var(--brand) 70%, transparent);
}
.brand small { color: var(--muted-foreground); font-weight: 400; font-size: inherit; }
.topbar-actions { display: flex; align-items: center; gap: 0.5rem; }

.tag {
  display: inline-flex; align-items: center; gap: 0.4rem; height: 1.75rem; padding: 0 0.625rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 500; white-space: nowrap;
  color: var(--muted-foreground); background: var(--surface); border: 1px solid var(--border);
}
.tag::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--subtle-foreground); }
.tag[data-tone="success"] { color: var(--success); }
.tag[data-tone="success"]::before { background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.tag[data-tone="danger"] { color: var(--danger); }
.tag[data-tone="danger"]::before { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }

.icon-btn {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  border-radius: 0.625rem; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted-foreground); font-size: 0.9375rem;
  transition: color var(--quick), border-color var(--quick), background-color var(--quick);
}
.icon-btn:hover { color: var(--foreground); border-color: var(--border-strong); }

.layout { display: grid; gap: 1.75rem; padding: 0.75rem 0 3rem; }

.hero h1 { font-size: 1.875rem; line-height: 1.12; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.hero p { margin-top: 0.75rem; color: var(--muted-foreground); font-size: 0.9375rem; max-width: 34rem; }

.side { display: grid; gap: 1.75rem; align-content: start; }
.side-extra { display: grid; gap: 1rem; }

/* ---------- card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 1rem;
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 1.125rem; }
.card-hover { transition: translate var(--standard) var(--ease-out-soft), box-shadow var(--standard) var(--ease-out-soft), border-color var(--standard) var(--ease-out-soft); }
@media (hover: hover) {
  .card-hover:hover { translate: 0 -2px; box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
}

.maker { position: relative; overflow: hidden; }
.maker::before { /* hairline brand no topo: card em destaque */
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--brand) 70%, transparent), transparent);
}
.maker-body { display: grid; gap: 1.125rem; }

.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.8125rem; font-weight: 500; }
.field-label span { color: var(--subtle-foreground); font-weight: 400; font-size: 0.75rem; }
.hint { margin-top: 0.4rem; color: var(--muted-foreground); font-size: 0.75rem; }
.hint[data-tone="danger"] { color: var(--danger); }

/* ---------- palco da figurinha ---------- */
.stage {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-height: 21rem;
  margin: 0 auto; padding: 0; border-radius: 1rem; overflow: hidden; text-align: center;
  border: 1.5px dashed var(--border-strong); color: var(--muted-foreground);
  background:
    conic-gradient(var(--checker) 25%, transparent 0 50%, var(--checker) 0 75%, transparent 0) 0 0 / 20px 20px,
    var(--surface-2);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--quick), background-color var(--quick);
}
.stage:hover, .stage.dragging { border-color: var(--brand); }
.stage.dragging { background-color: var(--brand-soft); }
.stage.filled { border-style: solid; border-color: var(--border); }
.stage-empty { display: grid; justify-items: center; gap: 0.5rem; padding: 1.25rem; }
.stage-empty .icon { font-size: 1.75rem; color: var(--brand); }
.stage-empty strong { color: var(--foreground); font-weight: 500; font-size: 0.9375rem; }
.stage-empty span { font-size: 0.75rem; }
.stage img, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage[data-fit="inteiro"] img, .stage[data-fit="inteiro"] video { object-fit: contain; }

.chip-btn {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.375rem; height: 2.25rem; padding: 0 0.75rem;
  border: 0; border-radius: 999px; font-size: 0.75rem; font-weight: 500; color: #fff;
  background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(8px);
}
.chip-btn:hover { background: rgba(15, 23, 42, 0.88); }
.chip-btn.top-right { top: 0.625rem; right: 0.625rem; }
.chip-btn.bottom-left { bottom: 0.625rem; left: 0.625rem; }

/* ---------- linha do áudio ---------- */
.audio-row {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 3.5rem; padding: 0.625rem 0.75rem;
  border-radius: 0.75rem; border: 1.5px dashed var(--border-strong); background: var(--surface-2);
  text-align: left; transition: border-color var(--quick);
}
.audio-row:hover { border-color: var(--brand); }
.audio-row.filled { border-style: solid; border-color: var(--border); }
.audio-row .bubble {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; flex: none;
  color: var(--brand-text); background: var(--brand-soft); font-size: 0.9375rem; border: 0; padding: 0;
}
.audio-row .text { min-width: 0; flex: 1; display: grid; }
.audio-row .text strong { font-weight: 500; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-row .text span { color: var(--muted-foreground); font-size: 0.75rem; }
.link-btn { border: 0; background: none; padding: 0.5rem; color: var(--muted-foreground); font-size: 0.75rem; font-weight: 500; }
.link-btn:hover { color: var(--foreground); }

/* ---------- controle segmentado ---------- */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.25rem; border-radius: 0.75rem; background: var(--surface-2); box-shadow: var(--shadow-inset); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem; height: 2.375rem; border-radius: 0.5rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted-foreground); cursor: pointer;
  transition: color var(--quick), background-color var(--quick), box-shadow var(--quick);
}
.segmented input:checked + span { color: var(--foreground); background: var(--surface); box-shadow: var(--shadow-thumb); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- campo de texto ---------- */
.input {
  display: flex; align-items: center; height: 3rem; border-radius: 0.75rem; background: var(--surface);
  border: 1px solid var(--border-strong); transition: border-color var(--quick), box-shadow var(--quick);
}
.input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.input.invalid { border-color: var(--danger); }
.input .prefix { display: flex; align-items: center; gap: 0.4rem; padding: 0 0.75rem; color: var(--muted-foreground); border-right: 1px solid var(--border); height: 100%; font-size: 0.875rem; }
.input input { flex: 1; min-width: 0; height: 100%; padding: 0 0.75rem; border: 0; background: none; outline: none; font-size: 1rem; /* 16px: evita o zoom do iOS */ }
.input input::placeholder { color: var(--subtle-foreground); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 3rem; padding: 0 1.25rem;
  border-radius: 0.75rem; border: 1px solid transparent; font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: translate var(--quick) var(--ease-out-soft), scale 120ms var(--ease-out-soft), box-shadow var(--quick) var(--ease-out-soft), background-color 150ms, border-color 150ms, opacity 150ms;
}
.btn-block { width: 100%; }
.btn-sm { height: 2.5rem; padding: 0 0.875rem; font-size: 0.8125rem; border-radius: 0.625rem; }
.btn-primary {
  color: var(--brand-foreground);
  background: linear-gradient(180deg, var(--brand-from), var(--brand-to));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(15, 23, 42, 0.12);
}
.btn-secondary { color: var(--foreground); background: var(--surface); border-color: var(--border-strong); }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) { translate: 0 -1px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px -4px color-mix(in oklab, var(--brand) 55%, transparent); }
  .btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
}
.btn:active:not(:disabled) { translate: 0 0; scale: 0.98; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- callout: mesmo gesto de degradê do nav-active, tingido pelo estado ---------- */
.callout {
  --tone: var(--brand);
  position: relative; display: grid; gap: 0.75rem; padding: 0.875rem 1rem; border-radius: 0.875rem; overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--tone) 24%, var(--border));
  background: linear-gradient(270deg, transparent 0%, color-mix(in oklab, var(--tone) 6%, transparent) 45%, color-mix(in oklab, var(--tone) 15%, transparent) 100%), var(--surface);
}
.callout[data-tone="warning"] { --tone: #f59e0b; }
.callout[data-tone="danger"] { --tone: #ef4444; }
.callout[data-tone="success"] { --tone: #22c55e; }
.callout-head { display: flex; gap: 0.625rem; align-items: flex-start; }
.callout-head .icon { margin-top: 0.15rem; font-size: 1rem; color: var(--tone); }
.callout strong { display: block; font-weight: 500; font-size: 0.875rem; }
.callout p { color: var(--muted-foreground); font-size: 0.8125rem; }
.callout-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.callout-actions .btn { flex: 1 1 9rem; }

/* ---------- progresso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.steps li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; color: var(--subtle-foreground); font-size: 0.875rem; transition: color var(--standard); }
.steps .dot {
  display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; flex: none;
  border: 1.5px solid var(--border-strong); font-size: 0.6875rem; color: transparent;
  transition: background-color var(--standard), border-color var(--standard), color var(--standard);
}
.steps li[data-state="active"] { color: var(--foreground); font-weight: 500; }
.steps li[data-state="active"] .dot { border-color: var(--brand); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.steps li[data-state="done"] { color: var(--muted-foreground); }
.steps li[data-state="done"] .dot { background: var(--success); border-color: var(--success); color: #fff; }
.steps small { display: block; font-weight: 400; color: var(--muted-foreground); font-size: 0.75rem; }

.progress-stage { position: relative; width: min(11rem, 55%); aspect-ratio: 1; margin: 0.25rem auto 0.5rem; border-radius: 1.25rem; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-inset); }
.progress-stage img, .progress-stage video { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.progress-stage::after { /* faixa de luz descendo enquanto processa */
  content: ""; position: absolute; inset: 0 0 auto; height: 45%;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--brand) 35%, transparent), transparent);
  animation: scan 1.6s var(--ease-out-soft) infinite;
}

/* ---------- resultado ---------- */
.result { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.result-sticker {
  position: relative; width: min(15rem, 72%); aspect-ratio: 1; padding: 0; border: 0; background: none; border-radius: 1.25rem;
  filter: drop-shadow(0 14px 22px rgba(15, 23, 42, 0.22));
  animation: pop-in 520ms var(--ease-out-soft) backwards;
}
.result-sticker img { width: 100%; height: 100%; object-fit: contain; border-radius: 1rem; }
.result-sticker .sound {
  position: absolute; right: -0.5rem; bottom: -0.5rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  color: #fff; font-size: 1.0625rem; background: linear-gradient(180deg, var(--brand-from), var(--brand-to));
  box-shadow: 0 0 0 3px var(--surface), 0 8px 18px -6px color-mix(in oklab, var(--brand) 70%, transparent);
}
.result-sticker.playing .sound { animation: pulse 0.9s ease-in-out infinite; }
.result h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
.result p { color: var(--muted-foreground); max-width: 22rem; }
.result .notes { font-size: 0.75rem; }

/* ---------- grupo e passos ---------- */
.group { display: flex; align-items: center; gap: 0.875rem; }
.group-avatar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.875rem; flex: none; font-size: 1.125rem; color: var(--brand-text); background: var(--brand-soft); }
.group-text { min-width: 0; flex: 1; }
.group-text strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-text span { color: var(--muted-foreground); font-size: 0.75rem; }

.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.875rem; counter-reset: how; }
.how li { display: flex; gap: 0.75rem; counter-increment: how; }
.how li::before {
  content: counter(how); display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; flex: none;
  font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brand-text); background: var(--brand-soft);
}
.how strong { display: block; font-weight: 500; }
.how span { color: var(--muted-foreground); font-size: 0.8125rem; }
.section-title { font-size: 0.9375rem; margin-bottom: 0.875rem; }

.footer { padding: 1.5rem 0 2.5rem; color: var(--subtle-foreground); font-size: 0.75rem; text-align: center; }

/* ---------- motion ---------- */
.fade-up { animation: fade-up 480ms var(--ease-out-soft) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.swap { animation: fade-up 320ms var(--ease-out-soft) backwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(0.8) rotate(-4deg); } 60% { transform: scale(1.04) rotate(1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(240%); } }
@keyframes pulse { 50% { transform: scale(1.12); } }

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

/* ---------- telas maiores ---------- */
@media (min-width: 40rem) {
  .shell { padding: 0 1.5rem; }
  .card-pad { padding: 1.5rem; }
  .hero h1 { font-size: 2.25rem; }
}
@media (min-width: 60rem) {
  .topbar { padding: 1.25rem 0; }
  .layout {
    grid-template-columns: minmax(0, 1fr) 26.5rem; grid-template-rows: auto 1fr;
    grid-template-areas: "hero maker" "side maker";
    gap: 2.25rem 3.5rem; align-items: start; padding-top: 2.5rem;
  }
  .hero { grid-area: hero; }
  .side { grid-area: side; }
  .hero h1 { font-size: 2.75rem; }
  .hero p { font-size: 1rem; }
  .maker-col { grid-area: maker; position: sticky; top: 1.5rem; }
  .side { gap: 2.25rem; }
}

/* ---------- painel do dono ---------- */
.admin { max-width: 40rem; display: grid; gap: 1rem; padding-bottom: 3rem; }
.admin h1 { font-size: 1.5rem; letter-spacing: -0.015em; }
.admin h2 { font-size: 1rem; margin-bottom: 0.25rem; }
.admin .muted { color: var(--muted-foreground); font-size: 0.8125rem; }
.stack { display: grid; gap: 0.875rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.row .input { flex: 1 1 12rem; }
.qr { width: min(15rem, 100%); aspect-ratio: 1; border-radius: 0.875rem; background: #fff; padding: 0.5rem; margin: 0 auto; display: block; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.5rem; letter-spacing: 0.12em; text-align: center; padding: 0.75rem; border-radius: 0.75rem; background: var(--surface-2); }
.group-list { display: grid; gap: 0.5rem; max-height: 20rem; overflow: auto; }
.group-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 0.75rem; border: 1px solid var(--border); cursor: pointer; }
.group-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.group-option input { accent-color: var(--brand); width: 1.125rem; height: 1.125rem; }
.group-option div { min-width: 0; flex: 1; }
.group-option strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-option span { color: var(--muted-foreground); font-size: 0.75rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.stat { padding: 0.75rem; border-radius: 0.75rem; background: var(--surface-2); }
.stat b { display: block; font-size: 1.375rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { color: var(--muted-foreground); font-size: 0.75rem; }

/* ---------- atrasos das entradas (CSP não permite style inline) ---------- */
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; }

/* ---------- figurinha pronta: código, QR e espera ---------- */
#ready-actions { display: grid; gap: 0.75rem; }
.ready-code { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0.875rem; border-radius: 0.75rem; background: var(--surface-2); box-shadow: var(--shadow-inset); }
.ready-code span { color: var(--muted-foreground); font-size: 0.75rem; }
.ready-code b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.14em; }
.ready-qr { display: none; align-items: center; gap: 0.875rem; }
.ready-qr img { width: 6.5rem; height: 6.5rem; border-radius: 0.625rem; background: #fff; padding: 0.25rem; flex: none; }
.ready-qr p { color: var(--muted-foreground); font-size: 0.75rem; }
@media (min-width: 60rem) and (hover: hover) { .ready-qr { display: flex; } }
.waiting { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0; }
.spinner { width: 0.875rem; height: 0.875rem; border-radius: 50%; border: 1.5px solid var(--brand); border-top-color: transparent; animation: spin 0.8s linear infinite; flex: none; }
.result-sticker.delivered .sound { background: var(--success); box-shadow: 0 0 0 3px var(--surface), 0 8px 18px -6px color-mix(in oklab, var(--success) 70%, transparent); }


/* ═════════ pegada de adesivo ═════════ */
h1, h2, .btn, .brand, .section-title { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.005em; }

.brand { font-size: 1.1875rem; gap: 0.5rem; }
.brand small { color: var(--brand); }
.brand-logo { width: 2.5rem; height: 2.5rem; object-fit: contain; rotate: -6deg; }

.hero { position: relative; }
.hero-mascot {
  display: block; width: 7.5rem; height: 7.5rem; object-fit: contain; margin: 0 0 0.5rem -0.5rem; rotate: -7deg;
  filter: drop-shadow(0 10px 24px rgba(57, 255, 20, 0.28));
  animation: sticker-in 620ms var(--ease-out-soft) backwards;
}
.hero h1 { font-size: 2.375rem; line-height: 1.02; letter-spacing: 0; text-transform: uppercase; }
.hero h1 em { color: var(--brand); text-shadow: 0 0 28px rgba(57, 255, 20, 0.45); }

.maker { border: 2px solid #fff; border-radius: 1.25rem; box-shadow: 6px 6px 0 var(--brand); overflow: visible; }
.maker::before { content: none; }

.btn { font-size: 1.0625rem; border-radius: 0.875rem; }
.btn-sm { font-size: 0.9375rem; }
.btn-primary { background: var(--brand); color: #000; box-shadow: var(--die-cut); }
.btn-primary .icon { color: #000; }
.btn-secondary { background: #000; border: 2px solid #fff; color: #fff; }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) { translate: 0 -2px; background: var(--brand-hover); box-shadow: var(--die-cut), 0 12px 28px -6px rgba(57, 255, 20, 0.6); }
  .btn-secondary:hover:not(:disabled) { background: #fff; color: #000; }
}
.btn:disabled { opacity: 0.35; }
#ready-actions, .maker-body > div:has(> .btn-primary) { padding: 4px; margin: -4px; } /* espaço para o recorte */

.stage { border-width: 2px; border-color: var(--border-strong); background-color: var(--surface-2); }
.stage.filled { border-color: #fff; }
.stage-empty .icon { font-size: 2rem; }
.chip-btn { background: #000; border: 1.5px solid #fff; font-weight: 600; }
.chip-btn:hover { background: #fff; color: #000; }

.audio-row { border-width: 2px; }
.audio-row.filled { border-color: #fff; }
.audio-row .bubble { background: var(--brand); color: #000; }

.segmented { background: var(--surface-2); border: 1px solid var(--border); }
.segmented input:checked + span { background: #fff; color: #000; }

.tag { background: #000; border-color: var(--border-strong); }
.tag[data-tone="success"] { border-color: rgba(57, 255, 20, 0.5); }

.input { background: #000; }
.callout { background: linear-gradient(270deg, transparent 0%, color-mix(in oklab, var(--tone) 8%, transparent) 45%, color-mix(in oklab, var(--tone) 18%, transparent) 100%), #000; }
.callout[data-tone="warning"] { --tone: #ffffff; border-color: #fff; }
.callout[data-tone="danger"] { --tone: #ff5c5c; }

.steps li[data-state="done"] .dot { color: #000; }
.progress-stage { border: 2px solid #fff; }

.result-sticker { filter: drop-shadow(0 14px 26px rgba(57, 255, 20, 0.25)); rotate: -3deg; }
.result-sticker img { border: 3px solid #fff; background: var(--surface-2); }
.result-sticker .sound { background: var(--brand); color: #000; box-shadow: var(--die-cut); }
.result-sticker.delivered .sound { background: var(--brand); box-shadow: var(--die-cut); }
.result h2 { font-size: 1.625rem; text-transform: uppercase; }
.ready-code b { color: var(--brand); }

.group-avatar { background: var(--brand); color: #000; }
.how li::before { background: var(--brand); color: #000; font-weight: 700; }
.section-title { font-size: 1.1875rem; text-transform: uppercase; }
.card-hover:hover { border-color: var(--brand); }

.admin h1 { text-transform: uppercase; font-size: 1.75rem; }
.admin h2 { font-size: 1.1875rem; }
.group-option:has(input:checked) { border-color: var(--brand); }
.stat b { font-family: var(--font-display); color: var(--brand); }

@keyframes sticker-in { 0% { opacity: 0; transform: scale(0.6) rotate(-18deg); } 60% { transform: scale(1.06) rotate(3deg); } }

@media (min-width: 40rem) { .hero h1 { font-size: 2.875rem; } }
@media (min-width: 60rem) {
  .hero-mascot { width: 10rem; height: 10rem; }
  .hero h1 { font-size: 3.5rem; }
  .maker { box-shadow: 8px 8px 0 var(--brand); }
}

#ready-actions { gap: 0.875rem; }
.input .prefix { font-weight: 600; color: var(--foreground); }
.input.invalid { box-shadow: 0 0 0 3px var(--danger-bg); }
