/* ==========================================================================
   Casino Plus Login - site surface stylesheet
   Mobile-first phone canvas (320-430px), wide screens keep the centered canvas.
   Class prefix: cba751-   (all custom properties share the same prefix)
   Palette: #6A5ACD slate violet / #DDA0DD plum / #FFFFBA butter
            #141414 ink / #999999 fog / #3C3C3C steel
   Visual brief: bold simple headings over light body text, small-medium
   radii with comfortable spacing, outlined tile cards, intro-led sections,
   menu slide-in plus subtle card lift, staggered primary/secondary CTAs.
   ========================================================================== */

:root {
  --cba751-ink: #141414;
  --cba751-ink-deep: #0e0e0e;
  --cba751-steel: #3c3c3c;
  --cba751-fog: #999999;
  --cba751-slate: #6a5acd;
  --cba751-slate-soft: rgba(106, 90, 205, 0.30);
  --cba751-plum: #dda0dd;
  --cba751-plum-soft: rgba(221, 160, 221, 0.16);
  --cba751-butter: #ffffba;
  --cba751-butter-dim: #f2ecc2;
  --cba751-paper: #efefda;
  --cba751-radius-s: 8px;
  --cba751-radius-m: 12px;
  --cba751-canvas: 430px;
  --cba751-top-h: 58px;
  --cba751-nav-h: 64px;
  --cba751-font-head: "Trebuchet MS", "Segoe UI", Verdana, Arial, sans-serif;
  --cba751-font-body: "Segoe UI", Tahoma, Arial, "Helvetica Neue", sans-serif;
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cba751-ink-deep);
  background-image: radial-gradient(circle at 50% -10%, rgba(106, 90, 205, 0.18), transparent 55%);
  color: var(--cba751-paper);
  font-family: var(--cba751-font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--cba751-font-head);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 10px;
  color: #ffffff;
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 12px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--cba751-plum);
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cba751-butter);
  outline-offset: 2px;
  border-radius: 4px;
}

/* invisible phone canvas: dark plate centered on any screen */
.cba751-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cba751-ink);
  overflow-x: clip;
}

@media (min-width: 431px) {
  .cba751-shell {
    border-left: 1px solid var(--cba751-steel);
    border-right: 1px solid var(--cba751-steel);
    box-shadow: 0 0 42px rgba(106, 90, 205, 0.16);
  }
}

/* skip link for keyboard users */
.cba751-skip {
  position: absolute;
  left: 10px;
  top: -48px;
  z-index: 200;
  background: var(--cba751-butter);
  color: var(--cba751-ink);
  padding: 9px 14px;
  border-radius: var(--cba751-radius-s);
  font-weight: 700;
  transition: top 0.2s ease;
}

.cba751-skip:focus {
  top: 6px;
}

/* ---------- fixed top action bar (logo-led) ---------- */

.cba751-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  background: rgba(20, 20, 20, 0.97);
  border-bottom: 1px solid var(--cba751-steel);
  height: var(--cba751-top-h);
}

.cba751-topbar-in {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 10px;
}

/* brand block: real logo image + wordmark only */
.cba751-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-width: 0;
}

.cba751-brand-logo {
  flex: 0 0 auto;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--cba751-plum);
  background: var(--cba751-plum-soft);
}

.cba751-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cba751-brand-word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  min-width: 0;
}

.cba751-brand-name {
  font-family: var(--cba751-font-head);
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  white-space: nowrap;
}

.cba751-brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--cba751-butter);
}

@media (max-width: 354px) {
  .cba751-brand-word {
    display: none;
  }
}

/* header actions: staggered primary/secondary CTA sizes */
.cba751-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.cba751-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--cba751-font-head);
  font-weight: 700;
  white-space: nowrap;
}

.cba751-btn-register {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--cba751-ink);
  background: linear-gradient(135deg, var(--cba751-butter) 0%, var(--cba751-plum) 130%);
  border: 0;
  box-shadow: 0 4px 14px rgba(221, 160, 221, 0.35);
}

.cba751-btn-register:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(221, 160, 221, 0.3);
}

.cba751-btn-login {
  min-height: 44px;
  padding: 0 13px;
  font-size: 13px;
  color: var(--cba751-plum);
  background: transparent;
  border: 1px solid var(--cba751-plum);
}

@media (max-width: 354px) {
  .cba751-btn-register {
    padding: 0 13px;
    font-size: 14px;
  }
  .cba751-btn-login {
    padding: 0 10px;
  }
}

