:root {
  --black: #050505;
  --black-soft: #0b0b0d;
  --charcoal: #17171a;
  --red: #8f1f2d;
  --red-dark: #561019;
  --gold: #c8a24a;
  --gold-bright: #f2d27a;
  --gold-soft: #a88537;
  --ivory: #f7f1e3;
  --muted: #cfc0a2;
  --green: #0e3b2e;
  --green-light: #14513d;
  --steel: #81909a;
  --line: rgba(247, 241, 227, 0.14);
  --line-gold: rgba(242, 210, 122, 0.34);
  --glass: rgba(247, 241, 227, 0.055);
  --surface: rgba(5, 5, 5, 0.5);
  --surface-soft: rgba(247, 241, 227, 0.045);
  --surface-strong: rgba(5, 5, 5, 0.72);
  --card-border: rgba(242, 210, 122, 0.24);
  --card-border-hover: rgba(242, 210, 122, 0.52);
  --gold-line: linear-gradient(90deg, rgba(242, 210, 122, 0.72), transparent);
  --surface-grid:
    linear-gradient(90deg, rgba(247, 241, 227, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(247, 241, 227, 0.022) 1px, transparent 1px);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 22px 58px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  background: #070707;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 20% 0%, rgba(200, 162, 74, 0.12), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(14, 59, 46, 0.28), transparent 28rem),
    linear-gradient(135deg, #050505 0%, #0b0b0d 48%, #07110d 100%);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--gold-bright); text-underline-offset: 0.2em; }
a:hover { color: var(--ivory); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }

h1, h2, h3 { margin: 0 0 0.65rem; color: var(--ivory); line-height: 1.08; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; }
h1 { max-width: 820px; font-size: clamp(2.7rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.32rem; letter-spacing: 0; }
p { margin: 0 0 1rem; color: var(--muted); }
main { overflow: hidden; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: #130b04;
  border-radius: 6px;
  background: var(--gold-bright);
  font-weight: 900;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(14px);
}

.site-header .button {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ivory);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.46));
}

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
}

.nav-primary-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-nav-intro,
.mobile-nav-groups {
  display: none;
}

.site-nav a,
.nav-dropdown summary {
  color: var(--ivory);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-dropdown summary:hover { color: var(--gold-bright); }

.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.nav-pill {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(241, 200, 106, 0.38);
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.07);
  white-space: nowrap;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-dropdown summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 0.55rem;
  border: 1px solid rgba(241, 200, 106, 0.32);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown[open] .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
}

.dropdown-menu a:hover,
.dropdown-menu a[aria-current="page"] {
  background: rgba(255, 247, 223, 0.08);
}

.network-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.35rem;
  border: 1px solid rgba(241, 200, 106, 0.28);
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.06);
  white-space: nowrap;
}

.network-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(241, 200, 106, 0.28), 0 8px 16px rgba(0, 0, 0, 0.28);
}

.nav-toggle {
  order: 4;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 247, 223, 0.08);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ivory);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 74px);
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.hero-copy { max-width: 690px; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero h1 { max-width: 760px; font-size: clamp(2.25rem, 5vw, 4.35rem); }
.eyebrow { margin-bottom: 0.8rem; color: var(--gold-bright); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.button-row, .inline-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

.hero-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 760px;
  margin-top: 1.25rem;
}

.hero-paths a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.3rem 0.65rem;
  align-items: center;
  min-height: 104px;
  padding: 0.85rem;
  color: var(--ivory);
  border: 1px solid rgba(241, 200, 106, 0.32);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.34);
  text-decoration: none;
}

.hero-paths a:hover {
  border-color: rgba(241, 200, 106, 0.66);
  background: rgba(255, 247, 223, 0.08);
}

.path-card-icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 38px;
  height: 52px;
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ivory);
  box-shadow: 0 9px 14px rgba(0, 0, 0, 0.28), inset 0 0 0 3px rgba(214, 167, 67, 0.12);
  font-weight: 800;
}

.hero-paths strong {
  line-height: 1.15;
}

.hero-paths small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.86rem 1.32rem;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -35%;
  z-index: -1;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  opacity: 0;
  transform: skewX(-18deg);
}

.button:hover::after {
  animation: button-sweep 760ms ease;
}

.button-primary {
  color: #120d04;
  border-color: rgba(255, 239, 175, 0.95);
  background:
    linear-gradient(135deg, #fff2a7, var(--gold-bright) 38%, var(--gold) 70%, var(--gold-soft));
  box-shadow: 0 18px 42px rgba(242, 210, 122, 0.32), 0 0 0 1px rgba(255, 247, 223, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}
.button-primary:hover {
  color: #120d04;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(242, 210, 122, 0.42), 0 0 0 1px rgba(255, 247, 223, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}
.button-secondary {
  color: var(--ivory);
  border-color: rgba(242, 210, 122, 0.62);
  background:
    linear-gradient(180deg, rgba(247, 241, 227, 0.12), rgba(247, 241, 227, 0.045)),
    rgba(5, 5, 5, 0.58);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.button-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 210, 122, 0.86);
  background: rgba(247, 241, 227, 0.13);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.button-large {
  min-height: 62px;
  padding: 1rem 1.55rem;
  font-size: 1.04rem;
}

.hero-table {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(241, 200, 106, 0.42);
  border-radius: 50% 50% 8px 8px / 18% 18% 8px 8px;
  background:
    linear-gradient(90deg, rgba(255, 247, 223, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 247, 223, 0.055) 1px, transparent 1px),
    radial-gradient(circle at center, var(--green-light), var(--green) 58%, #07120d 100%);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow), inset 0 0 0 14px rgba(214, 167, 67, 0.14);
  overflow: hidden;
}

.table-felt-arc {
  position: absolute;
  inset: 13% 8% auto;
  height: 54%;
  border: 2px solid rgba(241, 200, 106, 0.36);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.hand-label {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.8rem;
  color: var(--gold-bright);
  border: 1px solid rgba(241, 200, 106, 0.4);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.54);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-row {
  position: absolute;
  top: 29%;
  left: 50%;
  width: min(350px, 76%);
  height: 230px;
  transform: translateX(-50%);
}

.playing-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 150px;
  height: 210px;
  padding: 0.95rem;
  color: #14110d;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 223, 0.94)),
    var(--ivory);
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.5), inset 0 0 0 5px rgba(214, 167, 67, 0.12);
  font-weight: 800;
}

.playing-card strong { align-self: center; color: var(--red); font-size: 4rem; }
.playing-card em { align-self: flex-end; font-style: normal; transform: rotate(180deg); }
.ace-card { top: 4%; left: 6%; transform: rotate(-8deg); }
.face-card { right: 6%; bottom: 2%; transform: rotate(9deg); }

.score-badge {
  position: absolute;
  right: 12%;
  top: 22%;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: #170d05;
  border: 4px solid rgba(255, 247, 223, 0.82);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright) 0 42%, var(--gold) 43% 62%, #8e641e 63% 100%);
  box-shadow: 0 15px 26px rgba(0, 0, 0, 0.45);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
}

.chip-rack {
  position: absolute;
  right: 10%;
  bottom: 12%;
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
}

.chip {
  display: block;
  width: 58px;
  height: 58px;
  border: 6px dashed rgba(255, 247, 223, 0.9);
  border-radius: 50%;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.42), inset 0 0 0 9px rgba(7, 7, 7, 0.12);
}

.chip-red { background: radial-gradient(circle, #c92e38 0 34%, var(--red) 35% 100%); }
.chip-gold { transform: translateY(-14px); background: radial-gradient(circle, #ffe08a 0 34%, var(--gold) 35% 100%); }
.chip-ivory { transform: translateY(-24px); background: radial-gradient(circle, #ffffff 0 34%, #d8cfb7 35% 100%); }
.chip-green { transform: translateY(-7px); background: radial-gradient(circle, #2b9a70 0 34%, var(--green-light) 35% 100%); }

.section, .content-layout, .content-panel.narrow {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.compact-section { padding-top: 0; padding-bottom: clamp(2rem, 4vw, 3rem); }
.section-heading {
  position: relative;
  max-width: 780px;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.section-heading h2::after {
  content: "";
  display: block;
  width: min(5.5rem, 42vw);
  height: 1px;
  margin-top: 0.72rem;
  background: var(--gold-line);
}

.disclaimer-box {
  padding: 1rem 1.1rem;
  color: var(--ivory);
  border: 1px solid rgba(241, 200, 106, 0.45);
  border-left: 5px solid var(--gold-bright);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.72);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

.disclaimer-detail { margin: 0.55rem 0 0; }
.card-grid { display: grid; gap: 1rem; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.featured-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.guide-card, .feature-link, .side-panel, .content-panel {
  min-width: 0;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.09), transparent 12rem),
    linear-gradient(145deg, rgba(255, 247, 223, 0.07), rgba(255, 247, 223, 0.022)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.guide-card { padding: 1.35rem; }
.guide-visual {
  position: relative;
  height: 118px;
  margin-bottom: 1rem;
  border: 1px solid rgba(241, 200, 106, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 247, 223, 0.045) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(214, 167, 67, 0.18), transparent 8rem),
    rgba(7, 7, 7, 0.32);
  background-size: 22px 22px, auto, auto;
  overflow: hidden;
}

.signal-card,
.mini-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 74px;
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ivory);
  font-weight: 800;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.signal-card { left: 18px; top: 22px; transform: rotate(-8deg); }
.signal-hand {
  position: absolute;
  left: 90px;
  top: 30px;
  padding: 0.35rem 0.65rem;
  color: var(--ivory);
  border: 1px solid rgba(255, 247, 223, 0.28);
  border-radius: 999px;
  background: var(--green-light);
  font-size: 0.78rem;
  font-weight: 800;
}
.signal-arrow {
  position: absolute;
  right: 18px;
  bottom: 22px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 800;
}

.ace-mini { left: 22px; top: 25px; transform: rotate(-9deg); }
.ace-visual .mini-card:nth-child(2) { left: 72px; top: 22px; transform: rotate(8deg); }
.value-split {
  position: absolute;
  right: 20px;
  top: 37px;
  padding: 0.45rem 0.65rem;
  color: #160e05;
  border-radius: 6px;
  background: var(--gold-bright);
  font-weight: 800;
}

.mistake-total {
  position: absolute;
  left: 18px;
  top: 26px;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 247, 223, 0.25);
  border-radius: 6px;
  background: rgba(158, 31, 38, 0.72);
  font-weight: 800;
}
.mistake-mark {
  position: absolute;
  right: 32px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #160e05;
  border-radius: 50%;
  background: var(--gold-bright);
  font-size: 1.6rem;
  font-weight: 800;
}
.mistake-note {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 72px;
  margin-bottom: 1rem;
  color: var(--red);
  background: var(--ivory);
  border: 2px solid var(--gold);
  border-radius: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.table-section {
  padding: clamp(3rem, 6vw, 5rem);
  border: 1px solid rgba(241, 200, 106, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 247, 223, 0.045) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(214, 167, 67, 0.15), transparent 28rem),
    linear-gradient(135deg, rgba(13, 59, 43, 0.9), rgba(9, 23, 17, 0.92));
  background-size: 30px 30px, auto, auto;
}

.step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.step-list li { min-height: 140px; padding: 1rem; border: 1px solid rgba(255, 247, 223, 0.18); border-radius: 8px; background: rgba(7, 7, 7, 0.45); font-weight: 800; }
.step-list span { display: block; margin-bottom: 0.7rem; color: var(--gold-bright); font-size: 0.78rem; text-transform: uppercase; }

.tool-preview-section {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.tool-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.tool-preview-board,
.tool-preview-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 247, 223, 0.09), rgba(255, 247, 223, 0.03));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.tool-preview-board {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  background:
    linear-gradient(90deg, rgba(255, 247, 223, 0.04) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(214, 167, 67, 0.16), transparent 12rem),
    linear-gradient(135deg, rgba(13, 59, 43, 0.92), rgba(7, 7, 7, 0.78));
  background-size: 26px 26px, auto, auto;
}

.preview-hand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 88px;
}

.preview-hand-row span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 66px;
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ivory);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.3), inset 0 0 0 4px rgba(214, 167, 67, 0.12);
  font-weight: 800;
}

.preview-hand-row strong {
  margin-left: auto;
  padding: 0.35rem 0.65rem;
  color: #130b04;
  border-radius: 999px;
  background: var(--gold-bright);
  font-weight: 800;
}

.tool-preview-copy {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.tool-bullet-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.tool-bullet-list li {
  margin-bottom: 0.45rem;
}

.skill-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.guide-roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skill-path {
  min-height: 260px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(214, 167, 67, 0.12), transparent 10rem),
    linear-gradient(145deg, rgba(255, 247, 223, 0.09), rgba(255, 247, 223, 0.03));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.guide-roadmap article {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(214, 167, 67, 0.1), transparent 9rem),
    rgba(7, 7, 7, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.skill-path span,
.guide-roadmap span,
.lesson-panel span,
.practice-hand span,
.myth-fact span {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.skill-path ul {
  margin: 1rem 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.guide-roadmap ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.guide-roadmap li {
  margin-bottom: 0.65rem;
}

.guide-roadmap strong {
  color: var(--ivory);
}

.lesson-panel,
.practice-hand,
.myth-fact,
.page-visual {
  margin: 1rem 0 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(241, 200, 106, 0.28);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.28);
}

.lesson-panel ul,
.myth-fact ul {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.lesson-panel li,
.myth-fact li {
  margin-bottom: 0.45rem;
}

.practice-hand {
  display: grid;
  gap: 0.8rem;
}

.practice-card-row,
.page-visual-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.practice-card-row i,
.page-visual-cards i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 60px;
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ivory);
  box-shadow: 0 9px 14px rgba(0, 0, 0, 0.28), inset 0 0 0 3px rgba(214, 167, 67, 0.12);
  font-style: normal;
  font-weight: 800;
}

.page-visual {
  background:
    linear-gradient(90deg, rgba(255, 247, 223, 0.035) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(214, 167, 67, 0.14), transparent 10rem),
    rgba(7, 7, 7, 0.28);
  background-size: 24px 24px, auto, auto;
}

.feature-link { display: flex; flex-direction: column; min-height: 190px; padding: 1.2rem; color: var(--ivory); text-decoration: none; }
.feature-link span {
  align-self: flex-start;
  padding: 0.25rem 0.55rem;
  color: var(--gold-bright);
  border: 1px solid rgba(241, 200, 106, 0.28);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.28);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.feature-link strong { margin: 0.75rem 0 0.45rem; font-size: 1.1rem; }
.feature-link small { color: var(--muted); font-size: 0.92rem; }

.responsible-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.2rem);
  border: 1px solid rgba(242, 210, 122, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, rgba(143, 31, 45, 0.36), rgba(14, 14, 15, 0.92));
  background-size: 28px 28px, auto;
  box-shadow: var(--shadow-soft);
}

.network-section { max-width: 900px; text-align: center; }

.page-hero {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.4rem);
}
.page-hero::after {
  content: "";
  display: block;
  width: min(22rem, 72vw);
  height: 1px;
  margin-top: 1.25rem;
  background: linear-gradient(90deg, rgba(242, 210, 122, 0.68), transparent);
}
.page-hero h1 { max-width: 860px; font-size: clamp(2.15rem, 4.8vw, 4rem); }
.page-hero p:last-child { max-width: 760px; font-size: 1.15rem; }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
  padding-top: 1rem;
}

.content-layout > * {
  min-width: 0;
}

.hand-lab-layout .content-panel {
  background:
    linear-gradient(90deg, rgba(255, 247, 223, 0.035) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(214, 167, 67, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(255, 247, 223, 0.09), rgba(255, 247, 223, 0.03));
  background-size: 28px 28px, auto, auto;
}

.content-panel, .side-panel { padding: clamp(1.15rem, 3vw, 2rem); }
.content-panel.narrow { max-width: 880px; padding: clamp(1.15rem, 3vw, 2rem); }
.content-panel h2, .side-panel h2 { margin-top: 2rem; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.content-panel h2:first-child, .side-panel h2:first-child { margin-top: 0; }

.check-list { padding-left: 1.15rem; color: var(--muted); }
.check-list li { margin-bottom: 0.7rem; }
.value-grid, .strategy-table { display: grid; gap: 0.75rem; }
.value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-grid div, .strategy-table div { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(7, 7, 7, 0.35); }
.value-grid strong, .value-grid span { display: block; }
.value-grid strong { color: var(--gold-bright); font-size: 1.45rem; }
.strategy-table div { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1rem; }
.strategy-table strong { color: var(--gold-bright); }
.strategy-table [role="row"] { align-items: center; }
.strategy-table [role="cell"]:first-child {
  color: var(--ivory);
  font-weight: 900;
}

.strategy-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.strategy-card-grid article,
.strategy-steps li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.3);
}

.strategy-card-grid span {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.strategy-card-grid h3 {
  margin-top: 0.4rem;
}

.strategy-card-grid p {
  margin-bottom: 0;
}

.strategy-steps {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
  counter-reset: strategy-step;
}

.strategy-steps li {
  counter-increment: strategy-step;
}

.strategy-steps li::before {
  content: counter(strategy-step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  color: #130b04;
  border-radius: 50%;
  background: var(--gold-bright);
  font-weight: 800;
}

.value-callout {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(241, 200, 106, 0.32);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.28);
}

.value-callout strong {
  color: var(--gold-bright);
}

.value-callout p {
  margin: 0.3rem 0 0;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.authority-card,
.math-lens,
.risk-reward-panel,
.mistake-panel,
.related-strategy-block {
  min-width: 0;
  padding: clamp(1rem, 2.6vw, 1.25rem);
  border: 1px solid rgba(242, 210, 122, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.1), transparent 10rem),
    linear-gradient(145deg, rgba(247, 241, 227, 0.07), rgba(5, 5, 5, 0.46));
  box-shadow: var(--shadow-soft);
}

.authority-card span,
.math-lens span,
.risk-reward-panel span,
.mistake-panel span,
.related-strategy-block span {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.authority-card h3,
.math-lens h3,
.risk-reward-panel h3,
.mistake-panel h3,
.related-strategy-block h2,
.related-strategy-block h3 {
  margin: 0 0 0.45rem;
}

.related-strategy-block h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.related-strategy-block h2::after {
  display: none;
}

.authority-card p,
.math-lens p,
.risk-reward-panel p,
.mistake-panel p,
.related-strategy-block p {
  margin-bottom: 0;
}

.math-lens {
  border-left: 5px solid var(--gold-bright);
}

.risk-reward-panel {
  border-color: rgba(120, 214, 165, 0.34);
  border-left: 5px solid #78d6a5;
}

.mistake-panel {
  border-color: rgba(220, 70, 86, 0.34);
  border-left: 5px solid #dc4656;
}

.related-strategy-block {
  margin: 1.5rem 0;
}

.related-strategy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0.75rem 0 0;
  list-style: none;
}

.related-strategy-list a {
  display: grid;
  gap: 0.2rem;
  min-height: 100%;
  padding: 0.85rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.38);
  color: var(--ivory);
  text-decoration: none;
}

.related-strategy-list a:hover {
  border-color: rgba(242, 210, 122, 0.42);
  transform: translateY(-1px);
}

.related-strategy-list strong {
  color: var(--gold-bright);
}

.related-strategy-list small {
  color: var(--muted);
  line-height: 1.45;
}

.quick-summary,
.key-takeaway,
.decision-callout-grid,
.midpage-signup,
.site-conversion-band {
  margin: 1.25rem 0;
}

.quick-summary,
.key-takeaway,
.midpage-signup,
.site-conversion-band {
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(242, 210, 122, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(247, 241, 227, 0.08), rgba(5, 5, 5, 0.42));
  background-size: 28px 28px, auto;
  box-shadow: var(--shadow-soft);
}

.quick-summary { border-left: 5px solid var(--gold-bright); }

.quick-summary h2,
.key-takeaway h2,
.midpage-signup h2,
.site-conversion-band h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.quick-summary h2::after,
.key-takeaway h2::after,
.midpage-signup h2::after,
.site-conversion-band h2::after {
  display: none;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.summary-list li {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.42);
  color: var(--muted);
}

.summary-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ivory);
  font-size: 0.95rem;
}

