/* ==========================================================================
   DADS OF GAMBLING — "The Lodge" design system
   Dark-only. Deep forest charcoal, brass/gold, cream, muted olive.
   ========================================================================== */

:root {
  /* palette */
  --bg:        #0d120e;
  --bg-deep:   #0a0e0b;
  --bg-raised: #121a13;
  --bg-card:   #151e16;
  --bg-card-2: #101710;
  --gold:      #c9a45c;
  --gold-hi:   #e2c283;
  --gold-dim:  #8f7440;
  --gold-line: rgba(201, 164, 92, 0.20);
  --gold-faint:rgba(201, 164, 92, 0.08);
  --cream:     #f1ecdd;
  --muted:     #b4ae9e;
  --olive:     #8b997a;
  --win:       #7fae7a;
  --loss:      #c0604a;
  --ink:       #10130f; /* text on gold */

  /* type */
  --font-display: "Bebas Neue", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body:    "Lora", Georgia, "Times New Roman", serif;
  --font-mono:    "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  /* rhythm */
  --wrap: 1160px;
  --radius: 8px;
  --pad: clamp(1rem, 4vw, 2rem);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.1; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* subtle film grain + vignette */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 998; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 0%, transparent 55%, rgba(5, 8, 5, 0.55) 100%);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 1001;
  background: var(--gold); color: var(--ink); font-family: var(--font-mono);
  padding: 0.5rem 1rem; border-radius: 0 0 6px 6px; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: var(--ink); }