/* burger: three bars morphing into an X */
.cba751-burger {
  position: relative;
  width: 42px;
  height: 44px;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--cba751-steel);
  border-radius: var(--cba751-radius-s);
}

.cba751-burger-bar,
.cba751-burger-bar::before,
.cba751-burger-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cba751-butter);
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
}

.cba751-burger-bar {
  top: 50%;
  transform: translate(-50%, -50%);
}

.cba751-burger-bar::before {
  top: -6px;
  left: 0;
  transform: none;
}

.cba751-burger-bar::after {
  top: 6px;
  left: 0;
  transform: none;
}

.cba751-topbar.is-open .cba751-burger-bar {
  background: transparent;
}

.cba751-topbar.is-open .cba751-burger-bar::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--cba751-plum);
}

.cba751-topbar.is-open .cba751-burger-bar::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--cba751-plum);
}

/* ---------- compact route panel (slides in under the bar) ---------- */

.cba751-menupanel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(14, 14, 14, 0.97);
  border-bottom: 1px solid var(--cba751-slate);
  box-shadow: 0 22px 30px rgba(0, 0, 0, 0.55);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: max-height 0.34s ease, opacity 0.26s ease, transform 0.34s ease;
}

.cba751-topbar.is-open .cba751-menupanel {
  max-height: 430px;
  opacity: 1;
  transform: translateY(0);
}

.cba751-menu-group {
  padding: 10px 14px 4px;
}

.cba751-menu-group + .cba751-menu-group {
  border-top: 1px dashed var(--cba751-steel);
  margin-top: 6px;
  padding-top: 12px;
}

.cba751-menu-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cba751-fog);
}

.cba751-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cba751-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--cba751-steel);
  border-radius: var(--cba751-radius-s);
  background: rgba(60, 60, 60, 0.25);
  color: var(--cba751-paper);
  font-size: 13px;
  font-weight: 400;
}

.cba751-menu-link::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cba751-slate);
  box-shadow: 0 0 6px var(--cba751-slate);
}

.cba751-menu-link.is-current {
  border-color: var(--cba751-plum);
  color: var(--cba751-butter);
  background: var(--cba751-plum-soft);
}

.cba751-menu-link.is-current::before {
  background: var(--cba751-butter);
  box-shadow: 0 0 6px var(--cba751-plum);
}

.cba751-menu-link:active {
  transform: scale(0.98);
}

.cba751-menu-note {
  margin: 0;
  padding: 8px 14px 12px;
  font-size: 11px;
  color: var(--cba751-fog);
}

/* ---------- main column ---------- */

.cba751-main {
  padding-top: calc(var(--cba751-top-h) + 8px);
  /* keep clear of the fixed layered bottom bar */
  padding-bottom: calc(var(--cba751-nav-h) + 46px + env(safe-area-inset-bottom, 0px));
}

.cba751-mod {
  padding: 22px 14px 6px;
}

.cba751-mod-head {
  margin-bottom: 12px;
}

/* intro-led section rhythm: kicker chip, bold heading, lead paragraph */
.cba751-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border: 1px solid var(--cba751-slate);
  border-radius: 999px;
  background: var(--cba751-slate-soft);
  color: var(--cba751-butter);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.cba751-h2 {
  font-size: 21px;
}

.cba751-lead {
  color: var(--cba751-fog);
  font-size: 14px;
}

.cba751-lead strong,
.cba751-mod strong {
  color: var(--cba751-butter);
  font-weight: 600;
}

/* inline in-body links */
.cba751-ilink {
  color: var(--cba751-plum);
  font-weight: 400;
  border-bottom: 1px dashed var(--cba751-plum);
  padding-bottom: 1px;
}

.cba751-ilink:active {
  color: var(--cba751-butter);
  border-bottom-color: var(--cba751-butter);
}

/* ---------- hero ---------- */

.cba751-hero {
  padding: 20px 14px 4px;
}

.cba751-hero-kicker {
  margin-bottom: 10px;
}

.cba751-hero-title {
  font-size: 26px;
  text-wrap: balance;
}

.cba751-hero-title em {
  font-style: normal;
  color: var(--cba751-plum);
}

.cba751-hero-lead {
  color: var(--cba751-fog);
  font-size: 14.5px;
}

.cba751-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0 6px;
}

.cba751-stat {
  padding: 9px 4px 7px;
  text-align: center;
  border: 1px solid var(--cba751-steel);
  border-radius: var(--cba751-radius-s);
  background: rgba(60, 60, 60, 0.22);
}

.cba751-stat-num {
  display: block;
  font-family: var(--cba751-font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--cba751-butter);
}