.decision-callout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.decision-callout {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(247, 241, 227, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.1), transparent 9rem),
    rgba(5, 5, 5, 0.48);
}

.decision-callout strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.decision-callout.is-go strong {
  color: #08160f;
  background: #78d6a5;
}

.decision-callout.is-stop strong {
  color: #fff4ea;
  background: #8f1f2d;
}

.decision-callout.is-caution strong {
  color: #140d04;
  background: var(--gold-bright);
}

.decision-callout p,
.key-takeaway p,
.midpage-signup p,
.site-conversion-band p {
  margin-bottom: 0;
}

.key-takeaway {
  border-color: rgba(120, 214, 165, 0.36);
  border-left: 5px solid #78d6a5;
  background:
    radial-gradient(circle at top right, rgba(120, 214, 165, 0.12), transparent 11rem),
    linear-gradient(145deg, rgba(247, 241, 227, 0.07), rgba(5, 5, 5, 0.44));
}

.midpage-signup,
.site-conversion-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.72fr);
  gap: 1rem;
  align-items: center;
}

.site-conversion-band {
  width: min(1120px, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 4rem) auto 0;
}

.section.quick-summary,
.section.key-takeaway {
  margin: 1.25rem auto;
}

.ace-behavior-note,
.post-bust-note,
.post-twenty-one-note {
  margin-top: 0.35rem;
  padding: 0.45rem 0.6rem;
  border-color: rgba(241, 200, 106, 0.22);
  background: rgba(7, 7, 7, 0.18);
  font-size: 0.92rem;
  text-align: center;
}

.post-bust-note,
.post-twenty-one-note {
  color: var(--muted);
  border: 1px solid rgba(158, 31, 38, 0.32);
}

.value-tool { position: relative; max-width: 100%; padding: 1rem; border: 1px solid rgba(241, 200, 106, 0.36); border-radius: 8px; background: rgba(7, 7, 7, 0.38); overflow: hidden; }
.standalone-tool {
  padding: clamp(1rem, 3vw, 1.35rem);
  background:
    linear-gradient(90deg, rgba(255, 247, 223, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 0%, rgba(214, 167, 67, 0.18), transparent 13rem),
    linear-gradient(135deg, rgba(13, 59, 43, 0.72), rgba(7, 7, 7, 0.52));
  background-size: 24px 24px, auto, auto;
}
.card-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.rank-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(42px, 1fr));
}
.card-buttons button {
  width: 52px;
  height: 66px;
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ivory);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}
.rank-picker button {
  width: 100%;
}
.card-buttons button:hover { transform: translateY(-2px); }
.card-buttons button.is-selected,
.card-buttons button[aria-pressed="true"] {
  color: #130b04;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 0 3px rgba(255, 247, 223, 0.28), 0 14px 24px rgba(214, 167, 67, 0.28);
  transform: translateY(-4px);
}
.card-buttons button.was-used {
  box-shadow: 0 0 0 3px rgba(241, 200, 106, 0.24), 0 10px 18px rgba(0, 0, 0, 0.32);
}

.hand-summary {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 247, 223, 0.16);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.34);
}

.hand-summary p {
  margin: 0;
}

.hand-summary strong {
  color: var(--ivory);
}

.hand-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  max-width: 100%;
  min-width: 0;
}

.hand-current p {
  flex: 0 0 auto;
}

.hand-summary .hand-total-line {
  width: 100%;
}

@media (min-width: 761px) {
  .standalone-tool .rank-picker button {
    height: 46px;
  }

  .value-tool .selected-hand {
    min-height: 78px;
  }
}

@media (max-width: 760px) {
  .hand-current {
    width: 100%;
  }
}

.selected-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--muted);
  text-align: center;
}

.split-hand-group {
  position: relative;
  display: grid;
  gap: 0.45rem;
  min-width: min(100%, 158px);
  padding: 0.55rem;
  color: var(--muted);
  border: 1px solid rgba(255, 247, 223, 0.14);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.24);
  cursor: pointer;
}

.split-hand-group.is-active {
  color: var(--ivory);
  border-color: rgba(241, 200, 106, 0.78);
  box-shadow: 0 0 0 3px rgba(241, 200, 106, 0.12);
}

.split-hand-label {
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.split-hand-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.hand-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 78px;
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ivory);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.32), inset 0 0 0 4px rgba(214, 167, 67, 0.12);
  font-size: 1.15rem;
  font-weight: 800;
}

.hand-card-remove {
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--ivory);
  border: 1px solid rgba(255, 247, 223, 0.78);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 150ms ease, transform 150ms ease;
}

.hand-card:hover .hand-card-remove,
.hand-card:focus-within .hand-card-remove {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none), (pointer: coarse) {
  .hand-card-remove {
    opacity: 1;
    transform: scale(1);
  }
}

.hand-total-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
}

.hand-total-line.is-empty strong {
  display: none;
}

#hand-total.has-result {
  color: var(--ivory);
  font-size: 1.4rem;
  font-weight: 800;
}

.hand-result {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hand-result.is-blackjack,
.hand-result.is-soft {
  color: #130b04;
  background: var(--gold-bright);
}

.hand-result.is-hard {
  color: var(--ivory);
  background: var(--green-light);
}

.hand-result.is-hard-21,
.hand-result.is-soft-21 {
  color: #130b04;
  background: var(--gold);
}

.hand-result.is-bust {
  color: var(--ivory);
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(158, 31, 38, 0.28);
}

.value-tool.is-blackjack {
  animation: blackjack-pop 700ms ease;
}

.value-tool.is-bust {
  animation: bust-shake 520ms ease;
}

.outcome-effect {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.outcome-effect.is-local-effect {
  overflow: hidden;
  border-radius: inherit;
}

.confetti-effect span {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold-bright);
  animation: confetti-burst 900ms ease-out var(--delay) forwards;
}

.confetti-effect span:nth-child(3n) {
  background: var(--red);
  border-radius: 50%;
}

.confetti-effect span:nth-child(3n + 1) {
  background: var(--ivory);
}

.confetti-effect strong {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  place-items: center;
  min-width: 72px;
  width: auto;
  min-height: 82px;
  padding: 0.25rem 1.2rem;
  color: #130b04;
  border: 3px solid rgba(255, 247, 223, 0.88);
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold-bright), var(--gold));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 7.5vw, 4.2rem);
  line-height: 0.95;
  text-align: center;
  animation: natural-badge 960ms ease-out forwards;
  transform: translate(-50%, -50%);
}

.confetti-effect.is-local-effect strong {
  min-width: 76px;
  min-height: 62px;
  padding: 0.18rem 0.7rem;
  font-size: clamp(1.25rem, 3.8vw, 2rem);
}

.confetti-effect.is-local-effect span {
  width: 6px;
  height: 6px;
}

.bust-effect {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.2rem;
  color: rgba(158, 31, 38, 0.92);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.52);
  animation: bust-x 820ms ease-out forwards;
}

.bust-effect strong {
  font-size: clamp(6rem, 18vw, 10rem);
  line-height: 0.82;
}

