:root {
  /* Official Table Game Logo & Gold-Framed Teal-Felt Palette */
  --bg: #041915;
  --surface: #082B24;
  --surface-2: #0E3C33;
  --surface-3: #05201B;
  --accent: #17B997;
  --accent-hover: #129E80;
  --accent-soft: rgba(23, 185, 151, 0.16);
  --gold-bright: #FDE77B;
  --accent2: #E3BC21;
  --accent2-hover: #D4A915;
  --accent2-soft: rgba(227, 188, 33, 0.16);

  /* Official 5-Tile Brand Accents (T-A-B-L-E) */
  --tile-blue: #0096DB;
  --tile-red: #DF3E36;
  --tile-yellow: #E3BC21;
  --tile-green: #79A21E;
  --tile-orange: #ED8637;

  --danger: #F87171;
  --text: #F2FDF9;
  --text-muted: #B6EFE0;
  --text-dim: #83C7B5;
  --border: rgba(23, 185, 151, 0.28);
  --border-gold: rgba(253, 231, 123, 0.42);
  --radius-sm: 8px;
  --radius: 13px;
  --radius-lg: 18px;
  --max-w: 1220px;
  --shadow: 0 14px 36px rgba(0, 12, 10, 0.5);
  --shadow-gold: 0 8px 24px rgba(227, 188, 33, 0.28);
  --font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --brand-stripe: linear-gradient(90deg, #0096DB 0% 20%, #DF3E36 20% 40%, #E3BC21 40% 60%, #79A21E 60% 80%, #ED8637 80% 100%);
  --cta-gold-grad: linear-gradient(135deg, #FDE77B 0%, #E3BC21 52%, #ED8637 100%);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 85% 42% at 50% -8%, rgba(23, 185, 151, 0.24), transparent 64%),
    radial-gradient(circle at 12% 18%, rgba(0, 150, 219, 0.08), transparent 36%),
    radial-gradient(circle at 88% 14%, rgba(237, 134, 55, 0.08), transparent 36%),
    linear-gradient(180deg, #041915 0%, #06251F 48%, #041915 100%);
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a:hover {
  color: var(--gold-bright);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.24;
  margin-top: 0;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.48rem, 4.6vw, 2.55rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.24rem, 3.6vw, 1.85rem);
  font-weight: 700;
  margin: 2rem 0 0.8rem;
}

h3 {
  font-size: clamp(1.04rem, 2.6vw, 1.28rem);
  font-weight: 600;
  margin: 1.35rem 0 0.55rem;
}

p {
  margin: 0 0 1.05rem;
  color: #E2FAF3;
}

ul, ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: #E2FAF3;
}

li {
  margin-bottom: 0.45rem;
}

strong {
  color: #FFFFFF;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-bright);
  color: #041915;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: var(--radius-sm);
}

/* ================= HEADER & NAV ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 25, 21, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 10, 8, 0.35);
}

.site-header::before {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: var(--brand-stripe);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: #E2FAF3;
  font-size: 0.89rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-ghost-sm,
.btn-gold-sm,
.btn-primary-cta,
.btn-secondary-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-ghost-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.btn-ghost-sm:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: var(--surface-2);
}

.btn-gold-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
  color: #041915;
  background: var(--cta-gold-grad);
  box-shadow: 0 4px 14px rgba(227, 188, 33, 0.25);
}

.btn-gold-sm:hover {
  color: #041915;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(237, 134, 55, 0.35);
}

.btn-primary-cta {
  min-height: 50px;
  padding: 0 28px;
  font-size: 1rem;
  color: #041915;
  background: var(--cta-gold-grad);
  box-shadow: var(--shadow-gold);
}

.btn-primary-cta:hover {
  color: #041915;
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(237, 134, 55, 0.38);
}

.btn-secondary-guide {
  min-height: 50px;
  padding: 0 24px;
  font-size: 1rem;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0, 150, 219, 0.18), rgba(23, 185, 151, 0.22));
  border-color: var(--accent);
}

.btn-secondary-guide:hover {
  background: var(--accent);
  color: #041915;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 18px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-drawer-cta a {
  width: 100%;
  min-height: 46px;
}

.mobile-drawer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* Secondary Quick Category Strip */
.subnav-strip {
  background: rgba(5, 32, 27, 0.92);
  border-bottom: 1px solid rgba(23, 185, 151, 0.16);
}

.subnav-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.subnav-scroll::-webkit-scrollbar {
  display: none;
}

.subnav-pill {
  flex: 0 0 auto;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.subnav-pill:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: var(--surface-2);
}

/* ================= BREADCRUMB ================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-dim);
  padding: 16px 0 6px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span[aria-hidden="true"] {
  color: var(--accent2);
}

/* ================= HERO + 3-SLIDE CAROUSEL ================= */
.hero-section {
  padding: 28px 0 24px;
}

.hero-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-main-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #0B362D 0%, #06211C 62%, #051B17 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-main-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-stripe);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  background: linear-gradient(135deg, rgba(227, 188, 33, 0.16), rgba(237, 134, 55, 0.14));
  border: 1px solid var(--border-gold);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}

.hero-lead {
  font-size: 1.03rem;
  color: #E2FAF3;
  margin-bottom: 18px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-chip {
  font-size: 0.81rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: rgba(4, 25, 21, 0.78);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.hero-quick-specs {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  box-shadow: var(--shadow);
}

.spec-tile {
  background: rgba(4, 25, 21, 0.72);
  border: 1px solid rgba(23, 185, 151, 0.22);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 13px 14px;
}

.spec-tile:nth-child(1) { border-top-color: var(--tile-blue); }
.spec-tile:nth-child(2) { border-top-color: var(--tile-green); }
.spec-tile:nth-child(3) { border-top-color: var(--tile-yellow); }
.spec-tile:nth-child(4) { border-top-color: var(--tile-orange); }
.spec-tile:nth-child(5) { border-top-color: var(--accent); }
.spec-tile:nth-child(6) { border-top-color: var(--tile-red); }

.spec-tile-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.spec-tile-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
}

/* Interactive 3-Slide Hero Carousel */
.carousel-wrap {
  position: relative;
  background: linear-gradient(135deg, #0A332A 0%, #051F1A 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px 56px;
  min-height: 330px;
}

.slide-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #041915;
  background: linear-gradient(135deg, var(--accent), #34D399);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.carousel-slide:nth-child(2) .slide-badge {
  background: linear-gradient(135deg, #FDE77B, #ED8637);
}

.carousel-slide:nth-child(3) .slide-badge {
  background: linear-gradient(135deg, #38BDF8, #0096DB);
  color: #FFFFFF;
}

.slide-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.slide-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.slide-pill {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.slide-game-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portrait-card-mini {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portrait-card-mini:hover {
  border-color: var(--gold-bright);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.portrait-frame {
  aspect-ratio: 440 / 528;
  width: 100%;
  overflow: hidden;
  background: #041915;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.portrait-card-meta {
  padding: 9px 10px;
}

.portrait-card-name {
  display: block;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.portrait-card-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--gold-bright);
  margin-top: 2px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(4, 25, 21, 0.9);
  color: var(--gold-bright);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.carousel-btn:hover {
  background: var(--cta-gold-grad);
  color: #041915;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 0 16px;
}

.carousel-dot {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(182, 239, 224, 0.25);
  cursor: pointer;
  padding: 0;
}

.carousel-dot[aria-selected="true"] {
  background: var(--cta-gold-grad);
  width: 44px;
}

/* ================= TRUST BAR (5-TILE HARMONIZED) ================= */
.trust-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 32px;
}

.trust-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-3) 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
}

.trust-card:nth-child(1) { border-top-color: var(--tile-blue); }
.trust-card:nth-child(2) { border-top-color: var(--tile-green); }
.trust-card:nth-child(3) { border-top-color: var(--tile-orange); }
.trust-card:nth-child(4) { border-top-color: var(--tile-yellow); }

.trust-card-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 5px;
}

.trust-card p {
  font-size: 0.86rem;
  margin: 0;
  color: var(--text-muted);
}

/* ================= GAMES GRID (2x RETINA PORTRAIT) ================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 28px;
}

.game-card {
  background: linear-gradient(170deg, var(--surface) 0%, var(--surface-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 14px 30px rgba(0, 10, 8, 0.45);
}

.game-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.game-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 150, 219, 0.18);
  color: #7DD3FC;
  border: 1px solid rgba(0, 150, 219, 0.34);
}

.game-rtp {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.game-card h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
}

.game-card h3 a {
  color: var(--text);
}

.game-card h3 a:hover {
  color: var(--gold-bright);
}

.game-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.game-card-actions {
  display: flex;
  gap: 8px;
}

.game-card-actions a {
  flex: 1;
  min-height: 42px;
  font-size: 0.84rem;
}

/* ================= INTERACTIVE CALCULATOR WIDGET ================= */
.calc-widget {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0A332B 0%, #051D18 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 28px 0;
  box-shadow: var(--shadow);
  min-height: 520px;
}

.calc-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-stripe);
}

.calc-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.calc-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent2-soft);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  margin-bottom: 8px;
}

