:root {
  --navy: #0A1628;
  --bg-dark: #0D1B2A;
  --bg-dark-2: #10233a;
  --gold: #FFD700;
  --gold-dim: #c9a900;
  --green: #00E676;
  --white: #FFFFFF;
  --gray: #E0E0E0;
  --muted: #8fa3bd;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-bg-hover: rgba(255, 255, 255, 0.09);
  --red: #FF5252;
  --font-heading: 'Montserrat', 'Inter', sans-serif;
  --font-body: 'Open Sans', 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --max-w: 1180px;
  --frame-w: 480px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #05080e;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0 auto;
  max-width: var(--frame-w);
  font-family: var(--font-body);
  background: radial-gradient(circle at 20% 0%, #14283f 0%, var(--bg-dark) 45%, var(--navy) 100%);
  color: var(--gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 100px rgba(0, 0, 0, 0.6);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--white);
  margin: 0 0 12px;
  line-height: 1.25;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 44px 0;
  position: relative;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.section-header .eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  display: block;
  margin-bottom: 8px;
}

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

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
  margin: 0 auto 32px;
  max-width: 200px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, #FFE873, var(--gold));
  color: #201a00;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
}
.btn-green {
  background: linear-gradient(135deg, #37ffa0, var(--green));
  color: #002612;
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--card-border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-blue {
  background: linear-gradient(135deg, #4d7fd6, #2b4f8c);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(43, 79, 140, 0.4);
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; min-height: 38px; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 19, 34, 0.97);
  border-bottom: 1px solid var(--card-border);
  transition: box-shadow 0.15s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  white-space: nowrap;
}
.brand .logo-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.main-nav {
  display: none;
}
.main-nav a {
  color: var(--gray);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover {
  background: var(--card-bg);
  color: var(--gold);
  text-decoration: none;
}

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

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.25s ease, padding 0.25s ease;
}
.search-box.open {
  max-width: 140px;
  padding: 6px 6px 6px 16px;
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  width: 100%;
}

.hamburger {
  display: flex;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--card-border);
  background: rgba(10, 22, 40, 0.97);
}
.mobile-nav a {
  color: var(--gray);
  font-weight: 600;
  padding: 12px 8px;
  border-radius: 10px;
}
.mobile-nav a:active { background: var(--card-bg); }
.mobile-nav.open { display: flex; }

/* Bottom tab bar — always on, centered under the app frame */
.bottom-nav {
  display: block;
  position: fixed;
  bottom: 0;
  left: max(0px, calc(50vw - var(--frame-w) / 2));
  right: max(0px, calc(50vw - var(--frame-w) / 2));
  z-index: 90;
  background: rgba(9, 19, 34, 0.98);
  border-top: 1px solid var(--card-border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 2px;
  border-radius: 10px;
}
.bottom-nav a span.ic { font-size: 1.15rem; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--gold); text-decoration: none; }

/* ---------------- Live winner ticker ---------------- */
.ticker-bar {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.07), rgba(0, 230, 118, 0.05));
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
}
.ticker-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}
.ticker-live {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--red);
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}
.ticker-viewport {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 28px, black calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, black 28px, black calc(100% - 28px), transparent);
}
.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--gray);
}
.ticker-item b { color: var(--green); font-family: var(--font-mono); font-weight: 700; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 44px 0 20px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

/* ---------------- Trust verification card (permanent stacked-row style) ---------------- */
.trust-card {
  margin: 0 auto 32px;
  background: var(--bg-dark-2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--radius);
  padding: 22px 18px 4px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}
.trust-label {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.trust-item:last-child { border-bottom: none; }
.ti-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.ti-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ti-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
}
.ti-title.ti-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.ti-value { font-size: 0.8rem; color: var(--gold); }

.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.1rem);
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 16px;
}
.hero h1 .accent { color: var(--gold); }