.bust-effect span {
  color: var(--ivory);
  font-size: clamp(1.3rem, 5vw, 2.4rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.bust-effect.is-local-effect strong {
  font-size: clamp(3.2rem, 8vw, 5rem);
}

.bust-effect.is-local-effect span,
.push-effect.is-local-effect strong,
.dealer-effect.is-local-effect strong {
  font-size: clamp(1rem, 3vw, 1.45rem);
}

.hand-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.tool-note {
  max-width: 720px;
  margin: 0.65rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.clear-hand,
.hit-card,
.deal-hand,
.split-hand {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  color: var(--ivory);
  border: 1px solid rgba(241, 200, 106, 0.48);
  border-radius: 6px;
  background: rgba(255, 247, 223, 0.08);
  font-weight: 800;
  cursor: pointer;
}

.hit-card {
  color: #130b04;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.split-hand {
  color: #130b04;
  background: linear-gradient(135deg, #fff7df, var(--gold));
}

.deal-hand {
  color: #130b04;
  background: linear-gradient(135deg, var(--ivory), var(--gold-bright));
}

.deal-hand.is-redeal {
  color: var(--ivory);
  border-color: rgba(255, 247, 223, 0.36);
  background: linear-gradient(135deg, rgba(13, 59, 43, 0.9), rgba(7, 7, 7, 0.74));
}

.clear-hand:hover,
.hit-card:hover,
.deal-hand:hover,
.split-hand:hover {
  background: rgba(255, 247, 223, 0.14);
}

.hit-card:hover,
.deal-hand:hover,
.split-hand:hover {
  color: #130b04;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  filter: brightness(1.06);
}

.deal-hand.is-redeal:hover {
  color: var(--ivory);
  background: linear-gradient(135deg, rgba(13, 59, 43, 0.96), rgba(7, 7, 7, 0.82));
}

.clear-hand:disabled,
.hit-card:disabled,
.deal-hand:disabled,
.split-hand:disabled {
  color: rgba(255, 247, 223, 0.42);
  border-color: rgba(255, 247, 223, 0.14);
  background: rgba(7, 7, 7, 0.58);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

.clear-hand:disabled:hover,
.hit-card:disabled:hover,
.deal-hand:disabled:hover,
.split-hand:disabled:hover {
  color: rgba(255, 247, 223, 0.42);
  background: rgba(7, 7, 7, 0.58);
}

.round-lab {
  position: relative;
  max-width: 100%;
  margin: 1rem 0 1.75rem;
  padding: 1rem;
  border: 1px solid rgba(241, 200, 106, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 247, 223, 0.035) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(214, 167, 67, 0.14), transparent 16rem),
    linear-gradient(135deg, rgba(13, 59, 43, 0.62), rgba(7, 7, 7, 0.52));
  background-size: 24px 24px, auto, auto;
}

.round-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.round-main-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.shoe-controls {
  grid-column: 3;
  justify-self: end;
  display: grid;
  gap: 0.28rem;
  justify-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.shoe-select,
.shoe-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.shoe-meta [data-shoe-count] {
  flex: 1 1 100%;
  text-align: center;
}

.shoe-controls select,
.round-lab [data-new-round],
.round-lab [data-player-hit],
.round-lab [data-player-split],
.round-lab [data-player-stand],
.round-lab [data-reset-shoe] {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  color: var(--ivory);
  border: 1px solid rgba(241, 200, 106, 0.48);
  border-radius: 6px;
  background: rgba(7, 7, 7, 0.52);
  font-weight: 800;
}

.shoe-controls select {
  min-height: 34px;
  padding: 0.32rem 0.52rem;
  color: #130b04;
  background: var(--ivory);
  font-size: 0.82rem;
}

.round-lab [data-new-round],
.round-lab [data-player-hit],
.round-lab [data-player-stand],
.round-lab [data-player-split] {
  color: #130b04;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  cursor: pointer;
}

.round-lab [data-new-round].is-redeal {
  color: var(--ivory);
  border-color: rgba(255, 247, 223, 0.36);
  background: linear-gradient(135deg, rgba(13, 59, 43, 0.9), rgba(7, 7, 7, 0.74));
}

.round-lab [data-reset-shoe] {
  min-height: 30px;
  padding: 0.28rem 0.48rem;
  color: var(--ivory);
  border-color: rgba(241, 200, 106, 0.3);
  background: rgba(7, 7, 7, 0.46);
  font-size: 0.72rem;
  cursor: pointer;
}

.round-lab button:disabled {
  color: rgba(255, 247, 223, 0.42);
  border-color: rgba(255, 247, 223, 0.14);
  background: rgba(7, 7, 7, 0.58);
  cursor: not-allowed;
}

.round-lab.is-blackjack {
  animation: blackjack-pop 700ms ease;
}

.round-lab.is-bust {
  animation: bust-shake 520ms ease;
}

.round-lab.is-push {
  animation: push-pulse 620ms ease;
}

.round-lab.is-dealer {
  animation: dealer-pulse 620ms ease;
}

.round-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.table-flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.round-seat {
  position: relative;
  min-height: 180px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 247, 223, 0.16);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.34);
}

.round-seat > span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.round-seat p {
  margin: 0.75rem 0 0;
  color: var(--ivory);
  font-weight: 800;
  white-space: pre-line;
}

.round-seat.is-active-seat {
  border-color: rgba(241, 200, 106, 0.72);
  box-shadow: 0 0 0 3px rgba(241, 200, 106, 0.12);
}

.player-seat {
  min-height: 200px;
  border: 2px solid rgba(241, 200, 106, 0.5);
  background:
    linear-gradient(135deg, rgba(241, 200, 106, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(13, 59, 43, 0.58), transparent 10rem),
    linear-gradient(145deg, rgba(10, 44, 33, 0.88), rgba(7, 7, 7, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 247, 223, 0.1), 0 18px 36px rgba(0, 0, 0, 0.28);
}

.player-seat > span {
  padding: 0.28rem 0.55rem;
  color: #130b04;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ivory), var(--gold-bright));
}

.dealer-seat {
  min-height: 200px;
  border: 2px solid rgba(241, 200, 106, 0.58);
  background:
    linear-gradient(135deg, rgba(241, 200, 106, 0.2), transparent 22%),
    radial-gradient(circle at top right, rgba(158, 31, 38, 0.46), transparent 10rem),
    linear-gradient(145deg, rgba(38, 5, 8, 0.9), rgba(7, 7, 7, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 247, 223, 0.12), 0 18px 36px rgba(0, 0, 0, 0.34);
}

.dealer-seat > span {
  padding: 0.28rem 0.55rem;
  color: #130b04;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.dealer-seat > span::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(158, 31, 38, 0.22);
}

.round-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 74px;
  align-items: center;
}

.round-split-hand {
  position: relative;
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 0.45rem;
  border: 1px solid rgba(255, 247, 223, 0.14);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.22);
}

.round-split-hand + .round-split-hand {
  margin-top: 0.5rem;
}

.round-split-hand.is-active {
  border-color: rgba(241, 200, 106, 0.76);
  box-shadow: 0 0 0 3px rgba(241, 200, 106, 0.1);
}

.round-split-label {
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.round-split-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.round-split-total {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.12rem 0.45rem;
  color: #130b04;
  border-radius: 999px;
  background: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 900;
}

.round-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 50px;
  height: 70px;
  padding: 0.3rem;
  color: #14110d;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ivory);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.3), inset 0 0 0 3px rgba(214, 167, 67, 0.12);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.round-card strong {
  align-self: center;
  justify-self: center;
  font-size: 1.35rem;
}

.round-card small {
  justify-self: end;
  transform: rotate(180deg);
}

.round-card .deck-marker {
  position: absolute;
  left: 0.28rem;
  bottom: 0.24rem;
  display: none;
  color: rgba(20, 17, 13, 0.62);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
}

.round-card.is-red .deck-marker {
  color: rgba(158, 31, 38, 0.62);
}

.round-lab.show-deck-markers .round-card .deck-marker {
  display: block;
}

.round-card.is-red {
  color: var(--red);
}

.round-card.is-hidden {
  place-items: center;
  color: var(--gold-bright);
  background:
    linear-gradient(135deg, rgba(158, 31, 38, 0.85), rgba(7, 7, 7, 0.92));
}

.round-status {
  margin: 0.9rem 0 0;
  color: var(--ivory);
  font-weight: 800;
  text-align: center;
  white-space: pre-line;
}

.sound-toggle {
  float: left;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0.7rem 0.75rem 0.35rem 0;
  padding: 0;
  color: var(--ivory);
  border: 1px solid rgba(241, 200, 106, 0.46);
  border-radius: 50%;
  background: rgba(7, 7, 7, 0.64);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  shape-outside: circle(50%);
}

.lab-mini-controls {
  float: left;
  display: flex;
  gap: 0.4rem;
  margin: 0.7rem 0.75rem 0.35rem 0;
  shape-outside: inset(0 round 999px);
}

.lab-mini-controls .sound-toggle {
  float: none;
  margin: 0;
}

.deck-marker-toggle {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0 0.4rem;
  color: var(--ivory);
  border: 1px solid rgba(241, 200, 106, 0.46);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.64);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.deck-marker-toggle:hover,
.deck-marker-toggle:focus-visible,
.deck-marker-toggle[aria-pressed="true"] {
  color: #130b04;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.sound-toggle::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M3%209v6h4l5%204V5L7%209H3zm13.5-2.5v11c2-1.5%203.2-3.5%203.2-5.5s-1.2-4-3.2-5.5z%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M3%209v6h4l5%204V5L7%209H3zm13.5-2.5v11c2-1.5%203.2-3.5%203.2-5.5s-1.2-4-3.2-5.5z%27/%3E%3C/svg%3E") center / contain no-repeat;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  color: #130b04;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.sound-toggle[aria-pressed="true"] {
  color: rgba(255, 247, 223, 0.72);
  border-color: rgba(255, 247, 223, 0.18);
  background: rgba(7, 7, 7, 0.82);
}

.sound-toggle[aria-pressed="true"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M3%209v6h4l5%204V5L7%209H3zm13.4-1.4L15.6%209.4%2018.2%2012l-2.6%202.6%201.8%201.8%202.6-2.6%202.6%202.6%201.8-1.8L21.8%2012l2.6-2.6-1.8-1.8-2.6%202.6-2.6-2.6z%27/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M3%209v6h4l5%204V5L7%209H3zm13.4-1.4L15.6%209.4%2018.2%2012l-2.6%202.6%201.8%201.8%202.6-2.6%202.6%202.6%201.8-1.8L21.8%2012l2.6-2.6-1.8-1.8-2.6%202.6-2.6-2.6z%27/%3E%3C/svg%3E");
}

.push-effect {
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 800;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.52);
  animation: push-badge 880ms ease-out forwards;
}

.dealer-effect {
  color: rgba(255, 247, 223, 0.92);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 800;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.56);
  animation: dealer-badge 880ms ease-out forwards;
}

.push-effect strong,
.dealer-effect strong {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 58px;
  padding: 0.2rem 0.95rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.push-effect strong {
  color: #130b04;
  border: 3px solid rgba(255, 247, 223, 0.78);
  background: radial-gradient(circle, var(--ivory), rgba(242, 210, 122, 0.92));
  font-size: clamp(2.2rem, 8vw, 4.5rem);
}

.dealer-effect strong {
  color: var(--ivory);
  border: 3px solid rgba(158, 31, 38, 0.84);
  background: radial-gradient(circle, rgba(158, 31, 38, 0.9), rgba(38, 5, 8, 0.94));
  font-size: clamp(1.7rem, 6vw, 3.4rem);
}

.push-effect .push-balance,
.dealer-effect .loss-mark {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.push-effect .push-balance {
  width: min(220px, 76%);
  height: 74px;
  border-top: 3px solid rgba(255, 247, 223, 0.72);
  border-bottom: 3px solid rgba(255, 247, 223, 0.28);
  border-radius: 999px;
  animation: push-balance 880ms ease-out forwards;
}

.push-effect .push-balance::before,
.push-effect .push-balance::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 3px;
  background: rgba(242, 210, 122, 0.9);
}

.push-effect .push-balance::before {
  left: 0.8rem;
  transform: translateY(-50%);
}

.push-effect .push-balance::after {
  right: 0.8rem;
  transform: translateY(-50%);
}

.dealer-effect .loss-mark {
  width: min(190px, 72%);
  height: 92px;
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent calc(50% - 3px), rgba(158, 31, 38, 0.88) calc(50% - 3px), rgba(158, 31, 38, 0.88) calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(-45deg, transparent calc(50% - 3px), rgba(38, 5, 8, 0.82) calc(50% - 3px), rgba(38, 5, 8, 0.82) calc(50% + 3px), transparent calc(50% + 3px));
  box-shadow: 0 0 0 4px rgba(158, 31, 38, 0.16), inset 0 0 32px rgba(38, 5, 8, 0.52);
  animation: loss-mark 880ms ease-out forwards;
}

.dealer-effect .loss-mark::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 2px solid rgba(255, 247, 223, 0.22);
  border-radius: inherit;
}

.push-effect.is-local-effect .push-balance {
  width: 84%;
  height: 54px;
}

.dealer-effect.is-local-effect .loss-mark {
  width: 84%;
  height: 62px;
}

.value-tool::after,
.round-lab::after {
  content: "";
  display: block;
  clear: both;
}

@keyframes blackjack-pop {
  0% { box-shadow: 0 0 0 rgba(241, 200, 106, 0); transform: scale(1); }
  38% { box-shadow: 0 0 0 8px rgba(241, 200, 106, 0.22); transform: scale(1.012); }
  100% { box-shadow: 0 0 0 rgba(241, 200, 106, 0); transform: scale(1); }
}

@keyframes confetti-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(180deg);
  }
}

@keyframes natural-badge {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55) rotate(-10deg);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(0deg);
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92) rotate(8deg);
  }
}

@keyframes bust-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  36% { transform: translateX(7px); }
  54% { transform: translateX(-5px); }
  72% { transform: translateX(5px); }
}

@keyframes bust-x {
  0% {
    opacity: 0;
    transform: scale(0.65) rotate(-8deg);
  }
  28% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.16) rotate(5deg);
  }
}

@keyframes push-pulse {
  0% { box-shadow: 0 0 0 rgba(255, 247, 223, 0); transform: scale(1); }
  42% { box-shadow: 0 0 0 8px rgba(255, 247, 223, 0.16); transform: scale(1.006); }
  100% { box-shadow: 0 0 0 rgba(255, 247, 223, 0); transform: scale(1); }
}

@keyframes push-badge {
  0% { opacity: 0; transform: scale(0.82); }
  24% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes push-balance {
  0% { opacity: 0; transform: translate(-50%, -50%) scaleX(0.7) rotate(-2deg); }
  24% { opacity: 1; transform: translate(-50%, -50%) scaleX(1.04) rotate(1.5deg); }
  54% { transform: translate(-50%, -50%) scaleX(1) rotate(-1deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleX(1) rotate(0); }
}

@keyframes dealer-pulse {
  0% { box-shadow: 0 0 0 rgba(158, 31, 38, 0); transform: scale(1); }
  42% { box-shadow: 0 0 0 8px rgba(158, 31, 38, 0.16); transform: scale(1.006); }
  100% { box-shadow: 0 0 0 rgba(158, 31, 38, 0); transform: scale(1); }
}

@keyframes dealer-badge {
  0% { opacity: 0; transform: translateY(0.35rem) scale(0.9); }
  24% { opacity: 1; transform: translateY(0) scale(1.03); }
  100% { opacity: 0; transform: translateY(-0.15rem) scale(1); }
}

@keyframes loss-mark {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.82) rotate(-6deg); }
  24% { opacity: 1; transform: translate(-50%, -50%) scale(1.06) rotate(2deg); }
  58% { transform: translate(-50%, -50%) scale(1) rotate(-1deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

@keyframes challenge-correct-pulse {
  0% { box-shadow: var(--shadow-soft); transform: scale(1); }
  42% { box-shadow: 0 0 0 8px rgba(241, 200, 106, 0.18), var(--shadow-soft); transform: scale(1.006); }
  100% { box-shadow: var(--shadow-soft); transform: scale(1); }
}

@keyframes challenge-feedback-badge {
  0% { opacity: 0; transform: translateY(0.4rem) scale(0.86); }
  22% { opacity: 1; transform: translateY(0) scale(1.04); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-0.2rem) scale(1); }
}
.warning-panel { border-color: rgba(158, 31, 38, 0.65); }

.example-hand-grid {
  display: grid;
  gap: 0.9rem;
}

.example-hand {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.28);
}

.example-hand h3 {
  margin-bottom: 0.35rem;
}

.example-hand p {
  margin-bottom: 0;
}

.example-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 72px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.example-cards.example-matchup {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.example-cards:hover span,
.example-cards:focus-visible span {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(241, 200, 106, 0.22), 0 12px 20px rgba(0, 0, 0, 0.34);
}

.example-cards span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 58px;
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ivory);
  box-shadow: 0 9px 14px rgba(0, 0, 0, 0.28), inset 0 0 0 3px rgba(214, 167, 67, 0.12);
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.example-cards em {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-link-stack {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.anchor-target {
  display: block;
  position: relative;
  top: -92px;
  height: 0;
  visibility: hidden;
}

.mobile-jump-links {
  display: none;
}

.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.home-quick-actions a,
.interactive-module,
.progress-card,
.daily-challenge,
.strategy-finder,
.quiz-shell,
.daily-preview {
  border: 1px solid rgba(242, 210, 122, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 241, 227, 0.072), rgba(247, 241, 227, 0.025)),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.1), transparent 9rem),
    rgba(5, 5, 5, 0.48);
  box-shadow: var(--shadow-soft);
}

.home-quick-actions a {
  position: relative;
  display: grid;
  gap: 0.25rem;
  min-height: 126px;
  padding: 1rem;
  color: var(--ivory);
  text-decoration: none;
  overflow: hidden;
}

.home-quick-actions a::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 1.55rem;
  height: 1.55rem;
  border-top: 1px solid rgba(242, 210, 122, 0.62);
  border-right: 1px solid rgba(242, 210, 122, 0.62);
  opacity: 0.42;
}

.home-quick-actions span,
.interactive-module span,
.challenge-topline span,
.finder-result span {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-quick-actions small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.progress-summary,
.daily-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 1rem;
  align-items: center;
}

.progress-card,
.daily-preview {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.training-dashboard,
.rapid-trainer,
.retention-loop-panel {
  display: grid;
  gap: 1rem;
  margin: 1.35rem 0;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(242, 210, 122, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.032) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.13), transparent 12rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.32), rgba(5, 5, 5, 0.58));
  background-size: 28px 28px, auto, auto;
  box-shadow: var(--shadow-soft);
}

.section.retention-loop-panel {
  margin: clamp(2rem, 5vw, 3rem) auto;
}

.training-dashboard header,
.rapid-trainer header,
.retention-loop-panel header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.training-dashboard h2,
.rapid-trainer h2,
.retention-loop-panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.training-dashboard h2::after,
.rapid-trainer h2::after,
.retention-loop-panel h2::after {
  display: none;
}

.training-dashboard p,
.rapid-trainer p,
.retention-loop-panel p {
  margin-bottom: 0;
}

.training-level {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(242, 210, 122, 0.38);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(5, 5, 5, 0.42);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.training-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.training-stat-grid div {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.42);
}

.training-stat-grid strong {
  display: block;
  color: var(--gold-bright);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1;
}

.training-stat-grid span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.rapid-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 0.85rem;
  border: 1px solid rgba(247, 241, 227, 0.14);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.42);
}

.rapid-hand i {
  display: grid;
  place-items: center;
  min-width: 3rem;
  min-height: 4rem;
  padding: 0.45rem;
  color: #120d06;
  border: 1px solid rgba(242, 210, 122, 0.52);
  border-radius: 8px;
  background: linear-gradient(145deg, #fffaf0, #efe3c1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 800;
}

.rapid-hand span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rapid-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.rapid-options button {
  min-height: 46px;
  padding: 0.7rem;
  color: var(--ivory);
  border: 1px solid rgba(241, 200, 106, 0.34);
  border-radius: 6px;
  background: rgba(255, 247, 223, 0.07);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.rapid-options button.is-correct {
  color: #08160f;
  border-color: rgba(120, 214, 165, 0.72);
  background: #78d6a5;
}

.rapid-options button.is-wrong {
  color: #fff4ea;
  border-color: rgba(220, 70, 86, 0.72);
  background: #8f1f2d;
}

.rapid-options button:disabled {
  cursor: default;
}

.rapid-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
}

.rapid-next-link {
  color: var(--gold-bright);
  font-weight: 900;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.12);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 180ms ease;
}

