/* Local Poker website. One stylesheet for every page; no build step. */

@font-face {
  font-family: "LP Serif";
  src: url("/assets/fonts/source-serif-4-display.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

/* Georgia sized to match, so the headline barely moves when the web font arrives. */
@font-face {
  font-family: "LP Serif Fallback";
  src: local("Georgia");
  size-adjust: 93%;
  ascent-override: 95%;
}

:root {
  --felt-1: #23955a;
  --felt-2: #157443;
  --felt-3: #0a4a29;
  --felt-4: #05301a;
  --cream: #fbf8f1;
  --cream-2: #f1ece1;
  --ink: #16171b;
  --ink-2: rgb(22 23 27 / 0.72);
  --ink-3: rgb(22 23 27 / 0.64);
  --red: #c4122f;
  --red-deep: #9e0e26;
  --gold: #f0c75e;
  --gold-deep: #b8892b;
  --ui: #1c1d21;
  --ui-line: rgb(255 255 255 / 0.08);
  --serif: "LP Serif", "LP Serif Fallback", ui-serif, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-card: clamp(22px, 3vw, 40px);
  --shadow-card: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 40px 80px -30px rgb(0 0 0 / 0.6), 0 10px 24px -8px rgb(0 0 0 / 0.35);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--felt-3);
  background-image:
    radial-gradient(120% 70% at 50% 0%, var(--felt-2) 0%, rgb(21 116 67 / 0) 70%),
    radial-gradient(90% 60% at 50% 100%, var(--felt-4) 0%, rgb(5 48 26 / 0) 70%);
  color: #fff;
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Felt grain: a tiny SVG noise tile over the whole page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(5 48 26 / 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 1.2rem/1 var(--serif);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18), 0 4px 10px rgb(0 0 0 / 0.3);
}

.site-nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgb(255 255 255 / 0.82);
  font: 600 0.95rem/1 var(--rounded);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav a:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 0.12); }

.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px 9px 13px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: 650 0.95rem/1 var(--rounded);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}
.header-cta svg { width: 15px; height: 15px; flex: none; }
.header-cta:hover { background: #fff; transform: translateY(-1px); }

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 8px; }
}

/* ---------- The big playing card ---------- */

.bigcard {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(88px, 8vw, 104px) clamp(20px, 5.5vw, 80px);
}

/* Corner index, like a real card: rank over suit, repeated upside down. */
.idx {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1.2em;
  color: var(--red);
  font: 800 clamp(30px, 3.6vw, 48px)/0.9 var(--serif);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
.idx i {
  font: normal 400 0.62em/1 var(--sans);
  margin-top: 0.14em;
  letter-spacing: 0;
}
.idx.tl { top: clamp(16px, 2.2vw, 28px); left: clamp(14px, 2vw, 28px); }
.idx.br { bottom: clamp(16px, 2.2vw, 28px); right: clamp(14px, 2vw, 28px); transform: rotate(180deg); }
.idx.black { color: var(--ink); }

/* ---------- Type ---------- */

.display {
  font: 800 clamp(2.75rem, 6.6vw, 5.6rem)/0.98 var(--serif);
  letter-spacing: -0.025em;
}

.h2 {
  font: 800 clamp(2.15rem, 4.6vw, 3.75rem)/1.02 var(--serif);
  letter-spacing: -0.02em;
}

.h3 {
  font: 800 clamp(1.35rem, 2vw, 1.6rem)/1.15 var(--serif);
  letter-spacing: -0.01em;
}

.sub {
  font: 600 clamp(1.15rem, 1.8vw, 1.4rem)/1.38 var(--rounded);
  color: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--red);
  font: 700 0.85rem/1 var(--rounded);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.on-felt .sub, .on-felt .lead { color: rgb(255 255 255 / 0.78); }
.on-felt .eyebrow { color: var(--gold); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
}

.body-copy p + p { margin-top: 0.9em; }
.body-copy a, .lead a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */

.store {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.6);
}
.store img { width: 168px; height: auto; }
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgb(0 0 0 / 0.65); }
.store.big img { width: 200px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  color: var(--ink-2);
  font: 600 0.98rem/1.2 var(--rounded);
}
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts li::before {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  border-radius: 50%;
  background: #2fa35e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.on-felt .facts { color: rgb(255 255 255 / 0.82); }

/* ---------- Phone frame (screens are real app captures) ---------- */

.phone {
  --w: 260px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.148);
  background: linear-gradient(145deg, #3a3c42, #121316 40%, #26272b);
  box-shadow:
    0 0 0 calc(var(--w) * 0.006) #4a4c52 inset,
    0 0 0 calc(var(--w) * 0.016) #0b0c0e inset,
    0 50px 70px -30px rgb(0 0 0 / 0.65),
    0 22px 34px -16px rgb(0 0 0 / 0.4);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--w) * 0.118);
  background: #0e1a14;
}
/* Dynamic Island */
.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(var(--w) * 0.054);
  left: 50%;
  width: calc(var(--w) * 0.27);
  height: calc(var(--w) * 0.078);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
