.nav-active {
  color: var(--yellow) !important;
}

.all-numbers-section {
  scroll-margin-top: 100px;
}

.all-numbers-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
}

.all-numbers-grid a {
  display: grid;
  min-height: 52px;
  place-items: center;
  color: var(--green-950);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  transition: transform .18s ease, color .18s ease, background .18s ease;
}

.all-numbers-grid a:hover,
.all-numbers-grid a:focus-visible {
  transform: translateY(-2px);
  color: var(--green-950);
  background: var(--yellow);
}

.number-detail-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 40%, rgba(8, 168, 215, .48), transparent 28%),
    linear-gradient(125deg, #07086f, #0a0ba0);
}

.number-detail-hero-inner,
.number-detail-content {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
}

.number-detail-hero-inner {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 70px;
  padding-block: 65px;
}

.number-detail-hero h1 {
  margin: 22px 0 16px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(48px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.number-detail-hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.number-detail-hero p:last-child {
  max-width: 570px;
  color: #d7e3ff;
  font-size: 18px;
  line-height: 1.7;
}

.number-hero-ball {
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  color: #07116c;
  background: var(--yellow);
  border: 12px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  box-shadow: 0 28px 70px rgba(0, 0, 40, .3);
  font-family: "Manrope", sans-serif;
  font-size: 72px;
  font-weight: 800;
}

.number-detail-content {
  padding-block: 55px 80px;
}

.number-index-summary {
  margin-bottom: 28px;
  padding: 28px 30px;
  color: var(--green-950);
  background: #eef8f3;
  border: 1px solid rgba(11, 83, 62, .1);
  border-radius: 22px;
}

.number-index-summary h2 {
  margin: 7px 0 14px;
  font-size: clamp(21px, 3vw, 28px);
  letter-spacing: -.04em;
  line-height: 1.15;
}

.number-detail-content .game-section-heading h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.14;
}

.number-detail-content .game-section-heading {
  margin-bottom: 20px;
}

.number-detail-content .schedule-distribution-heading h3 {
  font-size: 18px;
}

.number-index-summary p:not(.section-kicker) {
  max-width: 850px;
  margin: 8px 0;
  color: #39554b;
  line-height: 1.7;
}

.number-index-summary small {
  display: block;
  margin-top: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.number-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.number-summary-grid article {
  display: grid;
  gap: 8px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.number-summary-grid small,
.number-summary-grid span {
  color: var(--muted);
}

.number-summary-grid strong {
  color: var(--green-950);
  font-family: "Manrope", sans-serif;
  font-size: 27px;
}

.number-history-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(7, 8, 111, .05);
}

.number-stats-section {
  margin-bottom: 28px;
}

.number-frequency-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.number-frequency-grid article {
  display: grid;
  gap: 7px;
  padding: 20px 14px;
  text-align: center;
  background: #f3f5ff;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.number-frequency-grid small {
  color: var(--muted);
}

.number-frequency-grid strong {
  color: var(--green-950);
  font-family: "Manrope", sans-serif;
  font-size: 30px;
}

.schedule-distribution {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.schedule-distribution-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.schedule-distribution-heading h3,
.schedule-distribution-heading p {
  margin: 0;
}

.schedule-distribution-heading p {
  color: var(--muted);
  font-size: 13px;
}

.schedule-distribution-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 20px;
}

.distribution-dial-card {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 18px 12px;
  text-align: center;
  background: #f3f5ff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .2s ease;
}

.distribution-dial-card.is-dominant {
  transform: scale(1.08);
  background: #fff9d7;
  border-color: rgba(255, 201, 0, .5);
  box-shadow: 0 12px 28px rgba(255, 201, 0, .16);
}

.distribution-dial {
  --dial-size: 118px;
  display: grid;
  width: var(--dial-size);
  height: var(--dial-size);
  place-items: center;
  background: conic-gradient(var(--number-blue) calc(var(--percentage) * 1%), #dfe5ee 0);
  border-radius: 50%;
}

.distribution-dial > div {
  display: grid;
  width: calc(var(--dial-size) - 18px);
  height: calc(var(--dial-size) - 18px);
  place-items: center;
  align-content: center;
  gap: 1px;
  background: white;
  border-radius: 50%;
}

.distribution-dial-card.is-dominant .distribution-dial {
  --dial-size: 132px;
}

.distribution-dial strong {
  color: var(--green-950);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}

.schedule-icon {
  display: grid;
  height: 29px;
  place-items: center;
  color: #f1aa00;
  font-size: 28px;
  line-height: 1;
}

.schedule-icon-sunset {
  position: relative;
  width: 34px;
  overflow: hidden;
}

.schedule-icon-sunset::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: #dc7141;
  box-shadow: 0 5px 0 #dc7141;
}

.schedule-icon-sunset i {
  width: 22px;
  height: 22px;
  margin-top: 12px;
  background: #f28c45;
  border-radius: 50%;
}

.schedule-icon-moon {
  color: #6658c9;
  font-size: 32px;
}

.distribution-dial-card h4 {
  margin: 7px 0 0;
  color: var(--green-950);
  font-size: 15px;
}

.distribution-dial-card > span {
  color: var(--muted);
  font-size: 12px;
}

.number-history-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  border-bottom: 1px solid var(--line);
}

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

.number-day-card {
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) minmax(0, 2fr);
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: transparent;
  border-right: 1px solid var(--line);
}

