/* ==========================================================================
   TablePlus 1 - compact-88e868-chrome.css
   Mobile-first casino lobby styles (320-430px canvas, centered on desktop).
   Palette: rust #BF360C / flame #E65100 / gold #FFCC02 / mint #00FA9A /
   fog #D3D3D3 / ink #1A1A1A
   All classes and custom properties use the layer8e868- prefix.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --layer8e868-ink: #1a1a1a;
  --layer8e868-ink-2: #232019;
  --layer8e868-ink-3: #2c2820;
  --layer8e868-rust: #bf360c;
  --layer8e868-flame: #e65100;
  --layer8e868-gold: #ffcc02;
  --layer8e868-mint: #00fa9a;
  --layer8e868-fog: #d3d3d3;
  --layer8e868-fog-dim: rgba(211, 211, 211, 0.62);
  --layer8e868-fog-faint: rgba(211, 211, 211, 0.34);
  --layer8e868-line: rgba(211, 211, 211, 0.16);
  --layer8e868-line-strong: rgba(211, 211, 211, 0.3);
  --layer8e868-gold-soft: rgba(255, 204, 2, 0.14);
  --layer8e868-mint-soft: rgba(0, 250, 154, 0.12);
  --layer8e868-flame-soft: rgba(230, 81, 0, 0.16);
  --layer8e868-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);

  /* Technical-feel headings paired with an open reading body face */
  --layer8e868-font-head: "Segoe UI Semibold", "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  --layer8e868-font-body: system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --layer8e868-font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo,
    Consolas, monospace;

  --layer8e868-radius-card: 8px;
  --layer8e868-radius-btn: 5px;

  --layer8e868-topbar-h: 100px;
  --layer8e868-bottomnav-h: 64px;
}

/* ---------- Reset and base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #131110;
  color: var(--layer8e868-fog);
  font-family: var(--layer8e868-font-body);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--layer8e868-mint);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--layer8e868-gold);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--layer8e868-gold);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection {
  background: var(--layer8e868-gold);
  color: var(--layer8e868-ink);
}

/* ---------- Phone canvas (centered on wide screens) ---------- */
.layer8e868-page {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--layer8e868-ink);
  overflow-x: hidden;
}

/* ==========================================================================
   Top bar - logo-dominant action strip with compact route panel
   ========================================================================== */
.layer8e868-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 60;
  background: linear-gradient(180deg, #201d18 0%, rgba(26, 26, 26, 0.97) 100%);
  border-bottom: 1px solid var(--layer8e868-line);
}

/* Tier 1: brand zone shows only the real logo image + site name */
.layer8e868-bandrail {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px 6px;
}

.layer8e868-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
  color: var(--layer8e868-fog);
}

.layer8e868-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--layer8e868-line-strong);
  background: var(--layer8e868-ink-2);
  object-fit: cover;
  flex: 0 0 auto;
}

.layer8e868-brand-name {
  font-family: var(--layer8e868-font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.layer8e868-brand-name span {
  display: block;
  font-family: var(--layer8e868-font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--layer8e868-gold);
  margin-top: 2px;
}

.layer8e868-menu-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--layer8e868-line-strong);
  border-radius: var(--layer8e868-radius-btn);
  background: var(--layer8e868-ink-2);
  color: var(--layer8e868-fog);
  transition: color 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease;
}

.layer8e868-menu-btn:hover,
.layer8e868-menu-btn:focus-visible {
  color: var(--layer8e868-gold);
  border-color: var(--layer8e868-gold);
}

.layer8e868-menu-btn[aria-expanded="true"] {
  color: var(--layer8e868-ink);
  background: var(--layer8e868-gold);
  border-color: var(--layer8e868-gold);
}

.layer8e868-menu-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Tier 2: action zone with segmented Register / Login controls */
.layer8e868-actionrail {
  display: flex;
  gap: 8px;
  padding: 0 12px 10px;
}

.layer8e868-ctaseg {
  display: flex;
  width: 100%;
  border: 1px solid var(--layer8e868-line-strong);
  border-radius: var(--layer8e868-radius-btn);
  overflow: hidden;
}