/* Side button */
.phone::after {
  content: "";
  position: absolute;
  top: 24%;
  right: calc(var(--w) * -0.008);
  width: calc(var(--w) * 0.012);
  height: 10%;
  border-radius: 0 3px 3px 0;
  background: #2b2c30;
}

.tag {
  position: absolute;
  z-index: 3;
  top: calc(var(--w) * -0.075);
  left: 50%;
  translate: -50% 0;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 700 clamp(0.85rem, 1.4vw, 1.05rem)/1 var(--rounded);
  box-shadow: 0 6px 14px -4px rgb(158 14 38 / 0.6);
}

/* ---------- Hero ---------- */

.hero { padding: clamp(18px, 3vw, 36px) 0 clamp(40px, 6vw, 72px); overflow-x: clip; }

.hero-card {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-copy { max-width: 620px; position: relative; z-index: 2; }
.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgb(22 23 27 / 0.06);
  color: var(--ink-2);
  font: 600 0.95rem/1 var(--rounded);
}
.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fa35e;
  box-shadow: 0 0 0 3px rgb(47 163 94 / 0.18);
}
.hero-copy .display { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 30px; max-width: 34em; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.hero-phones {
  position: relative;
  height: clamp(400px, 112vw, 520px);
  margin-inline: calc(clamp(20px, 5.5vw, 80px) * -1);
}

.hero-phones .phone {
  position: absolute;
  left: 50%;
  bottom: -14%;
}

.hero-phones .p-center { --w: clamp(200px, 56vw, 250px); z-index: 2; translate: -50% 0; }
.hero-phones .p-left, .hero-phones .p-right { --w: clamp(168px, 46vw, 214px); bottom: -22%; }
.hero-phones .p-left { translate: -112% 0; rotate: -9deg; }
.hero-phones .p-right { translate: 12% 0; rotate: 9deg; }
.hero-phones .p-left .tag { rotate: 6deg; }
.hero-phones .p-right .tag { rotate: -6deg; }

/* Soft red glow behind the phones, like the App Store slides. */
.hero-phones::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: min(560px, 120%);
  aspect-ratio: 1;
  translate: -50% 30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(196 18 47 / 0.12), rgb(196 18 47 / 0));
}

@media (min-width: 960px) {
  .hero-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: min(700px, calc(100vh - 110px));
    padding-top: clamp(104px, 9vw, 132px);
    padding-bottom: clamp(72px, 7vw, 96px);
    padding-right: clamp(24px, 3vw, 40px);
  }
  .hero-phones { height: 100%; min-height: 540px; margin: 0; align-self: stretch; }
  .hero-phones .phone { bottom: auto; top: 50%; }
  .hero-phones .p-center { --w: 262px; translate: -50% -46%; }
  .hero-phones .p-left, .hero-phones .p-right { --w: 216px; }
  .hero-phones .p-left { translate: -114% -38%; }
  .hero-phones .p-right { translate: 14% -38%; }
  .hero-phones::before { bottom: 50%; translate: -50% 50%; }
}

