:root {
  --bg: #070a12;
  --bg-secondary: #0b1020;
  --card: #10182b;
  --card-elevated: #141e34;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --gold: #c9a15a;
  --gold-bright: #e8c988;
  --ivory: #f0f2f8;
  --muted: #8791ab;
  --muted-dim: #5c6480;
  --win: #45c485;
  --lose: #e2636b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--ivory);
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

a { color: inherit; }
code { background: var(--card-elevated); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

.icon { width: 19px; height: 19px; flex-shrink: 0; }
h1 .icon { width: 26px; height: 26px; vertical-align: -5px; margin-right: 6px; color: var(--gold-bright); }

/* ============ App shell ============ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 246px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--gold-bright), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 800;
  font-size: 1.05rem;
}

.logo-text {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--ivory);
  text-transform: uppercase;
}

.logo-text .logo-sub {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--gold-bright);
  letter-spacing: 0.16em;
}

.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }

.side-nav a {
  text-decoration: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}

.side-nav a:hover { background: var(--card); color: var(--ivory); }

.side-nav a.active {
  background: linear-gradient(90deg, rgba(201,161,90,0.16), rgba(201,161,90,0.03));
  color: var(--gold-bright);
}

.side-nav a.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--gold-bright);
}

.side-nav-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }

.sidebar-tag {
  margin-top: 14px;
  padding: 12px;
  font-size: 0.72rem;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
}

.sidebar-tag strong { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 2px; }

.main-col { flex: 1; min-width: 0; }

/* ============ Header ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 32px;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.hamburger {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ivory);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-form { flex: 1; max-width: 380px; position: relative; }

.search-form .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-dim);
}

.search-form input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ivory);
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
}

.search-form input:focus-visible { outline: 1.5px solid var(--gold); }

.header-spacer { flex: 1; }

.balance-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
}

.balance-box .icon { color: var(--gold-bright); width: 17px; height: 17px; }

.balance-text { display: flex; flex-direction: column; line-height: 1.1; }
.balance-label { font-size: 0.62rem; color: var(--muted-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.balance-amount { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 0.95rem; }

.topup-form { margin: 0; }

.topup-btn {
  background: var(--card-elevated);
  color: var(--gold-bright);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.topup-btn:hover { background: #1c2843; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.container { max-width: 1440px; margin: 0 auto; padding: 36px 32px 64px; }
.subtitle { color: var(--muted); max-width: 68ch; }

.disclaimer {
  color: var(--muted-dim);
  font-size: 0.82rem;
  margin-top: 32px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

.site-footer { text-align: center; color: var(--muted-dim); font-size: 0.8rem; padding: 28px; border-top: 1px solid var(--border); margin-top: 20px; }

/* ============ Buttons ============ */
.btn-primary, .btn-secondary, .btn-ghost, .btn-danger {
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease, background 0.18s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #1a1206; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.97); }

.btn-secondary { background: var(--card-elevated); color: var(--ivory); border-color: var(--border-strong); }
.btn-secondary:hover { background: #1a2540; }

.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--ivory); border-color: var(--border-strong); }

.btn-danger { background: rgba(226, 99, 107, 0.14); color: #f3a5aa; border-color: rgba(226, 99, 107, 0.35); }
.btn-danger:hover { background: rgba(226, 99, 107, 0.22); }

button:disabled { opacity: 0.5; cursor: not-allowed; filter: none !important; transform: none !important; }

.game-form input:focus-visible,
button:focus-visible,
a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* ============ Cards / forms ============ */
.game-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 20px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.game-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; color: var(--muted); }

.game-form input[type="number"],
.game-form input[type="text"],
.game-form input[type="password"],
.game-form select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  color: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
}

.hint { color: var(--muted); font-size: 0.85rem; margin: -6px 0 0; }

.banner { border-radius: var(--radius-md); padding: 14px 18px; margin: 18px 0; font-weight: 600; border: 1px solid transparent; }
.banner.win { background: rgba(69, 196, 133, 0.12); border-color: rgba(69,196,133,0.4); color: #a9ecc7; }
.banner.lose { background: rgba(226, 99, 107, 0.12); border-color: rgba(226,99,107,0.4); color: #f3c3c4; }

/* ============ Hero ============ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(120deg, var(--card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 46px 44px;
  overflow: hidden;
  margin-bottom: 36px;
}

.hero-eyebrow { color: var(--gold-bright); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; margin-bottom: 10px; }
.hero-content { max-width: 480px; position: relative; z-index: 1; }
.hero h1 { font-size: 2.6rem; line-height: 1.08; margin-bottom: 14px; }
.hero p { color: var(--muted); font-size: 1rem; margin-bottom: 22px; }
.hero-visual { flex-shrink: 0; width: 300px; height: 240px; position: relative; z-index: 1; }
.hero-visual svg { width: 100%; height: 100%; }

/* ============ Category pills ============ */
.catalog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }

.filter-pill {
  text-decoration: none;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-pill.active { color: #1a1206; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: transparent; }

/* ============ Section headers ============ */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 18px; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--muted); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.section-head a:hover { color: var(--gold-bright); }

/* ============ Game grid / thumbnail cards ============ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.game-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ivory);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 16px 32px rgba(0,0,0,0.45); }

.thumb-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.thumb-svg { width: 100%; height: 100%; display: block; }

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,10,18,0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.game-card:hover .thumb-overlay { opacity: 1; }

.thumb-play {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-bright);
  color: #1a1206;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 999px;
}

.thumb-play .icon { width: 13px; height: 13px; }

.game-card-body { padding: 14px 16px 16px; }
.game-card-body h3 { margin: 0 0 3px; font-size: 0.98rem; }
.game-card-tag { color: var(--muted-dim); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; }

.game-card.coming-soon { opacity: 0.55; pointer-events: none; }
.game-card.coming-soon .thumb-overlay { opacity: 1; background: rgba(7,10,18,0.6); }
.game-card.coming-soon .thumb-play { background: var(--card-elevated); color: var(--muted); }

/* ============ Featured game ============ */
.featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-card);
}

.featured-card .thumb-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.featured-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px 32px;
  background: linear-gradient(0deg, rgba(7,10,18,0.92) 10%, rgba(7,10,18,0.15) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.featured-eyebrow { color: var(--gold-bright); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 6px; }
.featured-overlay h2 { font-size: 1.7rem; margin: 0 0 4px; }
.featured-overlay p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* ============ Live activity / big wins ============ */
.feed-list { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }

.feed-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  animation: feed-in 0.4s ease both;
}

.feed-row:last-child { border-bottom: none; }

.feed-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card-elevated);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.feed-main { flex: 1; min-width: 0; }
.feed-name { font-weight: 700; font-size: 0.9rem; }
.feed-meta { color: var(--muted-dim); font-size: 0.78rem; }
.feed-amount { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--win); white-space: nowrap; }