.layer8e868-ctaseg .layer8e868-segac {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--layer8e868-font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.layer8e868-segac-register {
  background: var(--layer8e868-gold);
  color: var(--layer8e868-ink);
}

.layer8e868-segac-register:hover,
.layer8e868-segac-register:focus-visible {
  background: #ffd84d;
  color: var(--layer8e868-ink);
}

.layer8e868-segac-login {
  background: transparent;
  color: var(--layer8e868-mint);
  border-left: 1px solid var(--layer8e868-line);
}

.layer8e868-segac-login:hover,
.layer8e868-segac-login:focus-visible {
  background: var(--layer8e868-mint-soft);
  color: var(--layer8e868-mint);
}

/* Compact route panel */
.layer8e868-routes {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: #201d18;
  border-top: 1px solid transparent;
}

.layer8e868-routes.layer8e868-open {
  max-height: 420px;
  border-top-color: var(--layer8e868-line);
  overflow-y: auto;
}

.layer8e868-routes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px;
}

.layer8e868-routes-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--layer8e868-line);
  border-radius: var(--layer8e868-radius-card);
  background: var(--layer8e868-ink-2);
  color: var(--layer8e868-fog);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.16s ease, border-color 0.16s ease,
    background-color 0.16s ease;
}

.layer8e868-routes-grid a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--layer8e868-flame);
  flex: 0 0 auto;
}

.layer8e868-routes-grid a:hover,
.layer8e868-routes-grid a:focus-visible {
  color: var(--layer8e868-gold);
  border-color: var(--layer8e868-gold);
}

.layer8e868-routes-grid a.layer8e868-route-on {
  color: var(--layer8e868-mint);
  border-color: var(--layer8e868-mint);
  background: var(--layer8e868-mint-soft);
}

/* ==========================================================================
   Main flow
   ========================================================================== */
.layer8e868-main {
  padding: calc(var(--layer8e868-topbar-h) + 14px) 12px
    calc(var(--layer8e868-bottomnav-h) + 26px);
}

.layer8e868-section {
  margin-top: 26px;
}

/* Anchored game rooms must not hide behind the fixed top bar */
.layer8e868-section[id] {
  scroll-margin-top: calc(var(--layer8e868-topbar-h) + 14px);
}

/* Small mono eyebrow used above headings (technical label voice) */
.layer8e868-eyebrow {
  display: block;
  font-family: var(--layer8e868-font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--layer8e868-mint);
  margin-bottom: 6px;
}

/* ---------- Hero ---------- */
.layer8e868-hero {
  background:
    radial-gradient(120% 130% at 88% -10%, var(--layer8e868-flame-soft), transparent 55%),
    linear-gradient(160deg, #262119 0%, var(--layer8e868-ink) 70%);
  border: 1px solid var(--layer8e868-line);
  border-radius: var(--layer8e868-radius-card);
  padding: 18px 14px 16px;
}

.layer8e868-hero h1 {
  font-family: var(--layer8e868-font-head);
  font-size: 23px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.layer8e868-hero h1 em {
  font-style: normal;
  color: var(--layer8e868-gold);
}

.layer8e868-hero-lead {
  margin-top: 10px;
  font-size: 14px;
  color: var(--layer8e868-fog-dim);
}

.layer8e868-hero .layer8e868-ctaseg {
  margin-top: 14px;
}

.layer8e868-hero .layer8e868-segac {
  min-height: 46px;
}

/* ---------- Fact strip ---------- */
.layer8e868-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.layer8e868-fact {
  border: 1px solid var(--layer8e868-line);
  border-radius: var(--layer8e868-radius-card);
  background: var(--layer8e868-ink-2);
  padding: 9px 8px;
  text-align: center;
}

.layer8e868-fact b {
  display: block;
  font-family: var(--layer8e868-font-mono);
  font-size: 13px;
  color: var(--layer8e868-gold);
  letter-spacing: 0.04em;
}

.layer8e868-fact span {
  display: block;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--layer8e868-fog-dim);
  margin-top: 3px;
}

/* ---------- Promo carousel ---------- */
.layer8e868-carousel {
  margin-top: 16px;
}

.layer8e868-caro-viewport {
  position: relative;
  border: 1px solid var(--layer8e868-line-strong);
  border-radius: var(--layer8e868-radius-card);
  overflow: hidden;
  background: var(--layer8e868-ink-2);
}

.layer8e868-caro-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.33, 0.9, 0.3, 1);
}

