:root {
  --blue-950: #153278;
  --blue-900: #1c3f93;
  --blue-800: #2352af;
  --blue-700: #1f74c9;
  --cyan-600: #13a4d7;
  --cyan-500: #1cb6e4;
  --gold-500: #f7b328;
  --gold-400: #ffd25e;
  --text: #1c2d4a;
  --muted: #677895;
  --bg: #efefef;
  --surface: #ffffff;
  --line: #dadde5;
  --soft: #f7f8fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site-body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo { display: flex; align-items: center; gap: 12px; color: var(--blue-900); }
.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #255db9, #1bb5e5);
  color: #fff;
  font-size: 40px;
  font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: .88; }
.brand-text strong { font-size: 26px; }
.brand-text small { font-size: 17px; letter-spacing: .7px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: #2b2b2b;
}
.main-nav a { padding: 12px 0; }
.main-nav a:hover { color: var(--blue-900); }
.main-nav .nav-cta {
  background: var(--blue-900);
  color: #fff;
  padding: 14px 18px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(28, 63, 147, .16);
  border-radius: 12px;
  background: #fff;
  color: var(--blue-900);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 37, 84, .08);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.hero-banner {
  background: linear-gradient(90deg, #0d5ea9 0%, #087bb4 40%, #13a5d8 100%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: 20px;
  min-height: 342px;
}
.hero-copy {
  padding: 36px 0 44px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: .92;
}
.hero-headline { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.4rem);
  line-height: .86;
  font-weight: 800;
}
.hero-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: .5px;
}
.hero-subtitle {
  margin: 12px 0 26px;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  font-weight: 800;
  letter-spacing: .3px;
}
.btn-secondary,
.table-qr-link,
.btn-file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 41, 94, .15);
  background: #fff;
  color: var(--blue-900);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-qr {
  white-space: nowrap;
  flex: 0 0 auto;
}
.btn-hero {
  min-width: 330px;
  background: #2748a4;
  color: #fff;
  font-size: 1rem;
}
.hero-visual {
  position: relative;
  min-height: 342px;
}
.visual-ball {
  position: absolute;
  border-radius: 50%;
  opacity: .95;
}
.visual-ball-a { width: 220px; height: 220px; right: -40px; bottom: -35px; background: #f2cc3d; }
.visual-ball-b { width: 150px; height: 150px; right: 40px; top: 46px; background: rgba(255,255,255,.2); }
.visual-ball-c { width: 96px; height: 96px; right: 190px; bottom: 28px; background: rgba(33,68,145,.55); }
.visual-ticket {
  position: absolute;
  right: 86px;
  top: 40px;
  width: 190px;
  height: 248px;
  background: #f6e8bd;
  border: 12px solid #264998;
  border-radius: 24px;
  transform: rotate(7deg);
  box-shadow: 0 20px 40px rgba(8, 43, 92, .22);
}
.ticket-top {
  width: 70px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  margin: 12px auto 12px;
}
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 18px 0;
}
.ticket-grid span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid rgba(40, 55, 85, .2);
  border-radius: 6px;
  background: rgba(255,255,255,.3);
}
.ticket-marks i {
  position: absolute;
  width: 18px;
  height: 18px;
  right: 22px;
}
.ticket-marks i::before,
.ticket-marks i::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 18px;
  height: 3px;
  background: #30457f;
  border-radius: 999px;
}
.ticket-marks i::before { transform: rotate(45deg); }
.ticket-marks i::after { transform: rotate(-45deg); }
.ticket-marks i:nth-child(1) { top: 32px; }
.ticket-marks i:nth-child(2) { top: 84px; }
.ticket-marks i:nth-child(3) { top: 136px; }
.ticket-marks i:nth-child(4) { top: 188px; }
.hero-person-silhouette {
  position: absolute;
  right: 148px;
  bottom: 0;
  width: 210px;
  height: 270px;
  background: radial-gradient(circle at 52% 20%, #efd7c7 0 11%, transparent 11.5%),
              radial-gradient(circle at 52% 16%, #764f34 0 15%, transparent 15.5%),
              radial-gradient(circle at 40% 42%, #ffc11f 0 16%, transparent 16.5%),
              radial-gradient(circle at 59% 42%, #102d65 0 18%, transparent 18.5%),
              radial-gradient(circle at 50% 56%, #18397d 0 21%, transparent 21.5%),
              radial-gradient(circle at 50% 87%, rgba(15,58,122,.5) 0 26%, transparent 26.5%);
  filter: drop-shadow(0 20px 30px rgba(4,32,68,.18));
}
.results-ribbon {
  background: #ececec;
  border-bottom: 1px solid #d7d7d7;
}
.ribbon-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 20px 0 18px;
}
.ribbon-label {
  min-width: 0;
}
.ribbon-label span,
.ribbon-label small {
  display: block;
  color: #3f3f3f;
}
.ribbon-label span {
  font-size: 15px;
  font-weight: 700;
}
.ribbon-label h3 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3vw, 2rem);
  line-height: .94;
  color: #203e8f;
}
.ribbon-content {
  min-width: 0;
  display: grid;
  gap: 16px;
}
.ribbon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ribbon-title {
  margin: 0;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  flex: 1 1 520px;
  min-width: 0;
}
.ribbon-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.ball-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 1 1 560px;
}
.ball,
.star {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 800;
  flex: 0 0 auto;
}
.ball {
  border-radius: 50%;
  background: #29499e;
  color: #fff;
}
.star {
  color: #243e84;
  background: radial-gradient(circle at center, var(--gold-400) 0, var(--gold-500) 72%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.millon-box {
  min-width: 150px;
  background: #e9e9e9;
  padding: 12px 16px;
  color: #303030;
  border-radius: 12px;
  flex: 0 0 auto;
}
.millon-box span {
  display: block;
  font-size: .95rem;
  margin-bottom: 6px;
}
.millon-box strong {
  font-size: 1.4rem;
}
.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  padding: 22px 0 50px;
}
.content-main, .content-sidebar { display: grid; gap: 18px; align-self: start; }

.content-shell,
.content-main,
.content-sidebar,
.prize-panel,
.prize-wrap,
.table-wrap {
  min-width: 0;
}

.feature-article,
.prize-panel,
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
}
.feature-article,
.prize-panel { padding: 20px 22px; }
.feature-article h2,
.prize-panel h3,
.sidebar-card h3 {
  margin: 0 0 14px;
  color: #1d3f92;
}
.feature-article h2 {
  padding-bottom: 8px;
  border-bottom: 2px solid #2e7ec6;
  font-size: 1.9rem;
}
.feature-article p {
  margin: 0 0 16px;
  line-height: 1.5;
  font-size: 1.05rem;
}
.panel-heading h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.table-wrap {
  width: 100%;
  overflow-x: hidden;
}
.prize-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}
.prize-table th,
.prize-table td {
  padding: 13px 10px;
  text-align: center;
  border: 1px solid #dedede;
}
.prize-table thead tr:first-child th {
  background: #efefef;
  color: #244191;
  font-size: 1.02rem;
}
.prize-table thead tr:last-child th {
  background: #f4f4f4;
  color: #244191;
}
.prize-table thead .is-highlight {
  background: #f4b531;
  color: #173278;
}
.prize-table tbody td:first-child { text-align: left; }
.prize-table tbody tr:nth-child(even) td { background: #fafafa; }
.show-mobile { display: none; }
.show-desktop { display: inline; }
.prize-table--compact {
  width: 100%;
  table-layout: fixed;
}
.prize-table--compact th,
.prize-table--compact td {
  overflow: hidden;
  text-overflow: ellipsis;
}


.prize-table--compact th:first-child,
.prize-table--compact td:first-child {
  width: 28%;
}

.prize-table--compact th:last-child,
.prize-table--compact td:last-child {
  width: 50%;
}





.sidebar-card { padding: 18px; }
.promo-card {
  background: linear-gradient(155deg, #163984 0%, #2052af 55%, #1794d3 100%);
  color: #fff;
}
.sidebar-kicker {
  margin: 0 0 6px;
  font-size: .82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .85;
}
.promo-card h3 { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.text-link { color: #fff; text-decoration: underline; font-weight: 700; }
.mini-draws { display: grid; gap: 10px; }
.mini-draw {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid #e4e6ec;
}
.mini-draw span,
.mini-draw small { display: block; color: var(--muted); margin-top: 4px; }
.year-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.year-pills a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #eff3fb;
  border: 1px solid #dce3f2;
  color: #233f8f;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.year-pills a span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
}
.home-footer {
  background: #112554;
  color: #dbe4f7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  gap: 24px;
  padding: 34px 0;
}
.home-footer h4 { margin-top: 0; color: #fff; }
.home-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.empty-state { color: var(--muted); }
@media (max-width: 1024px) {
  .topbar-inner { min-height: 72px; }
  .main-nav { gap: 18px; font-size: .95rem; }
  .brand-text strong { font-size: 23px; }
  .brand-text small { font-size: 15px; }

  .hero-grid,
  .content-shell,
  .footer-grid,
  .ribbon-grid { grid-template-columns: 1fr; }
  .hero-grid { padding: 26px 0 0; }
  .hero-copy { padding-top: 10px; }
  .hero-visual { min-height: 300px; }
  .btn-hero { min-width: 240px; }
}
@media (max-width: 860px) {
  body.nav-open { overflow: hidden; }
  .topbar-inner {
    min-height: 72px;
    padding: 12px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .brand-logo { min-width: 0; }
  .brand-mark { width: 48px; height: 48px; font-size: 34px; }
  .brand-text strong { font-size: 22px; }
  .brand-text small { font-size: 13px; letter-spacing: .4px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(17, 37, 84, .16);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--soft);
  }
  .main-nav .nav-cta {
    text-align: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 10px;
  }
  .hero-copy {
    padding: 28px 0 8px;
  }
  .hero-actions,
  .btn-hero {
    width: 100%;
  }
  .hero-headline {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-copy h1 { line-height: .94; }
  .hero-copy h2 { margin: 0; }
  .ribbon-grid { padding: 18px 0; }
  .ribbon-content { min-width: 0; }
  .ribbon-title { line-height: 1.4; }
  .content-shell { padding-top: 18px; }
  .mini-draw { flex-direction: column; }
  .footer-grid { gap: 18px; }
}
@media (max-width: 700px) {
  .hero-headline { gap: 8px; }
  .hero-copy h2 { margin-top: 0; }
  .hero-subtitle { margin-bottom: 18px; }
  .hero-visual {
    min-height: 240px;
    margin-top: 12px;
  }
  .hero-person-silhouette { width: 150px; height: 210px; right: 82px; }
  .visual-ticket { right: 26px; width: 150px; height: 210px; }
  .visual-ball-a { width: 160px; height: 160px; }
  .ribbon-top,
  .ribbon-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .ribbon-title,
  .ball-list {
    flex: 0 1 auto;
  }
  .ribbon-top,
  .ribbon-bottom,
  .ribbon-content {
    gap: 14px;
  }
  .btn-qr,
  .millon-box {
    width: 100%;
  }
  .ball-list {
    justify-content: flex-start;
  }
  .millon-box strong {
    display: block;
    word-break: break-word;
  }
  .ball, .star { width: 48px; height: 48px; font-size: 1.35rem; }
  .feature-article h2 { font-size: 1.45rem; }
  .container { width: min(100% - 22px, 1220px); }

  .prize-panel {
    padding: 14px 12px;
    overflow: hidden;
  }
  .panel-heading h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
  }
  .prize-wrap,
  .table-wrap {
    overflow-x: hidden;
  }
  .prize-table,
  .prize-table--compact {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 11px;
  }
  .prize-table th,
  .prize-table td,
  .prize-table--compact th,
  .prize-table--compact td {
    padding: 7px 4px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .prize-table thead tr:first-child th,
  .prize-table--compact thead tr:first-child th {
    font-size: 9px;
    line-height: 1.05;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .prize-table thead tr:last-child th,
  .prize-table--compact thead tr:last-child th {
    font-size: 9px;
    line-height: 1.05;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .prize-table--compact th:first-child,
  .prize-table--compact td:first-child {
    width: 22%;
  }
  .prize-table--compact th:nth-child(2),
  .prize-table--compact td:nth-child(2),
  .prize-table--compact th:nth-child(3),
  .prize-table--compact td:nth-child(3) {
    width: 12%;
  }
  .prize-table--compact th:last-child,
  .prize-table--compact td:last-child {
    width: 54%;
  }
  .prize-table tbody td:first-child,
  .prize-table--compact tbody td:first-child {
    text-align: center;
    font-weight: 700;
  }
  .show-desktop { display: none; }
  .show-mobile { display: inline; }
}
@media (max-width: 520px) {
  .prize-panel { padding-left: 10px; padding-right: 10px; }
  .prize-table,
  .prize-table--compact { font-size: 10px; }
  .prize-table th,
  .prize-table td,
  .prize-table--compact th,
  .prize-table--compact td { padding: 6px 3px; }
  .prize-table thead tr:first-child th,
  .prize-table--compact thead tr:first-child th { font-size: 8px; }
  .prize-table thead tr:last-child th,
  .prize-table--compact thead tr:last-child th { font-size: 8px; }
  .prize-table--compact th:first-child,
  .prize-table--compact td:first-child { width: 20%; }
  .prize-table--compact th:nth-child(2),
  .prize-table--compact td:nth-child(2),
  .prize-table--compact th:nth-child(3),
  .prize-table--compact td:nth-child(3) { width: 20%; }
  .prize-table--compact th:last-child,
  .prize-table--compact td:last-child { width: 25%; }
  .hero-copy h1 { font-size: clamp(2.8rem, 18vw, 4.3rem); }
  .hero-copy h2 { font-size: clamp(1.5rem, 9vw, 2.3rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-visual { min-height: 200px; }
  .hero-person-silhouette { width: 112px; height: 165px; right: 58px; }
  .visual-ticket {
    top: 20px;
    right: 14px;
    width: 116px;
    height: 168px;
    border-width: 8px;
    border-radius: 18px;
  }
  .ticket-grid { gap: 6px; padding: 10px 12px 0; }
  .ticket-marks i { right: 12px; width: 12px; height: 12px; }
  .ticket-marks i::before,
  .ticket-marks i::after { width: 12px; top: 5px; }
  .ticket-marks i:nth-child(1) { top: 24px; }
  .ticket-marks i:nth-child(2) { top: 58px; }
  .ticket-marks i:nth-child(3) { top: 92px; }
  .ticket-marks i:nth-child(4) { top: 126px; }
  .visual-ball-a { width: 120px; height: 120px; right: -26px; bottom: -18px; }
  .visual-ball-b { width: 92px; height: 92px; right: 12px; top: 36px; }
  .visual-ball-c { width: 56px; height: 56px; right: 108px; bottom: 10px; }
  .ball, .star { width: 44px; height: 44px; font-size: 1.2rem; }
  .millon-box { padding: 10px 12px; }
  .sidebar-card, .feature-article, .prize-panel { padding-left: 16px; padding-right: 16px; }
}


.archive-page main {
  padding-bottom: 36px;
}
.archive-hero {
  background: linear-gradient(135deg, #f8fbff 0%, #edf3fc 55%, #e4edf9 100%);
  border-bottom: 1px solid #d9e1ef;
}
.archive-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  padding: 46px 0 38px;
}
.archive-kicker,
.section-kicker {
  display: inline-block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 800;
  color: #1f74c9;
  margin-bottom: 10px;
}
.archive-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: #173278;
}
.archive-copy p,
.section-heading p,
.archive-toolbar p {
  margin: 0;
  color: #5f6f89;
  font-size: 1.04rem;
  line-height: 1.6;
}
.archive-summary-card {
  background: linear-gradient(160deg, #153278 0%, #1f74c9 100%);
  color: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(22, 50, 120, .18);
}
.archive-summary-card strong,
.archive-summary-card span,
.archive-summary-card small {
  display: block;
}
.archive-summary-card strong { font-size: 1.5rem; margin-bottom: 8px; }
.archive-summary-card span { font-size: 1rem; opacity: .94; margin-bottom: 10px; }
.archive-summary-card small { line-height: 1.5; opacity: .86; }
.archive-section { padding: 34px 0 8px; }
.section-heading,
.archive-toolbar,
.archive-table-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.section-heading h2,
.archive-table-head h2 {
  margin: 0;
  color: #173278;
  font-size: 2rem;
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}
.year-tile {
  background: #fff;
  border: 1px solid #dbe3f1;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(23, 50, 120, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.year-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(23, 50, 120, .12);
  border-color: #b9caea;
}
.year-tile-label,
.year-tile strong,
.year-tile small {
  display: block;
}
.year-tile-label { color: #1f74c9; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px; }
.year-tile strong { color: #173278; font-size: 2rem; margin-bottom: 8px; }
.year-tile small { color: #5f6f89; }
.archive-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #173278;
  font-weight: 700;
}
.archive-table-card {
  background: #fff;
  border: 1px solid #dbe3f1;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(23, 50, 120, .06);
  overflow: hidden;
}
.archive-table-head {
  padding: 24px 24px 0;
  margin-bottom: 18px;
}
.archive-table-wrap { padding: 0 18px 18px; }
.archive-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}
.archive-table thead th {
  background: #173278;
  color: #fff;
  padding: 15px 14px;
  text-align: left;
  font-size: .95rem;
}
.archive-table thead th:first-child { border-top-left-radius: 14px; }
.archive-table thead th:last-child { border-top-right-radius: 14px; }
.archive-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #ebeff6;
  color: #30425e;
  vertical-align: middle;
}
.archive-table tbody tr:nth-child(even) td { background: #f9fbfe; }
.archive-table tbody tr:hover td { background: #f1f6fd; }
.numbers-inline,
.stars-inline {
  font-weight: 700;
  color: #173278;
}
@media (max-width: 1024px) {
  .topbar-inner { min-height: 72px; }
  .main-nav { gap: 18px; font-size: .95rem; }
  .brand-text strong { font-size: 23px; }
  .brand-text small { font-size: 15px; }

  .archive-hero-inner,
  .section-heading,
  .archive-toolbar,
  .archive-table-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 860px) {
  body.nav-open { overflow: hidden; }
  .topbar-inner {
    min-height: 72px;
    padding: 12px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .brand-logo { min-width: 0; }
  .brand-mark { width: 48px; height: 48px; font-size: 34px; }
  .brand-text strong { font-size: 22px; }
  .brand-text small { font-size: 13px; letter-spacing: .4px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(17, 37, 84, .16);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--soft);
  }
  .main-nav .nav-cta {
    text-align: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 10px;
  }
  .hero-copy {
    padding: 28px 0 8px;
  }
  .hero-actions,
  .btn-hero {
    width: 100%;
  }
  .hero-headline {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-copy h1 { line-height: .94; }
  .hero-copy h2 { margin: 0; }
  .ribbon-grid { padding: 18px 0; }
  .ribbon-content { min-width: 0; }
  .ribbon-title { line-height: 1.4; }
  .content-shell { padding-top: 18px; }
  .mini-draw { flex-direction: column; }
  .footer-grid { gap: 18px; }
}
@media (max-width: 700px) {
  .archive-hero-inner { padding: 30px 0 28px; }
  .archive-copy h1 { font-size: 2rem; }
  .section-heading h2,
  .archive-table-head h2 { font-size: 1.5rem; }
  .archive-table-wrap { padding: 0 12px 12px; }
}

.result-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.btn-secondary,
.table-qr-link,
.btn-file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 41, 94, .15);
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-qr { white-space: nowrap; }
.table-qr-link {
  padding: 8px 12px;
  font-size: .92rem;
}
.qr-hero {
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.qr-hero-inner,
.qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr);
  gap: 24px;
}
.qr-hero-inner { padding: 44px 0 34px; }
.qr-context-card,
.qr-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(16, 38, 79, .08);
}
.qr-context-card {
  padding: 22px;
  display: grid;
  gap: 8px;
  align-self: start;
}
.qr-context-card strong { font-size: 1rem; }
.qr-context-card span { font-size: 1.05rem; color: var(--primary); font-weight: 700; }
.qr-section { padding: 28px 0 50px; }
.qr-card { padding: 24px; }
.qr-card-head p,
.qr-note,
.qr-placeholder { color: var(--muted); }
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.qr-video-shell {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.qr-video-shell video {
  width: 100%;
  max-width: 520px;
  min-height: 260px;
  border-radius: 18px;
  background: #0a1630;
}
.qr-stop-link { width: fit-content; }
.qr-result {
  border: 1px dashed rgba(15, 41, 94, .22);
  border-radius: 18px;
  padding: 18px;
  background: #fafcff;
}
.qr-result pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}
.qr-open-link { margin-top: 8px; }
.qr-steps {
  margin: 14px 0 18px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.mini-draw-link {
  color: var(--primary);
  font-weight: 700;
}
@media (max-width: 860px) {
  .result-tools { justify-content: flex-start; }
  .qr-hero-inner,
  .qr-layout {
    grid-template-columns: 1fr;
  }
  .qr-actions > * {
    width: 100%;
  }
}


.qr-meta-grid {
  display: grid;
  gap: .5rem;
  margin-bottom: 1rem;
}

.qr-meta-grid p,
.qr-draw-match p {
  margin: 0;
}

.qr-draw-match,
.qr-bets,
.qr-raw-details {
  margin-top: 1rem;
}

.qr-bet-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  display: grid;
  gap: .75rem;
}

.qr-bet-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: .9rem 1rem;
  background: #fff;
  display: grid;
  gap: .3rem;
}

.qr-bet-item strong,
.qr-bet-item span,
.qr-bet-item small {
  display: block;
}

.qr-raw-details pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.qr-ball-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.qr-ball-group {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.qr-ball {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #eef2f7;
  color: #243449;
}

.qr-ball--star {
  background: #fff6d8;
}

.qr-ball.is-hit {
  background: #dff7e7;
  color: #12633a;
  border-color: rgba(18, 99, 58, .28);
  box-shadow: inset 0 0 0 1px rgba(18, 99, 58, .08);
}

.qr-ball--star.is-hit {
  background: #ffe8a3;
  color: #7a5200;
  border-color: rgba(122, 82, 0, .22);
}

.qr-plus {
  font-weight: 700;
  color: var(--muted);
}


/* =========================
   Admin
   ========================= */
body.admin-body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f3f6fb;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  background: linear-gradient(180deg, #102a63 0%, #173983 100%);
  color: #fff;
  padding: 28px 20px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
  box-shadow: 14px 0 34px rgba(16, 42, 99, .14);
}

.admin-brand {
  display: grid;
  gap: 4px;
}

.admin-brand strong {
  font-size: 1.5rem;
  line-height: 1.1;
}

.admin-brand span {
  color: rgba(255,255,255,.72);
  font-size: .95rem;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  color: rgba(255,255,255,.92);
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: rgba(255,255,255,.12);
  color: #fff;
  transform: translateX(2px);
}

.admin-sidebar-footer {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}

.admin-main {
  min-width: 0;
  padding: 32px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-topbar h1,
.admin-page-header h1 {
  margin: 0;
  color: #163984;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
}

.admin-topbar p,
.admin-page-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-content { min-width: 0; }

.admin-page-header {
  margin-bottom: 20px;
}

.cards,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.stat-card {
  background: #fff;
  border: 1px solid #dfe5f0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(24, 44, 90, .06);
}

.stat-card strong,
.card h2,
.card h3 {
  color: #173983;
}

.stat-card .stat-value {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 800;
}

.grid-two.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 20px;
  align-items: start;
}

.admin-form {
  display: grid;
  gap: 14px;
}

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

.admin-field,
.admin-field-full {
  display: grid;
  gap: 8px;
}

.admin-field-full { grid-column: 1 / -1; }

.admin-form label,
.login-card label {
  display: block;
  font-weight: 700;
  color: #264172;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form textarea,
.admin-form select,
.login-card input[type="email"],
.login-card input[type="password"],
input[type="file"] {
  width: 100%;
  border: 1px solid #ced7e6;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.admin-form textarea { min-height: 140px; resize: vertical; }

.admin-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #264172;
}

.admin-check input {
  width: 18px;
  height: 18px;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #1c3f93;
  color: #fff;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
.button-link:hover { background: #17367f; }

button.secondary,
.button-link.secondary {
  background: #edf2fb;
  color: #173983;
}

.admin-table-wrap {
  overflow-x: auto;
}

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

thead th {
  text-align: left;
  font-size: .9rem;
  color: #4c628d;
  background: #f6f8fc;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid #e8edf5;
}

tbody tr:hover td {
  background: #fafcff;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.notice.success {
  background: #eaf8ef;
  color: #1f7a39;
}

.notice.error {
  background: #fdecec;
  color: #b42318;
}

.mt { margin-top: 16px; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #f3f6fb 0%, #e8eef8 100%);
}

.login-card {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
}

.login-card h1 { margin: 0 0 8px; color: #163984; }

.ck-editor__editable_inline {
  min-height: 280px;
}

@media (max-width: 1100px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { grid-template-rows: auto auto; }
  .admin-main { padding: 22px; }
}

@media (max-width: 780px) {
  .cards,
  .stats-grid,
  .grid-two.admin-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Admin v2 */
:root {
  --admin-bg: linear-gradient(180deg, #f4f7fc 0%, #eef3fb 100%);
  --admin-surface: rgba(255,255,255,.88);
  --admin-border: rgba(142, 160, 196, .24);
  --admin-shadow: 0 18px 40px rgba(21, 50, 120, .10);
}
body.admin-body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--admin-bg);
}
.admin-main {
  background:
    radial-gradient(circle at top right, rgba(58, 130, 246, .10), transparent 24%),
    radial-gradient(circle at left 20%, rgba(19, 164, 215, .08), transparent 30%);
}
.admin-badge,
.admin-kicker,
.stat-card__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-badge { background: rgba(255,255,255,.14); color: #fff; }
.admin-kicker,
.stat-card__eyebrow { background: #e9f0ff; color: #224ca0; }
.admin-toolbar-card,
.card,
.stat-card {
  background: var(--admin-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
}
.admin-topbar {
  position: sticky;
  top: 20px;
  z-index: 15;
  padding: 18px 22px;
  border-radius: 22px;
}
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-user-pill {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e1e7f2;
}
.admin-user-pill__label {
  font-size: .78rem;
  color: var(--muted);
}
.admin-menu-toggle {
  display: none;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
}
.admin-sidebar-footer {
  display: grid;
  gap: 4px;
}
.admin-sidebar-footer span {
  color: rgba(255,255,255,.7);
}
.admin-page-header,
.admin-panel-card {
  margin-bottom: 22px;
}
.admin-stats-grid .stat-card {
  display: grid;
  gap: 10px;
}
.admin-stats-grid .stat-card p,
.quick-link-card span,
.admin-info-card,
.empty-state {
  color: var(--muted);
}
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.quick-link-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: #f7faff;
  border: 1px solid #dde7f5;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-link-card:hover {
  transform: translateY(-2px);
  border-color: #bdd0f3;
  box-shadow: 0 12px 28px rgba(28, 63, 147, .08);
}
.admin-checklist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}
.admin-helper-box {
  padding: 18px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #dde7f5;
}
.admin-code-block {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #11254a;
  color: #eff4ff;
  overflow: auto;
  white-space: pre-wrap;
}
.login-card {
  padding: 30px;
}
.mt-lg { margin-top: 22px; }
@media (max-width: 1100px) {
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, calc(100vw - 32px));
    transform: translateX(-105%);
    transition: transform .25s ease;
    z-index: 40;
  }
  .admin-sidebar.is-open {
    transform: translateX(0);
  }
  .admin-menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 780px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  .admin-main {
    padding: 18px;
  }
  .admin-topbar {
    top: 12px;
    padding: 16px;
  }
  .admin-user-pill {
    display: none;
  }
}


/* Blog */
.blog-shell,
.blog-post-shell {
  padding: 36px 0 56px;
}

.blog-layout,
.blog-post-layout {
  display: grid;
  gap: 24px;
}

.blog-hero-card,
.blog-empty-state,
.blog-card,
.blog-post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(18, 37, 84, .08);
}

.blog-hero-card {
  padding: 34px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 55%, #eef4ff 100%);
}

.blog-kicker,
.blog-card-meta,
.blog-post-meta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf3ff;
  color: #214b9b;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.blog-hero-card h1,
.blog-post-header h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.05;
  color: #173a87;
}

.blog-hero-card p,
.blog-empty-state p,
.blog-card p,
.blog-post-intro,
.prose-content {
  color: #44536f;
  line-height: 1.75;
  font-size: 1.05rem;
}

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

.blog-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 260px;
}

.blog-card-body,
.blog-card-footer,
.blog-empty-state,
.blog-post-card {
  padding: 28px;
}

.blog-card h2 {
  margin: 16px 0 14px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.18;
  color: #173a87;
}

.blog-card h2 a:hover,
.blog-read-more:hover,
.blog-breadcrumb a:hover {
  color: var(--blue-700);
}

.blog-card-footer {
  padding-top: 0;
  border-top: 1px solid #edf0f6;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #1d4696;
}

.blog-read-more::after {
  content: '→';
  font-size: 1rem;
}

.blog-empty-state h2 {
  margin: 0 0 10px;
  color: #173a87;
  font-size: 1.8rem;
}

.blog-post-layout {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.blog-post-header {
  padding-bottom: 22px;
  border-bottom: 1px solid #e8edf5;
  margin-bottom: 28px;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6a7895;
  font-size: .95rem;
}

.blog-breadcrumb strong {
  color: #213760;
}

.blog-post-intro {
  margin: 0;
  font-size: 1.14rem;
}

.prose-content > *:first-child {
  margin-top: 0;
}

.prose-content h2,
.prose-content h3,
.prose-content h4 {
  color: #173a87;
  line-height: 1.2;
  margin: 32px 0 14px;
}

.prose-content h2 { font-size: 1.9rem; }
.prose-content h3 { font-size: 1.5rem; }
.prose-content h4 { font-size: 1.2rem; }

.prose-content p,
.prose-content ul,
.prose-content ol,
.prose-content blockquote,
.prose-content figure,
.prose-content table {
  margin: 0 0 18px;
}

.prose-content ul,
.prose-content ol {
  padding-left: 24px;
}

.prose-content li {
  margin-bottom: 10px;
}

.prose-content a {
  color: #1e53b0;
  text-decoration: underline;
}

.prose-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid #2a64c7;
  background: #f6f9ff;
  color: #33425d;
  border-radius: 0 18px 18px 0;
}

.prose-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.prose-content figure {
  margin-left: 0;
  margin-right: 0;
}

.prose-content figcaption {
  margin-top: 10px;
  color: #6f7c97;
  font-size: .95rem;
}

.prose-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #dde5f2;
}

.prose-content th,
.prose-content td {
  padding: 14px 16px;
  border: 1px solid #dde5f2;
  text-align: left;
  vertical-align: top;
}

.prose-content thead th {
  background: #edf3ff;
  color: #173a87;
}

.prose-content tbody tr:nth-child(even) td {
  background: #fafcff;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-shell,
  .blog-post-shell {
    padding: 24px 0 42px;
  }
}

@media (max-width: 640px) {
  .blog-hero-card,
  .blog-empty-state,
  .blog-card-body,
  .blog-card-footer,
  .blog-post-card {
    padding: 22px;
  }

  .blog-card {
    min-height: auto;
  }

  .blog-hero-card h1,
  .blog-post-header h1 {
    font-size: 2rem;
  }

  .prose-content {
    font-size: 1rem;
  }

  .prose-content h2 { font-size: 1.55rem; }
  .prose-content h3 { font-size: 1.32rem; }

  .prose-content table,
  .prose-content thead,
  .prose-content tbody,
  .prose-content tr,
  .prose-content th,
  .prose-content td {
    display: block;
  }

  .prose-content thead {
    display: none;
  }

  .prose-content tr {
    margin-bottom: 14px;
    border-bottom: 1px solid #dde5f2;
  }

  .prose-content td {
    border-width: 0 0 1px;
  }
}