.onboarding-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.onboarding-path li {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(241, 200, 106, 0.24);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.36);
}

.onboarding-path li.is-complete {
  border-color: rgba(241, 200, 106, 0.62);
  background: rgba(13, 59, 43, 0.44);
}

.onboarding-path span {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.path-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.path-actions a,
.path-actions button,
.interactive-module button,
.quiz-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  color: var(--ivory);
  border: 1px solid rgba(241, 200, 106, 0.36);
  border-radius: 6px;
  background: rgba(255, 247, 223, 0.07);
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.path-actions a:hover,
.path-actions button:hover,
.interactive-module button:hover,
.quiz-options button:hover {
  background: rgba(255, 247, 223, 0.13);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.module-grid .section-heading {
  grid-column: 1 / -1;
}

.interactive-module {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
  padding: 1rem;
}

.interactive-module p {
  margin-bottom: 0;
}

.interactive-module a {
  font-weight: 900;
}

.decision-prompt {
  margin: 1.5rem 0;
  border-color: rgba(242, 210, 122, 0.36);
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.14), transparent 12rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.36), rgba(5, 5, 5, 0.58));
  background-size: 28px 28px, auto, auto;
}

.decision-prompt h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.decision-prompt .prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.decision-prompt .prompt-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.68rem 0.9rem;
  color: var(--gold-bright);
  border: 1px solid rgba(242, 210, 122, 0.26);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.3);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.decision-prompt .prompt-actions a:hover {
  border-color: var(--card-border-hover);
  background: rgba(242, 210, 122, 0.08);
  transform: translateY(-1px);
}

.article-next {
  display: none;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(242, 210, 122, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.028) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.12), transparent 12rem),
    rgba(5, 5, 5, 0.52);
  background-size: 28px 28px, auto, auto;
  box-shadow: var(--shadow-soft);
}

.article-next h2 {
  margin: 0;
}

.article-next h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 1px;
  margin-top: 0.55rem;
  background: var(--gold-line);
}

.article-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.article-next-grid a {
  position: relative;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.95rem;
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.22);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.38);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.article-next-grid a:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.article-next-grid span {
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.article-next-grid strong {
  color: var(--ivory);
  line-height: 1.2;
}

.article-next-grid small {
  color: var(--muted);
  line-height: 1.4;
}

.daily-teaser {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(242, 210, 122, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.03) 1px, transparent 1px),
    linear-gradient(145deg, rgba(14, 59, 46, 0.46), rgba(5, 5, 5, 0.78)),
    rgba(5, 5, 5, 0.52);
  background-size: 30px 30px, auto, auto;
  box-shadow: var(--shadow-soft);
}

.daily-preview strong {
  position: relative;
  padding: 0.8rem;
  border: 1px solid rgba(255, 247, 223, 0.12);
  border-radius: 6px;
  background: rgba(255, 247, 223, 0.055);
}

.daily-preview strong::before {
  content: "";
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  margin-right: 0.45rem;
  border: 1px solid rgba(242, 210, 122, 0.58);
  transform: rotate(45deg);
}

.daily-challenge,
.quiz-shell {
  position: relative;
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow: hidden;
}

.challenge-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.challenge-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.challenge-controls .button {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
}

.challenge-controls .sound-toggle {
  float: none;
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  shape-outside: none;
}

.challenge-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1rem;
}

.challenge-hand i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 70px;
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ivory);
  font-style: normal;
  font-weight: 900;
}

.quiz-options {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.quiz-options button {
  text-align: left;
}

.quiz-options button.is-correct,
.quiz-feedback.is-correct {
  border-color: rgba(241, 200, 106, 0.7);
  color: var(--ivory);
}

.quiz-options button.is-wrong,
.quiz-feedback.is-wrong {
  border-color: rgba(158, 31, 38, 0.7);
}

.quiz-options button:disabled {
  cursor: default;
}

.quiz-options button.is-dimmed {
  opacity: 0.34;
  filter: grayscale(0.8);
  transform: none;
}

.quiz-options button.is-dimmed:hover {
  background: rgba(255, 247, 223, 0.07);
}

.quiz-feedback {
  min-height: 1.7rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-weight: 800;
}

.daily-challenge.is-correct {
  animation: challenge-correct-pulse 620ms ease;
}

.daily-challenge.is-wrong {
  animation: bust-shake 420ms ease;
}

.challenge-feedback-effect {
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 10vw, 4.7rem);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.56);
  animation: challenge-feedback-badge 900ms ease-out forwards;
}

.challenge-feedback-effect.is-correct {
  color: var(--gold-bright);
}

.challenge-feedback-effect.is-wrong {
  color: rgba(255, 247, 223, 0.92);
}

.strategy-finder {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.finder-controls {
  display: grid;
  gap: 0.7rem;
}

.finder-controls label {
  display: grid;
  gap: 0.35rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finder-controls select {
  min-height: 46px;
  padding: 0.65rem;
  color: var(--ivory);
  border: 1px solid rgba(241, 200, 106, 0.32);
  border-radius: 6px;
  background: rgba(7, 7, 7, 0.65);
  font: inherit;
}

.finder-result {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(255, 247, 223, 0.12);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.32);
}

.site-methodology {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  width: min(1120px, calc(100% - 2rem));
  margin: clamp(1rem, 3vw, 2rem) auto clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(242, 210, 122, 0.32);
  border-radius: 8px;
  background:
    var(--surface-grid),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.12), transparent 18rem),
    radial-gradient(circle at bottom left, rgba(14, 59, 46, 0.28), transparent 20rem),
    rgba(5, 5, 5, 0.62);
  background-size: 30px 30px, 30px 30px, auto, auto, auto;
  box-shadow: var(--shadow);
}

.methodology-copy {
  align-self: center;
}

.methodology-copy p:last-child {
  margin-bottom: 0;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.methodology-grid article {
  position: relative;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(242, 210, 122, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(247, 241, 227, 0.062), rgba(247, 241, 227, 0.02)),
    rgba(7, 7, 7, 0.42);
  overflow: hidden;
}

.methodology-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(242, 210, 122, 0.56), transparent);
  opacity: 0.54;
}

.methodology-grid span {
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.methodology-grid h3 {
  margin-top: 0.45rem;
}

.methodology-grid p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 0.55fr);
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.028) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(242, 210, 122, 0.1), transparent 18rem),
    rgba(5, 5, 5, 0.96);
  background-size: 28px 28px, auto, auto;
}

.footer-brand {
  max-width: 720px;
}

.footer-brand strong {
  display: inline-flex;
  margin-bottom: 0.4rem;
  color: var(--gold-bright);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

.footer-brand p {
  margin: 0 0 0.7rem;
}

.footer-signup {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(242, 210, 122, 0.24);
  border-radius: 8px;
  background: rgba(247, 241, 227, 0.042);
}

.footer-signup label {
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-signup p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
}

.footer-links span {
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--ivory);
  font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold-bright);
}

.footer-disclaimer {
  max-width: 860px;
  color: var(--muted);
  font-size: 0.92rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 247, 223, 0.12);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Interior page luxury identity system */
body:not(.home-page) main {
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.022) 1px, transparent 1px),
    linear-gradient(rgba(247, 241, 227, 0.016) 1px, transparent 1px),
    radial-gradient(circle at 78% 8%, rgba(14, 59, 46, 0.28), transparent 30rem),
    radial-gradient(circle at 12% 0%, rgba(242, 210, 122, 0.1), transparent 22rem);
  background-size: 56px 56px, 56px 56px, auto, auto;
}

body:not(.home-page) .page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.24fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  min-height: clamp(260px, 28vw, 320px);
  margin-top: clamp(0.6rem, 2vw, 1.25rem);
  padding: clamp(1.45rem, 4vw, 2.85rem) clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(242, 210, 122, 0.26);
  border-radius: 8px;
  background:
    var(--surface-grid),
    radial-gradient(circle at 78% 45%, rgba(242, 210, 122, 0.14), transparent 17rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.34), rgba(5, 5, 5, 0.68) 48%, rgba(143, 31, 45, 0.12));
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

body:not(.home-page) .page-hero::before {
  content: "";
  display: block;
  grid-column: 2;
  grid-row: 1 / span 4;
  justify-self: end;
  width: min(100%, 205px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(242, 210, 122, 0.16), transparent 68%),
    url("coin-bb-02t.png") center / contain no-repeat;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.54));
  opacity: 0.9;
}

body:not(.home-page) .page-hero h1,
body:not(.home-page) .page-hero p,
body:not(.home-page) .page-hero .button-row {
  grid-column: 1;
}

body:not(.home-page) .page-hero .eyebrow {
  grid-column: 1;
  align-self: end;
  margin-bottom: 0.35rem;
}

body:not(.home-page) .page-hero::after {
  grid-column: 1;
}

body:not(.home-page) .page-hero p:last-child {
  color: #e2d3b2;
  margin-bottom: 0;
  font-size: 1.05rem;
}

body:not(.home-page) .page-hero h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.page-anchor-nav {
  min-width: 0;
}

.page-anchor-nav h2 {
  margin: 0 0 0.65rem;
  color: var(--gold-bright);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-anchor-nav h2::after {
  display: none;
}

.page-anchor-links {
  display: grid;
  gap: 0.45rem;
}

.page-anchor-links a {
  display: block;
  padding: 0.55rem 0.65rem;
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.18);
  border-radius: 6px;
  background: rgba(255, 247, 223, 0.04);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.page-anchor-links a:hover {
  color: var(--gold-bright);
  border-color: rgba(242, 210, 122, 0.44);
  background: rgba(242, 210, 122, 0.08);
  transform: translateY(-1px);
}

.page-anchor-nav.is-side {
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(242, 210, 122, 0.18);
}

.page-anchor-nav.is-inline {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.85rem auto 0;
  padding: 0.85rem;
  border: 1px solid rgba(242, 210, 122, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(247, 241, 227, 0.06), rgba(247, 241, 227, 0.02)),
    rgba(5, 5, 5, 0.48);
  box-shadow: var(--shadow-soft);
}

.page-anchor-nav.is-inline .page-anchor-links {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.mobile-page-anchor {
  display: none;
}

.guide-card,
.feature-link,
.content-panel,
.side-panel,
.skill-path,
.guide-roadmap article,
.table-section,
.lesson-panel,
.practice-hand,
.myth-fact,
.page-visual,
.value-callout,
.value-tool,
.round-lab,
.strategy-card-grid article,
.strategy-steps li,
.onboarding-path li {
  border-color: rgba(242, 210, 122, 0.24);
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.08), transparent 12rem),
    linear-gradient(145deg, rgba(247, 241, 227, 0.07), rgba(247, 241, 227, 0.02)),
    rgba(5, 5, 5, 0.5);
  box-shadow: var(--shadow-soft);
}

.content-panel,
.side-panel,
.content-panel.narrow {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.content-panel::before,
.side-panel::before,
.content-panel.narrow::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(242, 210, 122, 0.58), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.content-panel h2,
.side-panel h2 {
  color: var(--ivory);
}

.content-panel h2[id] {
  scroll-margin-top: 96px;
}

.content-panel h2::after,
.side-panel h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 1px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, rgba(242, 210, 122, 0.7), transparent);
}

.guide-visual,
.page-visual,
.table-section,
.value-tool,
.round-lab {
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(247, 241, 227, 0.024) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.12), transparent 14rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.38), rgba(5, 5, 5, 0.62));
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.strategy-card-grid article,
.guide-card,
.feature-link,
.interactive-module,
.onboarding-path li,
.methodology-grid article,
.why-grid article,
.learning-path li,
.return-grid article,
.strategy-points article {
  position: relative;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.strategy-card-grid article::after,
.guide-card::after,
.feature-link::after,
.interactive-module::after,
.onboarding-path li::after,
.methodology-grid article::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 1.35rem;
  height: 1.35rem;
  border-top: 1px solid rgba(242, 210, 122, 0.58);
  border-right: 1px solid rgba(242, 210, 122, 0.58);
  opacity: 0.36;
  pointer-events: none;
}

.strategy-card-grid article:hover,
.guide-card:hover,
.feature-link:hover,
.interactive-module:hover,
.onboarding-path li:hover,
.methodology-grid article:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.strategy-card-grid span,
.skill-path span,
.guide-roadmap span,
.lesson-panel span,
.practice-hand span,
.myth-fact span,
.onboarding-path span {
  letter-spacing: 0.11em;
  font-weight: 900;
}

.strategy-table div,
.value-grid div,
.round-seat,
.finder-result,
.daily-preview strong {
  border-color: rgba(247, 241, 227, 0.12);
  background:
    linear-gradient(145deg, rgba(247, 241, 227, 0.045), rgba(247, 241, 227, 0.018)),
    rgba(5, 5, 5, 0.44);
}

.value-callout {
  border-left: 4px solid var(--gold-bright);
}

.card-icon,
.path-card-icon,
.why-icon {
  color: var(--gold-bright);
  border-color: rgba(242, 210, 122, 0.52);
  background:
    linear-gradient(135deg, rgba(242, 210, 122, 0.14), rgba(242, 210, 122, 0.02)),
    #090909;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.34);
}

