/* AURUM — The Gilded Casino · aurum.css (Worker A)
   Design system: onyx / emerald / champagne gold. Cinzel display + Inter body.
   Transform/opacity animations only. Responsive at 1200 / 900 / 640. */

:root {
  --onyx: #0B0E0C;
  --onyx-2: #101410;
  --onyx-3: #161b16;
  --emerald: #0E6B4A;
  --emerald-bright: #12A56F;
  --emerald-deep: #08351f;
  --gold: #D4AF37;
  --gold-light: #E9CE7A;
  --gold-dim: #8a6d1f;
  --ivory: #F5F1E6;
  --muted: #9aa39b;
  --muted-2: #6f776f;
  --danger: #a3121f;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--onyx);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); }
a:hover { color: var(--gold); }

h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 600; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: #14100a;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- view transitions ---------- */
.view { opacity: 0; transform: translateY(14px); transition: opacity .38s ease, transform .38s ease; }
.view.view-in { opacity: 1; transform: none; }
#view { outline: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 28px;
  background: rgba(8, 10, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: 8px; color: var(--gold-light); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.wordmark::before {
  content: ""; width: 26px; height: 26px; flex: none;
  background:
    radial-gradient(circle at 50% 50%, var(--gold-light) 0 32%, transparent 34%),
    conic-gradient(from 0deg, var(--gold) 0 25%, transparent 0 50%, var(--gold) 0 75%, transparent 0);
  border: 1.5px solid var(--gold); border-radius: 50%;
}
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  color: var(--ivory); text-decoration: none; font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 10px 14px; border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--gold-light); background: rgba(212, 175, 55, 0.08); }
.nav a.is-active { color: var(--gold-light); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-icon { display: inline-flex; align-items: center; }
.nav-icon svg { width: 22px; height: 22px; }

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

.mode-toggle {
  display: inline-flex; border: 1px solid var(--gold-dim); border-radius: 999px;
  overflow: hidden; background: rgba(0, 0, 0, 0.4);
}
.mode-toggle button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 1px;
  padding: 8px 16px; transition: background .2s ease, color .2s ease;
}
.mode-toggle button.is-active { background: var(--emerald); color: #fff; }
.mode-toggle button:not(.is-active):hover { color: var(--gold-light); }

.balance-pill {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  color: #14100a; background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 999px; padding: 8px 18px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  font-variant-numeric: tabular-nums;
}
.balance-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35); color: #14100a; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold-dim); color: var(--gold-light);
  transition: border-color .2s ease, transform .15s ease;
}
.icon-btn:hover { border-color: var(--gold-light); transform: rotate(24deg); color: var(--gold-light); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 480px; display: flex; align-items: center; }
.hero-art { position: absolute; inset: 0; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 7, 6, 0.88) 0%, rgba(5, 7, 6, 0.55) 45%, rgba(5, 7, 6, 0.15) 100%);
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 72px 28px; width: 100%; }
.hero-kicker {
  font-family: var(--font-display); letter-spacing: 6px; text-transform: uppercase;
  color: var(--gold); font-size: 14px; margin: 0 0 14px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 76px); line-height: 1.05; margin: 0 0 18px;
  color: var(--ivory); text-shadow: 0 3px 30px rgba(0, 0, 0, 0.7);
}
.hero-title::first-letter { color: var(--gold-light); }
.hero-sub { max-width: 520px; color: #d8d2c0; font-size: 18px; margin: 0 0 28px; }
.hero-ticker {
  margin-top: 30px; display: flex; align-items: center; gap: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.3); padding-top: 16px; max-width: 560px;
}
.ticker-label {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
.ticker-text {
  color: var(--gold-light); font-size: 15px; font-variant-numeric: tabular-nums;
  transition: opacity .32s ease, transform .32s ease;
}
.ticker-text.aurum-ticker-out { opacity: 0; transform: translateY(8px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 15px;
  letter-spacing: 1px; text-decoration: none; cursor: pointer;
  padding: 13px 30px; border-radius: 6px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, #b8942a);
  color: #14100a; box-shadow: 0 4px 22px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4); color: #14100a; }
.btn-ghost { background: transparent; color: var(--gold-light); border-color: var(--gold-dim); }
.btn-ghost:hover { border-color: var(--gold-light); transform: translateY(-1px); color: var(--gold-light); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: var(--emerald-bright); color: #fff; transform: translateY(-1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- lobby ---------- */
.lobby-wrap { max-width: 1280px; margin: 0 auto; padding: 34px 28px 60px; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid rgba(212, 175, 55, 0.22); margin-bottom: 8px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.tab:hover { color: var(--gold-light); }
.tab.is-active { color: var(--gold-light); border-color: var(--gold-dim); background: rgba(212, 175, 55, 0.08); }

.toolbar-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search input, .ctl select {
  background: var(--onyx-2); border: 1px solid rgba(212, 175, 55, 0.3); color: var(--ivory);
  border-radius: 6px; padding: 9px 12px; font-family: var(--font-body); font-size: 14px;
  transition: border-color .2s ease;
}
.search input { min-width: 190px; }
.search input:focus, .ctl select:focus { outline: none; border-color: var(--gold-light); }
.ctl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ctl select { cursor: pointer; }

.row-section { margin-top: 34px; }
.row-title {
  font-size: 24px; letter-spacing: 2px; color: var(--gold-light); margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.row-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212,175,55,0.4), transparent); }
.row-title .count { font-family: var(--font-body); font-size: 14px; color: var(--muted); letter-spacing: 0; }

.tile-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}

.tile {
  position: relative; display: block; width: 100%; padding: 0; text-align: left;
  background: var(--onyx-2); border: 1px solid rgba(212, 175, 55, 0.22); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; color: inherit; font: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tile:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.35); }
.tile-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.tile-art svg { width: 100%; height: 100%; display: block; transition: transform .4s ease; }
.tile:hover .tile-art svg { transform: scale(1.045); }
.tile-meta { display: block; padding: 12px 14px 14px; }
.tile-name { display: block; font-family: var(--font-display); font-size: 16px; letter-spacing: 0.5px; color: var(--ivory); }
.tile-sub { display: block; font-size: 12px; color: var(--muted); text-transform: capitalize; margin: 3px 0 8px; }
.tile-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tile-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(5, 7, 6, 0.85); border: 1px solid var(--gold-dim); color: var(--gold-light);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.tile-resting { filter: grayscale(0.7) brightness(0.72); }
.tile-resting:hover { transform: none; box-shadow: none; border-color: rgba(212, 175, 55, 0.22); }
.tile-resting .tile-art svg { transform: none; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  padding: 3px 10px; border-radius: 999px; border: 1px solid;
}
.badge-rtp { color: var(--gold-light); border-color: var(--gold-dim); background: rgba(212, 175, 55, 0.08); }
.badge-vol { color: var(--ivory); border-color: #3a403a; background: rgba(255, 255, 255, 0.04); }
.badge-vol-low { color: #8fd6ab; border-color: rgba(18, 165, 111, 0.5); }
.badge-vol-medium { color: var(--gold-light); border-color: var(--gold-dim); }
.badge-vol-high { color: #f0908a; border-color: rgba(163, 18, 31, 0.6); }

.empty { color: var(--muted); font-size: 15px; padding: 26px 0; }
.loading { max-width: 640px; margin: 80px auto; text-align: center; color: var(--muted); font-family: var(--font-display); letter-spacing: 2px; }
.narrow { max-width: 860px; margin: 0 auto; padding: 40px 28px 70px; }
.page-title { font-size: 34px; letter-spacing: 3px; color: var(--gold-light); margin: 0 0 22px; }

/* ---------- game page ---------- */
.game-page { max-width: 1280px; margin: 0 auto; padding: 26px 28px 70px; }
.back-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: 1px; margin-bottom: 18px; transition: color .2s ease; }
.back-link:hover { color: var(--gold-light); }
.game-head {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between;
  padding-bottom: 22px; border-bottom: 1px solid rgba(212, 175, 55, 0.22); margin-bottom: 24px;
}
.game-title { font-size: clamp(28px, 4vw, 44px); letter-spacing: 2px; color: var(--ivory); margin: 0 0 4px; }
.game-provider { color: var(--gold); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 10px; }
.game-desc { color: var(--muted); max-width: 560px; margin: 10px 0 0; }
.game-head-side { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.game-stage {
  background: var(--onyx-2); border: 1px solid rgba(212, 175, 55, 0.25); border-radius: 14px;
  padding: 30px; min-height: 420px;
}
.resting {
  border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 12px; padding: 46px 30px;
  text-align: center; background: var(--onyx-2); margin-top: 10px;
}
.resting-title { font-family: var(--font-display); font-size: 24px; color: var(--gold-light); letter-spacing: 2px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 150; background: rgba(4, 6, 5, 0.78);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(6px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--onyx-2); border: 1px solid var(--gold-dim); border-radius: 14px;
  max-width: 640px; width: 100%; max-height: 84vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.modal-head h2 { margin: 0; font-size: 22px; letter-spacing: 2px; color: var(--gold-light); }
.modal-close {
  background: transparent; border: 1px solid var(--gold-dim); color: var(--gold-light);
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer;
  transition: border-color .2s ease, transform .15s ease;
}
.modal-close:hover { border-color: var(--gold-light); transform: rotate(90deg); }
.modal-body { padding: 24px; overflow-y: auto; color: #d8d2c0; }
.modal-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.modal-body th, .modal-body td { padding: 8px 10px; border-bottom: 1px solid rgba(212, 175, 55, 0.15); text-align: left; }
.modal-body th { color: var(--gold-light); font-family: var(--font-display); letter-spacing: 1px; font-size: 13px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  background: #070907; padding: 44px 28px 34px; margin-top: 20px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-brand { font-family: var(--font-display); letter-spacing: 6px; color: var(--gold-light); font-size: 20px; margin-bottom: 18px; }
.footer-note { color: var(--muted); font-size: 14px; max-width: 720px; margin: 0 0 12px; }
.footer-note strong { color: var(--gold-light); font-weight: 600; }
.footer-sandbox {
  border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 8px; padding: 14px 18px;
  color: var(--gold-light); font-size: 14px; max-width: 720px; margin: 16px 0;
  background: rgba(212, 175, 55, 0.05);
}
.footer-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-top: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; letter-spacing: 0.5px; }
.footer-links a:hover { color: var(--gold-light); }
.rm-toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.rm-toggle input { accent-color: var(--gold); width: 17px; height: 17px; cursor: pointer; }
.footer-legal { margin-top: 22px; font-size: 12px; color: var(--muted-2); }

/* ---------- FX overlays (celebrations) ---------- */
.aurum-fx-shimmer {
  position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden;
}
.aurum-fx-shimmer::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 36%;
  background: linear-gradient(105deg, transparent, rgba(233, 206, 122, 0.5), transparent);
  transform: skewX(-18deg);
  animation: aurumSweep 1.2s ease forwards;
}
@keyframes aurumSweep { from { left: -40%; } to { left: 130%; } }

.aurum-fx-burst {
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.aurum-fx-burst::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.22), transparent 60%);
  animation: aurumFade 2.4s ease forwards;
}
.aurum-fx-burst-label {
  position: relative; z-index: 2; font-family: var(--font-display); font-size: clamp(34px, 6vw, 64px);
  color: var(--gold-light); text-shadow: 0 4px 30px rgba(212, 175, 55, 0.6);
  animation: aurumPop .7s cubic-bezier(.2, 1.4, .4, 1) both;
}
.aurum-fx-coin {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold) 70%, var(--gold-dim));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
  animation: aurumCoin 1.6s cubic-bezier(.15, .7, .4, 1) forwards;
}
@keyframes aurumCoin {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0; }
  18% { opacity: 1; transform: translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3)) scale(1.1); }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.9); opacity: 0; }
}
@keyframes aurumPop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes aurumFade { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

.aurum-fx-jackpot {
  position: fixed; inset: 0; z-index: 400; cursor: pointer;
  background: radial-gradient(circle at 50% 45%, rgba(30, 22, 6, 0.97), rgba(4, 5, 4, 0.98));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  animation: aurumFade 6s ease forwards;
}
.aurum-fx-jackpot-rays { position: absolute; left: 50%; top: 45%; width: 0; height: 0; }
.aurum-fx-jackpot-ray {
  position: absolute; left: -3px; top: -70vmax; width: 6px; height: 70vmax;
  transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(233, 206, 122, 0.35), transparent);
}
.aurum-fx-jackpot-rays { animation: aurumSpin 14s linear infinite; }
@keyframes aurumSpin { to { transform: rotate(360deg); } }
.aurum-fx-jackpot-card { position: relative; text-align: center; animation: aurumPop .8s cubic-bezier(.2, 1.4, .4, 1) both; }
.aurum-fx-jackpot-title {
  font-family: var(--font-display); font-size: clamp(48px, 10vw, 110px); letter-spacing: 14px;
  background: linear-gradient(180deg, #fff3c4, var(--gold-light) 45%, var(--gold) 75%, #9a7a24);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(212, 175, 55, 0.35);
}
.aurum-fx-jackpot-amount {
  font-family: var(--font-display); font-size: clamp(30px, 5vw, 54px); color: var(--ivory);
  margin-top: 10px; font-variant-numeric: tabular-nums;
}
.aurum-fx-jackpot-hint { color: var(--muted); font-size: 13px; letter-spacing: 2px; margin-top: 26px; text-transform: uppercase; }

/* ---------- shared game-chrome bits (engines may reuse) ---------- */
.aurum-betbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
  padding: 18px; border: 1px solid rgba(212, 175, 55, 0.25); border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); margin-top: 20px;
}
.aurum-chip {
  width: 52px; height: 52px; border-radius: 50%; border: 2px dashed rgba(245, 241, 230, 0.85);
  font-weight: 700; font-size: 12px; cursor: pointer; color: #fff;
  transition: transform .15s ease;
}
.aurum-chip:hover { transform: translateY(-3px); }
.aurum-chip.is-active { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.aurum-action-btn {
  font-family: var(--font-display); font-size: 18px; letter-spacing: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #14100a;
  border: 0; border-radius: 8px; padding: 14px 44px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.aurum-action-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212, 175, 55, 0.4); }