/* Floating chips */
.chip {
  --s: 64px;
  position: absolute;
  z-index: 3;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--red) 0 54%, rgb(0 0 0 / 0) 54.5%),
    repeating-conic-gradient(from 8deg, #fff 0 22deg, var(--red) 22deg 60deg);
  box-shadow: 0 0 0 calc(var(--s) * 0.05) var(--red-deep) inset, 0 10px 18px -6px rgb(0 0 0 / 0.5);
}
.chip::before {
  content: "";
  position: absolute;
  inset: 24%;
  border: calc(var(--s) * 0.035) dashed rgb(255 255 255 / 0.85);
  border-radius: 50%;
}
.chip::after {
  content: "\2665\FE0E";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font: calc(var(--s) * 0.3) / 1 var(--sans);
}
.chip.gold {
  background:
    radial-gradient(circle, #e2ad3a 0 54%, rgb(0 0 0 / 0) 54.5%),
    repeating-conic-gradient(from 8deg, #fff 0 22deg, #e2ad3a 22deg 60deg);
  box-shadow: 0 0 0 calc(var(--s) * 0.05) #b8892b inset, 0 10px 18px -6px rgb(0 0 0 / 0.5);
}
.chip.ink {
  background:
    radial-gradient(circle, #23252b 0 54%, rgb(0 0 0 / 0) 54.5%),
    repeating-conic-gradient(from 8deg, #fff 0 22deg, #23252b 22deg 60deg);
  box-shadow: 0 0 0 calc(var(--s) * 0.05) #000 inset, 0 10px 18px -6px rgb(0 0 0 / 0.5);
}

.hero-phones .chip { display: none; }

@media (min-width: 960px) {
  .hero-phones .chip { display: block; }
  .hero-phones .c1 { --s: 70px; right: -2%; top: 3%; rotate: 18deg; }
  .hero-phones .c2 { --s: 54px; left: -3%; bottom: -2%; rotate: -12deg; }
}

/* On load the three phones are dealt from one stack and fan out. */
@media (prefers-reduced-motion: no-preference) {
  .hero-phones .phone { animation: deal-center 1s var(--ease-out) both 0.15s; }
  .hero-phones .p-left { animation-name: deal-left; animation-delay: 0.45s; }
  .hero-phones .p-right { animation-name: deal-right; animation-delay: 0.55s; }
  .hero-phones .tag { animation: tag-pop 0.5s var(--ease-spring) both 1.25s; }
  .hero-phones .p-center .tag { animation-delay: 1.05s; }
  .hero-phones .chip { animation: chip-in 0.7s var(--ease-spring) both 1.1s, bob 6s ease-in-out infinite 1.8s; }
  .hero-phones .c2 { animation-delay: 1.25s, 2.4s; }
}

@keyframes deal-center { from { transform: translateY(180px) scale(0.94); } }
@keyframes deal-left { from { opacity: 0; transform: translateX(46%) translateY(120px) rotate(9deg); } }
@keyframes deal-right { from { opacity: 0; transform: translateX(-46%) translateY(120px) rotate(-9deg); } }
@keyframes tag-pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(-40px) scale(0.6); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.tight { padding-top: clamp(24px, 4vw, 48px); }

.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head .h2 { margin-bottom: 16px; }
.section-head .lead { margin-inline: auto; max-width: 40em; }
.section-head.left { margin-left: 0; text-align: left; }

.on-felt { color: #fff; }

/* ---------- How it works: three cards that flip over ---------- */

.steps {
  display: grid;
  gap: 18px;
  list-style: none;
  counter-reset: step;
  perspective: 1400px;
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .flip .face { min-height: 230px; padding: 76px 26px 30px; }
}

.flip { position: relative; }
.flip-in {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out);
}
.flip .face, .flip .back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 22px;
}
.flip .face {
  position: relative;
  height: 100%;
  padding: 80px 24px 26px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 50px -28px rgb(0 0 0 / 0.65), 0 6px 14px -6px rgb(0 0 0 / 0.3);
}
.flip .face .idx { font-size: 34px; top: 18px; left: 18px; }
.flip .face .h3 { margin-bottom: 10px; }
.flip .face p { color: var(--ink-2); }
.flip .back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background:
    linear-gradient(var(--red), var(--red)) padding-box,
    var(--cream);
  border: 10px solid var(--cream);
  box-shadow: 0 30px 50px -28px rgb(0 0 0 / 0.65);
  overflow: hidden;
}
.flip .back::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.22) 0 2px, rgb(0 0 0 / 0) 2px 14px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.22) 0 2px, rgb(0 0 0 / 0) 2px 14px);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.5);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14) inset, 0 1px 0 rgb(255 255 255 / 0.12) inset;
  color: rgb(255 255 255 / 0.88);
  font-size: 1rem;
}
.note strong { color: #fff; }
.note .ico { flex: none; font-size: 1.5rem; line-height: 1.2; }

/* ---------- Feature cards (K Q J 10 9 of hearts) ---------- */

.features { display: grid; gap: clamp(28px, 5vw, 64px); }

.feature {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
  overflow: hidden;
  padding-bottom: 0;
}

.feature-copy { max-width: 560px; }
.feature-copy .h2 { margin-bottom: 16px; }
.feature-copy .sub { margin-bottom: 18px; }
.feature-copy .body-copy { color: var(--ink-2); }

.feature-visual {
  position: relative;
  container-type: inline-size;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(440px, 118vw, 560px);
  margin-inline: calc(clamp(20px, 5.5vw, 80px) * -1);
}
.feature-visual .phone { --w: clamp(230px, 64vw, 290px); margin-top: 6px; }
.feature-visual::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(520px, 130%);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(196 18 47 / 0.1), rgb(196 18 47 / 0));
}