.signal-card,
.mini-card,
.practice-card-row i,
.page-visual-cards i,
.example-cards span,
.hand-card,
.round-card,
.challenge-hand i,
.preview-hand-row span,
.console-hand span {
  color: #17100a;
  border: 1px solid rgba(242, 210, 122, 0.78);
  background:
    linear-gradient(145deg, #fffaf0, #efe3c1);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.34), inset 0 0 0 4px rgba(200, 162, 74, 0.12);
}

.card-red,
.round-card.is-red,
.challenge-hand i:nth-child(even) {
  color: var(--red);
}

.card-buttons button,
.path-actions a,
.path-actions button,
.interactive-module button,
.quiz-options button,
.rapid-options button,
.clear-hand,
.hit-card,
.deal-hand,
.split-hand,
.round-lab [data-new-round],
.round-lab [data-player-hit],
.round-lab [data-player-split],
.round-lab [data-player-stand],
.round-lab [data-reset-shoe],
.deck-marker-toggle,
.sound-toggle {
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.card-buttons button:hover,
.path-actions a:hover,
.path-actions button:hover,
.interactive-module button:hover,
.quiz-options button:hover,
.rapid-options button:hover,
.clear-hand:hover,
.hit-card:hover,
.deal-hand:hover,
.split-hand:hover,
.round-lab [data-new-round]:hover,
.round-lab [data-player-hit]:hover,
.round-lab [data-player-split]:hover,
.round-lab [data-player-stand]:hover,
.round-lab [data-reset-shoe]:hover,
.deck-marker-toggle:hover,
.sound-toggle:hover {
  border-color: rgba(242, 210, 122, 0.72);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.round-lab,
.value-tool {
  border-color: rgba(242, 210, 122, 0.32);
  box-shadow: var(--shadow);
}

.round-seat.is-active-seat {
  border-color: rgba(242, 210, 122, 0.76);
  box-shadow: 0 0 0 3px rgba(242, 210, 122, 0.12), var(--shadow-soft);
}

.dealer-seat {
  border-color: rgba(242, 210, 122, 0.58);
  background:
    linear-gradient(135deg, rgba(242, 210, 122, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(143, 31, 45, 0.3), transparent 10rem),
    linear-gradient(145deg, rgba(30, 8, 10, 0.72), rgba(5, 5, 5, 0.76));
}

.progress-track,
.console-meter {
  border: 1px solid rgba(242, 210, 122, 0.12);
  background: rgba(247, 241, 227, 0.07);
}

.progress-track span {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), #fff1b0);
}

.warning-panel {
  border-color: rgba(143, 31, 45, 0.62);
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  body:not(.home-page) .page-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  body:not(.home-page) .page-hero::before {
    display: none;
  }
  .page-anchor-nav {
    display: none;
  }
  .mobile-page-anchor {
    display: block;
    width: min(1120px, calc(100% - 2rem));
    margin: 0.8rem auto 0;
    border: 1px solid rgba(242, 210, 122, 0.22);
    border-radius: 8px;
    background:
      linear-gradient(145deg, rgba(247, 241, 227, 0.065), rgba(247, 241, 227, 0.022)),
      rgba(5, 5, 5, 0.54);
    box-shadow: var(--shadow-soft);
  }
  .mobile-page-anchor summary {
    min-height: 44px;
    padding: 0.75rem 0.9rem;
    color: var(--ivory);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
  }
  .mobile-page-anchor summary::-webkit-details-marker {
    display: none;
  }
  .mobile-page-anchor summary::after {
    content: "+";
    float: right;
    color: var(--gold-bright);
    font-weight: 900;
  }
  .mobile-page-anchor[open] summary::after {
    content: "-";
  }
  .mobile-page-anchor .page-anchor-links {
    display: block;
    padding: 0 0.9rem 0.85rem;
  }
  .mobile-page-anchor .page-anchor-links a {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    padding: 0.55rem 0;
    color: var(--gold-bright);
    border: 0;
    border-top: 1px solid rgba(242, 210, 122, 0.16);
    border-radius: 0;
    background: transparent;
    font-size: 0.92rem;
    line-height: 1.35;
  }
  .mobile-page-anchor .page-anchor-links a::before {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(242, 210, 122, 0.1);
  }
  .mobile-page-anchor .page-anchor-links a:hover {
    color: var(--ivory);
    border-color: rgba(242, 210, 122, 0.28);
    background: transparent;
    transform: none;
  }
  .site-nav {
    position: fixed;
    top: 74px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    height: calc(100svh - 74px);
    display: none;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1rem;
    margin-left: 0;
    padding: 1rem;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.98), rgba(7, 7, 7, 0.94)),
      radial-gradient(circle at top right, rgba(214, 167, 67, 0.12), transparent 16rem);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .nav-primary-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .site-nav a {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid rgba(255, 247, 223, 0.12);
    border-radius: 8px;
    background: rgba(255, 247, 223, 0.045);
  }
  .nav-pill {
    border-radius: 8px;
    text-align: center;
  }
  .mobile-nav-intro {
    display: block;
    padding: 0.95rem;
    border: 1px solid rgba(241, 200, 106, 0.24);
    border-radius: 8px;
    background: rgba(13, 59, 43, 0.32);
  }
  .mobile-nav-intro strong {
    display: block;
    color: var(--ivory);
    font-size: 1.15rem;
  }
  .mobile-nav-intro p {
    margin: 0.25rem 0 0;
  }
  .mobile-nav-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .mobile-nav-groups div {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 247, 223, 0.12);
    border-radius: 8px;
    background: rgba(7, 7, 7, 0.34);
  }
  .mobile-nav-groups span {
    color: var(--gold-bright);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .mobile-nav-groups a {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.88rem;
  }
  .network-logo {
    justify-content: flex-start;
    border-radius: 6px;
  }
  .hero, .content-layout, .responsible-band, .site-methodology, .site-footer, .tool-preview, .skill-paths, .progress-summary, .daily-teaser, .strategy-finder, .midpage-signup, .site-conversion-band { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: clamp(2rem, 7vw, 3rem); }
  .hero-paths { grid-template-columns: 1fr; }
  .hero-table { min-height: 360px; }
  .card-grid.three, .card-grid.four, .card-grid.featured-guides, .step-list, .guide-roadmap, .table-flow-grid, .home-quick-actions, .onboarding-path, .module-grid, .article-next-grid, .summary-list, .decision-callout-grid, .authority-grid, .related-strategy-list, .training-stat-grid, .rapid-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.72;
  }
  .site-header { min-height: 68px; }
  .site-nav {
    top: 68px;
    height: calc(100svh - 68px);
  }
  .brand { font-size: 0.95rem; }
  .brand-mark { width: 40px; height: 40px; }
  .nav-primary-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-nav-groups {
    grid-template-columns: 1fr;
  }
  .section,
  .content-layout,
  .content-panel.narrow,
  .page-hero,
  .mobile-page-anchor,
  .site-methodology {
    width: min(1120px, calc(100% - 1.5rem));
  }
  .content-panel,
  .side-panel {
    padding: 1rem;
  }
  .value-tool,
  .round-lab {
    padding: 0.75rem;
  }
  .rank-picker {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .card-buttons button {
    min-width: 0;
  }
  .round-actions {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .round-main-actions,
  .shoe-controls {
    grid-column: 1;
    width: 100%;
    justify-items: center;
    justify-content: center;
  }
  .shoe-select,
  .shoe-meta {
    justify-content: center;
  }
  .hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-copy { font-size: 1rem; }
  .hero-paths {
    gap: 0.55rem;
    margin-top: 1rem;
  }
  .hero-paths a {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 58px;
    padding: 0.55rem 0.65rem;
  }
  .path-card-icon {
    grid-row: 1;
    width: 34px;
    height: 42px;
  }
  .hero-paths small { display: none; }
  .card-grid.three, .card-grid.four, .card-grid.featured-guides, .step-list, .guide-roadmap, .round-table, .table-flow-grid, .value-grid, .strategy-table div, .strategy-card-grid, .home-quick-actions, .onboarding-path, .module-grid, .methodology-grid, .article-next-grid, .summary-list, .decision-callout-grid, .authority-grid, .related-strategy-list, .training-stat-grid, .rapid-options { grid-template-columns: 1fr; }
  .content-panel h2,
  .side-panel h2 {
    margin-top: 1.45rem;
  }
  .quick-summary,
  .key-takeaway,
  .midpage-signup,
  .site-conversion-band,
  .training-dashboard,
  .rapid-trainer,
  .retention-loop-panel,
  .authority-card,
  .math-lens,
  .risk-reward-panel,
  .mistake-panel,
  .related-strategy-block {
    padding: 1rem;
  }
  .strategy-table div {
    gap: 0.5rem;
    padding: 0.85rem;
  }
  .footer-links { grid-template-columns: 1fr; }
  .challenge-topline { display: grid; }
  .training-dashboard header,
  .rapid-trainer header,
  .retention-loop-panel header,
  .rapid-footer {
    display: grid;
  }
  .shoe-controls { margin-left: 0; }
  .example-hand { grid-template-columns: 1fr; }
  .hand-card-remove { opacity: 1; transform: scale(1); }
  .mobile-jump-links {
    display: none;
  }
  .side-panel .side-link-stack,
  .side-panel > h2:first-child,
  .example-strategy-cta {
    display: none;
  }
  .button { width: 100%; }
  .resource-actions { display: grid; }
  .site-header .button { width: auto; }
  .hero-table { min-height: 300px; }
  .playing-card { width: 108px; height: 156px; }
  .playing-card strong { font-size: 2.8rem; }
  .card-row { top: 34%; width: 82%; height: 180px; }
  .hand-label { top: 12%; font-size: 0.7rem; }
  .score-badge { width: 62px; height: 62px; right: 8%; top: 22%; font-size: 1.45rem; }
  .chip-rack { right: 7%; bottom: 8%; gap: 0.25rem; }
  .chip { width: 42px; height: 42px; border-width: 4px; }
  .guide-visual { height: 108px; }
}

@media (max-width: 760px) and (orientation: landscape) {
  .rank-picker {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* Blackjack Blitz homepage redesign */
.home-page {
  background:
    radial-gradient(circle at 72% 8%, rgba(242, 210, 122, 0.11), transparent 26rem),
    radial-gradient(circle at 12% 18%, rgba(14, 59, 46, 0.34), transparent 30rem),
    linear-gradient(180deg, #050505 0%, #0b0b0d 48%, #050505 100%);
}

.home-page main {
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.026) 1px, transparent 1px),
    linear-gradient(rgba(247, 241, 227, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
}

.home-page .site-header {
  background: rgba(5, 5, 5, 0.9);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1260px, calc(100% - 2rem));
  min-height: 0;
  margin: 0 auto;
  padding: 2.4rem 0 2rem;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 210, 122, 0.5), transparent);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: 26%;
  top: 13%;
  width: 16rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 210, 122, 0.7), transparent);
  opacity: 0.7;
  transform: rotate(-24deg);
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  max-width: 820px;
  font-size: 4.75rem;
  letter-spacing: 0;
}

.home-hero .hero-copy {
  max-width: 690px;
  color: #e7d7b4;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hero-proof-row span {
  padding: 0.35rem 0.62rem;
  color: var(--muted);
  border: 1px solid rgba(242, 210, 122, 0.24);
  border-radius: 6px;
  background: rgba(247, 241, 227, 0.045);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-brand-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(242, 210, 122, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(247, 241, 227, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, rgba(242, 210, 122, 0.2), transparent 14rem),
    linear-gradient(160deg, rgba(14, 59, 46, 0.54), rgba(5, 5, 5, 0.8) 54%, rgba(143, 31, 45, 0.18));
  background-size: 32px 32px, 32px 32px, auto, auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(247, 241, 227, 0.05);
  overflow: hidden;
}

.hero-brand-stage::before {
  content: "";
  position: absolute;
  inset: -35% 22% auto;
  height: 75%;
  background: radial-gradient(ellipse at center, rgba(242, 210, 122, 0.22), transparent 66%);
  opacity: 0.72;
  pointer-events: none;
}

.hero-brand-stage::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(242, 210, 122, 0.18);
  border-radius: 6px;
  pointer-events: none;
}

.hero-bjb-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(76%, 380px);
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.58));
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.trust-strip article {
  min-width: 0;
  padding: 1.2rem;
  border-top: 1px solid rgba(242, 210, 122, 0.24);
  border-bottom: 1px solid rgba(242, 210, 122, 0.24);
  background: rgba(5, 5, 5, 0.44);
}

.trust-strip article + article {
  border-left: 1px solid rgba(242, 210, 122, 0.16);
}

.trust-strip span,
.learning-path span,
.strategy-points span,
.return-grid span {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.trust-strip strong {
  display: block;
  margin: 0.45rem 0 0.3rem;
  color: var(--ivory);
  font-size: 1.05rem;
}

.trust-strip p,
.why-grid p,
.learning-path p,
.strategy-points p,
.return-grid p,
.home-signup-form p {
  margin-bottom: 0;
}

.why-grid,
.return-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.why-grid article,
.return-grid article {
  position: relative;
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(247, 241, 227, 0.072), rgba(247, 241, 227, 0.022)),
    rgba(5, 5, 5, 0.48);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.why-grid article::before,
.return-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(242, 210, 122, 0.54), transparent);
  opacity: 0.54;
}

.why-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 64px;
  margin-bottom: 1rem;
  color: var(--gold-bright);
  border: 1px solid rgba(242, 210, 122, 0.54);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(242, 210, 122, 0.14), rgba(242, 210, 122, 0.02)),
    #090909;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.34);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.learning-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: learning-step;
}

.learning-path li {
  position: relative;
  min-width: 0;
  min-height: 300px;
  padding: 1.2rem;
  border: 1px solid rgba(242, 210, 122, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(14, 59, 46, 0.34), rgba(5, 5, 5, 0.5)),
    rgba(5, 5, 5, 0.46);
  box-shadow: var(--shadow-soft);
}

.learning-path li::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  width: 26px;
  height: 26px;
  border-top: 2px solid rgba(242, 210, 122, 0.7);
  border-right: 2px solid rgba(242, 210, 122, 0.7);
  opacity: 0.42;
}

.learning-path h3 {
  margin-top: 0.7rem;
}

.learning-path a {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 800;
}

.strategy-panel,
.tools-teaser,
.signup-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.strategy-panel {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
}

.strategy-card-stack,
.tool-console {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(242, 210, 122, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(247, 241, 227, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.13), transparent 11rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.72), rgba(5, 5, 5, 0.78));
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mini-playing-card {
  position: absolute;
  left: 22%;
  top: 23%;
  display: grid;
  place-items: center;
  width: 110px;
  height: 152px;
  color: #17100a;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.42), inset 0 0 0 5px rgba(214, 167, 67, 0.12);
  font-size: 2.1rem;
  font-weight: 900;
  transform: rotate(-9deg);
}

.mini-playing-card.card-red {
  left: 47%;
  top: 33%;
  color: var(--red);
  transform: rotate(8deg);
}

.dealer-pill {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.7rem;
  color: #130b04;
  border-radius: 6px;
  background: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.strategy-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.strategy-points article {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.44);
}

.tools-teaser {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(242, 210, 122, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(143, 31, 45, 0.14), rgba(5, 5, 5, 0.55) 44%, rgba(14, 59, 46, 0.3)),
    rgba(5, 5, 5, 0.58);
  box-shadow: var(--shadow);
}

.tools-copy {
  align-self: center;
}

.console-top,
.console-hand {
  position: relative;
  z-index: 1;
}

.console-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 247, 223, 0.12);
}

.console-top span,
.console-top strong {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.console-top span {
  color: var(--gold-bright);
}

.console-hand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 82px;
  margin: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 247, 223, 0.12);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.34);
}

.console-hand span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 62px;
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--ivory);
  font-weight: 900;
}

.console-hand strong {
  margin-left: auto;
  color: var(--gold-bright);
}

.console-meter {
  margin: 1rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.12);
  overflow: hidden;
}

.console-meter i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), #fff1b0);
  animation: meter-charge 2600ms ease-in-out infinite;
}

.return-grid article {
  min-height: 190px;
}

.signup-panel {
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid rgba(242, 210, 122, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.1), transparent 12rem),
    linear-gradient(145deg, rgba(247, 241, 227, 0.075), rgba(5, 5, 5, 0.46));
  background-size: 30px 30px, auto, auto;
  box-shadow: var(--shadow-soft);
}

.lead-magnet-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(300px, 0.64fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(14, 59, 46, 0.32), transparent 16rem),
    radial-gradient(circle at bottom right, rgba(242, 210, 122, 0.12), transparent 14rem),
    linear-gradient(145deg, rgba(7, 7, 7, 0.64), rgba(5, 5, 5, 0.42));
  background-size: 32px 32px, auto, auto, auto;
  box-shadow: var(--shadow);
}

.lead-magnet-copy,
.lead-form {
  min-width: 0;
}

.lead-form {
  padding: 1rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.42);
}

.value-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.value-list li {
  margin-bottom: 0.45rem;
}

.lead-magnet-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.4rem;
}

.lead-magnet-grid article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(247, 241, 227, 0.07), rgba(247, 241, 227, 0.02)),
    rgba(5, 5, 5, 0.48);
}

.lead-magnet-grid span {
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lead-magnet-grid p {
  margin-bottom: 0;
}

.why-subscribe-section {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--gold-bright);
  text-decoration: none;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(247, 241, 227, 0.48);
}

.training-pack-hero {
  min-height: 0;
}

.landing-conversion {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 0.62fr);
  gap: 1.2rem;
  align-items: stretch;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(14, 59, 46, 0.34), transparent 16rem),
    linear-gradient(145deg, rgba(247, 241, 227, 0.075), rgba(5, 5, 5, 0.48));
  box-shadow: var(--shadow-soft);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.asset-grid article {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(247, 241, 227, 0.072), rgba(247, 241, 227, 0.022)),
    rgba(5, 5, 5, 0.48);
  box-shadow: var(--shadow-soft);
}

.asset-grid span {
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.asset-grid a {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 900;
}

.resource-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(242, 210, 122, 0.16), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(120, 214, 165, 0.08), transparent 22rem),
    var(--bg);
  color: var(--ivory);
}

.resource-page p,
.resource-page li {
  color: var(--muted);
}

.print-resource {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 4rem);
}

.resource-header,
.worksheet-panel {
  margin-bottom: 1rem;
  padding: clamp(1rem, 3vw, 1.45rem);
  border: 1px solid rgba(242, 210, 122, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.032) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.12), transparent 12rem),
    linear-gradient(145deg, rgba(247, 241, 227, 0.075), rgba(5, 5, 5, 0.52));
  background-size: 28px 28px, auto, auto;
  box-shadow: var(--shadow-soft);
}

.resource-header {
  position: relative;
  overflow: hidden;
}

