/* 82 Lottery – no 3rd party; system fonts for performance */
/* 82 Lottery – light colors + gradients (red, yellow, cyan, purple) */
:root {
  --red: #e85c5c;
  --red-soft: #ef7a7a;
  --red-light: #ff9494;
  --red-pale: rgba(232, 92, 92, 0.1);
  --rose: #ffebeb;
  --rose-mid: #ffe0e0;
  --cream: #fffbfb;
  --cream-dark: #fff5f5;
  /* star colors – light gradient tints for BG */
  --star-yellow: #f5d04a;
  --yellow-pale: rgba(245, 208, 74, 0.12);
  --yellow-bg: rgba(255, 248, 230, 0.9);
  --star-cyan: #4dc9d4;
  --cyan-pale: rgba(77, 201, 212, 0.06);
  --star-purple: #b87dd4;
  --purple-pale: rgba(184, 125, 212, 0.08);
  --purple-bg: rgba(248, 240, 255, 0.5);
  --star-green: #5dd48a;
  --green-pale: rgba(93, 212, 138, 0.05);
  /* 82 Lottery logo colors (hero / banner) */
  --logo-green: #0d3d26;
  --logo-green-mid: #0a2d1c;
  --logo-green-pale: rgba(13, 61, 38, 0.12);
  --logo-gold: #c9a227;
  --logo-gold-light: #e8c040;
  --logo-gold-pale: rgba(201, 162, 39, 0.15);
  --ink: #5c3838;
  --ink-soft: #7a5050;
  --muted: #8f6b6b;
  --line: rgba(232, 92, 92, 0.15);
  --line-strong: rgba(232, 92, 92, 0.28);
  --poker-red: #e85c5c;
  --poker-red-glow: rgba(232, 92, 92, 0.15);
  --accent: #4dc9d4;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 8px 32px rgba(232, 92, 92, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 40px rgba(232, 92, 92, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  --blur: 14px;
  --anchor-offset: 72px;
}

* {
  box-sizing: border-box;
}

/* Accessibility: skip link (visible on focus) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--red-soft);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Accessibility: visible focus for keyboard */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-soft);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

/* Anchor targets + logo-color section background (Download, Register, Login) */
#download,
#register,
#login {
  scroll-margin-top: var(--anchor-offset);
  background:
    linear-gradient(180deg, var(--logo-green-pale) 0%, transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, var(--logo-gold-pale) 35%, rgba(252, 250, 242, 0.98) 100%);
  border: 1px solid rgba(13, 61, 38, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 4px 24px rgba(13, 61, 38, 0.06);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(900px 380px at 95% 0%, var(--rose) 0%, transparent 48%),
    radial-gradient(750px 320px at 5% 20%, var(--yellow-bg) 0%, transparent 50%),
    radial-gradient(700px 300px at 50% 100%, var(--cyan-pale) 0%, transparent 50%),
    radial-gradient(600px 280px at 10% 80%, var(--purple-pale) 0%, transparent 48%),
    radial-gradient(500px 250px at 85% 60%, var(--green-pale) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 35%, #fffaf8 70%, var(--cream) 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  margin: 0 0 0.82rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.8vw, 3.35rem); }
h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--line);
  color: var(--ink-soft);
}
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--ink-soft); }

p,
ul,
ol {
  margin: 0 0 1rem;
}

a {
  color: var(--star-cyan);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section-pad-left {
  padding-left: clamp(2rem, 6vw, 4rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px) saturate(120%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(232, 92, 92, 0.06);
  background:
    linear-gradient(90deg, var(--yellow-pale) 0%, transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, var(--rose) 50%, rgba(255, 250, 252, 0.96) 100%);
}

.top-cta-bar {
  display: none;
}

.main-nav-bar {
  border-bottom: none;
}

.main-nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  order: 0;
  margin-left: 0;
  flex-shrink: 0;
}

.brand img {
  border-radius: 0;
  width: auto;
  height: auto;
  max-height: 78px;
  min-height: 50px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(232, 92, 92, 0.15));
}

