/* HouseEdge — "the pit manual".
   Built from the table itself: baize felt, gold felt-print rules and small caps, black-acrylic table-limit placards,
   ivory card stock and clay chips. Bodoni Moda matches the didone of the HouseEdge mark; Schibsted Grotesk carries the text;
   IBM Plex Mono sets every number you might compare. */
:root {
  --ink: #050d0a;
  --ink-2: #081511;
  --panel: #0b1a14;
  --panel-2: #0f231b;
  --felt: #0e5236;
  --felt-2: #0a3d28;
  --felt-hi: #16704a;
  --cream: #f1e8d3;
  --text: #dfe6df;
  --muted: #a3b2a8;
  --faint: #6f8378;
  --line: rgba(241, 232, 211, 0.14);
  --line-2: rgba(241, 232, 211, 0.08);
  --gold: #d9b566;
  --gold-2: #f0d392;
  --gold-ink: #231a06;
  --red: #d2453a;
  --red-card: #c3261f;
  --green: #5fc38e;
  --black-chip: #141414;
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 14px;
  --pad: clamp(18px, 4vw, 56px);
  --maxw: 1240px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(22, 112, 74, 0.16), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .8 0 0 0 0 .7 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--cream);
  margin: 0;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}
h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.02;
}
h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.12;
}
h4 {
  font-size: 19px;
  margin: 22px 0 8px;
}
p {
  margin: 0 0 12px;
}
strong,
b {
  color: var(--cream);
  font-weight: 700;
}
em {
  font-style: italic;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}
.kicker {
  font: 600 12px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.fine {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.note {
  color: var(--muted);
}
.mt {
  margin-top: 26px;
}

/* felt print: text between two gold rules, the way "INSURANCE PAYS 2 TO 1" is printed */
.plaque {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font: 700 13px/1 var(--serif);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.plaque::before,
.plaque::after {
  content: "";
  flex: 1;
  max-width: 90px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.8;
}
.plaque::before {
  max-width: 42px;
}
.plaque.small {
  font-size: 11px;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
  justify-content: center;
}
.plaque.small::before,
.plaque.small::after {
  max-width: 60px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 700 15px var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  box-shadow:
    0 10px 30px rgba(217, 181, 102, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover {
  transform: translateY(-1px);
}
.btn-line {
  border-color: rgba(241, 232, 211, 0.35);
  color: var(--cream);
  background: rgba(5, 13, 10, 0.35);
}
.btn-line:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}
/* a clay chip: six edge inserts drawn with a conic gradient */
.chip-btn {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  flex: 0 0 auto;
  background:
    radial-gradient(circle, #f4ecda 0 44%, #b3261e 44.5% 49%, transparent 49.5%),
    conic-gradient(
      from -15deg,
      #f4ecda 0 30deg,
      #b3261e 30deg 60deg,
      #f4ecda 60deg 90deg,
      #b3261e 90deg 120deg,
      #f4ecda 120deg 150deg,
      #b3261e 150deg 180deg,
      #f4ecda 180deg 210deg,
      #b3261e 210deg 240deg,
      #f4ecda 240deg 270deg,
      #b3261e 270deg 300deg,
      #f4ecda 300deg 330deg,
      #b3261e 330deg 360deg
    );
  box-shadow:
    0 0 0 4px #8d1b15,
    0 10px 0 -2px #6a130f,
    0 18px 30px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.chip-btn span {
  position: absolute;
  inset: 22%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px dashed rgba(179, 38, 30, 0.55);
  font: 800 16px var(--serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d1b15;
}
.chip-btn:hover {
  transform: translateY(-2px) rotate(-8deg);
}
.chip-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 4px #8d1b15,
    0 5px 0 -2px #6a130f,
    0 8px 16px rgba(0, 0, 0, 0.5);
}
.chip-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
.seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 13, 10, 0.6);
  gap: 2px;
  flex-wrap: wrap;
}
.seg button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 999px;
  font: 600 14px var(--sans);
  min-height: 40px;
}
.seg button[aria-selected="true"],
.seg button[aria-checked="true"] {
  background: var(--felt);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(217, 181, 102, 0.5);
}

/* fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 600 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
}
.field input,
.field select,
.unit {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: 10px;
  padding: 0 12px;
  font: 500 18px var(--mono);
  color: var(--cream);
  letter-spacing: 0;
  text-transform: none;
}
.field select {
  font: 600 16px var(--sans);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(-45deg, transparent 50%, var(--gold) 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.unit {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  color: var(--gold);
}
.unit input {
  border: 0;
  background: none;
  padding: 0;
  min-height: 46px;
}
.field input:focus,
.field select:focus,
.unit:focus-within {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 181, 102, 0.15);
}
.unit input:focus {
  box-shadow: none;
}

/* ------------------------------------------------------------------ top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 var(--pad);
  background: rgba(5, 13, 10, 0.9);
  border-bottom: 1px solid rgba(217, 181, 102, 0.22);
}
.bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: rgba(217, 181, 102, 0.12);
}
.bar-logo img {
  height: 50px;
  width: auto;
}
.bar-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
}
.bar-nav a {
  font: 600 14px var(--sans);
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.bar-nav a:hover {
  color: var(--gold-2);
  border-color: var(--gold);
}
.bar-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--cream);
  font: 600 14px var(--sans);
}
.bar-help span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font: 800 15px var(--serif);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: min(100svh - 72px, 900px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(40px, 7vh, 90px) var(--pad) 26px;
  isolation: isolate;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("media/hero.webp") 62% 50% / cover no-repeat;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 10, 8, 0.96) 0%,
      rgba(4, 10, 8, 0.82) 32%,
      rgba(4, 10, 8, 0.2) 62%,
      rgba(4, 10, 8, 0.1) 100%
    ),
    linear-gradient(0deg, rgba(4, 10, 8, 0.98) 0%, rgba(4, 10, 8, 0.4) 30%, transparent 55%);
}
.hero-copy {
  max-width: 640px;
  align-self: center;
}
.hero h1 {
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 em {
  font-weight: 500;
  color: var(--gold-2);
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: #d3dcd5;
  max-width: 560px;
  margin-bottom: 26px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* the price list: a rate card — every common bet on one shared scale */
.ladder {
  margin: clamp(30px, 5vh, 54px) 0 0;
  max-width: 1100px;
}
.ladder figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.ladder figcaption b {
  font-family: var(--serif);
  font-size: 17px;
  margin-right: 6px;
}
.ladder-rule {
  display: none;
}
.ladder-tags {
  list-style: none;
  margin: 0;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  gap: 4px 36px;
  border-radius: 14px;
  background: rgba(4, 10, 8, 0.78);
  box-shadow: inset 0 0 0 1px rgba(217, 181, 102, 0.3);
}
.ladder-tags li {
  animation: tagIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--v) * 45ms + 250ms);
}
.ladder-tags a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36% 64px;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 1px dashed rgba(241, 232, 211, 0.1);
}
.ladder-tags li:nth-child(5) a,
.ladder-tags li:nth-child(10) a {
  border-bottom: 0;
}
.ladder-tags span {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ladder-tags a::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 8px;
  border-radius: 2px;
  width: max(3px, calc(var(--v) / 15 * 100%));
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 12px rgba(217, 181, 102, 0.25);
}
.ladder-tags b {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  font: 600 14px var(--mono);
  color: var(--gold-2);
}
.ladder-tags span {
  grid-column: 1;
  grid-row: 1;
}
.ladder-tags a:hover span {
  color: var(--gold-2);
}
@keyframes tagIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ------------------------------------------------------------------ generic section */
.sec {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) var(--pad) 0;
}
.sec-head {
  max-width: 820px;
  margin-bottom: 38px;
}
.sec-head p:not(.plaque) {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
  max-width: 700px;
}

