/* ============================================================
   Golden Jackpot Hub — gjh
   Structure (locked by divergence engine, seed 1700):
   hero: diagonal-split · lobby: wide-rows · nav: sidebar-vertical
   order: hero → lobby → faq → cta-band → footer
   motif: gradient-mesh · motion: continuous-ticker
   fonts: Limelight (display) + Schibsted Grotesk (body)
   Palette: molten gold + emerald on deep green-black. No pastels.
   ============================================================ */

:root {
  --gjh-ink-0: #060f0a;          /* page ground */
  --gjh-ink-1: #0b1a12;          /* deep emerald-black */
  --gjh-ink-2: #11281c;          /* raised surface */
  --gjh-ink-3: #1a3a28;          /* surface edge / hover */
  --gjh-gold-0: #b97f10;         /* deep ore */
  --gjh-gold-1: #f2b32a;         /* molten gold */
  --gjh-gold-2: #ffd861;         /* hot highlight */
  --gjh-ember: #e6452f;          /* vermilion accent — sparing */
  --gjh-emerald: #2fbf71;        /* live green accent */
  --gjh-text: #eef0ea;           /* neutral off-white (not cream) */
  --gjh-text-dim: #9fb3a4;
  --gjh-line: rgba(242, 179, 42, .22);
  --gjh-radius: 14px;
  --gjh-rail-w: 92px;
  --gjh-font-display: 'Limelight', cursive;
  --gjh-font-body: 'Schibsted Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

.gjh-body {
  background: var(--gjh-ink-0);
  color: var(--gjh-text);
  font-family: var(--gjh-font-body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--gjh-gold-1); }

.gjh-skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gjh-gold-1); color: var(--gjh-ink-0); padding: .6rem 1rem;
}
.gjh-skip:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.gjh-btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--gjh-font-body); font-weight: 800; font-size: 1rem;
  padding: .85rem 1.9rem; border-radius: 999px; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.gjh-btn-gold {
  background: linear-gradient(120deg, var(--gjh-gold-0), var(--gjh-gold-1) 45%, var(--gjh-gold-2));
  color: #1d1303;
  box-shadow: 0 6px 24px rgba(242, 179, 42, .35);
}
.gjh-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(242, 179, 42, .5); }
.gjh-btn-line {
  background: transparent; color: var(--gjh-text);
  border: 1.5px solid var(--gjh-line);
}
.gjh-btn-line:hover { border-color: var(--gjh-gold-1); color: var(--gjh-gold-2); }

/* ---------- shell: vertical rail + content ---------- */
.gjh-shell { min-height: 100vh; }

