/* ============================================================
   CASINO SOCIETY — CASINO2 VARIANT
   Dark casino-noir vibe (same as casino1) + ADA layout patterns
   New: marquee hero strip, tabbed collections, numbered slider,
        word-swap animation, asymmetric about, pre-footer CTA
   ============================================================ */

/* --- CUSTOM PROPERTIES ------------------------------------ */
:root {
  --bg:             #0D0D0D;
  --surface:        #111111;
  --surface-2:      #161210;
  --border:         #2A2018;
  --border-bright:  #473520;
  --gold:           #C9A96A;
  --gold-light:     #E6D3A3;
  --gold-dim:       rgba(201, 169, 106, 0.10);
  --gold-glow:      rgba(201, 169, 106, 0.25);
  --bronze:         #8C6A3B;
  --text:           #E6D3A3;
  --text-muted:     #927E60;
  --text-dim:       #4E4130;
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'Outfit', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --corner-size:    14px;
  --corner-w:       1px;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-quint:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-menu:      cubic-bezier(0.76, 0, 0.24, 1);
  --dur:            0.3s;
}

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (hover: hover) {
  body, a, button { cursor: none; }
}
body.js-loading { overflow: hidden; }
img    { display: block; max-width: 100%; height: auto; }
a      { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
em     { font-style: italic; }

/* --- CUSTOM CURSOR ---------------------------------------- */
@media (hover: hover) {
  .cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99998;
    will-change: transform;
  }
  .cursor__ring {
    width: 176px;
    height: 176px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 106, 0.35);
    background: rgba(13, 13, 13, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.25rem;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s var(--ease-quint), opacity 0.4s ease;
  }
  .cursor--visible .cursor__ring {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  .cursor__arrow {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.375rem;
    color: var(--gold);
    line-height: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .cursor__arrow--next { opacity: 0; transform: translateX(-8px); }
  .cursor--right .cursor__arrow--next { opacity: 1; transform: translateX(0); }
  .cursor--right .cursor__arrow--prev { opacity: 0; transform: translateX(8px); }
}

/* --- FILM GRAIN -------------------------------------------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* --- CORNER BRACKETS -------------------------------------- */
.corner {
  position: absolute;
  width:  var(--corner-size);
  height: var(--corner-size);
  pointer-events: none;
  z-index: 2;
}
.c-tl { top: 0; left: 0;    border-top:    var(--corner-w) solid var(--gold); border-left:   var(--corner-w) solid var(--gold); }
.c-tr { top: 0; right: 0;   border-top:    var(--corner-w) solid var(--gold); border-right:  var(--corner-w) solid var(--gold); }
.c-bl { bottom: 0; left: 0;  border-bottom: var(--corner-w) solid var(--gold); border-left:   var(--corner-w) solid var(--gold); }
.c-br { bottom: 0; right: 0; border-bottom: var(--corner-w) solid var(--gold); border-right:  var(--corner-w) solid var(--gold); }

/* --- AMBIENT ORBS ----------------------------------------- */
.hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: hard-light;
  will-change: transform;
}
.orb--1 {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(201, 169, 106, 0.24) 0%, transparent 65%);
  top: -200px;
  right: -80px;
  animation: orb-1 18s ease-in-out infinite alternate;
}
.orb--2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(140, 106, 59, 0.20) 0%, transparent 65%);
  bottom: 5%;
  left: -100px;
  animation: orb-2 22s ease-in-out infinite alternate;
}
.orb--3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201, 169, 106, 0.12) 0%, transparent 65%);
  top: 20%;
  right: 28%;
  animation: orb-3 26s ease-in-out infinite alternate;
}
@keyframes orb-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-75px, 55px) scale(1.12); }
}
@keyframes orb-2 {
  0%   { transform: translate(0, 0) rotate(-14deg); }
  100% { transform: translate(60px, -75px) rotate(9deg); }
}
@keyframes orb-3 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-40px, -55px) scale(0.92); }
}