.main-nav {
  order: 1;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--red-light), var(--red-soft));
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

main {
  padding: 2.2rem 0 4rem;
}

section {
  margin-bottom: 3rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--yellow-pale) 0%, transparent 25%),
    linear-gradient(225deg, var(--cyan-pale) 0%, transparent 30%),
    linear-gradient(315deg, var(--purple-pale) 0%, transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, var(--rose-mid) 50%, rgba(255, 250, 252, 0.92) 100%);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease;
}

section:hover {
  box-shadow: var(--shadow-md);
}

/* Home page: same section BG as About Us (no transparent override) */
#download {
  padding-inline: clamp(1.1rem, 2.1vw, 1.9rem);
}

#register,
#login {
  padding-inline: clamp(1.1rem, 2.1vw, 1.9rem);
}

#download .full-image,
#register .split-media,
#login .split-media {
  padding: 0;
}

#download .download-layout {
  align-items: start;
}

#download .download-steps ol {
  margin: 0;
  padding-left: 1.25rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.5rem;
  align-items: start;
  /* Logo colors: green + gold (82 LOTTERY banner) */
  background:
    linear-gradient(135deg, var(--logo-gold-pale) 0%, transparent 30%),
    linear-gradient(225deg, var(--logo-green-pale) 0%, transparent 35%),
    linear-gradient(315deg, var(--logo-gold-pale) 0%, transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, var(--green-pale) 40%, rgba(248, 245, 235, 0.95) 100%);
  border: 1px solid rgba(13, 61, 38, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(13, 61, 38, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.hero > :not(figure) {
  grid-column: 1;
}

.hero figure {
  margin: 0;
  grid-column: 2;
  grid-row: 1 / span 4;
  padding: 0.75rem;
  border: 1px solid var(--logo-gold-pale);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--logo-green-pale) 0%, var(--logo-gold-pale) 50%, rgba(255, 252, 245, 0.9) 100%);
  box-shadow: 0 6px 24px rgba(13, 61, 38, 0.08);
}

.hero-full-width {
  grid-column: 1 / -1;
  grid-row: 5;
  width: 100%;
  margin-top: 0.25rem;
}

.hero figure img {
  width: 100%;
  height: auto;
  max-height: clamp(260px, 42vw, 440px);
  object-fit: cover;
}

.hero figure img.hero-banner {
  object-fit: contain;
  max-height: clamp(280px, 46vw, 480px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.82rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--red-pale) 0%, var(--yellow-pale) 50%, rgba(255, 220, 220, 0.5) 100%);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  max-width: 70ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin: 1.2rem 0 1.4rem;
  align-items: center;
}

.btn {
  text-decoration: none;
  font-family: "Segoe UI", system-ui, sans-serif;
  border-radius: 12px;
  padding: 0.74rem 1.08rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red-light), var(--red-soft));
  border: none;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, var(--cyan-pale) 30%, var(--rose-mid) 100%);
  box-shadow: 0 2px 8px rgba(232, 92, 92, 0.05);
}

.table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 0.84rem 0.92rem;
  text-align: left;
}

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

.table-wrap th {
  width: 35%;
  color: var(--ink);
  background: var(--rose-mid);
  font-weight: 700;
}

.table-wrap td {
  background: rgba(255, 255, 255, 0.8);
}

.download-layout {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 1rem;
  align-items: center;
}

.download-steps,
.split-copy {
  padding: 1.25rem;
  border: 1px solid rgba(13, 61, 38, 0.12);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, var(--logo-green-pale) 30%, var(--logo-gold-pale) 100%);
}

.download-steps li,
.split-copy li {
  margin-bottom: 0.45rem;
}

.full-image {
  width: 100%;
  margin: 0;
  max-height: 460px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.2rem;
  align-items: center;
}

