/* ============================================================
   PHL Casino - mobile-first stylesheet (canvas 320-430px)
   Brand palette: #FF5722 / #1A1A2E / #CED4DA / #98FB98 / #00FF00 / #ADFF2F
   Class prefix: c2d854-  |  Variable prefix: --c2d854-
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --c2d854-ink: #1a1a2e;            /* deep night base */
  --c2d854-ink-2: #20203c;          /* raised panel */
  --c2d854-ink-3: #262649;          /* hover / pressed */
  --c2d854-line: #33325e;           /* hairline borders */
  --c2d854-flame: #ff5722;          /* primary accent */
  --c2d854-flame-deep: #d84315;
  --c2d854-mist: #ced4da;           /* body text */
  --c2d854-mist-dim: #9aa3b2;       /* muted text */
  --c2d854-mint: #98fb98;           /* positive */
  --c2d854-lime: #adff2f;           /* highlight */
  --c2d854-signal: #00ff00;         /* live dot */
  --c2d854-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  --c2d854-radius-s: 8px;
  --c2d854-radius-m: 12px;
  --c2d854-radius-l: 18px;
  --c2d854-bnav-h: 62px;
  --c2d854-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--c2d854-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c2d854-mist);
  background:
    radial-gradient(1100px 500px at 50% -180px, #2b2b52 0%, transparent 60%),
    #12121f;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a {
  color: var(--c2d854-lime);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

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

.c2d854-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- 3. Phone canvas ---------- */
.c2d854-page {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c2d854-ink);
  box-shadow: 0 0 0 1px rgba(255, 87, 34, 0.08), 0 0 60px rgba(0, 0, 0, 0.55);
  overflow: clip;
}

.c2d854-main {
  padding-top: 96px; /* header height + breathing room */
  padding-bottom: calc(var(--c2d854-bnav-h) + 26px + env(safe-area-inset-bottom));
}

/* ---------- 4. Masthead (fixed action bar) ---------- */
.c2d854-masthead {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(26, 26, 46, 0.94) 78%, rgba(26, 26, 46, 0.86) 100%);
  border-bottom: 1px solid rgba(255, 87, 34, 0.28);
  backdrop-filter: blur(8px);
  padding: 8px 12px 9px;
}

.c2d854-masthead-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c2d854-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.c2d854-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--c2d854-line);
  flex: 0 0 auto;
}

.c2d854-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c2d854-brand-name em {
  font-style: normal;
  color: var(--c2d854-flame);
}

.c2d854-masthead-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* compact icon+text CTA buttons */
.c2d854-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--c2d854-radius-s);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.c2d854-btn:active {
  transform: translateY(2px);
}

.c2d854-btn--cta {
  background: linear-gradient(135deg, var(--c2d854-flame) 0%, var(--c2d854-flame-deep) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}

.c2d854-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--c2d854-line);
  color: var(--c2d854-mist);
}

.c2d854-btn--slim {
  min-height: 38px;
  padding: 0 11px;
  font-size: 12.5px;
}

.c2d854-btn--wide {
  width: 100%;
}

/* hamburger trigger */
.c2d854-burger {
  width: 44px;
  height: 38px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c2d854-line);
  border-radius: var(--c2d854-radius-s);
}

.c2d854-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c2d854-mist);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.c2d854-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.c2d854-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.c2d854-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 5. Slide-up route panel ---------- */
.c2d854-veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 8, 18, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.c2d854-veil--show {
  opacity: 1;
  visibility: visible;
}

.c2d854-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 430px;
  max-height: 78vh;
  z-index: 80;
  background: var(--c2d854-ink-2);
  border-radius: var(--c2d854-radius-l) var(--c2d854-radius-l) 0 0;
  border-top: 2px solid var(--c2d854-flame);
  box-shadow: var(--c2d854-shadow);
  transform: translate(-50%, 102%);
  transition: transform 0.26s ease;
  overflow-y: auto;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
}

