/* XRP Poker marketing site — dark casino-felt premium. No external assets. */
:root {
  --bg: #070d09;
  --felt: #0c1811;
  --felt2: #12251b;
  --panel: #101d15;
  --panel2: #0e1a13;
  --line: #24392c;
  --gold: #d9b45b;
  --gold-bright: #f0cf7e;
  --gold-dim: #a8853d;
  --ink: #ede4cf;
  --muted: #9fb3a4;
  --green: #5cc98d;
  --red: #d96a5b;
  --radius: 14px;
  --serif: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 2.2em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; color: var(--gold-bright); }
p { margin: .8em 0; }
ul, ol { margin: .8em 0 .8em 1.4em; }
li { margin: .35em 0; }
strong { color: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 9, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.mark { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.mark .suit { color: var(--gold); margin: 0 1px; }
.mark:hover { text-decoration: none; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: #1a1305; }
.btn-gold {
  display: inline-block; background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1305; font-weight: 700; padding: 10px 22px; border-radius: 10px;
  font-size: .95rem; border: 1px solid var(--gold-dim);
  box-shadow: 0 2px 14px rgba(217, 180, 91, .25);
}
.btn-gold:hover { text-decoration: none; filter: brightness(1.07); }
.btn-gold.big { padding: 15px 34px; font-size: 1.1rem; border-radius: 12px; }
.btn-outline {
  display: inline-block; color: var(--gold-bright); padding: 14px 30px; border-radius: 12px;
  border: 1px solid var(--gold-dim); font-weight: 600; font-size: 1.05rem;
}
.btn-outline:hover { background: rgba(217, 180, 91, .08); text-decoration: none; }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 90px 0 74px;
  background:
    radial-gradient(1100px 480px at 50% -80px, var(--felt2) 0%, var(--felt) 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .suits-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .05;
  font-size: 200px; line-height: 1; color: var(--gold);
  display: flex; justify-content: space-between; align-items: center; padding: 0 4vw;
  font-family: var(--serif);
}
.hero .kicker, .kicker {
  display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 999px;
  padding: 5px 16px; margin-bottom: 22px; background: rgba(217, 180, 91, .07);
}
.hero h1 { max-width: 820px; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .sub { max-width: 640px; margin: 20px auto 0; color: var(--muted); font-size: 1.15rem; }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .fineprint { margin-top: 18px; font-size: .82rem; color: var(--muted); opacity: .8; }

/* ---- sections ---- */
section { padding: 30px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 26px 0; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card .icon { font-size: 1.8rem; color: var(--gold); font-family: var(--serif); margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card a.more { display: inline-block; margin-top: 12px; font-size: .92rem; }

/* steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; margin: 26px 0; }
.step { position: relative; padding: 26px 26px 26px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step .num {
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold); opacity: .85; line-height: 1;
}
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---- content pages ---- */
.page-head { padding: 56px 0 8px; background: radial-gradient(900px 340px at 50% -120px, var(--felt2), transparent); }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-bright); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.tldr {
  border-left: 3px solid var(--gold); background: rgba(217, 180, 91, .06);
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 26px 0;
}
.tldr .label { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 700; display: block; margin-bottom: 4px; }
.tldr p { margin: 0; }

/* playing cards */
.pcards { display: inline-flex; gap: 4px; vertical-align: middle; }
.pcard {
  display: inline-block; background: #f7f2e6; color: #17110a; border-radius: 4px;
  font-weight: 700; font-size: .85rem; padding: 2px 6px; line-height: 1.4;
  border: 1px solid #cbbfa4; font-family: var(--sans); white-space: nowrap;
}
.pcard.r { color: #b3261e; }

/* tables */
table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold-bright); font-family: var(--serif); font-size: .95rem; white-space: nowrap; }
tr:hover td { background: rgba(255, 255, 255, .02); }
.table-scroll { overflow-x: auto; }
td .rank-no { color: var(--gold); font-family: var(--serif); font-weight: 700; }

/* FAQ */
details.faq {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  margin: 12px 0; padding: 0;
}
details.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 46px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 14px;
  color: var(--gold); font-size: 1.5rem; font-family: var(--serif);
}
details.faq[open] summary::after { content: '\2212'; }
details.faq .a { padding: 0 22px 18px; color: var(--muted); }
details.faq .a p { margin: .4em 0; }

/* CTA band */
.cta-band {
  text-align: center; margin: 60px 0 20px; padding: 54px 30px;
  background:
    radial-gradient(700px 260px at 50% 0%, var(--felt2), var(--felt));
  border: 1px solid var(--line); border-radius: 18px;
}
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

/* guide nav (prev/next) */
.guide-nav { display: flex; justify-content: space-between; gap: 14px; margin: 46px 0 10px; flex-wrap: wrap; }
.guide-nav a { font-size: .95rem; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.guide-nav a:hover { border-color: var(--gold-dim); text-decoration: none; }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 44px 0 34px; background: #060b08; }
.footer .cols { display: grid; gap: 26px; grid-template-columns: 2fr 1fr 1fr; }
.footer h4 { font-family: var(--serif); color: var(--gold-bright); font-size: .95rem; margin-bottom: 10px; }
.footer a { display: block; color: var(--muted); font-size: .9rem; margin: 5px 0; }
.footer a:hover { color: var(--ink); }
.footer .about { color: var(--muted); font-size: .9rem; max-width: 380px; }
.footer .legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: #6d7f71; font-size: .8rem; }
@media (max-width: 760px) {
  .footer .cols { grid-template-columns: 1fr; }
  .nav-links a:not(.btn-gold) { display: none; }
  .hero { padding: 60px 0 50px; }
  .hero .suits-bg { font-size: 110px; }
}

/* leaderboard */
.lb-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 6px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button {
  background: var(--panel); color: var(--muted); border: 0; padding: 9px 16px;
  font-size: .9rem; cursor: pointer; font-family: var(--sans); border-right: 1px solid var(--line);
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #1a1305; font-weight: 700; }
.lb-status { color: var(--muted); font-size: .9rem; margin: 14px 0; }
table.lb td, table.lb th { white-space: nowrap; }
table.lb .num { text-align: right; font-variant-numeric: tabular-nums; }
table.lb td.metric-on, table.lb th.metric-on { color: var(--gold-bright); font-weight: 700; }
table.lb .rank { color: var(--gold); font-family: var(--serif); font-weight: 700; width: 2.2em; }
table.lb .who { cursor: pointer; }
table.lb tr.playerrow { cursor: pointer; }
table.lb tr.playerrow:hover td { background: rgba(217, 180, 91, .05); }
table.lb .ava { font-size: 1.15rem; margin-right: 8px; }
.neg { color: var(--red); }
.pos { color: var(--green); }
tr.detail > td { background: var(--panel2); padding: 18px 22px; }
.pstats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pstat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.pstat .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pstat .v { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.pjoined { color: var(--muted); font-size: .85rem; margin-top: 12px; }

/* homepage top-players teaser */
#top-players[hidden] { display: none; }
.tp-list { display: grid; gap: 10px; max-width: 640px; margin: 0 auto; }
.tp-row {
  display: flex; align-items: center; gap: 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px;
}
.tp-row .rank { font-family: var(--serif); color: var(--gold); font-weight: 700; width: 1.6em; }
.tp-row .ava { font-size: 1.3rem; }
.tp-row .name { font-weight: 600; }
.tp-row .net { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