.resource-header::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 3vw, 1.6rem);
  top: clamp(1rem, 3vw, 1.6rem);
  width: clamp(4.5rem, 14vw, 7rem);
  aspect-ratio: 1;
  border: 1px solid rgba(242, 210, 122, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(242, 210, 122, 0.28), transparent 58%),
    rgba(5, 5, 5, 0.18);
  opacity: 0.7;
}

.resource-header > * {
  position: relative;
  z-index: 1;
}

.resource-header h1 {
  max-width: 760px;
  margin: 0.25rem 0 0.65rem;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
}

.resource-page h2,
.resource-page h3 {
  color: var(--ivory);
}

.resource-page h2::after {
  background: var(--gold-line);
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.resource-actions .button {
  width: auto;
}

.resource-cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.resource-cover-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.35rem 0.55rem;
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.28);
  border-radius: 999px;
  background: rgba(247, 241, 227, 0.065);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resource-page .breadcrumb {
  width: 100%;
  margin: 0 0 1rem;
}

.resource-page .quick-summary,
.resource-page .key-takeaway,
.resource-page .midpage-signup {
  margin: 1rem 0;
}

.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.chart-matrix {
  display: grid;
  gap: 0.45rem;
}

.chart-matrix > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(160px, 0.85fr) minmax(200px, 1fr);
  gap: 0.6rem;
  align-items: stretch;
}

.chart-matrix strong,
.chart-matrix span {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.38);
}

.chart-matrix strong {
  color: #120d06;
  background: var(--gold-bright);
}

.strategy-mini-chart {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.strategy-mini-chart > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.52fr) repeat(3, minmax(120px, 1fr));
  gap: 0.45rem;
}

.strategy-mini-chart > div:has(> :nth-child(3):last-child) {
  grid-template-columns: minmax(110px, 0.55fr) minmax(180px, 1fr) minmax(160px, 0.8fr);
}

.strategy-mini-chart strong,
.strategy-mini-chart span {
  min-width: 0;
  padding: 0.62rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.38);
  color: var(--muted);
  line-height: 1.35;
}

.strategy-mini-chart strong {
  color: #120d06;
  background: var(--gold-bright);
}

.assumption-panel {
  border-color: rgba(120, 214, 165, 0.38);
  background:
    radial-gradient(circle at top right, rgba(120, 214, 165, 0.12), transparent 12rem),
    linear-gradient(145deg, rgba(247, 241, 227, 0.075), rgba(5, 5, 5, 0.52));
}

.cheat-tile > span,
.mistake-checklist span,
.email-sequence-grid span {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  margin-bottom: 0.55rem;
  color: #120d06;
  border-radius: 50%;
  background: var(--gold-bright);
  font-weight: 900;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.flow-strip span {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 0.55rem;
  border: 1px solid rgba(242, 210, 122, 0.22);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.38);
  color: var(--ivory);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.mistake-checklist,
.email-sequence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.email-sequence-grid {
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.mistake-checklist article,
.email-sequence-grid article {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.36);
}

.mistake-checklist h3,
.email-sequence-grid h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.mistake-checklist p,
.email-sequence-grid p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.resource-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.resource-note-grid article {
  padding: 0.9rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.36);
}

.resource-note-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.resource-note-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.resource-note-grid p {
  margin-bottom: 0;
}

.premium-chart-capture {
  position: relative;
}

.premium-chart-capture .lead-form {
  align-self: stretch;
  padding: clamp(1rem, 3vw, 1.2rem);
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.12), transparent 12rem),
    rgba(5, 5, 5, 0.52);
}

.pdf-preview-card {
  display: grid;
  gap: 0.75rem;
  align-content: space-between;
  min-height: 260px;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(242, 210, 122, 0.44);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #f8f1df, #efe3c8);
  background-size: 24px 24px, auto;
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.34);
  color: #120d04;
}

.pdf-preview-card span,
.pdf-preview-card small {
  color: #5e4516;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdf-preview-card strong {
  max-width: 8ch;
  color: #120d04;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
}

.pdf-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.pdf-preview-grid i {
  min-height: 42px;
  padding: 0.55rem;
  border: 1px solid rgba(18, 13, 4, 0.16);
  border-radius: 6px;
  background: rgba(18, 13, 4, 0.055);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 900;
}

.is-primary-resource {
  border-color: rgba(242, 210, 122, 0.55) !important;
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.16), transparent 12rem),
    linear-gradient(145deg, rgba(247, 241, 227, 0.09), rgba(5, 5, 5, 0.48)) !important;
}

.inline-lead-card,
.lead-path-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.7fr);
  gap: 1rem;
  align-items: center;
  margin: clamp(1.25rem, 4vw, 2rem) 0;
  padding: clamp(1rem, 3vw, 1.25rem);
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.032) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.12), transparent 12rem),
    rgba(5, 5, 5, 0.48);
  background-size: 28px 28px, auto, auto;
  box-shadow: var(--shadow-soft);
}

.lead-path-panel {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.25rem auto clamp(3rem, 6vw, 5rem);
}

.inline-lead-card > div > span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.inline-lead-card h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.inline-lead-card h2::after {
  display: none;
}

.inline-lead-card p {
  margin-bottom: 0;
}

.lead-capture-shell {
  position: fixed;
  z-index: 30;
  display: none;
}

.lead-capture-shell.is-visible {
  display: block;
}

.exit-capture {
  inset: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.exit-capture-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.62fr);
  gap: 1rem;
  align-items: center;
  width: min(820px, calc(100% - 2rem));
  margin: min(15vh, 8rem) auto 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(242, 210, 122, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.16), transparent 16rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.78), rgba(5, 5, 5, 0.94));
  box-shadow: var(--shadow);
}

.exit-capture-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.lead-capture-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ivory);
  border: 1px solid rgba(247, 241, 227, 0.18);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.54);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.mobile-sticky-capture {
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem;
  border: 1px solid rgba(242, 210, 122, 0.36);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.94);
  box-shadow: var(--shadow);
}

.mobile-sticky-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: center;
}

.mobile-sticky-inner strong {
  color: var(--ivory);
  line-height: 1.15;
}

.mobile-sticky-inner span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.mobile-sticky-inner .button {
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  white-space: nowrap;
}

@media print {
  .site-header,
  .site-footer,
  .resource-actions,
  .skip-link {
    display: none !important;
  }

  body,
  .resource-page {
    color: #000;
    background: #fff;
  }

  .resource-page p,
  .resource-page li,
  .resource-page h2,
  .resource-page h3 {
    color: #000;
  }

  .print-resource {
    width: 100%;
    padding: 0;
  }

  .resource-header,
  .worksheet-panel {
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
    background: #fff;
    break-inside: avoid;
    box-shadow: none;
  }

  .resource-header::after,
  .resource-page .site-conversion-band,
  .resource-page .midpage-signup {
    display: none !important;
  }

  .chart-matrix strong,
  .chart-matrix span {
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
    background: #fff;
  }

  .chart-matrix strong {
    background: #eee;
  }
}

.home-signup-form {
  display: grid;
  align-content: center;
  gap: 0.7rem;
}

.home-signup-form label {
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.signup-row input {
  min-width: 0;
  min-height: 52px;
  padding: 0.82rem 0.95rem;
  color: var(--ivory);
  border: 2px solid rgba(241, 200, 106, 0.44);
  border-radius: 6px;
  background: rgba(7, 7, 7, 0.55);
  font: inherit;
}

.signup-row input::placeholder {
  color: rgba(215, 198, 161, 0.76);
}

.home-page .guide-card,
.home-page .feature-link,
.why-grid article,
.learning-path li,
.strategy-points article,
.return-grid article,
.tool-console,
.hero-brand-stage {
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.home-page .guide-card:hover,
.home-page .feature-link:hover,
.why-grid article:hover,
.learning-path li:hover,
.strategy-points article:hover,
.return-grid article:hover {
  border-color: rgba(241, 200, 106, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.35);
}

.button {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, filter 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

@keyframes button-sweep {
  0% {
    left: -35%;
    opacity: 0;
  }
  18% {
    opacity: 0.72;
  }
  100% {
    left: 118%;
    opacity: 0;
  }
}

@keyframes meter-charge {
  0%,
  100% {
    width: 58%;
  }
  50% {
    width: 82%;
  }
}

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

@media (max-width: 1080px) {
  .home-hero,
  .lead-magnet-section,
  .landing-conversion,
  .strategy-panel,
  .tools-teaser,
  .signup-panel,
  .inline-lead-card,
  .lead-path-panel,
  .exit-capture-card {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero h1 {
    font-size: 3.85rem;
  }

  .hero-brand-stage {
    min-height: 430px;
  }

  .learning-path,
  .lead-magnet-grid,
  .asset-grid,
  .worksheet-grid,
  .resource-note-grid,
  .strategy-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-hero,
  .trust-strip,
  .why-grid,
  .return-grid,
  .learning-path,
  .lead-magnet-grid,
  .asset-grid,
  .worksheet-grid,
  .resource-note-grid,
  .strategy-points {
    grid-template-columns: 1fr;
  }

  .chart-matrix > div {
    grid-template-columns: 1fr;
  }

  .strategy-mini-chart > div,
  .strategy-mini-chart > div:has(> :nth-child(3):last-child),
  .flow-strip,
  .mistake-checklist,
  .email-sequence-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .resource-actions {
    display: grid;
  }

  .inline-lead-card,
  .lead-path-panel {
    width: 100%;
  }

  .mobile-sticky-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobile-sticky-inner .lead-capture-close {
    grid-column: 2;
    grid-row: 1;
    position: static;
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .mobile-sticky-inner .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-hero {
    width: min(1120px, calc(100% - 1.5rem));
    padding-top: 2rem;
  }

  .home-hero h1 {
    font-size: 2.85rem;
  }

  .home-hero-actions,
  .signup-row {
    grid-template-columns: 1fr;
  }

  .home-hero-actions {
    display: grid;
  }

  .hero-proof-row {
    gap: 0.45rem;
  }

  .hero-proof-row span {
    font-size: 0.76rem;
  }

  .hero-brand-stage {
    min-height: 310px;
    align-content: center;
    padding: 1rem;
  }

  .hero-bjb-logo {
    width: min(82%, 270px);
  }

  .trust-strip article,
  .trust-strip article + article {
    border: 1px solid rgba(241, 200, 106, 0.2);
    border-bottom: 0;
  }

  .trust-strip article:last-child {
    border-bottom: 1px solid rgba(241, 200, 106, 0.2);
  }

  .learning-path li {
    min-height: 0;
  }

  .strategy-card-stack,
  .tool-console {
    min-height: 280px;
  }

  .mini-playing-card {
    left: 18%;
    width: 92px;
    height: 128px;
  }

  .mini-playing-card.card-red {
    left: 48%;
  }

  .tools-teaser,
  .signup-panel {
    padding: 1rem;
  }

  .console-hand {
    margin: 0.75rem;
  }

  .console-hand span {
    width: 40px;
    height: 56px;
  }
}

.home-hero-simplified {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.86fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  min-height: 0;
  padding: clamp(1.7rem, 4vw, 3rem) 0 clamp(1.2rem, 3vw, 2rem);
}

.home-hero-simplified::after {
  display: none;
}

.home-hero-simplified h1 {
  max-width: 720px;
  font-size: clamp(3rem, 6.8vw, 5.45rem);
}

.home-hero-simplified .hero-copy {
  max-width: 650px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-training-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.034) 1px, transparent 1px),
    linear-gradient(rgba(247, 241, 227, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 50% 26%, rgba(242, 210, 122, 0.13), transparent 15rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.54), rgba(5, 5, 5, 0.78) 58%, rgba(143, 31, 45, 0.14));
  background-size: 30px 30px, 30px 30px, auto, auto;
  box-shadow: var(--shadow);
}

.hero-panel-topline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.hero-panel-topline a {
  display: grid;
  place-items: center;
  min-height: 38px;
  color: #120d04;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-panel-topline a:hover {
  transform: translateY(-1px);
}

.hero-hand-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 132px;
  padding: 1rem;
  border: 1px solid rgba(247, 241, 227, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(14, 59, 46, 0.42), transparent 17rem),
    rgba(5, 5, 5, 0.42);
}

.hero-player-cards,
.hero-dealer-cards {
  display: flex;
  align-items: center;
  min-width: 0;
}

.hero-hand-preview i {
  display: grid;
  place-items: center;
  width: clamp(58px, 8vw, 78px);
  height: clamp(82px, 11vw, 110px);
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.38), inset 0 0 0 5px rgba(214, 167, 67, 0.12);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: normal;
  font-weight: 900;
}

.hero-player-cards i:nth-child(2),
.hero-dealer-cards i:nth-child(2) {
  transform: rotate(6deg) translateX(-0.35rem);
}

.hero-dealer-cards i {
  color: #111;
}

.hero-hand-preview .is-card-back {
  color: transparent;
  background:
    linear-gradient(135deg, transparent 14px, rgba(242, 210, 122, 0.34) 14px 16px, transparent 16px),
    linear-gradient(45deg, transparent 14px, rgba(242, 210, 122, 0.34) 14px 16px, transparent 16px),
    linear-gradient(145deg, #7b1b2a, #3e0d17);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.38), inset 0 0 0 5px rgba(247, 241, 227, 0.08);
}

.hero-hand-preview strong {
  color: var(--gold-bright);
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-align: center;
}

.hero-differentiators,
.journey-grid,
.difference-grid {
  display: grid;
  gap: 0.8rem;
}

.hero-differentiators {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-differentiators a,
.journey-grid article,
.action-grid article,
.difference-grid article,
.difference-grid a {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(247, 241, 227, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(247, 241, 227, 0.072), rgba(247, 241, 227, 0.024)),
    rgba(5, 5, 5, 0.48);
  color: var(--ivory);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.hero-differentiators a:hover {
  border-color: rgba(242, 210, 122, 0.52);
  transform: translateY(-1px);
}

.difference-grid a:hover {
  border-color: rgba(242, 210, 122, 0.52);
  transform: translateY(-1px);
}

.hero-differentiators span,
.journey-grid span,
.action-grid span,
.difference-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-differentiators strong {
  display: block;
  color: var(--ivory);
  line-height: 1.25;
}

.how-it-works-section {
  padding-top: clamp(2.2rem, 5vw, 4rem);
}

.journey-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-grid article {
  min-height: 210px;
}

.journey-grid h3,
.action-grid h3,
.difference-grid h3 {
  font-size: clamp(1.28rem, 2.2vw, 1.65rem);
}

.journey-grid p,
.action-grid p,
.difference-grid p {
  margin-bottom: 1rem;
}

.journey-grid a {
  color: var(--gold-bright);
  font-weight: 900;
  text-decoration: none;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

.first-step-section,
.platform-difference-section {
  padding-top: clamp(2.2rem, 5vw, 4rem);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.action-grid article {
  display: grid;
  align-content: start;
  min-height: 280px;
}

.action-grid .button {
  align-self: end;
  justify-self: start;
  margin-top: auto;
}

.action-grid .is-featured {
  border-color: rgba(242, 210, 122, 0.56);
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.15), transparent 12rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.5), rgba(5, 5, 5, 0.58));
}

.difference-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.difference-grid article,
.difference-grid a {
  min-height: 245px;
}

.daily-blitz-band,
.subscribe-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
  gap: 1rem;
  align-items: center;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid rgba(242, 210, 122, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.032) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.12), transparent 16rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.38), rgba(5, 5, 5, 0.58));
  background-size: 30px 30px, auto, auto;
  box-shadow: var(--shadow-soft);
}

.daily-blitz-band h2,
.subscribe-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.subscribe-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.58fr);
  align-items: stretch;
}

.simplified-footer {
  grid-template-columns: 1fr;
}

.simplified-footer .footer-brand {
  max-width: 900px;
}

.simplified-footer .footer-links {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.recommended-next-step {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.78fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: stretch;
  width: min(1120px, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 2px solid rgba(242, 210, 122, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.035) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.18), transparent 16rem),
    radial-gradient(circle at bottom left, rgba(14, 59, 46, 0.34), transparent 18rem),
    linear-gradient(145deg, rgba(7, 7, 7, 0.76), rgba(5, 5, 5, 0.56));
  background-size: 30px 30px, auto, auto, auto;
  box-shadow: var(--shadow);
}