@keyframes feed-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.bigwin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.bigwin-card {
  background: linear-gradient(160deg, var(--card-elevated), var(--card));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
}

.bigwin-amount { font-size: 1.5rem; font-weight: 800; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.bigwin-game { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.bigwin-player { color: var(--muted-dim); font-size: 0.78rem; margin-top: 8px; }

.empty-note { color: var(--muted-dim); font-size: 0.88rem; padding: 18px; }

/* ============ Jackpot ============ */
.jackpot-banner {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: radial-gradient(ellipse at 30% 20%, rgba(201,161,90,0.14), transparent 55%), linear-gradient(150deg, var(--card-elevated), var(--bg-secondary));
  padding: 34px 40px;
  text-align: center;
  margin: 40px 0;
}

.jackpot-label { color: var(--gold-bright); font-weight: 800; letter-spacing: 0.14em; font-size: 0.8rem; }
.jackpot-amount { font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 8px 0 4px; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jackpot-sub { color: var(--muted-dim); font-size: 0.82rem; }

/* ============ Stat grid / data tables ============ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.stat-box .stat-value { font-size: 1.5rem; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.stat-box .stat-label { color: var(--muted); font-size: 0.78rem; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.9rem; }
.data-table th, .data-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--muted-dim); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tr:hover td { background: var(--card); }
.data-table .rank-1 { color: var(--gold-bright); font-weight: 800; }

/* ============ Slots ============ */
.reels { display: flex; gap: 12px; margin: 24px 0; }
.reel { width: 88px; height: 88px; background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.pharaoh-reels .reel { background: linear-gradient(160deg, #3d2f14, #241a0a); border-color: var(--gold-bright); }
.pirate-reels .reel { background: linear-gradient(160deg, #0d2b2e, #071a1c); border-color: #3fa8a3; }
.olimp-reels .reel, .temple-reels .reel { background: linear-gradient(160deg, #2a1f3d, #1a1330); border-color: var(--gold); }

.paytable { margin-top: 22px; color: var(--muted); }
.paytable summary { cursor: pointer; color: var(--ivory); font-weight: 700; }
.paytable ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }

/* ============ Mines ============ */
.mines-status { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; color: var(--muted); }
.mines-status strong { color: var(--ivory); }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 360px; }
.mines-grid form { margin: 0; }
.tile { width: 100%; aspect-ratio: 1; background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 1.3rem; cursor: pointer; color: var(--ivory); transition: background 0.15s ease; }
.tile:not(:disabled):hover { background: var(--card-elevated); }
.tile.safe { background: rgba(69, 196, 133, 0.16); border-color: var(--win); animation: tile-reveal 0.28s ease both; }
.tile.mine { background: rgba(226, 99, 107, 0.18); border-color: var(--lose); animation: tile-reveal 0.28s ease both; }
@keyframes tile-reveal { from { transform: scale(0.6); opacity: 0.3; } to { transform: scale(1); opacity: 1; } }
.tile:disabled { cursor: default; }

/* ============ Scratch card ============ */
.scratch-wrap { position: relative; width: 320px; max-width: 100%; margin: 20px 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); }
.scratch-prize { height: 180px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.6rem; background: var(--card); }
.scratch-wrap canvas { position: absolute; top: 0; left: 0; touch-action: none; cursor: pointer; }

/* ============ Roulette ============ */
.roulette-result { display: flex; justify-content: center; margin: 24px 0; }
.roulette-number { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; border: 3px solid var(--border-strong); }
.roulette-number.red { background: rgba(226, 99, 107, 0.22); border-color: var(--lose); }
.roulette-number.black { background: rgba(20, 24, 36, 0.6); border-color: #3a4a6b; }
.roulette-number.green { background: rgba(69, 196, 133, 0.22); border-color: var(--win); }

/* ============ Blackjack ============ */
.bj-hand { margin: 18px 0; }
.cards { display: flex; gap: 8px; flex-wrap: wrap; }
.card { width: 54px; height: 76px; background: var(--card); border: 1px solid var(--border-strong); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; animation: card-deal 0.35s ease both; }
@keyframes card-deal { from { opacity: 0; transform: translateY(-16px) scale(0.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
.card.red { color: #e0696c; }
.card.back { background: var(--card-elevated); color: var(--gold); font-size: 1.4rem; }
.bj-controls { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.bj-controls form { margin: 0; }

/* ============ Plinko ============ */
.plinko-board { position: relative; background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 20px 10px 10px; max-width: 420px; min-height: 260px; }
.plinko-row { display: flex; justify-content: center; gap: 22px; margin-bottom: 18px; }
.peg { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.plinko-ball { position: absolute; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.plinko-slots { display: flex; gap: 4px; margin-top: 10px; }
.plinko-slot { flex: 1; text-align: center; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 4px; padding: 4px 2px; font-size: 0.7rem; color: var(--muted); }

/* ============ Crash / Balloon ============ */
.crash-display, .balloon-display { background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 50px 20px; text-align: center; margin: 20px 0; }
.crash-number { font-size: 3rem; font-weight: 800; }
.crash-number.crash-win { color: var(--win); }
.crash-number.crash-lose { color: var(--lose); }
.balloon { font-size: 3.5rem; display: inline-block; transition: transform 0.1s linear; }
.balloon-number { font-size: 1.8rem; margin-top: 10px; font-weight: 800; }

/* ============ Coin flip ============ */
.coin-display { display: flex; justify-content: center; margin: 24px 0; }
.coin { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(160deg, var(--gold-bright), var(--gold)); color: #1a1206; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; border: 3px solid var(--border-strong); }

/* ============ Racing ============ */
.race-track { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; max-width: 480px; }
.race-lane { display: flex; flex-direction: column; gap: 4px; }
.race-name { font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; }
.race-odds { color: var(--gold); }
.race-path { position: relative; height: 34px; background: var(--card); border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; }
.race-horse { position: absolute; left: 2px; top: 2px; font-size: 1.4rem; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: 2px 0 24px rgba(0,0,0,0.4); }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: flex; }
  .hero { flex-direction: column; text-align: center; padding: 32px 24px; }
  .hero-content { max-width: none; }
  .hero-visual { width: 220px; height: 180px; }
}

@media (max-width: 640px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 12px 16px; }
  .container { padding: 26px 16px 48px; }
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.9rem; }
  .mines-grid { max-width: 100%; }
  .search-form { order: 3; flex-basis: 100%; max-width: none; }
  .featured-overlay { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============ Standalone auth pages (login/register) ============ */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; background: var(--bg); background-image: radial-gradient(ellipse at top, rgba(201,161,90,0.08), transparent 55%); }
.auth-wrap { width: 100%; max-width: 380px; }
.auth-wrap .logo { justify-content: center; border: none; padding: 0 0 26px; margin: 0; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); }
.auth-card h1 { font-size: 1.5rem; text-align: center; }
.auth-card .subtitle { text-align: center; margin: 0 auto 22px; }
.auth-card .game-form { max-width: none; margin-top: 0; padding: 0; background: none; border: none; box-shadow: none; }
.auth-card .hint { text-align: center; margin-top: 18px; }
.auth-card .banner { text-align: center; }