.c2d854-sheet--open {
  transform: translate(-50%, 0);
}

.c2d854-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.c2d854-sheet-grip {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--c2d854-line);
}

.c2d854-sheet-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--c2d854-lime);
}

.c2d854-sheet-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c2d854-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--c2d854-mist);
  font-size: 18px;
  line-height: 1;
}

.c2d854-sheet-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.c2d854-sheet-group {
  padding: 10px 0 4px;
  border-top: 1px dashed var(--c2d854-line);
}

.c2d854-sheet-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c2d854-mist-dim);
  margin-bottom: 6px;
}

.c2d854-sheet-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.c2d854-sheet-link {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c2d854-line);
  color: var(--c2d854-mist);
  font-size: 13px;
  font-weight: 600;
}

.c2d854-sheet-link:active {
  background: var(--c2d854-ink-3);
}

.c2d854-sheet-link b {
  color: var(--c2d854-lime);
  font-weight: 700;
}

/* ---------- 6. Hero carousel ---------- */
.c2d854-hero {
  position: relative;
  margin: 10px 10px 0;
}

.c2d854-hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--c2d854-radius-m);
  border: 1px solid var(--c2d854-line);
  scrollbar-width: none;
}

.c2d854-hero-track::-webkit-scrollbar {
  display: none;
}

.c2d854-hero-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 0;
  border: 0;
  background: var(--c2d854-ink-2);
  border-radius: var(--c2d854-radius-m);
  overflow: hidden;
}

.c2d854-hero-img {
  width: 100%;
  height: clamp(150px, 42vw, 186px);
  object-fit: cover;
}

.c2d854-hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 9px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 22, 0.9) 78%);
  text-align: left;
}

.c2d854-hero-cap b {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.c2d854-hero-cap small {
  display: block;
  color: var(--c2d854-lime);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.c2d854-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.c2d854-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  transition: transform 0.15s ease, background 0.15s ease;
}

.c2d854-hero-dot--on {
  background: var(--c2d854-flame);
  transform: scale(1.35);
}

/* ---------- 7. Intro block ---------- */
.c2d854-intro {
  padding: 18px 14px 6px;
  text-align: center;
}

.c2d854-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--c2d854-flame);
  border: 1px solid rgba(255, 87, 34, 0.45);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
  background: rgba(255, 87, 34, 0.08);
}

.c2d854-h1 {
  font-size: 23px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
  margin-bottom: 10px;
}

.c2d854-h1 em {
  font-style: normal;
  color: var(--c2d854-flame);
}

.c2d854-lede {
  font-size: 13.5px;
  color: var(--c2d854-mist);
  max-width: 38ch;
  margin: 0 auto 14px;
}

.c2d854-lede b {
  color: var(--c2d854-mint);
  font-weight: 700;
}

.c2d854-intro-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 340px;
  margin: 0 auto 6px;
}

/* step rhythm strip */
.c2d854-steps {
  counter-reset: c2d854step;
  display: grid;
  gap: 8px;
  margin: 16px 12px 0;
}

.c2d854-step {
  counter-increment: c2d854step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 87, 34, 0.1) 0%, rgba(32, 32, 60, 0.9) 42%);
  border: 1px solid var(--c2d854-line);
  border-left: 3px solid var(--c2d854-flame);
  border-radius: var(--c2d854-radius-s);
  padding: 10px 12px;
  text-align: left;
}

.c2d854-step::before {
  content: counter(c2d854step, decimal-leading-zero);
  font-size: 15px;
  font-weight: 800;
  color: var(--c2d854-flame);
  letter-spacing: 1px;
}

.c2d854-step b {
  display: block;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
}

.c2d854-step span {
  display: block;
  font-size: 12.5px;
  color: var(--c2d854-mist-dim);
}

/* category jump chips */
.c2d854-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 14px 12px 4px;
  scrollbar-width: none;
}

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