/* table-limit placards */
.placards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.placards li {
  grid-column: span 3;
}
.placards li:nth-child(n + 5) {
  grid-column: span 4;
}
.placard {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s,
    box-shadow 0.3s;
}
.placard:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 181, 102, 0.55);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.placard-img {
  display: block;
  aspect-ratio: 16 / 10;
  background:
    var(--img) center / cover no-repeat,
    var(--felt-2);
  transition: transform 0.6s;
}
.placard:hover .placard-img {
  transform: scale(1.04);
}
.placard-sign {
  position: relative;
  display: grid;
  gap: 3px;
  margin: -26px 14px 14px;
  padding: 14px 16px 15px;
  border-radius: 8px;
  background: linear-gradient(180deg, #151515, #0b0b0b);
  box-shadow:
    inset 0 0 0 1px rgba(217, 181, 102, 0.55),
    inset 0 0 0 4px #0b0b0b,
    inset 0 0 0 5px rgba(217, 181, 102, 0.25),
    0 12px 24px rgba(0, 0, 0, 0.5);
}
.placard-sign small {
  font: 600 11px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.placard-sign b {
  font: 700 26px/1.05 var(--serif);
  color: var(--cream);
}
.placard-sign span {
  font-size: 14px;
  color: var(--muted);
}
.placard-sign em {
  font: 600 14px var(--mono);
  font-style: normal;
  color: var(--gold-2);
}
.placard-sign i {
  font-style: normal;
  font-size: 13px;
  color: var(--faint);
}
.board-mini {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  background: #050505 !important;
  font: 600 13px var(--mono);
}
.board-mini span {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  color: #ffb43a;
  text-shadow: 0 0 8px rgba(255, 170, 40, 0.5);
  border-bottom: 1px dashed rgba(255, 180, 58, 0.18);
  padding-bottom: 6px;
}
.board-mini b {
  color: #fff3d6;
}
.board-mini em {
  font-style: normal;
}

/* house edge + cost of a night */
.edge-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
}
.edge-explain > p:first-child {
  font-size: 19px;
  color: #d6ded8;
}
.edge-example {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--felt), var(--felt-2));
  box-shadow: inset 0 0 0 1px rgba(217, 181, 102, 0.35);
}
.edge-example ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.edge-example li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(241, 232, 211, 0.2);
  font-size: 15px;
}
.edge-example li:last-child {
  border: 0;
}
.edge-example li b {
  font: 600 15px var(--mono);
  color: var(--cream);
  white-space: nowrap;
}
.edge-example li b.neg {
  color: var(--gold-2);
}
.cost {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.cost h3,
.cost .cost-sub,
.cost .wide,
.cost-out,
.cost-bar,
.cost .fine {
  grid-column: 1 / -1;
}
.cost-sub {
  font-size: 14px;
  color: var(--muted);
  margin: -4px 0 4px;
}
.cost-sub b {
  color: var(--gold-2);
  font-weight: 600;
}
.cost-out {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.cost-out > div {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
}
.cost-out span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.cost-out b {
  display: block;
  font: 600 22px var(--mono);
  color: var(--cream);
  margin-top: 2px;
}
.cost-main {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, var(--felt), var(--felt-2)) !important;
  box-shadow: inset 0 0 0 1px rgba(217, 181, 102, 0.4);
}
.cost-main b {
  font: 800 clamp(34px, 4vw, 46px) var(--sans) !important;
  letter-spacing: -0.02em;
  color: var(--gold-2) !important;
}
.cost-range {
  grid-column: 1 / -1;
}
.cost-range small {
  display: block;
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 3px;
}
.cost-bar {
  position: relative;
  height: 12px;
  border-radius: 99px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
}
.cost-bar i {
  position: absolute;
  top: -1px;
  bottom: -1px;
  border-radius: 99px;
}
#costBarLo {
  background: linear-gradient(90deg, rgba(210, 69, 58, 0.55), rgba(95, 195, 142, 0.55));
}
#costBarMean {
  width: 3px;
  background: var(--gold-2);
  border-radius: 0;
  box-shadow: 0 0 0 2px rgba(5, 13, 10, 0.8);
}
#costBarZero {
  width: 1px;
  background: var(--cream);
  opacity: 0.6;
  border-radius: 0;
  top: -6px;
  bottom: -6px;
}

