/* ============================================================
   GASTA LA PLATA DE ELON — Estilos
   Fiesta latina: colores vibrantes, papel picado, stickers.
   Mobile-first (2 columnas) → desktop (3 columnas).
   ============================================================ */

:root {
  --bg: #1a0b2e;
  --bg-2: #2a0f49;
  --card: #2b1450;
  --card-2: #371a63;
  --ink: #fff7ed;
  --ink-soft: #c9b6e8;

  --pink: #ff2d87;
  --magenta: #ff5fa2;
  --orange: #ff7b00;
  --gold: #ffd60a;
  --turq: #1be7c5;
  --lime: #b5f23d;
  --purple: #8a4dff;
  --green: #06d6a0;
  --red: #ff5d73;

  --shadow: 0 12px 30px rgba(0,0,0,.45);
  --sticker: 0 6px 0 rgba(0,0,0,.18);
  --radius: 20px;
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background:
    radial-gradient(800px 480px at 85% -8%, rgba(255,45,135,.28), transparent 60%),
    radial-gradient(700px 520px at 5% 8%, rgba(27,231,197,.18), transparent 55%),
    radial-gradient(700px 600px at 50% 110%, rgba(138,77,255,.25), transparent 60%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .hud__value, .rate-card__num, .vs__mult { font-family: "Fredoka", system-ui, sans-serif; }

/* ===================== PAPEL PICADO ===================== */
.papel {
  height: 26px;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--turq), var(--lime), var(--purple), var(--orange), var(--pink));
  -webkit-mask: conic-gradient(from -45deg at 50% 0, #000 90deg, #0000 0) 0 0 / 26px 100%;
          mask: conic-gradient(from -45deg at 50% 0, #000 90deg, #0000 0) 0 0 / 26px 100%;
  margin-bottom: 6px;
  animation: sway 5s ease-in-out infinite;
}
@keyframes sway { 0%,100%{ transform: skewX(0deg) } 50%{ transform: skewX(-2deg) } }

/* ===================== HUD STICKY ===================== */
.hud {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,8,40,.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255,45,135,.35);
  padding: 10px 14px calc(8px + env(safe-area-inset-bottom, 0));
}
.hud__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hud__block { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.hud__block--spent { text-align: right; align-items: flex-end; }
.hud__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.hud__value {
  font-size: clamp(1.05rem, 5vw, 1.9rem); font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 18px rgba(255,214,10,.35);
}
.hud__value--spent { color: var(--turq); text-shadow: 0 0 18px rgba(27,231,197,.35); }
.hud__rate { font-size: .72rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__mute {
  position: absolute; top: 8px; right: 10px; background: rgba(255,255,255,.1); border: none;
  color: var(--ink); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: .9rem;
}
.hud__progress { max-width: var(--maxw); margin: 8px auto 0; height: 5px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
.hud__progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--turq), var(--gold), var(--pink)); transition: width .4s ease; }

.bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1)} 35%{transform:scale(1.14)} 100%{transform:scale(1)} }

/* ===================== HERO ===================== */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 18px 18px 34px; text-align: center; }
.hero__glow { position: absolute; inset: -30px 0 auto 0; height: 280px; background: radial-gradient(closest-side, rgba(255,45,135,.3), transparent); filter: blur(20px); z-index: -1; }

.elon { width: min(60vw, 240px); margin: 4px auto 0; animation: float 4.5s ease-in-out infinite; }
.elon__img {
  width: 100%; height: auto; display: block; border-radius: 26px;
  background: #fff; box-shadow: 0 16px 30px rgba(0,0,0,.5), 0 0 0 4px rgba(255,255,255,.9), 0 0 0 8px var(--gold);
  transform: rotate(-2deg);
}
.elon__svg { width: 100%; height: auto; filter: drop-shadow(0 16px 26px rgba(0,0,0,.5)); }
@keyframes float { 0%,100%{ transform: translateY(0) rotate(-1deg) } 50%{ transform: translateY(-12px) rotate(1deg) } }