.gjh-rail {
  position: fixed; inset: 0 auto 0 0; width: var(--gjh-rail-w); z-index: 60;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.2rem .5rem;
  background: linear-gradient(180deg, var(--gjh-ink-1), var(--gjh-ink-0));
  border-right: 1px solid var(--gjh-line);
}
.gjh-brand-rail { text-decoration: none; text-align: center; }
.gjh-brand-rail .gjh-brand-name {
  font-family: var(--gjh-font-display); font-size: .82rem; line-height: 1.25;
  color: var(--gjh-gold-1); letter-spacing: .06em; text-transform: uppercase;
}
.gjh-rail-links { list-style: none; margin-top: 2.4rem; flex: 1; }
.gjh-rail-links a {
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: block; padding: .9rem .35rem; margin: 0 auto;
  text-decoration: none; color: var(--gjh-text-dim);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem;
  border-left: 2px solid transparent;
  transition: color .15s ease;
}
.gjh-rail-links a:hover, .gjh-rail-links a.is-on { color: var(--gjh-gold-2); }
.gjh-rail-foot { display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.gjh-rail-age {
  font-size: .72rem; font-weight: 800; color: var(--gjh-ink-0);
  background: var(--gjh-gold-1); border-radius: 6px; padding: .15rem .45rem;
}

.gjh-coinchip {
  font-weight: 800; font-size: .82rem; color: var(--gjh-gold-2);
  border: 1.5px solid var(--gjh-line); border-radius: 999px; padding: .3rem .7rem;
  white-space: nowrap;
}
.gjh-coinchip::before { content: "◉ "; color: var(--gjh-gold-1); }

.gjh-main, .gjh-footer { margin-left: var(--gjh-rail-w); min-width: 0; }

/* top bar — mobile only */
.gjh-topbar {
  display: none; position: sticky; top: 0; z-index: 70;
  align-items: center; gap: 1rem; padding: .7rem 1rem;
  background: rgba(6, 15, 10, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gjh-line);
}
.gjh-brand-top { text-decoration: none; flex: 1; }
.gjh-brand-top .gjh-brand-name {
  font-family: var(--gjh-font-display); color: var(--gjh-gold-1);
  font-size: 1.05rem; letter-spacing: .04em;
}
.gjh-burger {
  width: 40px; height: 36px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.gjh-burger span { height: 2px; width: 24px; background: var(--gjh-gold-1); border-radius: 2px; }
.gjh-rail-scrim {
  position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6);
}

/* ---------- gradient-mesh motif ---------- */
.gjh-mesh {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.gjh-mesh::before, .gjh-mesh::after {
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(38% 42% at 22% 28%, rgba(242, 179, 42, .28), transparent 70%),
    radial-gradient(30% 36% at 78% 18%, rgba(47, 191, 113, .16), transparent 70%),
    radial-gradient(42% 48% at 68% 78%, rgba(185, 127, 16, .22), transparent 70%),
    radial-gradient(26% 30% at 12% 84%, rgba(230, 69, 47, .12), transparent 70%);
  animation: gjh-mesh-drift 26s ease-in-out infinite alternate;
}
.gjh-mesh::after {
  animation-duration: 34s; animation-direction: alternate-reverse; opacity: .6;
  filter: blur(30px);
}
@keyframes gjh-mesh-drift {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to   { transform: translate3d(4%, 5%, 0) scale(1.12); }
}

/* ---------- hero: diagonal-split ---------- */
.gjh-hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  min-height: 86vh; overflow: hidden;
  background: linear-gradient(160deg, var(--gjh-ink-1) 0%, var(--gjh-ink-0) 70%);
}
.gjh-hero-copy {
  z-index: 2; align-self: center;
  padding: clamp(2.5rem, 6vw, 5rem);
}
.gjh-hero-kicker {
  font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gjh-emerald); font-size: .8rem;
}
.gjh-hero-title {
  font-family: var(--gjh-font-display); font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.04;
  margin: .8rem 0 1.1rem;
  color: var(--gjh-text);
}
.gjh-hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gjh-gold-1), var(--gjh-gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gjh-hero-sub { color: var(--gjh-text-dim); max-width: 34rem; margin-bottom: 1.8rem; }
.gjh-hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }
.gjh-hero-points {
  display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.4rem;
  list-style: none;
}
.gjh-hero-points li { font-size: .88rem; color: var(--gjh-text-dim); }
.gjh-hero-points strong { display: block; color: var(--gjh-gold-2); font-size: 1.05rem; }

.gjh-hero-stage {
  position: relative; z-index: 1;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(200deg, var(--gjh-ink-2), var(--gjh-ink-0) 80%);
  border-left: 1px solid var(--gjh-line);
}
.gjh-hero-stage .gjh-mesh { opacity: .9; }
.gjh-hero-fan {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
}
.gjh-hero-fan img {
  position: absolute; width: clamp(180px, 22vw, 300px); border-radius: 12px;
  border: 1px solid var(--gjh-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.gjh-hero-fan img:nth-child(1) { transform: rotate(-9deg) translate(-46%, -34%); }
.gjh-hero-fan img:nth-child(2) { transform: rotate(4deg) translate(8%, 6%); z-index: 2; }
.gjh-hero-fan img:nth-child(3) { transform: rotate(12deg) translate(52%, 44%); }

/* ---------- continuous ticker (the one motion idea) ---------- */
.gjh-tape {
  position: relative; overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--gjh-line);
  background: var(--gjh-ink-1);
  padding: .65rem 0;
}
.gjh-tape-track {
  display: inline-block; white-space: nowrap;
  animation: gjh-tape-roll 36s linear infinite;
}
.gjh-tape-track span {
  display: inline-block; padding: 0 1.6rem;
  font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gjh-text-dim);
}
.gjh-tape-track span b { color: var(--gjh-gold-1); font-weight: 800; }
@keyframes gjh-tape-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- lobby: wide-rows ---------- */
.gjh-vault { padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 4rem); }
.gjh-vault-head { margin-bottom: 2.2rem; max-width: 46rem; }
.gjh-vault-head h2 {
  font-family: var(--gjh-font-display); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--gjh-gold-1);
}
.gjh-vault-head p { color: var(--gjh-text-dim); margin-top: .5rem; }