/* ------------------------------------------------------------------ chapters */
.chapter {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--pad) 0;
}
.ch-photo {
  aspect-ratio: 21 / 8;
  border-radius: 20px;
  background:
    var(--img) var(--pos, center 45%) / cover no-repeat,
    var(--felt-2);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(241, 232, 211, 0.08);
}
.ch-head {
  position: relative;
  margin: -70px 0 0 clamp(0px, 3vw, 40px);
  max-width: 860px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 18px;
  background: rgba(6, 15, 11, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.ch-head.solo {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.ch-head > p:not(.ch-no) {
  color: #cfd8d1;
  font-size: 17.5px;
  margin-top: 14px;
}
.ch-no {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font: 600 12px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.ch-no span {
  font: 700 13px var(--serif);
  letter-spacing: 0.24em;
  color: var(--gold);
  padding: 6px 12px 5px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}
.stats > div {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
}
.stats dt {
  font: 600 11.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.stats dd {
  margin: 4px 0 0;
  font: 800 clamp(24px, 2.6vw, 31px)/1 var(--sans);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
}
.stats small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}
.ch-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.panel {
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
}
.panel h3 {
  margin-bottom: 14px;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 14px 44px;
  color: #cbd5ce;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font: 700 14px var(--serif);
}
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  color: #cbd5ce;
}
.facts li:last-child {
  border: 0;
}
.rate {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 4px 0 10px;
}
.rate caption {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
}
.rate th {
  text-align: left;
  font: 600 11.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--gold);
}
.rate td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.rate td:last-child,
.rate th:last-child {
  text-align: right;
  padding-right: 0;
}
.rate td:last-child {
  font: 600 15px var(--mono);
  color: var(--cream);
  white-space: nowrap;
}
.rate tr.good td:last-child {
  color: var(--green);
}
.rate tr.bad td:last-child {
  color: #f08a7f;
}
.rate.compact {
  font-size: 14px;
  margin-top: 14px;
}
.rate.lines td:last-child {
  white-space: normal;
  font: 600 14px/1.4 var(--sans);
  color: var(--cream);
}
.rate.lines td:nth-child(2) {
  font: 500 14px var(--mono);
  color: var(--gold-2);
  white-space: nowrap;
}
.rate.compact td {
  padding: 7px 8px 7px 0;
}
.edge-table td:nth-child(2) {
  font: 500 14px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.myth {
  margin-top: 18px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(217, 181, 102, 0.08), transparent);
  border-radius: 0 12px 12px 0;
  color: #cbd5ce;
}

/* ------------------------------------------------------------------ blackjack: chart + trainer */
.strategy {
  margin-top: 22px;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--felt), var(--felt-2));
  box-shadow: inset 0 0 0 1px rgba(217, 181, 102, 0.35);
}
.strategy-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.strategy-head > div {
  max-width: 640px;
}
.strategy-head p {
  color: #d7e3da;
  margin: 8px 0 0;
}
.chart-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.chart {
  border-collapse: separate;
  border-spacing: 3px;
  min-width: 520px;
  width: 100%;
  font: 600 14px var(--mono);
}
.chart th {
  font: 600 13px var(--mono);
  color: var(--cream);
  padding: 6px 2px;
}
.chart thead th {
  color: var(--gold-2);
}
.chart tbody th {
  text-align: right;
  padding-right: 10px;
  white-space: nowrap;
}
.chart td {
  text-align: center;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.chart td:hover,
.chart td.sel {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--cream);
  position: relative;
  z-index: 1;
}
.k-H,
.chart .H {
  background: #f1e8d3;
  color: #1b1b1b;
}
.k-S,
.chart .S {
  background: #c3261f;
  color: #fff;
}
.k-D,
.chart .D {
  background: #d9b566;
  color: #231a06;
}
.k-Ds,
.chart .Ds {
  background: repeating-linear-gradient(135deg, #d9b566 0 7px, #c3261f 7px 14px);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.k-P,
.chart .P {
  background: #1f4fa3;
  color: #fff;
}
.k-R,
.chart .R {
  background: #141414;
  color: #f1e8d3;
  box-shadow: inset 0 0 0 1px rgba(241, 232, 211, 0.4);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: #d7e3da;
}
.legend span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 5px;
  border-radius: 5px;
  font: 700 12px var(--mono);
  margin-right: -8px;
}
.chart-why {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(4, 12, 9, 0.5);
  color: var(--cream);
  min-height: 48px;
}
.trainer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.trainer-table {
  padding: 24px 20px;
  border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 0%, var(--felt-hi), var(--felt) 40%, var(--felt-2));
  box-shadow:
    inset 0 0 0 1px rgba(217, 181, 102, 0.35),
    inset 0 -40px 60px rgba(0, 0, 0, 0.25);
}
.trainer-side {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.trainer-side > p {
  color: var(--muted);
}
.trainer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 0 14px;
}
.trainer-actions button {
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--cream);
  font: 700 15px var(--sans);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.trainer-actions button:hover:not(:disabled) {
  border-color: var(--gold);
}
.trainer-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.trainer-actions button.right {
  background: var(--felt);
  border-color: var(--green);
}
.trainer-actions button.wrong {
  background: rgba(195, 38, 31, 0.35);
  border-color: var(--red);
}
.trainer-verdict {
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ink-2);
  color: var(--text);
  font-size: 15px;
}
.trainer-verdict.ok {
  box-shadow: inset 3px 0 0 var(--green);
}
.trainer-verdict.no {
  box-shadow: inset 3px 0 0 var(--red);
}
.trainer-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.trainer-foot b {
  font-family: var(--mono);
}
.trainer-foot .btn {
  margin-left: auto;
}
.hand {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 124px;
  margin-bottom: 14px;
  perspective: 800px;
}

