/* =============================================================================
   FUN MACHINE RESTRUCTURE  ·  multi-product site shell (2026-06-29)
   -----------------------------------------------------------------------------
   Folds the Fun Machine restructure into the Coinz Hub PoC: a persistent
   top-level PRODUCT SWITCHER (Casino / RIPS / Predictions / Sportsbook), the
   native CASINO lobby (section rails) + section-page template (subsection rails
   + game grid), and the IFRAME-PRODUCT template that frames a vendor surface.

   Loaded AFTER coinz-hub.css and additive only: it introduces new classes and
   never overrides Hub V1 rules, so the engagement-band review stays untouched.
   Tokens come from shared/theme.css. Restricted-state view is deferred.
   ========================================================================== */

/* --- Top-level product switcher --------------------------------------------
   Sits at the top of the content column, above the swappable lobby region.
   Static per-page links (the PoC is multi-page); the active product carries
   .active. Coinz Hub is NOT here, it is platform-level and lives in the LHS. */
.product-switcher {
  display: flex;
  gap: var(--sp-8);
  align-items: center;
  margin-bottom: var(--sp-24);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--border-secondary);
  overflow-x: auto;
  scrollbar-width: none;
}
.product-switcher::-webkit-scrollbar { display: none; }
.product-switcher-label {
  font-size: var(--text-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-right: var(--sp-4);
  white-space: nowrap;
}
.product-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-16);
  color: var(--text-secondary);
  background: var(--surface-lighter);
  border: 1px solid var(--border-secondary);
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.product-tab .bi { font-size: 1.1em; }
.product-tab:hover { color: var(--text-primary); border-color: var(--border-light); transform: translateY(-1px); }
.product-tab.active {
  color: var(--text-inverted-primary);
  background: var(--surface-plain);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.product-tab-new {
  font-size: var(--text-12);
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--sc-coin-color);
  color: var(--text-inverted-primary);
}

/* --- Sidenav helpers (product-context section label + divider) -------------- */
.sidenav-section-label {
  font-size: var(--text-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0 var(--sp-12);
  margin: var(--sp-8) 0 var(--sp-4);
}
.sidenav-divider {
  height: 1px;
  background: var(--border-secondary);
  margin: var(--sp-8) var(--sp-12);
}
/* Products cluster + the active product's section list each sit under a subtle
   rule, so the LHS reads as: Coinz Hub / Products / (Casino) sections. */
.sidenav-section-products,
.sidenav-section-product {
  margin-top: var(--sp-12);
  padding-top: var(--sp-12);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Expandable LHS tree: Coinz Hub + Casino are clickable AND expandable ---- */
.sidenav-group + .sidenav-group { margin-top: 4px; }
.sidenav-group-head { display: flex; align-items: center; gap: 2px; }
.sidenav-group-link { flex: 1 1 auto; min-width: 0; }
.sidenav-expand {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-circle);
  line-height: 1;
}
.sidenav-expand:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }
.sidenav-expand .bi { font-size: 13px; display: block; transition: transform .15s ease; }
.sidenav-group.is-open .sidenav-expand .bi { transform: rotate(180deg); }
.sidenav-sub { display: none; margin: 2px 0 4px; }
.sidenav-group.is-open .sidenav-sub { display: block; }
.sidenav-subitem { padding-left: 30px; font-size: 14px; }
.sidenav-subitem .bi { font-size: 16px; opacity: 0.9; }
.sidenav-section-leaf {
  margin-top: var(--sp-12);
  padding-top: var(--sp-12);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Casino lobby hero ------------------------------------------------------ */
.casino-hero {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--sp-28) var(--sp-28);
  margin-bottom: var(--sp-28);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(0, 252, 253, 0.16), transparent 60%),
    radial-gradient(120% 140% at 0% 100%, rgba(42, 106, 209, 0.30), transparent 55%),
    var(--surface-lightest-x2);
  border: 1px solid var(--border-light);
}
.casino-hero-kicker {
  font-size: var(--text-12);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
}
.casino-hero h1 {
  font-family: var(--third-family);
  font-size: var(--text-36);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 var(--sp-12);
  max-width: 16ch;
}
.casino-hero p { color: var(--text-secondary); max-width: 48ch; margin: 0 0 var(--sp-20); }