/* ---------- typography helpers ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 0.9rem;
}
.kicker::before { content: "◆ "; color: var(--gold); }
.display {
  font-family: var(--font-display);
  font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--cream);
}
.gold { color: var(--gold); }
.mono { font-family: var(--font-mono); }
.small { font-size: 0.85rem; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 0.85em 1.7em; border-radius: 4px;
  border: 1px solid transparent; transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--ink); border-color: var(--gold-hi);
  box-shadow: 0 2px 14px rgba(201, 164, 92, 0.22);
}
.btn-gold:hover { filter: brightness(1.07); color: var(--ink); box-shadow: 0 4px 22px rgba(201, 164, 92, 0.32); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold-dim); }
.btn-outline:hover { border-color: var(--gold); background: var(--gold-faint); color: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--cream); }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.74rem; }
.btn-lg { padding: 1.05em 2.2em; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; filter: grayscale(0.4); box-shadow: none;
}
@media (max-width: 480px) {
  .btn { white-space: normal; max-width: 100%; text-align: center; }
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 11, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-word {
  font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.09em;
  color: var(--cream); text-transform: uppercase; line-height: 1;
}
.brand-word .of { color: var(--gold); margin: 0 0.18em; }
.site-nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); }
.site-nav > a:not(.btn) {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  padding: 0.4rem 0.1rem; border-bottom: 2px solid transparent;
}
.site-nav > a:not(.btn):hover { color: var(--cream); }
.site-nav > a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--gold-line); border-radius: 6px;
}
.nav-toggle span:not(.sr-only) {
  display: block; height: 2px; width: 100%; background: var(--gold);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--gold-line);
    padding: 0.6rem var(--pad) 1.2rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 0.85rem 0.2rem; border-bottom: 1px solid rgba(201,164,92,0.08); font-size: 0.9rem; }
  .site-nav > .btn { margin-top: 1rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse 70% 55% at 78% 12%, rgba(201, 164, 92, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(139, 153, 122, 0.07), transparent 65%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 25%, var(--gold-line) 75%, transparent);
}
.hero-display {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 8.2rem);
  line-height: 0.92; letter-spacing: 0.015em; text-transform: uppercase;
  margin: 0 0 1.4rem;
}
.hero-display span { display: block; }
.hero-display .gold { color: var(--gold); text-shadow: 0 0 44px rgba(201, 164, 92, 0.35); }
.hero-sub { max-width: 34rem; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 2.4rem; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* interior page hero */
.page-hero {
  padding: clamp(3rem, 7vw, 4.8rem) 0 clamp(1.8rem, 4vw, 2.8rem);
  border-bottom: 1px solid var(--gold-line);
  background:
    radial-gradient(ellipse 60% 70% at 80% 0%, rgba(201, 164, 92, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 0.95; letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.page-hero .lede { max-width: 44rem; color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section + .section { border-top: 1px solid rgba(201, 164, 92, 0.10); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.section-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: 0.03em; margin: 0;
}
.section-link {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.section-link::after { content: " →"; }

/* ---------- chips & pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--muted); background: var(--bg-raised);
  border: 1px solid rgba(201, 164, 92, 0.16); border-radius: 999px;
  padding: 0.35em 0.9em; white-space: nowrap;
}
.chip.gold-chip { color: var(--gold); border-color: var(--gold-dim); background: var(--gold-faint); }
.status-pill {
  display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.35em 0.85em; border-radius: 3px; border: 1px solid;
}
.status-pill.affiliate   { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.status-pill.listed      { color: var(--olive); background: rgba(139, 153, 122, 0.10); border-color: rgba(139, 153, 122, 0.45); }
.status-pill.coming-soon { color: var(--muted); background: transparent; border-color: rgba(180, 174, 158, 0.35); }
.status-pill.live-soon   { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.status-pill.in-review   { color: var(--gold); background: var(--gold-faint); border-color: var(--gold-dim); }

/* ---------- card grids ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }

.casino-card {
  display: flex; flex-direction: column; gap: 0.8rem;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid rgba(201, 164, 92, 0.16); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem; position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.casino-card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.45), transparent);
}
.casino-card:hover { border-color: rgba(201, 164, 92, 0.38); transform: translateY(-2px); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.card-name { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.card-blurb { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.card-rating { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.card-rating .stars { color: var(--gold); letter-spacing: 0.12em; }
.offer-box {
  border: 1px dashed var(--gold-dim); border-radius: 6px; background: var(--gold-faint);
  padding: 0.7rem 0.9rem; font-size: 0.92rem;
}
.offer-box .offer-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.2rem; }
.offer-box .offer-verified { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--olive); margin-top: 0.3rem; }
.code-line { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.code-chip {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--gold-hi); background: var(--bg-deep);
  border: 1px solid var(--gold-dim); border-radius: 4px; padding: 0.35em 0.8em;
}
.code-pending { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--muted); }
.code-pending::before { content: "⏳ "; }
.copy-btn {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: transparent; border: 1px solid var(--gold-dim);
  border-radius: 4px; padding: 0.45em 0.9em; transition: all 0.15s ease;
}
.copy-btn:hover { background: var(--gold-faint); }
.copy-btn.copied { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.card-actions { display: flex; gap: 0.7rem; margin-top: 0.2rem; }
.card-actions .btn { flex: 1; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; font-size: 0.88rem; }
.pros-cons ul { margin: 0.3rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.pros-cons .pc-head { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; }
.pros-cons .pros .pc-head { color: var(--win); }
.pros-cons .cons .pc-head { color: var(--loss); }

/* ---------- game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.game-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid rgba(201, 164, 92, 0.16); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease;
}
.game-card:hover { border-color: rgba(201, 164, 92, 0.38); transform: translateY(-2px); }
.game-art {
  position: relative; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(201, 164, 92, 0.18);
}
.game-art .art-initial {
  font-family: var(--font-display); font-size: 4rem; color: rgba(241, 236, 221, 0.9);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); letter-spacing: 0.05em;
}
.game-art .status-pill { position: absolute; top: 0.8rem; left: 0.8rem; }
.art-paws-and-claws { background: radial-gradient(ellipse 90% 120% at 30% 0%, #4a3420, transparent 70%), linear-gradient(160deg, #22301f, #120d08); }
.art-curse-of-anubis { background: radial-gradient(ellipse 90% 120% at 70% 0%, #4d3d1a, transparent 70%), linear-gradient(160deg, #2b2413, #0f0c07); }
.art-crimson-canopy  { background: radial-gradient(ellipse 90% 120% at 50% 0%, #4d1f1a, transparent 70%), linear-gradient(160deg, #24301f, #140b0a); }
.game-body { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.game-name { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.game-tagline { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.game-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.game-note { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--olive); margin: 0; }
.game-note::before { content: "✓ "; color: var(--gold); }

/* ---------- trust / tenets ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.trust-card {
  background: var(--bg-raised); border: 1px solid rgba(201, 164, 92, 0.14);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.trust-card .trust-num {
  font-family: var(--font-display); font-size: 2.2rem; color: var(--gold);
  display: block; margin-bottom: 0.4rem;
}
.trust-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; letter-spacing: 0.04em; text-transform: uppercase; }
.trust-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- lab teaser (home) ---------- */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.teaser-canvas-wrap {
  background: var(--bg-deep); border: 1px solid rgba(201, 164, 92, 0.2);
  border-radius: var(--radius); padding: 1rem 1rem 0.7rem;
}
.teaser-canvas-wrap canvas { display: block; width: 100%; height: 220px; }
.canvas-cap { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--muted); margin: 0.6rem 0 0; text-align: center; }
@media (max-width: 820px) { .teaser { grid-template-columns: 1fr; } }

/* ---------- newsletter ---------- */
.newsletter { background: linear-gradient(180deg, var(--bg-raised), var(--bg-deep)); border-block: 1px solid var(--gold-line); }
.newsletter-inner { max-width: 620px; text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.newsletter-inner h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: 0.03em; }
.newsletter-inner > p { color: var(--muted); }
.newsletter-form { display: flex; gap: 0.6rem; margin: 1.4rem 0 0.7rem; }
.newsletter-form input {
  flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--cream); background: var(--bg-deep);
  border: 1px solid rgba(201, 164, 92, 0.25); border-radius: 4px; padding: 0.85em 1em;
}
.newsletter-form input::placeholder { color: rgba(180, 174, 158, 0.5); }
.newsletter-form input[disabled] { opacity: 0.55; cursor: not-allowed; }
.newsletter-note { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--olive); margin: 0; }
@media (max-width: 520px) { .newsletter-form { flex-direction: column; } }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--gold-line); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .brand { margin-bottom: 0.9rem; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 26rem; margin: 0; }
.footer-col h3 {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold-hi); }
.compliance {
  border-top: 1px solid rgba(201, 164, 92, 0.12);
  padding-top: 1.6rem; margin-bottom: 1.6rem;
  font-size: 0.85rem; color: var(--muted);
}
.compliance p { margin-bottom: 0.5em; }
.compliance strong { color: var(--cream); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  border-top: 1px solid rgba(201, 164, 92, 0.12); padding-top: 1.4rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--olive);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- prose (about / legal pages) ---------- */
.prose { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: 0.04em;
  margin-top: 2.2em; padding-bottom: 0.35em; border-bottom: 1px solid var(--gold-line);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; color: var(--gold-hi); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--muted); }
