/* Desembrulha — acabamento da interface (carregado por último) + abertura do presente (js/unbox.js).
 * Regra: só sobrescreve; style.css / cards.css / conta.css continuam valendo por baixo. */

/* ================================ abertura ================================ */
#reveal.ub-on { background: #05040f; backdrop-filter: none; padding: 16px; }
#reveal.ub-on > #cardStep { position: relative; z-index: 2; }
/* o envelope do canvas voa até o cartão; o do DOM aparece só quando ele chega (sem sobe-40px) */
#reveal.ub-on .cz-stage { transform: none; transition: opacity .18s ease-out; }
#reveal.ub-wait .cz-stage { opacity: 0 !important; transition: none; }

.ub { position: fixed; inset: 0; z-index: 1; overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.ub-cv { position: absolute; inset: 0; display: block; }
.ub-flash { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: #fff; } /* clarão do 3D */
.ub-hit {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; margin: 0;
  background: transparent; cursor: pointer; touch-action: manipulation; z-index: 2;
}
.ub-hit:focus { outline: none; }
.ub-hit:focus-visible { outline: 3px solid rgba(255,255,255,.55); outline-offset: -10px; border-radius: 22px; }
.ub.ub-done, .ub.ub-done .ub-hit { pointer-events: none; }

.ub-top, .ub-bottom {
  position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.9,.3,1);
}
.ub-top { top: calc(22px + env(safe-area-inset-top)); animation: ubIn .7s .15s both cubic-bezier(.2,.9,.3,1); }
.ub-bottom { bottom: calc(26px + env(safe-area-inset-bottom)); }
.ub.ub-go .ub-top, .ub.ub-go .ub-bottom { opacity: 0; transform: translateY(-8px); animation: none; }
.ub.ub-go .ub-bottom { transform: translateY(8px); }
@keyframes ubIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.ub-kicker {
  margin: 0; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255,244,220,.92); text-shadow: 0 0 18px rgba(255,207,90,.55), 0 1px 0 rgba(0,0,0,.4);
}
.ub-badge {
  margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 15px; color: #fff; letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 8px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ub-stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; text-shadow: 0 0 10px rgba(255,207,90,.8); }
.ub[data-tier="medio"] .ub-stars { color: #8dffb4; text-shadow: 0 0 10px rgba(141,255,180,.7); }
.ub[data-tier="dificil"] .ub-stars { color: #d7b4ff; text-shadow: 0 0 10px rgba(183,123,255,.9); }
.ub[data-tier="dificil"] .ub-badge { box-shadow: inset 0 0 0 1px rgba(183,123,255,.55), 0 0 26px rgba(123,63,228,.45); }
.ub .ub-badge.legend {
  color: #2a1700; background: linear-gradient(180deg, #fff1c1, #ffcf5a 55%, #f5a623);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 34px rgba(255,207,90,.65), 0 8px 30px rgba(0,0,0,.4);
  text-transform: uppercase; letter-spacing: .08em; font-size: 14px;
}
.ub .ub-badge.legend .ub-stars { color: #7a3f00; text-shadow: none; }
.ub-badge.pop { animation: ubPop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes ubPop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

.ub-hint {
  margin: 0; min-height: 1.3em; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 5.4vw, 26px); color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.6), 0 0 22px rgba(255,207,90,.35);
}
.ub-hint.bump { animation: ubBump .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes ubBump { 0% { transform: scale(.85); opacity: .2; } 100% { transform: none; opacity: 1; } }
.ub-pips { display: flex; gap: 8px; }
.ub-pips i {
  width: 22px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.18);
  transition: background .25s, box-shadow .25s, transform .25s;
}
.ub-pips i.on { background: var(--gold); box-shadow: 0 0 12px rgba(255,207,90,.85); transform: scaleY(1.25); }
.ub[data-tier="dificil"] .ub-pips i.on { background: #c9a2ff; box-shadow: 0 0 12px rgba(183,123,255,.9); }
.ub.ub-legend .ub-pips i.on { background: var(--gold); box-shadow: 0 0 14px rgba(255,207,90,.95); }
@media (max-height: 480px) {
  .ub-top { top: calc(10px + env(safe-area-inset-top)); gap: 6px; }
  .ub-bottom { bottom: calc(10px + env(safe-area-inset-bottom)); gap: 6px; }
  .ub-kicker { font-size: 11px; }
  .ub-badge { font-size: 13px; padding: 5px 12px 5px 10px; }
  .ub-hint { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .ub-top, .ub-hint.bump, .ub-badge.pop { animation: none; }
}

/* ============================== acabamento (ui) ==============================
 * Escala: tipo 12/13/14/16/18/21/25/34 · espaço 4/8/12/16/20/24/32 · raio 10/14/18/26
 * Botões 52px, campos 52px, foco visível em tudo, toque "afunda" 3px. */
:root {
  --gift-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ff5b68'/%3E%3Cstop offset='1' stop-color='%23a81d2c'/%3E%3C/linearGradient%3E%3ClinearGradient id='l' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ff8089'/%3E%3Cstop offset='1' stop-color='%23d42a3a'/%3E%3C/linearGradient%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23d98b14'/%3E%3Cstop offset='.5' stop-color='%23ffe39a'/%3E%3Cstop offset='1' stop-color='%23d98b14'/%3E%3C/linearGradient%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe39a'/%3E%3Cstop offset='1' stop-color='%23f5a623'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='48' cy='89' rx='31' ry='4.5' fill='%231d1534' opacity='.18'/%3E%3Crect x='19' y='45' width='58' height='42' rx='6' fill='url(%23b)'/%3E%3Crect x='19' y='49' width='58' height='4' fill='%23000' opacity='.14'/%3E%3Crect x='14' y='34' width='68' height='16' rx='5' fill='url(%23l)'/%3E%3Crect x='42' y='34' width='12' height='53' fill='url(%23g)'/%3E%3Cpath d='M24 58v20' stroke='%23fff' stroke-opacity='.3' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M48 34C40 16 20 17 25 30c3 6 15 5 23 4z' fill='url(%23w)' stroke='%23c97f12' stroke-width='1.6'/%3E%3Cpath d='M48 34c8-18 28-17 23-4-3 6-15 5-23 4z' fill='url(%23w)' stroke='%23c97f12' stroke-width='1.6'/%3E%3Crect x='42.5' y='28.5' width='11' height='10' rx='3.5' fill='%23ffcf5a' stroke='%23c97f12' stroke-width='1.4'/%3E%3C/svg%3E");
  --ink-2: #4a4060; --ink-3: #776d8c; --ink-4: #9a90ab;
  --paper-2: #f6eee2; --paper-3: #efe4d2;
  /* marca neon (docs/marca/README.md): foco violeta escuro no claro, ciano claro no escuro */
  --ring: 0 0 0 3px #fffaf2, 0 0 0 5.5px rgba(124,58,237,.7);
  --ring-dark: 0 0 0 3px rgba(7,7,26,.9), 0 0 0 5.5px rgba(143,230,255,.95);
  --sh-sheet: 0 1px 0 rgba(255,255,255,.7) inset, 0 0 0 1px rgba(29,21,52,.06), 0 24px 60px -12px rgba(0,0,0,.55), 0 8px 18px rgba(0,0,0,.18);
  --ease-out: cubic-bezier(.2,.9,.3,1);
}

/* foco: anel claro e consistente (teclado), nada de contorno azul do navegador */
:where(a, button, input, textarea, [tabindex]):focus { outline: none; }
:where(a, button, [tabindex]):focus-visible { box-shadow: var(--ring); }
.overlay.dark :where(a, button):focus-visible, #creator > .hero :where(a, button):focus-visible, .account :where(a, button):focus-visible { box-shadow: var(--ring-dark); }
::selection { background: rgba(255,207,90,.45); color: inherit; }

/* ------------------------------- botões ------------------------------- */
.btn {
  min-height: 52px; padding: 14px 22px; border-radius: 16px; font-size: 18px; letter-spacing: .005em; line-height: 1.1;
  position: relative; isolation: isolate; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), filter .2s, background-color .2s;
}
.btn::after { /* brilho de cima: volume sem pesar */
  content: ''; position: absolute; inset: 1px 1px 50% 1px; border-radius: 15px 15px 40% 40% / 15px 15px 12px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0)); pointer-events: none; z-index: -1;
}
@media (hover: hover) { .btn:hover { filter: brightness(1.04) saturate(1.04); transform: translateY(-1px); } }
.btn:active { transform: translateY(3px); filter: brightness(.98); transition-duration: .05s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; filter: grayscale(.2); }
.btn.big { min-height: 60px; font-size: 20px; padding: 16px 30px; border-radius: 18px; }
.btn.primary {
  background: linear-gradient(180deg, #ff6873 0%, #ec3a48 55%, #d92b3a 100%);
  box-shadow: 0 5px 0 #a11a29, 0 14px 28px -8px rgba(224,48,63,.6);
  text-shadow: 0 1px 0 rgba(120,10,25,.35);
}
.btn.primary:active { box-shadow: 0 2px 0 #a11a29, 0 6px 14px -6px rgba(224,48,63,.6); }
.btn.primary:focus-visible { box-shadow: 0 5px 0 #a11a29, var(--ring); }
.btn.ghost { background: linear-gradient(180deg, #f8f0e3, #efe4d2); color: var(--ink); box-shadow: 0 0 0 1px rgba(29,21,52,.07) inset, 0 4px 0 #d8c9b0; }
.btn.ghost:active { box-shadow: 0 0 0 1px rgba(29,21,52,.07) inset, 0 1px 0 #d8c9b0; }
.btn.whats { background: linear-gradient(180deg, #4ae486, #22c362); color: #053a1a; box-shadow: 0 5px 0 #138042, 0 14px 28px -10px rgba(34,195,98,.55); }
.btn.whats:active { box-shadow: 0 2px 0 #138042; }
.pulse { animation: uiBreath 2.2s ease-in-out infinite; }
@keyframes uiBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.pulse:hover, .pulse:active { animation: none; }
.link-btn { font-weight: 800; color: var(--red2); text-underline-offset: 3px; text-decoration-thickness: 1.5px; border-radius: 6px; padding: 4px 2px; }
.link-btn:hover { color: var(--red); }

/* ------------------------------- campos ------------------------------- */
label { font-size: 12px; letter-spacing: .08em; color: var(--ink-3); }
input, textarea {
  min-height: 52px; border: 1.5px solid #e6d9c4; border-radius: 14px; background: #fffdf9; font-size: 17px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8), inset 0 1px 2px rgba(29,21,52,.04);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input:hover, textarea:hover { border-color: #d9c7a8; }
input:focus, textarea:focus { border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(224,48,63,.13); }
input[readonly] { background: var(--paper-2); }
.chip { min-height: 34px; padding: 6px 13px; border-color: #e6d9c4; transition: border-color .15s, color .15s, background-color .15s, transform .1s; }
.chip:hover { background: #fff6f4; }
.chip:active { transform: scale(.96); }
.chip:focus-visible { box-shadow: var(--ring); }

/* ------------------------------- folhas ------------------------------- */
.overlay { background: rgba(5,6,22,.66); backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1); }
.overlay:not(.dark)::before { /* luz quente atrás da folha */
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 45%, rgba(255,170,90,.16), transparent 70%);
}
.sheet:not(.cz-on) {
  position: relative; width: min(440px, 100%); border-radius: 26px; padding: 30px 26px 26px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.9), rgba(255,255,255,0) 60%), var(--paper);
  box-shadow: var(--sh-sheet);
  animation: uiSheet .5s var(--ease-out) both;
}
@keyframes uiSheet { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.sheet h2 { font-size: 25px; line-height: 1.15; letter-spacing: -.01em; margin: 8px 0 10px; }
.sheet p { color: var(--ink-2); line-height: 1.5; }
.sheet > .btn + .btn { margin-top: 10px; }
.sheet-x { width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-3); transition: background-color .15s, transform .12s; }
.sheet-x:hover { background: var(--paper-3); }
.sheet-x:active { transform: scale(.92); }

/* arte do presente no lugar do emoji (mesma arte em toda a marca) */
.intro-gift, .result-icon {
  width: 84px; height: 84px; margin: 0 auto 6px; font-size: 0 !important; color: transparent;
  background: var(--gift-art) center / contain no-repeat;
  filter: drop-shadow(0 10px 16px rgba(224,48,63,.28));
  animation: uiGift 3.2s ease-in-out infinite; transform-origin: 50% 90%;
}
#quota .intro-gift { filter: drop-shadow(0 10px 16px rgba(47,166,90,.25)) hue-rotate(115deg) saturate(.9); }
@keyframes uiGift { 0%, 72%, 100% { transform: none; } 78% { transform: rotate(-7deg) translateY(-2px); } 84% { transform: rotate(6deg) translateY(-2px); } 90% { transform: rotate(-3deg); } }
.kicker { font-size: 12px !important; letter-spacing: .22em; }

/* ------------------------------ intro (Aceitar o desafio) ------------------------------ */
.big-name { font-size: clamp(34px, 9vw, 46px) !important; letter-spacing: -.02em; margin: 4px 0 10px !important; overflow-wrap: anywhere; }
.mission {
  background: #fff8ec; border: 1.5px dashed #e8cfa4; border-radius: 16px; padding: 13px 16px !important;
  font-size: 16px !important; color: var(--ink-2) !important; text-wrap: balance;
}
.mission strong { color: var(--ink); }
.villain { color: #6a44a3 !important; }
.how { gap: 8px; margin: 2px 0 20px; }
.how span {
  background: #fff; color: var(--ink); border: 1.5px solid #ebdfcc; box-shadow: 0 2px 0 #ebdfcc;
  font-weight: 800; font-size: 13.5px; padding: 8px 13px; border-radius: 12px;
}
.sheet.intro .btn.big { width: 100%; }
.sound-hint { font-size: 13px !important; color: var(--ink-4) !important; }

/* ------------------------------ derrota / sumiu ------------------------------ */
.lose-emoji { font-size: 56px; line-height: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.18)); animation: uiShake 2.4s ease-in-out infinite; }
@keyframes uiShake { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(-10deg) scale(1.06); } 82% { transform: rotate(9deg) scale(1.06); } 89% { transform: rotate(-4deg); } }
#loseTitle { font-size: 27px; }
#loseLine { font-family: var(--hand); font-weight: 700; font-size: 27px !important; line-height: 1.15 !important; color: #6a4a2a !important; margin: 0 0 20px !important; }
#lose .btn, #missing .btn { width: 100%; }

/* ------------------------------ resultado (Presente embrulhado!) ------------------------------ */
.result { padding: 34px 24px 26px; overflow: hidden; }
.result::before { /* raios suaves atrás do presente */
  content: ''; position: absolute; left: 50%; top: 80px; width: 380px; height: 380px; margin: -190px 0 0 -190px;
  background: repeating-conic-gradient(from 0deg, rgba(255,190,70,.22) 0 9deg, transparent 9deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%);
  animation: uiSpin 40s linear infinite; pointer-events: none;
}
@keyframes uiSpin { to { transform: rotate(360deg); } }
.result > * { position: relative; }
.result-icon { width: 92px; height: 92px; }
.result h2 { font-size: 28px; letter-spacing: -.01em; margin: 6px 0 6px; }
.result p { color: var(--ink-2); }
#link {
  text-align: center; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--paper-2); border-style: dashed; text-overflow: ellipsis;
}
.result .actions { margin-top: 14px; }
.result #btnWhats { order: -1; } /* a ação principal vem primeiro */
.tip { color: var(--ink-3) !important; font-size: 14px !important; background: #fff8ec; border-radius: 12px; padding: 10px 12px; }

/* ------------------------------ login / cota ------------------------------ */
.login-sheet form { gap: 12px; }
.login-sheet input { font-weight: 700; }
.login-sheet input.code { font-size: 30px; letter-spacing: .36em; padding-left: .5em; min-height: 64px; }
.btn.google { background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px #e6d9c4 inset, 0 4px 0 #e2d3bb; font-family: var(--body); font-weight: 800; font-size: 16px; }
.btn.google:active { box-shadow: 0 0 0 1.5px #e6d9c4 inset, 0 1px 0 #e2d3bb; }
.btn.google .g { width: 24px; height: 24px; font-size: 14px; }
.or { margin: 16px 0; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; }
.err:empty { display: none; }
.err { background: #fff0f0; border-radius: 10px; padding: 8px 12px; }
.legal-note { margin-top: 14px !important; }

/* ------------------------------ conta + meus presentes ------------------------------ */
.account { gap: 8px; margin: 0 0 8px; }
.acc-hi { color: #dfe4ff; }
.acc-btn { min-height: 34px; padding: 7px 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .15s, transform .1s; }
.acc-btn:active { transform: scale(.96); }
.mine { padding: 26px 22px 20px; }
.mine h2 { font-size: 25px; }
.gift-list { gap: 12px; }
.gift-item {
  border: 1.5px solid #ebdfcc; border-radius: 18px; padding: 14px 16px; background: #fffdf9;
  box-shadow: 0 1px 0 #fff inset, 0 6px 16px -10px rgba(40,20,60,.35);
  transition: transform .15s var(--ease-out), box-shadow .15s;
}
@media (hover: hover) { .gift-item:hover { transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 12px 24px -12px rgba(40,20,60,.4); } }
.gift-to { font-size: 18px; }
.gift-when { color: var(--ink-4); font-weight: 700; }
.gift-status { margin-top: 8px; font-size: 13px; padding: 5px 11px; border: 1px solid rgba(0,0,0,.05); }
.gift-facts { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.gift-acts { gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #ebdfcc; }
.chip.danger:hover { border-color: var(--red); background: #fff0f0; }
.mine-foot a, .mine-foot .link-btn { text-underline-offset: 3px; }

/* ------------------------------ criador ------------------------------ */
.panel { border-radius: 26px; box-shadow: var(--sh-sheet); }
.step { padding: 22px 0 24px; }
.step-head { gap: 12px; margin-bottom: 14px; }
.step-head h2 { font-size: 21px; letter-spacing: -.005em; }
.n { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; box-shadow: 0 3px 0 var(--red2), 0 6px 12px -4px rgba(224,48,63,.5); }
.hint { color: var(--ink-3); line-height: 1.45; }
.choice { border-width: 1.5px; border-color: #e6d9c4; background: #fffdf9; transition: transform .15s var(--ease-out), border-color .15s, box-shadow .15s, background-color .15s; }
@media (hover: hover) { .choice:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(40,20,60,.35); } }
.choice:active { transform: translateY(1px); }
.choice:focus-visible { box-shadow: var(--ring); }
.choice[aria-pressed="true"] { border-color: var(--red); background: #fff4f1; box-shadow: 0 0 0 1px var(--red) inset, 0 3px 0 var(--red2); }
.choice[aria-pressed="true"]::after { box-shadow: 0 2px 6px rgba(224,48,63,.4); }
.seg { background: var(--paper-3); }
.seg button { transition: background-color .15s, color .15s, box-shadow .15s; }
.seg button:focus-visible { box-shadow: var(--ring); }
.hero .btn.big { box-shadow: 0 5px 0 #a11a29, 0 18px 40px -10px rgba(224,48,63,.7); }
.brand { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.foot { color: #6f7bb0; padding: 8px 0 4px; }

/* ------------------------------ jogo ------------------------------ */
.mute { transition: background-color .15s, transform .1s; }
.mute:active { transform: scale(.92); }
.preview-bar { box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.4) inset; }

/* ------------------------------ página de privacidade ------------------------------ */
.legal { max-width: 720px !important; }
.legal h1 { letter-spacing: -.02em; }
.legal .panel { padding: 28px 26px 30px !important; font-size: 16.5px !important; line-height: 1.65 !important; color: var(--ink-2); }
.legal .panel h2 { color: var(--ink); padding-top: 18px; border-top: 1px dashed #ebdfcc; margin-top: 22px !important; }
.legal li::marker { color: var(--red); }
.legal a { text-underline-offset: 3px; }

@media (max-width: 400px) {
  .sheet:not(.cz-on) { padding: 28px 20px 22px; border-radius: 24px; }
  .panel { padding-left: 18px; padding-right: 18px; }
  .btn.big { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse, .intro-gift, .result-icon, .lose-emoji, .result::before { animation: none !important; }
  .sheet:not(.cz-on) { animation-duration: .01s; }
  .btn, .choice, .gift-item { transition: none; }
}
.turnstile:empty { display: none; }
.legal a.brand { color: var(--gold) !important; }
.legal .panel h2 { line-height: 1.25; }

/* ================================ idiomas (js/i18n.js) ================================ */
.brand-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lang-sel {
  display: inline-flex; align-items: center; gap: 1px; padding: 3px; border-radius: 999px;
  font-family: var(--body); font-weight: 900; font-size: 12px; letter-spacing: .08em;
  background: var(--paper-3); color: var(--ink-3);
}
.lang-sel button {
  border: 0; margin: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit;
  padding: 6px 9px; min-width: 34px; border-radius: 999px; cursor: pointer; transition: background-color .15s, color .15s;
}
.lang-sel button:hover { color: var(--ink); }
.lang-sel button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.lang-sel button:focus-visible { outline: none; box-shadow: var(--ring); }
.lang-dot { opacity: .45; font-weight: 700; }
.lang-sel.on-dark { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(238,242,255,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lang-sel.on-dark button:hover { color: #fff; }
.lang-sel.on-dark button[aria-pressed="true"] { background: #eef2ff; color: #07071a; box-shadow: 0 0 14px -2px rgba(43,196,255,.55); }
.lang-sel.on-dark button:focus-visible { box-shadow: var(--ring-dark); }
/* tela de entrada de quem recebe: discreto, no canto */
.intro-lang { position: absolute; top: 12px; right: 12px; }
.intro-lang .lang-sel { font-size: 11px; }
.intro-lang .lang-sel button { padding: 5px 7px; min-width: 30px; }
/* criador: idioma do presente */
.gift-lang-row { margin: 2px 0 4px; }
.gift-lang-row .seg button { padding: 7px 11px; }
.gift-lang-hint { margin: 4px 0 12px; font-size: 13px; }

/* ================================ marca ifGifts ================================
   Logo neon (docs/marca/README.md): símbolo pequeno img/icons/mark.svg (= img/brand/logo-mark-small-flat.svg)
   + nome img/brand/wordmark-flat.svg. Mesmo par em todo cabeçalho/rodapé: landing, painel, preços, criador,
   privacidade, termos, erro. Brilho só por CSS (drop-shadow), o SVG fica nítido em qualquer tamanho. */
.ifg-mark, .ifg-wm { display: block; width: auto; flex: none; }
.lp-logo img.ifg-mark, .wz-brand img.ifg-mark { width: auto; height: 30px; border-radius: 0; box-shadow: none; }
.lp-logo img.ifg-wm { width: auto; height: 27px; border-radius: 0; box-shadow: none; margin-top: 3px; }
.lp-logo { gap: 8px; }
.lp-logo img { filter: drop-shadow(0 0 8px rgba(155, 92, 250, .38)); }
.lp-foot .lp-logo img.ifg-mark { height: 26px; }
.lp-foot .lp-logo img.ifg-wm { height: 23px; }
.wz-brand img.ifg-mark { height: 26px; }
.wz-brand img.ifg-wm { width: auto; height: 22px; border-radius: 0; margin-top: 2px; }
@media (max-width: 420px) { .wz-brand img.ifg-wm { display: none; } }
.brand .brand-mark { width: auto; height: 24px; display: block; filter: drop-shadow(0 0 6px rgba(155, 92, 250, .4)); }
.brand .ifg-wm { height: 20px; margin-top: 2px; }
.brand { gap: 8px; }

/* "Reconectando…" (servidor trocando de versão): pílula fixa no topo, acima de tudo */
.reconnect { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 1000;
  background: #1b1446; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35); max-width: calc(100% - 32px); text-align: center; }

/* ================================ Instagram no rodapé (todas as páginas) ================================ */
.ig-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 800; text-decoration: none; border-radius: 8px; }
.ig-link svg { flex: none; }
.ig-link:hover { text-decoration: underline; text-underline-offset: 3px; }
