:root {
  --bg: #07080c;
  --gold: #e4c37a;
  --gold-2: #f6e6b8;
  --gold-dim: rgba(228, 195, 122, 0.18);
  --ink: #ece7dc;
  --muted: #9a9284;
  --line: rgba(228, 195, 122, 0.22);
  --card: rgba(16, 20, 27, 0.78);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --max: 1080px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(228, 195, 122, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(13, 70, 52, 0.55), transparent 50%),
    linear-gradient(180deg, #07080c 0%, #0a1210 48%, #07080c 100%);
}
.felt-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.spotlight {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(228, 195, 122, 0.12), transparent 68%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 12, 0.72);
  border-bottom: 1px solid rgba(228, 195, 122, 0.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--gold);
  box-shadow: inset 0 0 12px rgba(228, 195, 122, 0.25);
}
.brand b { font-size: 17px; }
.brand span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.22em; font-weight: 400; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--gold-2); }
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-2);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.nav-cta:hover { background: var(--gold); color: #1a1408; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; }

.hero { padding: 48px 0 20px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.75fr 0.7fr;
  gap: 28px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.kicker::before, .kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.03em;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), #b8944c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 18px;
  color: #d8d1c5;
  font-size: 18px;
}
.hero p {
  color: #c9c2b6;
  margin-top: 14px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  transition: 0.25s ease;
}
.btn-gold {
  background: linear-gradient(180deg, #f3e1a8, #c9a35a);
  color: #1b1408;
  box-shadow: 0 10px 30px rgba(201, 163, 90, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--gold-2);
  background: rgba(228, 195, 122, 0.05);
}
.btn-ghost:hover { border-color: var(--gold); }

.stage {
  position: relative;
  height: 340px;
  perspective: 1200px;
}
.table-oval {
  position: absolute;
  inset: 36px 4px 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(228, 195, 122, 0.12), transparent 42%),
    linear-gradient(180deg, #164536, #0b241c 55%, #081610);
  border: 8px solid #2a2114;
  box-shadow: inset 0 0 0 5px #c9a35a, var(--shadow);
}
.table-logo {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  letter-spacing: 0.32em;
  color: rgba(228, 195, 122, 0.35);
  font-size: 12px;
}
.fan { position: absolute; inset: 0; }
.playing-card {
  position: absolute;
  width: 86px;
  height: 122px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf8, #efe6d4);
  color: #1b1408;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  padding: 8px 10px;
  left: 50%;
  top: 64px;
  transform-origin: 50% 140%;
  animation: deal 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.playing-card .num { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1; }
.playing-card .suit { font-size: 22px; margin-top: 12px; text-align: center; }
.playing-card.red { color: #b44545; }
.playing-card:nth-child(1) { transform: translateX(-50%) rotate(-28deg); animation-delay: 0.05s; }
.playing-card:nth-child(2) { transform: translateX(-50%) rotate(-14deg); animation-delay: 0.14s; }
.playing-card:nth-child(3) { transform: translateX(-50%) rotate(0deg); animation-delay: 0.23s; }
.playing-card:nth-child(4) { transform: translateX(-50%) rotate(14deg); animation-delay: 0.32s; }
.playing-card:nth-child(5) { transform: translateX(-50%) rotate(28deg); animation-delay: 0.41s; }
@keyframes deal {
  from { opacity: 0; top: 0; }
  to { opacity: 1; top: 64px; }
}

.section { padding: 48px 0; scroll-margin-top: 84px; }
.topic { scroll-margin-top: 84px; }
.prose h2, .prose h3 { scroll-margin-top: 84px; }
.intro { padding-top: 8px; }
.prose { max-width: 860px; }
.prose h2, .topic h2, .download h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  line-height: 1.35;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 28px 0 10px;
}
.prose p, .topic p, .download p {
  color: #d8d1c5;
  margin-bottom: 16px;
}
.prose a { color: var(--gold-2); border-bottom: 1px solid var(--line); }
.prose a:hover { color: var(--gold); }
.topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.topic {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px 10px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}
.range-panel { max-width: 860px; }
.range-board {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 3px;
}
.cell {
  aspect-ratio: 1;
  border-radius: 4px;
  font-size: 10px;
  display: grid;
  place-items: center;
  background: #161b22;
  color: #6d665c;
  border: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
}
.cell.pair { background: #3a2d12; color: var(--gold-2); }
.cell.suited { background: #163027; color: #b7d9c6; }
.cell.off { background: #2a1717; color: #e0b3b3; }
.cell.on { outline: 1px solid var(--gold); box-shadow: 0 0 0 1px rgba(228,195,122,.4) inset; }
.legend { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: middle; }

.download {
  max-width: 860px;
  border-radius: 24px;
  padding: 36px 32px;
  background:
    radial-gradient(500px 200px at 80% 0%, rgba(228,195,122,.16), transparent 50%),
    linear-gradient(180deg, #121821, #0c1118);
  border: 1px solid var(--line);
}
.dl-btns { display: grid; gap: 12px; margin-top: 8px; }
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.dl-btn:hover { border-color: var(--gold); }
.dl-btn small { color: var(--muted); display: block; font-weight: 400; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.foot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-links { display: flex; gap: 18px; }
.site-footer a:hover { color: var(--gold-2); }
.miss { padding: 80px 0 120px; }
.miss h1 { font-size: 36px; margin-bottom: 12px; }
.miss p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #07080c;
    padding: 18px 24px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    z-index: 50;
  }
  .hero-grid, .topics { grid-template-columns: 1fr; }
  .stage { display: none; }
  .foot-bar { align-items: flex-start; }
  .download { padding: 24px 18px; }
  .hero { padding-top: 28px; }
  .cell { font-size: 8px; }
}
