/* ============================================
   $ALLIN — All In
   poker-room neon, smoke, chips, trending #1
   ============================================ */

:root {
  --felt-dark: #0A120A;
  --baize: #142014;
  --baize-light: #1A2A1A;
  --felt-deeper: #060A06;

  --chip-gold: #FFD43B;
  --chip-gold-soft: rgba(255, 212, 59, 0.15);
  --chip-gold-glow: rgba(255, 212, 59, 0.35);

  --neon-magenta: #FF2D8A;
  --neon-magenta-soft: rgba(255, 45, 138, 0.12);

  --chip-blue: #3B82F6;
  --chip-green: #2EC85F;
  --chip-red: #E64545;
  --chip-purple: #9D55F2;

  --smoke-white: #EDE9E3;
  --felt-grey: #5A6B5A;

  --border-gold: rgba(255, 212, 59, 0.08);
  --border-gold-mid: rgba(255, 212, 59, 0.18);

  --font-display: 'Righteous', cursive;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'Overpass Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--felt-dark);
  color: var(--smoke-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: crosshair;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: crosshair;
  background: none;
  border: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================
   AMBIENT LAYERS
   ============================================ */

.smoke-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.smoke {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 233, 227, 0.04) 0%, rgba(237, 233, 227, 0.015) 40%, transparent 70%);
  filter: blur(40px);
  will-change: transform;
}

.smoke-1 {
  top: 10%;
  left: -10%;
  animation: drift1 38s linear infinite;
}
.smoke-2 {
  top: 50%;
  left: 30%;
  animation: drift2 46s linear infinite;
  animation-delay: -12s;
}
.smoke-3 {
  top: 70%;
  left: -20%;
  animation: drift3 52s linear infinite;
  animation-delay: -24s;
}
.smoke-4 {
  top: 20%;
  left: 60%;
  animation: drift4 42s linear infinite;
  animation-delay: -8s;
}

@keyframes drift1 {
  0% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(40vw, -20vh); opacity: 0.6; }
  100% { transform: translate(80vw, -40vh); opacity: 0; }
}
@keyframes drift2 {
  0% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(30vw, -30vh); opacity: 0.4; }
  100% { transform: translate(60vw, -60vh); opacity: 0; }
}
@keyframes drift3 {
  0% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(50vw, -25vh); opacity: 0.5; }
  100% { transform: translate(90vw, -50vh); opacity: 0; }
}
@keyframes drift4 {
  0% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(35vw, -22vh); opacity: 0.4; }
  100% { transform: translate(70vw, -45vh); opacity: 0; }
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.chips-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.chip-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  will-change: transform;
}

@keyframes chipFall {
  0% {
    transform: translate(0, -10vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: var(--max-op, 0.15); }
  90% { opacity: var(--max-op, 0.15); }
  100% {
    transform: translate(var(--x-drift, 0), 110vh) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================
   TOAST
   ============================================ */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--baize);
  color: var(--chip-gold);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 22px;
  border: 1px solid var(--border-gold-mid);
  border-radius: 4px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 30px rgba(255, 212, 59, 0.15);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 18, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--chip-gold);
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255, 212, 59, 0.3);
  white-space: nowrap;
}

.nav-ca {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--felt-grey);
  padding: 4px 10px;
  border: 1px dashed transparent;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.nav-ca:hover {
  color: var(--chip-gold);
  border-color: var(--border-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--smoke-white);
  transition: color 0.25s, transform 0.25s;
}
.nav-icon:hover { transform: translateY(-1px); }
#navTwitter:hover { color: var(--chip-gold); }
#navCommunity:hover { color: var(--neon-magenta); }

.nav-buy {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--chip-gold);
  border: 1px solid var(--chip-gold);
  padding: 7px 18px;
  text-transform: uppercase;
  transition: background 0.25s, box-shadow 0.25s;
}
.nav-buy:hover {
  background: rgba(255, 212, 59, 0.12);
  box-shadow: 0 0 16px rgba(255, 212, 59, 0.25);
}