/* --- LOADER ----------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080808;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
  overflow: hidden;
}
.loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 48%, rgba(42, 31, 20, 0.7) 0%, transparent 68%);
  pointer-events: none;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader > .corner { --corner-size: 40px; --corner-w: 1px; }

.loader__inner {
  width: min(560px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.loader__divider {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  margin-bottom: 1.75rem;
}
.loader__divider::before,
.loader__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.loader__divider-gem {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--gold-glow);
}
.loader__divider--lower { margin-top: 0; margin-bottom: 2rem; }
.loader__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.5rem, 7.5vw, 5.25rem);
  color: var(--gold-light);
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(201, 169, 106, 0.4), 0 0 80px rgba(201, 169, 106, 0.14);
}
.loader__sub {
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.loader__ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loader__ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.loader__ring-track {
  stroke: var(--border);
  stroke-width: 0.5;
  fill: none;
}
.loader__ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.75;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
  /* dashoffset animated via JS */
  filter: drop-shadow(0 0 6px rgba(201, 169, 106, 0.5));
}
.loader__pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  pointer-events: none;
}
.loader__terminal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.875rem;
  width: 100%;
  align-items: flex-start;
  text-align: left;
}
.loader__tline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  transition: opacity 0.3s var(--ease);
}
.loader__tline--hidden { opacity: 0; }
.loader__tline.is-done { color: var(--gold-light); }
.loader__prompt        { color: var(--gold); flex-shrink: 0; }
/* loader bar removed — SVG ring above replaces it */
.loader__enter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  animation: blink 1.6s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

/* --- LAYOUT UTILITIES ------------------------------------- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.about     { background: var(--surface); }
.community { background: var(--surface); }

/* --- SECTION HEADER --------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  letter-spacing: 0.04em;
  color: var(--gold-light);
  flex-shrink: 0;
}
.section-rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--border-bright), transparent); }

/* --- TERMINAL LINE ---------------------------------------- */
.terminal-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.05em;
}
.prompt { color: var(--gold); font-family: var(--font-mono); flex-shrink: 0; }

/* --- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.8125rem 2rem;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
}
.btn--primary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn--primary:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 22px var(--gold-glow), 0 0 44px rgba(201, 169, 106, 0.10);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-bright);
}
.btn--ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-dim);
}
.btn--outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.8125rem 2rem;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
}
.btn--outline:hover { color: var(--gold); border-color: var(--gold); }

/* --- NAV SLIDE HOVER -------------------------------------- */
.nav-slide {
  display: block;
  overflow: hidden;
  position: relative;
  height: 1.15em;
}
.nav-slide span {
  display: block;
  transition: transform 0.65s var(--ease-quint);
  white-space: nowrap;
}
.nav-slide span:last-child {
  position: absolute;
  top: 100%;
  left: 0;
}
@media (hover: hover) {
  .header__nav-link:hover .nav-slide span:first-child { transform: translateY(-100%); }
  .header__nav-link:hover .nav-slide span:last-child  { transform: translateY(-100%); }
}

/* --- TEXT LINKS ------------------------------------------- */
.text-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.07em;
  position: relative;
  padding-bottom: 0.2rem;
}
.text-link::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gold-dim);
}
.text-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.55s var(--ease-quint);
}
@media (hover: hover) {
  .text-link:hover { color: var(--gold-light); }
  .text-link:hover::after { transform-origin: left; transform: scaleX(1); }
}
.text-link--arrow { display: inline-block; margin-top: 1rem; }