/* ivory playing cards, drawn in CSS */
.pc {
  position: relative;
  width: 84px;
  height: 118px;
  border-radius: 8px;
  background: linear-gradient(160deg, #fbf7ec, #efe6d1);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  color: #171717;
  font-family: var(--serif);
  animation: deal 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pc.red {
  color: var(--red-card);
}
.pc .ix {
  position: absolute;
  left: 7px;
  top: 5px;
  display: grid;
  justify-items: center;
  line-height: 1;
  font-weight: 700;
  font-size: 20px;
}
.pc .ix i {
  font-style: normal;
  font-size: 16px;
  margin-top: 2px;
}
.pc .ix.b {
  left: auto;
  top: auto;
  right: 7px;
  bottom: 5px;
  transform: rotate(180deg);
}
.pc .pip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 40px;
}
.pc.back {
  background:
    #7d1a17 repeating-linear-gradient(45deg, rgba(247, 241, 227, 0.35) 0 2px, transparent 2px 10px),
    #7d1a17;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 5px #f3ead7,
    inset 0 0 0 7px #7d1a17;
}
.pc:nth-child(2) {
  animation-delay: 0.08s;
}
.pc:nth-child(3) {
  animation-delay: 0.16s;
}
@keyframes deal {
  from {
    opacity: 0;
    transform: translate(40px, -30px) rotate(8deg);
  }
}

/* baccarat tableau */
.tableau-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 12px;
}
.tableau-pick label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 600 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tableau-pick select {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 0 12px;
  font: 600 16px var(--sans);
  color: var(--cream);
}
.tableau-verdict {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ink-2);
  font-size: 15px;
  min-height: 48px;
}
.tableau-verdict b {
  font-family: var(--serif);
  font-size: 18px;
}
.tableau-grid {
  min-width: 420px;
  font-size: 13px;
}
.tableau-grid td {
  height: 30px;
  cursor: default;
}
.tableau-grid td.dr {
  background: var(--gold);
  color: var(--gold-ink);
}
.tableau-grid td.st {
  background: rgba(241, 232, 211, 0.08);
  color: var(--faint);
}
.tableau-grid td.hit {
  box-shadow: 0 0 0 2px var(--cream);
  transform: scale(1.1);
  position: relative;
  z-index: 1;
}
.tableau-grid th.hit {
  color: var(--gold-2);
}

/* ------------------------------------------------------------------ craps: dice lab */
.dice-lab {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  margin-top: 22px;
}
.dice-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "dice btn" "read btn" "puck btn";
  align-items: center;
  gap: 12px 18px;
  padding: 26px 24px;
  border-radius: 18px;
  background: radial-gradient(120% 90% at 30% 0%, var(--felt-hi), var(--felt) 45%, var(--felt-2));
  box-shadow: inset 0 0 0 1px rgba(217, 181, 102, 0.35);
}
.dice {
  grid-area: dice;
  display: flex;
  gap: 26px;
  perspective: 700px;
  min-height: 110px;
  align-items: center;
  padding-left: 8px;
}
.die {
  position: relative;
  width: 78px;
  height: 78px;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.2, 0.9, 0.25, 1.05);
}
.die .f {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 9px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 25%, #d8362c, #a3140f 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 -6px 10px rgba(0, 0, 0, 0.25);
  backface-visibility: hidden;
}
.die .f i {
  width: 14px;
  height: 14px;
  margin: auto;
  border-radius: 50%;
  background: #fbf7ee;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.die .f1 {
  transform: rotateY(0) translateZ(39px);
}
.die .f6 {
  transform: rotateY(180deg) translateZ(39px);
}
.die .f2 {
  transform: rotateY(90deg) translateZ(39px);
}
.die .f5 {
  transform: rotateY(-90deg) translateZ(39px);
}
.die .f3 {
  transform: rotateX(90deg) translateZ(39px);
}
.die .f4 {
  transform: rotateX(-90deg) translateZ(39px);
}
.dice-read {
  grid-area: read;
}
.dice-read b {
  display: block;
  font: 700 52px/1 var(--serif);
  color: var(--cream);
}
.dice-read span {
  display: block;
  margin-top: 6px;
  color: #e0ebe3;
  font-size: 16px;
  min-height: 48px;
}
.puck-row {
  grid-area: puck;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #d7e3da;
}
.puck {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #141414;
  color: #f1ece0;
  font: 800 13px var(--sans);
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 0 0 3px #f1ece0,
    0 6px 12px rgba(0, 0, 0, 0.4);
  transition:
    background 0.3s,
    color 0.3s;
}
.puck.on {
  background: #f1ece0;
  color: #141414;
  box-shadow:
    inset 0 0 0 3px #141414,
    0 6px 12px rgba(0, 0, 0, 0.4);
}
.dice-stage .chip-btn {
  grid-area: btn;
}
.dice-dist {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.dice-dist > p {
  color: var(--muted);
}
.dist {
  list-style: none;
  margin: 16px 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  align-items: end;
  gap: 5px;
  height: 190px;
}
.dist li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  text-align: center;
  font: 600 12px var(--mono);
  color: var(--muted);
}
.dist li i {
  display: block;
  height: calc(var(--n) / 6 * 132px);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(217, 181, 102, 0.9), rgba(217, 181, 102, 0.45));
  transition:
    background 0.3s,
    transform 0.3s;
  transform-origin: bottom;
}
.dist li.seven i {
  background: linear-gradient(180deg, #e0574c, #a3140f);
}
.dist li.hit i {
  background: var(--cream);
  transform: scaleY(1.04);
}
.dist li b {
  margin-top: 6px;
  font-size: 14px;
  color: var(--cream);
}
.dist li small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--n) / 6 * 132px + 30px);
  font-size: 11px;
  color: var(--faint);
}

