:root {
  --fundo1: #06122b; --fundo2: #0d2a1f;
  --vidro: rgba(255, 255, 255, .07); --borda: rgba(255, 255, 255, .14);
  --texto: #f3f6ff; --suave: rgba(235, 240, 255, .7);
  --ouro: #f0c75e; --ouro2: #c99a2e; --verm: #d7263d; --verde: #25d366;
  --raio: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Nunito', system-ui, sans-serif; color: var(--texto);
  background: radial-gradient(1200px 700px at 80% -10%, #1d3f7a 0%, transparent 60%),
              radial-gradient(900px 600px at 0% 110%, #134d33 0%, transparent 60%),
              linear-gradient(160deg, var(--fundo1), var(--fundo2));
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }

/* neve de fundo (CSS puro) */
.bg-snow, .bg-snow::after {
  position: fixed; inset: -20px; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(3px 3px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 200px 150px, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 60px 200px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 260px 40px, rgba(255,255,255,.7) 50%, transparent 51%);
  background-size: 300px 240px; opacity: .35; animation: nevar 14s linear infinite;
}
.bg-snow::after { content: ''; background-size: 200px 180px; animation-duration: 9s; opacity: .6; }
@keyframes nevar { to { background-position: 40px 240px; } }

#editor { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 18px 18px 90px; }
.topo { text-align: center; padding: 10px 0 18px; }
.logo { font-size: 30px; }
.logo span { font-family: 'Great Vibes', cursive; font-size: 54px; color: var(--ouro);
  text-shadow: 0 2px 18px rgba(240,199,94,.35); vertical-align: middle; }
.slogan { margin: 4px 0 0; color: var(--suave); font-size: 17px; }

.grade { display: grid; grid-template-columns: 400px 1fr; gap: 26px; align-items: start; }
.previa { position: sticky; top: 16px; text-align: center; }
.celular {
  position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 9/16;
  border-radius: 34px; padding: 10px; background: linear-gradient(145deg, #2a2f3d, #0c0f16);
  box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.08);
}
.celular canvas { width: 100%; height: 100%; border-radius: 26px; display: block; background: #000; }
.btn-play {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; white-space: nowrap;
  background: rgba(255,255,255,.92); color: #0b1d3a; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .15s;
}
.btn-play:hover { transform: translateX(-50%) scale(1.04); }
.dica { color: var(--suave); font-size: 13px; margin: 10px 0 0; }

.painel { display: flex; flex-direction: column; gap: 18px; }
.passo { background: var(--vidro); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px 18px 20px; backdrop-filter: blur(6px); }
.passo h2 { margin: 0 0 14px; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  background: linear-gradient(145deg, var(--ouro), var(--ouro2)); color: #2a1a00; font-weight: 800; }

.temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.tema { position: relative; border: 2px solid transparent; border-radius: 14px; padding: 0; overflow: hidden; cursor: pointer;
  background: #000; aspect-ratio: 9/16; transition: transform .15s, border-color .15s; }
.tema:hover { transform: translateY(-2px); }
.tema.ativo { border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(240,199,94,.3); }
.tema canvas { width: 100%; height: 100%; display: block; }
.tema .nome { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 5px; font-size: 11.5px; font-weight: 800;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }
.tema .selo { position: absolute; top: 5px; right: 5px; background: var(--ouro); color: #2a1a00; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 2px 6px; }

.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 600; font-size: 14.5px; }
.campo small, .rotulo-linha small { font-weight: 400; color: var(--suave); }
.rotulo-linha { display: flex; justify-content: space-between; align-items: baseline; }
input, select, textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--borda); background: rgba(0,0,0,.28); color: var(--texto);
  padding: 11px 12px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
select option { color: #111; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(240,199,94,.2); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.chip { border: 1px solid var(--borda); background: rgba(255,255,255,.06); color: var(--texto); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13.5px; }
.chip:hover { background: rgba(240,199,94,.18); border-color: var(--ouro); }
.foto-linha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foto-linha img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ouro); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 16px; cursor: pointer; font-weight: 700; text-decoration: none; }
.btn.sec { background: rgba(255,255,255,.12); color: var(--texto); border: 1px solid var(--borda); }
.btn.sec:hover { background: rgba(255,255,255,.2); }
.btn.link { background: none; color: var(--suave); text-decoration: underline; padding: 4px; }
.btn.ouro { background: linear-gradient(145deg, #ffe08a, var(--ouro2)); color: #2a1a00; box-shadow: 0 6px 18px rgba(201,154,46,.35); }
.btn.verde { background: var(--verde); color: #04310f; }
.btn.cheio { width: 100%; padding: 14px; font-size: 16px; }

.musicas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.musica { display: flex; align-items: center; gap: 10px; border: 1px solid var(--borda); background: rgba(0,0,0,.2); border-radius: 12px; padding: 9px 10px; cursor: pointer; color: var(--texto); text-align: left; }
.musica.ativo { border-color: var(--ouro); background: rgba(240,199,94,.14); }
.musica .tocar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 13px; }
.musica.tocando .tocar { background: var(--ouro); color: #2a1a00; }
.musica span.n { font-size: 14px; font-weight: 600; line-height: 1.2; }
.upload-musica { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.upload-musica small { color: var(--suave); flex: 1 1 200px; }

.enviar .btn.grande { width: 100%; justify-content: flex-start; text-align: left; padding: 14px 16px; margin-bottom: 10px; border-radius: 16px; gap: 14px; color: #fff; transition: transform .12s, filter .12s; }
.enviar .btn.grande:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.grande .ico { font-size: 28px; }
.btn.grande b { display: block; font-size: 17px; }
.btn.grande small { display: block; font-weight: 400; opacity: .9; font-size: 13.5px; }
.btn.whats { background: linear-gradient(135deg, #25d366, #128c7e); }
.btn.video { background: linear-gradient(135deg, #e0313f, #8e1020); }
.btn.img { background: linear-gradient(135deg, #3a4a7a, #1d2850); }
.aviso { font-size: 13.5px; color: #ffe39a; margin: 4px 2px 0; }

.premium-box { display: flex; align-items: center; gap: 14px; border-radius: var(--raio); padding: 16px 18px;
  background: linear-gradient(135deg, rgba(240,199,94,.18), rgba(120,80,10,.25)); border: 1px solid rgba(240,199,94,.45); }
.premium-box p { margin: 3px 0 0; font-size: 13.5px; color: var(--suave); }
.premium-box .coroa { font-size: 34px; }
.premium-box .btn { margin-left: auto; white-space: nowrap; }
.premium-box.ativo { background: linear-gradient(135deg, rgba(37,211,102,.16), rgba(10,80,40,.25)); border-color: rgba(37,211,102,.5); }

.rodape { text-align: center; color: var(--suave); font-size: 13px; padding: 28px 0 0; }
.barra-celular { display: none; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(2,6,18,.72); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.modal-caixa { position: relative; width: min(460px, 100%); max-height: 92vh; overflow-y: auto; overflow-x: hidden; border-radius: 22px; padding: 24px 22px 22px;
  background: linear-gradient(170deg, #142b55, #0b1a36); border: 1px solid var(--borda); box-shadow: 0 30px 80px rgba(0,0,0,.6); text-align: center; }
.modal-caixa h3 { margin: 0 0 8px; font-size: 22px; }
.modal-caixa p { color: var(--suave); margin: 6px 0 14px; line-height: 1.45; }
.modal-caixa .btn { margin: 5px 0; }
.fechar { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: var(--suave); font-size: 30px; cursor: pointer; line-height: 1; }
.barra { height: 12px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin: 16px 0 8px; }
.barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ouro), #fff2c0); border-radius: 999px; transition: width .2s; }
.modal video { width: 100%; max-height: 52vh; border-radius: 14px; background: #000; margin: 6px 0 10px; }
.qr { background: #fff; border-radius: 14px; padding: 10px; width: 220px; margin: 8px auto; }
.qr img, .qr svg { width: 100%; height: auto; display: block; }
.copia { font-size: 11.5px; word-break: break-all; background: rgba(0,0,0,.3); border-radius: 10px; padding: 8px; color: var(--suave); text-align: left; max-height: 70px; overflow: auto; }
.lista-premium { text-align: left; margin: 0 auto 12px; padding-left: 20px; color: var(--texto); line-height: 1.7; }
.linha-codigo { display: flex; gap: 8px; margin-top: 8px; }
.linha-codigo input { text-transform: uppercase; }
.preco { font-size: 40px; font-weight: 800; color: var(--ouro); margin: 4px 0; }
.preco small { font-size: 14px; color: var(--suave); font-weight: 400; display: block; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 60; background: #fff; color: #0b1d3a;
  padding: 11px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 90vw; text-align: center; }

/* ---------- quem recebe ---------- */
#visualizador { position: fixed; inset: 0; z-index: 5; background: #000; display: grid; place-items: center; overflow: hidden; }
#cv-ver { display: block; height: 100%; max-width: 100%; aspect-ratio: 9/16; object-fit: contain; }
.envelope-tela { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px;
  background: radial-gradient(800px 600px at 50% 40%, #1b3a78, #050b1e 70%); transition: opacity .9s ease; text-align: center; }
.envelope-tela.saindo { opacity: 0; pointer-events: none; }
.env-topo { word-spacing: 8px; font-family: 'Great Vibes', cursive; font-size: clamp(34px, 9vw, 52px); color: var(--ouro); margin: 0; text-shadow: 0 2px 20px rgba(240,199,94,.4); }
.env-de { margin: 0; font-size: 19px; color: var(--texto); }
.env-toque { margin: 0; color: var(--suave); animation: pulsar 1.6s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .45; } }
.envelope { position: relative; width: min(78vw, 330px); aspect-ratio: 3/2; border: 0; padding: 0; background: none; cursor: pointer; perspective: 900px;
  animation: flutuar 3s ease-in-out infinite; }
@keyframes flutuar { 50% { transform: translateY(-10px) rotate(-1deg); } }
.envelope span { position: absolute; display: block; }
.env-fundo { inset: 0; background: #8e1020; border-radius: 10px; box-shadow: 0 25px 50px rgba(0,0,0,.5); }
.env-carta { z-index: 1; left: 7%; right: 7%; top: 8%; height: 84%; background: linear-gradient(#fffaf0, #f3e7cf); border-radius: 6px; color: #8e1020;
  font-family: 'Great Vibes', cursive; font-size: clamp(30px, 8vw, 42px); line-height: 1; display: grid !important; place-items: center; transition: transform 1s cubic-bezier(.2,.8,.2,1) .35s; }
.env-frente { inset: 0; border-radius: 10px; z-index: 2; background: linear-gradient(160deg, #c41e33, #9c1226); clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); box-shadow: inset 0 -20px 40px rgba(0,0,0,.2); }
.env-aba { left: 0; right: 0; top: 0; height: 58%; transform-origin: top; transition: transform .6s ease; z-index: 3;
  background: linear-gradient(to bottom, #c41e33, #a3142a); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env-selo { left: 50%; top: 46%; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; z-index: 4; display: grid !important; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 35% 30%, #ffe9a6, #d19c2b 60%, #8a5d0d); box-shadow: 0 4px 12px rgba(0,0,0,.45); transition: opacity .3s; }
.envelope.aberto { animation: none; }
.envelope.aberto .env-aba { transform: rotateX(180deg); z-index: 0; }
.envelope.aberto .env-selo { opacity: 0; }
.envelope.aberto .env-carta { transform: translateY(-62%); }

.ver-barra { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); padding: 7px; border-radius: 999px; backdrop-filter: blur(8px); animation: surgir .8s ease both 1.5s; }
@keyframes surgir { from { opacity: 0; transform: translate(-50%, 20px); } }
.ver-barra button, .ver-barra a { border: 0; border-radius: 999px; height: 42px; min-width: 42px; padding: 0 14px; cursor: pointer; font-weight: 800; font-size: 15px;
  background: rgba(255,255,255,.14); color: #fff; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.ver-barra .ver-criar { background: linear-gradient(145deg, #ffe08a, var(--ouro2)); color: #2a1a00; }
.ver-barra .ver-agradecer { background: var(--verde); color: #04310f; }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .grade { grid-template-columns: 1fr; }
  .previa { position: static; }
  .celular { max-width: 300px; }
  .logo span { font-size: 44px; }
  .slogan { font-size: 15px; }
  .musicas { grid-template-columns: 1fr; }
  .premium-box { flex-wrap: wrap; }
  .premium-box .btn { margin-left: 0; width: 100%; }
  .ver-barra { gap: 5px; padding: 5px; }
  .ver-barra button, .ver-barra a { padding: 0 11px; font-size: 13.5px; height: 40px; min-width: 40px; }
}
@media (max-width: 380px) { .duas { grid-template-columns: 1fr; } }

/* ---------- seletor de idioma ---------- */
.topo { position: relative; }
.idiomas { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--borda); margin-bottom: 8px; }
.idiomas button { border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; background: none; color: var(--suave); font-weight: 800; font-size: 13.5px; }
.idiomas button.ativo { background: linear-gradient(145deg, #ffe08a, var(--ouro2)); color: #2a1a00; }
@media (min-width: 861px) { .idiomas { position: absolute; top: 6px; right: 0; margin: 0; } }

/* ---------- painel de compartilhamento ---------- */
.btn.whats-grande { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; font-size: 18px; padding: 16px; border-radius: 16px; box-shadow: 0 8px 22px rgba(37,211,102,.3); }
.sub-redes { margin: 16px 0 8px !important; font-size: 14px; }
.redes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; margin-bottom: 10px; }
.rede { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--texto); font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; padding: 0; }
.rede .bola { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: rgba(255,255,255,.14); transition: transform .12s; }
.rede:hover .bola, .rede:active .bola { transform: scale(1.08); }
.rede.more .bola { background: linear-gradient(145deg, #ffe08a, var(--ouro2)); }
.rede.tg .bola { background: #2aabee; }
.rede.fb .bola { background: #1877f2; font-family: Arial, sans-serif; font-size: 28px; }
.rede.x .bola { background: #000; border: 1px solid rgba(255,255,255,.25); }
.rede.ig .bola { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.rede.mail .bola { background: #5b6b8c; }
.rede.sms .bola { background: #34c759; }
.rede.copy .bola { background: #3a4a7a; }

/* ---------- celular: tudo organizado ---------- */
@media (max-width: 860px) {
  #editor { padding: 10px 12px 96px; overflow-x: hidden; }
  .grade > *, .passo { min-width: 0; }
  .topo { padding: 4px 0 12px; }
  .celular { max-width: min(270px, 68vw); border-radius: 28px; padding: 8px; }
  .celular canvas { border-radius: 22px; }
  .btn-play { bottom: 16px; padding: 9px 14px; font-size: 14px; }
  .passo { padding: 14px 14px 16px; }
  .passo h2 { font-size: 17px; }
  /* modelos em carrossel deslizante */
  .temas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 6px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; }
  .temas::-webkit-scrollbar { display: none; }
  .tema { flex: 0 0 88px; scroll-snap-align: start; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .enviar .btn.grande { padding: 12px 14px; }
  /* barra fixa embaixo: prévia + enviar */
  .barra-celular { display: flex; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; }
  .barra-celular button { border: 0; border-radius: 16px; padding: 15px 12px; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
  .bc-previa { flex: 0 0 auto; background: rgba(255,255,255,.95); color: #0b1d3a; }
  .bc-enviar { flex: 1; color: #fff; background: linear-gradient(135deg, #25d366, #128c7e); }
  /* janelas sobem de baixo, como no WhatsApp */
  .modal { place-items: end center; padding: 0; }
  .modal-caixa { width: 100%; max-height: 90vh; border-radius: 22px 22px 0 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); animation: subir .25s ease; }
  @keyframes subir { from { transform: translateY(40px); opacity: .4; } }
  .toast { bottom: 96px; }
}
/* botão flutuante para parar a música */
.fab-som { position: fixed; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60; border: 0; border-radius: 999px; padding: 11px 16px; font: 800 14px "Nunito", sans-serif; color: #2a1800; background: linear-gradient(180deg, #ffe08a, #f0b93a); box-shadow: 0 6px 18px rgba(0,0,0,.45); cursor: pointer; }
.fab-som.mudo { color: #fff; background: rgba(20,30,50,.88); border: 1px solid rgba(255,255,255,.35); }
.fab-som:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 900px) { .fab-som { bottom: 24px; right: 24px; } }
#visualizador ~ .fab-som { }

/* =================================================================
   v2 — identidade natalina brasileira: verde profundo, papel, luz quente
   ================================================================= */
:root { --verde-fundo: #0c2a1e; --verde-2: #12382a; --papel: #fbf3e2; --luz: #ffcf7a; }
body {
  background:
    radial-gradient(700px 420px at 50% -8%, rgba(255,190,90,.22), transparent 70%),
    radial-gradient(900px 600px at 100% 110%, rgba(120,20,30,.28), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, var(--verde-2), var(--verde-fundo) 55%, #08201a);
  background-attachment: fixed;
}
body.sem-rolagem { overflow: hidden; }
:focus-visible { outline: 3px solid var(--luz); outline-offset: 2px; }

/* ---------- primeira tela ---------- */
#inicio { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 14px 18px 40px; text-align: center; }
#inicio .idiomas { margin: 0 auto 6px; }
.ini-logo { font-size: 22px; }
.ini-logo span { font-family: 'Great Vibes', cursive; font-size: 40px; color: var(--ouro); }
.ini-titulo { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(26px, 7.4vw, 38px); line-height: 1.15; margin: 6px 0 8px; color: var(--papel); text-wrap: balance; }
.ini-sub { margin: 0 auto 14px; color: rgba(251,243,226,.82); font-size: 16px; line-height: 1.45; max-width: 420px; }
.ini-exemplo { position: relative; display: block; margin: 0 auto 16px; width: min(62vw, 240px); aspect-ratio: 9/16; padding: 0; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 18px 50px rgba(0,0,0,.55), 0 0 60px rgba(255,190,90,.18); transform: rotate(-1.5deg); transition: transform .2s; }
.ini-exemplo:hover { transform: rotate(0) scale(1.02); }
.ini-exemplo canvas { width: 100%; height: 100%; display: block; }
.ini-toque { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; background: rgba(255,255,255,.94); color: #1a2a20; font-weight: 800; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.ini-ctas { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.grande-cta { font-size: 18px !important; padding: 16px !important; border-radius: 16px !important; max-width: 420px; }
.ini-como { list-style: none; counter-reset: c; padding: 0; margin: 18px auto 8px; display: grid; gap: 8px; max-width: 380px; text-align: left; }
.ini-como li { counter-increment: c; display: flex; gap: 10px; align-items: center; background: rgba(251,243,226,.06); border: 1px solid rgba(251,243,226,.12); border-radius: 14px; padding: 9px 12px; font-weight: 600; }
.ini-como li::before { content: counter(c); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ouro); color: #2a1a00; font-weight: 800; font-size: 14px; }
.ini-trust { color: rgba(251,243,226,.7); font-size: 13.5px; margin: 8px 0 0; }

/* ---------- editor: topo com etapas ---------- */
#editor { padding-bottom: 110px; }
.ed-topo { display: flex; align-items: center; gap: 8px; padding: 6px 0 12px; position: sticky; top: 0; z-index: 15; background: linear-gradient(var(--verde-2) 75%, transparent); }
.ed-home { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--borda); background: rgba(255,255,255,.06); font-size: 20px; cursor: pointer; }
.etapas { flex: 1; display: flex; gap: 4px; min-width: 0; }
.etapas button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--borda); background: rgba(255,255,255,.05); color: var(--suave); border-radius: 12px; padding: 8px 4px; font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etapas i { font-style: normal; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 12px; }
.etapas button.ativo { color: #2a1a00; background: linear-gradient(145deg, #ffe08a, var(--ouro2)); border-color: transparent; }
.etapas button.ativo i { background: rgba(0,0,0,.15); }
.etapas button.feito i { background: var(--verde); color: #04310f; }
.idiomas.mini { margin: 0; flex: none; }
.idiomas.mini button { padding: 5px 8px; font-size: 12px; }
.passo h2 { font-family: 'Playfair Display', serif; font-size: 22px; }
.passo h2.sub { margin-top: 18px; font-size: 18px; }
.dica-passo { margin: -8px 0 12px; color: var(--suave); font-size: 14px; }
.tema .selo { font-size: 9.5px; }

/* ajuda para escrever */
.ajuda { background: rgba(251,243,226,.05); border: 1px dashed rgba(251,243,226,.22); border-radius: 16px; padding: 12px; margin-bottom: 14px; }
.q { margin: 10px 0 6px; font-weight: 800; font-size: 15px; color: var(--papel); }
.ajuda .q:first-child { margin-top: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--borda); background: rgba(255,255,255,.06); color: var(--texto); border-radius: 999px; padding: 8px 12px; cursor: pointer; font-size: 14px; font-weight: 700; min-height: 40px; }
.pill.ativo { background: var(--papel); color: #1c2b22; border-color: var(--papel); }
.ajuda .campo { margin: 10px 0 0; }
.sugestoes { display: grid; gap: 8px; }
.sug { background: var(--papel); color: #2b2418; border-radius: 14px; padding: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.sug p { margin: 0 0 8px; font-family: 'Lora', serif; font-size: 15px; line-height: 1.5; }
.sug .btn.sec { background: #1c3b2c; color: #fff; border: 0; padding: 8px 12px; }
.aviso-retribuir { background: rgba(255,207,122,.16); border: 1px solid rgba(255,207,122,.45); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-weight: 700; }
#contador.limite { color: #ffb86b; font-weight: 800; }
details.mais { border-top: 1px solid var(--borda); margin-top: 6px; padding-top: 10px; }
details.mais summary { cursor: pointer; font-weight: 800; color: var(--suave); padding: 6px 0 10px; }

/* compartilhar: 3 saídas */
.onde { background: rgba(255,207,122,.12); border: 1px solid rgba(255,207,122,.35); border-radius: 12px; padding: 4px 12px; margin-bottom: 12px; font-size: 14px; }
.onde p { margin: 8px 0; }
.saida { border: 1px solid var(--borda); background: rgba(0,0,0,.18); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.saida-cab { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.saida-cab b { font-size: 18px; }
.tag { align-self: flex-start; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #2a1a00; background: var(--ouro); padding: 2px 8px; border-radius: 999px; }
.saida-corpo { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.saida-corpo p { margin: 0; color: var(--suave); font-size: 14px; line-height: 1.45; }
.mini-916 { flex: none; width: 54px; height: 96px; border-radius: 8px; background: #000; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.mini-env { flex: none; width: 72px; height: 50px; margin-bottom: 14px; border-radius: 6px; background: linear-gradient(160deg, #c41e33, #8e1020); display: grid; place-items: center; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.mini-env span { font-size: 22px; }
.mini-env small { position: absolute; bottom: -18px; left: -10px; right: -10px; text-align: center; font-size: 11px; color: var(--papel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-dica { font-size: 13px !important; color: var(--suave); margin: 6px 2px 8px !important; }
.linha-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.linha-btns .btn { flex: 1 1 130px; }
.btn.video-btn { background: linear-gradient(135deg, #e0313f, #8e1020); color: #fff; }
#btn-recuperar { display: block; margin: 8px auto 0; }

/* barra do polegar */
.barra-polegar { display: flex; gap: 8px; position: fixed; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 20px)); bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; }
.barra-polegar button { border: 0; border-radius: 16px; padding: 15px 12px; font-size: 15.5px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.bp-ver { flex: 1 1 52%; background: var(--papel); color: #1c2b22; }
.bp-prox { flex: 1 1 48%; background: linear-gradient(145deg, #ffe08a, var(--ouro2)); color: #2a1a00; }
.bp-prox.whats { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; }
.barra-celular { display: none !important; }

/* prévia como vai chegar */
#previa-tela { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; flex-direction: column; }
.previa-faixa { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--verde-2); color: var(--papel); font-weight: 800; font-size: 14px; }
.previa-faixa .btn { padding: 9px 12px; white-space: nowrap; }
#previa-frame { flex: 1; width: 100%; border: 0; background: #000; }

/* premium */
.validade { color: var(--texto) !important; font-size: 15px; }
.comparar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.comparar figure { margin: 0; text-align: center; }
.comparar canvas { width: 100%; height: auto; aspect-ratio: 9/16; border-radius: 10px; background: #000; display: block; }
.comparar figcaption { font-size: 13px; font-weight: 800; margin-top: 6px; line-height: 1.25; }
.comparar figcaption small { font-weight: 400; color: var(--suave); }
.comparar .prem canvas { box-shadow: 0 0 0 2px var(--ouro); }
.selo-teste { background: repeating-linear-gradient(45deg, #ffe08a, #ffe08a 10px, #ffd04d 10px, #ffd04d 20px); color: #2a1a00 !important; font-weight: 800; text-align: center; border-radius: 10px; padding: 8px; }
.sim { display: grid; gap: 6px; margin-top: 8px; border: 2px dashed #ffd04d; border-radius: 12px; padding: 8px; }
.info-video { color: var(--texto) !important; font-weight: 700; }
.girando { display: inline-block; animation: girar 2s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- quem recebe ---------- */
.env-para { left: 0; right: 0; bottom: -34px; text-align: center; color: var(--papel); font: 700 17px 'Nunito', sans-serif; z-index: 5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.envelope.aberto .env-para { opacity: 0; }
.ver-topo { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 10px; display: flex; gap: 6px; z-index: 8; }
.ver-topo button { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; height: 40px; min-width: 40px; padding: 0 12px; background: rgba(10,20,15,.7); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; backdrop-filter: blur(4px); }
.ver-topo button.ativo { background: var(--papel); color: #1c2b22; }
.ver-fim { position: absolute; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(380px, calc(100% - 24px)); display: grid; gap: 2px; text-align: center; z-index: 8;
  background: rgba(8,24,18,.88); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 10px 12px; backdrop-filter: blur(6px); animation: surgir2 .5s ease; }
@keyframes surgir2 { from { opacity: 0; transform: translate(-50%, 16px); } }
.ver-fim .btn { margin: 4px 0 0; padding: 12px; font-size: 15.5px; }
.ver-fim small { color: var(--suave); font-size: 12px; }
.ver-texto { position: absolute; inset: 0; z-index: 12; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; }
.vt-caixa { width: min(460px, 100%); max-height: 88vh; overflow: auto; background: var(--papel); color: #2b2418; border-radius: 18px; padding: 20px; font-family: 'Lora', serif; font-size: 18px; line-height: 1.6; }
.vt-caixa h3 { margin: 0 0 8px; font-family: 'Nunito', sans-serif; }
.vt-ti { font-family: 'Great Vibes', cursive; font-size: 34px; color: #8a5a10; margin: 0; }
.vt-ass { text-align: right; }
body.modo-ver .fab-som { top: calc(60px + env(safe-area-inset-top)); bottom: auto; right: 10px; }
body.reduz .envelope, body.reduz .env-toque, body.reduz .bg-snow, body.reduz .bg-snow::after { animation: none !important; }
body.reduz .env-aba, body.reduz .env-carta, body.reduz .envelope-tela { transition-duration: .05s !important; }
@media (prefers-reduced-motion: reduce) { .ini-exemplo, .girando { transition: none; animation: none; } }

/* ---------- celular (desenhado para 360 px) ---------- */
@media (max-width: 860px) {
  #editor { padding: 0 10px 110px; }
  .previa { display: flex; justify-content: center; }
  .celular { width: 42vw; max-width: 190px; padding: 5px; border-radius: 20px; }
  .celular canvas { border-radius: 16px; }
  .btn-play { font-size: 12px; padding: 7px 10px; bottom: 10px; white-space: nowrap; }
  body[data-passo="1"] .previa { display: none; }
  .passo h2 { font-size: 20px; }
  .tema { flex: 0 0 92px; }
}
@media (max-width: 400px) {
  .etapas button span { font-size: 12.5px; }
  .etapas button { gap: 4px; padding: 8px 2px; }
  .idiomas.mini button { padding: 5px 6px; }
  .barra-polegar button { font-size: 14.5px; padding: 14px 8px; }
  .ver-topo button { padding: 0 9px; font-size: 13px; }
}
@media (min-width: 861px) {
  .ed-topo { max-width: 760px; margin: 0 auto; }
  .grade { grid-template-columns: 340px 1fr; }
}
.ver-fim { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.ver-fim .btn { margin: 0; padding: 10px 6px; font-size: 14px; line-height: 1.15; }
.ver-fim small { grid-column: 1 / -1; order: 3; }
.ver-fim small:last-of-type { display: none; }
@media (min-width: 861px) { .idiomas.mini, #inicio .idiomas { position: static; } }
@media (max-width: 480px) { .idiomas.mini { display: none; } .etapas button span { font-size: 13px; } }
.env-para { bottom: 7%; left: 8%; right: 8%; font: italic 600 clamp(15px, 4.4vw, 19px) "Lora", serif; color: #fff4dc; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.env-para { white-space: normal; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; bottom: 5%; }
.ini-exemplo { width: min(56vw, 230px, calc(40vh * 9 / 16)); margin-bottom: 12px; }
.ini-titulo { font-size: clamp(24px, 6.6vw, 38px); }
.ini-sub { font-size: 15px; margin-bottom: 10px; }
.ini-novos { font-size: 14px; color: var(--suave); margin: 14px 0 0; }
.ini-novos a { color: var(--luz); font-weight: 700; }
.exp .passo { margin-bottom: 0; }
.cena { margin-bottom: 10px; } .cena b { display:block; margin-bottom: 6px; } .cena .campo { margin: 8px 0 0; color:#2b2418 } .cena input:not([type=file]) { background:#fff; color:#2b2418; border-color:#d8c9a8 } .cena .btn.sec { background:#1c3b2c; color:#fff; border:0 } .cena .ok { color:#1c7a3c; font-weight:800 }
.exp .grade { padding-bottom: 20px; }