.cba751-stat-cap {
  display: block;
  font-size: 10px;
  color: var(--cba751-fog);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.cba751-hero-note {
  font-size: 12.5px;
  color: var(--cba751-fog);
}

/* ---------- banner carousel ---------- */

.cba751-carousel {
  position: relative;
  margin: 14px 14px 0;
}

.cba751-cs-window {
  position: relative;
  aspect-ratio: 800 / 350;
  border-radius: var(--cba751-radius-m);
  overflow: hidden;
  border: 1px solid var(--cba751-slate);
  background: var(--cba751-ink-deep);
}

.cba751-cs-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: translateX(6%) scale(1.015);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.cba751-cs-slide.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}

.cba751-cs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cba751-cs-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.88) 62%, rgba(20, 20, 20, 0.97) 100%);
}

.cba751-cs-caption strong {
  font-family: var(--cba751-font-head);
  font-size: 15px;
  color: var(--cba751-butter);
}

.cba751-cs-caption em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--cba751-fog);
}

.cba751-cs-dots {
  position: absolute;
  right: 12px;
  bottom: 9px;
  z-index: 5;
  display: flex;
  gap: 2px;
}

.cba751-cs-dot {
  width: 34px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  position: relative;
}

.cba751-cs-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.cba751-cs-dot.is-on::before {
  width: 20px;
  border-radius: 999px;
  background: var(--cba751-butter);
}

/* ---------- category quick chips ---------- */

.cba751-chips {
  display: flex;
  gap: 8px;
  margin: 16px 0 2px;
  padding: 2px 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cba751-chips::-webkit-scrollbar {
  display: none;
}

.cba751-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--cba751-steel);
  background: rgba(60, 60, 60, 0.22);
  color: var(--cba751-paper);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.cba751-chip.is-on {
  border-color: var(--cba751-plum);
  background: var(--cba751-plum-soft);
  color: var(--cba751-butter);
  font-weight: 600;
}

/* ---------- game sections and outlined tile cards ---------- */

.cba751-gsec {
  padding: 24px 14px 4px;
  scroll-margin-top: calc(var(--cba751-top-h) + 10px);
}

.cba751-gsec + .cba751-gsec {
  border-top: 1px solid rgba(60, 60, 60, 0.6);
}

.cba751-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 4px;
}

@media (min-width: 375px) {
  .cba751-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
}

.cba751-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 5px;
  border: 1px solid var(--cba751-steel);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(60, 60, 60, 0.3), rgba(20, 20, 20, 0.5));
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.cba751-tile:active {
  transform: translateY(-3px);
  border-color: var(--cba751-plum);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

@media (hover: hover) {
  .cba751-tile:hover {
    transform: translateY(-3px);
    border-color: var(--cba751-plum);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  }
}

.cba751-tile-frame {
  display: block;
  border-radius: var(--cba751-radius-s);
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(221, 160, 221, 0.14), rgba(20, 20, 20, 0.4) 75%);
}

.cba751-tile-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cba751-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--cba751-paper);
  min-height: 2.6em;
}

@media (min-width: 375px) {
  .cba751-tile-name {
    font-size: 10px;
  }
}

.cba751-gsec-foot {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--cba751-fog);
}

/* ---------- play-now CTA module (staggered buttons) ---------- */

.cba751-cta-card {
  margin: 22px 14px 0;
  padding: 18px 16px;
  border: 1px solid var(--cba751-slate);
  border-radius: var(--cba751-radius-m);
  background:
    radial-gradient(circle at 85% -20%, rgba(221, 160, 221, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(106, 90, 205, 0.2), rgba(20, 20, 20, 0.6) 60%);
}

.cba751-cta-lead {
  color: var(--cba751-paper);
  font-size: 14px;
}

.cba751-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 9px;
  margin: 14px 0 10px;
}

.cba751-btn-big {
  flex: 1 1 100%;
  min-height: 52px;
  font-size: 16.5px;
  letter-spacing: 0.4px;
  color: var(--cba751-ink);
  background: linear-gradient(135deg, var(--cba751-butter) 0%, var(--cba751-plum) 140%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(221, 160, 221, 0.35);
}

.cba751-btn-ghost {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  color: var(--cba751-plum);
  border: 1px solid var(--cba751-plum);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.4);
}

.cba751-cta-fine {
  margin: 0;
  font-size: 11.5px;
  color: var(--cba751-fog);
}

/* ---------- features module (scannable 2-col cells) ---------- */

.cba751-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