.layer8e868-slide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
}

.layer8e868-slide img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.layer8e868-caro-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--layer8e868-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--layer8e868-ink);
  background: var(--layer8e868-gold);
  border-radius: 3px;
  padding: 3px 7px;
  pointer-events: none;
}

/* Dot row with sliding indicator */
.layer8e868-dots {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin-top: 8px;
  padding: 0 2px;
}

.layer8e868-dot {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layer8e868-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--layer8e868-line-strong);
  transition: background-color 0.18s ease;
}

.layer8e868-dot:hover::before {
  background: var(--layer8e868-fog-dim);
}

.layer8e868-dot[aria-selected="true"]::before {
  background: var(--layer8e868-gold);
}

.layer8e868-dotbar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc((100% - 8px) / 3);
  height: 2px;
  border-radius: 2px;
  background: var(--layer8e868-flame);
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.33, 0.9, 0.3, 1);
}

/* ---------- Category jump strip ---------- */

/* Keep segmented actions from forcing horizontal overflow on narrow phones. */
.layer8e868-segac {
  min-width: 0;
}
.layer8e868-catstrip {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.layer8e868-catstrip::-webkit-scrollbar {
  display: none;
}

.layer8e868-catstrip a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--layer8e868-line-strong);
  border-radius: 999px;
  background: var(--layer8e868-ink-2);
  color: var(--layer8e868-fog);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.layer8e868-catstrip a:hover,
.layer8e868-catstrip a:focus-visible {
  color: var(--layer8e868-gold);
  border-color: var(--layer8e868-gold);
}

/* ---------- Section headings ---------- */
.layer8e868-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 2px solid var(--layer8e868-rust);
  padding-bottom: 7px;
}

.layer8e868-sec-head h2 {
  font-family: var(--layer8e868-font-head);
  font-size: 17px;
  line-height: 1.28;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
}

.layer8e868-sec-count {
  flex: 0 0 auto;
  font-family: var(--layer8e868-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--layer8e868-gold);
  text-transform: uppercase;
}

.layer8e868-sec-note {
  font-size: 13px;
  color: var(--layer8e868-fog-dim);
  margin: 8px 0 10px;
}

.layer8e868-sec-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Game grid - square artwork with a bottom name bar
   ========================================================================== */
.layer8e868-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.layer8e868-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--layer8e868-line);
  border-radius: var(--layer8e868-radius-card);
  background: var(--layer8e868-ink-2);
  overflow: hidden;
  text-align: center;
  min-width: 0;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.layer8e868-tile:hover,
.layer8e868-tile:focus-visible {
  border-color: var(--layer8e868-flame);
  background: var(--layer8e868-ink-3);
}

.layer8e868-tile-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.layer8e868-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom name bar across the artwork base */
.layer8e868-tile-bar {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
  padding: 4px 5px 5px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--layer8e868-fog);
  background: linear-gradient(180deg, rgba(191, 54, 12, 0.14), rgba(191, 54, 12, 0.3));
  border-top: 1px solid var(--layer8e868-line);
}

/* ==========================================================================
   Editorial modules after the game floor
   ========================================================================== */
.layer8e868-module {
  border: 1px solid var(--layer8e868-line);
  border-radius: var(--layer8e868-radius-card);
  background: var(--layer8e868-ink-2);
  padding: 16px 13px;
}

.layer8e868-module p + p {
  margin-top: 10px;
}

.layer8e868-module a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lead sentence highlighted before details unfold (fact-first rhythm) */
.layer8e868-factline {
  font-weight: 700;
  color: #fff;
}

/* Guide matrix: compact player-goal cards */
.layer8e868-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.layer8e868-guide-card {
  border: 1px solid var(--layer8e868-line);
  border-left: 3px solid var(--layer8e868-mint);
  border-radius: var(--layer8e868-radius-card);
  background: var(--layer8e868-ink);
  padding: 10px 9px;
}

.layer8e868-guide-card h3 {
  font-family: var(--layer8e868-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--layer8e868-mint);
}

.layer8e868-guide-card p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--layer8e868-fog-dim);
}