@media (min-width: 960px) {
  .feature { grid-template-columns: 1fr 1fr; padding-bottom: clamp(64px, 8vw, 104px); }
  .feature-visual { height: 600px; margin: calc(clamp(64px, 8vw, 104px) * -1) 0; margin-bottom: calc(clamp(64px, 8vw, 104px) * -1); align-items: center; }
  .feature-visual .phone { --w: 300px; margin-top: 140px; }
  .feature.flipx .feature-copy { order: 2; }
  .feature.flipx .feature-visual { order: 1; }
}

/* Dealt-card entrance: each feature card slides in with a little tilt. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .deal { opacity: 0; transform: translateY(60px) rotate(-2.5deg); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
  .deal.flipx, .deal:nth-child(even) { transform: translateY(60px) rotate(2.5deg); }
  .deal.in { opacity: 1; transform: none; }

  .flip:not(.in) .flip-in { transform: rotateY(180deg); }
  .steps .flip:nth-child(2) .flip-in { transition-delay: 0.12s; }
  .steps .flip:nth-child(3) .flip-in { transition-delay: 0.24s; }

  .rise { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .rise.in { opacity: 1; transform: none; }
}

/* ---------- Redrawn app UI, lifted off the screen ---------- */

.ui {
  background: var(--ui);
  color: #fff;
  font-family: var(--rounded);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07) inset, 0 24px 44px -16px rgb(0 0 0 / 0.6), 0 8px 16px -8px rgb(0 0 0 / 0.4);
}

.callouts { position: absolute; inset: 0; pointer-events: none; }