.number-day-card > time {
  display: block;
  color: var(--green-950);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.day-draws {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.day-draw {
  position: relative;
  display: grid;
  min-height: 68px;
  place-items: center;
  align-content: center;
  gap: 3px;
  background: #f1f4f8;
  border: 1px solid transparent;
  border-radius: 15px;
}

.day-draw small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.day-draw strong {
  color: #58616d;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}

.day-draw.is-number-match {
  z-index: 1;
  transform: scale(1.04);
  color: #07116c;
  background: linear-gradient(145deg, #fff4a8, var(--yellow));
  border-color: rgba(7, 17, 108, .14);
  box-shadow: 0 10px 25px rgba(255, 214, 0, .3);
}

.day-draw.is-number-match small,
.day-draw.is-number-match strong {
  color: #07116c;
}

.history-rail {
  position: relative;
  min-height: 100%;
}

.connector-line {
  position: absolute;
  top: 50%;
  bottom: -50%;
  left: 18px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--number-blue) 0 4px, transparent 4px 8px);
}

.connector-dot {
  position: absolute;
  top: calc(50% - 6px);
  left: 13px;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: var(--number-blue);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(8, 168, 215, .3);
}

.history-rail strong {
  position: absolute;
  top: calc(100% - 10px);
  left: 31px;
  z-index: 2;
  padding: 2px 5px;
  color: var(--muted);
  background: white;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.number-history-average {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  color: var(--green-950);
  background: #eef8f3;
}

.number-history-average span {
  color: var(--muted);
  font-size: 13px;
}

.number-history-average strong {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.number-neighbors {
  padding: 25px;
  margin: 28px 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
}

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

.number-neighbors-heading h2 {
  margin: 4px 0 0;
}

.number-neighbors-heading > a {
  color: var(--green-950);
}

.nearby-number-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.nearby-number-buttons a,
.nearby-number-buttons span {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  color: var(--green-950);
  background: #f8fbf9;
  border: 2px solid #dbe7e1;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
}

.nearby-number-buttons a {
  padding-right: 18px;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(11, 83, 62, .07);
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}

.nearby-number-buttons a::after {
  content: "›";
  position: absolute;
  right: 12px;
  color: var(--number-blue);
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
}

.nearby-number-buttons a:hover,
.nearby-number-buttons a:focus-visible {
  transform: translateY(-3px);
  color: white;
  background: var(--number-blue-dark);
  border-color: var(--number-blue-dark);
}

.nearby-number-buttons a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.nearby-number-buttons a:hover::after,
.nearby-number-buttons a:focus-visible::after {
  color: white;
}

.nearby-number-buttons .is-current {
  color: #725b00;
  background: var(--yellow);
  border-color: #e7bc00;
  box-shadow: inset 0 -5px 0 rgba(124, 86, 0, .11);
}

.repeated-days-section {
  margin-top: 28px;
}

.repeated-days-list {
  display: grid;
  gap: 10px;
}

.repeated-day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.repeated-day-row > div:first-child {
  display: grid;
  gap: 5px;
}

.repeated-day-row small {
  color: var(--muted);
}

.repeated-schedules {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.repeated-schedules span {
  padding: 8px 11px;
  color: var(--green-950);
  background: var(--yellow);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.number-neighbors a {
  font-weight: 800;
}

@media (max-width: 760px) {
  .all-numbers-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .number-detail-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .number-hero-ball {
    width: 140px;
    height: 140px;
    font-size: 54px;
  }

  .number-frequency-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .number-frequency-grid article:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .number-detail-hero-inner,
  .number-detail-content {
    width: min(100% - 28px, 980px);
  }

  .number-summary-grid {
    grid-template-columns: 1fr;
  }

  .number-history-entry {
    grid-template-columns: minmax(0, 1fr) 66px;
  }

  .number-day-card {
    grid-template-columns: minmax(82px, .8fr) minmax(0, 2fr);
    gap: 6px;
    padding: 12px 10px;
  }

  .number-day-card > time {
    font-size: 13px;
    line-height: 1.35;
  }

  .schedule-distribution-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .history-rail strong {
    left: 27px;
    font-size: 10px;
  }

  .day-draws {
    gap: 6px;
  }

  .day-draw {
    min-height: 62px;
  }

  .day-draw strong {
    font-size: 19px;
  }

  .schedule-distribution-bars {
    gap: 7px;
  }

  .distribution-dial-card {
    padding: 12px 5px;
  }

  .distribution-dial,
  .distribution-dial-card.is-dominant .distribution-dial {
    --dial-size: 82px;
  }

  .distribution-dial > div {
    width: calc(var(--dial-size) - 13px);
    height: calc(var(--dial-size) - 13px);
  }

  .distribution-dial strong {
    font-size: 14px;
  }

  .schedule-icon {
    height: 22px;
    font-size: 21px;
  }

  .schedule-icon-moon {
    font-size: 25px;
  }

  .distribution-dial-card h4 {
    font-size: 12px;
  }

  .distribution-dial-card > span {
    font-size: 9px;
  }

  .number-history-average {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
  }

  .number-neighbors {
    padding: 20px 15px;
  }

  .number-neighbors-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nearby-number-buttons {
    gap: 6px;
  }

  .nearby-number-buttons a,
  .nearby-number-buttons span {
    min-height: 58px;
    font-size: 18px;
  }

  .repeated-day-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .repeated-schedules {
    justify-content: flex-start;
  }
}

:root[data-theme="dark"] .all-numbers-grid a,
:root[data-theme="dark"] .number-summary-grid article,
:root[data-theme="dark"] .number-frequency-grid article,
:root[data-theme="dark"] .number-day-card,
:root[data-theme="dark"] .repeated-day-row,
:root[data-theme="dark"] .number-neighbors {
  background: #10231c;
}

:root[data-theme="dark"] .number-history-list,
:root[data-theme="dark"] .history-rail strong {
  background: #10231c;
}

:root[data-theme="dark"] .number-history-average {
  color: var(--white);
  background: #173229;
}

:root[data-theme="dark"] .number-index-summary {
  color: var(--white);
  background: #173229;
}

:root[data-theme="dark"] .number-index-summary p:not(.section-kicker) {
  color: #c8d8d1;
}

:root[data-theme="dark"] .all-numbers-grid a,
:root[data-theme="dark"] .number-summary-grid strong,
:root[data-theme="dark"] .number-frequency-grid strong,
:root[data-theme="dark"] .nearby-number-buttons a {
  color: var(--white);
  background: #182a25;
  border-color: #30473f;
}

:root[data-theme="dark"] .nearby-number-buttons a:hover,
:root[data-theme="dark"] .nearby-number-buttons a:focus-visible {
  background: var(--number-blue-dark);
  border-color: var(--number-blue);
}

:root[data-theme="dark"] .distribution-dial-card {
  background: #182a25;
}

:root[data-theme="dark"] .distribution-dial-card.is-dominant {
  background: #343017;
}

:root[data-theme="dark"] .distribution-dial {
  background: conic-gradient(var(--number-blue) calc(var(--percentage) * 1%), #263853 0);
}

:root[data-theme="dark"] .distribution-dial > div {
  background: #10231c;
}

:root[data-theme="dark"] .distribution-dial strong,
:root[data-theme="dark"] .distribution-dial-card h4 {
  color: var(--white);
}

:root[data-theme="dark"] .number-day-card > time {
  color: var(--white);
}

:root[data-theme="dark"] .day-draw {
  background: #182a25;
}

:root[data-theme="dark"] .day-draw strong {
  color: #cbd7d2;
}

:root[data-theme="dark"] .day-draw.is-number-match {
  background: linear-gradient(145deg, #fff4a8, var(--yellow));
}

:root[data-theme="dark"] .day-draw.is-number-match small,
:root[data-theme="dark"] .day-draw.is-number-match strong {
  color: #07116c;
}

.game-hero {
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 80% 28%, rgba(8, 168, 215, .48), transparent 31%),
    radial-gradient(circle at 20% 100%, rgba(0, 185, 52, .22), transparent 32%),
    linear-gradient(125deg, #07086f, #0a0ba0);
}

.game-hero-inner,
.game-content {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.game-hero-inner {
  min-height: 490px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  gap: 70px;
  padding-block: 60px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  color: #c4d5ff;
  font-size: 11px;
  font-weight: 700;
}

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

.game-intro h1 {
  margin: 18px 0;
  font-size: clamp(54px, 7vw, 82px);
}

.game-intro > p:not(.eyebrow) {
  max-width: 440px;
  color: #e1e9ff;
  font-size: 16px;
  line-height: 1.65;
}

.latest-panel {
  padding: 30px;
  color: var(--ink);
  background: white;
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(0, 20, 14, .28);
}

.latest-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.latest-panel-head span {
  color: var(--green-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.latest-panel-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  letter-spacing: -.04em;
}

.latest-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.latest-draws {
  min-height: 160px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.latest-draw {
  min-width: 0;
  padding: 18px 10px 14px;
  background: #eefaff;
  border-radius: 18px;
  text-align: center;
}

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

.latest-draw .number-ball {
  width: 70px;
  height: 70px;
  font-size: 28px;
}

.latest-extras {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 13px;
}

.latest-extra {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.latest-extra small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.draw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.draw-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-ball {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cbd6d0;
}

.legend-red { background: #e3483f; }
.legend-white { background: white; }
.legend-mega {
  color: white;
  background: #7557c8;
  font-size: 6px;
  font-style: normal;
}

.game-loading {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
}

.game-content {
  padding: 50px 0 70px;
}

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

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

.game-section,
.stats-shell {
  margin-bottom: 65px;
}

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

.game-section-heading h2,
.insight-card h2,
.information-note h2 {
  margin: 7px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.045em;
}

.game-section-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.week-table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid rgba(11, 83, 62, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.week-table {
  width: 100%;
  border-collapse: collapse;
}

.week-table th {
  padding: 17px 22px;
  color: var(--muted);
  background: #eef5f1;
  font-size: 9px;
  letter-spacing: .1em;
  text-align: left;
  text-transform: uppercase;
}

.week-table td {
  padding: 18px 22px;
  border-bottom: 1px solid #e8eee9;
}

.week-table tr:last-child td {
  border-bottom: 0;
}

.week-date {
  min-width: 165px;
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.table-result {
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #12a9d9, var(--number-blue-dark));
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(5, 96, 135, .18);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.table-markers {
  display: flex;
  gap: 4px;
}

.table-markers .status-ball,
.table-markers .mega-ball {
  width: 22px;
  height: 22px;
  font-size: 8px;
}

.stats-shell {
  padding: 42px;
  background: #e7f0eb;
  border-radius: 30px;
}

.stats-heading {
  align-items: center;
}

.period-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.period-control > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.period-buttons {
  display: flex;
  padding: 4px;
  background: white;
  border-radius: 999px;
}

.period-buttons button {
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.period-buttons button.active {
  color: white;
  background: var(--green-800);
}

.rankings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ranking-card {
  padding: 27px;
  background: white;
  border-radius: 22px;
}

.ranking-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.ranking-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--orange);
  border-radius: 14px;
  font-size: 21px;
  font-weight: 800;
}

.overdue-card .ranking-symbol {
  background: #7557c8;
}

.ranking-head p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ranking-head h3 {
  margin: 3px 0 0;
  font-size: 19px;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 22px 46px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid #ebefec;
  counter-increment: rank;
}

.ranking-list li:last-child {
  border-bottom: 0;
}

.ranking-list li::before {
  content: counter(rank);
  color: #98a59e;
  font-size: 10px;
  font-weight: 800;
}

.rank-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #12a9d9, var(--number-blue-dark));
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(5, 96, 135, .18);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.rank-copy {
  display: grid;
}

.rank-copy strong {
  font-size: 12px;
}

.rank-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.rank-value {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
}

.overdue-card .rank-value {
  color: #7557c8;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  margin-bottom: 60px;
}

.insight-card {
  min-width: 0;
  padding: 32px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.insight-card h2 {
  font-size: 27px;
}

.schedule-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 25px;
}

.schedule-item {
  padding: 19px 10px;
  background: #eff6f2;
  border-radius: 16px;
  text-align: center;
}

.schedule-item small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-item strong {
  width: 56px;
  height: 56px;
  display: grid;
  margin: 10px auto 7px;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #12a9d9, var(--number-blue-dark));
  border-radius: 50%;
  box-shadow: 0 5px 13px rgba(5, 96, 135, .20);
  font-family: "Manrope", sans-serif;
  font-size: 21px;
}

.schedule-item span {
  color: var(--muted);
  font-size: 9px;
}

.reventado-insight {
  text-align: center;
}

.reventado-insight .section-kicker {
  text-align: left;
}

.reventado-insight h2 {
  text-align: left;
}

.percentage-ring {
  --percentage: 0;
  width: 132px;
  height: 132px;
  display: grid;
  margin: 25px auto 16px;
  place-items: center;
  background: conic-gradient(#e3483f calc(var(--percentage) * 1%), #edf1ee 0);
  border-radius: 50%;
}

.percentage-ring::before {
  content: "";
  width: 96px;
  height: 96px;
  grid-area: 1 / 1;
  background: white;
  border-radius: 50%;
}

.percentage-ring strong {
  z-index: 1;
  grid-area: 1 / 1;
  font-family: "Manrope", sans-serif;
  font-size: 25px;
}

.reventado-insight > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.information-note {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  color: #d6e9df;
  background: var(--green-900);
  border-radius: var(--radius);
}

.note-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green-900);
  background: var(--yellow);
  border-radius: 50%;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.information-note h2 {
  margin: 0 0 5px;
  color: white;
  font-size: 18px;
}

.information-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

:root[data-theme="dark"] .latest-panel,
:root[data-theme="dark"] .api-status,
:root[data-theme="dark"] .week-table-wrap,
:root[data-theme="dark"] .ranking-card,
:root[data-theme="dark"] .insight-card {
  color: var(--ink);
  background: #10231c;
  border-color: #223a30;
}

:root[data-theme="dark"] .latest-draw,
:root[data-theme="dark"] .schedule-item {
  background: #163229;
}

:root[data-theme="dark"] .draw-legend,
:root[data-theme="dark"] .week-table td,
:root[data-theme="dark"] .ranking-list li {
  border-color: var(--line);
}

:root[data-theme="dark"] .week-table th {
  background: #17352a;
}

:root[data-theme="dark"] .stats-shell {
  background: #0c2119;
}

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

:root[data-theme="dark"] .period-buttons button.active {
  background: var(--number-blue);
}

:root[data-theme="dark"] .percentage-ring::before {
  background: #10231c;
}

.monazos-latest-draw {
  justify-content: flex-start;
  gap: 16px;
  padding-bottom: 22px;
}

.monazos-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.monazos-summary > strong {
  display: block;
  margin: 16px 0 4px;
  color: var(--number-blue);
  font-family: "Manrope", sans-serif;
  font-size: clamp(54px, 7vw, 86px);
  font-weight: 800;
  line-height: 1;
}

.monazos-summary > p:last-child {
  max-width: 420px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

:root[data-theme="dark"] .latest-panel,
:root[data-theme="dark"] .api-status,
:root[data-theme="dark"] .week-table-wrap,
:root[data-theme="dark"] .ranking-card,
:root[data-theme="dark"] .insight-card {
  background: #101238;
  border-color: #292d68;
}

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

:root[data-theme="dark"] .latest-draw,
:root[data-theme="dark"] .schedule-item {
  background: #171a49;
}

:root[data-theme="dark"] .week-table th,
:root[data-theme="dark"] .period-buttons {
  background: #171a49;
}

:root[data-theme="dark"] .stats-shell {
  background: #0b0d2d;
}

:root[data-theme="dark"] .percentage-ring::before {
  background: #101238;
}

.national-game-hero .game-hero-inner {
  grid-template-columns: .7fr 1.3fr;
}

.national-latest-panel {
  min-width: 0;
}

.national-draw-number {
  margin: -12px 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.principal-prize {
  min-width: 0;
  padding: 18px 10px;
  background: #eefaff;
  border: 1px solid #d6f2fb;
  border-radius: 18px;
  text-align: center;
}

.principal-prize > small {
  display: block;
  min-height: 24px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.principal-number {
  width: 76px;
  height: 76px;
  display: grid;
  margin: 9px auto 10px;
  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 6px 14px rgba(5, 96, 135, .22);
  font-family: "Manrope", sans-serif;
  font-size: 29px;
  font-weight: 800;
}

.principal-prize-1 {
  background: #fffbea;
  border-color: #f7e77d;
}

.principal-prize-1 .principal-number {
  color: #07086f;
  background: var(--yellow);
  border-color: #fff7a6;
  box-shadow: 0 6px 14px rgba(150, 122, 0, .18);
}

.principal-series {
  color: var(--muted);
  font-size: 10px;
}

.principal-series strong {
  color: var(--ink);
  font-size: 14px;
}

.principal-prize > p {
  margin: 8px 0 0;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
}

.ticket-search-section {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 42px;
  margin-bottom: 65px;
  padding: 38px;
  background: white;
  border: 1px solid rgba(8, 168, 215, .18);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.search-copy h2 {
  margin: 7px 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.045em;
}

.search-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.ticket-search {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 13px;
}

.ticket-search label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ticket-search label small {
  color: var(--muted);
  font-size: 8px;
}

.ticket-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  color: var(--ink);
  background: #f7f9ff;
  border: 2px solid #dfe2f2;
  border-radius: 14px;
  outline: 0;
  font-size: 20px;
  font-weight: 800;
}

.ticket-search input:focus {
  background: white;
  border-color: var(--number-blue);
  box-shadow: 0 0 0 4px rgba(8, 168, 215, .13);
}

.ticket-search button {
  min-height: 48px;
  color: white;
  background: var(--green-900);
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.ticket-search .clear-search {
  color: var(--green-900);
  background: var(--yellow);
}

.search-feedback {
  grid-column: 2;
  margin-top: -24px;
  color: var(--muted);
  font-size: 11px;
}

.search-feedback.has-result {
  grid-column: 2;
  margin-top: -18px;
  padding: 16px 18px;
  color: var(--ink);
  background: #f2fbf7;
  border: 1px solid rgba(11, 83, 62, .16);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
}

.search-feedback.has-result strong {
  display: block;
  color: var(--green-900);
  font-size: 15px;
}

.search-feedback.has-result ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.national-prize-list {
  overflow: hidden;
  background: white;
  border: 1px solid rgba(8, 168, 215, .18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.national-prize-row {
  display: grid;
  grid-template-columns: 42px 70px 90px minmax(140px, 1fr) minmax(130px, auto);
  align-items: center;
  gap: 17px;
  min-height: 76px;
  padding: 11px 22px;
  border-bottom: 1px solid var(--line);
}

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

.national-prize-row.is-principal {
  background: #fffceb;
}

.prize-order {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.prize-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #12a9d9, var(--number-blue-dark));
  border-radius: 50%;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.is-principal .prize-number {
  color: #07086f;
  background: var(--yellow);
}

.prize-series-value {
  display: grid;
}

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

.prize-series-value strong {
  margin-top: 2px;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

.prize-kind {
  color: var(--muted);
  font-size: 11px;
}

.prize-amount {
  color: var(--green-700);
  font-size: 13px;
  text-align: right;
}

.search-empty {
  padding: 52px 20px;
  text-align: center;
}

.search-empty strong {
  font-size: 20px;
}

.search-empty p {
  margin: 8px auto 0;
  max-width: 500px;
  color: var(--muted);
  font-size: 12px;
}

:root[data-theme="dark"] .principal-prize,
:root[data-theme="dark"] .ticket-search-section,
:root[data-theme="dark"] .national-prize-list {
  background: #101238;
  border-color: #292d68;
}

:root[data-theme="dark"] .principal-prize-1,
:root[data-theme="dark"] .national-prize-row.is-principal {
  background: #292817;
}

:root[data-theme="dark"] .ticket-search input {
  color: var(--ink);
  background: #171a49;
  border-color: #34386e;
}

:root[data-theme="dark"] .ticket-search input:focus {
  background: #1d2055;
  border-color: var(--number-blue);
}

:root[data-theme="dark"] .search-feedback.has-result {
  background: #163229;
  border-color: #2a4b3d;
}

:root[data-theme="dark"] .search-feedback.has-result strong {
  color: #8ce5bc;
}

@media (max-width: 900px) {
  .national-game-hero .game-hero-inner,
  .ticket-search-section {
    grid-template-columns: 1fr;
  }

  .search-feedback {
    grid-column: 1;
    margin-top: 0;
  }

  .search-feedback.has-result {
    grid-column: 1;
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .principal-prizes {
    gap: 6px;
  }

  .principal-prize {
    padding: 14px 3px;
  }

  .principal-number {
    width: 58px;
    height: 58px;
    border-width: 4px;
    font-size: 22px;
  }

  .principal-prize > p {
    font-size: 9px;
  }

  .ticket-search-section {
    gap: 24px;
    padding: 26px 18px;
  }

  .ticket-search {
    grid-template-columns: 1fr;
  }

  .national-prize-row {
    grid-template-columns: 22px 50px 64px 1fr;
    gap: 8px;
    padding: 12px 10px;
  }

  .prize-number {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .prize-kind {
    display: none;
  }

  .prize-amount {
    grid-column: 2 / -1;
    padding-left: 2px;
    text-align: left;
  }
}

.lotto-hero-inner {
  grid-template-columns: .62fr 1.38fr;
}

.lotto-latest-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lotto-latest-card {
  min-width: 0;
  padding: 25px 20px;
}

.lotto-latest-card .latest-panel-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
}

.lotto-latest-card .latest-panel-head > p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.large-lotto-balls {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.lotto-page-ball {
  width: 54px;
  height: 54px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #12a9d9, var(--number-blue-dark));
  border: 4px solid var(--number-blue-soft);
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(5, 96, 135, .2);
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.lotto-page-ball-revancha {
  background: linear-gradient(145deg, #13c844, #008c28);
  border-color: #dffbe7;
  box-shadow: 0 5px 12px rgba(0, 140, 40, .18);
}

.lotto-no-result {
  color: var(--muted);
  font-size: 12px;
}

.lotto-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lotto-history-card {
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(8, 168, 215, .18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lotto-history-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 24px;
  background: #f1fbff;
  border-bottom: 1px solid var(--line);
}

.lotto-history-head > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lotto-history-head h3 {
  margin: 3px 0 0;
  font-size: 20px;
}

.lotto-history-icon {
  width: 45px;
  height: 45px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: white;
  background: var(--number-blue);
  border-radius: 14px;
  font-size: 25px;
  font-weight: 800;
}

.lotto-history-icon-main i {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.lotto-history-icon-revancha {
  background: var(--green-700);
}

.lotto-history-row {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}

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

.lotto-history-row > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: capitalize;
}

.schedule-page-hero .game-hero-inner {
  grid-template-columns: .9fr 1.1fr;
}

.schedule-summary {
  padding: 32px;
  color: var(--ink);
  background: white;
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(0, 20, 14, .28);
}

.schedule-summary > span {
  color: var(--green-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.schedule-summary h2 {
  margin: 7px 0 22px;
  font-size: 29px;
  letter-spacing: -.04em;
}

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

.daily-time {
  padding: 18px 8px;
  background: #eff8ff;
  border-radius: 16px;
  text-align: center;
}

.daily-time small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.daily-time strong {
  color: var(--number-blue-dark);
  font-family: "Manrope", sans-serif;
  font-size: 19px;
}

.schedule-page-content {
  padding-block: 70px;
}

.schedule-page-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

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

.schedule-page-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.game-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-schedule-card {
  padding: 26px;
  background: white;
  border: 1px solid rgba(8, 168, 215, .18);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.game-schedule-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.game-schedule-card h3 {
  margin: 4px 0 0;
  font-size: 23px;
}

.game-schedule-card header p {
  margin: 0;
  color: var(--green-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.schedule-frequency {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--number-blue-dark);
  background: #eaf8ff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.schedule-time-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-time-list li {
  padding: 10px 13px;
  color: var(--ink);
  background: #f4f6fb;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.weekly-schedule {
  margin-top: 65px;
}

.week-schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.week-schedule-day {
  min-width: 0;
  padding: 18px 10px;
  background: #eef7f2;
  border-radius: 16px;
}

.week-schedule-day h3 {
  margin: 0 0 13px;
  color: var(--green-900);
  font-size: 13px;
}

.week-schedule-day p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.week-schedule-day strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.schedule-source {
  margin-top: 30px;
  padding: 20px 22px;
  color: var(--muted);
  background: #f6f7fa;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.6;
}

.schedule-source a {
  color: var(--number-blue-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.international-schedule {
  margin-top: 78px;
  padding-top: 65px;
  border-top: 1px solid var(--line);
}

.international-schedule-card {
  position: relative;
  overflow: hidden;
}

.international-schedule-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--number-blue), var(--green-700));
  content: "";
}

.schedule-detail {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.international-source {
  margin-top: 24px;
}

.combined-schedule {
  margin-top: 78px;
  padding-top: 65px;
  border-top: 1px solid var(--line);
}

.combined-schedule-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid rgba(8, 168, 215, .18);
  border-radius: 20px;
  box-shadow: var(--shadow);
  outline: 0;
}

.combined-schedule-wrap:focus-visible {
  box-shadow: 0 0 0 4px rgba(8, 168, 215, .18), var(--shadow);
}

.combined-schedule-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

.combined-schedule-table caption {
  padding: 14px 18px;
  color: var(--muted);
  background: #f7f9fc;
  font-size: 11px;
  text-align: left;
}

.combined-schedule-table th,
.combined-schedule-table td {
  min-width: 135px;
  padding: 13px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.combined-schedule-table th:last-child,
.combined-schedule-table td:last-child {
  border-right: 0;
}

.combined-schedule-table tbody tr:last-child th,
.combined-schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.combined-schedule-table thead th {
  color: white;
  background: var(--green-900);
  font-size: 12px;
}

.combined-schedule-table thead th:first-child,
.combined-schedule-table tbody th {
  position: sticky;
  z-index: 2;
  left: 0;
}

.combined-schedule-table tbody th {
  min-width: 112px;
  color: var(--green-900);
  background: #eef7f2;
  font-size: 12px;
  white-space: nowrap;
}

.combined-schedule-table sup {
  color: var(--number-blue-dark);
}

.schedule-chip {
  display: block;
  width: fit-content;
  margin: 0 0 5px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.chip-costa-rica {
  color: #075337;
  background: #dff7ea;
}

.chip-nica {
  color: #064f78;
  background: #dff3ff;
}

.chip-honduras {
  color: #173c8f;
  background: #e5ebff;
}

.chip-panama {
  color: #8d1932;
  background: #ffe5eb;
}

.chip-new-york {
  color: #684900;
  background: #fff0b5;
}

.no-draw {
  color: #b6bdc7;
  text-align: center !important;
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.schedule-legend .schedule-chip {
  margin: 0;
}

.schedule-table-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

:root[data-theme="dark"] .schedule-summary,
:root[data-theme="dark"] .game-schedule-card {
  background: #171a49;
  border-color: #34386e;
}

:root[data-theme="dark"] .daily-time,
:root[data-theme="dark"] .schedule-frequency {
  background: #20255d;
}

:root[data-theme="dark"] .daily-time strong,
:root[data-theme="dark"] .schedule-frequency {
  color: #81dfff;
}

:root[data-theme="dark"] .schedule-time-list li,
:root[data-theme="dark"] .schedule-source {
  background: #20234e;
}

:root[data-theme="dark"] .week-schedule-day {
  background: #163229;
}

:root[data-theme="dark"] .week-schedule-day h3 {
  color: #8ce5bc;
}

:root[data-theme="dark"] .schedule-source a {
  color: #81dfff;
}

:root[data-theme="dark"] .combined-schedule-wrap,
:root[data-theme="dark"] .combined-schedule-table caption {
  background: #171a49;
}

:root[data-theme="dark"] .combined-schedule-table tbody th {
  color: #8ce5bc;
  background: #163229;
}

:root[data-theme="dark"] .combined-schedule-table th,
:root[data-theme="dark"] .combined-schedule-table td {
  border-color: #34386e;
}

.history-lotto-balls {
  display: flex;
  gap: 8px;
}

.history-lotto-balls .lotto-page-ball {
  width: 46px;
  height: 46px;
  border-width: 3px;
  font-size: 16px;
}

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

:root[data-theme="dark"] .lotto-history-head {
  background: #171a49;
}

@media (min-width: 1100px) {
  .large-lotto-balls .lotto-page-ball {
    width: 61px;
    height: 61px;
    font-size: 22px;
  }
}

@media (max-width: 1000px) {
  .lotto-hero-inner {
    grid-template-columns: 1fr;
  }

  .schedule-page-hero .game-hero-inner {
    grid-template-columns: 1fr;
  }

  .week-schedule-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .lotto-latest-grid,
  .lotto-history-grid {
    grid-template-columns: 1fr;
  }

  .game-schedule-grid {
    grid-template-columns: 1fr;
  }

  .game-schedule-card-wide {
    grid-column: auto;
  }

  .week-schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .lotto-latest-card {
    padding-inline: 13px;
  }

  .large-lotto-balls,
  .history-lotto-balls {
    gap: 4px;
  }

  .large-lotto-balls .lotto-page-ball,
  .history-lotto-balls .lotto-page-ball {
    width: 45px;
    height: 45px;
    border-width: 3px;
    font-size: 16px;
  }

  .lotto-history-row {
    padding-inline: 14px;
  }

  .schedule-summary {
    padding: 24px 18px;
  }

  .daily-times {
    gap: 6px;
  }

  .daily-time {
    padding-inline: 4px;
  }

  .daily-time strong {
    font-size: 16px;
  }

  .week-schedule-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .latest-draw .number-ball {
    width: 92px;
    height: 92px;
    font-size: 36px;
  }

  .latest-extras .status-ball,
  .latest-extras .mega-ball {
    width: 38px;
    height: 38px;
  }

  .table-number {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .table-markers .status-ball,
  .table-markers .mega-ball {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .rank-number {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .ranking-list li {
    grid-template-columns: 22px 58px 1fr auto;
    padding-block: 13px;
  }

  .schedule-item strong {
    width: 72px;
    height: 72px;
    font-size: 27px;
  }
}

@media (max-width: 900px) {
  .game-hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .game-intro h1 {
    font-size: 62px;
  }

  .rankings-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .stats-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .game-hero-inner,
  .game-content {
    width: calc(100% - 28px);
  }

  .game-hero-inner {
    padding-block: 42px;
  }

  .breadcrumbs {
    margin-bottom: 24px;
  }

  .game-intro h1 {
    font-size: 50px;
  }

  .latest-panel {
    padding: 20px 14px;
    border-radius: 22px;
  }

  .latest-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .latest-draws {
    gap: 6px;
  }

  .latest-draw {
    padding: 14px 3px 12px;
  }

  .latest-draw .number-ball {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .latest-extra small {
    display: none;
  }

  .latest-extras {
    gap: 7px;
  }

  .latest-extras .status-ball,
  .latest-extras .mega-ball {
    width: 25px;
    height: 25px;
  }

  .draw-legend {
    gap: 10px;
  }

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

  .week-table th,
  .week-table td {
    padding: 14px 12px;
  }

  .week-date {
    min-width: 130px;
  }

  .stats-shell {
    padding: 27px 14px;
    border-radius: 24px;
  }

  .period-control {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .period-buttons {
    width: 100%;
    overflow-x: auto;
  }

  .period-buttons button {
    flex: 1 0 auto;
    padding-inline: 10px;
  }

  .ranking-card {
    padding: 22px 16px;
  }

  .ranking-list li {
    grid-template-columns: 18px 42px 1fr auto;
    gap: 7px;
  }

  .schedule-highlights {
    gap: 6px;
  }

  .schedule-item {
    padding-inline: 4px;
  }

  .information-note {
    align-items: flex-start;
    padding: 24px 20px;
  }
}

/* Archivo diario de resultados */
.daily-hero{padding:38px 24px 32px;background:linear-gradient(135deg,#07086f,#2923a7);color:#fff}.daily-hero-inner{max-width:1180px;margin:auto}.daily-hero-content{display:grid;grid-template-columns:minmax(0,.85fr) minmax(320px,1.15fr);align-items:end;gap:48px;margin-top:22px}.daily-hero h1{font:800 clamp(2.15rem,5vw,3.7rem)/1 Manrope,sans-serif;margin:11px 0 8px}.daily-hero p{max-width:720px}.daily-full-date{margin:0;color:#d9dcff;font-weight:600}.daily-schedule{padding:20px 24px;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.08)}.daily-schedule small{display:block;margin-bottom:7px;color:#bdc4ff;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.daily-schedule p{margin:0;font-weight:700;line-height:1.55}.daily-hero .breadcrumbs,.daily-hero .breadcrumbs a{color:#d9dcff}.daily-nav{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.daily-nav a{padding:9px 14px;border-radius:999px;background:#fff;color:#090a70;font-size:13px;font-weight:700}.daily-results-section{padding-top:48px}.date-picker-section{max-width:1180px;margin:30px auto 60px;padding:34px;border:1px solid var(--border-color,#e2e4ef);border-radius:24px;background:var(--card-bg,#fff);display:flex;justify-content:space-between;gap:28px;align-items:end}.date-picker-section form{display:grid;grid-template-columns:auto auto;gap:8px;align-items:end}.date-picker-section label{grid-column:1/-1;font-weight:700}.date-picker-section input,.date-picker-section button{font:inherit;padding:12px 14px;border-radius:10px;border:1px solid #cdd0df}.date-picker-section button{background:#090a70;color:#fff;font-weight:700;cursor:pointer}.daily-note{max-width:1180px;margin:0 auto 60px}.daily-empty{grid-column:1/-1;padding:45px;text-align:center}.latest-draw .number-ball{display:inline-grid;place-items:center;text-decoration:none}.daily-results-section .latest-draws{display:flex;gap:15px;flex-wrap:wrap;margin-top:22px}@media(max-width:700px){.daily-hero-content{grid-template-columns:1fr;gap:20px}.daily-schedule{padding:16px 18px}.date-picker-section{margin-inline:18px;display:block}.date-picker-section form{margin-top:24px;grid-template-columns:1fr}.date-picker-section label{grid-column:auto}.daily-note{margin-inline:18px}.daily-hero{padding:28px 18px 25px}}
.number-jump-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.number-jump-form label{width:100%;font-weight:700}.number-jump-form input,.number-jump-form button{padding:13px 15px;border-radius:10px;border:1px solid #cdd0df;font:inherit}.number-jump-form button{background:#090a70;color:#fff;font-weight:700;cursor:pointer}.popular-number-links{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.popular-number-links a{padding:7px 11px;border:1px solid #d8dae7;border-radius:9px;font-weight:700}.number-summary-grid,.frequency-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:36px}.number-summary-grid article,.frequency-grid article{padding:24px;border-radius:18px;background:var(--card-bg,#fff);border:1px solid var(--border-color,#e4e5ef);display:flex;flex-direction:column;gap:8px}.number-summary-grid strong,.frequency-grid strong{font:800 1.65rem Manrope,sans-serif}.nearby-number-nav{display:flex;justify-content:center;gap:10px;margin:35px 0}.nearby-number-nav a,.nearby-number-nav span{padding:12px;border-radius:10px;border:1px solid #d8dae7;font-weight:800}.nearby-number-nav .is-current{background:#090a70;color:white}
.daily-national-card{grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr)}.daily-national-prizes{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}.daily-national-prize{min-width:0}.daily-national-prize strong{font-size:clamp(24px,4vw,34px)}@media(max-width:700px){.daily-national-card{grid-template-columns:1fr}.daily-national-prizes{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.daily-national-prize{padding:14px 5px}.daily-national-prize strong{font-size:22px}.daily-national-prize small{font-size:7px}.daily-national-prize .prize-series{font-size:9px}}
.daily-results-section .tiempos-card .latest-draws,.daily-results-section .monazos-card .latest-draws{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}.daily-results-section .tiempos-draw-block,.daily-results-section .monazos-card .latest-draw{min-width:0;width:100%;margin:0;text-align:center}.daily-results-section .monazos-card .latest-draw{display:flex;align-items:center;flex-direction:column;justify-content:flex-start}.daily-results-section .monazos-card .number-ball{margin-inline:auto}@media(max-width:420px){.daily-results-section .tiempos-card .latest-draws,.daily-results-section .monazos-card .latest-draws{gap:4px}}
:root[data-theme="dark"] .number-summary-grid article,:root[data-theme="dark"] .frequency-grid article{color:#f3f4ff;background:#101238;border-color:#292d68}:root[data-theme="dark"] .number-summary-grid article small,:root[data-theme="dark"] .number-summary-grid article span,:root[data-theme="dark"] .frequency-grid article small{color:#b9bee8}:root[data-theme="dark"] .number-summary-grid article strong,:root[data-theme="dark"] .frequency-grid article strong{color:#fff}