.c2d854-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--c2d854-line);
  background: var(--c2d854-ink-2);
  color: var(--c2d854-mist);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.c2d854-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c2d854-signal);
}

.c2d854-chip:active {
  background: var(--c2d854-ink-3);
}

/* ---------- 8. Game sections (sealed packs) ---------- */
.c2d854-section {
  margin: 20px 10px 0;
}

.c2d854-seal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--c2d854-radius-m) var(--c2d854-radius-m) 0 0;
  background: linear-gradient(90deg, rgba(255, 87, 34, 0.22) 0%, rgba(32, 32, 60, 0.95) 55%);
  border: 1px solid var(--c2d854-line);
  border-bottom: 2px solid var(--c2d854-flame);
}

.c2d854-seal-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 87, 34, 0.18);
  color: var(--c2d854-flame);
  flex: 0 0 auto;
}

.c2d854-seal-txt {
  min-width: 0;
  flex: 1;
}

.c2d854-h2 {
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.c2d854-seal-sub {
  display: block;
  font-size: 11.5px;
  color: var(--c2d854-mist-dim);
  margin-top: 2px;
}

.c2d854-seal-count {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--c2d854-lime);
  border: 1px dashed rgba(173, 255, 47, 0.5);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(173, 255, 47, 0.07);
}

.c2d854-seal-lead {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--c2d854-mist);
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid var(--c2d854-line);
  border-right: 1px solid var(--c2d854-line);
}

.c2d854-seal-lead b {
  color: var(--c2d854-mint);
}

/* game grid: 4 cols base, 5 cols on wider phones */
.c2d854-pack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--c2d854-ink-2);
  border: 1px solid var(--c2d854-line);
  border-top: 0;
  border-radius: 0 0 var(--c2d854-radius-m) var(--c2d854-radius-m);
}

@media (min-width: 400px) {
  .c2d854-pack {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
  }
}

.c2d854-gcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: var(--c2d854-radius-s);
  transition: transform 0.12s ease;
}

.c2d854-gcard:active {
  transform: translateY(3px);
  animation: c2d854dip 0.28s ease;
}

@keyframes c2d854dip {
  0% { transform: translateY(0); }
  45% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

.c2d854-gcard-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--c2d854-radius-s);
  border: 1px solid var(--c2d854-line);
  background: var(--c2d854-ink-3);
}

.c2d854-gcard-name {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--c2d854-mist);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  word-break: break-word;
}

/* per-section accent tints (group sealed packs) */
.c2d854-seal--fishing { border-bottom-color: #38bdf8; }
.c2d854-seal--fishing .c2d854-seal-ico { color: #38bdf8; background: rgba(56, 189, 248, 0.14); }

.c2d854-seal--hot { border-bottom-color: var(--c2d854-flame); }

.c2d854-seal--cards { border-bottom-color: var(--c2d854-lime); }
.c2d854-seal--cards .c2d854-seal-ico { color: var(--c2d854-lime); background: rgba(173, 255, 47, 0.14); }

.c2d854-seal--live { border-bottom-color: var(--c2d854-signal); }
.c2d854-seal--live .c2d854-seal-ico { color: var(--c2d854-signal); background: rgba(0, 255, 0, 0.12); }

.c2d854-seal--slot { border-bottom-color: var(--c2d854-mint); }
.c2d854-seal--slot .c2d854-seal-ico { color: var(--c2d854-mint); background: rgba(152, 251, 152, 0.12); }

/* "more from this lane" strip under each pack */
.c2d854-more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.c2d854-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--c2d854-radius-s);
  border: 1px solid var(--c2d854-line);
  background: var(--c2d854-ink-2);
  color: var(--c2d854-mist);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.c2d854-more-link b {
  color: var(--c2d854-lime);
}

.c2d854-more-link:active {
  background: var(--c2d854-ink-3);
}

/* ---------- 9. Content modules (varied rhythm) ---------- */
.c2d854-module {
  margin: 24px 10px 0;
  background: var(--c2d854-ink-2);
  border: 1px solid var(--c2d854-line);
  border-radius: var(--c2d854-radius-m);
  padding: 16px 13px;
}

.c2d854-module-head {
  text-align: center;
  margin-bottom: 12px;
}

.c2d854-module-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 9px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c2d854-flame), var(--c2d854-lime));
}