.split-media {
  border: 1px solid rgba(13, 61, 38, 0.14);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: linear-gradient(165deg, var(--logo-green-pale) 0%, var(--logo-gold-pale) 40%, rgba(255, 252, 245, 0.85) 100%);
  box-shadow: 0 4px 20px rgba(13, 61, 38, 0.06);
}

.split-media img {
  width: 100%;
  height: auto;
  max-height: clamp(320px, 44vw, 480px);
  object-fit: contain;
  object-position: center top;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  background:
    linear-gradient(135deg, var(--cyan-pale) 0%, transparent 35%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.9) 0%, var(--rose-mid) 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.card h3 {
  margin-top: 0.74rem;
  font-size: 1.17rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-list {
  padding-left: 1.1rem;
}

.contact-list,
.blog-list {
  list-style: none;
  padding: 0;
}

.contact-list li,
.blog-list li {
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
}

.blog-overview-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

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

.blog-grid-single {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.blog-grid-single .blog-post-card {
  width: 100%;
}

.blog-grid-single .blog-post-card img {
  height: 205px;
}

.blog-post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--yellow-pale) 0%, transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, var(--rose-mid) 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.blog-post-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 0;
}

.blog-post-body {
  padding: 1rem;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.recent-sidebar {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background:
    linear-gradient(200deg, var(--purple-pale) 0%, transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, var(--rose-mid) 100%);
  box-shadow: var(--shadow-soft);
}

.recent-sidebar h3 {
  margin-bottom: 0.85rem;
}

.recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.recent-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

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

.recent-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
}

.recent-item img {
  width: 84px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.recent-item span {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.recent-item:hover span {
  color: var(--poker-red);
}

.recent-date {
  display: block;
  margin-top: 0.25rem;
  margin-left: calc(84px + 0.7rem);
  font-size: 0.88rem;
  color: var(--muted);
}

.article-hero {
  margin: 0.65rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, var(--purple-pale) 30%, var(--rose-mid) 100%);
  box-shadow: var(--shadow-soft);
}

.article-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 0;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, var(--green-pale) 35%, var(--cyan-pale) 100%);
  margin-bottom: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.empty-state {
  padding: 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
}

.site-footer {
  margin-top: 2.5rem;
  padding: 2.5rem 0 1.5rem;
  /* Same BG as hero / section */
  background:
    linear-gradient(135deg, var(--yellow-pale) 0%, transparent 25%),
    linear-gradient(225deg, var(--cyan-pale) 0%, transparent 30%),
    linear-gradient(315deg, var(--purple-pale) 0%, transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, var(--rose-mid) 50%, rgba(255, 250, 252, 0.92) 100%);
  border-top: 1px solid var(--line);
}

.footer-shell {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--yellow-pale) 0%, transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, var(--rose-mid) 55%, var(--purple-pale) 100%);
  box-shadow: var(--shadow-soft);
}

.footer-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line-strong);
}

