:root {
  --green-950: #07086f;
  --green-900: #090b8f;
  --green-800: #076f9f;
  --green-700: #009e2d;
  --green-100: #def8e5;
  --cream: #fffdf0;
  --white: #ffffff;
  --ink: #11144d;
  --muted: #626583;
  --yellow: #ffeb16;
  --orange: #00b934;
  --red: #df4e45;
  --number-blue: #08a8d7;
  --number-blue-dark: #067fae;
  --number-blue-soft: #dff8ff;
  --line: #dfe2f2;
  --shadow: 0 20px 50px rgba(7, 8, 111, .11);
  --radius: 24px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f7f7ff;
  --muted: #adb2da;
  --cream: #070821;
  --line: #292c61;
  --shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.theme-toggle {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff7c7;
  background: var(--green-900);
  border: 2px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
  cursor: pointer;
}

.theme-toggle::before {
  content: "☾";
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
}

:root[data-theme="dark"] .theme-toggle {
  color: #624b00;
  background: var(--yellow);
  border-color: white;
}

:root[data-theme="dark"] .theme-toggle::before {
  content: "☀";
  font-size: 21px;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(7, 8, 111, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(14px);
}

.header-inner,
.hero-inner,
.results-section,
.trust-strip,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .16);
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: #bfefff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 30px;
  color: #e1e8ff;
  font-size: 16px;
  font-weight: 600;
}

.main-nav a {
  transition: color .2s ease;
}

.main-nav a:hover {
  color: var(--yellow);
}