.gjh-rows { display: flex; flex-direction: column; gap: 1.1rem; list-style: none; }
.gjh-row {
  display: grid; grid-template-columns: 240px 1fr auto; gap: 1.4rem; align-items: center;
  background: linear-gradient(120deg, var(--gjh-ink-2), var(--gjh-ink-1) 75%);
  border: 1px solid var(--gjh-line);
  border-radius: var(--gjh-radius);
  padding: 1rem 1.4rem 1rem 1rem;
  transition: border-color .15s ease, transform .15s ease;
}
.gjh-row:hover { border-color: var(--gjh-gold-1); transform: translateX(6px); }
.gjh-row:nth-child(even) { margin-left: clamp(0px, 3vw, 48px); }
.gjh-row-cover { border-radius: 10px; overflow: hidden; aspect-ratio: 337 / 181; background: var(--gjh-ink-0); }
.gjh-row-cover img { width: 100%; height: 100%; object-fit: cover; }
.gjh-row-info h3 { font-size: 1.3rem; font-weight: 800; }
.gjh-row-meta {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gjh-emerald); margin-bottom: .3rem; display: block;
}
.gjh-row-info p { color: var(--gjh-text-dim); font-size: .95rem; max-width: 40rem; }
.gjh-row-cta { white-space: nowrap; }

/* ---------- FAQ ---------- */
.gjh-faq { padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 4rem); max-width: 60rem; }
.gjh-faq h2 {
  font-family: var(--gjh-font-display); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--gjh-gold-1); margin-bottom: 1.6rem;
}
.gjh-faq details {
  border: 1px solid var(--gjh-line); border-radius: var(--gjh-radius);
  background: var(--gjh-ink-1); margin-bottom: .8rem;
}
.gjh-faq summary {
  cursor: pointer; font-weight: 800; padding: 1rem 1.3rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.gjh-faq summary::-webkit-details-marker { display: none; }
.gjh-faq summary::after { content: "+"; color: var(--gjh-gold-1); font-size: 1.3rem; }
.gjh-faq details[open] summary::after { content: "–"; }
.gjh-faq details p { padding: 0 1.3rem 1.1rem; color: var(--gjh-text-dim); }

/* ---------- CTA band ---------- */
.gjh-band {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  margin: 0 clamp(1.2rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem);
  padding: clamp(2.6rem, 5vw, 4rem) 1.5rem;
  border-radius: calc(var(--gjh-radius) * 1.6);
  border: 1px solid var(--gjh-line);
  background: var(--gjh-ink-2);
}
.gjh-band h2 {
  font-family: var(--gjh-font-display); font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: var(--gjh-text);
  position: relative; z-index: 1;
}
.gjh-band p { color: var(--gjh-text-dim); margin: .7rem 0 1.6rem; position: relative; z-index: 1; }
.gjh-band .gjh-btn { position: relative; z-index: 1; }

/* ---------- game page ---------- */
.gjh-play { padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1.2rem, 4vw, 4rem); }
.gjh-play-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.gjh-play-bar h1 {
  font-family: var(--gjh-font-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--gjh-gold-1); flex: 1;
}
.gjh-back {
  text-decoration: none; font-weight: 800; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gjh-text-dim);
}
.gjh-back:hover { color: var(--gjh-gold-2); }
.gjh-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 420px;
  border-radius: var(--gjh-radius); overflow: hidden;
  border: 1px solid var(--gjh-line); background: #000;
}
.gjh-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gjh-play-desc { margin-top: 1.1rem; color: var(--gjh-text-dim); max-width: 52rem; }
.gjh-play-note { margin-top: .4rem; font-size: .85rem; color: var(--gjh-text-dim); }

