@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/big-shoulders-display.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --night: #0d3328;
  --night-deep: #082219;
  --pine: #2f8f5b;
  --pine-dark: #1d6141;
  --snow: #f4f8f5;
  --snow-shade: #e5efe9;
  --frost: #a9c7ba;
  --muted-ink: #3b5c50;
  --line: rgba(169, 199, 186, 0.16);
  --gold: #f5c04a;
  --gold-hover: #ffcf5f;
  --gold-deep: #c9952a;
  --berry: #e0393e;
  --berry-dark: #a8232a;
  --ink: #0d3328;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --text: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --tree-max: clamp(200px, 50vh, 500px);
  --caption-h: 78px;
  color-scheme: dark;
}

@supports (height: 1svh) {
  :root { --tree-max: clamp(200px, 50svh, 500px); }
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font: 400 1.0625rem/1.55 var(--text);
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
}

p { margin: 0; }
svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--gold-deep);
}
.btn-gold:hover { background: var(--gold-hover); }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn-gold:disabled { cursor: progress; opacity: 0.75; }

.btn-ghost {
  min-height: 40px;
  padding: 6px 14px;
  background: transparent;
  border: 1.5px solid rgba(244, 248, 245, 0.32);
  color: var(--snow);
  font-size: 0.9375rem;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--snow-shade); }

/* Cabecera */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px var(--gutter);
  background: rgba(8, 34, 25, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .topbar { background: rgba(8, 34, 25, 0.82); backdrop-filter: blur(10px); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { width: 24px; height: 31px; }

.raised {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.05;
}
.raised small { color: var(--frost); font-size: 0.8125rem; }
.raised strong {
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.demo-banner {
  padding: 8px var(--gutter);
  background: var(--pine-dark);
  color: var(--snow);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

/* Portada y cuenta atrás */

.hero {
  display: grid;
  gap: 24px;
  padding-block: clamp(24px, 5vw, 56px) clamp(16px, 3vw, 32px);
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.88;
  text-wrap: balance;
}

.hero-text p {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--frost);
  font-size: 1.125rem;
}

.countdown-title { color: var(--frost); }
.countdown-title strong { color: var(--snow); font-weight: 700; }

.clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.clock div {
  padding: 10px 6px 8px;
  background: var(--night-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}
.clock b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.clock small { color: var(--frost); font-size: 0.8125rem; }

.countdown-leader { margin-top: 12px; color: var(--frost); }
.countdown-leader strong { color: var(--snow); }

/* Bosque */

.stage {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, #114536 78%);
}

.snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ground {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0;
  height: var(--caption-h);
  background: var(--snow);
  border-radius: 50% 50% 0 0 / 16px 16px 0 0;
}

.forest-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 51, 40, 0.35) transparent;
}

.forest {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.2vw, 18px);
  width: max-content;
  min-height: calc(var(--tree-max) + var(--caption-h) + 36px);
  margin-inline: auto;
  padding: 36px var(--gutter) 0;
}

.tree-slot {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
}

.tree {
  display: block;
  height: calc(var(--tree-max) * var(--s, 1));
  aspect-ratio: 200 / 334;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  transition: height 0.9s cubic-bezier(0.2, 1.15, 0.3, 1);
}
.tree .tree-svg { width: 100%; height: 100%; overflow: visible; }
.tree:hover .tree-svg { filter: brightness(1.1); }

.tree-slot.is-leader .tree-star { filter: drop-shadow(0 0 10px rgba(245, 192, 74, 0.85)); }

.tree-slot.grew .tree { animation: grew 1.3s ease-out; }
@keyframes grew {
  0% { filter: drop-shadow(0 0 0 rgba(245, 192, 74, 0)); }
  30% { filter: drop-shadow(0 0 26px rgba(245, 192, 74, 0.95)); }
  100% { filter: drop-shadow(0 0 0 rgba(245, 192, 74, 0)); }
}

.tree-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: var(--caption-h);
  padding-top: 10px;
  color: var(--ink);
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.tree-rank { font-family: var(--display); font-size: 1.125rem; font-weight: 800; }
.tree-amount { font-family: var(--display); font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tree-name {
  display: none;
  max-width: 8.5rem;
  overflow: hidden;
  color: var(--muted-ink);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
}
.tree-slot.is-small .tree-name { display: block; }
.tree-slot.is-leader .tree-rank { color: var(--berry-dark); }
.tree-slot.is-leader .tree-amount { font-size: 1.75rem; }

.forest-empty {
  position: absolute;
  inset: 0 0 var(--caption-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px var(--gutter) 28px;
  text-align: center;
  color: var(--frost);
}
.forest-empty-tree { height: calc(var(--tree-max) * 0.55); aspect-ratio: 200 / 334; }
.forest-empty-tree .tree-svg { width: 100%; height: 100%; }
.forest-empty-title { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--snow); line-height: 1; }
.forest-empty .btn { margin-top: 8px; }

/* Pago */

.pay {
  scroll-margin-top: 72px;
  padding-block: clamp(32px, 6vw, 72px);
}

.pay-card {
  display: grid;
  grid-template-areas: "fields" "preview" "action";
  gap: 28px;
  padding: clamp(20px, 4vw, 44px);
  background: var(--snow);
  color: var(--ink);
  border-radius: 28px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65);
}
.pay-card :focus-visible { outline-color: var(--ink); }

.pay-fields { grid-area: fields; min-width: 0; }
.pay-preview { grid-area: preview; min-width: 0; }
.pay-action { grid-area: action; min-width: 0; align-self: end; }

.pay h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 900; }
.pay-lead { max-width: 50ch; margin-top: 10px; color: var(--muted-ink); }

