:root {
  --felt: #07140f;
  --felt-mid: #0d2419;
  --felt-lit: #163526;
  --rail: #1a1208;
  --gold: #e4c56a;
  --gold-bright: #f7e7b2;
  --gold-deep: #9a7420;
  --cream: #f4ead6;
  --ink: #f7f1e4;
  --mute: #c7b898;
  --chip-red: #c41e3a;
  --chip-blue: #1d3f7a;
  --chip-ivory: #efe6d2;
  --line: rgba(228, 197, 106, 0.28);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --display: "Cinzel Decorative", "Cinzel", serif;
  --serif: "Cinzel", serif;
  --body: "Cormorant Garamond", serif;
  --ui: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--felt);
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.felt-room {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(228, 197, 106, 0.12), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(196, 30, 58, 0.08), transparent 50%),
    radial-gradient(800px 500px at 8% 80%, rgba(29, 63, 122, 0.12), transparent 55%),
    linear-gradient(180deg, #06110c 0%, #0a1c14 40%, #07140f 100%);
}

#felt-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.felt-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.felt-diamonds {
  position: absolute;
  inset: -20%;
  opacity: 0.09;
  background-image:
    linear-gradient(45deg, rgba(228, 197, 106, 0.35) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(228, 197, 106, 0.25) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: drift-grid 48s linear infinite;
}

.room-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.62) 100%);
}

.spot-a,
.spot-b {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}

.spot-a {
  top: -8%;
  left: 30%;
  background: #d4b45a;
  animation: pulse-spot 9s ease-in-out infinite;
}