.calc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-tab-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.calc-tab-btn[aria-selected="true"] {
  background: var(--cta-gold-grad);
  color: #041915;
  border-color: transparent;
}

.calc-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.calc-field {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.calc-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calc-input {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #041915;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
}

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.calc-preset {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.calc-preset:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: var(--surface-2);
}

.calc-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

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

.calc-kpi {
  background: rgba(4, 25, 21, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.calc-kpi-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-kpi-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-top: 2px;
}

.calc-risk-note {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 16px;
}

.calc-risk-note.is-warn {
  background: rgba(223, 62, 54, 0.16);
  border-left-color: var(--tile-red);
}

.edge-bar-track {
  width: 100%;
  min-width: 90px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.edge-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold-bright));
}

.edge-bar-fill.is-high {
  background: linear-gradient(90deg, var(--tile-orange), var(--tile-red));
}

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

/* ================= EDITORIAL & CONTENT CARDS ================= */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #0B352C 0%, #051E19 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 10px 0 24px;
  box-shadow: var(--shadow);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-stripe);
}

.expert-callout {
  background: rgba(23, 185, 151, 0.11);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 0.94rem;
}

.tldr-box {
  background: linear-gradient(145deg, rgba(227, 188, 33, 0.12), rgba(237, 134, 55, 0.08));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0 24px;
}