@media (max-width: 359px) {
  .cba751-feat-grid {
    grid-template-columns: 1fr;
  }
}

.cba751-feat-cell {
  padding: 11px 11px 10px;
  border: 1px solid var(--cba751-steel);
  border-radius: var(--cba751-radius-m);
  background: rgba(60, 60, 60, 0.2);
}

.cba751-feat-name {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  font-family: var(--cba751-font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--cba751-butter);
}

/* pure-CSS diamond marker */
.cba751-feat-name::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--cba751-plum);
  box-shadow: 0 0 7px rgba(221, 160, 221, 0.7);
}

.cba751-feat-line {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--cba751-fog);
}

/* ---------- category highlights (which shelf fits you) ---------- */

.cba751-hl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cba751-hl-row {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-left: 3px solid var(--cba751-slate);
  border-radius: var(--cba751-radius-s);
  background: rgba(60, 60, 60, 0.2);
}

.cba751-hl-tag {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cba751-slate);
  border-radius: 10px;
  background: var(--cba751-slate-soft);
  font-family: var(--cba751-font-head);
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--cba751-butter);
  text-align: center;
}

.cba751-hl-body {
  min-width: 0;
}

.cba751-hl-name {
  display: block;
  font-family: var(--cba751-font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
}

.cba751-hl-fit {
  display: block;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--cba751-fog);
}

/* ---------- winners board ---------- */

.cba751-board {
  border: 1px solid var(--cba751-steel);
  border-radius: var(--cba751-radius-m);
  overflow: hidden;
  background: rgba(14, 14, 14, 0.6);
}

.cba751-board-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.cba751-board-row + .cba751-board-row {
  border-top: 1px solid rgba(60, 60, 60, 0.7);
}

.cba751-board-who {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--cba751-paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cba751-board-who small {
  display: block;
  font-size: 10.5px;
  color: var(--cba751-fog);
}

.cba751-board-game {
  flex: 0 0 auto;
  max-width: 34%;
  font-size: 10.5px;
  color: var(--cba751-plum);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cba751-board-amt {
  flex: 0 0 auto;
  font-family: var(--cba751-font-head);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--cba751-butter);
}

.cba751-board-time {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--cba751-fog);
}

.cba751-board-note {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: var(--cba751-radius-s);
  background: rgba(106, 90, 205, 0.14);
  font-size: 11.5px;
  color: var(--cba751-fog);
}

/* ---------- RTP analysis ---------- */

.cba751-rtp-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 6px 0 14px;
}

.cba751-rtp-row {
  display: block;
}

.cba751-rtp-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 12.5px;
  color: var(--cba751-paper);
}

.cba751-rtp-val {
  font-family: var(--cba751-font-head);
  font-weight: 800;
  font-size: 14px;
  color: var(--cba751-butter);
}

.cba751-rtp-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(60, 60, 60, 0.55);
  border: 1px solid var(--cba751-steel);
  overflow: hidden;
}

.cba751-rtp-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cba751-slate), var(--cba751-plum));
}

.cba751-rtp-sub {
  margin: 4px 0 0;
  font-size: 10.5px;
  color: var(--cba751-fog);
}

.cba751-rtp-note {
  font-size: 12.5px;
  color: var(--cba751-fog);
}

/* ---------- entity relationship summary ---------- */

.cba751-rel-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cba751-rel-row {
  padding: 11px 12px;
  border: 1px dashed var(--cba751-steel);
  border-radius: var(--cba751-radius-s);
}

.cba751-rel-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.cba751-rel-node {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--cba751-plum);
  background: var(--cba751-plum-soft);
  font-family: var(--cba751-font-head);
  font-weight: 700;
  font-size: 12px;
  color: var(--cba751-butter);
}

.cba751-rel-node--alt {
  border-color: var(--cba751-slate);
  background: var(--cba751-slate-soft);
}

.cba751-rel-arrow {
  font-size: 13px;
  color: var(--cba751-fog);
}

.cba751-rel-desc {
  margin: 0;
  font-size: 12px;
  color: var(--cba751-fog);
}

/* ---------- extended footer (two-column directory) ---------- */

.cba751-xfoot {
  margin-top: 26px;
  padding: 20px 14px 14px;
  border-top: 1px solid var(--cba751-slate);
  background:
    linear-gradient(180deg, rgba(106, 90, 205, 0.12), rgba(20, 20, 20, 0) 120px),
    rgba(14, 14, 14, 0.7);
}

.cba751-xf-head {
  margin: 0 0 10px;
  font-family: var(--cba751-font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--cba751-butter);
}

.cba751-xf-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