@media (max-width: 760px) {
  .nav-ca { display: none; }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  z-index: -2;
  pointer-events: none;
  user-select: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 10, 0.42) 0%, rgba(10, 18, 10, 0.35) 50%, rgba(10, 18, 10, 0.48) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 160px);
  color: var(--chip-gold);
  letter-spacing: 2px;
  line-height: 0.95;
  text-shadow:
    0 0 40px rgba(255, 212, 59, 0.35),
    0 0 80px rgba(255, 212, 59, 0.15);
  margin-bottom: 24px;
  animation: fadeInUp 1s ease forwards;
}

.hero-cat-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 28px;
}

.hero-cat {
  width: clamp(220px, 36vw, 340px);
  border-radius: 12px;
  filter: drop-shadow(0 0 60px rgba(255, 212, 59, 0.18)) drop-shadow(0 0 120px rgba(255, 45, 138, 0.08));
  animation: catBreath 5s ease-in-out infinite;
}

@keyframes catBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--smoke-white);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-tagline-accent {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--chip-gold);
  letter-spacing: 1px;
  text-shadow: 0 0 14px rgba(255, 212, 59, 0.4);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  background: var(--chip-gold);
  color: var(--felt-dark);
  padding: 14px 36px;
  text-transform: uppercase;
  transition: filter 0.25s, box-shadow 0.25s, transform 0.25s;
  border-radius: 0;
}
.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 30px rgba(255, 212, 59, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-magenta);
  border: 1px solid var(--neon-magenta);
  padding: 13px 26px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
  border-radius: 0;
}
.btn-secondary:hover {
  background: rgba(255, 45, 138, 0.1);
  box-shadow: 0 0 24px rgba(255, 45, 138, 0.3);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  position: relative;
  padding: 100px 24px;
  z-index: 5;
}

.section-signal,
.section-quote {
  background: var(--felt-dark);
}

.section-confirmation,
.section-gallery {
  background: var(--felt-dark);
}

.section-lore,
.section-fund,
.section-seat {
  background: var(--baize);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.kicker {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 6px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.kicker-magenta { color: var(--neon-magenta); }
.kicker-gold { color: var(--chip-gold); }
.kicker-blue { color: var(--chip-blue); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 38px);
  color: var(--smoke-white);
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.accent-gold {
  color: var(--chip-gold);
  text-shadow: 0 0 18px rgba(255, 212, 59, 0.35);
}

.section-lede {
  font-size: 17px;
  color: var(--smoke-white);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.92;
}

.section-foot {
  font-size: 15px;
  color: var(--felt-grey);
  font-style: italic;
  margin-top: 22px;
}

/* TWEETS */

.tweet-wrap {
  max-width: 540px;
  margin-top: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: var(--felt-dark);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 212, 59, 0.05);
  min-height: 60px;
  position: relative;
}
.tweet-wrap .twitter-tweet { margin: 0 auto !important; }
.tweet-wrap.tweet-loading {
  min-height: 220px;
}
.tweet-wrap.tweet-loading::before {
  content: 'loading tweet...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--felt-grey);
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
}
.tweet-wrap a.tweet-fallback-link {
  display: block;
  padding: 36px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--chip-gold);
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.tweet-wrap a.tweet-fallback-link:hover {
  background: rgba(255, 212, 59, 0.06);
  color: var(--smoke-white);
}
.tweet-fallback {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   LORE
   ============================================ */

.lore-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 212, 59, 0.06);
  align-items: start;
}
.lore-block:last-child {
  border-bottom: 1px solid rgba(255, 212, 59, 0.06);
}

.lore-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--chip-gold);
  opacity: 0.25;
  letter-spacing: 2px;
}

.lore-head {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--neon-magenta);
  margin-bottom: 12px;
}

.lore-content p {
  font-size: 17px;
  color: var(--smoke-white);
  line-height: 1.7;
  max-width: 720px;
}

@media (max-width: 600px) {
  .lore-block { grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 0; }
  .lore-num { font-size: 36px; }
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 960px;
  margin: 32px auto 0;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 212, 59, 0.06);
  background: rgba(255, 212, 59, 0.02);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}
.gallery-item:hover {
  border-color: var(--chip-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 212, 59, 0.12);
}