.field { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 700;
}

.input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid #b9cfc4;
  border-radius: 12px;
  color: var(--ink);
  font-size: 1.125rem;
}
.input::placeholder { color: #7f9a8e; }
.input:focus { border-color: var(--ink); outline: none; }
.input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.hint { min-height: 1.5em; margin-top: 8px; color: var(--muted-ink); font-size: 0.9375rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  min-height: 44px;
  padding: 8px 16px;
  background: #fff;
  border: 2px solid #b9cfc4;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--snow); }

.smart:not(:empty) { margin-top: 12px; }
.chip-smart {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: #fdf0c9;
  border-color: var(--gold-deep);
}
.chip-smart span { font-weight: 600; font-variant-numeric: normal; }
.chip-smart:hover { background: #fbe6a6; }

.amount-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
}
.amount-label { font-weight: 600; color: var(--muted-ink); }
.amount-input { position: relative; width: 10rem; }
.amount-input .input { padding-left: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.amount-input span {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-weight: 700;
}
.amount-max { color: var(--muted-ink); font-size: 0.875rem; }
.input[aria-invalid="true"] { border-color: #b3141c; }
.hint.is-error { color: #b3141c; font-weight: 600; }

.pay-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px 22px;
  background: var(--snow-shade);
  border-radius: 18px;
}

.preview-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 5vw, 40px);
  min-height: 268px;
  padding-top: 18px;
  border-bottom: 10px solid #fff;
}

.preview-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  order: var(--order, 0);
}
.preview-art {
  height: calc(210px * var(--s, 1));
  aspect-ratio: 200 / 334;
  transition: height 0.6s cubic-bezier(0.2, 1.15, 0.3, 1);
}
.preview-art .tree-svg { width: 100%; height: 100%; overflow: visible; }
.preview-caption { margin-top: 6px; font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.preview-height { color: var(--muted-ink); font-size: 0.8125rem; }
.preview-tree.is-rival .preview-art { opacity: 0.7; }
.preview-tree.is-rival .preview-caption { font-weight: 600; color: var(--muted-ink); }

.preview-text { margin-top: 16px; font-size: 1.0625rem; line-height: 1.45; }
.preview-text strong { font-weight: 700; }

.form-error { min-height: 1.5em; margin-bottom: 8px; color: #b3141c; font-weight: 600; }

.btn-pay {
  width: 100%;
  min-height: 72px;
  border-radius: 16px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 800;
  box-shadow: 0 5px 0 var(--gold-deep);
}
.btn-pay svg { width: 26px; height: 26px; flex: none; }
.btn-pay:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-deep); }

.secure { margin-top: 14px; color: var(--muted-ink); font-size: 0.9375rem; }

.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.methods li {
  padding: 4px 10px;
  background: var(--snow-shade);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Clasificación y zonas */

.board {
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  padding-block: clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
}

.section-title { font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 900; }
.section-lead { max-width: 56ch; margin-top: 10px; color: var(--frost); }

.ranking-list, .zone-list, .champion-list { margin: 20px 0 0; padding: 0; list-style: none; }

.rank-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rank-num {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--frost);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rank-row.is-leader .rank-num { color: var(--gold); }

.rank-name {
  display: block;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.rank-name:hover { color: var(--gold); }

.rank-bar {
  display: block;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(169, 199, 186, 0.14);
  border-radius: 3px;
}
.rank-bar i {
  display: block;
  width: calc(var(--w, 0) * 100%);
  min-width: 4px;
  height: 100%;
  background: var(--pine);
  border-radius: 3px;
  transition: width 0.8s ease;
}
.rank-row.is-leader .rank-bar i { background: var(--gold); }

.rank-fig { text-align: right; line-height: 1.1; }
.rank-fig strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rank-fig small { color: var(--frost); font-size: 0.8125rem; }

.rank-act { display: none; }

.ranking-empty, .ranking-more { margin-top: 20px; color: var(--frost); }

.zone-list { position: relative; }
.zone-list::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 11px;
  width: 2px;
  background: var(--line);
}

.zone {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 12px 8px 12px 0;
}
.zone-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: 5px auto 0;
  background: var(--night);
  border: 2px solid var(--frost);
  border-radius: 50%;
}
.zone.is-passed .zone-dot { background: var(--gold); border-color: var(--gold); }
.zone.is-next { background: rgba(224, 57, 62, 0.1); border-radius: 12px; }
.zone.is-next .zone-dot { background: var(--berry); border-color: var(--berry); box-shadow: 0 0 0 4px rgba(224, 57, 62, 0.28); }

.zone-name { font-weight: 700; }
.zone-places { color: var(--frost); font-size: 0.875rem; line-height: 1.35; }
.zone-when { text-align: right; }
.zone-time {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.zone-local { color: var(--frost); font-size: 0.8125rem; white-space: nowrap; }
.zone-result { grid-column: 2 / -1; margin-top: 4px; font-size: 0.9375rem; }
.zone.is-passed .zone-result strong { color: var(--gold); }

.champions { padding-bottom: clamp(40px, 6vw, 72px); }
.champion-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.champion-list b { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--gold); }

/* Cómo funciona */

.how {
  padding-block: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--pine);
}
.steps h3 { margin-top: 6px; font-size: 1.75rem; }
.steps p { max-width: 34ch; margin-top: 8px; color: var(--frost); }

