:root {
  --navy: #0B1630;
  --navy-2: #13224A;
  --navy-3: #1B2D5E;
  --line-dark: #3A4A78;
  --text: #F4F6FB;
  --text-soft: #C9D3EA;
  --text-mute: #9FB0D6;
  --accent: #FFC72C;
  --paper: #F3F6FC;
  --ink: #0B1630;
  --ink-soft: #4A5A80;
  --ink-mid: #2B3A60;
  --rule: #E6EAF4;
  --chip: #F3F6FC;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header { max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 56px; height: 61px; object-fit: contain; }
.brand span { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: stretch; max-width: 1440px; margin: 0 auto; }
.hero-text {
  flex: 1 1 520px; min-width: 0;
  padding: 56px 24px 72px max(24px, calc((100% - 1240px) / 2 + 24px));
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.eyebrow { margin: 0; font-weight: 600; font-size: 15px; color: var(--text-mute); letter-spacing: 0.02em; }
.eyebrow.dark { font-weight: 700; font-size: 14px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.03em; }
.accent { color: var(--accent); }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-soft); max-width: 520px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: block; line-height: 0; }
.badge img { display: block; height: 54px; width: auto; }

.hero-video { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 16px; padding: 32px 0; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(11,22,48,0) 6%, rgba(11,22,48,0) 94%, var(--navy) 100%);
}
.yt-button {
  display: flex; align-items: center; gap: 10px; margin-right: 24px;
  color: var(--text); text-decoration: none; font-weight: 700;
  padding: 12px 20px; border-radius: 14px; border: 1.5px solid var(--line-dark);
}

/* Results */
.results { background: var(--paper); color: var(--ink); }
.results .wrap { padding-top: 50px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.picker-note { margin: -20px 0 0; font-size: 14px; color: var(--ink-soft); }
.recent { display: flex; flex-wrap: wrap; gap: 8px; }
.day-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: #FFFFFF; border: 1.5px solid #D9DEE9;
  color: var(--ink-mid); font-weight: 700; font-size: 14px; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.day-chip:hover { border-color: var(--accent); background: #FFF4CF; color: var(--ink); }
.day-chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.results-head > div { display: flex; flex-direction: column; gap: 8px; }
.results-head h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; }
.muted { margin: 0; font-size: 15px; color: var(--ink-soft); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; align-items: start; }
.card {
  min-width: 0; background: #FFFFFF; border-radius: 22px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 0 rgba(11,22,48,0.06), 0 12px 28px rgba(11,22,48,0.06);
}
.card-head { display: flex; align-items: center; gap: 16px; }
.card-head h3 { font-size: 26px; letter-spacing: -0.01em; }
.lottery-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; background: #FFFFFF; flex: 0 0 auto; }
.country { font-size: 14px; font-weight: 600; color: var(--ink-soft); }

.draws { display: flex; flex-direction: column; gap: 4px; }
.draw { border-top: 1px solid var(--rule); }
.draw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.draw-time { font-weight: 600; font-size: 16px; color: var(--ink-mid); }
.ball {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; color: #FFFFFF;
}
.draw-result { display: flex; align-items: center; gap: 10px; }
.reventado-dot { width: 22px; height: 22px; border-radius: 50%; background: #E30613; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18); flex: 0 0 auto; }
.ball-lg { width: 58px; height: 58px; font-size: 26px; }
.pending {
  height: 52px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center;
  font-weight: 600; font-size: 14px; color: var(--ink-soft); border: 1.5px dashed #B7C1DA;
}

.more { padding-bottom: 10px; }
.more summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  background: #FFF4CF; border-radius: 999px; padding: 8px 14px; margin-bottom: 10px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: #FFE9A3; }
.more[open] summary svg { transform: rotate(180deg); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.chip { min-width: 0; }
.chip-wide { grid-column: 1 / -1; }
.chip.chip-stack { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; }
.chip.chip-stack img { width: auto; height: 40px; }
.mini-balls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mini-plus { align-self: center; font-weight: 800; font-size: 18px; color: var(--ink-soft); }
.mini-ball {
  width: 34px; height: 34px; border-radius: 50%; background: #E30613; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 15px;
}
.chip { display: flex; align-items: center; gap: 10px; background: var(--chip); border-radius: 12px; padding: 8px 10px; }
.chip img { width: 50px; height: 50px; object-fit: contain; flex: 0 0 auto; }
.chip-tag {
  width: 50px; height: 50px; flex: 0 0 auto; border-radius: 10px; background: #001845; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 15px;
}
.chip img.logo-wide { width: auto; height: 40px; max-width: 84px; }
.chip-placeholder { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 10px; background: #D9DEE9; }
.chip > div { display: flex; flex-direction: column; min-width: 0; }
.chip-name { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.chip-value { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; }

.group { display: flex; flex-direction: column; gap: 16px; }
.group-title { font-size: 28px; letter-spacing: -0.01em; }
.group-title span { font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink-soft); letter-spacing: 0; }
.card-row { flex-direction: row; align-items: center; gap: 16px; }
.card-row h4 { font-size: 22px; letter-spacing: -0.01em; }
.grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }

.traditional { display: flex; flex-wrap: wrap; gap: 20px; }
.card-dark { flex: 1 1 min(100%, 520px); background: var(--navy); color: var(--text); padding: 28px; gap: 20px; box-shadow: none; }
.card-dark .lottery-logo { width: 64px; height: 64px; }
.card-dark .country { color: var(--text-mute); }
.prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prize { background: var(--navy-2); border-radius: 16px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.prize-label { font-size: 12px; font-weight: 700; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.prize-serie { font-size: 14px; font-weight: 600; color: var(--text-soft); }

/* Features */
.features { max-width: 1240px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 40px; }
.features h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; max-width: 720px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.feature { background: var(--navy-2); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,199,44,0.14); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 22px; }
.feature p { margin: 0; color: var(--text-soft); line-height: 1.55; }
.feature .media.is-link { cursor: pointer; }
.feature .media { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 520px; object-fit: contain; border: 0; border-radius: 16px; background: #000000; }

/* Download band */
.download { background: var(--accent); color: var(--ink); }
.download-inner { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.download h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; }

/* Footer */
.footer { max-width: 1240px; margin: 0 auto; padding: 40px 24px 56px; display: flex; flex-direction: column; gap: 16px; color: var(--text-mute); font-size: 14px; line-height: 1.6; }
.footer p { margin: 0; max-width: 900px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px; }
.footer-brand img { width: 36px; height: 39px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--text-soft); padding: 12px 0; }

@media (max-width: 640px) {
  .wrap, .header, .features, .footer { padding-left: 16px; padding-right: 16px; }
  .hero-text { padding: 32px 16px 24px; }
  .hero-video { padding: 0 0 32px; }
  .yt-button { margin-right: 16px; }
  .results .wrap { padding-top: 48px; padding-bottom: 48px; }
  .card { padding: 18px; }
  .card-head h3 { font-size: 22px; }
  .lottery-logo { width: 56px; height: 56px; }
  .prizes { gap: 8px; }
  .prize { padding: 12px 6px; }
  .features { padding-top: 56px; padding-bottom: 56px; }
}