/* ------------------------------------------------------------------ roulette */
.wheels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 18px;
}
.wheel-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.wheel-card span {
  font: 600 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.wheel-card b {
  display: block;
  font: 800 36px/1.1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 4px 0 6px;
}
.wheel-card.good b {
  color: var(--green);
}
.wheel-card.bad b {
  color: #f08a7f;
}
.wheel-card small {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.rl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}
.rl-wheel {
  padding: 14px;
  border-radius: 20px;
  background: #070a09;
  border: 1px solid var(--line);
}
.rl-stage {
  position: relative;
  aspect-ratio: 1 / 0.82;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(70% 70% at 50% 45%, #1b1410, #060606 80%);
}
.rl-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.rl-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s;
}
.rl-stage.live .rl-fallback {
  opacity: 0;
  pointer-events: none;
}
.rl-result {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(5, 8, 7, 0.88);
  border: 1px solid var(--line);
  font: 600 15px var(--sans);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.rl-result.show {
  opacity: 1;
}
.rl-result b {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 50%;
  font: 700 15px var(--serif);
  color: #fff;
  vertical-align: middle;
}
.rl-result .r {
  background: var(--red-card);
}
.rl-result .k {
  background: #141414;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.rl-result .g {
  background: #0b6e40;
}
.rl-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 4px 6px;
}
.rl-controls .chip-btn {
  width: 88px;
  height: 88px;
}
.rl-board {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #030303;
  box-shadow: inset 0 0 0 1px rgba(255, 180, 58, 0.18);
}
.rl-board-label {
  font: 600 11px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb43a;
}
.rl-board ol {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: flex;
  gap: 6px;
  min-height: 34px;
  flex-wrap: wrap;
}
.rl-board li {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font: 700 15px var(--mono);
  color: #fff;
  animation: pop 0.35s ease both;
}
.rl-board li.r {
  background: var(--red-card);
}
.rl-board li.k {
  background: #1d1d1d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.rl-board li.g {
  background: #0b6e40;
}
.rl-board small {
  display: block;
  font-size: 12.5px;
  color: var(--faint);
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
.rl-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}
.rl-ledger div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  min-width: 0;
}
.rl-ledger dt {
  font: 600 10.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.rl-ledger dd {
  margin: 3px 0 0;
  font: 600 17px var(--mono);
  color: var(--cream);
  overflow-wrap: anywhere;
}
.rl-ledger dd.neg {
  color: #f08a7f;
}
.rl-ledger dd.pos {
  color: var(--green);
}
.rl-ledger small {
  display: block;
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 2px;
}
.rl-layout {
  min-width: 0;
}
.rl-help {
  margin-bottom: 10px;
}
.inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold);
  font-family: var(--mono);
}
.inline input {
  width: 64px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 0 8px;
  font: 600 15px var(--mono);
  color: var(--cream);
}