.rules { margin-top: 56px; }
.rules h3 { font-size: 1.75rem; }
.rules ul { max-width: 70ch; margin: 14px 0 0; padding-left: 1.2em; color: var(--frost); }
.rules li + li { margin-top: 8px; }

/* Pie de página */

.site-footer {
  margin-top: 24px;
  background: var(--night-deep);
  border-top: 1px solid var(--line);
  color: var(--frost);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  padding-block: 48px 32px;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--snow);
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--frost); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--snow); text-decoration: underline; }

.footer-pay, .footer-col:nth-child(3) { grid-column: 1 / -1; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-col .pay-badges li + li { margin-top: 0; }
.pay-badges li {
  padding: 6px 10px;
  background: var(--snow);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}
.footer-secure { margin-top: 14px; font-size: 0.875rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-bottom a { color: var(--frost); }
.footer-bottom a:hover { color: var(--snow); }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1.6fr; }
  .footer-pay, .footer-col:nth-child(3) { grid-column: auto; }
}

/* Páginas legales y de ayuda */

.doc { padding-block: clamp(32px, 6vw, 64px); }
.doc-body { max-width: 70ch; }
.doc-body h1 { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 900; }
.doc-body h2 { margin-top: 36px; font-size: 1.75rem; }
.doc-body p, .doc-body ul { margin-top: 14px; color: #d6e6de; }
.doc-body ul { padding-left: 1.2em; }
.doc-body li + li { margin-top: 8px; }
.doc-body strong { color: var(--snow); }
.doc-body a:not(.btn) { color: var(--gold); overflow-wrap: anywhere; }
.doc-updated { color: var(--frost) !important; font-size: 0.9375rem; }
.doc-facts { padding-left: 0 !important; list-style: none; }
.doc-page .topbar .btn { margin-left: auto; }
.doc-page .brand { margin-right: 0; }

/* Aceptación de condiciones y pagos cerrados */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--muted-ink);
  cursor: pointer;
}
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.consent a { color: var(--ink); font-weight: 600; }