/* FAQ: native disclosure, answer opens after the question summary */
.layer8e868-faq-item {
  border: 1px solid var(--layer8e868-line);
  border-radius: var(--layer8e868-radius-card);
  background: var(--layer8e868-ink);
  margin-top: 8px;
  overflow: hidden;
}

.layer8e868-faq-item summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 11px;
  font-family: var(--layer8e868-font-head);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  cursor: pointer;
  list-style: none;
  transition: color 0.16s ease;
}

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

.layer8e868-faq-item summary::after {
  content: "+";
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--layer8e868-font-mono);
  font-size: 16px;
  color: var(--layer8e868-gold);
  transition: color 0.16s ease;
}

.layer8e868-faq-item[open] summary::after {
  content: "\2013";
}

.layer8e868-faq-item summary:hover {
  color: var(--layer8e868-gold);
}

.layer8e868-faq-body {
  padding: 0 11px 11px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--layer8e868-fog-dim);
}

/* Numbered step flow for mobile access guidance */
.layer8e868-steps {
  counter-reset: layer8e868-step;
  margin-top: 12px;
}

.layer8e868-step {
  position: relative;
  display: block;
  padding: 9px 10px 9px 40px;
  border: 1px solid var(--layer8e868-line);
  border-radius: var(--layer8e868-radius-card);
  background: var(--layer8e868-ink);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--layer8e868-fog-dim);
}

.layer8e868-step + .layer8e868-step {
  margin-top: 6px;
}

.layer8e868-step::before {
  counter-increment: layer8e868-step;
  content: counter(layer8e868-step, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--layer8e868-font-mono);
  font-size: 12px;
  color: var(--layer8e868-gold);
}

.layer8e868-step b {
  color: #fff;
}

/* Security checklist */
.layer8e868-checklist {
  margin-top: 12px;
}

.layer8e868-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--layer8e868-line);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--layer8e868-fog-dim);
}

.layer8e868-check:last-child {
  border-bottom: 0;
}

.layer8e868-check svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--layer8e868-mint);
}

.layer8e868-check b {
  color: #fff;
}

/* Comparison rows: label column + reading column */
.layer8e868-compare {
  margin-top: 12px;
  border: 1px solid var(--layer8e868-line);
  border-radius: var(--layer8e868-radius-card);
  overflow: hidden;
}

.layer8e868-compare-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  border-bottom: 1px solid var(--layer8e868-line);
}

.layer8e868-compare-row:last-child {
  border-bottom: 0;
}

.layer8e868-compare-key {
  padding: 10px 9px;
  font-family: var(--layer8e868-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--layer8e868-gold);
  background: rgba(255, 204, 2, 0.06);
  border-right: 1px solid var(--layer8e868-line);
}

.layer8e868-compare-val {
  padding: 10px 11px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--layer8e868-fog-dim);
}

.layer8e868-compare-val b {
  color: var(--layer8e868-mint);
}

/* Inline promo link styled as a compact segmented action */
.layer8e868-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  margin-top: 12px;
  border-radius: var(--layer8e868-radius-btn);
  background: var(--layer8e868-rust);
  color: #fff;
  font-family: var(--layer8e868-font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 204, 2, 0.4);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.layer8e868-inline-cta:hover,
.layer8e868-inline-cta:focus-visible {
  background: var(--layer8e868-flame);
  color: #fff;
}

/* ==========================================================================
   Homepage extended footer: brand > page directory > promotions > disclaimer
   ========================================================================== */
.layer8e868-ext {
  margin-top: 26px;
  border-top: 3px solid var(--layer8e868-gold);
  background: #201d18;
  padding: 16px 13px 14px;
}

.layer8e868-ext-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.layer8e868-ext-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--layer8e868-line-strong);
  flex: 0 0 auto;
}

.layer8e868-ext-brand p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--layer8e868-fog-dim);
}

.layer8e868-ext-label {
  font-family: var(--layer8e868-font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--layer8e868-gold);
  margin: 18px 0 8px;
}

/* Two-column page directory */
.layer8e868-ext-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 10px;
}

.layer8e868-ext-dir a {
  display: inline-block;
  padding: 7px 2px 7px 12px;
  border-left: 2px solid var(--layer8e868-rust);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--layer8e868-fog);
  line-height: 1.3;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.layer8e868-ext-dir a:hover,