/* --- Section header (sits above each lobby rail) ---------------------------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  margin: var(--sp-28) 0 var(--sp-12);
}
.section-head:first-of-type { margin-top: 0; }
.casino-section { scroll-margin-top: 96px; }
.section-head h2 {
  font-size: var(--text-24);
  font-weight: 600;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
}
.section-head h2 .bi { color: #00fcfd; font-size: 0.9em; }
.section-showall {
  color: var(--link-color);
  font-weight: 700;
  font-size: var(--text-14);
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.section-showall:hover { text-decoration: underline; }
.section-controls {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-12);
  flex: 0 0 auto;
}
.section-controls .rail-nav {
  position: static;
  transform: none;
  width: 32px;
  height: 32px;
}
/* Overlay rail arrows (category sub-rails) lift up into the section-head line at the
   top-right, matching the lobby rows and the live site. Anchored to the rail-wrap,
   which sits directly below the header. */
.game-rail-wrap > .rail-nav {
  top: -42px;
  transform: none;
  left: auto;
}
.game-rail-wrap > .rail-nav.rail-nav--prev { right: 46px; }
.game-rail-wrap > .rail-nav.rail-nav--next { right: 6px; }
.casino-section:has(.game-rail-wrap > .rail-nav) .section-head { padding-right: 84px; }

/* --- Game rail (horizontal carousel) + grid (all-of-section) ---------------- */
.game-rail-wrap { position: relative; }
.game-rail {
  display: flex;
  gap: var(--sp-12);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 2px var(--sp-8);
  scrollbar-width: none;
}
.game-rail::-webkit-scrollbar { display: none; }
.game-rail .game-card { scroll-snap-align: start; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--sp-12);
  margin-top: var(--sp-16);
}