/* the printed roulette layout */
.felt {
  --cols: 12;
  position: relative;
  padding: 14px;
  border-radius: 16px;
  background: radial-gradient(120% 100% at 50% 0%, var(--felt-hi), var(--felt) 45%, var(--felt-2));
  box-shadow: inset 0 0 0 1px rgba(217, 181, 102, 0.4);
  user-select: none;
  -webkit-user-select: none;
}
.lay {
  display: grid;
  grid-template-columns: 44px repeat(12, minmax(0, 1fr)) 50px;
  grid-template-rows: repeat(3, 46px) 30px 40px 40px;
  gap: 0;
}
.lay button {
  position: relative;
  border: 1px solid rgba(241, 232, 211, 0.55);
  background: none;
  color: var(--cream);
  font: 700 15px var(--serif);
  padding: 0;
  margin: 0 -1px -1px 0;
  transition: background 0.15s;
}
.lay button:hover {
  background: rgba(241, 232, 211, 0.1);
}
.lay .n i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: auto;
  border-radius: 50%;
  font-style: normal;
}
.lay .n.r i {
  background: var(--red-card);
}
.lay .n.k i {
  background: #141414;
}
.lay .z {
  grid-column: 1;
  font-size: 17px;
}
.lay .z i {
  font-style: normal;
}
.lay .z.single {
  grid-row: 1 / span 3;
  border-radius: 22px 0 0 22px;
}
.lay .z.top {
  grid-row: 1 / span 2;
  border-radius: 22px 0 0 0;
}
.lay .z.bot {
  grid-row: 3;
  border-radius: 0 0 0 22px;
}
.lay .col {
  grid-column: 14;
  font: 700 11px var(--sans);
  letter-spacing: 0.04em;
}
.lay .street {
  grid-row: 4;
  font: 600 10px var(--mono);
  color: #d7e3da;
}
.lay .dz {
  grid-row: 5;
  font: 700 13px var(--serif);
  letter-spacing: 0.06em;
}
.lay .ev {
  grid-row: 6;
  font: 700 12.5px var(--sans);
  letter-spacing: 0.06em;
}
.lay .ev.red i,
.lay .ev.blk i {
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  transform: rotate(45deg);
  background: var(--red-card);
}
.lay .ev.blk i {
  background: #141414;
  box-shadow: 0 0 0 1px rgba(241, 232, 211, 0.6);
}
.lay .spec {
  font: 700 10px var(--sans);
  letter-spacing: 0.04em;
}
.lay button.on {
  background: rgba(217, 181, 102, 0.22);
}
.lay button.win {
  background: rgba(95, 195, 142, 0.4) !important;
}
.lay button.hitpocket {
  box-shadow: inset 0 0 0 3px var(--gold-2);
  z-index: 2;
}
/* split / corner / six-line hotspots sit on the lines */
.lay .hs {
  position: absolute;
  z-index: 3;
  padding: 0;
  border: 0 !important;
  background: none !important;
  margin: 0 !important;
}
.hs::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(241, 232, 211, 0);
  transition: background 0.15s;
}
.hs:hover::after {
  background: rgba(241, 232, 211, 0.55);
}
.hs.v {
  width: 22px;
  height: 30px;
}
.hs.h {
  width: 30px;
  height: 18px;
}
.hs.c {
  width: 20px;
  height: 20px;
}
/* chips on the layout */
.chipmark {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, #f4ecda 0 38%, #15714a 39% 48%, transparent 49%),
    conic-gradient(
      #f4ecda 0 30deg,
      #15714a 30deg 60deg,
      #f4ecda 60deg 90deg,
      #15714a 90deg 120deg,
      #f4ecda 120deg 150deg,
      #15714a 150deg 180deg,
      #f4ecda 180deg 210deg,
      #15714a 210deg 240deg,
      #f4ecda 240deg 270deg,
      #15714a 270deg 300deg,
      #f4ecda 300deg 330deg,
      #15714a 330deg 360deg
    );
  box-shadow:
    0 3px 0 #0a3d28,
    0 5px 8px rgba(0, 0, 0, 0.5);
  animation: chipIn 0.25s ease both;
}
.chipmark.hs-chip {
  width: 20px;
  height: 20px;
}
@keyframes chipIn {
  from {
    transform: translate(-50%, -90%) scale(1.3);
    opacity: 0;
  }
}
.slip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}
.slip > div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line-2);
}
.slip span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.slip b {
  display: block;
  font: 600 19px var(--mono);
  color: var(--cream);
}
.slip .wide {
  grid-column: span 1;
}
.slip .btn {
  align-self: center;
  justify-self: stretch;
}

/* ------------------------------------------------------------------ slots sim */
.terms {
  margin: 0;
}
.terms div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}
.terms div:last-child {
  border: 0;
}
.terms dt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17.5px;
  color: var(--cream);
}
.terms dd {
  margin: 3px 0 0;
  color: #c3cec6;
  font-size: 15px;
}
.sim-chart {
  width: 100%;
  height: auto;
  display: block;
  margin: 8px 0 6px;
  background: var(--ink-2);
  border-radius: 12px;
  border: 1px solid var(--line-2);
}
.sim-chart .grid line {
  stroke: rgba(241, 232, 211, 0.08);
}
.sim-chart .grid text {
  fill: var(--faint);
  font: 500 11px var(--mono);
}
.sim-chart .start {
  stroke: rgba(217, 181, 102, 0.6);
  stroke-dasharray: 4 5;
}
.sim-chart .lo {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
}
.sim-chart .hi {
  fill: none;
  stroke: #ff9f43;
  stroke-width: 2.2;
}
.sim-chart path {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 1.6s ease forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.sim-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--muted);
}
.sim-legend span::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
}
.sim-legend .lo::before {
  background: var(--green);
}
.sim-legend .hi::before {
  background: #ff9f43;
}
.sim-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.sim-stats div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
}
.sim-stats dt {
  font-size: 12.5px;
  color: var(--muted);
}
.sim-stats dd {
  margin: 2px 0 0;
  font: 600 15px var(--mono);
  color: var(--cream);
}