.av {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  box-shadow: 0 0 0 0.16em #fff;
  font: 700 1.25em/1 var(--rounded);
  color: #fff;
}
.av.emoji { font-size: 1em; }
.av.emoji span { font-size: 1.45em; line-height: 1; }
.av.mint { background: linear-gradient(160deg, #c7f0dc, #8fd3b4); }
.av.sky { background: linear-gradient(160deg, #cfe6ff, #8bbcf0); }
.av.lilac { background: linear-gradient(160deg, #ecd8ff, #c39ae8); }
.av.peach { background: linear-gradient(160deg, #ffe0c2, #f5a86b); }
.av.lime { background: linear-gradient(160deg, #f4f7c2, #cfe07a); }

/* Join stickers */
.sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.4em 0.55em 0.4em 0.4em;
  border-radius: 999px;
  font-size: clamp(14px, 4.2cqw, 19px);
  font-weight: 700;
  white-space: nowrap;
}
.sticker b { font-size: 1.15em; }
.check {
  display: grid;
  place-items: center;
  width: 1.65em;
  height: 1.65em;
  border-radius: 50%;
  background: #34c759;
}
.check svg { width: 62%; }
.sticker.s1 { left: 6%; top: 58%; rotate: -4deg; }
.sticker.s2 { left: 18%; top: 71%; rotate: 2deg; }
.sticker.s3 { left: 4%; top: 84%; rotate: -2deg; }

@media (min-width: 960px) {
  .sticker.s1 { left: 0; top: 46%; }
  .sticker.s2 { left: 12%; top: 60%; }
  .sticker.s3 { left: -2%; top: 74%; }
}

/* Bot cards */
.bot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.65em 1.1em 0.65em 0.65em;
  border-radius: 1.2em;
  font-size: clamp(13px, 3.9cqw, 17px);
}
.bot strong { display: flex; align-items: center; gap: 0.4em; font-size: 1.25em; line-height: 1.1; }
.bot strong small { padding: 0.2em 0.45em; border-radius: 0.4em; background: rgb(255 255 255 / 0.16); font-size: 0.55em; letter-spacing: 0.04em; }
.bot span.line { display: block; color: rgb(255 255 255 / 0.78); font-weight: 500; }
.bot .av { font-size: 1.05em; }
.bot.b1 { left: 4%; top: 52%; rotate: -3deg; }
.bot.b2 { right: 3%; top: 66%; rotate: 2.5deg; }
.bot.b3 { left: 6%; top: 80%; rotate: -1.5deg; }
.av.blue { background: #3e8ef7; }
.av.green { background: #30a46c; }
.av.amber { background: #f5a524; }

@media (min-width: 960px) {
  .bot.b1 { left: 2%; top: 44%; }
  .bot.b2 { right: 0; top: 58%; }
  .bot.b3 { left: 4%; top: 72%; }
}

/* Leaderboard */
.board {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(92%, 420px);
  translate: -50% 0;
  padding: 0.5em;
  border-radius: 1.3em;
  font-size: clamp(13px, 3.9cqw, 17px);
  list-style: none;
}
.board li {
  display: grid;
  grid-template-columns: 1.6em auto 1fr auto;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 0.7em;
  border-radius: 0.9em;
}
.board li:first-child { background: rgb(240 199 94 / 0.16); }
.board .rank { text-align: center; color: rgb(255 255 255 / 0.6); font-weight: 700; font-size: 1.1em; }
.board .who b { display: block; font-size: 1.2em; line-height: 1.1; }
.board .who small { color: rgb(255 255 255 / 0.62); font-size: 0.85em; }
.board .pts { color: var(--gold); font-weight: 800; font-size: 1.35em; font-variant-numeric: tabular-nums; }
.board .av { font-size: 0.95em; }

@media (min-width: 960px) { .board { top: 52%; } }

/* Emoji bar + a 🔥 flying to Sam */
.emoji-bar {
  position: absolute;
  left: 50%;
  bottom: 2.5%;
  translate: -50% 0;
  display: flex;
  gap: 0.15em;
  padding: 0.3em;
  border-radius: 999px;
  font-size: clamp(22px, 7.4cqw, 32px);
  line-height: 1;
}
.emoji-bar span { display: grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; }
.emoji-bar .on { background: rgb(240 199 94 / 0.2); box-shadow: 0 0 0 2px var(--gold); }

.fly {
  --dx: 0px;
  --dy: 0px;
  position: absolute;
  left: 50%;
  top: 88%;
  font-size: clamp(24px, 8cqw, 36px);
  line-height: 1;
  opacity: 0;
}
.fly .fx, .fly .fy { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .in .fly { animation: fly-fade 2.8s ease-in-out infinite 0.6s; }
  .in .fly .fx { animation: fly-x 2.8s linear infinite 0.6s; }
  .in .fly .fy { animation: fly-y 2.8s ease-out infinite 0.6s; }
  .in .emoji-bar .on { animation: tap 2.8s ease-in-out infinite 0.6s; }
}

@keyframes fly-x { 0% { transform: translateX(-50%); } 50%, 100% { transform: translateX(calc(-50% + var(--dx))); } }
@keyframes fly-y {
  0% { transform: translateY(-50%) scale(0.6); }
  28% { transform: translateY(calc(-50% + var(--dy) - 90px)) scale(1); animation-timing-function: ease-in; }
  50% { transform: translateY(calc(-50% + var(--dy))) scale(1.1); }
  62%, 100% { transform: translateY(calc(-50% + var(--dy))) scale(1.7); }
}
@keyframes fly-fade { 0% { opacity: 0; } 6% { opacity: 1; } 62% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes tap { 0%, 100% { transform: scale(1); } 4% { transform: scale(0.86); } 10% { transform: scale(1.06); } 16% { transform: scale(1); } }

/* Live odds card */
.odds {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(94%, 440px);
  translate: -50% 0;
  padding: 0.9em 1em 0.4em;
  border-radius: 1.3em;
  font-size: clamp(13px, 3.9cqw, 17px);
}
.odds header { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.5em; color: rgb(255 255 255 / 0.7); font-weight: 600; font-size: 0.92em; }
.odds .pill-red { padding: 0.25em 0.6em; border-radius: 999px; background: #e03a3a; color: #fff; font-weight: 800; font-size: 0.85em; letter-spacing: 0.04em; }
.odds .row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 0.75em; padding: 0.55em 0; }
.odds .row + .row { border-top: 1px solid var(--ui-line); }
.odds .row b { font-size: 1.2em; }
.odds .pct {
  min-width: 3.6em;
  padding: 0.1em 0.35em;
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  font-size: 1.85em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.4s, color 0.4s;
}
.odds .fav .pct { background: var(--gold); color: #1d1a0e; }
.odds .av { font-size: 0.9em; }
.hand { display: flex; }
.hand .pc { font-size: 0.95em; }
.hand .pc + .pc { margin-left: -0.9em; rotate: 6deg; }
.hand .pc:first-child { rotate: -4deg; }

@media (min-width: 960px) { .odds { top: 50%; } }

/* Callout entrance */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .pop { opacity: 0; scale: 0.7; transition: opacity 0.4s var(--ease-out), scale 0.55s var(--ease-spring); }
  .in .pop { opacity: 1; scale: 1; }
  .in .pop:nth-child(2) { transition-delay: 0.35s; }
  .in .pop:nth-child(3) { transition-delay: 0.7s; }
  .in .pop:nth-child(4) { transition-delay: 1.05s; }
  .in .pop.d0 { transition-delay: 0.25s; }
}

/* ---------- Mini playing cards ---------- */

.pc {
  position: relative;
  display: inline-block;
  flex: none;
  width: 2.5em;
  aspect-ratio: 5 / 7;
  border-radius: 0.3em;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 3px 8px -2px rgb(0 0 0 / 0.35);
  font-family: var(--serif);
  line-height: 1;
  vertical-align: middle;
}
.pc b { position: absolute; top: 0.16em; left: 0.22em; font-weight: 800; font-size: 0.95em; letter-spacing: -0.05em; }
.pc i { position: absolute; left: 50%; top: 60%; translate: -50% -50%; font: normal 1.35em/1 var(--sans); }
.pc.r { color: var(--red); }

/* ---------- The dealer grid ---------- */

.tiles {
  display: grid;
  gap: 14px;
  list-style: none;
}
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.tile {
  position: relative;
  padding: 22px 22px 22px 64px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.05));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.13) inset, 0 1px 0 rgb(255 255 255 / 0.16) inset, 0 20px 40px -28px rgb(0 0 0 / 0.6);
}
.tile h3 { font: 700 1.12rem/1.25 var(--rounded); margin-bottom: 4px; }
.tile p { color: rgb(255 255 255 / 0.74); font-size: 0.98rem; line-height: 1.5; }
.tile::before {
  content: attr(data-suit);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font: 1.15rem/1 var(--sans);
  box-shadow: 0 4px 10px -4px rgb(0 0 0 / 0.5);
}
.tile.r::before { color: var(--red); }

.more-links { margin-top: clamp(24px, 3vw, 36px); text-align: center; color: rgb(255 255 255 / 0.8); }
.more-links a { color: #fff; text-underline-offset: 3px; }

/* ---------- Anywhere ---------- */

.places {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  max-width: 860px;
  margin: 0 auto;
}
.ipad-wrap .places { justify-content: flex-start; margin: 0; }
.places li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.09);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14) inset;
  font: 600 1rem/1 var(--rounded);
}
.places li span { font-size: 1.2rem; }

/* ---------- iPad ---------- */

.ipad-wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .ipad-wrap { grid-template-columns: 0.9fr 1.1fr; } }

.ipad {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  padding: 2.6%;
  border-radius: 6.5% / 4.9%;
  background: linear-gradient(145deg, #3a3c42, #121316 40%, #26272b);
  box-shadow: 0 0 0 2px #4a4c52 inset, 0 0 0 6px #0b0c0e inset, 0 50px 80px -34px rgb(0 0 0 / 0.7);
}
.ipad img { width: 100%; height: auto; border-radius: 3.6% / 2.7%; }

/* ---------- Comparison table ---------- */

.table-scroll { overflow-x: auto; margin-inline: -8px; padding-inline: 8px; }

.compare {
  width: 100%;
  min-width: 540px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}
.compare caption { text-align: left; margin-bottom: 14px; color: var(--ink-2); font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 12px; text-align: center; vertical-align: middle; border-bottom: 1px solid rgb(22 23 27 / 0.09); }
.compare thead th { font: 700 0.98rem/1.25 var(--rounded); color: var(--ink-2); vertical-align: bottom; }
.compare thead th.us { color: var(--ink); }
.compare tbody th { text-align: left; font-weight: 600; }
.compare td.us { background: rgb(240 199 94 / 0.16); font-weight: 600; }
.compare thead th.us { background: rgb(240 199 94 / 0.16); border-radius: 14px 14px 0 0; }
.compare tbody tr:last-child td.us { border-radius: 0 0 14px 14px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.y, .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 800 0.9rem/1 var(--sans); vertical-align: middle; }
.y { background: #2fa35e; color: #fff; }
.n { background: rgb(22 23 27 / 0.08); color: var(--ink-3); }
.compare small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 0.82rem; font-weight: 500; }

/* On phones the four columns fit without sideways scrolling. */
@media (max-width: 600px) {
  .compare { min-width: 0; font-size: 0.9rem; }
  .compare th, .compare td { padding: 12px 5px; }
  .compare thead th { font-size: 0.8rem; }
  .compare tbody th { width: 34%; }
  .compare small { font-size: 0.72rem; }
  .y, .n { width: 24px; height: 24px; }
}

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid rgb(22 23 27 / 0.1); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font: 700 clamp(1.08rem, 1.6vw, 1.22rem)/1.3 var(--rounded);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%2316171b' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: rotate 0.3s var(--ease-out), background-color 0.2s;
}
.faq details[open] summary::after { rotate: 45deg; background-color: var(--gold); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }
.faq .answer p + p { margin-top: 0.7em; }
.faq .answer a { color: var(--ink); }

/* ---------- Final call to action: a royal flush fans out ---------- */

.finale { text-align: center; }
.finale .h2 { margin-bottom: 14px; }
.finale .lead { margin: 0 auto 30px; }
.finale .facts { justify-content: center; margin-top: 22px; }

.fan {
  position: relative;
  height: clamp(150px, 30vw, 220px);
  margin: 0 auto clamp(20px, 4vw, 36px);
  font-size: clamp(30px, 6vw, 46px);
}
.fan .pc {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.6em;
  margin-left: -1.3em;
  transform-origin: 50% 120%;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 14px 24px -10px rgb(0 0 0 / 0.55);
  transition: rotate 0.9s var(--ease-spring), translate 0.9s var(--ease-spring);
}
.fan .pc b { font-size: 0.75em; }
.fan .pc i { font-size: 1.2em; }
.fan .pc:nth-child(1) { rotate: -24deg; translate: -0.4em 0.25em; }
.fan .pc:nth-child(2) { rotate: -12deg; translate: -0.2em 0.05em; }
.fan .pc:nth-child(3) { rotate: 0deg; }
.fan .pc:nth-child(4) { rotate: 12deg; translate: 0.2em 0.05em; }
.fan .pc:nth-child(5) { rotate: 24deg; translate: 0.4em 0.25em; }

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .fan:not(.in) .pc { rotate: 0deg; translate: 0 0.4em; }
  .fan .pc:nth-child(2), .fan .pc:nth-child(4) { transition-delay: 0.06s; }
  .fan .pc:nth-child(1), .fan .pc:nth-child(5) { transition-delay: 0.12s; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 40px;
  background: rgb(0 0 0 / 0.22);
  border-top: 1px solid rgb(255 255 255 / 0.08);
  color: rgb(255 255 255 / 0.72);
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h2 { margin-bottom: 12px; color: #fff; font: 700 0.85rem/1 var(--rounded); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-about p { margin-top: 12px; max-width: 30em; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 0.08); font-size: 0.82rem; color: rgb(255 255 255 / 0.5); }
.legal p + p { margin-top: 6px; }

/* ---------- Article pages (guides, rules, support, privacy) ---------- */

.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 40px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 18px; color: rgb(255 255 255 / 0.65); font: 600 0.9rem/1.2 var(--rounded); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero .display { font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin-bottom: 18px; max-width: 16em; }
.page-hero .lead { color: rgb(255 255 255 / 0.8); max-width: 40em; }
.byline { margin-top: 18px; color: rgb(255 255 255 / 0.6); font: 600 0.92rem/1.4 var(--rounded); }

.article {
  padding-top: clamp(8px, 2vw, 24px);
  padding-bottom: clamp(56px, 7vw, 88px);
}
.prose { max-width: 720px; margin-inline: auto; font-size: 1.08rem; line-height: 1.7; color: #2a2b30; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.2em; font: 800 clamp(1.7rem, 3vw, 2.2rem)/1.12 var(--serif); letter-spacing: -0.015em; color: var(--ink); }
.prose h3 { margin-top: 1.8em; font: 700 1.2rem/1.3 var(--rounded); color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose .answer-box {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--cream-2);
  box-shadow: 0 0 0 1px rgb(22 23 27 / 0.06) inset;
}
.prose .answer-box p + p { margin-top: 0.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid rgb(22 23 27 / 0.1); text-align: left; vertical-align: top; }
.prose thead th { font-family: var(--rounded); color: var(--ink-2); }
.prose .table-scroll { margin-top: 1.2em; }
.prose .cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 2.4em;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--felt-3);
  color: #fff;
}
.prose .cta-box p { font: 700 1.15rem/1.35 var(--rounded); max-width: 22em; }
.prose .updated { color: var(--ink-3); font-size: 0.92rem; }

/* Hand rankings */
.ranks { list-style: none; padding: 0 !important; display: grid; gap: 14px; counter-reset: rank; }
.ranks li { margin: 0 !important; display: grid; gap: 10px 18px; padding: 18px; border-radius: 18px; background: var(--cream-2); counter-increment: rank; }
@media (min-width: 640px) { .ranks li { grid-template-columns: 1fr auto; align-items: center; } }
.ranks h3 { margin: 0 !important; display: flex; align-items: baseline; gap: 10px; }
.ranks h3::before { content: counter(rank); color: var(--red); font: 800 1.4rem/1 var(--serif); }
.ranks p { margin-top: 4px !important; font-size: 0.98rem; color: var(--ink-2); }
.ranks .hand { gap: 4px; font-size: 18px; }
.ranks .hand .pc { margin: 0; rotate: 0deg; }
.ranks .hand .pc.dim { opacity: 0.38; }
.ranks .odds-note { font: 600 0.85rem/1.3 var(--rounded); color: var(--ink-3); margin-top: 6px !important; }

/* ---------- 404 ---------- */

.misdeal { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.misdeal .bigcard { max-width: 560px; margin-inline: auto; }
.misdeal .lead { margin: 14px auto 26px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 700 1rem/1 var(--rounded);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.lead.spaced { margin: 16px 0 26px; }