.prose li { margin-bottom: 0.45em; }
.prose .updated { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); }
.callout {
  background: var(--gold-faint); border: 1px solid var(--gold-dim); border-left: 3px solid var(--gold);
  border-radius: 6px; padding: 1rem 1.2rem; margin: 1.5rem 0; font-size: 0.95rem;
}
.callout.urgent { border-color: var(--loss); border-left-color: var(--loss); background: rgba(192, 96, 74, 0.08); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- filters ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid rgba(201, 164, 92, 0.2); border-radius: 999px; padding: 0.5em 1.2em;
  transition: all 0.15s ease;
}
.filter-btn:hover { color: var(--cream); border-color: var(--gold-dim); }
.filter-btn[aria-pressed="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); font-weight: 600; }

/* ---------- code drops / empty states ---------- */
.code-list { display: grid; gap: 0.9rem; }
.code-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid rgba(201, 164, 92, 0.16); border-radius: var(--radius);
  padding: 1rem 1.3rem;
}
.code-row .code-casino { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.05em; text-transform: uppercase; min-width: 9rem; }
.code-row .code-desc { flex: 1; color: var(--muted); font-size: 0.92rem; min-width: 14rem; }
.code-row .code-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--olive); }
.badge-verified {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--win);
  border: 1px solid rgba(127, 174, 122, 0.45); border-radius: 3px; padding: 0.3em 0.7em;
}
.empty-state {
  text-align: center; padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
  border: 1px dashed var(--gold-dim); border-radius: var(--radius);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--gold-faint), transparent 70%);
}
.empty-state svg { margin-bottom: 1.4rem; }
.empty-state h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.04em; }
.empty-state p { color: var(--muted); max-width: 30rem; margin-inline: auto; }