.spot-b {
  right: -8%;
  bottom: 10%;
  background: #1d3f7a;
  animation: pulse-spot 11s ease-in-out infinite reverse;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.rail {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.4rem;
  background:
    linear-gradient(180deg, rgba(26, 18, 8, 0.92), rgba(12, 10, 6, 0.86)),
    repeating-linear-gradient(90deg, #2a1b0b 0 8px, #1a1208 8px 16px);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 -8px 18px rgba(228, 197, 106, 0.08);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}

.mark img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px #1a1208, 0 0 18px rgba(228, 197, 106, 0.35);
}

.rail nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-family: var(--serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.rail nav a {
  color: var(--cream);
  position: relative;
}

.rail nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.rail nav a:hover::after {
  width: 100%;
}

.rail-actions {
  display: flex;
  gap: 0.6rem;
}

.ghost,
.gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ghost {
  border: 1px solid var(--line);
  background: rgba(7, 20, 15, 0.55);
  color: var(--cream);
}

.gold {
  border: 1px solid var(--gold-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  color: #1a1208;
  box-shadow: 0 8px 20px rgba(154, 116, 32, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ghost:hover,
.gold:hover {
  transform: translateY(-2px);
}

.ghost img,
.gold img,
.seat a img,
.pit-links img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.ghost img[src*="x.svg"],
.pit-links a img[src*="x.svg"] {
  filter: invert(86%) sepia(22%) saturate(500%) hue-rotate(6deg) brightness(105%);
}

.gold img[src*="pumpswap.svg"],
.seat a img[src*="pumpswap.svg"],
.pit-links a img[src*="pumpswap.svg"],
.hero-actions .gold img {
  filter: saturate(0.8) brightness(0.85);
}

.ghost img[src*="dexscreener.svg"],
.seat a img[src*="dexscreener.svg"],
.pit-links a img[src*="dexscreener.svg"] {
  filter: invert(78%) sepia(38%) saturate(480%) hue-rotate(6deg) brightness(108%);
}

.kicker img {
  width: 16px;
  height: 16px;
  filter: saturate(1.1) brightness(1.05);
}

.menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 10px;
}

.menu i {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 7vw 4.5rem;
  min-height: calc(100vh - 76px);
  position: relative;
}

.hero-orbits {
  position: absolute;
  inset: 8% 48% 8% 4%;
  pointer-events: none;
}

.chip {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 7px dashed rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35), inset 0 0 0 6px rgba(0, 0, 0, 0.18);
}

.chip.red { background: radial-gradient(circle at 35% 30%, #ef4a62, var(--chip-red)); top: 8%; left: 6%; }
.chip.blue { background: radial-gradient(circle at 35% 30%, #4d73c4, var(--chip-blue)); bottom: 18%; left: 12%; }
.chip.ivory { background: radial-gradient(circle at 35% 30%, #fff, var(--chip-ivory)); top: 42%; right: 8%; border-color: rgba(154, 116, 32, 0.55); }
.chip.spin-rev { top: 70%; right: 18%; }
.chip.spin-wide { top: 16%; right: 0; }

.spin-slow { animation: float-chip 9s ease-in-out infinite, spin 14s linear infinite; }
.spin-mid { animation: float-chip 7s ease-in-out infinite reverse, spin 11s linear infinite; }
.spin-fast { animation: float-chip 6s ease-in-out infinite, spin 8s linear infinite; }
.spin-rev { animation: float-chip 8s ease-in-out infinite, spin 12s linear infinite reverse; }
.spin-wide { animation: float-chip 10s ease-in-out infinite, spin 16s linear infinite; }

.dealer {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.chip-ring {
  width: min(100%, 390px);
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, var(--gold) 0 12deg, #1a1208 12deg 18deg),
    var(--gold);
  box-shadow: var(--shadow), 0 0 40px rgba(228, 197, 106, 0.18);
  animation: ring-turn 28s linear infinite;
}

.chip-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: ring-turn 28s linear infinite reverse;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
}

.nameplate {
  min-width: 180px;
  padding: 0.45rem 1.4rem;
  background: #fff;
  color: #111;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.hero-copy h1 {
  margin: 0.15em 0 0.2em;
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff6d2 0%, var(--gold-bright) 28%, var(--gold) 58%, #8a6718 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
  animation: foil 6s ease-in-out infinite;
}

.hero-copy h1 span {
  display: inline;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.tagline {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-style: italic;
  color: var(--cream);
}

.blurb {
  max-width: 38rem;
  color: var(--mute);
}

.ca {
  display: grid;
  gap: 0.15rem;
  width: min(100%, 34rem);
  margin: 1.2rem 0 1.4rem;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 26, 18, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.ca small {
  font-family: var(--serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.68rem;
}

.ca strong {
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 500;
  word-break: break-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.wide {
  min-width: 168px;
}

.section-head {
  max-width: 46rem;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section-head h2 {
  margin: 0.25rem 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p:last-child {
  color: var(--mute);
}

.about,
.howtobuy,
.chart,
.joinus {
  padding: 5.5rem 7vw;
}

.hand {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.hole {
  position: relative;
  padding: 1.7rem 1.4rem 1.5rem;
  min-height: 240px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(244, 234, 214, 0.06), rgba(7, 20, 15, 0.3)),
    var(--felt-mid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease, border-color 0.3s ease;
}

.hole.show {
  transform: none;
  opacity: 1;
}

.hole:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
}

.hole h3 {
  margin: 2.2rem 0 0.6rem;
  font-family: var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
}

.hole p {
  margin: 0;
  color: var(--mute);
}

.suit {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 22px;
  height: 22px;
  background: var(--chip-red);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: pulse-spot 4s ease-in-out infinite;
}

.suit.diamonds {
  background: var(--gold);
}

.suit.clubs {
  background: var(--chip-blue);
  border-radius: 4px;
  clip-path: none;
}

.line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.seat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.3rem 1.4rem;
  border-radius: 18px;
  background: rgba(13, 36, 25, 0.78);
  border: 1px solid var(--line);
  transform: translateX(-20px);
  opacity: 0;
  transition: transform 0.65s ease, opacity 0.65s ease;
}

.seat.show {
  transform: none;
  opacity: 1;
}

.seat h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  letter-spacing: 0.06em;
}

.seat p {
  margin: 0 0 0.7rem;
  color: var(--mute);
}

.seat a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-family: var(--ui);
  font-size: 0.86rem;
}

.token {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ef4a62, var(--chip-red));
  border: 6px dashed rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.token.blue {
  background: radial-gradient(circle at 35% 30%, #4d73c4, var(--chip-blue));
}

.token.ivory {
  color: #1a1208;
  background: radial-gradient(circle at 35% 30%, #fff, var(--chip-ivory));
  border-color: rgba(154, 116, 32, 0.5);
}

.screen {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow), 0 0 0 10px rgba(26, 18, 8, 0.55);
  min-height: 560px;
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.screen.show {
  transform: none;
  opacity: 1;
}

.screen iframe {
  width: 100%;
  height: 620px;
  border: 0;
  background: #0b0e11;
}

.banner-frame {
  margin: 0 auto 2rem;
  width: min(100%, 1100px);
  aspect-ratio: 3 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow), 0 0 50px rgba(228, 197, 106, 0.12);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.banner-frame.show {
  transform: none;
  opacity: 1;
}

.banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: banner-glow 8s ease-in-out infinite;
}

.pit-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.pit-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 26, 18, 0.72);
  font-family: var(--ui);
  font-size: 0.9rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pit-links a:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.felt-foot {
  padding: 2.2rem 7vw 2.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--mute);
  font-size: 1rem;
}

.felt-foot strong {
  display: block;
  font-family: var(--display);
  color: var(--gold);
  letter-spacing: 0.16em;
}

.felt-foot span {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

@keyframes drift-grid {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-72px, -72px, 0); }
}

@keyframes pulse-spot {
  0%, 100% { opacity: 0.16; transform: scale(1); }
  50% { opacity: 0.28; transform: scale(1.08); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float-chip {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

@keyframes ring-turn {
  to { transform: rotate(360deg); }
}

@keyframes foil {
  0%, 100% { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)) brightness(1); }
  50% { filter: drop-shadow(0 10px 22px rgba(228, 197, 106, 0.35)) brightness(1.12); }
}

@keyframes banner-glow {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.08) brightness(1.06); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3.5rem;
  }

  .hero-orbits {
    inset: 0 0 55% 0;
  }

  .hero-copy,
  .ca {
    margin-left: auto;
    margin-right: auto;
  }

  .ca {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hand {
    grid-template-columns: 1fr;
  }

  .felt-foot {
    flex-direction: column;
  }

  .rail nav,
  .rail-actions {
    display: none;
  }

  .rail.open nav,
  .rail.open .rail-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .rail.open {
    flex-wrap: wrap;
  }

  .menu {
    display: block;
    margin-left: auto;
  }

  .screen iframe {
    height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