.recommended-next-step-copy {
  align-self: center;
}

.recommended-next-step h2 {
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
}

.recommended-next-step-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  min-width: 0;
}

.recommended-next-step-actions .button-large {
  grid-column: 1 / -1;
}

.next-step-email-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(247, 241, 227, 0.14);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.48);
}

.next-step-email-form label {
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.practice-this-concept {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.58fr);
  gap: clamp(1rem, 3vw, 1.4rem);
  width: min(1120px, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 3.5rem) auto;
  padding: clamp(1.15rem, 4vw, 1.8rem);
  border: 2px solid rgba(242, 210, 122, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.032) 1px, transparent 1px),
    linear-gradient(135deg, rgba(14, 59, 46, 0.36), rgba(5, 5, 5, 0) 55%),
    linear-gradient(315deg, rgba(242, 210, 122, 0.12), rgba(5, 5, 5, 0) 62%),
    linear-gradient(145deg, rgba(7, 7, 7, 0.72), rgba(5, 5, 5, 0.52));
  background-size: 30px 30px, auto, auto, auto;
  box-shadow: var(--shadow);
}

.practice-this-concept h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
}

.practice-this-concept p {
  margin-bottom: 0;
}

.practice-learned-box {
  display: grid;
  gap: 0.25rem;
  margin: 0.8rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-left: 5px solid var(--gold-bright);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.48);
}

.practice-learned-box span,
.practice-action-panel p {
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.practice-learned-box strong {
  color: var(--ivory);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.practice-action-panel {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(247, 241, 227, 0.14);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.5);
}

.practice-action-buttons {
  display: grid;
  gap: 0.7rem;
}

@media (max-width: 1080px) {
  .home-hero-simplified,
  .daily-blitz-band,
  .subscribe-section,
  .recommended-next-step,
  .practice-this-concept {
    grid-template-columns: 1fr;
  }

  .home-hero-simplified {
    min-height: auto;
  }

  .difference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-hero-simplified {
    width: min(1120px, calc(100% - 1.5rem));
    padding-top: 2rem;
  }

  .home-hero-simplified h1 {
    font-size: clamp(2.45rem, 13vw, 3.45rem);
  }

  .hero-training-panel,
  .daily-blitz-band,
  .subscribe-section,
  .recommended-next-step,
  .practice-this-concept {
    padding: 1rem;
  }

  .home-hero-simplified .hero-proof-row {
    display: none;
  }

  .hero-panel-topline,
  .journey-grid,
  .action-grid,
  .difference-grid,
  .recommended-next-step-actions,
  .simplified-footer .footer-links {
    grid-template-columns: 1fr;
  }

  .hero-panel-topline,
  .hero-hand-preview {
    display: none;
  }

  .hero-differentiators {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .hero-differentiators a {
    padding: 0.7rem;
    box-shadow: none;
  }

  .hero-differentiators span {
    font-size: 0.66rem;
  }

  .hero-differentiators strong {
    font-size: 0.84rem;
  }

  .hero-hand-preview {
    min-height: 126px;
  }

  .hero-hand-preview strong {
    font-size: 0.95rem;
  }

  .journey-grid article,
  .action-grid article,
  .difference-grid article,
  .difference-grid a {
    min-height: 0;
  }
}

.trainer-page {
  background:
    radial-gradient(circle at 15% 4%, rgba(242, 210, 122, 0.14), transparent 32rem),
    radial-gradient(circle at 84% 12%, rgba(14, 59, 46, 0.32), transparent 30rem),
    linear-gradient(135deg, #050505 0%, #0a0a0c 48%, #06120d 100%);
}

.trainer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  min-height: 0;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.4rem) 0 clamp(1rem, 3vw, 2rem);
}

.trainer-hero-copy {
  max-width: 760px;
}

.trainer-hero-copy h1 {
  font-size: clamp(2.45rem, 5.8vw, 4.7rem);
}

.trainer-hero-copy > p {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
}

.trainer-rule-note {
  max-width: 680px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-left: 4px solid var(--gold-bright);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.48);
  color: var(--ivory);
  font-size: 0.88rem;
  line-height: 1.45;
}

.trainer-hero-table {
  position: relative;
  min-height: 290px;
  border: 1px solid rgba(242, 210, 122, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(247, 241, 227, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(242, 210, 122, 0.19), transparent 13rem),
    linear-gradient(150deg, rgba(14, 59, 46, 0.86), rgba(5, 5, 5, 0.82));
  background-size: 30px 30px, 30px 30px, auto, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trainer-felt-rail {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(242, 210, 122, 0.22);
  border-radius: 8px;
}

.trainer-preview-card,
.scenario-card-face {
  display: grid;
  place-items: center;
  width: 58px;
  height: 80px;
  color: var(--red);
  border: 2px solid var(--gold);
  border-radius: 8px;
  background:
    linear-gradient(145deg, #fffdf8, #f4ead5),
    var(--ivory);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.36), inset 0 0 0 4px rgba(214, 167, 67, 0.14);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.78rem;
  font-weight: 800;
  line-height: 1;
}

.trainer-preview-card {
  position: absolute;
}

.dealer-preview {
  left: 50%;
  top: 18%;
  transform: translateX(-50%) rotate(4deg);
}

.player-preview-one {
  left: 28%;
  bottom: 21%;
  transform: rotate(-8deg);
}

.player-preview-two {
  left: 47%;
  bottom: 18%;
  transform: rotate(9deg);
}

.trainer-hero-table strong {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.42rem 0.62rem;
  color: #120d04;
  border-radius: 6px;
  background: var(--gold-bright);
  font-weight: 900;
  text-transform: uppercase;
}

.trainer-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
  padding-top: clamp(0.5rem, 2vw, 1rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.5rem);
}

.blackjack-trainer-shell {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(0.65rem, 2vw, 1rem);
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.032) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(242, 210, 122, 0.12), transparent 18rem),
    radial-gradient(circle at bottom right, rgba(14, 59, 46, 0.34), transparent 20rem),
    linear-gradient(145deg, rgba(7, 7, 7, 0.8), rgba(5, 5, 5, 0.54));
  background-size: 32px 32px, auto, auto, auto;
  box-shadow: var(--shadow);
}

.trainer-app-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding: clamp(0.55rem, 1.5vw, 0.75rem);
}

.trainer-app-header h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
}

.trainer-app-header p {
  max-width: 620px;
  font-size: 0.94rem;
  margin-bottom: 0;
}

.trainer-assumption-badge {
  flex: 0 0 auto;
  max-width: 290px;
  padding: 0.48rem 0.64rem;
  color: var(--gold-bright);
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-radius: 8px;
  background: rgba(247, 241, 227, 0.07);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.trainer-assumption-badge summary {
  cursor: pointer;
  list-style-position: inside;
}

.trainer-assumption-badge p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.trainer-practice-settings {
  margin: 0.2rem 0 0.65rem;
  border: 1px solid rgba(242, 210, 122, 0.18);
  border-radius: 8px;
  background: rgba(247, 241, 227, 0.035);
}

.trainer-practice-settings summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.trainer-practice-settings summary::-webkit-details-marker {
  display: none;
}

.trainer-practice-settings summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.trainer-practice-settings[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.trainer-settings-body {
  padding-bottom: 0.35rem;
}

.trainer-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 0.6rem;
  padding: clamp(0.45rem, 1.5vw, 0.7rem);
}

.trainer-mode-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0;
}

.trainer-mode-controls legend {
  width: 100%;
  text-align: center;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trainer-mode-controls button {
  flex: 0 1 150px;
  min-height: 42px;
  padding: 0.5rem 0.6rem;
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.3);
  border-radius: 6px;
  background: rgba(247, 241, 227, 0.055);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.trainer-mode-controls button.is-active {
  color: #120d04;
  border-color: rgba(242, 210, 122, 0.78);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.trainer-controls label {
  display: grid;
  gap: 0.35rem;
}

.trainer-controls span,
.trainer-scoreboard span,
.scenario-zone > span {
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trainer-controls select {
  min-height: 42px;
  width: 100%;
  padding: 0.52rem 0.68rem;
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-radius: 6px;
  background: #090909;
  font: inherit;
  font-weight: 800;
}

.trainer-mode-note {
  margin: 0 0.7rem 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.trainer-mode-note.is-complete {
  color: var(--gold-bright);
  font-weight: 900;
}

.trainer-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.22fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.trainer-scoreboard {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.5rem;
  padding: clamp(0.45rem, 1.5vw, 0.7rem);
}

.trainer-scoreboard > div {
  min-width: 0;
  padding: 0.62rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.44);
}

.trainer-scoreboard strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--ivory);
  font-size: clamp(1.28rem, 2.6vw, 1.85rem);
  line-height: 1;
}

.trainer-session-progress {
  grid-column: 1 / -1;
}

.trainer-session-progress i {
  display: block;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: rgba(247, 241, 227, 0.12);
  overflow: hidden;
}

.trainer-session-progress b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), #fff1b0);
  transition: width 220ms ease;
}

.scenario-card {
  min-width: 0;
  padding: clamp(0.75rem, 2vw, 1rem);
  scroll-margin-top: 92px;
  border: 1px solid rgba(242, 210, 122, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.12), transparent 16rem),
    linear-gradient(150deg, rgba(14, 59, 46, 0.42), rgba(5, 5, 5, 0.72) 50%, rgba(143, 31, 45, 0.12));
  box-shadow: var(--shadow-soft);
}

.scenario-card-top {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  text-align: center;
}

.scenario-card-top h3 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
}

.scenario-card-top > span {
  max-width: none;
  color: rgba(247, 241, 227, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.scenario-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0.55rem 0 0.7rem;
}

.scenario-badges span {
  padding: 0.24rem 0.48rem;
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.26);
  border-radius: 999px;
  background: rgba(247, 241, 227, 0.07);
  font-size: 0.72rem;
  font-weight: 800;
}

.scenario-table {
  display: grid;
  grid-template-columns: minmax(118px, 150px) minmax(220px, 360px);
  gap: 0.6rem;
  justify-content: center;
  margin: 0.7rem 0;
}

.scenario-zone {
  min-width: 0;
  min-height: 128px;
  padding: 0.72rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(247, 241, 227, 0.022) 1px, transparent 1px),
    rgba(5, 5, 5, 0.42);
  background-size: 24px 24px, 24px 24px, auto;
}

.dealer-zone {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.45rem;
  text-align: center;
}

.player-zone {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.55rem;
  border-color: rgba(242, 210, 122, 0.46);
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.034) 1px, transparent 1px),
    linear-gradient(rgba(247, 241, 227, 0.028) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(242, 210, 122, 0.12), transparent 9rem),
    rgba(5, 5, 5, 0.52);
  background-size: 24px 24px, 24px 24px, auto, auto;
  box-shadow: inset 0 0 0 1px rgba(242, 210, 122, 0.18);
  text-align: center;
}

.scenario-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
}

.answer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.65rem;
}

.answer-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 0 1 126px;
  min-height: 46px;
  padding: 0.58rem 0.55rem;
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.38);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(247, 241, 227, 0.095), rgba(247, 241, 227, 0.035)),
    rgba(5, 5, 5, 0.52);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.answer-options kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  color: #150f05;
  border-radius: 4px;
  background: rgba(242, 210, 122, 0.92);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.trainer-shortcut-hint {
  margin: 0.5rem 0 0;
  color: rgba(207, 192, 162, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.answer-options button:hover:not(:disabled) {
  border-color: rgba(242, 210, 122, 0.72);
  background: rgba(247, 241, 227, 0.12);
  transform: translateY(-1px);
}

.answer-options button:disabled {
  cursor: default;
  opacity: 0.78;
}

.answer-options button.is-correct {
  color: #f6fff9;
  border-color: rgba(92, 227, 156, 0.78);
  background:
    linear-gradient(180deg, rgba(32, 128, 84, 0.88), rgba(12, 76, 52, 0.9));
}

.answer-options button.is-wrong {
  color: #fff5f5;
  border-color: rgba(255, 120, 134, 0.82);
  background:
    linear-gradient(180deg, rgba(143, 31, 45, 0.92), rgba(86, 16, 25, 0.9));
}

.answer-options button.is-selected {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.feedback-panel {
  margin-top: 0.75rem;
  padding: clamp(0.75rem, 2vw, 0.95rem);
  border: 1px solid rgba(242, 210, 122, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(242, 210, 122, 0.1), transparent 12rem),
    rgba(5, 5, 5, 0.58);
  animation: trainer-feedback-in 220ms ease both;
}

.feedback-panel.is-correct {
  border-color: rgba(92, 227, 156, 0.45);
}

.feedback-panel.is-wrong {
  border-color: rgba(255, 120, 134, 0.45);
}

.feedback-panel.is-correct .feedback-result strong,
.feedback-panel.is-wrong .feedback-result strong {
  animation: trainer-result-pulse 420ms ease both;
}

.feedback-result {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  margin-bottom: 0.5rem;
}

.feedback-result > div {
  min-width: 0;
}

.feedback-result .button {
  width: min(100%, 260px);
  min-height: 42px;
  padding: 0.55rem 0.8rem;
}

.feedback-result span {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.feedback-result strong {
  color: var(--ivory);
  font-size: clamp(1.08rem, 2.4vw, 1.45rem);
  line-height: 1.15;
}

.feedback-result p,
.feedback-panel > p {
  margin-bottom: 0.55rem;
  line-height: 1.45;
}

.feedback-main-idea {
  padding: 0.55rem 0.65rem;
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.22);
  border-radius: 8px;
  background: rgba(242, 210, 122, 0.08);
  font-weight: 900;
}

.feedback-panel details {
  margin: 0.8rem 0;
  border-top: 1px solid rgba(247, 241, 227, 0.12);
  border-bottom: 1px solid rgba(247, 241, 227, 0.12);
}

.feedback-panel summary {
  min-height: 42px;
  padding: 0.58rem 0;
  color: var(--gold-bright);
  cursor: pointer;
  font-weight: 900;
}

.feedback-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding-bottom: 0.65rem;
}

.feedback-detail-grid article {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(247, 241, 227, 0.045);
}

.feedback-detail-grid h4,
.related-learning h4 {
  margin: 0 0 0.35rem;
  color: var(--ivory);
  font-size: 0.95rem;
}

.feedback-detail-grid p {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.related-learning {
  display: grid;
  gap: 0.32rem;
  margin: 0.55rem 0 0.75rem;
}

.related-learning div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-learning a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(242, 210, 122, 0.24);
  border-radius: 999px;
  background: rgba(247, 241, 227, 0.06);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.trainer-email-prompt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(280px, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 1rem;
  padding: clamp(1rem, 3vw, 1.25rem);
  border: 1px solid rgba(242, 210, 122, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.14), transparent 12rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.52), rgba(5, 5, 5, 0.72));
  box-shadow: var(--shadow-soft);
}

.trainer-email-prompt[hidden] {
  display: none;
}

.trainer-email-prompt h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.trainer-email-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ivory);
  border: 1px solid rgba(247, 241, 227, 0.18);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.54);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.trainer-email-prompt form {
  padding-right: 2.5rem;
}

.trainer-email-prompt label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.trainer-summary-panel,
.trainer-mastery-panel {
  display: grid;
  gap: 1rem;
  margin: 1rem;
  padding: clamp(0.85rem, 2vw, 1rem);
  border: 1px solid rgba(242, 210, 122, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.1), transparent 14rem),
    rgba(5, 5, 5, 0.46);
}

.trainer-summary-panel {
  grid-template-columns: minmax(240px, 0.9fr) minmax(220px, 0.72fr);
  align-items: center;
}

.trainer-summary-panel[hidden] {
  display: none;
}

.trainer-summary-panel h2,
.trainer-mastery-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.session-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.session-summary-stats div {
  padding: 0.65rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(247, 241, 227, 0.045);
}