@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   FUND (Gamblers Anonymous)
   ============================================ */

.fund-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 36px;
  padding: 32px;
  background: rgba(255, 212, 59, 0.03);
  border: 1px solid rgba(255, 212, 59, 0.1);
  border-radius: 8px;
}

.fund-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform 0.3s, filter 0.3s;
}
.fund-logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 24px rgba(255, 212, 59, 0.25));
}
.fund-logo img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 140px;
}

.fund-content p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--smoke-white);
  line-height: 1.7;
  margin-bottom: 14px;
  opacity: 0.9;
}

.fund-headline {
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  color: var(--smoke-white) !important;
  letter-spacing: 0.5px;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
  opacity: 1 !important;
}

.fund-hope {
  font-family: var(--font-display) !important;
  font-size: 24px !important;
  color: var(--chip-gold) !important;
  letter-spacing: 1px;
  text-shadow: 0 0 16px rgba(255, 212, 59, 0.3);
  margin-bottom: 18px !important;
  opacity: 1 !important;
}

.fund-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--neon-magenta);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 45, 138, 0.4);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.fund-link:hover {
  color: var(--chip-gold);
  border-color: var(--chip-gold);
}

.inline-link {
  color: var(--chip-gold);
  border-bottom: 1px solid rgba(255, 212, 59, 0.4);
  transition: color 0.25s, border-color 0.25s;
}
.inline-link:hover {
  color: var(--neon-magenta);
  border-color: var(--neon-magenta);
}

@media (max-width: 720px) {
  .fund-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .fund-logo {
    max-width: 180px;
    margin: 0 auto;
  }
}

/* ============================================
   BIG QUOTE
   ============================================ */

.section-quote { padding: 120px 24px; }

.big-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.4vw, 60px);
  color: var(--smoke-white);
  line-height: 1.2;
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 1px;
}

.accent-gold-glow {
  color: var(--chip-gold);
  text-shadow:
    0 0 18px rgba(255, 212, 59, 0.5),
    0 0 40px rgba(255, 212, 59, 0.25);
}

/* ============================================
   TAKE A SEAT
   ============================================ */

.seat-step {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  max-width: 720px;
  margin: 0 auto;
}

.chip {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 0, 0, 0.25);
}
.chip span {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  letter-spacing: 1px;
}

.chip-blue { background: var(--chip-blue); }
.chip-magenta { background: var(--neon-magenta); }
.chip-gold { background: var(--chip-gold); }
.chip-gold span { color: var(--felt-dark); }
.chip-green { background: var(--chip-green); }

.seat-text {
  font-size: 17px;
  color: var(--smoke-white);
  line-height: 1.6;
}
.seat-text strong {
  color: var(--chip-gold);
  font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--felt-deeper);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.footer-cat {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--chip-gold);
  margin: 0 auto 20px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(255, 212, 59, 0.3), 0 0 48px rgba(255, 212, 59, 0.15);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(255, 212, 59, 0.3), 0 0 48px rgba(255, 212, 59, 0.15); }
  50% { box-shadow: 0 0 32px rgba(255, 212, 59, 0.5), 0 0 64px rgba(255, 212, 59, 0.25); }
}

.footer-tag {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--chip-gold);
  letter-spacing: 3px;
  text-shadow: 0 0 14px rgba(255, 212, 59, 0.35);
  margin-bottom: 16px;
  animation: tagPulse 4s ease-in-out infinite;
}

@keyframes tagPulse {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; text-shadow: 0 0 20px rgba(255, 212, 59, 0.5); }
}

.footer-ca {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--felt-grey);
  padding: 4px 10px;
  border: 1px dashed transparent;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-ca:hover {
  color: var(--chip-gold);
  border-color: var(--border-gold);
}

/* ============================================
   REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item.reveal {
  transition-delay: calc(var(--d, 0) * 0.06s);
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */

@media (max-width: 600px) {
  .section { padding: 70px 20px; }
  .hero { padding: 60px 20px 40px; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .seat-step { gap: 16px; }
  .chip { width: 52px; height: 52px; }
  .chip span { font-size: 18px; }
}