.tldr-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #041915;
  background: var(--cta-gold-grad);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.answer-capsule {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0.5rem 0 1.15rem;
  font-size: 0.97rem;
  color: var(--text);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
}

.article-body {
  min-width: 0;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0, 10, 8, 0.3);
}

.sidebar-card h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--gold-bright);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  border-bottom: 1px solid rgba(23, 185, 151, 0.16);
  padding: 7px 0;
  margin: 0;
}

.sidebar-list li:last-child {
  border-bottom: 0;
}

.sidebar-list a {
  font-size: 0.9rem;
  color: #E2FAF3;
  display: block;
}

.sidebar-list a:hover {
  color: var(--gold-bright);
}

/* Tables with smooth mobile scroll & sticky first column */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(23, 185, 151, 0.18);
}

th {
  background: var(--surface-3);
  color: var(--gold-bright);
  font-family: var(--font-head);
  font-size: 0.81rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(23, 185, 151, 0.08);
}

.status-ok {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(23, 185, 151, 0.18);
  color: #5EEAD4;
  border: 1px solid rgba(23, 185, 151, 0.34);
  font-weight: 600;
  font-size: 0.78rem;
}

.status-warn {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(223, 62, 54, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(223, 62, 54, 0.4);
  font-weight: 600;
  font-size: 0.78rem;
}

/* Hub Directory Cards */
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
}