.session-summary-stats span,
.mastery-grid span {
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.session-summary-stats strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--ivory);
  font-size: 1.35rem;
  line-height: 1.1;
}

.session-study-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.session-share {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(247, 241, 227, 0.045);
}

.session-share p {
  margin: 0;
  color: var(--ivory);
  font-size: 0.9rem;
}

.session-study-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(242, 210, 122, 0.24);
  border-radius: 999px;
  background: rgba(247, 241, 227, 0.06);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.trainer-summary-panel .button {
  justify-self: start;
}

.trainer-mastery-panel {
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  align-items: center;
}

.trainer-clear-progress {
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  color: var(--muted);
  border: 1px solid rgba(247, 241, 227, 0.14);
  border-radius: 6px;
  background: rgba(247, 241, 227, 0.04);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.trainer-clear-progress:hover {
  color: var(--ivory);
  border-color: rgba(242, 210, 122, 0.38);
}

.mastery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.mastery-grid article {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(247, 241, 227, 0.045);
}

.mastery-grid strong {
  display: block;
  margin: 0.15rem 0 0.35rem;
  color: var(--ivory);
  font-size: 1.28rem;
}

.mastery-grid i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(247, 241, 227, 0.12);
  overflow: hidden;
}

.mastery-grid b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

.mastery-grid small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.trainer-faq {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.trainer-faq details {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(242, 210, 122, 0.24);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.42);
}

.trainer-faq details + details {
  margin-top: 0.7rem;
}

.trainer-faq summary {
  color: var(--ivory);
  cursor: pointer;
  font-weight: 900;
}

.trainer-faq p {
  margin: 0.55rem 0 0;
}

.trainer-seo-copy {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.path-hero {
  min-height: 0;
}

.learning-paths-page .path-hero {
  grid-template-columns: 1fr;
  gap: 0.45rem;
  min-height: 0;
  padding: clamp(1.1rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem);
}

.learning-paths-page .path-hero::before {
  display: none;
}

.learning-paths-page .path-hero h1 {
  max-width: 720px;
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
}

.learning-paths-page .path-hero > p:not(.eyebrow):not(.path-hero-status) {
  max-width: 760px;
  margin-bottom: 0;
  color: #e2d3b2;
}

.path-hero-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  margin: 0.1rem 0 0;
  padding: 0.42rem 0.65rem;
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.28);
  border-radius: 6px;
  background: rgba(247, 241, 227, 0.055);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.learning-paths-page .path-hero .button-row {
  margin-top: 0.85rem;
}

.path-resume-panel,
.article-learning-banner,
.article-path-next-card,
.path-email-nudge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(242, 210, 122, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.028) 1px, transparent 1px),
    linear-gradient(145deg, rgba(14, 59, 46, 0.32), rgba(5, 5, 5, 0.58));
  background-size: 28px 28px, auto;
  box-shadow: var(--shadow-soft);
}

.path-resume-panel,
.path-email-nudge {
  padding: clamp(1rem, 3vw, 1.35rem);
}

.path-resume-actions {
  display: grid;
  gap: 0.75rem;
}

.path-resume-actions strong {
  color: var(--gold-bright);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.path-overview-grid,
.trainer-preset-grid,
.achievement-grid,
.path-mastery-grid,
.beginner-roadmap-grid,
.path-loop-steps {
  display: grid;
  gap: 1rem;
}

.path-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learning-paths-page .path-overview-grid,
.learning-paths-page .path-mastery-panel,
.learning-paths-page .trainer-preset-panel,
.learning-paths-page .achievements-panel {
  padding-top: clamp(1.25rem, 3vw, 2.15rem);
  padding-bottom: clamp(1.25rem, 3vw, 2.15rem);
}

.learning-paths-page .path-overview-grid {
  padding-top: clamp(1.8rem, 3.6vw, 2.8rem);
}

.path-overview-grid .section-heading,
.trainer-preset-panel .section-heading,
.achievements-panel .section-heading,
.path-mastery-panel .section-heading {
  grid-column: 1 / -1;
  margin-bottom: clamp(0.7rem, 1.6vw, 1rem);
}

.path-overview-card,
.trainer-preset-grid a,
.achievement-grid article,
.path-mastery-grid article,
.beginner-roadmap-grid article,
.beginner-roadmap-grid .home-training-tool-card,
.path-loop-steps article,
.learning-module-list li {
  position: relative;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(242, 210, 122, 0.24);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.42);
}

.path-overview-card.is-complete,
.achievement-grid article.is-earned,
.learning-module-list li.is-complete,
.beginner-roadmap-grid article.is-complete {
  border-color: rgba(120, 214, 165, 0.58);
  background: linear-gradient(145deg, rgba(14, 83, 59, 0.44), rgba(5, 5, 5, 0.48));
}

.path-overview-card > span,
.trainer-preset-grid span,
.achievement-grid span,
.path-mastery-grid span,
.beginner-roadmap-grid span,
.learning-module-list li > span,
.article-path-next-card span {
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.path-overview-card h3,
.beginner-roadmap-grid h3,
.learning-module-list h3 {
  margin: 0;
}

.path-overview-card p,
.trainer-preset-grid small,
.achievement-grid small,
.path-mastery-grid small,
.beginner-roadmap-grid p,
.learning-module-list p,
.learning-module-list small,
.path-loop-steps span {
  color: var(--muted);
}

.path-overview-card a,
.trainer-preset-grid a,
.beginner-roadmap-grid a {
  color: var(--gold-bright);
  font-weight: 900;
  text-decoration: none;
}

.path-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.path-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  color: #100d06;
  border: 1px solid rgba(242, 210, 122, 0.48);
  border-radius: 6px;
  background: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.path-card-actions a + a {
  color: var(--ivory);
  background: rgba(255, 247, 223, 0.07);
}

.path-card-actions a:hover {
  transform: translateY(-1px);
}

.trainer-preset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trainer-preset-grid a {
  min-height: 128px;
}

.trainer-preset-heading,
.path-skill-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  justify-content: space-between;
}

.trainer-preset-heading {
  justify-content: flex-start;
}

.trainer-preset-heading strong,
.path-skill-heading strong {
  min-width: 0;
}

.achievement-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.achievement-grid article:not(.is-earned) {
  opacity: 0.74;
}

.path-mastery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-mastery-grid strong,
.achievement-grid strong {
  color: var(--ivory);
  font-size: 1.05rem;
}

.path-loop-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-loop-steps strong {
  color: var(--gold-bright);
}

.beginner-roadmap-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.beginner-roadmap-grid.is-training-tools-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.25rem);
}

.beginner-roadmap-grid .home-training-tool-card {
  min-height: 168px;
  color: var(--ivory);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.beginner-roadmap-grid .home-training-tool-card:hover {
  border-color: rgba(242, 210, 122, 0.58);
  background:
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.12), transparent 11rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.48), rgba(5, 5, 5, 0.5));
  transform: translateY(-2px);
}

.home-tool-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}

.beginner-roadmap-grid article::after,
.learning-module-list li::after {
  content: attr(data-progress-status);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beginner-roadmap-grid article.is-complete::after,
.learning-module-list li.is-complete::after {
  color: #78d6a5;
}

.learning-module-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.learning-module-list li {
  grid-template-columns: minmax(0, 0.28fr) minmax(0, 0.78fr) minmax(240px, 0.6fr);
  align-items: center;
}

.learning-module-list li > span {
  align-self: start;
}

.learning-module-list .path-actions {
  margin-top: 0;
}

.article-order-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.25rem;
}

.article-order-list a {
  color: var(--gold-bright);
  font-weight: 900;
}

.article-learning-banner,
.article-path-next-card {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto;
  padding: clamp(1rem, 3vw, 1.25rem);
}

.article-learning-banner h2,
.article-path-next-card h2,
.path-email-nudge h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.article-learning-banner h2::after,
.article-path-next-card h2::after,
.path-email-nudge h2::after {
  display: none;
}

.article-learning-actions {
  display: grid;
  gap: 0.7rem;
}

.path-email-nudge {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto;
}

.path-email-nudge > button {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.28);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.5);
  cursor: pointer;
}

.mobile-next-step {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 40;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(242, 210, 122, 0.42);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}

.mobile-next-step span {
  min-width: 0;
  color: var(--ivory);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-next-step a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.62rem;
  color: #100d06;
  border-radius: 6px;
  background: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.mobile-next-step a:last-child {
  color: var(--ivory);
  border: 1px solid rgba(242, 210, 122, 0.34);
  background: rgba(255, 247, 223, 0.08);
}

.trainer-preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.trainer-preset-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  color: var(--gold-bright);
  border: 1px solid rgba(242, 210, 122, 0.26);
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.06);
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.trainer-preset-strip a.is-active {
  color: #100d06;
  border-color: var(--gold-bright);
  background: var(--gold-bright);
}

.path-resume-panel {
  display: none;
}

.your-next-step {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(2.5rem, 6vw, 4.5rem) auto clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid rgba(242, 210, 122, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.034) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(242, 210, 122, 0.16), transparent 14rem),
    linear-gradient(145deg, rgba(14, 59, 46, 0.36), rgba(5, 5, 5, 0.7));
  background-size: 28px 28px, auto, auto;
  box-shadow: var(--shadow-soft);
}

.next-step-header {
  display: grid;
  gap: 0.35rem;
  max-width: 820px;
  margin-bottom: 1rem;
}

.next-step-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.next-step-header h2::after {
  display: none;
}

.next-step-header p:last-child {
  margin: 0;
  color: var(--muted);
}

.next-step-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(260px, 0.86fr);
  gap: 0.85rem;
}

.next-step-progress-card,
.next-step-support-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.46);
}

.your-next-step.is-path-complete .next-step-progress-card:first-child,
.your-next-step.is-all-complete .next-step-progress-card:first-child {
  border-color: rgba(120, 214, 165, 0.62);
  background:
    linear-gradient(145deg, rgba(14, 83, 59, 0.5), rgba(5, 5, 5, 0.5));
}

.next-step-progress-card > span,
.next-step-support-card > span {
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-step-progress-card > strong,
.next-step-support-card > strong {
  color: var(--ivory);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.next-step-meter {
  display: grid;
  gap: 0.35rem;
}

.next-step-meter small,
.next-step-progress-card p,
.next-step-support-card p,
.next-step-stat-row small {
  color: var(--muted);
}

.next-step-progress-card p,
.next-step-support-card p {
  margin: 0;
}

.next-step-progress-card p b {
  color: var(--gold-bright);
}

.next-step-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.next-step-stat-row div {
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid rgba(247, 241, 227, 0.1);
  border-radius: 6px;
  background: rgba(255, 247, 223, 0.045);
}

.next-step-stat-row b {
  display: block;
  color: var(--gold-bright);
  font-size: 1.18rem;
  line-height: 1;
}

.next-step-stat-row small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
}

.next-step-email-form[hidden] {
  display: none;
}

.your-next-step [hidden] {
  display: none !important;
}

.next-step-email-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.next-step-support-card .signup-row {
  grid-template-columns: minmax(0, 1fr);
}

.next-step-support-card .signup-row .button {
  width: 100%;
}

@keyframes trainer-feedback-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trainer-result-pulse {
  0% {
    transform: scale(0.985);
  }
  55% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .trainer-hero,
  .trainer-intro,
  .trainer-layout,
  .trainer-email-prompt {
    grid-template-columns: 1fr;
  }

  .trainer-controls,
  .trainer-summary-panel,
  .trainer-mastery-panel,
  .mastery-grid {
    grid-template-columns: 1fr;
  }

  .trainer-hero {
    min-height: 0;
  }

  .trainer-scoreboard {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 0;
  }

  .scenario-table,
  .feedback-detail-grid {
    grid-template-columns: 1fr;
  }

  .scenario-table {
    justify-content: stretch;
  }

  .path-resume-panel,
  .article-learning-banner,
  .article-path-next-card,
  .path-email-nudge,
  .next-step-grid,
  .learning-module-list li {
    grid-template-columns: 1fr;
  }

  .path-overview-grid,
  .trainer-preset-grid,
  .achievement-grid,
  .path-mastery-grid,
  .beginner-roadmap-grid,
  .beginner-roadmap-grid.is-training-tools-grid,
  .path-loop-steps,
  .next-step-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body:has(.mobile-next-step) {
    padding-bottom: 4.6rem;
  }

  .mobile-next-step {
    display: grid;
  }

  .path-overview-grid,
  .trainer-preset-grid,
  .achievement-grid,
  .path-mastery-grid,
  .beginner-roadmap-grid,
  .beginner-roadmap-grid.is-training-tools-grid,
  .path-loop-steps,
  .next-step-stat-row {
    grid-template-columns: 1fr;
  }

  .your-next-step {
    width: min(100% - 1rem, 1180px);
    margin-top: 2rem;
    padding: 1rem;
  }

  .article-learning-banner,
  .article-path-next-card,
  .path-email-nudge {
    width: min(100% - 1rem, 1120px);
  }

  .trainer-preset-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .trainer-preset-strip a {
    justify-content: center;
    border-radius: 6px;
    text-align: center;
  }

  .trainer-hero,
  .blackjack-trainer-shell {
    width: min(100% - 1rem, 1180px);
  }

  .trainer-hero-copy h1 {
    font-size: 2.35rem;
  }

  .trainer-hero-table {
    min-height: 190px;
  }

  .trainer-preview-card,
  .scenario-card-face {
    width: 50px;
    height: 70px;
    font-size: 1.5rem;
  }

  .trainer-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.35rem 0.2rem 0.55rem;
    border-bottom: 1px solid rgba(242, 210, 122, 0.16);
  }

  .trainer-scoreboard > div {
    padding: 0.5rem 0.55rem;
  }

  .trainer-scoreboard strong {
    font-size: 1.25rem;
  }

  .trainer-session-progress {
    padding-top: 0.45rem;
  }

  .trainer-controls,
  .answer-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
  }

  .trainer-mode-controls {
    grid-column: 1 / -1;
  }

  .answer-options {
    display: grid;
  }

  .answer-options button {
    width: 100%;
  }

  .answer-options kbd {
    display: none;
  }

  .trainer-shortcut-hint {
    display: none;
  }

  .session-summary-stats {
    grid-template-columns: 1fr;
  }

  .session-share {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trainer-summary-panel,
  .trainer-mastery-panel {
    margin: 0.75rem 0 0;
  }

  .trainer-practice-settings {
    margin-bottom: 0.5rem;
  }

  .trainer-practice-settings summary {
    justify-content: space-between;
    min-height: 44px;
  }

  .trainer-mastery-panel {
    gap: 0.65rem;
  }

  .mastery-grid {
    gap: 0.4rem;
  }

  .mastery-grid article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.5rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
  }

  .mastery-grid span {
    min-width: 0;
  }

  .mastery-grid strong {
    margin: 0;
    font-size: 1rem;
  }

  .mastery-grid i,
  .mastery-grid small {
    grid-column: 1 / -1;
  }

  .trainer-app-header,
  .scenario-card-top {
    display: grid;
    gap: 0.45rem;
  }

  .trainer-assumption-badge {
    max-width: none;
    border-radius: 6px;
    text-align: left;
  }

  .scenario-card-top > span {
    max-width: none;
    text-align: center;
  }

  .scenario-zone {
    min-height: 104px;
  }

  .answer-options button {
    min-height: 48px;
  }

  .answer-options button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .trainer-email-prompt {
    margin: 1rem 0 0;
  }

  .trainer-email-prompt form {
    padding-right: 0;
  }

  .feedback-result { gap: 0.45rem; }
}

@media (max-width: 430px) {
  .trainer-controls {
    grid-template-columns: 1fr;
  }

  .trainer-scoreboard > div {
    padding: 0.55rem;
  }

  .trainer-scoreboard span {
    font-size: 0.68rem;
  }
}

@media (max-width: 980px) and (orientation: landscape) {
  .trainer-page .scenario-table {
    grid-template-columns: minmax(110px, 140px) minmax(220px, 340px);
    justify-content: center;
  }

  .trainer-page .scenario-zone {
    min-height: 112px;
  }
}

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