/* ============================================================
   Cucaroochoo, redesigned from scratch.
   Cinematic poker noir: deep black, rich felt, gold as money.
   One idea per page. The hero is the table.
   ============================================================ */
:root {
  --bg: #07090d;
  --bg-2: #0b0e14;
  --card: #10141c;
  --card-2: #151b27;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #e8b64c;
  --gold-2: #f6d47c;
  --gold-deep: #8a6a1f;
  --text: #f5f2ea;
  --muted: #a7aebb;
  --muted-2: #6d7482;
  --felt-1: #1d6a3c;
  --felt-2: #11402a;
  --felt-3: #0a2c1d;
  --green: #34d399;
  --red: #f87171;
  --orange: #f97316;
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

::selection { background: rgba(232, 182, 76, 0.35); color: #fff; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Cinematic atmosphere: top glow, vignette, film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1000px 480px at 50% -120px, rgba(232, 182, 76, 0.1), transparent 62%),
    radial-gradient(800px 600px at 88% 30%, rgba(29, 106, 60, 0.1), transparent 60%),
    radial-gradient(120% 90% at 50% 110%, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header.nav, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #1a1405;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(232, 182, 76, 0.35);
}
.nav-links { display: flex; gap: 24px; margin-left: 6px; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-signin { color: var(--muted); font-size: 0.94rem; font-weight: 500; }
.nav-signin:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.98rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1405;
  box-shadow: 0 8px 28px rgba(232, 182, 76, 0.3);
  position: relative;
  overflow: hidden;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(232, 182, 76, 0.42); }
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-gold:hover::after { left: 130%; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(232, 182, 76, 0.55); background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-lg { padding: 17px 38px; font-size: 1.06rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 30px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(232, 182, 76, 0.38);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(232, 182, 76, 0.07);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.015em;
  max-width: 920px;
  margin: 0 auto 24px;
}
.hero h1 .gold {
  font-style: italic;
  background: linear-gradient(115deg, var(--gold-2) 15%, #fff6dd 50%, var(--gold-2) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 8px;
}
.hero .lead strong { color: var(--text); font-weight: 650; }

/* ---------- The table ---------- */
.table-stage {
  position: relative;
  max-width: 880px;
  margin: 46px auto 0;
  perspective: 1200px;
}
.felt {
  position: relative;
  border-radius: 30px;
  padding: 36px 30px 32px;
  background:
    radial-gradient(130% 100% at 50% -10%, var(--felt-1) 0%, var(--felt-2) 46%, var(--felt-3) 100%);
  border: 1px solid rgba(232, 182, 76, 0.32);
  box-shadow:
    inset 0 0 0 7px rgba(0, 0, 0, 0.28),
    inset 0 0 90px rgba(0, 0, 0, 0.45),
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(29, 106, 60, 0.18);
  overflow: hidden;
}
.felt::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(246, 212, 124, 0.2);
  border-radius: 20px;
  pointer-events: none;
}
.felt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
}
.table-label {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.pot .chip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(var(--gold-2) 0 30deg, #c9962e 30deg 60deg);
  border: 2px dashed rgba(26, 20, 5, 0.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.pot .amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.street-label {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 10px;
}
.card-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  min-height: 108px;
}

/* Premium playing cards */
.pcard {
  width: 76px;
  height: 108px;
  background:
    linear-gradient(155deg, #ffffff 0%, #eef0f5 55%, #dfe3ec 100%);
  border-radius: 11px;
  color: #161a23;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 8px 9px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 1.02rem;
  animation: dealIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15) backwards;
  position: relative;
}
.pcard.red { color: #b4232a; }
.pcard .corner { display: flex; flex-direction: column; line-height: 1.05; align-items: flex-start; }
.pcard .corner .suit { font-size: 1.25rem; }
.pcard .corner.bottom { align-self: flex-end; transform: rotate(180deg); }
.pcard .pip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  opacity: 0.9;
  pointer-events: none;
}
@keyframes dealIn {
  from { transform: translateY(-30px) rotate(-7deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.table-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 4px 0 6px;
}
.table-actions .btn { min-width: 170px; padding: 15px 30px; font-size: 1.04rem; }
.btn-enter {
  background: linear-gradient(135deg, #3ddc97, #10b981);
  color: #04281c;
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.35);
}
.btn-enter:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(52, 211, 153, 0.48); }
.btn-fold {
  background: rgba(7, 9, 13, 0.6);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text);
  backdrop-filter: blur(4px);
}
.btn-fold:hover { border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }

.verdict {
  position: relative;
  z-index: 1;
  margin: 18px auto 0;
  max-width: 460px;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.verdict.show { opacity: 1; transform: none; }
.verdict:not(.show) { padding: 0; margin: 0 auto; }
.verdict strong { display: block; font-size: 1.06rem; margin-bottom: 3px; letter-spacing: 0.01em; }
.verdict.good {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #d3f9e6;
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.12);
}
.verdict.bad {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecdd3;
}
.verdict .why { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.next-hand {
  position: relative;
  z-index: 1;
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  visibility: hidden;
}
.next-hand:hover { color: #fff; }
.table-caption {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.82rem;
  margin-top: 18px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { text-align: center; color: var(--muted-2); font-size: 0.88rem; margin-top: 16px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* The game: three rules */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rule {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.rule:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 182, 76, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.rule .n {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-2);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.9;
}
.rule h3 { font-size: 1.22rem; margin-bottom: 10px; font-weight: 700; }
.rule p { color: var(--muted); font-size: 0.98rem; }
.rule p strong { color: var(--text); }

/* Library: honest status */
.library-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent);
}
.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  text-align: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.stat-num { font-family: var(--font-display); font-size: 3rem; color: var(--gold-2); font-weight: 700; line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.94rem; margin-top: 8px; }
.lib-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lib-card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.lib-card:hover { transform: translateY(-4px); border-color: rgba(232, 182, 76, 0.35); }
.lib-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lib-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lib-dot.live { background: var(--green); box-shadow: 0 0 12px rgba(52, 211, 153, 0.8); }
.lib-dot.progress { background: var(--gold-2); box-shadow: 0 0 12px rgba(246, 212, 124, 0.8); animation: pulseDot 1.8s ease-in-out infinite; }
.lib-dot.soon { background: var(--muted-2); }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.lib-label { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; }
.lib-state {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.lib-state.live { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.08); }
.lib-state.progress { color: var(--gold-2); border-color: rgba(232, 182, 76, 0.45); background: rgba(232, 182, 76, 0.08); }
.lib-note { color: var(--muted); font-size: 0.94rem; }

/* Edge pillars: three reasons Paid */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 182, 76, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.pillar .icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(232, 182, 76, 0.2), rgba(232, 182, 76, 0.06));
  border: 1px solid rgba(232, 182, 76, 0.38);
  color: var(--gold-2);
}
.pillar .icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.24rem; margin-bottom: 10px; font-weight: 700; }
.pillar p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.price-card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  border: 1px solid rgba(232, 182, 76, 0.55);
  box-shadow: 0 24px 70px rgba(232, 182, 76, 0.13);
  background: linear-gradient(180deg, #181d29, #0f131b);
}
.price-flag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1405;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(232, 182, 76, 0.4);
}
.price-tier { font-size: 0.84rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.price-card.featured .price-tier { color: var(--gold-2); }
.price-amount { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; line-height: 1; }
.price-amount small { font-size: 1.15rem; font-family: var(--font-body); color: var(--muted); font-weight: 500; }
.price-tagline { color: var(--muted); margin: 12px 0 26px; font-size: 1.02rem; }
.price-features { list-style: none; display: grid; gap: 13px; margin-bottom: 32px; flex: 1; }
.price-features li { color: var(--muted); font-size: 0.97rem; padding-left: 30px; position: relative; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-2);
  font-weight: 800;
}
.price-card .btn { width: 100%; }
.fineprint { text-align: center; color: var(--muted-2); font-size: 0.86rem; margin-top: 28px; }
.checkout-notice { margin-top: 14px; font-size: 0.9rem; color: var(--gold-2); text-align: center; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s ease;
  padding: 0;
}
.faq-item.open { border-color: rgba(232, 182, 76, 0.42); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 1.03rem;
  font-weight: 650;
  text-align: left;
  padding: 21px 25px;
  cursor: pointer;
}
.faq-q .plus {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
  font-size: 1.15rem;
  font-weight: 400;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: rgba(232, 182, 76, 0.14); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 25px 23px; color: var(--muted); font-size: 0.96rem; }

/* ---------- Auth ---------- */
.app-shell {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
}
.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 380px at 50% 30%, rgba(29, 106, 60, 0.16), transparent 65%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 450px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(232, 182, 76, 0.06);
}
.auth-card h1 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 8px; text-align: center; letter-spacing: -0.01em; }
.auth-card .sub { color: var(--muted); text-align: center; font-size: 0.96rem; margin-bottom: 28px; }
.auth-tabs { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.auth-tabs button {
  flex: 1; border: none; background: transparent; color: var(--muted);
  font: inherit; font-weight: 650; font-size: 0.92rem; padding: 11px; border-radius: 999px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.auth-tabs button.active { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { outline: none; border-color: rgba(232, 182, 76, 0.65); box-shadow: 0 0 0 3px rgba(232, 182, 76, 0.13); }
.auth-card .btn { width: 100%; margin-top: 10px; }
.auth-alt { text-align: center; color: var(--muted-2); font-size: 0.89rem; margin-top: 20px; }
.auth-alt a { color: var(--gold-2); font-weight: 600; }
.auth-error {
  display: none;
  background: rgba(185, 28, 28, 0.12);
  border: 1px solid rgba(185, 28, 28, 0.4);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* Trainer shell (post-auth) */
.trainer-shell { max-width: 980px; margin: 0 auto; padding: 44px 24px 100px; }
.session-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.plan-pill {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(232, 182, 76, 0.12);
  border: 1px solid rgba(232, 182, 76, 0.42);
  color: var(--gold-2);
}
.hands-left { color: var(--muted); font-size: 0.93rem; }
.trainer-placeholder {
  border: 1px dashed rgba(232, 182, 76, 0.42);
  border-radius: 22px;
  background: rgba(232, 182, 76, 0.04);
  padding: 76px 44px;
  text-align: center;
}
.trainer-placeholder h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 14px; }
.trainer-placeholder p { color: var(--muted); max-width: 580px; margin: 0 auto 10px; }

/* ---------- Final CTA ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(232, 182, 76, 0.13), transparent 70%),
    linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid rgba(232, 182, 76, 0.32);
  border-radius: 28px;
  padding: 72px 52px;
  text-align: center;
  margin: 30px 0 100px;
  overflow: hidden;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  line-height: 1.12;
}
.cta-band h2 .gold {
  font-style: italic;
  background: linear-gradient(115deg, var(--gold-2), #fff6dd, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-band p { color: var(--muted); max-width: 600px; margin: 0 auto 34px; font-size: 1.06rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-tag { color: var(--muted-2); font-size: 0.86rem; margin-top: 10px; max-width: 300px; line-height: 1.55; }
.footer-inner .links { display: flex; gap: 22px; }
.footer-inner .links a { color: var(--muted); font-size: 0.9rem; }
.footer-inner .links a:hover { color: var(--text); }
.copyright { color: var(--muted-2); font-size: 0.85rem; }

/* ---------- Scroll reveals ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-scale { transform: translateY(28px) scale(0.965); }
.js .reveal-scale.in { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lib-status { grid-template-columns: 1fr; }
  .rules, .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid-3, .price-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 60px 0 20px; }
  .section { padding: 68px 0; }
  .felt { padding: 28px 16px 26px; border-radius: 22px; }
  .pcard { width: 62px; height: 90px; font-size: 0.88rem; padding: 6px 7px; border-radius: 9px; }
  .pcard .corner .suit { font-size: 1.05rem; }
  .pcard .pip { font-size: 1.7rem; }
  .card-row { gap: 8px; min-height: 92px; }
  .table-actions { flex-direction: column; }
  .table-actions .btn { width: 100%; min-width: 0; }
  .hero-ctas .btn { width: 100%; }
  .nav-cta .nav-signin { display: none; }
  .cta-band { padding: 48px 28px; }
  .stats-row { gap: 36px; }
  .stat-num { font-size: 2.4rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .session-bar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pcard { animation: none; }
  .lib-dot.progress { animation: none; }
  .btn-gold::after { display: none; }
  body::after { display: none; }
}

/* ---------- Trainer section ---------- */
.trainer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.tcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tcard:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 182, 76, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.tcard h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.tcard h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-deep));
  margin-bottom: 16px;
}
.tcard p { color: var(--muted); font-size: 0.98rem; }