/* --- Game card -------------------------------------------------------------- */
.game-card {
  position: relative;
  flex: 0 0 auto;
  width: 172px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-lightest-x2);
  border: 1px solid var(--border-dark);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.game-grid .game-card { width: auto; }
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border-light); background: var(--surface-dark-500); }
.game-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(135deg, var(--surface-lightest-x2), var(--surface-lighter));
}
/* hue variety without per-card classes; every pair is built from ratified palette values */
.game-rail .game-card:nth-child(7n+1) .game-thumb { background: linear-gradient(135deg,#00fcfd,#0078e5); }
.game-rail .game-card:nth-child(7n+2) .game-thumb { background: linear-gradient(135deg,#2a6ad1,#001f58); }
.game-rail .game-card:nth-child(7n+3) .game-thumb { background: linear-gradient(135deg,#ffe849,#ffbe08); }
.game-rail .game-card:nth-child(7n+4) .game-thumb { background: linear-gradient(135deg,#26ff22,#057d1f); }
.game-rail .game-card:nth-child(7n+5) .game-thumb { background: linear-gradient(135deg,#245db8,#123a85); }
.game-rail .game-card:nth-child(7n+6) .game-thumb { background: linear-gradient(135deg,#c91f3e,#000724); }
.game-rail .game-card:nth-child(7n+7) .game-thumb { background: linear-gradient(135deg,var(--surface-lightest-x3),var(--surface-lightest)); }
.game-grid .game-card:nth-child(5n+1) .game-thumb { background: linear-gradient(135deg,#00fcfd,#0078e5); }
.game-grid .game-card:nth-child(5n+2) .game-thumb { background: linear-gradient(135deg,#2a6ad1,#001f58); }
.game-grid .game-card:nth-child(5n+3) .game-thumb { background: linear-gradient(135deg,#ffe849,#ffbe08); }
.game-grid .game-card:nth-child(5n+4) .game-thumb { background: linear-gradient(135deg,#26ff22,#057d1f); }
.game-grid .game-card:nth-child(5n+5) .game-thumb { background: linear-gradient(135deg,#245db8,#123a85); }
.game-meta { padding: var(--sp-8) var(--sp-12) var(--sp-12); }
.game-name {
  font-size: var(--text-14);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-provider { font-size: var(--text-12); color: var(--text-tertiary); margin-top: 2px; }
.game-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: var(--text-12);
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.game-badge--new { background: var(--sc-coin-color); color: var(--text-inverted-primary); }
.game-badge--hot { background: var(--gc-coin-color); color: var(--text-inverted-primary); }

/* --- Rail nav arrows (reuse the fs-nav idea, scoped) ------------------------ */
.rail-nav {
  position: absolute;
  top: calc(50% - 28px);
  transform: translateY(-50%);
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: var(--radius-circle);
  border: 1px solid var(--surface-lightest-x3);
  background: var(--surface-lightest-x2);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.rail-nav:hover { filter: brightness(1.25); transform: translateY(-50%) scale(1.08); }
.section-controls .rail-nav:hover,
.game-rail-wrap > .rail-nav:hover { transform: scale(1.08); }
.rail-nav:disabled { opacity: 0.35; }
.rail-nav--prev { left: -6px; }
.rail-nav--next { right: -6px; }
@container page (max-width: 600px) { .rail-nav { display: none; } }

/* --- Section page (Casino > section) --------------------------------------- */
.crumb {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-14);
  font-weight: 600;
  margin-bottom: var(--sp-16);
}
.crumb:hover { color: var(--text-primary); }
/* Sub-section and product banners share the Casino lobby banner treatment (see
   .casino-hero), so the banner looks the same across the lobby, every
   sub-section, and every product.
   Implementation logic (NOT built in this PoC): the lobby banner is the default;
   each section or product can set its own, which overrides the default. */
.section-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--sp-28);
  margin-bottom: var(--sp-28);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(0, 252, 253, 0.16), transparent 60%),
    radial-gradient(120% 140% at 0% 100%, rgba(42, 106, 209, 0.30), transparent 55%),
    var(--surface-lightest-x2);
  border: 1px solid var(--border-light);
}
.section-banner h1 { font-size: var(--text-36); line-height: 1.05; margin: 0 0 var(--sp-12); }
.section-banner p { color: var(--text-secondary); margin: 0; font-size: var(--text-16); max-width: 52ch; }
.section-count { color: var(--text-tertiary); font-size: var(--text-14); margin: var(--sp-24) 0 0; }

/* "Load More" pagination on the ALL {category} section: initial 60 games, then a
   button that loads the next batch (CORE-269). Navy surface matching the rail arrows. */
.load-more-wrap { display: flex; justify-content: center; margin-top: var(--sp-24); }
.load-more-btn {
  appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: var(--text-14);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 34px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-lightest);
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.load-more-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--border-primary); }

/* --- Iframe-product template (RIPS / Predictions / Sportsbook) -------------- */
/* Product banner: same lobby-banner treatment as .section-banner, with a
   leading product icon. (See the default/override note above .section-banner.) */
.product-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-20);
  border-radius: var(--radius-lg);
  padding: var(--sp-28);
  margin-bottom: var(--sp-28);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(0, 252, 253, 0.16), transparent 60%),
    radial-gradient(120% 140% at 0% 100%, rgba(42, 106, 209, 0.30), transparent 55%),
    var(--surface-lightest-x2);
  border: 1px solid var(--border-light);
}
.product-banner-ico {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
  background: var(--accent-blue);
}
.product-banner h1 { font-size: var(--text-36); line-height: 1.05; margin: 0 0 var(--sp-8); }
.product-banner p { color: var(--text-secondary); margin: 0; font-size: var(--text-16); max-width: 52ch; }

/* The framed vendor surface. The dashed border + caption make the "this is an
   opaque iframe owned by the vendor" boundary explicit for reviewers. */
.product-frame {
  border: 1.5px dashed var(--border-secondary);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    var(--surface-darkest);
  overflow: hidden;
}
.product-frame-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-8) var(--sp-16);
  font-size: var(--text-12);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  background: var(--surface-lighter);
  border-bottom: 1px solid var(--border-secondary);
}
.product-frame-bar .bi { color: var(--text-secondary); }
.product-frame-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-secondary); }
.product-frame-body {
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-28);
}

/* RIPS mock (single slot + bet slip), kept lightweight */
.rips-mock { width: min(420px, 100%); text-align: center; }
.rips-reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
}
.rips-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface-lightest-x2), var(--surface-lighter));
  border: 1px solid var(--border-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.rips-prob { font-size: var(--text-14); color: var(--text-secondary); margin-bottom: var(--sp-16); }
.rips-prob strong { color: var(--sc-coin-color); }
.rips-betslip { display: flex; gap: var(--sp-8); justify-content: center; }
.rips-chip {
  padding: 12px 0;
  flex: 1;
  border-radius: var(--radius-md);
  background: var(--surface-lighter);
  border: 1px solid var(--border-secondary);
  font-weight: 800;
  color: var(--text-primary);
}
.rips-chip.is-active { background: var(--surface-plain); border-color: transparent; color: var(--text-inverted-primary); }
.frame-note { color: var(--text-tertiary); font-size: var(--text-12); margin-top: var(--sp-20); }

/* generic frame placeholder (Predictions / Sportsbook) */
.frame-ph { text-align: center; color: var(--text-secondary); }
.frame-ph .bi { font-size: 2.6rem; color: var(--text-tertiary); display: block; margin-bottom: var(--sp-12); }
.frame-ph h3 { margin: 0 0 var(--sp-8); color: var(--text-primary); }
.frame-ph p { margin: 0 auto; max-width: 40ch; font-size: var(--text-14); }

/* --- Available Packs (store section, modelled on the live Coinz lobby) ------
   Injected below the banner on every page by packs.js. */
.pack-section { margin-top: var(--sp-24); }
.pack-rail { gap: var(--sp-16); padding-top: var(--sp-8); }
.pack-card {
  position: relative;
  flex: 0 0 auto;
  width: 210px;
  border-radius: var(--radius-lg);
  background: var(--gold-gradient);
  box-shadow: var(--shadow-card);
  padding: 7px 7px 0;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .15s;
}
.pack-card:hover { transform: translateY(-3px); }
.pack-badge {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  background: var(--alert-success); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
  padding: 3px 14px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.pack-inner {
  background: linear-gradient(180deg, var(--surface-lightest) 0%, var(--surface-dark) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px 14px 16px;
  text-align: center;
}
.pack-line { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pack-line--gc { margin-bottom: 6px; }
.pack-amount { font-size: 23px; font-weight: 800; line-height: 1; }
.pack-line--gc .pack-amount { color: #fff; }
.pack-line--sc .pack-amount { color: var(--sc-coin-color); }
.pack-coin {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800; flex-shrink: 0;
}
.pack-coin--gc { background: radial-gradient(circle at 35% 30%, #ffe849, #ffbe08); color: var(--text-inverted-primary); }
.pack-coin--sc { background: radial-gradient(circle at 35% 30%, #26ff22, #057d1f); color: var(--text-inverted-primary); }
.pack-price {
  text-align: center;
  font-family: var(--third-family);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-30); font-weight: 700; color: var(--text-inverted-primary);
  padding: 8px 0 10px;
}

/* --- CoinzBack V2 lobby carousel (Daily / Weekly / Monthly / Instant) --------
   Injected below Available Packs by coinzback.js. Card model per the 2026-07-09
   design review: building amount + circular time ring + "Claim in" ABOVE the
   line; the claimable amount ("earned last <period>") + Claim button BELOW.
   Positive framing only (no expiry countdown / red urgency). Instant is the
   4th card, threshold-gated (ring tracks progress to 10 SC, no countdown).
   NOTE: the card styles below are kept byte-parallel with coinz-back.css so the
   lobby and the dedicated page render identically; edit both together. */
.cb-section { margin-top: var(--sp-24); }
.cb-rail { gap: var(--sp-16); padding-top: var(--sp-8); }
.cb-sub {
  color: var(--text-secondary); font-size: var(--text-14);
  margin: calc(-1 * var(--sp-8)) 0 var(--sp-8); max-width: 62ch;
}
.cb-cms-note { color: var(--text-tertiary); font-size: var(--text-12); margin: var(--sp-12) 0 0; }

/* rail cards are fixed-width and scroll-snap; the dedicated page overrides to a grid */
.cb-rail .cb-card { flex: 0 0 auto; width: 300px; scroll-snap-align: start; }

.cb-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-secondary);
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(0, 252, 253, 0.10), transparent 55%),
    var(--surface-lighter);
  padding: var(--sp-16);
}
.cb-card[data-cb-state="claimable"], .cb-card[data-cb-state="ready"] { border-color: rgba(38, 255, 34, 0.35); }
.cb-head { margin-bottom: var(--sp-12); min-height: 20px; }
.cb-cadence { font-weight: 800; font-size: var(--text-14); letter-spacing: 0.02em; color: var(--text-primary); }
.cb-cadence .bi { color: #00fcfd; margin-right: 4px; }

/* above the line: building amount + circular ring + "Claim in" */
.cb-build { display: flex; align-items: center; gap: var(--sp-12); }
.cb-ring { flex: 0 0 auto; }
.cb-ring-track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 4; }
.cb-ring-prog {
  fill: none; stroke: #00fcfd; stroke-width: 4; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset 1s linear;
}
/* Instant's ring tracks amount-to-threshold, not time — gold to read differently */
.cb-card--instant .cb-ring-prog { stroke: var(--gc-coin-color); }
.cb-build-info { min-width: 0; }
.cb-build-amount { font-family: var(--third-family); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1.15; }
.cb-build-timer { font-size: var(--text-12); color: var(--text-secondary); margin-top: 2px; }
.cb-build-timer strong { color: var(--text-primary); font-family: var(--third-family); font-variant-numeric: tabular-nums; }
.cb-coin { font-size: 11px; font-weight: 800; color: var(--sc-coin-color); }

.cb-divider { border-top: 1px dashed var(--border-secondary); margin: var(--sp-12) 0; }

/* below the line: one state-carrying CTA (2026-07-09 follow-up). Enabled cyan to
   claim/collect, ghost + disabled when there is nothing, green success flash on
   claim. Replaces the earlier earned-line + separate button. */
.cb-cta {
  display: block; width: 100%;
  font: inherit; font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em;
  text-align: center; padding: 12px 16px;
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  transition: transform .15s, filter .15s;
}
.cb-cta .bi { margin-right: 6px; }
.cb-cta--go { color: var(--text-on-cyan); background: var(--accent-cyan-gradient); }
.cb-cta--go:hover { filter: brightness(1.08); }
.cb-cta--go:active { transform: scale(0.98); }
.cb-cta--off, .cb-cta--done { cursor: default; text-transform: none; letter-spacing: 0; font-weight: 700; font-size: var(--text-14); }
.cb-cta--off { color: var(--text-secondary); background: var(--surface-lightest-x2); }
.cb-cta--done { color: var(--sc-coin-color); background: rgba(38, 255, 34, 0.15); }

.cb-pulse { animation: cb-pulse 0.6s ease; }
@keyframes cb-pulse { 0% { color: var(--sc-coin-color); } 100% { color: inherit; } }

/* Per-card state switcher: PoC review tool, styled apart (dashed cut + dim label) */
.cb-poc-tools {
  margin-top: var(--sp-12); padding-top: var(--sp-8);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; gap: var(--sp-8);
}
.cb-poc-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-tertiary); flex: 0 0 auto;
}
.cb-poc-select {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: var(--text-12); font-weight: 600;
  color: var(--text-secondary); background: var(--surface-lightest);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-pill);
  padding: 4px 10px; cursor: pointer;
}
.cb-poc-select:hover { color: var(--text-primary); border-color: var(--border-secondary); }

/* --- A footer the iframe pages sit above (per the agreed shell layout) ------ */
.product-footer {
  margin-top: var(--sp-28);
  padding-top: var(--sp-20);
  border-top: 1px solid var(--border-secondary);
  color: var(--text-tertiary);
  font-size: var(--text-12);
  display: flex;
  gap: var(--sp-20);
  flex-wrap: wrap;
}
.product-footer a { color: var(--text-secondary); text-decoration: none; }
.product-footer a:hover { color: var(--text-primary); }

@container page (max-width: 600px) {
  .casino-hero { padding: var(--sp-24); }
  .casino-hero h1 { font-size: var(--text-36); }
  .product-frame-body { min-height: 380px; padding: var(--sp-20); }
}