.hero__badge {
  display: inline-block; margin: 14px 0 4px; padding: 7px 16px; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--orange)); color: #3a1a00;
  font-family: "Fredoka"; font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(255,123,0,.4); transform: rotate(-2deg);
}
.hero__title { font-size: clamp(2.1rem, 10vw, 3.8rem); line-height: 1.0; margin-top: 6px; }
.hero__name { background: linear-gradient(90deg, var(--turq), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { color: var(--ink-soft); max-width: 540px; margin: 14px auto 0; font-size: 1.02rem; }
.hero__subtitle strong { color: var(--ink); }

.hero__ticker { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px auto 0; max-width: 640px; }
.hero__ticker-item { background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 10px 14px; min-width: 110px; flex: 1 1 130px; box-shadow: var(--sticker); }
.hero__ticker-item span { display: block; font-family: "Fredoka"; font-size: 1.3rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.hero__ticker-item small { color: var(--ink-soft); font-size: .8rem; }

.hero__cta {
  display: inline-block; margin-top: 26px; text-decoration: none;
  background: linear-gradient(90deg, var(--pink), var(--orange)); color: #fff;
  font-family: "Fredoka"; font-weight: 700; font-size: 1.15rem; padding: 15px 30px; border-radius: 99px;
  box-shadow: 0 8px 0 #b51e63, var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.hero__cta:active { transform: translateY(5px); box-shadow: 0 3px 0 #b51e63, var(--shadow); }
.hero__scroll { margin-top: 18px; color: var(--ink-soft); font-size: .92rem; animation: float 2.5s ease-in-out infinite; }

/* ===================== CONTEXT / DIMENSIÓN ===================== */
.context { max-width: 760px; margin: 6px auto; padding: 24px 16px; text-align: center; }
.context__title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
.context__lead, .context__foot { color: var(--ink-soft); margin: 14px auto; max-width: 600px; }
.context__lead strong, .context__foot strong { color: var(--gold); }

.rate-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-radius: 22px; padding: 16px 20px; margin: 18px auto 4px; max-width: 460px;
  box-shadow: 0 14px 30px rgba(255,45,135,.35); transform: rotate(-1.2deg);
}
.rate-card__bolt { font-size: 2.6rem; animation: buzz 1.4s ease-in-out infinite; }
@keyframes buzz { 0%,100%{ transform: scale(1) rotate(0) } 50%{ transform: scale(1.18) rotate(8deg) } }
.rate-card__num { display: block; font-size: clamp(1.9rem, 9vw, 2.8rem); color: #fff; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.18); font-variant-numeric: tabular-nums; }
.rate-card__label { color: rgba(255,255,255,.92); font-size: .9rem; }
.rate-card__label b { color: #fff; }

.oldman {
  display: flex; align-items: center; gap: 14px; text-align: left;
  max-width: 540px; margin: 20px auto 4px; padding: 14px 16px;
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; box-shadow: var(--sticker);
}
.oldman__face { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 5px 9px rgba(0,0,0,.45)); animation: float 5s ease-in-out infinite; }
.oldman p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.38; }
.oldman b { color: var(--gold); }

.vs-list { display: grid; gap: 14px; margin: 18px 0; }
@media (min-width: 760px) { .vs-list { grid-template-columns: 1fr 1fr; } }
.vs {
  background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  padding: 14px 16px; text-align: left; box-shadow: var(--sticker);
}
.vs__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vs__flag { font-weight: 700; font-size: 1rem; }
.vs__mult { font-size: 2.1rem; line-height: 1; color: var(--gold); text-shadow: 0 0 16px rgba(255,214,10,.4); }
.vs__mult small { font-size: 1rem; color: var(--ink-soft); }
.vs__big { font-size: 1.02rem; color: var(--ink); font-weight: 600; margin: 2px 0 10px; line-height: 1.32; }
.vs__big b { color: var(--gold); }
.vs__row { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 8px; margin: 7px 0; }
.vs__tag { font-size: .74rem; color: var(--ink-soft); line-height: 1.15; }
.vs__track { height: 14px; background: rgba(255,255,255,.09); border-radius: 99px; overflow: hidden; }
.vs__fill { height: 100%; border-radius: 99px; }
.vs__fill--elon { background: linear-gradient(90deg, var(--pink), var(--gold)); box-shadow: 0 0 12px rgba(255,45,135,.5); }
.vs__fill--you { background: var(--turq); min-width: 5px; }
.vs__amt { font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-soft); }
.vs__line { font-size: .88rem; color: var(--ink-soft); margin-top: 9px; border-top: 1px dashed rgba(255,255,255,.12); padding-top: 8px; }
.vs__line b { color: var(--gold); }

/* ===================== STORE ===================== */
.store { max-width: var(--maxw); margin: 0 auto; padding: 8px 14px 40px; }
.cat { margin-top: 34px; }
.cat__head { margin-bottom: 14px; }
.cat__title {
  display: inline-flex; align-items: center; gap: 8px; font-size: clamp(1.3rem, 5.5vw, 1.9rem);
  background: linear-gradient(90deg, var(--purple), var(--pink)); color: #fff;
  padding: 6px 16px; border-radius: 14px; box-shadow: var(--sticker); transform: rotate(-1deg);
}
.cat__blurb { color: var(--ink-soft); font-size: 1.02rem; margin-top: 10px; line-height: 1.35; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 920px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 7px; overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius);
  padding: 14px 13px; box-shadow: var(--shadow); transition: transform .12s ease, border-color .2s ease;
}
.card.owned { border-color: var(--turq); box-shadow: 0 0 0 2px rgba(27,231,197,.35), var(--shadow); }
.card__badge {
  position: absolute; top: 9px; right: 9px; display: none; place-items: center;
  min-width: 30px; height: 26px; padding: 0 8px; border-radius: 99px;
  background: linear-gradient(135deg, var(--turq), var(--green)); color: #04261d;
  font-family: "Fredoka"; font-weight: 700; font-size: .85rem; box-shadow: 0 4px 10px rgba(0,0,0,.3);
  animation: pop .25s cubic-bezier(.2,1.5,.4,1);
}
.card.owned .card__badge { display: grid; }
.card__emoji { font-size: 2.4rem; line-height: 1; }
.card__name { font-family: "Fredoka"; font-size: 1.08rem; font-weight: 600; line-height: 1.12; }
.card__note {
  color: var(--ink-soft); font-size: .88rem; line-height: 1.32; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__price {
  font-family: "Fredoka"; font-weight: 700; color: var(--gold);
  font-size: 1.18rem; font-variant-numeric: tabular-nums;
  line-height: 1.1; white-space: nowrap;
}
.card__mag { font-size: .74rem; color: var(--ink-soft); margin-top: -2px; font-style: italic; }
.card__price.is-med { font-size: .96rem; }   /* miles de millones */
.card__price.is-xl  { font-size: .82rem; }   /* billones (12+ dígitos) */
@media (min-width: 920px) {
  .card__price.is-med { font-size: 1.1rem; }
  .card__price.is-xl  { font-size: 1rem; }
}

.card__actions { display: flex; gap: 8px; align-items: stretch; margin-top: 2px; }
.card__add {
  flex: 1; border: none; cursor: pointer; font-family: "Fredoka"; font-weight: 700; font-size: 1.05rem;
  color: #04261d; background: linear-gradient(135deg, var(--lime), var(--turq));
  border-radius: 13px; padding: 11px 8px; box-shadow: 0 5px 0 #0f9c84; transition: transform .1s ease, box-shadow .1s ease;
  touch-action: manipulation; user-select: none;
}
.card__add:active { transform: translateY(4px); box-shadow: 0 1px 0 #0f9c84; }
.card__remove {
  display: none; flex: 0 0 42px; width: 42px; border: none; cursor: pointer;
  font-size: 1.5rem; font-weight: 700; color: var(--red);
  background: rgba(255,93,115,.18); border-radius: 13px; place-items: center;
  touch-action: manipulation; user-select: none; transition: transform .1s ease;
}
.card.owned .card__remove { display: grid; }
.card__remove:active { transform: scale(.88); }

/* ===================== FINALE ===================== */
.finale { text-align: center; padding: 48px 18px 20px; max-width: 620px; margin: 0 auto; }
.finale__title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
.finale__text { color: var(--ink-soft); margin: 14px auto; }
.finale__text strong { color: var(--gold); }
.finale__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.finale__btn {
  border: none; cursor: pointer; color: #3a1a00;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  font-family: "Fredoka"; font-weight: 700; font-size: 1.15rem; padding: 15px 28px; border-radius: 99px;
  box-shadow: 0 8px 0 #c75e00, var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.finale__btn:active { transform: translateY(5px); box-shadow: 0 3px 0 #c75e00, var(--shadow); }
.finale__btn--clear {
  color: var(--ink); background: rgba(255,255,255,.1);
  box-shadow: 0 8px 0 rgba(0,0,0,.35), var(--shadow);
}
.finale__btn--clear:active { transform: translateY(5px); box-shadow: 0 3px 0 rgba(0,0,0,.35), var(--shadow); }

.finale__cta {
  margin-top: 22px; font-family: "Fredoka", sans-serif; font-size: 1.15rem; color: var(--ink);
}
.finale__cta a {
  color: transparent; font-weight: 700; text-decoration: none; white-space: nowrap;
  background: linear-gradient(90deg, var(--pink), var(--gold)); -webkit-background-clip: text; background-clip: text;
  border-bottom: 2px solid var(--pink); padding-bottom: 1px;
}
.finale__cta a:active { opacity: .7; }

/* Botón flotante de recibo (checkout permanente, no obtrusivo) */
.fab-receipt {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0)); z-index: 80;
  display: inline-flex; align-items: center; gap: 7px; max-width: 70vw;
  border: none; cursor: pointer; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: .95rem;
  color: #3a1a00; background: linear-gradient(90deg, var(--gold), var(--orange));
  padding: 11px 16px; border-radius: 99px; box-shadow: 0 8px 22px rgba(0,0,0,.45);
  transition: transform .15s ease, opacity .25s ease; animation: fabIn .4s cubic-bezier(.2,1.4,.4,1);
}
.fab-receipt__icon { font-size: 1.15rem; }
.fab-receipt__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fab-receipt:active { transform: scale(.94); }
.fab-receipt.fab-hide { opacity: 0; pointer-events: none; transform: translateY(24px) scale(.9); }
@keyframes fabIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.build-tag {
  position: fixed; left: 8px; bottom: 6px; z-index: 60; pointer-events: none;
  font-family: monospace; font-size: .62rem; letter-spacing: .03em;
  color: var(--ink); opacity: .25;
}

.footer { text-align: center; padding: 28px 18px 60px; color: var(--ink-soft); font-size: .95rem; }
.footer__credit { font-family: "Fredoka", sans-serif; font-size: 1.15rem; margin-bottom: 12px; }
.footer__credit a {
  color: transparent; font-weight: 700; text-decoration: none;
  background: linear-gradient(90deg, var(--turq), var(--lime)); -webkit-background-clip: text; background-clip: text;
  border-bottom: 2px solid var(--turq); padding-bottom: 1px;
}
.footer__credit a:active { opacity: .7; }
.footer__ig { -webkit-text-fill-color: initial; }
.footer__small { font-size: .84rem; opacity: .82; margin-top: 6px; max-width: 480px; margin-inline: auto; }

/* ===================== MODAL / RECIBO ===================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }

/* --- Impresora --- */
.printer-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: min(440px, 94vw); max-height: 92vh; }
.printer {
  position: relative; z-index: 3; width: 100%; height: 54px; flex: none;
  background: linear-gradient(180deg, #4b5060, #24262f);
  border-radius: 16px 16px 7px 7px; display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.14);
}
.printer__brand { color: #b7bdcd; font-family: "Fredoka", sans-serif; font-size: .82rem; letter-spacing: .04em; }
.printer__light { position: absolute; top: 11px; right: 16px; width: 9px; height: 9px; border-radius: 50%; background: #16d97f; box-shadow: 0 0 9px #16d97f; }
.modal.printing .printer__light { animation: blinkLight .35s steps(1) infinite; }
@keyframes blinkLight { 0%,50%{ opacity: 1 } 51%,100%{ opacity: .2 } }
.printer__slot { position: absolute; left: 18px; right: 18px; bottom: -3px; height: 7px; background: #0b0d12; border-radius: 4px; box-shadow: inset 0 2px 4px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06); }

.receipt {
  position: relative; z-index: 2; width: 96%; margin-top: -2px; max-height: calc(92vh - 60px); overflow-y: auto;
  background: #fdfdf7; color: #20242e; border-radius: 2px 2px 8px 8px; padding: 22px 20px 18px;
  font-family: "Space Grotesk", monospace; box-shadow: 0 30px 60px rgba(0,0,0,.5);
  transform-origin: top center;
}
/* Sale "impreso" desde la ranura: se revela de arriba hacia abajo + vibración de papel */
.modal.printing .receipt {
  animation: printOut 1.25s cubic-bezier(.35,.6,.3,1) forwards, feed .1s steps(2) infinite;
}
@keyframes printOut { 0% { clip-path: inset(0 0 100% 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes feed { 0%,100% { transform: translateX(0); } 50% { transform: translateX(1.3px); } }
@keyframes pop { from{ transform: scale(.85) translateY(14px); opacity: 0 } to{ transform: none; opacity: 1 } }
.receipt__close {
  position: sticky; top: 4px; float: right; z-index: 6;
  width: 42px; height: 42px; margin: -6px -4px -42px 0; border: none; cursor: pointer;
  border-radius: 50%; background: #20242e; color: #fff; font-size: 1.25rem; font-weight: 700;
  display: grid; place-items: center; border: 3px solid #fdfdf7;
  box-shadow: 0 4px 14px rgba(0,0,0,.5); transition: transform .1s ease;
}
.receipt__close:active { transform: scale(.9); }

/* Botón cerrar al final del recibo (visible tras hacer scroll en mobile) */
.receipt__close-btn {
  display: block; width: 100%; margin-top: 10px; border: none; cursor: pointer;
  background: #20242e; color: #fff; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.05rem;
  padding: 14px; border-radius: 12px; transition: transform .1s ease;
}
.receipt__close-btn:active { transform: scale(.97); }
.receipt__head { text-align: center; border-bottom: 2px dashed #cfcfc4; padding-bottom: 12px; }
.receipt__head h3 { font-family: "Fredoka"; letter-spacing: .05em; }
.receipt__head p { font-size: .88rem; color: #555; }
.receipt__date { font-size: .8rem; color: #999; margin-top: 4px; }
.receipt__items { list-style: none; padding: 12px 0; border-bottom: 2px dashed #cfcfc4; }
.receipt__items li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; padding: 4px 0; }
.receipt__items li span:first-child { color: #333; }
.receipt__items li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt__items .empty { justify-content: center; color: #999; font-style: italic; }
.receipt__totals { padding: 12px 0; font-size: .98rem; }
.receipt__totals > div { display: flex; justify-content: space-between; padding: 3px 0; }
.receipt__totals span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.receipt__pct { border-top: 1px solid #ddd; margin-top: 6px; padding-top: 8px; font-family: "Fredoka"; }
.receipt__punchline { text-align: center; font-size: 1rem; color: #d11e6a; font-weight: 700; margin: 10px 0; line-height: 1.35; }
.receipt__barcode { text-align: center; font-size: .68rem; letter-spacing: .05em; color: #333; margin: 8px 0; overflow: hidden; white-space: nowrap; }
.receipt__notes { margin: 10px 0; border-top: 1px dashed #cfcfc4; padding-top: 10px; }
.receipt__notes p { font-size: .98rem; color: #444; line-height: 1.4; margin: 7px 0; font-style: italic; }
.receipt__url { text-align: center; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1rem; color: #20242e; margin: 6px 0; letter-spacing: .02em; }

.receipt__share { margin-top: 12px; border-top: 2px dashed #cfcfc4; padding-top: 12px; }
.receipt__share-title { text-align: center; font-family: "Fredoka", sans-serif; font-size: 1rem; color: #20242e; margin-bottom: 10px; }
.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
  border: none; border-radius: 12px; padding: 10px 4px; color: #fff; font-family: "Fredoka", sans-serif;
  font-size: .72rem; line-height: 1; transition: transform .1s ease;
}
.share-btn span { font-weight: 600; }
.share-btn:active { transform: scale(.92); }
.share-btn--wa { background: #25d366; }
.share-btn--fb { background: #1877f2; }
.share-btn--ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-btn--dl { background: #20242e; }

/* Oculta lo interactivo al capturar la imagen del recibo */
.receipt.capturing .no-capture { display: none !important; }

/* ===================== TOAST SARCÁSTICO DE ELON ===================== */
.elon-toast {
  position: fixed; z-index: 120; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.85); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 0; width: min(420px, 92vw);
  transition: transform .28s cubic-bezier(.2,1.5,.4,1), opacity .2s ease;
}
.elon-toast[hidden] { display: none; }
.elon-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; cursor: pointer; }
.elon-toast__face {
  width: 92px; height: 92px; flex: none; border-radius: 50%; object-fit: cover; background: #fff;
  border: 4px solid var(--gold); box-shadow: 0 10px 26px rgba(0,0,0,.55); transform: rotate(-6deg);
  position: relative; z-index: 2;
}
.elon-toast__bubble {
  position: relative; margin-left: -12px; padding: 16px 18px; flex: 1;
  background: #fff; color: #20242e; border-radius: 16px; font-weight: 600; font-size: 1rem; line-height: 1.3;
  box-shadow: 0 12px 30px rgba(0,0,0,.5); border: 3px solid var(--pink);
}
.elon-toast__bubble::before {
  content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  border: 9px solid transparent; border-right-color: var(--pink);
}
.elon-toast--tip .elon-toast__bubble { border-color: var(--turq); }
.elon-toast--tip .elon-toast__bubble::before { border-right-color: var(--turq); }

/* Sacudida de la card cuando no alcanza */
.card.shake { animation: shake .4s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}

/* ===================== CONFETTI ===================== */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ===================== ACCESIBILIDAD ===================== */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