/* Session summary mock */
.session-mock {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 36px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.session-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.session-mock-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}
.session-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
  margin-bottom: 24px;
}
.session-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--text); }
.session-num.neg { color: var(--red); }
.session-label { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.grade-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
}
.grade-bar span { display: block; height: 100%; }
.g-correct { background: linear-gradient(90deg, #10b981, #34d399); }
.g-inaccurate { background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); }
.g-mistake { background: linear-gradient(90deg, #c2410c, var(--orange)); }
.g-blunder { background: linear-gradient(90deg, #b91c1c, var(--red)); }
.grade-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.grade-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: baseline;
}

/* In-place feedback: grade badges + solver lines */
.grade {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.grade-correct { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.55); background: rgba(52, 211, 153, 0.12); }
.grade-inaccurate { color: var(--gold-2); border-color: rgba(232, 182, 76, 0.55); background: rgba(232, 182, 76, 0.1); }
.grade-mistake { color: #fdba74; border-color: rgba(249, 115, 22, 0.55); background: rgba(249, 115, 22, 0.1); }
.grade-blunder { color: #fca5a5; border-color: rgba(248, 113, 113, 0.55); background: rgba(248, 113, 113, 0.1); }
.verdict .fb-lines { margin: 10px 0 4px; display: grid; gap: 5px; }
.verdict .fb-line { font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }
.verdict .fb-line strong { display: inline; font-size: 0.9rem; margin: 0; }
.verdict .fb-line .ev-cost { color: #fca5a5; font-weight: 700; }
.fb-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 26px;
  justify-content: center;
  margin-top: 14px;
}
.fb-actions .next-hand { margin: 0; visibility: hidden; }

/* ---------- Mistake heat map ---------- */
.heat-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(248, 113, 113, 0.06), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent);
}
.heatmap-scroll { overflow-x: auto; padding-bottom: 6px; }
.heatmap {
  display: grid;
  grid-template-columns: 128px repeat(4, 1fr);
  gap: 10px;
  min-width: 680px;
  max-width: 920px;
  margin: 0 auto;
}
.heat-corner { min-height: 10px; }
.heat-colhead, .heat-rowhead {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 6px;
}
.heat-rowhead { justify-content: flex-start; text-align: left; padding-left: 4px; }
.heat-cell {
  font: inherit;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 18px 8px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.5s ease;
  position: relative;
  overflow: hidden;
}
.heat-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
}
.heat-cell:hover { transform: translateY(-3px); }
.heat-cell:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.heat-cell.active { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.heat-cell.heat-0 { border-color: var(--line); }
.heat-cell.heat-1 {
  background: linear-gradient(160deg, rgba(232, 182, 76, 0.13), rgba(232, 182, 76, 0.04));
  border-color: rgba(232, 182, 76, 0.3);
}
.heat-cell.heat-2 {
  background: linear-gradient(160deg, rgba(232, 182, 76, 0.26), rgba(232, 182, 76, 0.08));
  border-color: rgba(232, 182, 76, 0.5);
}
.heat-cell.heat-3 {
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.34), rgba(249, 115, 22, 0.1));
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.16);
}
.heat-cell.heat-4 {
  background:
    radial-gradient(90% 90% at 50% 20%, rgba(248, 113, 113, 0.5), rgba(248, 113, 113, 0.14)),
    linear-gradient(160deg, rgba(248, 113, 113, 0.3), rgba(248, 113, 113, 0.08));
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 36px rgba(248, 113, 113, 0.28);
  animation: heatPulse 2.4s ease-in-out infinite;
}
@keyframes heatPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(248, 113, 113, 0.22); }
  50% { box-shadow: 0 0 48px rgba(248, 113, 113, 0.4); }
}
.heat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; position: relative; z-index: 1; }
.heat-cell.heat-4 .heat-num { color: #fecdd3; }
.heat-cell.heat-3 .heat-num { color: #fed7aa; }
.heat-sub { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; position: relative; z-index: 1; }
.heat-ev { font-size: 0.78rem; font-weight: 700; color: var(--muted); position: relative; z-index: 1; }
.heat-cell.heat-3 .heat-ev, .heat-cell.heat-4 .heat-ev { color: #fecdd3; }
.heat-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 6px;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 600;
}
.heat-scale { display: inline-flex; gap: 5px; }
.heat-scale i {
  width: 30px;
  height: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}
.heat-scale i.heat-0 { background: rgba(255, 255, 255, 0.04); }
.heat-scale i.heat-1 { background: rgba(232, 182, 76, 0.25); border-color: rgba(232, 182, 76, 0.4); }
.heat-scale i.heat-2 { background: rgba(232, 182, 76, 0.5); border-color: rgba(232, 182, 76, 0.6); }
.heat-scale i.heat-3 { background: rgba(249, 115, 22, 0.6); border-color: rgba(249, 115, 22, 0.7); }
.heat-scale i.heat-4 { background: rgba(248, 113, 113, 0.75); border-color: rgba(248, 113, 113, 0.8); }

/* Drill panel */
.drill-panel {
  max-width: 920px;
  margin: 26px auto 0;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid rgba(232, 182, 76, 0.4);
  border-radius: 20px;
  padding: 32px 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(232, 182, 76, 0.07);
  animation: drillIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes drillIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.drill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.drill-head .eyebrow { margin-bottom: 0; }
.drill-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.drill-close:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.4); }
.drill-panel h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.drill-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 14px; }
.drill-stat b { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-2); display: block; line-height: 1.1; }
.drill-stat span { font-size: 0.8rem; color: var(--muted); }
.drill-note { color: var(--muted); font-size: 0.97rem; margin-bottom: 22px; max-width: 640px; }
.drill-note strong { color: var(--text); }
.drill-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.drill-mastery { color: var(--muted-2); font-size: 0.85rem; }
.drill-mastery strong { color: var(--green); }
.drill-panel.mastered { border-color: rgba(52, 211, 153, 0.5); }
.drill-panel.mastered h3 .gold { color: var(--green); }

@media (max-width: 860px) {
  .trainer-grid { grid-template-columns: 1fr; }
  .session-mock { padding: 26px 22px; }
  .session-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .session-num { font-size: 1.9rem; }
  .fb-actions { flex-direction: column; gap: 8px; }
  .drill-panel { padding: 26px 22px; }
  .drill-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .heat-cell.heat-4 { animation: none; }
  .heat-cell { transition: none; }
  .drill-panel { animation: none; }
}
