:root {
  color-scheme: light;
  --ink: #07111f;
  --muted: #5c6877;
  --line: #dfe6ef;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --red: #d71920;
  --gold: #f5b52e;
  --cyan: #0aa8d8;
  --green: #0f9d72;
  --shadow: 0 18px 45px rgba(7, 17, 31, .14);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: #07111f;
  color: #d9e5f2;
  font-size: 14px;
  padding: 8px 0;
}
.topbar .container, .nav .container, .footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand img { width: 180px; height: auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  padding: 19px 12px;
  font-weight: 800;
  color: #172537;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); border-bottom-color: var(--red); }
.hero {
  min-height: 620px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,17,31,.95) 0%, rgba(7,17,31,.82) 43%, rgba(7,17,31,.3) 100%),
    url("../assets/hero.jpg") center/cover no-repeat;
  display: grid;
  align-items: center;
  padding: 64px 0 52px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffdf7a;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}
.hero h1, .page-hero h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero p, .page-hero p { max-width: 720px; color: #dbe7f5; font-size: 19px; }
.hero-actions, .quick-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
}
.btn.primary { background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(215,25,32,.3); }
.btn.secondary { background: #fff; color: #07111f; }
.btn.ghost { border-color: rgba(255,255,255,.45); color: #fff; }
section { padding: 54px 0; }
.section-title { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
h2 { font-size: clamp(27px, 3.5vw, 42px); line-height: 1.15; margin: 0; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: 0; }
.lead { color: var(--muted); max-width: 760px; margin: 8px 0 0; }
.grid { display: grid; gap: 18px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(7,17,31,.04);
  overflow: hidden;
}
.category-card img { aspect-ratio: 1.4 / 1; object-fit: cover; width: 100%; }
.category-card .pad, .card .pad { padding: 18px; }
.tag { color: var(--red); font-weight: 900; font-size: 13px; text-transform: uppercase; }
.live-board {
  background: #07111f;
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.board-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: linear-gradient(90deg, #d71920, #9e1117);
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #35e28b; display: inline-block; margin-right: 7px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.13); }
.tab {
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: #11253e;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 900;
}
.tab.active { background: var(--gold); color: #07111f; border-color: var(--gold); }
.result-panel { padding: 18px; }
.draw-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #fff;
}
.draw-title span, .draw-meta { color: #dbe7f5; }
.draw-meta { margin: 0 0 12px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.result-table { width: 100%; border-collapse: collapse; background: #fff; color: #07111f; border-radius: var(--radius); overflow: hidden; }
.result-table th, .result-table td { padding: 13px 12px; border-bottom: 1px solid #edf1f5; text-align: left; vertical-align: top; }
.result-table th { width: 108px; color: #5b6674; background: #f8fafc; }
.regional-table { min-width: 720px; }
.regional-table thead th {
  color: #07111f;
  background: #fff4cf;
  font-weight: 900;
}
.regional-table th:first-child { position: sticky; left: 0; z-index: 1; }
.numbers { display: flex; flex-wrap: wrap; gap: 8px; }
.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf3fb;
  font-weight: 900;
  color: #07111f;
}
.number.hot { background: var(--red); color: #fff; font-size: 22px; min-width: 72px; }
.keno-grid { display: grid; grid-template-columns: repeat(10, minmax(34px, 1fr)); gap: 9px; }
.keno-ball {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #fff, #ffdf7a 32%, #d71920 76%);
  color: #07111f;
  font-weight: 900;
  box-shadow: inset 0 -4px 9px rgba(0,0,0,.22);
}
.keno-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.keno-stats span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: #fff;
  padding: 8px 10px;
}
.keno-history {
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 18px;
}
.keno-history h3 {
  color: #fff;
  margin-bottom: 12px;
}
.keno-history-list {
  display: grid;
  gap: 10px;
}
.keno-history-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 12px;
}
.keno-history-meta {
  display: grid;
  gap: 3px;
  color: #fff;
}
.keno-history-meta span {
  color: #c8d6e8;
  font-size: 13px;
}
.keno-mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.keno-mini-grid span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff4cf;
  color: #07111f;
  font-weight: 900;
  font-size: 13px;
}
.keno-history-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 160px;
}
.keno-history-stats span {
  color: #dbe7f5;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 12px;
}
.pending-cell {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf3fb;
  color: #657386;
  font-weight: 800;
}
.pending-result {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  color: #fff;
  padding: 18px;
}
.note { color: #dbe7f5; font-size: 14px; margin-top: 12px; }
.info-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-list article { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 900; }
.page-hero {
  background: linear-gradient(90deg, #07111f, #133456);
  color: #fff;
  padding: 56px 0;
}
.content {
  background: #fff;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.content p, .content li { color: #344154; }
.content h2 { margin-top: 26px; font-size: 30px; }
.breadcrumb { font-size: 14px; color: #b9c9dc; margin-bottom: 18px; }
.footer {
  background: #07111f;
  color: #dbe7f5;
  padding: 38px 0 24px;
}
.footer a { color: #dbe7f5; display: block; padding: 4px 0; }
.footer .legal { text-align: right; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 18px; color: #9fb0c6; }

@media (max-width: 860px) {
  .topbar .container, .nav .container, .footer-grid, .section-title { align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .nav-links a { white-space: nowrap; padding: 12px 10px; }
  .hero { min-height: 560px; padding-top: 44px; }
  .grid.four, .grid.three { grid-template-columns: 1fr; }
  .board-head { flex-direction: column; align-items: flex-start; }
  .result-table:not(.regional-table), .result-table:not(.regional-table) tbody, .result-table:not(.regional-table) tr, .result-table:not(.regional-table) th, .result-table:not(.regional-table) td { display: block; width: 100%; }
  .result-table:not(.regional-table) th { border-bottom: 0; padding-bottom: 4px; }
  .result-table:not(.regional-table) td { padding-top: 4px; }
  .keno-grid { grid-template-columns: repeat(5, 1fr); }
  .keno-history-item {
    grid-template-columns: 1fr;
  }
  .keno-history-stats {
    justify-content: flex-start;
    min-width: 0;
  }
  .content { padding: 22px; }
  .footer .legal { text-align: left; }
}