.footer-share-label {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.social-list {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-btn {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
}

.social-btn svg {
  width: 1.02rem;
  height: 1.02rem;
  fill: currentColor;
}

.social-fb { background: #1877f2; border-color: #1877f2; }
.social-wa { background: #25d366; border-color: #25d366; }
.social-tg { background: #229ed9; border-color: #229ed9; }
.social-ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  border-color: #b94bc0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.footer-brand-row img {
  max-height: 68px;
  width: auto;
  object-fit: contain;
}

.footer-brand-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.footer-disclaimer {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 62ch;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-content: start;
  padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  width: fit-content;
  line-height: 1.35;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  border-color: var(--red-soft);
  color: var(--poker-red);
}

.footer-copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.55s ease forwards;
}

main .reveal:nth-of-type(2) { animation-delay: 0.07s; }
main .reveal:nth-of-type(3) { animation-delay: 0.12s; }
main .reveal:nth-of-type(4) { animation-delay: 0.16s; }
main .reveal:nth-of-type(5) { animation-delay: 0.2s; }
main .reveal:nth-of-type(6) { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  :root {
    --anchor-offset: 72px;
  }

  .split,
  .games-grid,
  .two-col,
  .blog-grid,
  .blog-overview-layout,
  .download-layout,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .main-nav-wrap {
    gap: 0.65rem;
    padding: 0.62rem 0 0.68rem;
    min-height: auto;
  }

  .brand {
    order: 0;
    margin-left: 0;
  }

  .brand img {
    max-height: 58px;
    margin: 0 auto;
  }

  .main-nav {
    gap: 0.5rem;
    justify-content: center;
  }

  .main-nav a {
    text-align: center;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top-cta-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    min-height: auto;
    padding: 0.46rem 0 0.56rem;
    justify-content: center;
  }

  .top-cta-btn {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.44rem 0.32rem;
    min-width: 0;
    border-radius: 10px;
  }

  .hero {
    display: block;
  }

  .hero figure {
    margin-top: 1rem;
    grid-column: auto;
    grid-row: auto;
  }

  .recent-sidebar {
    position: static;
    top: auto;
  }

  .recent-date {
    margin-left: 0;
  }

  .footer-share-row {
    align-items: flex-start;
  }

  .footer-links {
    grid-template-columns: 1fr;
    padding-left: 0;
    border-left: 0;
    padding-top: 0.35rem;
    gap: 0.62rem;
  }

  .footer-shell {
    padding: 1rem;
  }

}

@media (max-width: 680px) {
  :root {
    --anchor-offset: 76px;
  }

  .container {
    padding-inline: 14px;
  }

  .main-nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.45rem 0.6rem;
    padding: 0.5rem 0 0.6rem;
  }

  .brand {
    margin: 0;
    justify-self: start;
  }

  .brand img {
    max-height: 50px;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .top-cta-btn {
    font-size: 0.68rem;
  }
}

/* ===================== 82 Lottery theme (overrides) ===================== */
/* Keeps logo colors: red + star (yellow, green, cyan, purple) + metallic */

.hero {
  grid-template-columns: 0.94fr 1.06fr;
  /* Logo colors: green + gold */
  background:
    linear-gradient(135deg, var(--logo-gold-pale) 0%, transparent 28%),
    linear-gradient(225deg, var(--logo-green-pale) 0%, transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, var(--logo-green-pale) 45%, rgba(248, 245, 235, 0.95) 100%);
  border: 1px solid rgba(13, 61, 38, 0.14);
  box-shadow: 0 8px 32px rgba(13, 61, 38, 0.1);
}

.hero > :not(figure) {
  grid-column: 2;
}

.hero figure {
  grid-column: 1;
  grid-row: 1 / span 4;
  border-color: rgba(201, 162, 39, 0.35);
  background: linear-gradient(160deg, var(--logo-green) 0%, var(--logo-green-mid) 100%);
  transform: none;
}

.hero figure img {
  max-height: clamp(280px, 44vw, 460px);
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
}

.hero figure img.hero-banner {
  object-fit: contain;
  max-height: clamp(300px, 48vw, 500px);
}

.eyebrow {
  border-color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(145deg, rgba(242, 194, 48, 0.78), rgba(157, 116, 0, 0.76));
  color: #102316;
}

.lead {
  color: #e6edf2;
}

.cta-row {
  gap: 0.6rem;
}

.btn {
  border-radius: 999px;
  padding: 0.66rem 1.08rem;
}

.btn-primary {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(135deg, #f2c230, #9d7400);
  color: #102316;
}

.btn-secondary {
  color: #fff;
  border-color: rgba(244, 248, 255, 0.36);
  background: linear-gradient(140deg, rgba(10, 66, 43, 0.84), rgba(6, 34, 22, 0.9));
}

.table-wrap {
  border-color: rgba(244, 248, 255, 0.2);
  background: linear-gradient(145deg, rgba(9, 41, 28, 0.86), rgba(6, 28, 19, 0.92));
}

.table-wrap table {
  background: rgba(7, 34, 24, 0.92);
}

.table-wrap th,
.table-wrap td {
  border-bottom-color: rgba(244, 248, 255, 0.18);
}

.table-wrap th {
  color: #ffffff;
  background: rgba(242, 194, 48, 0.42);
}

.table-wrap td {
  background: rgba(9, 43, 29, 0.64);
}

.download-steps,
.split-copy,
.split-media,
.full-image,
.hero figure,
.article-hero {
  border-color: rgba(244, 248, 255, 0.24);
}

.split-media,
.full-image {
  background: linear-gradient(165deg, var(--logo-green-pale) 0%, rgba(13, 61, 38, 0.2) 50%, var(--logo-gold-pale) 100%);
}

.split-media img {
  object-fit: contain;
  filter: saturate(1.04);
}

.games-grid {
  gap: 1.15rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 248, 255, 0.24);
  border-radius: 18px;
  padding: 0.82rem;
  background:
    linear-gradient(160deg, rgba(10, 52, 35, 0.92), rgba(6, 28, 19, 0.96)),
    radial-gradient(280px 120px at 100% 0%, rgba(242, 194, 48, 0.18), transparent 74%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(242, 194, 48, 0.16) inset;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 26%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(242, 194, 48, 0.34) inset;
}

.card img {
  height: 188px;
  border-color: rgba(244, 248, 255, 0.28);
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 0.7rem;
  filter: contrast(1.05) saturate(1.08);
}

.card h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
  line-height: 1.2;
}

.card p {
  color: #dfe7ee;
  margin: 0;
  line-height: 1.55;
}

.blog-post-card {
  position: relative;
  border: 1px solid rgba(244, 248, 255, 0.24);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(9, 47, 32, 0.92), rgba(5, 24, 17, 0.96)),
    radial-gradient(300px 130px at 100% 0%, rgba(242, 194, 48, 0.16), transparent 74%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(242, 194, 48, 0.14) inset;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(242, 194, 48, 0.34) inset;
}

.blog-post-card img {
  border-top: 2px solid rgba(255, 255, 255, 0.34);
  height: 226px;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.06);
}

.blog-post-body {
  padding: 1.06rem 1.04rem 1.14rem;
}

.blog-post-body h3 {
  margin-bottom: 0.48rem;
  color: #ffffff;
  line-height: 1.24;
}

.blog-post-body p {
  color: #e1e8ef;
}

.blog-meta {
  display: inline-block;
  margin-bottom: 0.58rem;
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  background: rgba(242, 194, 48, 0.2);
  border: 1px solid rgba(242, 194, 48, 0.4);
  color: #fff4c9;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.recent-sidebar {
  border-color: rgba(244, 248, 255, 0.2);
  background: linear-gradient(155deg, rgba(7, 38, 26, 0.92), rgba(5, 24, 17, 0.95));
}

.recent-item img {
  width: 86px;
  height: 66px;
  border-color: rgba(244, 248, 255, 0.3);
}

.recent-item:hover span {
  color: #ffffff;
}

.article-hero img {
  filter: contrast(1.05);
}

.site-footer {
  border-top-color: var(--line);
  /* Same BG as hero / section */
  background:
    linear-gradient(135deg, var(--yellow-pale) 0%, transparent 25%),
    linear-gradient(225deg, var(--cyan-pale) 0%, transparent 30%),
    linear-gradient(315deg, var(--purple-pale) 0%, transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, var(--rose-mid) 50%, rgba(255, 250, 252, 0.92) 100%);
}

.footer-shell {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--yellow-pale) 0%, transparent 25%),
    linear-gradient(225deg, var(--cyan-pale) 0%, transparent 30%),
    linear-gradient(315deg, var(--purple-pale) 0%, transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, var(--rose-mid) 50%, rgba(255, 250, 252, 0.92) 100%);
  box-shadow: var(--shadow-soft);
}