/* ---------- legal / static pages ---------- */
.gjh-doc { padding: clamp(2.4rem, 5vw, 4rem) clamp(1.2rem, 4vw, 4rem); max-width: 56rem; }
.gjh-doc h1 {
  font-family: var(--gjh-font-display); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--gjh-gold-1); margin-bottom: 1.4rem;
}
.gjh-doc h2 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; color: var(--gjh-gold-2); }
.gjh-doc p, .gjh-doc li { color: var(--gjh-text-dim); margin-bottom: .7rem; }
.gjh-doc ul, .gjh-doc ol { padding-left: 1.4rem; }
.gjh-doc-updated { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- overlays ---------- */
.gjh-agegate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 1.2rem;
  background: rgba(4, 10, 7, .96);
}
.gjh-agegate-card {
  max-width: 30rem; text-align: center;
  background: var(--gjh-ink-2); border: 1px solid var(--gjh-line);
  border-radius: calc(var(--gjh-radius) * 1.4);
  padding: 2.4rem 2rem;
}
.gjh-agegate-badge {
  display: inline-block; font-family: var(--gjh-font-display);
  font-size: 2rem; color: var(--gjh-ink-0);
  background: linear-gradient(120deg, var(--gjh-gold-1), var(--gjh-gold-2));
  border-radius: 50%; width: 84px; height: 84px; line-height: 84px;
  margin-bottom: 1rem;
}
.gjh-agegate-card h2 { font-size: 1.5rem; margin-bottom: .7rem; }
.gjh-agegate-card p { color: var(--gjh-text-dim); margin-bottom: 1.2rem; }
.gjh-agegate-card .gjh-btn { width: 100%; }
.gjh-agegate-leave {
  display: block; margin-top: .9rem; color: var(--gjh-text-dim); font-size: .9rem;
}
.gjh-agegate-help { font-size: .82rem; margin-top: 1.2rem; }

.gjh-cookies {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 90; display: flex; gap: 1rem; align-items: center;
  max-width: min(92vw, 46rem);
  background: var(--gjh-ink-2); border: 1px solid var(--gjh-line);
  border-radius: var(--gjh-radius); padding: .9rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.gjh-cookies p { font-size: .88rem; color: var(--gjh-text-dim); }

/* ---------- footer ---------- */
.gjh-footer {
  border-top: 1px solid var(--gjh-line); background: var(--gjh-ink-1);
  padding: 2.6rem clamp(1.2rem, 4vw, 4rem) 1.6rem;
}
.gjh-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem;
}
.gjh-footer-brand .gjh-brand-name {
  font-family: var(--gjh-font-display); color: var(--gjh-gold-1); font-size: 1.2rem;
}
.gjh-footer-brand p { color: var(--gjh-text-dim); font-size: .9rem; margin-top: .6rem; }
.gjh-footer-age { font-weight: 800; color: var(--gjh-gold-2); }
.gjh-footer-links { display: flex; flex-direction: column; gap: .5rem; }
.gjh-footer-links a { color: var(--gjh-text-dim); text-decoration: none; font-size: .92rem; }
.gjh-footer-links a:hover { color: var(--gjh-gold-2); }
.gjh-footer-helpline { font-size: .92rem; }
.gjh-partners { display: flex; gap: 1.1rem; align-items: center; margin-top: .9rem; flex-wrap: wrap; }
.gjh-partner-logo { height: 30px; width: auto; }
.gjh-partners a:first-child .gjh-partner-logo { height: 40px; }
.gjh-footer-fine {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(242, 179, 42, .1);
  font-size: .78rem; color: var(--gjh-text-dim);
}

/* ---------- 404 ---------- */
.gjh-404 { text-align: center; padding: 16vh 1.5rem; }
.gjh-404 h1 { font-family: var(--gjh-font-display); font-size: 4rem; color: var(--gjh-gold-1); }
.gjh-404 p { color: var(--gjh-text-dim); margin: 1rem 0 1.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .gjh-hero { grid-template-columns: 1fr; min-height: 0; }
  .gjh-hero-stage {
    clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
    border-left: 0; border-top: 1px solid var(--gjh-line);
    min-height: 380px;
  }
  .gjh-row { grid-template-columns: 160px 1fr; }
  .gjh-row-cta { grid-column: 2; justify-self: start; }
  .gjh-row:nth-child(even) { margin-left: 0; }
  .gjh-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .gjh-topbar { display: flex; }
  .gjh-main, .gjh-footer { margin-left: 0; }
  .gjh-rail {
    transform: translateX(-110%); transition: transform .25s ease;
    width: 240px; align-items: flex-start; padding: 4.2rem 1.2rem 1.4rem;
    z-index: 80;
  }
  .gjh-rail.is-open { transform: translateX(0); }
  .gjh-rail-links { margin-top: 1.6rem; width: 100%; }
  .gjh-rail-links a {
    writing-mode: horizontal-tb; transform: none;
    padding: .8rem .2rem; border-left: 0;
  }
}

@media (max-width: 560px) {
  .gjh-row { grid-template-columns: 1fr; }
  .gjh-row-cta { grid-column: 1; }
  .gjh-hero-fan img { width: 46vw; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gjh-mesh::before, .gjh-mesh::after { animation: none; }
  .gjh-tape-track { animation: none; }
  .gjh-btn, .gjh-row { transition: none; }
}