/* --- HEADER ----------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.header.is-scrolled { border-color: var(--border-bright); background: rgba(8, 8, 8, 0.96); }
.header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header__logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.header__nav      { margin-left: auto; }
.header__nav-list { display: flex; gap: 2rem; align-items: center; }
.header__nav-link {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease);
}
.header__nav-link:hover { color: var(--gold); }
.header__cta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 106, 0.4);
  padding: 0.4rem 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.header__cta:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); box-shadow: 0 0 16px var(--gold-glow); }
.header__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.header__burger span { display: block; width: 22px; height: 1px; background: var(--text-muted); transition: all var(--dur) var(--ease); }
.header__burger[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child  { transform: translateY(-6px) rotate(-45deg); }

/* --- HERO -------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero__gif {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,8,8,0.72) 0%, rgba(8,8,8,0.32) 30%, rgba(8,8,8,0.40) 65%, rgba(8,8,8,0.95) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(42,31,20,0.5) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(8,8,8,0.8) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero > .corner { --corner-size: 22px; z-index: 4; }
.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: calc(64px + clamp(4rem, 9vw, 7rem)) clamp(1.5rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  color: rgba(230, 211, 163, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(4.5rem, 13vw, 12rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
  text-shadow: 0 4px 80px rgba(8,8,8,0.8);
}
.hero__line { display: block; }
.hero__line--accent {
  color: var(--gold);
  text-shadow: 0 0 60px rgba(201,169,106,0.4), 0 4px 80px rgba(8,8,8,0.8);
}

/* Word swap */
.hero__wordswap {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  color: var(--text-muted);
  margin-bottom: 2.75rem;
  display: flex;
  align-items: baseline;
  gap: 0;
  height: 2.2em;
  overflow: hidden;
}
.wordswap__static { color: var(--text-muted); flex-shrink: 0; }
.wordswap__words { position: relative; display: inline-block; min-width: 160px; }
.wordswap__word {
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  white-space: nowrap;
}
.wordswap__word.is-active { opacity: 1; transform: translateY(0); }
.wordswap__word.is-leaving { opacity: 0; transform: translateY(-100%); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero marquee strip */
.hero__marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(201, 169, 106, 0.12);
  padding: 1.25rem 0;
  background: rgba(8, 8, 8, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  animation: marquee 30s linear infinite;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.hero__marquee-track .sep { color: var(--gold); opacity: 0.6; font-style: normal; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- ABOUT ------------------------------------------------- */
/* Asymmetric 3-column on desktop */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__stat-col { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 2rem; }
.about__stat { display: flex; flex-direction: column; }
.about__stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 8rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 60px rgba(201,169,106,0.2);
}
.about__stat-label {
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.about__stat-desc {
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.about__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}
.about__text-col { padding-top: 2rem; }
.about__body {
  font-weight: 300;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.125rem;
}
.about__links { display: flex; gap: 1.75rem; margin-top: 2rem; }

.about__image-col { }
.about__frame {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease);
}
.about__frame:hover { border-color: var(--border-bright); }
.about__frame img {
  width: 100%;
  filter: saturate(0.5) brightness(0.88);
  transition: filter 0.5s var(--ease);
}
.about__frame:hover img { filter: saturate(0.75) brightness(1); }
.about__id {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border-top: 1px solid var(--border);
  background: rgba(8,8,8,0.9);
}
.about__id-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about__id-value {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-dim);
}

/* --- COLLECTIONS (tabbed) -------------------------------- */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.tab {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: 0;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  cursor: pointer;
}
.tab:hover { color: var(--gold); border-color: var(--gold); }
.tab.is-active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

.tab-panels { position: relative; }
.tab-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.tab-panel.is-active {
  display: block;
  opacity: 1;
}
.tab-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.tab-panel__image {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-2);
}
.tab-panel__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.88);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
  display: block;
}
.tab-panel__image:hover img { filter: saturate(0.75) brightness(1.05); transform: scale(1.03); }
.tab-panel__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--border-bright);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.tab-panel__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.tab-panel__desc {
  font-weight: 300;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.tab-panel__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tab-panel__list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-left: 1rem;
  position: relative;
}
.tab-panel__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  opacity: 0.6;
}

