/* Marca amigosecreto.xyz (amigosecreto.xyz.br)
   Roxo-noite, rosa-choque e verde-limão. Botões com sombra "chapada" e raspadinha holográfica. */
:root {
  --bg: #160D2E;
  --bg-deep: #0E0820;
  --text: #F6F2FF;
  --muted: #BDB2DE;
  --accent: #FF4F8B;
  --accent-hover: #FF6E9F;
  --on-accent: #FFFFFF;
  --lime: #C8F560;
  --accent-line: rgba(200, 245, 96, .55);
  --focus: #C8F560;
  --hairline: rgba(246, 242, 255, .14);
  --ghost-line: rgba(246, 242, 255, .38);
  --ghost-hover: rgba(246, 242, 255, .07);
  --panel: rgba(246, 242, 255, .055);
  --shadow: rgba(5, 2, 15, .6);
  --wa: #25D366;
  --wa-ink: #06301A;
  --ok: #C8F560;
  --error: #FF9DB8;
  --input-bg: #FFFFFF;
  --input-ink: #1A1030;
  --input-radius: 14px;
  --card-bg: #FFFFFF;
  --card-ink: #1A1030;
  --btn-radius: 16px;
  --btn-shadow: 4px 4px 0 var(--lime);
  --display-tracking: -0.01em;
  --h1-weight: 700;
  --h1-size: clamp(2rem, 7vw, 3.2rem);
  --scene-opacity: .45;

  --font-display: "Unbounded", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --grid-line: rgba(246, 242, 255, .045);
  --bg-pattern: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  --bg-pattern-size: 40px 40px;
  color-scheme: dark;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--lime); }
.btn-ghost { box-shadow: inset 0 0 0 2px var(--ghost-line); }
.pill[aria-checked="true"] { box-shadow: 3px 3px 0 var(--lime); }

/* Fundos grátis */
body[data-skin="natal"] { --bg: #160D2E; }
body[data-skin="semfundo"] { --bg: #131118; --bg-deep: #0C0B10; --grid-line: transparent; }
body[data-skin="chanukah"] { --bg: #0E1E4D; --bg-deep: #081536; --accent: #5C8DFF; --accent-hover: #7AA2FF; --muted: #B7C6EE; }
body[data-skin="praia"] { --bg: #0B3A4A; --bg-deep: #072936; --accent: #FF8A3D; --accent-hover: #FFA062; --muted: #B6D8DE; }
body[data-skin="chocolate"] { --bg: #2E1A14; --bg-deep: #20110C; --accent: #FF7A59; --accent-hover: #FF9478; --muted: #DCC2B6; }
body[data-skin="anonovo"] { --bg: #FFFDF8; --bg-deep: #F1ECE0; --text: #1A1030; --muted: #5A5070; --accent: #E0306E; --accent-hover: #EB4B83; --lime: #1A1030; --accent-line: rgba(26,16,48,.35); --focus: #1A1030; --hairline: rgba(26,16,48,.12); --ghost-line: rgba(26,16,48,.35); --ghost-hover: rgba(26,16,48,.05); --panel: rgba(26,16,48,.04); --shadow: rgba(40,30,60,.22); --ok: #1E7A44; --error: #B0244F; --grid-line: rgba(26,16,48,.05); color-scheme: light; }

/* Logo */
.logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo b { color: var(--lime); font-weight: 700; }
.logo-mark { width: 30px; height: 30px; flex: none; }
body[data-skin="anonovo"] .logo b { color: var(--accent); }
.free-badge { background: var(--lime); color: #1A1030; border-radius: 10px; }
.eyebrow { color: var(--lime); }
body[data-skin="anonovo"] .eyebrow { color: var(--accent); }

/* Passos como cartões */
.step { border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.step::before {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font: 700 20px/1 var(--font-display); box-shadow: 3px 3px 0 var(--lime);
}
.step p { color: var(--muted); font-size: 15.5px; }
.step .hand { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--lime); }
body[data-skin="anonovo"] .step .hand { color: var(--accent); }

/* Nomes como etiquetas */
.chip { border-radius: 12px; background: #fff; color: #1A1030; font: 700 17px/1 var(--font-body); box-shadow: 3px 3px 0 var(--accent); padding: 4px 4px 4px 14px; }
.nm { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.1; }
.gift-img { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #3A2D5C; }
.gift { border-radius: 18px; }
.g1 { background: #FFE1EC; } .g2 { background: #E9FBC8; } .g3 { background: #E4DEFF; } .g4 { background: #D7F3FF; }

/* ---------- Raspadinha ---------- */
.scratch {
  position: relative; width: min(100%, 420px); aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden;
  background: #fff; color: #1A1030; box-shadow: 6px 6px 0 var(--accent), 0 30px 50px -30px var(--shadow);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.scratch-under {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 18px; text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,79,139,.14), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(200,245,96,.28), transparent 45%), #fff;
}
.scratch-label { font: 800 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #6A5E8A; }
.scratch-name { font: 700 44px/1.05 var(--font-display); letter-spacing: -0.02em; color: #1A1030; overflow-wrap: anywhere; }
.scratch-to { font: 600 13px/1.2 var(--font-body); color: #6A5E8A; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity 600ms ease; }
.scratch.done canvas { opacity: 0; pointer-events: none; }
.scratch-hint {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(26,16,48,.75); color: #fff; font: 700 13px/1 var(--font-body); pointer-events: none; transition: opacity 300ms ease;
}
.scratch.started .scratch-hint, .scratch.done .scratch-hint { opacity: 0; }

/* Mini raspadinha da página inicial */
.scratch-mini { aspect-ratio: 16 / 10; width: 100%; border-radius: 16px; box-shadow: 4px 4px 0 var(--accent); }
.scratch-mini .scratch-name { font-size: 30px; }
.foil-demo {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, #C9C3E6, #F3D1E4 30%, #D7F5B8 55%, #BFD8FF 80%, #E7C8F5);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: foil-demo 5.2s ease-in-out infinite;
}
.foil-demo::after { content: "raspe aqui ✦"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px var(--font-display); color: rgba(26,16,48,.55); }
@keyframes foil-demo {
  0%, 18% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  45%, 80% { clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