.aurum-action-btn:active { transform: scale(0.97); }
.aurum-action-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .tile-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .site-header { gap: 14px; padding: 0 16px; }
  .nav a { padding: 10px 8px; font-size: 12px; letter-spacing: 1px; }
  .wordmark { font-size: 20px; letter-spacing: 5px; }
  .tile-row { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 420px; }
  .hero-copy { padding: 54px 20px; }
  .game-page { padding: 20px 16px 50px; }
  .game-stage { padding: 18px; }
  .lobby-wrap { padding: 26px 16px 46px; }
}
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; height: auto; padding: 12px 14px; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin-right: 0; }
  .nav a { white-space: nowrap; }
  .tile-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .toolbar-controls { width: 100%; }
  .search input { min-width: 0; flex: 1; }
  .game-head-side { width: 100%; }
  .modal-backdrop { padding: 12px; }
  .balance-pill { padding: 7px 14px; font-size: 13px; }
}

/* ---------- reduced motion: OS-level + in-app toggle ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .view { opacity: 1; transform: none; }
  .tile:hover { transform: none; }
  .tile:hover .tile-art svg { transform: none; }
}
html.aurum-rm *, html.aurum-rm *::before, html.aurum-rm *::after {
  animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important;
}
html.aurum-rm .view { opacity: 1; transform: none; }
html.aurum-rm .tile:hover { transform: none; }
html.aurum-rm .tile:hover .tile-art svg { transform: none; }

/* ================= ENGINE SUPPORT (integration) =================
   Styles for the game-engine semantic classes (au-*, ag-*, slots-*).
   Transform/opacity animations only. Honors .aurum-rm (in-app reduce motion). */