/* --- PLATFORM (numbered slider) --------------------------- */
.platform { background: var(--surface); }
.platform__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--text-muted);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.02em;
}
.platform__lead em { color: var(--gold); }
.platform__slider-wrap { overflow: hidden; }
.platform__slider-inner { display: flex; flex-direction: column; gap: 2rem; }
.platform__counter {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3rem, 7vw, 6.5rem);
  color: var(--border-bright);
  line-height: 1;
  letter-spacing: 0.05em;
  user-select: none;
}
.platform__counter span:first-child { color: var(--gold); }
.platform__counter-sep { color: var(--border); margin: 0 0.25rem; }

.platform__slides { position: relative; min-height: 400px; }
.platform__slide { display: none; }
.platform__slide.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.platform__slide-img {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-2);
}
.platform__slide-img img {
  width: 100%;
  filter: saturate(0.5) brightness(0.85);
  transition: filter 0.5s var(--ease);
  display: block;
}
.platform__slide-img:hover img { filter: saturate(0.75) brightness(1); }
.platform__slide-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.platform__slide-desc {
  font-weight: 300;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.platform__slide-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.platform__slide-list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-left: 1rem;
  position: relative;
}
.platform__slide-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  background: var(--gold); opacity: 0.6;
}
.platform__controls {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.platform__btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.4s var(--ease-quint), background 0.4s var(--ease-quint), box-shadow 0.4s var(--ease-quint);
}
.platform__btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 24px var(--gold-dim);
}
.platform__btn-icon {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-muted);
  display: block;
  transition: color 0.3s var(--ease-quint), transform 0.3s var(--ease-quint);
}
.platform__btn:hover .platform__btn-icon { color: var(--gold); }
.platform__btn--next:hover .platform__btn-icon { transform: translateX(3px); }
.platform__btn:not(.platform__btn--next):hover .platform__btn-icon { transform: translateX(-3px); }

/* Cursor zone hint on platform slider */
.platform__slider-wrap { cursor: none; }
@media (hover: none) { .platform__slider-wrap { cursor: auto; } }

/* --- MEMES ------------------------------------------------- */
.memes__ticker { overflow: hidden; position: relative; margin-top: 1rem; }
.memes__ticker::before,
.memes__ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.memes__ticker::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.memes__ticker::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.memes__track {
  display: flex;
  gap: 1rem;
  animation: scroll-ticker 60s linear infinite;
  width: max-content;
  padding: 1rem 0;
}
.memes__track:hover { animation-play-state: paused; }
.memes__track img {
  height: 220px;
  width: auto;
  flex-shrink: 0;
  border: 1px solid var(--border);
  filter: saturate(0.55) brightness(0.85);
  transition: filter 0.35s var(--ease);
}
.memes__track img:hover { filter: saturate(0.85) brightness(1.05); }
@keyframes scroll-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- COMMUNITY -------------------------------------------- */
.community__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}
.community__card { display: flex; flex-direction: column; gap: 0; }
.community__card-img {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-2);
}
.community__card-img img {
  width: 100%;
  filter: saturate(0.5) brightness(0.88);
  transition: filter 0.5s var(--ease);
  display: block;
}
.community__card-img:hover img { filter: saturate(0.75) brightness(1); }
.community__card-info {
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  border-top: 0;
  background: var(--surface-2);
}
.community__card-role {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.community__card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}
.community__card-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

.community__ethos-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  color: var(--gold);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin-bottom: 2.25rem;
  text-shadow: 0 0 50px rgba(201,169,106,0.22);
}
.community__ethos-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.community__ethos-list li { display: flex; align-items: flex-start; gap: 1.25rem; }
.community__ethos-num {
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 0.2rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.community__ethos-list p { font-size: 0.9375rem; font-weight: 300; color: var(--text-muted); line-height: 1.85; }
.community__ethos-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- GAMES ------------------------------------------------- */
.games__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--text-muted);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.02em;
}
.games__lead em { color: var(--gold); }
.games__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.game-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.game-card:hover { border-color: var(--border-bright); box-shadow: 0 12px 48px rgba(0,0,0,0.5); }
.game-card__img { overflow: hidden; border: 1px solid rgba(42,32,24,0.5); }
.game-card__img img {
  width: 100%;
  display: block;
  filter: saturate(0.5) brightness(0.88);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.game-card:hover .game-card__img img { transform: scale(1.035); filter: saturate(0.75) brightness(1.05); }
.game-card__img--art img { object-fit: cover; aspect-ratio: 4 / 3; }
.game-card__info { display: flex; flex-direction: column; gap: 0.875rem; }
.game-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.5rem;
  color: var(--border-bright);
  line-height: 1;
}
.game-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold-light);
}
.game-card__desc { font-size: 0.875rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; }