.link-card {
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-card:hover {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.link-card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.link-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

.link-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-top: auto;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 28px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--border-gold);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 52px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-answer {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(23, 185, 151, 0.16);
  font-size: 0.95rem;
}

/* Compliance & Analyst Desk Box */
.rg-box {
  background: linear-gradient(145deg, #0C352C 0%, #051E19 100%);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--tile-red);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin: 26px 0;
}

.desk-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin: 24px 0;
}

.cta-banner {
  background: linear-gradient(135deg, #0D3D33 0%, #06211C 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 26px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ================= 3-ROW AUTHORITY FOOTER ================= */
.site-footer {
  background: #031310;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 0 0 88px;
}

.site-footer::before {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: var(--brand-stripe);
  margin-bottom: 32px;
}

.footer-brand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(23, 185, 151, 0.18);
}

.footer-brand-bar img {
  height: 34px;
  width: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(23, 185, 151, 0.18);
}

.footer-col h3 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin: 0 0 12px;
}

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

.footer-col li {
  margin-bottom: 7px;
}

.footer-col a {
  font-size: 0.86rem;
  color: #C7F4E8;
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.footer-trust-rows {
  padding: 22px 0;
  border-bottom: 1px solid rgba(23, 185, 151, 0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.trust-row-label {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  min-width: 125px;
}

.trust-badge-img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

.trust-pill-dark {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.trust-pill-21 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  background: #F2FDF9;
  color: #041915;
}

.trust-pill-21:hover {
  background: var(--cta-gold-grad);
  color: #041915;
}

.footer-bottom {
  padding-top: 20px;
  font-size: 0.84rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Sticky Mobile Action Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: rgba(4, 25, 21, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-gold);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}

.mobile-sticky-bar a {
  flex: 1;
  min-height: 46px;
  font-size: 0.9rem;
}

/* ================= RESPONSIVE (MOBILE-FIRST REFINED) ================= */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-top-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .carousel-slide {
    grid-template-columns: 1fr;
    padding: 22px 22px 16px;
    gap: 18px;
    min-height: 0;
  }
  .carousel-wrap {
    padding-bottom: 10px;
  }
  .carousel-btn {
    top: auto;
    bottom: 10px;
    transform: none;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .carousel-dots {
    padding: 12px 58px 14px;
    align-items: center;
  }
  .trust-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-stack {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }
  .header-inner {
    min-height: 60px;
    gap: 8px;
  }
  .brand-logo {
    gap: 6px;
    min-width: 0;
  }
  .brand-logo-img {
    height: 25px;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .btn-ghost-sm {
    display: none;
  }
  .header-actions .btn-gold-sm {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.82rem;
  }
  .nav-toggle {
    min-width: 40px;
    min-height: 40px;
    font-size: 1.15rem;
  }
  .subnav-scroll {
    padding: 8px 0;
    gap: 6px;
  }
  .subnav-pill {
    font-size: 0.78rem;
    padding: 6px 11px;
  }
  .hero-section {
    padding: 16px 0 18px;
  }
  .hero-main-box,
  .page-hero {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .hero-kicker {
    font-size: 0.72rem;
    padding: 4px 10px;
    margin-bottom: 10px;
  }
  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
  .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }
  .hero-cta-row .btn-primary-cta,
  .hero-cta-row .btn-secondary-guide,
  .hero-cta-row .btn-gold-sm,
  .hero-cta-row .btn-ghost-sm {
    width: 100%;
    padding: 0 12px;
    font-size: 0.9rem;
    min-height: 46px;
    white-space: normal;
    line-height: 1.2;
  }
  .hero-trust-chips {
    gap: 6px;
  }
  .trust-chip {
    font-size: 0.75rem;
    padding: 4px 9px;
  }
  .hero-quick-specs {
    padding: 12px;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spec-tile {
    padding: 10px 11px;
  }
  .spec-tile-label {
    font-size: 0.68rem;
  }
  .spec-tile-val {
    font-size: 0.86rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .carousel-slide {
    padding: 16px 14px 10px;
    gap: 14px;
  }
  .slide-title {
    font-size: 1.18rem;
  }
  .slide-pills {
    gap: 6px;
    margin: 8px 0 12px;
  }
  .slide-pill {
    font-size: 0.74rem;
    padding: 3px 9px;
  }
  .slide-game-trio {
    gap: 8px;
  }
  .portrait-card-meta {
    padding: 7px 6px;
  }
  .portrait-card-name {
    font-size: 0.74rem;
    line-height: 1.2;
  }
  .portrait-card-sub {
    font-size: 0.66rem;
    line-height: 1.2;
  }
  .trust-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 22px;
  }
  .trust-card {
    padding: 12px;
  }
  .trust-card-title {
    font-size: 0.86rem;
  }
  .trust-card p {
    font-size: 0.79rem;
    line-height: 1.45;
  }
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 22px;
  }
  .game-card {
    border-radius: 13px;
  }
  .game-card-body {
    padding: 11px;
  }
  .game-card-top {
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
  }
  .game-tag {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
  .game-rtp {
    font-size: 0.72rem;
  }
  .game-card h3 {
    font-size: 0.94rem;
    margin-bottom: 5px;
  }
  .game-card-desc {
    font-size: 0.8rem;
    line-height: 1.42;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .game-card-actions {
    flex-direction: column;
    gap: 6px;
  }
  .game-card-actions a {
    width: 100%;
    min-height: 38px;
    font-size: 0.82rem;
    padding: 0 10px;
  }
  /* Mobile-friendly Calculator */
  .calc-widget {
    padding: 18px 14px;
    min-height: 0;
    border-radius: 14px;
  }
  .calc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }
  .calc-tab-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
    min-height: 44px;
    white-space: normal;
    line-height: 1.2;
  }
  .calc-controls {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .calc-field {
    padding: 12px;
  }
  .calc-input {
    font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
    min-height: 46px;
  }
  .calc-preset {
    flex: 1 1 auto;
    min-height: 38px;
    font-size: 0.8rem;
  }
  .calc-summary-strip,
  .calc-summary-strip--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .calc-summary-strip--3 .calc-kpi:last-child {
    grid-column: 1 / -1;
  }
  .calc-kpi {
    padding: 10px 11px;
  }
  .calc-kpi-label {
    font-size: 0.69rem;
  }
  .calc-kpi-val {
    font-size: 1rem;
  }
  .link-card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  /* Mobile Table Ergonomics */
  table {
    min-width: 480px;
    font-size: 0.84rem;
  }
  th, td {
    padding: 9px 10px;
  }
  th:first-child,
  td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface-3);
    box-shadow: 2px 0 8px rgba(0, 12, 10, 0.35);
    max-width: 155px;
  }
  .cta-banner {
    padding: 18px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .cta-banner .hero-cta-row {
    width: 100%;
  }
  .expert-callout,
  .tldr-box,
  .rg-box,
  .desk-box {
    padding: 14px 15px;
  }
  .faq-item summary {
    padding: 14px;
    font-size: 0.94rem;
  }
  .faq-answer {
    padding: 10px 14px 14px;
    font-size: 0.9rem;
  }
  /* Footer Mobile Polish */
  .footer-brand-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .trust-row-label {
    min-width: 100%;
    margin-bottom: -2px;
  }
  .trust-badge-img {
    height: 28px;
  }
  .mobile-sticky-bar {
    display: flex;
  }
  .site-footer {
    padding-bottom: 92px;
  }
}

@media (max-width: 400px) {
  .brand-logo-img {
    height: 22px;
  }
  .hero-cta-row {
    grid-template-columns: 1fr;
  }
  .slide-game-trio {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .slide-game-trio .portrait-card-mini {
    scroll-snap-align: start;
  }
}