.footer-share-row {
  border-bottom-color: var(--line-strong);
}

.footer-share-label,
.footer-brand-name,
.footer-title {
  color: var(--ink);
}

.footer-disclaimer,
.footer-copy {
  color: var(--muted);
}

.social-btn {
  border-radius: 999px;
}

.footer-links {
  border-left-color: var(--line);
}

.footer-links a {
  color: var(--ink-soft);
  padding-bottom: 0.1rem;
}

.footer-links a:hover {
  color: var(--poker-red);
  border-bottom-color: var(--red-soft);
}

@media (max-width: 980px) {
  :root {
    --anchor-offset: 72px;
  }

  .top-cta-wrap {
    justify-content: center;
  }

  .main-nav-wrap {
    min-height: auto;
    gap: 0.6rem;
    padding: 0.58rem 0 0.64rem;
  }

  .main-nav {
    margin-left: 0;
    justify-content: center;
  }

  .hero > :not(figure) {
    grid-column: auto;
  }

  .hero figure {
    transform: none;
  }
}

@media (max-width: 680px) {
  :root {
    --anchor-offset: 76px;
  }

  .top-cta-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
    padding: 0.44rem 0 0.54rem;
  }

  .top-cta-btn {
    min-width: 0;
    font-size: 0.7rem;
    padding: 0.44rem 0.25rem;
  }

  .main-nav-wrap {
    display: block;
  }

  .brand {
    display: flex;
    justify-content: center;
    margin-bottom: 0.45rem;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.18rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 0.84rem;
    padding: 0.42rem 0.78rem;
  }

  .hero figure img {
    max-height: clamp(260px, 50vw, 320px);
  }
  .hero figure img.hero-banner {
    max-height: clamp(280px, 52vw, 340px);
  }
}