/* ------------------------------------------------------------------ poker */
.ladder-hands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 22px;
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--felt), var(--felt-2));
  box-shadow: inset 0 0 0 1px rgba(217, 181, 102, 0.35);
}
.hrow {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(241, 232, 211, 0.14);
}
.hrow .rk {
  grid-row: 1 / span 2;
  font: 700 22px var(--serif);
  color: var(--gold-2);
  text-align: center;
}
.hrow .nm {
  font: 700 18px var(--serif);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.hrow .nm small {
  font: 500 12px var(--mono);
  color: #cfe0d4;
  white-space: nowrap;
}
.hrow .cards {
  display: flex;
  gap: 4px;
}
.mini {
  display: grid;
  place-items: center;
  width: 36px;
  height: 50px;
  border-radius: 5px;
  background: linear-gradient(160deg, #fbf7ec, #efe6d1);
  color: #171717;
  font: 700 14px/1 var(--serif);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.mini i {
  display: block;
  font-style: normal;
  font-size: 13px;
}
.mini.red {
  color: var(--red-card);
}
.mini.dim {
  opacity: 0.45;
}
.seats {
  position: relative;
  aspect-ratio: 2 / 1;
  margin: 6px 0 16px;
  border-radius: 50% / 50%;
  background: radial-gradient(ellipse at 50% 40%, var(--felt-hi), var(--felt) 60%, var(--felt-2));
  box-shadow:
    0 0 0 10px #1b120c,
    0 0 0 11px rgba(217, 181, 102, 0.3);
}
.seats span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: -15px 0 0 -23px;
  border-radius: 8px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  font: 700 12px var(--mono);
  color: var(--cream);
  transform: translate(calc(cos(var(--a)) * 42cqw), calc(sin(var(--a)) * 21cqw));
}
.seats {
  container-type: inline-size;
}
.seats .btn-seat {
  background: var(--cream);
  color: #141414;
}
.seats b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font: 600 13px/1.35 var(--sans);
  color: #d7e3da;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
}
.presets button {
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: 999px;
  padding: 8px 12px;
  font: 600 13px var(--sans);
  color: var(--cream);
  min-height: 38px;
}
.presets button:hover {
  border-color: var(--gold);
}
.lab-in {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.lab-in.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.meter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 14px 0 8px;
}
.meter div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
}
.meter span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.meter b {
  display: block;
  font: 600 20px var(--mono);
  color: var(--cream);
}
.meter-bar {
  position: relative;
  height: 12px;
  border-radius: 99px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.meter-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  transition: width 0.4s;
}
#potBarHit {
  background: var(--green);
  opacity: 0.8;
}
#potBarNeed {
  background: none;
  border-right: 3px solid var(--gold-2);
  z-index: 2;
}
.verdict {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ink-2);
  font-size: 15px;
  color: var(--text);
}
.verdict b {
  color: var(--gold-2);
}
.parlay {
  display: grid;
  grid-template-columns: 90px repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 600px) {
  .parlay {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .parlay .field:last-child {
    grid-column: 1 / -1;
  }
}

/* sportsbook LED board */
.odds-board {
  border-radius: 20px;
  background: #030303;
  padding: clamp(16px, 3vw, 30px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 180, 58, 0.2);
  font: 600 clamp(12px, 1.6vw, 20px) var(--mono);
  color: #ffb43a;
  text-shadow: 0 0 10px rgba(255, 170, 40, 0.55);
  overflow-x: auto;
  background-image: radial-gradient(rgba(255, 180, 58, 0.06) 1px, transparent 1.2px);
  background-size: 6px 6px;
}
.ob-head,
.ob-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 12px;
  align-items: center;
  min-width: 560px;
}
.ob-head {
  font-size: 0.72em;
  letter-spacing: 0.14em;
  color: #b57a1c;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 180, 58, 0.25);
}
.ob-row {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 180, 58, 0.16);
}
.ob-row b {
  color: #fff3d6;
  font-weight: 600;
}
.ob-row em {
  font-style: normal;
  color: #d98c21;
  font-size: 0.82em;
}
.ob-row.dim {
  opacity: 0.55;
}
.ob-note {
  margin: 10px 0 0;
  font: 500 12px var(--sans);
  color: #8a6a3a;
  text-shadow: none;
}
#sportsbook .ch-head {
  margin-top: -40px;
}

/* ------------------------------------------------------------------ safe */
.safe-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: start;
}
.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: r;
}
.rules li {
  counter-increment: r;
  position: relative;
  padding: 16px 0 16px 56px;
  border-bottom: 1px solid var(--line-2);
  color: #cbd5ce;
  font-size: 17px;
}
.rules li::before {
  content: counter(r, upper-roman);
  position: absolute;
  left: 0;
  top: 14px;
  font: 700 22px var(--serif);
  color: var(--gold);
}
.help-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 18px;
  background: linear-gradient(180deg, #15110b, #0d0b08);
  box-shadow: inset 0 0 0 1px rgba(217, 181, 102, 0.45);
}
.help-card h3 {
  margin-bottom: 8px;
}
.help-card > p {
  color: #d2cab8;
}
.help-line {
  display: block;
  margin: 14px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--gold-ink);
  text-decoration: none;
  font: 800 clamp(24px, 3vw, 30px)/1.1 var(--sans);
  letter-spacing: -0.01em;
}
.help-line small {
  display: block;
  font: 600 14px var(--mono);
  margin-top: 4px;
  opacity: 0.8;
}
.help-alt a {
  color: var(--gold-2);
}