.soon-banner { background: var(--berry-dark); }
.btn-pay.is-closed { background: #d9e4de; color: var(--muted-ink); box-shadow: none; cursor: not-allowed; }

/* Barra fija de pago en móvil */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 34, 25, 0.97);
  border-top: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.sticky-cta.is-hidden { transform: translateY(110%); }
.sticky-cta p { flex: 1; min-width: 0; line-height: 1.2; }
.sticky-cta small { display: block; color: var(--frost); font-size: 0.8125rem; }
.sticky-cta strong {
  display: block;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Celebración y avisos */

.celebrate {
  width: min(100% - 32px, 440px);
  padding: 32px 24px 28px;
  background: var(--snow);
  color: var(--ink);
  border: 0;
  border-radius: 24px;
  text-align: center;
}
.celebrate::backdrop { background: rgba(4, 20, 14, 0.72); }
.celebrate :focus-visible { outline-color: var(--ink); }
.celebrate-tree { height: 220px; aspect-ratio: 200 / 334; margin: 0 auto 18px; }
.celebrate-tree .tree-svg { width: 100%; height: 100%; overflow: visible; }
.celebrate h2 { font-size: 2.5rem; font-weight: 900; }
.celebrate p { margin-top: 10px; }
.celebrate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.celebrate-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}
.celebrate-close svg { width: 22px; height: 22px; }
.celebrate-close:hover { background: var(--snow-shade); }
.celebrate.is-pending .celebrate-tree { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }

.toasts {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 40;
  display: grid;
  gap: 8px;
  width: min(100% - 32px, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  background: var(--snow);
  color: var(--ink);
  border-left: 6px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-weight: 600;
  animation: toast-in 0.3s ease-out;
}
.toast.is-leaving { opacity: 0; transition: opacity 0.4s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* Tamaños de pantalla */

@media (max-width: 759px) {
  :root { --tree-max: clamp(190px, 44vh, 360px); --caption-h: 72px; }
  @supports (height: 1svh) { :root { --tree-max: clamp(190px, 44svh, 360px); } }
  body { padding-bottom: 76px; }
  .topbar-cta { display: none; }
  .brand { font-size: 1.375rem; }
  .raised strong { font-size: 1.375rem; }
  .clock b { font-size: 2.25rem; }
}

@media (min-width: 760px) {
  .sticky-cta { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 560px) {
  .rank-row { grid-template-columns: 2.75rem minmax(0, 1fr) auto auto; }
  .rank-act { display: inline-flex; }
}

@media (min-width: 880px) {
  .pay-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "fields preview" "action preview";
    column-gap: clamp(28px, 4vw, 56px);
  }
  .preview-stage { min-height: 320px; }
  .preview-art { height: calc(260px * var(--s, 1)); }
}

@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; column-gap: 48px; }
  .board { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; }
}

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