/* --- FAQ --------------------------------------------------- */
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item[open] > .faq__q { color: var(--gold); }
.faq__item[open] > .faq__q .faq__icon::after { content: '[-]'; }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.375rem 0;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) var(--ease);
  gap: 1.5rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { display: none; }
.faq__q:hover { color: var(--gold); }
.faq__q-text { font-family: var(--font-body); font-weight: 300; font-size: 0.9375rem; letter-spacing: 0.03em; }
.faq__icon { font-family: var(--font-mono); font-size: 0.625rem; color: var(--gold); flex-shrink: 0; min-width: 3ch; text-align: right; opacity: 0.75; }
.faq__icon::after { content: '[+]'; }
.faq__a { padding: 0 0 1.5rem; }
.faq__a p { font-size: 0.9375rem; font-weight: 300; color: var(--text-muted); line-height: 1.9; max-width: 85ch; }

/* --- PRE-FOOTER CTA --------------------------------------- */
.prefooter {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 10rem) 0;
}
.prefooter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(42,31,20,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.prefooter__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
}
.prefooter__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  text-shadow: 0 0 100px rgba(201,169,106,0.2);
}
.prefooter__title em { color: var(--gold); display: block; }
.prefooter__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* --- FOOTER ----------------------------------------------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.875rem;
}
.footer__copy    { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.footer__tagline { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--text-dim); }
.footer__col-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.375rem;
  opacity: 0.8;
}
.footer__link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  transition: color var(--dur) var(--ease);
}
.footer__link:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
}

/* --- SCROLL-MARGIN ---------------------------------------- */
.section, #hero, #about { scroll-margin-top: 80px; }

/* --- RESPONSIVE: TABLET (1024px) -------------------------- */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__stat-col { grid-row: 1; grid-column: 1; }
  .about__image-col { grid-row: 1; grid-column: 2; }
  .about__text-col { grid-row: 2; grid-column: 1 / -1; }
  .platform__slide.is-active { grid-template-columns: 1fr; }
  .tab-panel__grid { grid-template-columns: 1fr; }
}

/* --- RESPONSIVE: MOBILE (768px) --------------------------- */
@media (max-width: 768px) {
  .header__cta { display: none; }
  .header__burger { display: flex; }
  .header__nav {
    /* hidden by default on mobile — clip-path controls entry */
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.55s var(--ease-menu);
  }
  .header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0;
    background: rgba(8,8,8,0.97);
    padding: 2rem clamp(1.5rem, 5vw, 3rem);
    z-index: 999;
    border-top: 1px solid var(--border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .header__nav.is-open .header__nav-list { flex-direction: column; gap: 2rem; }
  .header__nav.is-open .header__nav-link { font-size: 0.875rem; }
  .about__grid { grid-template-columns: 1fr; }
  .about__stat-col, .about__text-col, .about__image-col { grid-row: auto; grid-column: auto; }
  .community__grid { grid-template-columns: 1fr; }
  .games__grid     { grid-template-columns: 1fr; }
  .footer__inner   { grid-template-columns: 1fr; gap: 2rem; }
  .hero__actions   { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* --- REDUCED MOTION --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .memes__track, .hero__marquee-track { animation: none; }
  html { scroll-behavior: auto; }
  .wordswap__word { transition: none; }
}