.c2d854-module-lead {
  font-size: 13px;
  color: var(--c2d854-mist);
  margin-bottom: 12px;
}

.c2d854-module-lead b {
  color: var(--c2d854-mint);
}

/* 9a. security verdict rows */
.c2d854-verdict {
  display: grid;
  gap: 8px;
}

.c2d854-verdict-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 11px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c2d854-line);
}

.c2d854-verdict-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 0, 0.1);
  color: var(--c2d854-signal);
  font-weight: 800;
  font-size: 14px;
}

.c2d854-verdict-row b {
  display: block;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.c2d854-verdict-row p {
  font-size: 12.5px;
  color: var(--c2d854-mist-dim);
}

.c2d854-verdict-row p b {
  display: inline;
  color: var(--c2d854-lime);
  font-weight: 700;
}

/* 9b. highlight tiles */
.c2d854-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.c2d854-tile {
  padding: 11px 10px;
  border-radius: var(--c2d854-radius-s);
  border: 1px solid var(--c2d854-line);
  background: rgba(255, 255, 255, 0.03);
}

.c2d854-tile b {
  display: block;
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 3px;
}

.c2d854-tile b i {
  font-style: normal;
  color: var(--c2d854-flame);
  margin-right: 4px;
}

.c2d854-tile p {
  font-size: 12px;
  color: var(--c2d854-mist-dim);
}

/* 9c. winners feed */
.c2d854-feed {
  display: grid;
  gap: 7px;
}

.c2d854-feed-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c2d854-line);
}

.c2d854-feed-ava {
  width: 40px;
  height: 40px;
  border-radius: var(--c2d854-radius-s);
  object-fit: cover;
  border: 1px solid var(--c2d854-line);
}

.c2d854-feed-meta b {
  display: block;
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
}

.c2d854-feed-meta span {
  display: block;
  font-size: 11.5px;
  color: var(--c2d854-mist-dim);
}

.c2d854-feed-amt {
  font-size: 13px;
  font-weight: 800;
  color: var(--c2d854-mint);
  white-space: nowrap;
}

.c2d854-feed-amt small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--c2d854-mist-dim);
  text-align: right;
}

.c2d854-feed-note {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--c2d854-mist-dim);
  font-style: italic;
}

/* 9d. numbered criteria */
.c2d854-criteria {
  counter-reset: c2d854crit;
  display: grid;
  gap: 8px;
}

.c2d854-crit {
  counter-increment: c2d854crit;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 11px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(173, 255, 47, 0.05);
  border: 1px solid rgba(173, 255, 47, 0.22);
}

.c2d854-crit::before {
  content: counter(c2d854crit);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(173, 255, 47, 0.14);
  color: var(--c2d854-lime);
  font-size: 12.5px;
  font-weight: 800;
}

.c2d854-crit b {
  display: block;
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 2px;
}

.c2d854-crit p {
  font-size: 12.5px;
  color: var(--c2d854-mist-dim);
}

/* 9e. glossary rows */
.c2d854-gloss {
  display: grid;
  gap: 8px;
}

.c2d854-gloss-row {
  padding: 10px 12px;
  border-radius: var(--c2d854-radius-s);
  border-left: 3px solid var(--c2d854-mint);
  background: rgba(152, 251, 152, 0.05);
  border-top: 1px solid var(--c2d854-line);
  border-right: 1px solid var(--c2d854-line);
  border-bottom: 1px solid var(--c2d854-line);
}