/* ===================== Sci-Fi / 82 Lottery (layout overrides only) ===================== */
.container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 46px);
}

main {
  padding: 2.45rem 0 4.2rem;
}

.main-nav-wrap {
  min-height: 82px;
  gap: 1rem;
}

/* Hamburger: hidden on desktop */
.nav-toggle {
  display: none;
  order: 1;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-light), var(--red-soft));
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: filter 0.2s ease;
}
.nav-toggle:hover {
  filter: brightness(1.08);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.site-header.nav-open .nav-toggle {
  background: linear-gradient(135deg, var(--red-light), var(--red-soft));
}

.brand {
  order: 0;
  margin-left: 0;
}

.brand img {
  max-height: 78px;
  filter: drop-shadow(0 2px 8px rgba(232, 92, 92, 0.12));
}

.main-nav {
  order: 2;
  margin-left: auto;
  gap: 0.64rem;
}

.hero {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.3rem;
}

.hero > :not(figure) {
  grid-column: 1;
}

.hero figure {
  grid-column: 2;
  grid-row: 1 / span 4;
  border-radius: 18px;
  padding: 0.65rem;
  transform: none;
}

.hero figure img {
  width: 100%;
  max-height: clamp(290px, 42vw, 480px);
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(170, 218, 255, 0.28);
  filter: saturate(1.06) contrast(1.04);
}

/* Hero eyebrow + CTA buttons: same red as nav */
.eyebrow {
  border: 1px solid rgba(232, 92, 92, 0.35);
  background: linear-gradient(135deg, var(--red-light), var(--red-soft));
  color: #fff;
  font-weight: 600;
}

.lead {
  color: var(--muted);
}

.cta-row {
  gap: 0.62rem;
}

.btn {
  font-family: "Segoe UI", system-ui, sans-serif;
  border-radius: 999px;
  padding: 0.66rem 1.08rem;
}

.btn-primary,
.btn-secondary {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--red-light), var(--red-soft));
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  border: 1px solid rgba(232, 92, 92, 0.4);
  background: linear-gradient(135deg, var(--red-light), var(--red-soft));
}