.header-action {
  padding: 11px 18px;
  color: var(--green-950);
  background: var(--yellow);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  color: var(--white);
  background:
    radial-gradient(circle at 74% 42%, rgba(8, 168, 215, .48), transparent 31%),
    radial-gradient(circle at 28% 100%, rgba(0, 185, 52, .22), transparent 32%),
    linear-gradient(125deg, #07086f, #0a0ba0);
}

.hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -185px;
  width: 560px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  transform: rotate(-15deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 500px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 80px;
  padding-block: 70px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker,
.game-tag {
  margin: 0;
  color: #83d4ae;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  background: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

h1 {
  max-width: 720px;
  margin: 20px 0 22px;
  font-size: clamp(48px, 6.5vw, 78px);
  line-height: .99;
  letter-spacing: -.055em;
}

h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-text {
  max-width: 570px;
  color: #e1e9ff;
  font-size: 18px;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: #a9c5b8;
  font-size: 13px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 235, 22, .16);
}

.hero-tickets {
  position: relative;
  width: min(100%, 360px);
  height: 430px;
  justify-self: end;
}

.hero-ticket {
  position: absolute;
  width: 300px;
  padding: 20px 26px;
  color: var(--green-950);
  background: var(--yellow);
  border-radius: 22px;
  box-shadow: 14px 18px 0 rgba(1, 25, 18, .25);
}

.hero-ticket-times {
  z-index: 1;
  top: 0;
  left: 0;
  background: #f5f1e5;
  transform: rotate(-3deg);
}

.hero-ticket-times .ticket-balls span {
  background: var(--orange);
}

.hero-ticket-monazos {
  z-index: 2;
  right: 0;
  bottom: 0;
  transform: rotate(3deg);
}

.hero-ticket-monazos .ticket-balls span {
  background: var(--number-blue);
}

.hero-ticket::before,
.hero-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background: var(--green-900);
  border-radius: 50%;
}

.hero-ticket::before { left: -12px; }
.hero-ticket::after { right: -12px; }

.ticket-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.ticket-label {
  margin: 22px 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.ticket-balls {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.ticket-balls span {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green-900);
  border-radius: 50%;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.ticket-balls-single span {
  width: 64px;
  height: 64px;
  font-size: 27px;
}

.ticket-line {
  margin: 20px 0 12px;
  border-top: 2px dashed rgba(3, 40, 30, .3);
}

.hero-ticket p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.hero-ticket .ticket-extra {
  min-height: 13px;
  margin-top: 5px;
  color: rgba(3, 40, 30, .68);
  font-size: 9px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-glow-one {
  top: -100px;
  left: 35%;
  width: 330px;
  height: 330px;
  background: rgba(19, 125, 87, .18);
}

.ad-slot {
  width: min(970px, calc(100% - 40px));
  margin: 28px auto;
}

.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

.ad-slot.ad-slot-empty,
.ad-slot:has(> .adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
  margin: 0 auto;
}

.results-section {
  padding: 56px 0 70px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--green-700);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.045em;
}

.section-date {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.status-message {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  background: white;
  border-radius: var(--radius);
}

.status-message.error {
  color: #9b342d;
  background: #fff0ed;
}

.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid #c8d5ce;
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.result-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(11, 83, 62, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.result-card-wide {
  grid-column: span 1;
}

.result-card-full {
  grid-column: 1 / -1;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.card-head h3 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -.035em;
}

.game-tag {
  color: #839088;
  font-size: 9px;
}

.game-icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.game-icon-sun { color: #725b00; background: #fff1b4; }
.game-icon-moon { color: white; background: var(--green-700); }
.game-icon-lotto { color: #684900; background: var(--yellow); }
.game-icon-revancha { color: white; background: var(--orange); }

.sun-symbol {
  position: relative;
  width: 15px;
  height: 15px;
  background: currentColor;
  border-radius: 50%;
  box-shadow:
    0 -10px 0 -6px currentColor,
    0 10px 0 -6px currentColor,
    10px 0 0 -6px currentColor,
    -10px 0 0 -6px currentColor,
    7px 7px 0 -6px currentColor,
    -7px -7px 0 -6px currentColor,
    7px -7px 0 -6px currentColor,
    -7px 7px 0 -6px currentColor;
}

.three-balls-symbol {
  position: relative;
  width: 27px;
  height: 26px;
}

.three-balls-symbol i {
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  border: 2px solid rgba(3, 40, 30, .35);
  border-radius: 50%;
}

.three-balls-symbol i:nth-child(1) {
  top: 0;
  left: 0;
}

.three-balls-symbol i:nth-child(2) {
  top: 0;
  right: 0;
}

.three-balls-symbol i:nth-child(3) {
  right: 6px;
  bottom: 0;
}

.five-balls-symbol {
  width: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.five-balls-symbol i {
  width: 8px;
  height: 8px;
  background: currentColor;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
}

.retry-symbol {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.draw-date {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 13px;
  text-transform: capitalize;
}

.daily-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.draw-block {
  padding: 18px 10px;
  background: #f4f8f5;
  border-radius: 16px;
  text-align: center;
}

.draw-block small {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.number-ball {
  width: 74px;
  height: 74px;
  display: grid;
  margin: auto;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #12a9d9, var(--number-blue-dark));
  border: 5px solid var(--number-blue-soft);
  border-radius: 50%;
  box-shadow:
    0 7px 16px rgba(5, 96, 135, .20),
    inset 0 -7px 0 rgba(0, 0, 0, .10);
  font-family: "Manrope", sans-serif;
  font-size: 29px;
  font-weight: 800;
}

.number-ball-link,
.ticket-number-link {
  display: block;
  width: fit-content;
  margin-inline: auto;
  border-radius: 50%;
  text-decoration: none;
}

.number-ball-link .number-ball,
.ticket-number-link span {
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.number-ball-link:hover .number-ball,
.ticket-number-link:hover span {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.06);
}

.number-ball-link:focus-visible,
.ticket-number-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.number-stats-hint {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}

.draw-extra {
  min-height: 17px;
  margin: 10px 0 0;
  color: #8a6231;
  font-size: 10px;
  font-weight: 700;
}

.tiempos-draw-block {
  padding-bottom: 14px;
}

.extras-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #dce7e0;
}

.extra-result {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.extra-label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.status-ball,
.mega-ball {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.status-ball {
  border: 3px solid white;
  box-shadow: 0 0 0 1px #cbd6d0, inset 0 -4px 0 rgba(0, 0, 0, .08);
}

.status-ball-active {
  background: #e3483f;
  box-shadow: 0 0 0 1px #c73831, inset 0 -4px 0 rgba(0, 0, 0, .10);
}

.status-ball-inactive {
  background: white;
}

.mega-ball {
  color: white;
  background: #7557c8;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .13);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.text-button {
  width: 100%;
  margin-top: 18px;
  padding: 12px 0 0;
  color: var(--green-700);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.text-button span {
  float: right;
  transition: transform .2s ease;
}

.text-button[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.history-panel {
  margin-top: 16px;
  overflow: hidden;
  background: #f5f8f6;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.history-table-head {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, .55fr);
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  color: var(--muted);
  background: #e8f0eb;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.history-table-head span:first-child {
  text-align: left;
}

.history-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, .55fr);
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  background: white;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-date {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.history-date strong {
  color: var(--green-950);
  font-size: 11px;
}

.history-date small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-inline: auto;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #12a9d9, var(--number-blue-dark));
  border: 3px solid #d8f3fc;
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(5, 96, 135, .16);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.history-number-evening {
  background: linear-gradient(145deg, #f4a248, #d66a36);
  border-color: #ffe4c8;
  box-shadow: 0 5px 10px rgba(176, 81, 34, .16);
}

.history-number-night {
  background: linear-gradient(145deg, #7771d8, #34339a);
  border-color: #dedcff;
  box-shadow: 0 5px 10px rgba(52, 51, 154, .16);
}

.history-number-link {
  display: block;
  width: fit-content;
  margin-inline: auto;
  border-radius: 50%;
  text-decoration: none;
}

.history-number-link .history-number {
  transition: transform .18s ease, filter .18s ease;
}

.history-number-link:hover .history-number {
  transform: translateY(-2px) scale(1.07);
  filter: brightness(1.06);
}

.history-number-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.lotto-card,
.revancha-card {
  min-height: 245px;
}

.lotto-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lotto-balls span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--green-950);
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: inset 0 -7px 0 rgba(124, 86, 0, .13);
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
}

.lotto-balls-alt span {
  color: white;
  background: var(--orange);
}

.national-card {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  align-items: center;
  gap: 40px;
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(248, 201, 40, .20), transparent 30%),
    var(--green-900);
}

.national-card .game-tag,
.national-card .draw-date {
  color: #9bc4b1;
}

.national-prizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.prize {
  padding: 18px;
  color: var(--ink);
  background: white;
  border-radius: 16px;
  text-align: center;
}

.prize small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prize strong {
  display: block;
  margin-top: 7px;
  font-family: "Manrope", sans-serif;
  font-size: 27px;
}

.empty-state {
  padding: 20px;
  color: var(--muted);
  background: #f4f6f4;
  border-radius: 14px;
  font-size: 13px;
  text-align: center;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 50px;
  padding: 25px 30px;
  background: #e4efe9;
  border-radius: var(--radius);
}

.trust-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 25px;
  border-right: 1px solid #c8d9d0;
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--green-700);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.trust-strip p {
  display: grid;
  margin: 0;
}

.trust-strip strong {
  font-size: 13px;
}

.trust-strip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.ad-slot-bottom {
  margin-bottom: 70px;
}

.about-results {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 50px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  padding: 42px;
  background: white;
  border: 1px solid rgba(11, 83, 62, .08);
  border-radius: var(--radius);
}

.about-results h2 {
  max-width: 500px;
  margin: 8px 0 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.about-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

footer {
  padding: 42px 0;
  color: #a9beb4;
  background: var(--green-950);
}

/* Paleta inspirada en el logo: amarilla, celeste, verde vivo y azul profundo. */
.result-card {
  border-color: rgba(8, 168, 215, .18);
}

.game-icon-sun {
  color: var(--green-950);
  background: var(--yellow);
}

.game-icon-moon {
  background: var(--number-blue);
}

.game-icon-lotto {
  color: white;
  background: var(--green-700);
}

.game-icon-revancha {
  color: white;
  background: var(--green-900);
}

.trust-strip {
  background: linear-gradient(105deg, #e8fbff, #f2ffe9);
}

.trust-icon {
  background: var(--number-blue);
}

:root[data-theme="dark"] .trust-strip {
  background: #11133e;
}

:root[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 74% 42%, rgba(5, 94, 145, .24), transparent 34%),
    radial-gradient(circle at 28% 100%, rgba(0, 106, 45, .14), transparent 34%),
    linear-gradient(125deg, #030416, #090a3d);
}

:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .about-section,
:root[data-theme="dark"] .lotto-card {
  background: #101238;
  border-color: #292d68;
}

:root[data-theme="dark"] .daily-draw,
:root[data-theme="dark"] .history-row,
:root[data-theme="dark"] .lotto-result {
  background: #171a49;
}

:root[data-theme="dark"] .status-message,
:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .about-results {
  color: var(--ink);
  background: #10231c;
  border-color: #223a30;
}

:root[data-theme="dark"] .draw-block,
:root[data-theme="dark"] .empty-state {
  background: #163229;
}

:root[data-theme="dark"] .extras-row {
  border-color: #29483b;
}

:root[data-theme="dark"] .text-button,
:root[data-theme="dark"] .history-panel,
:root[data-theme="dark"] .history-row {
  border-color: var(--line);
}

:root[data-theme="dark"] .history-panel,
:root[data-theme="dark"] .history-table-head {
  background: #132a22;
}

:root[data-theme="dark"] .history-row {
  background: #163229;
}

:root[data-theme="dark"] .history-date strong {
  color: var(--white);
}

:root[data-theme="dark"] .trust-strip {
  background: #102d24;
}

:root[data-theme="dark"] .trust-strip > div {
  border-color: #29483b;
}

:root[data-theme="dark"] .national-card {
  background:
    radial-gradient(circle at 100% 0, rgba(248, 201, 40, .20), transparent 30%),
    var(--green-900);
}

:root[data-theme="dark"] .national-card .prize {
  color: #13231d;
  background: #f7f5ee;
}

:root[data-theme="dark"] .lotto-card,
:root[data-theme="dark"] .revancha-card {
  background: #10231c;
}

.prize .prize-series {
  margin-top: 7px;
  color: #34375f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.national-list-link {
  margin-top: 18px;
  padding-inline: 0;
  color: var(--yellow);
  border-top-color: rgba(255, 255, 255, .18);
}

.lotto-list-link {
  display: block;
  clear: both;
  margin-top: 28px;
  padding-top: 15px;
  padding-inline: 0;
}

:root[data-theme="dark"] .national-card {
  background:
    radial-gradient(circle at 100% 0, rgba(8, 168, 215, .10), transparent 34%),
    linear-gradient(135deg, #030416, #080932);
  border-color: #242856;
}

:root[data-theme="dark"] .national-card .game-tag,
:root[data-theme="dark"] .national-card .draw-date {
  color: #c4c9ef;
}

:root[data-theme="dark"] .national-card .prize {
  color: #11144d;
  background: #f8f8ff;
}

:root[data-theme="dark"] .national-card .prize-series {
  color: #34375f;
}

@media (min-width: 851px) {
  .number-ball {
    width: 90px;
    height: 90px;
    border-width: 6px;
    font-size: 35px;
  }

  .status-ball,
  .mega-ball {
    width: 36px;
    height: 36px;
  }

  .mega-ball {
    font-size: 13px;
  }

  .lotto-balls span {
    width: 76px;
    height: 76px;
    font-size: 27px;
  }

  .hero-ticket .ticket-balls-single span {
    width: 76px;
    height: 76px;
    font-size: 31px;
  }
}

.footer-inner {
  display: grid;
  grid-template-columns: .7fr 1.6fr .5fr;
  align-items: center;
  gap: 40px;
  font-size: 11px;
  line-height: 1.6;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.brand-logo-small {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.footer-inner p {
  margin: 0;
}

.copyright {
  text-align: right;
}

@media (max-width: 850px) {
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    color: var(--white);
    background: #0b0c7f;
    border: 1px solid rgba(255, 255, 255, .14);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 35px rgba(0, 0, 35, .28);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
    border-radius: 10px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    color: var(--green-950);
    background: var(--yellow);
  }

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-tickets {
    display: none;
  }

  .result-card-wide {
    grid-column: 1 / -1;
  }

  .national-card {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip > div {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid #c8d9d0;
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-results {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .copyright {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .hero-inner,
  .results-section,
  .trust-strip,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .header-action {
    padding: 10px 14px;
    font-size: 11px;
  }

  .main-nav {
    right: 14px;
    left: 14px;
  }

  .theme-toggle {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .hero,
  .hero-inner {
    min-height: 430px;
  }

  .hero-inner {
    padding-block: 60px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-text {
    font-size: 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-card,
  .national-card {
    grid-column: 1;
    padding: 22px;
  }

  .daily-results {
    gap: 6px;
  }

  .draw-block {
    min-width: 0;
    padding: 15px 4px;
  }

  .tiempos-draw-block .extras-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .tiempos-draw-block .extra-result {
    width: 26px;
    display: flex;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
  }

  .tiempos-draw-block .extra-label {
    display: none;
  }

  .tiempos-draw-block .status-ball,
  .tiempos-draw-block .mega-ball {
    width: 26px;
    height: 26px;
  }

  .tiempos-draw-block .mega-ball {
    font-size: 9px;
  }

  .number-ball {
    width: 52px;
    height: 52px;
    font-size: 21px;
  }

  .lotto-balls {
    gap: 7px;
  }

  .lotto-balls span {
    width: 47px;
    height: 47px;
    font-size: 18px;
  }

  .national-prizes {
    grid-template-columns: 1fr;
  }

  .ad-slot {
    width: calc(100% - 28px);
  }

  .about-results {
    width: calc(100% - 28px);
    padding: 28px 22px;
  }

  .about-results h2 {
    line-height: 1.22;
  }
}

@media (min-width: 901px) {
  body {
    font-size: 17px;
  }

  body :where(p, small, li, td, th, label, button, input, select, textarea) {
    font-size: max(15px, .94em) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.home-date-picker {
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 42px auto 70px;
  padding: clamp(38px, 6vw, 64px);
  border: 1px solid color-mix(in srgb, var(--border-color, #e2e4ef) 75%, #7775db);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 222, 49, .2), transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(41, 35, 167, .13), transparent 32%),
    var(--card-bg, #fff);
  box-shadow: 0 24px 60px rgba(20, 20, 79, .1);
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.home-date-picker > div { max-width: 620px; }
.home-date-picker h2 { margin: 8px 0 12px; font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.1 Manrope, sans-serif; }
.home-date-picker p:last-child { margin: 0; color: var(--muted, #62647a); }
.home-date-picker form {
  width: min(100%, 610px);
  padding: 18px;
  border: 1px solid var(--border-color, #e2e4ef);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-bg, #fff) 92%, #f1f1ff);
  box-shadow: 0 12px 30px rgba(20, 20, 79, .08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  text-align: left;
}
.home-date-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: .65fr 1.35fr .8fr;
  gap: 8px;
}
.home-date-fields legend {
  width: 100%;
  margin-bottom: 8px;
  padding-left: 3px;
  color: var(--muted, #62647a);
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-date-fields label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.home-date-picker select,
.home-date-picker button { min-height: 52px; font: inherit; border-radius: 12px; }
.home-date-picker select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid color-mix(in srgb, var(--border-color, #cdd0df) 75%, #7775db);
  outline: none;
  background: var(--card-bg, #fff);
  color: var(--text-color, #17182a);
  font-weight: 700;
  color-scheme: light dark;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.home-date-picker select:focus { border-color: #6763dc; box-shadow: 0 0 0 4px rgba(103, 99, 220, .14); }
.home-date-picker button {
  padding: 12px 24px;
  border: 0;
  background: linear-gradient(135deg, #090a70, #2923a7);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(9, 10, 112, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-date-picker button:hover { transform: translateY(-2px); box-shadow: 0 13px 26px rgba(9, 10, 112, .28); }
.home-date-picker button:active { transform: translateY(0); }

:root[data-theme="dark"] .home-date-picker {
  border-color: #30346d;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 222, 49, .12), transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(93, 87, 224, .18), transparent 32%),
    #101238;
}
:root[data-theme="dark"] .home-date-picker form { border-color: #30346d; background: #171943; }
:root[data-theme="dark"] .home-date-picker select { border-color: #3a3e78; background: #0d0f31; color: #f7f7ff; }

@media (max-width: 700px) {
  .home-date-picker { margin: 30px 18px 54px; padding: 34px 20px; }
  .home-date-picker form { padding: 14px; grid-template-columns: 1fr; }
  .home-date-fields { grid-template-columns: .65fr 1.35fr .85fr; }
  .home-date-picker button { width: 100%; }
}