.c2d854-gloss-term {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--c2d854-mint);
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.c2d854-gloss-row p {
  font-size: 12.5px;
  color: var(--c2d854-mist);
}

.c2d854-gloss-row p b {
  color: var(--c2d854-lime);
}

/* ---------- 10. Extended footer (two-column directory) ---------- */
.c2d854-xfooter {
  margin: 26px 10px 0;
  padding: 16px 13px 14px;
  background: var(--c2d854-ink-2);
  border: 1px solid var(--c2d854-line);
  border-radius: var(--c2d854-radius-m);
  border-top: 3px solid var(--c2d854-flame);
}

.c2d854-xfooter-brand {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--c2d854-line);
  margin-bottom: 13px;
}

.c2d854-xfooter-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--c2d854-line);
}

.c2d854-xfooter-brand b {
  display: block;
  font-size: 15px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.c2d854-xfooter-brand p {
  font-size: 12px;
  color: var(--c2d854-mist-dim);
  margin-top: 2px;
}

.c2d854-xfooter-h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c2d854-lime);
  margin: 13px 0 8px;
}

.c2d854-xfooter-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c2d854-line);
}

.c2d854-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.c2d854-promo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 11px;
  border-radius: var(--c2d854-radius-s);
  border: 1px solid rgba(255, 87, 34, 0.4);
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.16) 0%, rgba(32, 32, 60, 0.9) 80%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  transition: transform 0.12s ease;
}

.c2d854-promo-btn:active {
  transform: translateY(2px);
}

.c2d854-promo-btn small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--c2d854-mist-dim);
  letter-spacing: 0.3px;
}

.c2d854-promo-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 87, 34, 0.22);
  color: var(--c2d854-flame);
  flex: 0 0 auto;
}

.c2d854-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.c2d854-dir-link {
  display: block;
  padding: 8px 10px;
  min-height: 40px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c2d854-line);
  color: var(--c2d854-mist);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.c2d854-dir-link span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c2d854-mist-dim);
  margin-bottom: 1px;
}

.c2d854-xfooter-note {
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--c2d854-line);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--c2d854-mist-dim);
}

.c2d854-xfooter-note b {
  color: var(--c2d854-mist);
}

/* ---------- 11. Common footer ---------- */
.c2d854-footer {
  margin-top: 20px;
  padding: 14px 14px 6px;
  border-top: 1px solid var(--c2d854-line);
  text-align: center;
}

.c2d854-footer p {
  font-size: 11.5px;
  color: var(--c2d854-mist-dim);
}

/* ---------- 12. Bottom navigation (fixed 5 roles) ---------- */
.c2d854-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--c2d854-bnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.97) 0%, rgba(18, 18, 34, 1) 100%);
  border-top: 1px solid rgba(255, 87, 34, 0.3);
}

.c2d854-bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--c2d854-mist-dim);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 6px 2px 4px;
}

.c2d854-bnav-item svg {
  width: 22px;
  height: 22px;
  color: var(--c2d854-mist);
  transition: transform 0.16s ease, color 0.16s ease;
}

.c2d854-bnav-item:active svg {
  animation: c2d854hop 0.3s ease;
}

@keyframes c2d854hop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.c2d854-bnav-item--on {
  color: #ffffff;
}

.c2d854-bnav-item--on svg {
  color: var(--c2d854-flame);
}

.c2d854-bnav-item--on::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--c2d854-flame);
}

/* promo roles get a warm tint */
.c2d854-bnav-item--promo svg {
  color: var(--c2d854-lime);
}

/* ---------- 13. Back-to-top ---------- */
.c2d854-totop {
  position: fixed;
  right: calc(50% - 215px + 12px);
  bottom: calc(var(--c2d854-bnav-h) + 14px + env(safe-area-inset-bottom));
  z-index: 64;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 87, 34, 0.5);
  background: rgba(26, 26, 46, 0.92);
  color: var(--c2d854-flame);
  font-size: 17px;
  font-weight: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.c2d854-totop--show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 429px) {
  .c2d854-totop {
    right: 12px;
  }
}