.btn-primary:hover,
.btn-secondary:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-md);
}

/* #download, #register, #login use default section BG (same as About Us) - no dark/simple override */

.split {
  gap: 1.3rem;
}

#register.split {
  align-items: start;
}

#login.split {
  align-items: start;
}

#register .split-copy {
  align-self: start;
}

#login .split-copy {
  align-self: start;
}

.full-image {
  height: clamp(240px, 34vw, 430px);
  object-fit: contain;
}

.split-media img {
  max-height: clamp(320px, 44vw, 520px);
  height: auto;
  object-fit: contain;
}

.table-wrap {
  border-color: rgba(128, 192, 255, 0.24);
  background: linear-gradient(145deg, rgba(13, 33, 64, 0.74), rgba(9, 24, 46, 0.84));
}

.table-wrap table {
  background: rgba(10, 25, 48, 0.8);
}

.table-wrap th,
.table-wrap td {
  border-bottom-color: rgba(133, 195, 255, 0.2);
}

.table-wrap th {
  color: #eaf7ff;
  background: rgba(66, 215, 255, 0.22);
}

.table-wrap td {
  background: rgba(13, 33, 64, 0.46);
}

.games-grid {
  gap: 1.2rem;
}

.card h3 {
  color: var(--ink);
}

.card p {
  color: var(--muted);
}

.blog-post-body {
  padding: 1.05rem;
}

.blog-post-body h3 {
  color: var(--ink);
}

.blog-post-body p {
  color: var(--muted);
}

.recent-sidebar {
  top: 138px;
}

.recent-item img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
}

.recent-item span {
  color: var(--ink);
}

.recent-item:hover span {
  color: var(--poker-red);
}

.article-hero img {
  height: clamp(250px, 40vw, 360px);
  object-fit: cover;
}

@media (max-width: 980px) {
  :root {
    --anchor-offset: 72px;
  }

  .hero,
  .split,
  .download-layout,
  .games-grid,
  .two-col,
  .blog-grid,
  .blog-overview-layout,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .main-nav-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    min-height: auto;
    padding: 0.62rem 0 0.68rem;
  }

  .brand {
    margin: 0 auto;
  }

  .brand img {
    max-height: 52px;
  }

  .main-nav {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 0.8rem;
    padding: 0.42rem 0.76rem;
  }

  .top-cta-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    justify-content: initial;
  }

  .top-cta-btn {
    min-width: 0;
    font-size: 0.72rem;
    padding: 0.44rem 0.25rem;
  }

  .hero > :not(figure) {
    grid-column: auto;
  }

  .hero figure {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0.2rem;
  }

  .recent-sidebar {
    position: static;
  }

  .recent-date {
    margin-left: 0;
  }
}

/* Phone: nav opens via toggle (hamburger); logo pura left me, toggle right */
@media (max-width: 768px) {
  .main-nav-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
  }

  .brand {
    margin: 0;
    margin-right: auto;
    flex-shrink: 0;
    max-width: 70%;
    display: flex;
    align-items: center;
  }

  .brand img {
    max-height: 52px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    margin-left: 0;
    padding-top: 0.5rem;
    gap: 0.35rem;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 12px;
  }
}

@media (max-width: 680px) {
  :root {
    --anchor-offset: 76px;
  }

  .container {
    padding-inline: 12px;
  }

  section {
    border-radius: 16px;
    padding: 1rem;
  }

  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.16rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-header.nav-open .main-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }

  .hero figure img {
    max-height: clamp(240px, 55vw, 320px);
  }

  .hero figure img.hero-banner {
    max-height: clamp(260px, 58vw, 340px);
  }

  .split-media img {
    max-height: clamp(280px, 70vw, 400px);
    height: auto;
  }

  .card img,
  .blog-post-card img {
    height: 190px;
  }
}