.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--gray);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 auto 36px;
}
.stat-row .stat-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
}
.stat-card .stat-icon { font-size: 1.3rem; margin-bottom: 6px; }
.stat-card .stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green);
  display: block;
}
.stat-card .stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.cta-row .btn { width: 100%; padding: 13px 16px; font-size: 0.88rem; }
.cta-row .btn:first-child { grid-column: 1 / -1; padding: 15px 20px; font-size: 0.95rem; }

.hero-footnote {
  color: var(--muted);
  font-size: 0.85rem;
}
.hero-footnote strong { color: var(--gray); }

#welcome { padding-top: 20px; }

/* ---------------- Cards Grid ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card-grid.cols-2 { grid-template-columns: 1fr; }

.pick-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.pick-card:hover {
  transform: translateY(-4px);
  background: var(--card-bg-hover);
  border-color: rgba(255, 215, 0, 0.3);
}
.pick-card .pick-icon { font-size: 1.8rem; margin-bottom: 10px; }
.pick-card .pick-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.pick-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pick-card .pick-stat {
  font-family: var(--font-mono);
  color: var(--green);
  font-weight: 700;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 4px;
}
.pick-card .pick-desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ---------------- Dashboard stat tiles ---------------- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.dash-tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}
.dash-tile .dash-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}
.dot-red { background: var(--red); }
.dot-gold { background: var(--gold); }
.dot-green { background: var(--green); }
.dot-purple { background: #B388FF; }
.dash-tile .dash-label { font-size: 0.75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.dash-tile .dash-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin: 8px 0 4px;
}
.dash-tile .dash-sub { font-size: 0.78rem; color: var(--muted); }

.hot-picks {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.hot-picks h3 { font-size: 1rem; margin-bottom: 12px; }
.hot-picks ul { margin: 0; padding-left: 20px; }
.hot-picks li { margin-bottom: 8px; color: var(--gray); }
.hot-picks li strong { color: var(--gold); }

/* ---------------- Lottery numbers ---------------- */
.lotto-panel {
  background: linear-gradient(135deg, rgba(255,215,0,0.07), rgba(0,230,118,0.05));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  text-align: center;
}
.lotto-panel h3 { margin-bottom: 4px; }
.lotto-panel .lotto-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.lotto-balls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.lotto-ball {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6cc, var(--gold) 70%);
  color: #241d00;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255,215,0,0.35);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.lotto-ball:hover { transform: translateY(-4px) rotate(-4deg); }

.draw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.draw-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}
.draw-card h4 { font-size: 0.98rem; margin-bottom: 6px; }
.draw-card .draw-time { color: var(--gold); font-family: var(--font-mono); font-size: 0.85rem; }
.draw-card .draw-prize { color: var(--green); font-weight: 700; margin: 6px 0 12px; }

/* ---------------- Strategy lists ---------------- */
.strategy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.strategy-list li {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.strategy-list li strong { color: var(--white); }

.strategy-block { margin-bottom: 28px; }
.strategy-block h3 {
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 12px;
}

/* ---------------- Casino grid ---------------- */
.casino-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.casino-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}
.casino-card:hover { transform: translateY(-3px); }
.casino-card .casino-icon { font-size: 1.8rem; margin-bottom: 8px; }
.casino-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.casino-card .casino-stat { font-size: 0.8rem; color: var(--muted); }
.casino-card .casino-stat b { color: var(--green); font-family: var(--font-mono); }

.callout {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--gray);
  font-size: 0.92rem;
}
.callout strong { color: var(--green); }

.warning-box {
  background: rgba(255, 82, 82, 0.08);
  border: 1px solid rgba(255, 82, 82, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--gray);
  font-size: 0.92rem;
}
.warning-box strong { color: var(--red); }