/* ---------- strategy lab ---------- */
.lab-banner {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--gold-faint); border: 1px solid var(--gold-dim);
  border-radius: 6px; padding: 0.9rem 1.2rem; margin: 1.8rem 0;
  font-size: 0.95rem; color: var(--cream);
}
.lab-banner .banner-icon { flex: none; font-size: 1.2rem; }
.lab-layout { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; gap: 1.4rem; align-items: start; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 980px) { .lab-layout { grid-template-columns: 1fr; } }

.panel {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid rgba(201, 164, 92, 0.16); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; margin-bottom: 1.1rem;
}
.panel-title {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.panel-title::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }

.sys-textarea {
  width: 100%; resize: vertical; min-height: 4.2rem;
  font-family: var(--font-body); font-size: 0.98rem; color: var(--cream);
  background: var(--bg-deep); border: 1px solid rgba(201, 164, 92, 0.25);
  border-radius: 6px; padding: 0.8rem 0.95rem;
}
.sys-textarea::placeholder { color: rgba(180, 174, 158, 0.45); }
.chips-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.example-chip {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--gold); background: transparent;
  border: 1px solid var(--gold-dim); border-radius: 999px; padding: 0.45em 1em;
  transition: all 0.15s ease;
}
.example-chip:hover { background: var(--gold-faint); color: var(--gold-hi); }
.parse-msg { font-family: var(--font-mono); font-size: 0.74rem; color: var(--olive); margin: 0.7rem 0 0; min-height: 1.2em; }
.parse-msg strong { color: var(--gold); }

.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.5rem; }
.preset-btn {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--muted); background: var(--bg-deep);
  border: 1px solid rgba(201, 164, 92, 0.2); border-radius: 5px; padding: 0.75em 0.5em;
  transition: all 0.15s ease; text-align: center;
}
.preset-btn:hover { color: var(--cream); border-color: var(--gold-dim); }
.preset-btn[aria-pressed="true"] { color: var(--ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: var(--gold); font-weight: 700; }
.preset-desc { font-size: 0.88rem; color: var(--muted); margin: 0.9rem 0 0; min-height: 2.6em; }

.slider-row { margin-bottom: 1.2rem; }
.slider-row:last-of-type { margin-bottom: 0.4rem; }
.slider-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem;
}
.slider-head output { color: var(--gold-hi); font-weight: 600; font-size: 0.9rem; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px;
  background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-dim), rgba(201, 164, 92, 0.15));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border: 2px solid var(--bg-deep); box-shadow: 0 0 0 1px var(--gold-dim), 0 2px 8px rgba(0,0,0,0.5);
}
input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-dim), rgba(201, 164, 92, 0.15));
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border: 2px solid var(--bg-deep); box-shadow: 0 0 0 1px var(--gold-dim);
}
.base-bet-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--olive); margin: 0.2rem 0 0; }

.progress { height: 6px; background: var(--bg-deep); border: 1px solid rgba(201,164,92,0.2); border-radius: 3px; overflow: hidden; margin-top: 0.8rem; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-dim), var(--gold-hi)); transition: width 0.08s linear; }

.seed-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--muted); margin-top: 1rem;
}
.seed-row .seed-val { color: var(--gold-hi); font-weight: 600; }
.reroll-btn {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); background: transparent; border: 1px solid var(--gold-dim);
  border-radius: 4px; padding: 0.4em 0.9em;
}
.reroll-btn:hover { background: var(--gold-faint); }
.math-note { font-size: 0.82rem; color: var(--muted); border-left: 2px solid var(--gold-dim); padding-left: 0.9rem; margin-top: 1.3rem; }