/* ---------- au-* shared table chrome ---------- */
.au-game { max-width: 980px; margin: 0 auto; padding: 8px 4px 32px; }
.au-felt, .au-bj-felt, .au-bac-felt, .au-craps-felt, .au-sicbo-felt {
  background: radial-gradient(ellipse at 50% 30%, #14532d 0%, #0b3b21 55%, #072a17 100%);
  border: 1px solid rgba(212, 175, 55, 0.45); border-radius: 16px;
  padding: 22px 18px; position: relative;
  box-shadow: inset 0 0 60px rgba(0,0,0,.55);
}
.au-bj, .au-bac, .au-craps, .au-sicbo, .au-rl { max-width: 980px; margin: 0 auto; }
.au-msg {
  text-align: center; min-height: 1.8em; margin: 10px 0;
  font-family: var(--font-display); letter-spacing: 1px; color: var(--gold-light);
}
.au-hand { display: flex; gap: 10px; justify-content: center; align-items: center;
  min-height: 118px; flex-wrap: wrap; }
.au-hand-tag { font-family: var(--font-display); letter-spacing: 3px; font-size: 13px;
  color: var(--gold); }
.au-hand-total {
  display: inline-block; min-width: 34px; text-align: center;
  border: 1px solid var(--gold-dim); border-radius: 20px; padding: 2px 10px;
  color: var(--ivory); font-weight: 600; font-size: 14px; background: rgba(0,0,0,.4);
}
.au-bj-row, .au-bac-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.au-bj-spot { text-align: center; }

/* ---------- au-* playing cards (3D flip) ---------- */
.au-card { width: 76px; height: 108px; perspective: 600px; flex: 0 0 auto; }
.au-card-sm { width: 58px; height: 84px; }
.au-card-sm .au-card-rank { font-size: 13px; }
.au-card-sm .au-card-pip { font-size: 22px; }
.au-card-inner { position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,.7,.3,1); }
.au-face-down { transform: rotateY(180deg); }
.au-card-front, .au-card-back {
  position: absolute; inset: 0; border-radius: 8px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.au-card-front {
  background: linear-gradient(150deg, #fffdf6 0%, #f1ead6 100%);
  color: #191408; border: 1px solid #cbb96a;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.au-card-back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, rgba(212,175,55,.16) 0 6px, transparent 6px 12px),
    linear-gradient(150deg, #0e6b4a, #08351f);
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
}
.au-card-back-motif { color: var(--gold-light); font-size: 30px; opacity: .9; }
.au-card-corner { position: absolute; top: 4px; left: 6px; display: flex;
  flex-direction: column; align-items: center; line-height: 1.1; }
.au-card-corner-b { top: auto; bottom: 4px; left: auto; right: 6px; transform: rotate(180deg); }
.au-card-rank { font-weight: 700; font-size: 16px; font-family: var(--font-body); }
.au-card-suit { font-size: 15px; }
.au-card-pip { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 34px; }
.au-red { color: #a3121f; }
.au-deal-in { animation: au-deal-in .45s cubic-bezier(.2,.8,.3,1) backwards; }
@keyframes au-deal-in {
  from { opacity: 0; transform: translateY(-46px) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
.au-fade-in { animation: au-fade-in .3s ease backwards; }
@keyframes au-fade-in { from { opacity: 0; } to { opacity: 1; } }
.au-hidden { display: none !important; }
.au-locked { opacity: .45; pointer-events: none; }

/* ---------- au-* betting controls ---------- */
.au-betbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: center; padding: 16px 8px 4px; }
.au-chips { display: flex; gap: 8px; }
.au-chip {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 3px dashed rgba(245,241,230,.85); color: #fff; font-weight: 700; font-size: 11px;
  background: radial-gradient(circle at 35% 30%, #1c7a52, #0b3b21);
  transition: transform .15s ease, box-shadow .2s ease;
}
.au-chip:hover { transform: translateY(-3px); }
.au-chip.au-sel, .au-sel { border-style: solid; border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(212,175,55,.35), 0 6px 18px rgba(0,0,0,.5);
  transform: translateY(-3px); }
.au-bet-ctrl { display: flex; align-items: center; gap: 8px; }
.au-betbtn { width: 38px; height: 38px; border-radius: 8px; font-size: 20px; cursor: pointer;
  background: rgba(212,175,55,.12); border: 1px solid var(--gold-dim); color: var(--gold-light);
  transition: transform .12s ease; }
.au-betbtn:hover { transform: scale(1.08); }
.au-bet-amt { font-family: var(--font-display); font-size: 22px; color: var(--gold-light);
  min-width: 110px; text-align: center; }
.au-bet-total-label { font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.au-maxbtn { border-radius: 8px; padding: 8px 14px; cursor: pointer;
  background: transparent; border: 1px solid var(--gold-dim); color: var(--gold-light);
  font-family: var(--font-display); letter-spacing: 1px; font-size: 13px; }
.au-maxbtn:hover { background: rgba(212,175,55,.15); }
.au-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.au-action, .au-btn {
  font-family: var(--font-display); letter-spacing: 2px; font-size: 15px;
  padding: 12px 30px; border-radius: 8px; cursor: pointer; border: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #14100a;
  transition: transform .15s ease, box-shadow .2s ease;
}
.au-action:hover, .au-btn:hover { transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(212,175,55,.4); }
.au-action:active, .au-btn:active { transform: scale(.97); }
.au-action[disabled], .au-btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.au-fly-chip { position: fixed; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold-dim));
  border: 2px dashed rgba(255,255,255,.8); pointer-events: none; z-index: 80; }

/* ---------- au-* betting spots ---------- */
.au-spot { position: relative; min-width: 120px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(212,175,55,.35); background: rgba(0,0,0,.35);
  cursor: pointer; text-align: center; transition: transform .15s ease, box-shadow .2s ease; }
.au-spot:hover { transform: translateY(-2px); }
.au-spot.au-sel { border-color: var(--gold-light); }
.au-spot-ring { position: absolute; inset: 6px; border: 1px dashed rgba(212,175,55,.4);
  border-radius: 8px; pointer-events: none; }
.au-spot-amt { font-family: var(--font-display); font-size: 20px; color: var(--gold-light); }
.au-spot-label { font-size: 12px; letter-spacing: 2px; color: var(--ivory); margin-top: 2px; }
.au-spot-pays { font-size: 11px; color: var(--muted); }
.au-spot-bet { position: absolute; top: -12px; right: -8px; min-width: 30px; height: 30px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold-dim));
  color: #14100a; font-weight: 700; font-size: 12px; display: flex; align-items: center;
  justify-content: center; padding: 0 6px; border: 2px solid #fff2; }
.au-has-bet { border-color: var(--emerald-bright); box-shadow: 0 0 18px rgba(18,165,111,.35); }
.au-craps-spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin-top: 12px; }
.au-craps-spot { min-width: 0; }
.au-bac-spots { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }

/* ---------- au-* prompts & notes ---------- */
.au-prompt { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center;
  justify-content: center; background: rgba(4,6,5,.72); padding: 16px; }
.au-prompt-box { background: var(--onyx-2); border: 1px solid var(--gold-dim); border-radius: 14px;
  padding: 26px; max-width: 420px; width: 100%; text-align: center; }
.au-prompt-title { font-family: var(--font-display); color: var(--gold-light);
  letter-spacing: 2px; margin: 0 0 10px; }
.au-prompt-text { color: var(--ivory); margin: 0 0 18px; }
.au-prompt-row { display: flex; gap: 10px; justify-content: center; }
.au-footnote, .au-shoe-note, .au-rules-note { text-align: center; color: var(--muted);
  font-size: 12px; margin-top: 12px; }

/* ---------- au-* paytable ---------- */
.au-pt { color: var(--ivory); }
.au-pt h3 { font-family: var(--font-display); color: var(--gold-light); letter-spacing: 1px; }
.au-pt-lede { color: var(--muted); }
.au-pt-list { padding-left: 20px; }
.au-pt-list li { margin: 4px 0; }
.au-pt-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.au-pt-table th, .au-pt-table td { border: 1px solid rgba(212,175,55,.25); padding: 7px 10px;
  text-align: left; }
.au-pt-table th { color: var(--gold-light); font-family: var(--font-display);
  letter-spacing: 1px; background: rgba(212,175,55,.07); }
.au-pt-fine { font-size: 12px; color: var(--muted); }

/* ---------- au-* roulette ---------- */
.au-rl-wheelwrap { display: flex; justify-content: center; margin: 8px 0 4px; }
.au-rl-wheel canvas { max-width: 100%; height: auto; }
.au-rl-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px;
  margin: 14px auto 6px; max-width: 860px; }
.au-rl-cell { position: relative; aspect-ratio: 1/1; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(212,175,55,.35); background: rgba(0,0,0,.4); color: var(--ivory);
  font-weight: 700; font-size: 14px; transition: transform .12s ease; padding: 0; }
.au-rl-cell:hover { transform: scale(1.07); }
.au-rl-num.au-rl-red { background: linear-gradient(150deg, #b01e28, #7c1219); }
.au-rl-num.au-rl-black { background: linear-gradient(150deg, #2a2e2a, #101210); }
.au-rl-num.au-rl-green { background: linear-gradient(150deg, #0e6b4a, #08351f); }
.au-rl-zero { grid-row: span 3; aspect-ratio: auto; }
.au-rl-dozen { grid-column: span 4; aspect-ratio: auto; padding: 8px 0; }
.au-rl-out { grid-column: span 2; aspect-ratio: auto; padding: 8px 0; }
.au-rl-half { grid-column: span 2; }
.au-rl-full { grid-column: span 4; }
.au-rl-outside { background: rgba(14,107,74,.25); }
.au-rl-spacer { visibility: hidden; }
.au-rl-bet { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold-dim));
  border: 2px solid rgba(255,255,255,.75); pointer-events: none; }
.au-rl-result { text-align: center; font-family: var(--font-display); font-size: 20px;
  color: var(--gold-light); min-height: 1.6em; margin-top: 8px; }
.au-rl-history { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.au-rl-hist { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; color: #fff;
  border: 1px solid rgba(255,255,255,.25); }

/* ---------- au-* craps & sic-bo ---------- */
.au-dice-row { display: flex; gap: 12px; justify-content: center; margin: 12px 0; }
.au-dice-row-3 { gap: 16px; }
.au-die-wrap { text-align: center; }
.au-die canvas { width: 96px; height: 96px; max-width: 28vw; }
.au-puck { display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; font-family: var(--font-display);
  font-size: 13px; letter-spacing: 1px; border: 2px solid var(--gold-dim); margin: 8px auto; }
.au-puck-on { background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14100a; box-shadow: 0 0 22px rgba(212,175,55,.5); }
.au-puck-off { background: rgba(0,0,0,.5); color: var(--muted); }
.au-point-label { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 2px; }
.au-sb-board { max-width: 860px; margin: 0 auto; }
.au-sb-row { display: flex; gap: 6px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.au-sb-rowlabel { width: 110px; font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.au-sb-cell, .au-sb-total { flex: 1 1 0; min-width: 64px; padding: 10px 4px; border-radius: 8px;
  border: 1px solid rgba(212,175,55,.35); background: rgba(0,0,0,.4); color: var(--ivory);
  cursor: pointer; font-size: 13px; transition: transform .12s ease; }
.au-sb-cell:hover, .au-sb-total:hover { transform: translateY(-2px); }
.au-sb-cell.au-sel, .au-sb-total.au-sel { border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(212,175,55,.4); }

/* ================= ag-* (poker & specialty engines) ================= */
.ag-felt { background: radial-gradient(ellipse at 50% 30%, #14532d 0%, #0b3b21 55%, #072a17 100%);
  border: 1px solid rgba(212,175,55,.45); border-radius: 16px; padding: 22px 18px;
  box-shadow: inset 0 0 60px rgba(0,0,0,.55); max-width: 980px; margin: 0 auto; }
.ag-msg { text-align: center; min-height: 1.8em; margin: 10px 0;
  font-family: var(--font-display); letter-spacing: 1px; color: var(--gold-light); }
.ag-msg--error { color: #ff8f8f; }
.ag-handzone { margin: 10px 0; text-align: center; }
.ag-handlabel { font-family: var(--font-display); letter-spacing: 3px; font-size: 13px;
  color: var(--gold); margin-bottom: 8px; }
.ag-hand { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; min-height: 118px; }
.ag-card { width: 76px; height: 108px; position: relative; flex: 0 0 auto; }
.ag-card-face, .ag-card-back { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; }
.ag-card-face { background: linear-gradient(150deg, #fffdf6 0%, #f1ead6 100%); color: #191408;
  border: 1px solid #cbb96a; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.ag-card--red { color: #a3121f; }
.ag-card-corner { position: absolute; top: 4px; left: 6px; font-weight: 700; font-size: 14px;
  line-height: 1.15; text-align: center; }
.ag-card-pip { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 32px; }
.ag-card-back { background:
    repeating-linear-gradient(45deg, rgba(212,175,55,.16) 0 6px, transparent 6px 12px),
    linear-gradient(150deg, #0e6b4a, #08351f);
  border: 1px solid var(--gold-dim); display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-family: var(--font-display); font-size: 30px; }
.ag-card--held { transform: translateY(-12px); }
.ag-card--held .ag-card-face { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.ag-hidden { display: none !important; }
.ag-betbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: center; padding: 16px 8px 4px; }
.ag-chips { display: flex; gap: 8px; }
.ag-chip { width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 3px dashed rgba(245,241,230,.85); color: #fff; font-weight: 700; font-size: 11px;
  background: radial-gradient(circle at 35% 30%, #1c7a52, #0b3b21);
  transition: transform .15s ease, box-shadow .2s ease; }
.ag-chip:hover { transform: translateY(-3px); }
.ag-chip--active { border-style: solid; border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(212,175,55,.35); transform: translateY(-3px); }
.ag-betctl { display: flex; align-items: center; gap: 8px; }
.ag-betminus, .ag-betplus { width: 38px; height: 38px; border-radius: 8px; font-size: 20px;
  cursor: pointer; background: rgba(212,175,55,.12); border: 1px solid var(--gold-dim);
  color: var(--gold-light); }
.ag-betdisplay { font-family: var(--font-display); font-size: 22px; color: var(--gold-light);
  min-width: 110px; text-align: center; }
.ag-betmax { border-radius: 8px; padding: 8px 14px; cursor: pointer; background: transparent;
  border: 1px solid var(--gold-dim); color: var(--gold-light);
  font-family: var(--font-display); font-size: 13px; letter-spacing: 1px; }
.ag-btn { font-family: var(--font-display); letter-spacing: 2px; font-size: 15px; padding: 12px 30px;
  border-radius: 8px; cursor: pointer; border: 1px solid var(--gold-dim);
  background: transparent; color: var(--gold-light);
  transition: transform .15s ease, box-shadow .2s ease; }
.ag-btn:hover { transform: translateY(-2px); }
.ag-btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.ag-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14100a; border: 0; }
.ag-primary:hover { box-shadow: 0 8px 26px rgba(212,175,55,.4); }
.ag-pickbar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.ag-opt { padding: 8px 18px; border-radius: 20px; cursor: pointer;
  border: 1px solid rgba(212,175,55,.4); background: rgba(0,0,0,.35); color: var(--ivory); }
.ag-opt--active { background: rgba(212,175,55,.2); border-color: var(--gold-light);
  color: var(--gold-light); font-weight: 600; }
.ag-result { text-align: center; font-family: var(--font-display); font-size: 20px;
  color: var(--gold-light); min-height: 1.6em; margin: 10px 0; }
.ag-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px;
  max-width: 720px; margin: 12px auto; }
.ag-cell { aspect-ratio: 1/1; border-radius: 8px; cursor: pointer; font-weight: 700;
  border: 1px solid rgba(212,175,55,.35); background: rgba(0,0,0,.45); color: var(--ivory);
  transition: transform .12s ease, background .2s ease; font-size: 14px; }
.ag-cell:hover { transform: scale(1.06); }
.ag-cell--sel { background: rgba(212,175,55,.3); border-color: var(--gold-light); color: var(--gold-light); }
.ag-cell--hit { background: linear-gradient(150deg, var(--emerald-bright), var(--emerald));
  color: #fff; border-color: var(--emerald-bright); }
.ag-cell--drawn { border-color: var(--emerald-bright); }
.ag-cell--miss { opacity: .35; }
.ag-cell--gem { background: linear-gradient(150deg, #12a56f, #0b5c3e); color: #fff; }
.ag-cell--mine { background: linear-gradient(150deg, #a3121f, #5c0a12); color: #fff; }
.ag-cell--safe { background: rgba(18,165,111,.18); border-color: var(--emerald-bright); }
.ag-cell--boom { background: #a3121f; color: #fff; box-shadow: 0 0 24px rgba(163,18,31,.7); }
.ag-canvas { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ag-keno-balls { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.ag-ball { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700;
  background: radial-gradient(circle at 35% 30%, #3a403a, #171a17);
  border: 1px solid rgba(212,175,55,.4); color: var(--ivory); }
.ag-ball--hit { background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold-dim));
  color: #14100a; border-color: var(--gold-light); }
.ag-scratch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 460px; margin: 14px auto; }
.ag-scratch-grid.ag-scratch--golden .ag-scratch-cell { border-color: var(--gold); }
.ag-scratch-grid.ag-scratch--emerald .ag-scratch-cell { border-color: var(--emerald-bright); }
.ag-scratch-grid.ag-scratch--royal .ag-scratch-cell { border-color: #b48ce8; }
.ag-scratch-cell { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--gold-dim); background: rgba(0,0,0,.5); cursor: pointer; }
.ag-scratch-cover { position: absolute; inset: 0; z-index: 2; }
.ag-scratch-sym { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 40px; }
.ag-scratch-sym--win { filter: drop-shadow(0 0 12px rgba(212,175,55,.8)); }
.ag-history { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.ag-pill { padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 600;
  background: rgba(18,165,111,.18); border: 1px solid var(--emerald-bright); color: var(--ivory); }
.ag-pill--bust { background: rgba(163,18,31,.2); border-color: #a3121f; color: #ff9d9d; }
.ag-pay { color: var(--ivory); }
.ag-pay h3 { font-family: var(--font-display); color: var(--gold-light); letter-spacing: 1px; }
.ag-pay-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.ag-pay-table th, .ag-pay-table td { border: 1px solid rgba(212,175,55,.25); padding: 7px 10px;
  text-align: left; }
.ag-pay-table th { color: var(--gold-light); font-family: var(--font-display);
  background: rgba(212,175,55,.07); }
.ag-pay--hl { background: rgba(212,175,55,.18) !important; }

/* ================= slots-* (slots engine) ================= */
.slots-root { max-width: 760px; margin: 0 auto; padding: 8px 4px 32px; }
.slots-topbar { display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.slots-betbox { display: flex; align-items: center; gap: 8px; }
.slots-label { font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.slots-betbtn { width: 38px; height: 38px; border-radius: 8px; font-size: 20px; cursor: pointer;
  background: rgba(212,175,55,.12); border: 1px solid var(--gold-dim); color: var(--gold-light);
  transition: transform .12s ease; }
.slots-betbtn:hover { transform: scale(1.08); }
.slots-betval { font-family: var(--font-display); font-size: 22px; color: var(--gold-light);
  min-width: 110px; text-align: center; }
.slots-maxbet { border-radius: 8px; padding: 8px 14px; cursor: pointer; background: transparent;
  border: 1px solid var(--gold-dim); color: var(--gold-light);
  font-family: var(--font-display); font-size: 13px; letter-spacing: 1px; }
.slots-maxbet:hover { background: rgba(212,175,55,.15); }
.slots-chips { display: flex; gap: 8px; }
.slots-chip { min-width: 52px; height: 40px; border-radius: 20px; cursor: pointer;
  border: 1px solid rgba(212,175,55,.4); background: rgba(0,0,0,.4); color: var(--ivory);
  font-weight: 700; font-size: 12px; padding: 0 10px; transition: transform .12s ease; }
.slots-chip:hover { transform: translateY(-2px); }
.slots-stage { position: relative; border: 1px solid rgba(212,175,55,.5); border-radius: 16px;
  overflow: hidden; background: radial-gradient(ellipse at 50% 20%, #14201a 0%, #0b0e0c 70%);
  box-shadow: inset 0 0 60px rgba(0,0,0,.6); }
.slots-reels { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.slots-reel { overflow: hidden; position: relative; border-right: 1px solid rgba(212,175,55,.12); }
.slots-reel:last-child { border-right: 0; }
.slots-strip { will-change: transform; }
.slots-cell { display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1/1; border-bottom: 1px solid rgba(212,175,55,.08); }
.slots-glyph { font-size: clamp(26px, 6vw, 44px); line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.slots-cell-wild .slots-glyph { color: var(--gold-light);
  filter: drop-shadow(0 0 10px rgba(212,175,55,.7)); }
.slots-cell-scatter .slots-glyph { color: var(--emerald-bright);
  filter: drop-shadow(0 0 10px rgba(18,165,111,.7)); }
.slots-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.slots-winline .slots-glyph { animation: slots-pop .5s cubic-bezier(.2,.8,.3,1.2); }
@keyframes slots-pop {
  0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1.15); }
}
.slots-spinning .slots-strip { filter: blur(3px); }
.slots-spinning-btn, .slots-spin[disabled] { opacity: .45; cursor: not-allowed; }
.slots-banner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: clamp(22px, 5vw, 40px); letter-spacing: 3px;
  color: var(--gold-light); text-shadow: 0 0 30px rgba(212,175,55,.8);
  background: rgba(4,6,5,.55); z-index: 5; }
.slots-fsbar { display: flex; gap: 14px; align-items: center; justify-content: center;
  margin-top: 10px; padding: 10px; border: 1px solid var(--emerald-bright); border-radius: 10px;
  background: rgba(14,107,74,.15); }
.slots-fs-label { font-family: var(--font-display); letter-spacing: 2px; color: var(--emerald-bright); }
.slots-fs-count { font-weight: 700; color: var(--ivory); }
.slots-fs-win { font-family: var(--font-display); color: var(--gold-light); }
.slots-bottombar { display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.slots-spin { font-family: var(--font-display); font-size: 20px; letter-spacing: 4px;
  padding: 14px 58px; border-radius: 10px; cursor: pointer; border: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #14100a;
  transition: transform .15s ease, box-shadow .2s ease; }
.slots-spin:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,175,55,.45); }
.slots-spin:active { transform: scale(.97); }
.slots-winbox { text-align: right; }
.slots-winval { font-family: var(--font-display); font-size: 26px; color: var(--gold-light); }
.slots-error { color: #ff8f8f; text-align: center; min-height: 1.4em; }
.slots-hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }
/* slots paytable (modal content) */
.slots-paytable { color: var(--ivory); }
.slots-paytable h3 { font-family: var(--font-display); color: var(--gold-light); letter-spacing: 1px; }
.slots-pt-row { display: flex; gap: 12px; align-items: center; padding: 8px 0;
  border-bottom: 1px solid rgba(212,175,55,.15); }
.slots-pt-glyph { font-size: 30px; width: 52px; text-align: center; flex: 0 0 auto; }
.slots-pt-title { font-weight: 700; color: var(--gold-light); }
.slots-pt-blurb { font-size: 13px; color: var(--muted); }
.slots-pt-meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0; font-size: 14px; }
.slots-pt-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.slots-pt-table th, .slots-pt-table td { border: 1px solid rgba(212,175,55,.25);
  padding: 6px 10px; text-align: center; }
.slots-pt-table th { color: var(--gold-light); font-family: var(--font-display); }
.slots-pt-note { font-size: 12px; color: var(--muted); }
.slots-pt-h { font-family: var(--font-display); color: var(--gold-light); letter-spacing: 1px;
  margin: 14px 0 6px; }

/* ---------- reduced-motion: also cover engine animations ---------- */
.aurum-rm .au-deal-in, .aurum-rm .au-fade-in,
.aurum-rm .slots-winline .slots-glyph { animation: none !important; }
.aurum-rm .slots-spinning .slots-strip { filter: none; }
.aurum-rm .au-card-inner { transition: opacity .2s ease; }

/* ---------- engine responsive ---------- */
@media (max-width: 640px) {
  .au-card { width: 58px; height: 84px; }
  .au-card-pip { font-size: 24px; }
  .au-card-rank { font-size: 13px; }
  .ag-card { width: 58px; height: 84px; }
  .ag-card-pip { font-size: 24px; }
  .au-rl-grid { grid-template-columns: repeat(7, 1fr); }
  .au-rl-zero { grid-row: auto; grid-column: span 7; aspect-ratio: auto; padding: 8px 0; }
  .au-rl-dozen, .au-rl-full { grid-column: span 7; }
  .au-rl-out, .au-rl-half { grid-column: span 7; }
  .ag-grid { grid-template-columns: repeat(8, 1fr); }
  .slots-glyph { font-size: 30px; }
  .slots-spin { padding: 12px 40px; }
}

/* ---------- batch 2: favorites, max-win badge, NEW ribbon ---------- */
.tile-fav {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(5, 7, 6, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.35); cursor: pointer; opacity: 0.55;
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.tile-fav svg {
  width: 18px; height: 18px; fill: none; stroke: var(--gold-light); stroke-width: 2;
  transition: fill .2s ease, stroke .2s ease;
}
.tile:hover .tile-fav { opacity: 0.9; }
.tile-fav:hover, .tile-fav:focus-visible { opacity: 1; transform: scale(1.1); }
.tile-fav:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.tile-fav.is-fav { opacity: 1; background: rgba(212, 175, 55, 0.16); border-color: var(--gold); }
.tile-fav.is-fav svg { fill: var(--gold); stroke: var(--gold); }

.ribbon-new {
  position: absolute; top: 14px; left: -30px; z-index: 2;
  transform: rotate(-38deg);
  background: linear-gradient(180deg, #E9CE7A, #D4AF37); color: #0B0E0C;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; padding: 4px 34px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.badge-max {
  color: #0B0E0C; border-color: #D4AF37;
  background: linear-gradient(180deg, rgba(233, 206, 122, 0.95), rgba(212, 175, 55, 0.95));
}

@media (max-width: 640px) {
  .tile-fav { opacity: 1; }
  .ribbon-new { font-size: 9px; padding: 3px 30px; top: 12px; left: -28px; }
}

/* ---------- batch 2: engine classes (tumble / hold-win / book expand) ---------- */
.tb-orbval, .hw-orbval {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--gold-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(212, 175, 55, 0.55);
}
.hw-locked {
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.05) 70%);
  box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.28), 0 0 12px rgba(212, 175, 55, 0.25);
  border-radius: 8px;
}
.hw-locked .slots-glyph {
  color: var(--gold-light);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.7));
}
.slots-cell-expanded {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.20), rgba(212, 175, 55, 0.06));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.55), inset 0 0 22px rgba(212, 175, 55, 0.20);
  border-radius: 8px;
}
.slots-cell-expanded .slots-glyph {
  color: var(--gold-light);
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.8));
}