/* ---------- 14. Shared bits ---------- */
.c2d854-note {
  font-size: 11.5px;
  color: var(--c2d854-mist-dim);
}

.c2d854-p {
  font-size: 13px;
  color: var(--c2d854-mist);
}

.c2d854-p + .c2d854-p {
  margin-top: 8px;
}

.c2d854-p b {
  color: var(--c2d854-lime);
  font-weight: 700;
}

/* ---------- 15. Help pages (desk slips vs instrument board) ---------- */
.c2d854-desk,
.c2d854-board {
  margin: 12px 10px 0;
}

.c2d854-desk {
  text-align: center;
  padding: 16px 12px 14px;
  background:
    radial-gradient(280px 120px at 50% 0%, rgba(255, 87, 34, 0.18), transparent 70%),
    var(--c2d854-ink-2);
  border: 1px solid var(--c2d854-line);
  border-radius: var(--c2d854-radius-l);
}

.c2d854-board {
  text-align: left;
  padding: 14px 12px 12px;
  background: var(--c2d854-ink-2);
  border: 1px solid var(--c2d854-line);
  border-top: 3px solid var(--c2d854-lime);
  border-radius: var(--c2d854-radius-m);
}

.c2d854-help-figure {
  margin: 12px 0 0;
}

.c2d854-help-figure button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--c2d854-line);
  border-radius: var(--c2d854-radius-m);
  overflow: hidden;
  background: var(--c2d854-ink);
}

.c2d854-help-figure img {
  width: 100%;
  height: clamp(132px, 38vw, 168px);
  object-fit: cover;
}

.c2d854-help-cta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.c2d854-board .c2d854-help-cta {
  grid-template-columns: 1fr 1fr;
}

.c2d854-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.c2d854-meters li {
  padding: 8px 6px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(173, 255, 47, 0.06);
  border: 1px solid rgba(173, 255, 47, 0.25);
  text-align: center;
}

.c2d854-meters b {
  display: block;
  color: var(--c2d854-lime);
  font-size: 12px;
  font-weight: 800;
}

.c2d854-meters span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--c2d854-mist-dim);
  line-height: 1.3;
}

.c2d854-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.c2d854-crumb a {
  color: var(--c2d854-lime);
}

.c2d854-crumb span[aria-current="page"] {
  color: #ffffff;
}

.c2d854-hblock {
  margin: 18px 10px 0;
  padding: 14px 12px;
  background: var(--c2d854-ink-2);
  border: 1px solid var(--c2d854-line);
  border-radius: var(--c2d854-radius-m);
}

.c2d854-hblock .c2d854-h2 {
  margin-bottom: 8px;
}

.c2d854-hblock .c2d854-p + .c2d854-p,
.c2d854-hblock .c2d854-p + .c2d854-slip,
.c2d854-hblock .c2d854-p + .c2d854-branch,
.c2d854-hblock .c2d854-p + .c2d854-timeline,
.c2d854-hblock .c2d854-p + .c2d854-choice,
.c2d854-hblock .c2d854-p + .c2d854-spec,
.c2d854-hblock .c2d854-p + .c2d854-prep,
.c2d854-hblock .c2d854-p + .c2d854-lexicon,
.c2d854-hblock .c2d854-p + .c2d854-qa {
  margin-top: 8px;
}

.c2d854-hblock .c2d854-help-cta {
  margin-top: 12px;
}

/* FAQ: open question slips, not a shared accordion */
.c2d854-slip {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: start;
  margin-top: 8px;
  padding: 10px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(255, 87, 34, 0.07);
  border: 1px dashed rgba(255, 87, 34, 0.45);
}