/* ---------------- Tables ---------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}
thead th {
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 14px 16px;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
tbody td {
  padding: 13px 16px;
  border-top: 1px solid var(--card-border);
  color: var(--gray);
}
tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
tbody td:first-child { color: var(--white); font-weight: 600; }
td .num { font-family: var(--font-mono); color: var(--green); }

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-pill {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--gray);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.filter-pill.active {
  background: var(--gold);
  color: #201a00;
  border-color: var(--gold);
}

/* ---------------- Payment icons ---------------- */
.pay-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.pay-card {
  min-width: 150px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  flex-shrink: 0;
}
.pay-card .pay-name { font-weight: 700; color: var(--white); margin-bottom: 6px; }
.pay-card .pay-time { font-family: var(--font-mono); color: var(--green); font-size: 1.1rem; }
.pay-card .pay-stars { color: var(--gold); margin-top: 6px; font-size: 0.85rem; }

/* ---------------- Mobile perf ---------------- */
.mobile-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.mobile-stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}
.mobile-stat .m-icon { font-size: 1.4rem; }
.mobile-stat .m-val { font-family: var(--font-mono); font-size: 1.3rem; color: var(--green); font-weight: 700; display: block; margin: 6px 0; }

/* ---------------- FAQ Accordion ---------------- */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.accordion-trigger .chev {
  transition: transform 0.2s ease;
  color: var(--gold);
  flex-shrink: 0;
}
.accordion-item.open .accordion-trigger .chev { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel-inner {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
.accordion-item.open .accordion-panel { max-height: 400px; }

/* ---------------- Responsible gaming ---------------- */
.rg-box {
  background: linear-gradient(135deg, rgba(255,82,82,0.06), rgba(255,215,0,0.05));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.rg-box h2 { margin-bottom: 10px; }
.help-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.help-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  min-width: 220px;
}
.help-card .phone { color: var(--green); font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; }

.warn-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0; text-align: left; }
.warn-list li { color: var(--gray); font-size: 0.9rem; }

/* ---------------- Author ---------------- */
.author-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
}
.author-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--green));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #14210f;
}
.author-social { display: flex; gap: 12px; margin-top: 14px; }
.author-social a {
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 700;
}
.author-social a:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }

/* ---------------- Tools ---------------- */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-card .tool-check { color: var(--green); font-size: 1.2rem; }
.tool-card span.label { font-size: 0.9rem; color: var(--gray); }
.tool-card .soon {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(255,215,0,0.35);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------------- Culture ---------------- */
.culture-cols { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0 32px;
  background: rgba(0,0,0,0.2);
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--gray); font-weight: 600; font-size: 0.9rem; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.footer-legal a { color: var(--muted); }
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.back-to-top {
  position: fixed;
  right: max(20px, calc(50vw - var(--frame-w) / 2 + 20px));
  bottom: 78px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #201a00;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  z-index: 95;
}
.back-to-top.show { display: flex; }

/* ---------------- Contact form ---------------- */
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row textarea { min-height: 120px; }
.form-row select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ---------------- About page extras ---------------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.mission-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mission-card .mission-icon { font-size: 1.5rem; flex-shrink: 0; }
.mission-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.mission-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

.timeline { display: grid; gap: 0; }
.timeline-item {
  position: relative;
  padding: 0 0 24px 28px;
  border-left: 2px solid var(--card-border);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}
.timeline-item .tl-year { color: var(--gold); font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; }
.timeline-item h3 { font-size: 1rem; margin: 4px 0 6px; }
.timeline-item p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ==========================================================================
   Real small-device fine-tuning only.
   The app-frame layout above is already the permanent "mobile" style at
   every viewport width; these two queries just shrink a couple of tight
   spots on genuinely narrow phones (frame width = actual viewport there).
   ========================================================================== */
@media (max-width: 400px) {
  .lotto-ball { width: 44px; height: 44px; font-size: 0.95rem; }
  .lotto-balls { gap: 8px; }
  .header-inner { padding: 0 12px; gap: 6px; }
  .search-box.open { max-width: 110px; }
}

@media (max-width: 360px) {
  #siteHeader .brand-text { display: none; }
}