.chart-card {
  background: var(--bg-deep); border: 1px solid rgba(201, 164, 92, 0.2);
  border-radius: var(--radius); padding: 1.1rem 1.1rem 0.8rem; margin-bottom: 1.1rem;
}
.chart-card canvas { display: block; width: 100%; height: 340px; }
@media (max-width: 560px) { .chart-card canvas { height: 260px; } }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 1.1rem; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-tile {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid rgba(201, 164, 92, 0.16); border-radius: 6px;
  padding: 0.85rem 0.9rem;
}
.stat-val { font-family: var(--font-mono); font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; color: var(--cream); display: block; }
.stat-val.up { color: var(--win); }
.stat-val.down { color: var(--loss); }
.stat-lab { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); display: block; margin-top: 0.25rem; }

.verdict {
  display: flex; align-items: flex-start; gap: 0.9rem;
  border-radius: 6px; padding: 1rem 1.2rem; margin-bottom: 1.1rem; font-size: 0.98rem;
}
.verdict .verdict-icon { font-size: 1.5rem; line-height: 1.2; flex: none; }
.verdict.verdict-up { background: rgba(127, 174, 122, 0.08); border: 1px solid rgba(127, 174, 122, 0.35); }
.verdict.verdict-down { background: rgba(192, 96, 74, 0.08); border: 1px solid rgba(192, 96, 74, 0.35); }
.verdict p { margin: 0; }
.export-row { display: flex; justify-content: flex-end; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.notfound .code {
  font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem);
  color: var(--gold); line-height: 1; text-shadow: 0 0 60px rgba(201, 164, 92, 0.3);
}

/* ---------- crest (photographic brand mark) ---------- */
/* The crest JPEGs sit on dark wood; a radial mask melts the wood into the
   page background so the mark never reads as a pasted rectangle. */
.crest-blend {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, rgba(0, 0, 0, 0.55) 78%, transparent 96%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, rgba(0, 0, 0, 0.55) 78%, transparent 96%);
}
.hero-grid { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.hero-crest { position: relative; max-width: 300px; margin-inline: auto; }
.hero-crest::before {
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.16), transparent 65%);
  filter: blur(28px);
}
.hero-crest img { position: relative; z-index: 1; }
@media (min-width: 861px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(280px, 32vw, 420px); }
  .hero-crest { order: 2; max-width: none; }
}
.about-crest { margin: clamp(2rem, 5vw, 3rem) auto 0; max-width: 380px; text-align: center; }
.about-crest figcaption {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--olive); margin-top: 0.4rem;
}

/* ---------- code drops banner ---------- */
.drops-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  background: linear-gradient(90deg, var(--gold-faint), transparent 70%), linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--gold-dim); border-left: 3px solid var(--gold);
  border-radius: 6px; padding: 1rem 1.3rem; margin-top: 2rem;
}
.drops-banner p { margin: 0; flex: 1; min-width: 16rem; font-size: 0.95rem; color: var(--muted); }
.drops-banner p strong { color: var(--cream); }
.drops-banner .btn { flex: none; }

/* ---------- shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.product-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid rgba(201, 164, 92, 0.16); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: rgba(201, 164, 92, 0.38); transform: translateY(-2px); }
.product-cover {
  position: relative; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(201, 164, 92, 0.18);
  background: radial-gradient(ellipse 90% 120% at 30% 0%, rgba(201, 164, 92, 0.18), transparent 70%), linear-gradient(160deg, #1d2618, #0e1309);
}
.product-card[data-kind="merch"] .product-cover {
  background: radial-gradient(ellipse 90% 120% at 70% 0%, rgba(139, 153, 122, 0.22), transparent 70%), linear-gradient(160deg, #232d1e, #10140b);
}
.product-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-cover .cover-initial {
  font-family: var(--font-display); font-size: 4rem; color: rgba(241, 236, 221, 0.9);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); letter-spacing: 0.05em;
}
.product-cover .kind-pill {
  position: absolute; top: 0.8rem; left: 0.8rem;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); background: rgba(10, 14, 11, 0.82);
  border: 1px solid var(--gold-dim); border-radius: 3px; padding: 0.35em 0.85em;
}
.product-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.product-name { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.product-tagline { color: var(--gold-hi); font-size: 0.95rem; margin: 0; }
.product-desc { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }
.product-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.4rem; }
.product-price { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); }

/* ---------- utility ---------- */
.center { text-align: center; }
.divider-gold { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