.c2d854-slip-no {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c2d854-flame);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.c2d854-slip b {
  display: block;
  color: #ffffff;
  font-size: 13.5px;
  margin-bottom: 3px;
}

.c2d854-slip p {
  font-size: 12.5px;
  color: var(--c2d854-mist);
}

.c2d854-branch {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.c2d854-branch-row {
  padding: 10px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c2d854-line);
}

.c2d854-branch-row .c2d854-if {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--c2d854-flame);
  margin-bottom: 4px;
}

.c2d854-branch-row p {
  font-size: 12.5px;
  color: var(--c2d854-mist);
}

.c2d854-guard {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(0, 255, 0, 0.06);
  border: 1px solid rgba(0, 255, 0, 0.28);
}

.c2d854-guard li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 12.5px;
  color: var(--c2d854-mist);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.c2d854-guard li:last-child {
  border-bottom: 0;
}

.c2d854-guard li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c2d854-signal);
}

.c2d854-qa {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--c2d854-line);
}

.c2d854-qa h3 {
  font-size: 14px;
  line-height: 1.35;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 4px;
}

.c2d854-qa p {
  font-size: 13px;
  color: var(--c2d854-mist);
}

.c2d854-faqfit {
  margin: 16px 10px 0;
  display: grid;
  gap: 8px;
}

.c2d854-faqfit p {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--c2d854-flame);
  background: rgba(255, 87, 34, 0.06);
  border-radius: 0 var(--c2d854-radius-s) var(--c2d854-radius-s) 0;
  font-size: 13px;
}

/* Features: timeline, choices, spec sheet — different skeleton */
.c2d854-timeline {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.c2d854-tstep {
  position: relative;
  padding: 0 0 12px 22px;
  border-left: 2px solid rgba(173, 255, 47, 0.45);
}

.c2d854-tstep:last-child {
  padding-bottom: 0;
}

.c2d854-tstep::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c2d854-lime);
}

.c2d854-tstep b {
  display: block;
  color: #ffffff;
  font-size: 13.5px;
}

.c2d854-tstep span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--c2d854-mist-dim);
}

.c2d854-choice {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.c2d854-choice article {
  padding: 10px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(152, 251, 152, 0.06);
  border: 1px solid rgba(152, 251, 152, 0.28);
}

.c2d854-choice h3 {
  font-size: 13.5px;
  color: var(--c2d854-mint);
  margin-bottom: 4px;
}

.c2d854-choice p {
  font-size: 12.5px;
  color: var(--c2d854-mist);
}

.c2d854-spec {
  margin: 8px 0 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--c2d854-line);
  border-radius: var(--c2d854-radius-s);
  overflow: hidden;
}

.c2d854-spec div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--c2d854-line);
}

.c2d854-spec div:first-child {
  border-top: 0;
}

.c2d854-spec dt {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--c2d854-lime);
}

.c2d854-spec dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--c2d854-mist);
}

.c2d854-prep {
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.c2d854-prep li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 12.5px;
  color: var(--c2d854-mist);
}

.c2d854-prep li i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--c2d854-lime);
  color: var(--c2d854-lime);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c2d854-lexicon {
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.c2d854-lexicon article {
  padding: 8px 10px 10px;
  border-radius: var(--c2d854-radius-s);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 2px solid var(--c2d854-mint);
}

.c2d854-lexicon h3 {
  font-size: 13px;
  color: var(--c2d854-mint);
  margin-bottom: 3px;
}

.c2d854-lexicon p {
  font-size: 12.5px;
  color: var(--c2d854-mist);
}

.c2d854-featfit {
  margin: 16px 10px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.c2d854-featfit p {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed rgba(173, 255, 47, 0.4);
  border-radius: var(--c2d854-radius-s);
  background: rgba(173, 255, 47, 0.05);
  font-size: 13px;
}

.c2d854-home-notes {
  display: grid;
  gap: 8px;
}

.c2d854-home-notes p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