@media (max-width: 359px) {
  .cba751-xf-dir {
    grid-template-columns: 1fr;
  }
}

.cba751-xf-dir-link {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid rgba(60, 60, 60, 0.8);
  border-radius: var(--cba751-radius-s);
  font-size: 11.5px;
  color: var(--cba751-paper);
  line-height: 1.3;
}

.cba751-xf-dir-link::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cba751-plum);
}

.cba751-xf-dir-link:active {
  border-color: var(--cba751-plum);
  color: var(--cba751-butter);
}

.cba751-xf-block {
  margin-top: 18px;
}

.cba751-xf-block-title {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--cba751-fog);
}

.cba751-xf-brand {
  margin: 0;
  font-size: 12.5px;
  color: var(--cba751-fog);
}

.cba751-xf-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cba751-xf-promo {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.cba751-xf-promo--solid {
  color: var(--cba751-ink);
  background: linear-gradient(135deg, var(--cba751-butter), var(--cba751-plum) 135%);
  border: 0;
}

.cba751-xf-promo--line {
  color: var(--cba751-plum);
  border: 1px solid var(--cba751-plum);
  background: rgba(20, 20, 20, 0.45);
}

.cba751-xf-promo--text {
  min-height: 36px;
  padding: 0 4px;
  color: var(--cba751-plum);
  border-bottom: 1px dashed var(--cba751-plum);
  border-radius: 0;
  background: none;
}

.cba751-xf-disclaim {
  margin: 18px 0 0;
  padding: 11px 12px;
  border-left: 3px solid var(--cba751-slate);
  border-radius: var(--cba751-radius-s);
  background: rgba(60, 60, 60, 0.25);
  font-size: 11px;
  line-height: 1.6;
  color: var(--cba751-fog);
}

/* ---------- common footer ---------- */

.cba751-footer {
  padding: 18px 14px 8px;
  border-top: 1px solid var(--cba751-steel);
  text-align: center;
}

.cba751-foot-copy {
  margin: 0 0 3px;
  font-family: var(--cba751-font-head);
  font-weight: 600;
  font-size: 12px;
  color: var(--cba751-fog);
}

.cba751-foot-line {
  margin: 0;
  font-size: 10.5px;
  color: rgba(153, 153, 153, 0.6);
}

/* ---------- layered bottom navigation ---------- */

.cba751-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 2px;
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.94), rgba(14, 14, 14, 0.99));
  border-top: 1px solid var(--cba751-slate);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.5);
}

.cba751-bn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 4px 2px 2px;
  border-radius: var(--cba751-radius-s);
  color: var(--cba751-fog);
}

.cba751-bn-ic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cba751-bn-ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.25s ease, stroke 0.25s ease, transform 0.25s ease;
}

.cba751-bn-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* active role: filled icon state over a background support block */
.cba751-bn-item.is-active {
  color: var(--cba751-butter);
}

.cba751-bn-item.is-active .cba751-bn-ic {
  background: var(--cba751-plum-soft);
  border: 1px solid rgba(221, 160, 221, 0.45);
}

.cba751-bn-item.is-active .cba751-bn-ic svg {
  fill: rgba(221, 160, 221, 0.4);
  stroke: var(--cba751-butter);
  transform: scale(1.06);
}

/* press feedback: icon state morph */
.cba751-bn-item:active .cba751-bn-ic svg {
  transform: scale(0.88);
}

.cba751-bn-item:active {
  color: var(--cba751-plum);
}

/* promo roles wear the plum accent */
.cba751-bn-promo {
  color: var(--cba751-plum);
}

.cba751-bn-promo:active {
  color: var(--cba751-butter);
}

/* raised center plate: the layered silhouette of the bar */
.cba751-bn-raised {
  margin-top: -30px;
  color: var(--cba751-ink);
}

.cba751-bn-raised .cba751-bn-ic {
  width: 58px;
  height: 58px;
  margin-top: -12px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--cba751-butter) 0%, var(--cba751-plum) 125%);
  border: 3px solid rgba(20, 20, 20, 0.9);
  box-shadow: 0 6px 18px rgba(221, 160, 221, 0.45);
}

.cba751-bn-raised .cba751-bn-ic svg {
  width: 26px;
  height: 26px;
  stroke: var(--cba751-ink);
  stroke-width: 2;
}

.cba751-bn-raised .cba751-bn-label {
  color: var(--cba751-butter);
}

.cba751-bn-raised:active .cba751-bn-ic svg {
  transform: scale(0.9);
}

/* ---------- motion budget guard ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