.layer8e868-ext-dir a:focus-visible {
  color: var(--layer8e868-gold);
  border-left-color: var(--layer8e868-gold);
}

/* Promotion action cluster (5 entries, short labels) */
.layer8e868-ext-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.layer8e868-ext-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 204, 2, 0.45);
  border-radius: var(--layer8e868-radius-btn);
  background: var(--layer8e868-gold-soft);
  color: var(--layer8e868-gold);
  font-family: var(--layer8e868-font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.layer8e868-ext-promo svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.layer8e868-ext-promo:hover,
.layer8e868-ext-promo:focus-visible {
  background: var(--layer8e868-gold);
  color: var(--layer8e868-ink);
  border-color: var(--layer8e868-gold);
}

.layer8e868-ext-promo.layer8e868-ext-promo-wide {
  grid-column: 1 / -1;
}

/* Short factual disclaimer */
.layer8e868-ext-note {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--layer8e868-line);
  font-size: 11px;
  line-height: 1.55;
  color: var(--layer8e868-fog-faint);
}

/* ---------- Common footer (all pages): copyright only ---------- */
.layer8e868-foot {
  border-top: 1px solid var(--layer8e868-line);
  padding: 12px 13px calc(14px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-family: var(--layer8e868-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--layer8e868-fog-faint);
}

/* ==========================================================================
   Bottom navigation - outlined function bar with 5 roles
   ========================================================================== */
.layer8e868-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 70;
  background: rgba(26, 26, 26, 0.97);
  border-top: 1px solid var(--layer8e868-line-strong);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.layer8e868-bottomnav::before {
  /* outlined inner rail */
  content: "";
  display: block;
  height: 1px;
  margin: 5px 10px 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--layer8e868-line-strong) 18%,
    var(--layer8e868-line-strong) 82%,
    transparent
  );
}

.layer8e868-bn-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--layer8e868-bottomnav-h);
}

.layer8e868-bn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--layer8e868-fog-faint);
  transition: color 0.18s ease;
}

.layer8e868-bn-item svg {
  width: 21px;
  height: 21px;
  display: block;
}

.layer8e868-bn-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.layer8e868-bn-item:hover,
.layer8e868-bn-item:focus-visible {
  color: var(--layer8e868-fog);
}

.layer8e868-bn-item.layer8e868-bn-on {
  color: var(--layer8e868-mint);
}

/* Sliding underline marker across the bar */
.layer8e868-bn-ind {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--layer8e868-mint);
  transform: translateX(0);
  transition: transform 0.26s cubic-bezier(0.33, 0.9, 0.3, 1);
}

/* ==========================================================================
   Responsive refinement inside the phone canvas
   ========================================================================== */

/* Comfortable phones: slightly roomier type and grid gaps */
@media (min-width: 375px) {
  .layer8e868-hero h1 {
    font-size: 25px;
  }

  .layer8e868-sec-head h2 {
    font-size: 18px;
  }

  .layer8e868-tile-bar {
    font-size: 11px;
  }
}

/* Upper phone band: games move to 5 columns */
@media (min-width: 400px) {
  .layer8e868-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .layer8e868-guide-grid {
    gap: 9px;
  }
}

/* 430px canvas breakpoint: wider canvas, denser game floor */
@media (min-width: 430px) {
  :root {
    --layer8e868-topbar-h: 102px;
  }

  .layer8e868-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .layer8e868-hero h1 {
    font-size: 27px;
  }

  .layer8e868-hero-lead {
    font-size: 14.5px;
  }

  .layer8e868-grid {
    gap: 9px;
  }

  .layer8e868-tile-bar {
    font-size: 11.5px;
    min-height: 32px;
  }

  .layer8e868-module {
    padding: 18px 15px;
  }

  .layer8e868-ext {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Wide screens keep the centered phone canvas, no desktop redesign */
@media (min-width: 481px) {
  .layer8e868-page {
    box-shadow: var(--layer8e868-shadow);
  }
}

/* Respect users who prefer fewer moving parts */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .layer8e868-caro-track,
  .layer8e868-dotbar,
  .layer8e868-bn-ind,
  .layer8e868-routes {
    transition: none;
  }
}
