/* Higher Variance Poker Club */

:root {
  --bg: #0b0b0a;
  --panel: #141412;
  --border: #2b2a25;
  --text: #e9e3d2;
  --dim: #9c9684;
  --gold: #c9a961;
  --green: #7c9a4e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, p, ol, dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, .reel-title {
  font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
}
h1 { font-size: clamp(3rem, 9vw, 6.2rem); color: var(--gold); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .01em; }
.lead { margin-top: 14px; max-width: 34em; color: var(--dim); }

.btn {
  display: inline-block;
  padding: 13px 22px;
  background: var(--gold);
  color: #14110a;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: 4px;
}
.btn:hover { background: #dcc07e; border-color: #dcc07e; }
.btn-plain { background: none; color: var(--gold); }
.btn-plain:hover { background: none; color: #dcc07e; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--text); text-decoration: none; padding: 6px 0; }
.nav-links a:hover { color: var(--gold); }
@media (max-width: 420px) { .nav-links { gap: 14px; } .nav { padding: 10px 14px; } }

/* hero */
.hero { padding: clamp(36px, 7vw, 90px) 0 clamp(30px, 5vw, 60px); }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(240px, 420px); gap: 40px; align-items: center; }
.hero-text { margin-top: 20px; max-width: 30em; font-size: 1.15rem; }
.hero-btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo { width: 100%; height: auto; border-radius: 50%; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-logo { order: -1; width: min(70vw, 300px); margin: 0 auto; }
}

/* the bankroll graph strip under the hero */
.graph { display: block; width: 100%; height: 110px; border-block: 1px solid var(--border); background: #0e0e0c; }

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* hands slideshow */
.reel { margin-top: 30px; }
.reel-stage {
  position: relative; overflow: hidden;
  height: clamp(420px, 68vh, 760px);
  background: #101010;
  border-block: 1px solid var(--border);
  touch-action: pan-y;
}
.slide {
  --x: 0px; --s: .62;
  position: absolute; inset: 0;
  display: grid; grid-template-rows: minmax(0, 1fr); place-items: center;
  padding: 18px 12px;
  opacity: 0; pointer-events: none;
  transform: translateX(var(--x)) scale(var(--s));
  transition: transform 1.5s ease, opacity 1.3s ease;
}
.slide[data-pos="active"] { --x: 0px; --s: 1; opacity: 1; z-index: 3; }
.slide[data-pos="next"] { --x: min(36vw, 450px); --s: .76; opacity: .22; z-index: 2; }
.slide[data-pos="prev"] { --x: calc(-1 * min(36vw, 450px)); --s: .76; opacity: .22; z-index: 2; }
.slide[data-pos="far-next"] { --x: min(62vw, 780px); }
.slide[data-pos="far-prev"] { --x: calc(-1 * min(62vw, 780px)); }
.slide.is-vanish { opacity: 0 !important; transition: opacity .35s ease; }
.slide.no-anim { transition: none !important; }
.slide-frame { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: pointer; }
.slide[data-pos^="far"] .slide-frame { pointer-events: none; }
.slide[data-pos="active"] .slide-frame { cursor: zoom-in; }
.slide-frame img {
  max-height: 100%; max-width: min(92vw, 1000px); width: auto; height: auto;
  border: 1px solid #3a3932; border-radius: 10px;
  -webkit-user-drag: none; user-select: none;
}
@media (max-width: 760px) {
  .slide[data-pos="next"] { --x: 86vw; }
  .slide[data-pos="prev"] { --x: -86vw; }
  .slide[data-pos="far-next"] { --x: 140vw; }
  .slide[data-pos="far-prev"] { --x: -140vw; }
}

.reel-progress { height: 3px; background: var(--border); }
.reel-progress i { display: block; height: 100%; width: 0; background: var(--gold); }
.reel-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 4px; }
.reel-text { min-height: 4.6em; transition: opacity .4s; }
.reel-text.is-out { opacity: 0; }
.reel-title { font-size: clamp(1.5rem, 3.6vw, 2.2rem); color: var(--gold); }
.reel-note { margin-top: 6px; color: var(--text); }
.reel-ctrl { flex: none; display: flex; align-items: center; gap: 8px; }
.reel-ctrl button { min-width: 42px; height: 42px; padding: 0 12px; background: none; border: 1px solid var(--border); border-radius: 4px; }
.reel-ctrl button:hover { border-color: var(--gold); color: var(--gold); }
.reel-count { min-width: 4.2em; text-align: center; color: var(--dim); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .reel-bar { flex-direction: column; gap: 10px; }
  .reel-text { min-height: 5.6em; }
}

/* games */
.facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.facts > div:first-child { border-top: 1px solid var(--border); }
.facts dt { color: var(--dim); }
.facts dd { text-align: right; }

/* join */
.steps { margin-top: 18px; padding-left: 1.3em; }
.steps li { padding: 7px 0 7px 4px; }
.steps li::marker { color: var(--gold); font-weight: 700; }
.ids { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 8px 22px; }
.id-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 16px 0; }
.id-row + .id-row { border-top: 1px solid var(--border); }
.id-row[hidden] { display: none; }
.id-label { grid-column: 1 / -1; color: var(--dim); font-size: .9rem; }
.id-value { font: 700 clamp(1.6rem, 5vw, 2.3rem)/1.2 ui-monospace, Consolas, Menlo, monospace; color: var(--gold); overflow-wrap: anywhere; }
.id-row.is-empty .id-value { font: inherit; color: var(--dim); }
.copy { padding: 8px 14px; background: none; border: 1px solid var(--border); border-radius: 4px; }
.copy:hover { border-color: var(--gold); color: var(--gold); }
.id-row.is-empty .copy { display: none; }
.ids-contact { padding: 14px 0; border-top: 1px solid var(--border); color: var(--dim); }

.footer { padding: 26px 0 34px; border-top: 1px solid var(--border); color: var(--dim); font-size: .92rem; }

/* full size view of a hand */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .93); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 40px); border-radius: 8px; }
.lightbox.is-tall { display: block; overflow-y: auto; overscroll-behavior: contain; padding: 20px 10px; }
.lightbox.is-tall img { width: min(100%, 640px); max-height: none; margin: 0 auto; }
.lightbox-close { position: fixed; top: 12px; right: 14px; width: 44px; height: 44px; background: #1c1c19; border: 1px solid var(--border); border-radius: 4px; font-size: 1.6rem; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition-duration: .3s; }
}