/* ------------------------------------------------------------------ footer + glossary */
.foot {
  max-width: var(--maxw);
  margin: clamp(80px, 10vw, 130px) auto 0;
  padding: 40px var(--pad) 40px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  border-top: 1px solid rgba(217, 181, 102, 0.3);
}
.foot-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 12px;
}
.foot-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 360px;
}
.foot-src ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 24px;
}
.foot-src li {
  break-inside: avoid;
  padding: 4px 0;
  font-size: 14px;
}
.foot-src a {
  color: #c3cec6;
  text-decoration-color: rgba(217, 181, 102, 0.4);
}
.foot-end {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font: 600 12px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.foot-end a {
  color: var(--cream);
  text-decoration: none;
}
.glossary {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  justify-items: end;
  background: rgba(0, 0, 0, 0.55);
  animation: fade 0.25s ease both;
}
.glossary[hidden] {
  display: none;
}
.gl-panel {
  position: relative;
  width: min(520px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 34px clamp(20px, 4vw, 38px) 40px;
  background: var(--ink-2);
  border-left: 1px solid rgba(217, 181, 102, 0.35);
  animation: slide 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gl-panel h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  margin-bottom: 18px;
}
.gl-panel .plaque {
  justify-content: flex-start;
}
.gl-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  font-size: 24px;
  color: var(--cream);
}
.gl-list div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.gl-list dt {
  font: 700 18px var(--serif);
  color: var(--cream);
}
.gl-list dd {
  margin: 3px 0 0;
  color: #c3cec6;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes slide {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}

/* reveal on scroll */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rv.in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .bar-nav {
    display: none;
  }
  .bar {
    grid-template-columns: 1fr auto;
  }
  .placards li,
  .placards li:nth-child(n + 5) {
    grid-column: span 6;
  }
  .placards li:last-child {
    grid-column: span 12;
  }
  .edge-grid,
  .rl,
  .dice-lab,
  .trainer {
    grid-template-columns: minmax(0, 1fr);
  }
  .ch-photo {
    aspect-ratio: 16 / 8;
  }
}
@media (max-width: 820px) {
  .ladder-tags {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-template-rows: none;
  }
  .ladder-tags li:nth-child(5) a {
    border-bottom: 1px dashed rgba(241, 232, 211, 0.1);
  }
  .ch-body,
  .safe-grid,
  .foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .ch-head {
    margin: -40px 0 0;
  }
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 2px 12px;
  }
  .stats dd {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
  .wheels {
    grid-template-columns: minmax(0, 1fr);
  }
  .ladder-hands {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-src ul {
    columns: 1;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 15.5px;
  }

  /* Blackjack strategy chart: fit the full 2–A matrix on phone screens. */
  #bjStrategy {
    padding-left: 12px;
    padding-right: 12px;
  }
  #bjStrategy .chart-wrap {
    overflow-x: hidden;
    margin-left: -2px;
    margin-right: -2px;
  }
  #bjStrategy .chart {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    border-spacing: 2px;
    font-size: 11px;
  }
  #bjStrategy .chart th {
    font-size: 11px;
    padding: 4px 0;
  }
  #bjStrategy .chart thead th:first-child,
  #bjStrategy .chart tbody th {
    width: 44px;
  }
  #bjStrategy .chart tbody th {
    padding-right: 5px;
  }
  #bjStrategy .chart td {
    height: 36px;
    border-radius: 5px;
  }
  .bar {
    height: 64px;
    gap: 12px;
  }
  .bar-logo img {
    height: 40px;
  }
  .bar-help {
    padding: 0 10px 0 5px;
    font-size: 13px;
  }
  .hero {
    min-height: 0;
    padding-top: 34px;
  }
  .hero-photo {
    background-position: 70% 50%;
  }
  .hero-photo::after {
    background: linear-gradient(
      0deg,
      rgba(4, 10, 8, 0.98) 0%,
      rgba(4, 10, 8, 0.86) 45%,
      rgba(4, 10, 8, 0.55) 100%
    );
  }
  .ladder-tags a {
    grid-template-columns: minmax(0, 1fr) 28% 58px;
    gap: 8px;
  }
  .ladder-tags span {
    font-size: 13px;
  }
  .placards li,
  .placards li:nth-child(n + 5),
  .placards li:last-child {
    grid-column: span 12;
  }
  .cost {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .cost .field:nth-of-type(4) {
    grid-column: 1 / -1;
  }
  .cost-out {
    grid-template-columns: minmax(0, 1fr);
  }
  .ch-photo {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }
  .ch-head {
    padding: 18px;
  }
  .trainer-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .trainer-actions button:last-child {
    grid-column: span 2;
  }
  .pc {
    width: 70px;
    height: 98px;
  }
  .pc .pip {
    font-size: 32px;
  }
  .dice-stage {
    grid-template-columns: 1fr;
    grid-template-areas: "dice" "read" "puck" "btn";
    justify-items: start;
  }
  .dist {
    height: 170px;
    gap: 3px;
  }
  .dist li i {
    height: calc(var(--n) / 6 * 112px);
  }
  .dist li small {
    display: none;
  }
  .lay {
    grid-template-columns: 34px repeat(12, minmax(0, 1fr)) 34px;
    grid-template-rows: repeat(3, 40px) 26px 36px 36px;
  }
  .lay button {
    font-size: 12px;
  }
  .lay .n i {
    width: 22px;
    height: 22px;
  }
  .lay .col {
    font-size: 8.5px;
  }
  .lay .street {
    font-size: 0;
  }
  .lay .street::before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    margin: auto;
    border-radius: 50%;
    background: rgba(241, 232, 211, 0.55);
  }
  .lay .spec {
    font-size: 8px;
    line-height: 1.1;
  }
  .lay .ev {
    font-size: 10px;
  }
  .lay .dz {
    font-size: 11px;
  }
  .felt {
    padding: 8px;
  }
  .rl-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lab-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .tableau-pick {
    grid-template-columns: minmax(0, 1fr);
  }
  .seats span {
    width: 40px;
    font-size: 11px;
  }
}
@media (max-width: 420px) {
  .lay {
    grid-template-columns: 26px repeat(12, minmax(0, 1fr)) 26px;
  }
  .lay .n i {
    width: 19px;
    height: 19px;
  }
  .lay button {
    font-size: 10.5px;
  }
  .lay .col {
    font-size: 7px;
    letter-spacing: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
