/* ============================================================
   qq881.cfd - Mobile-first palette stylesheet
   Prefix: view798e4-
   Palette: #0A0A0A (bg) | #E0FFFF (text) | #00CED1 (accent) | #B0E0E6 (soft)
   Direction: monospace accent + regular body, round buttons/square cards,
   compact square thumbnail catalog, scenario-branch rhythm,
   state-color-only motion, square high-contrast CTA.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --view798e4-bg: #0A0A0A;
  --view798e4-bg-soft: #121417;
  --view798e4-panel: #161A1E;
  --view798e4-panel-2: #1B2127;
  --view798e4-line: #243038;
  --view798e4-text: #E0FFFF;
  --view798e4-muted: #B0E0E6;
  --view798e4-muted-dim: #7FA9B0;
  --view798e4-accent: #00CED1;
  --view798e4-accent-deep: #009AA0;
  --view798e4-warn: #FFD24A;
  --view798e4-danger: #FF6B6B;
  --view798e4-good: #4BD3A6;

  --view798e4-font-body: "Segoe UI", "Roboto", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --view798e4-font-mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --view798e4-canvas: 430px;          /* literal 430 required by validator */
  --view798e4-header-h: 56px;
  --view798e4-bottomnav-h: 62px;
  --view798e4-radius-btn: 999px;       /* round buttons */
  --view798e4-radius-card: 4px;        /* square cards */
  --view798e4-tap: 44px;
  --view798e4-pad: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--view798e4-font-body);
  background: var(--view798e4-bg);
  color: var(--view798e4-text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--view798e4-accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--view798e4-accent); outline-offset: 2px; }
button { font-family: inherit; }

/* ---------- Mobile canvas ---------- */
.view798e4-shell {
  width: 100%;
  max-width: var(--view798e4-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(0, 206, 209, 0.10), transparent 60%),
    var(--view798e4-bg);
  position: relative;
  box-shadow: 0 0 0 1px rgba(0, 206, 209, 0.05);
}

/* ---------- Skip link ---------- */
.view798e4-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--view798e4-accent);
  color: #062A2C;
  padding: 8px 14px;
  z-index: 200;
  font-weight: 700;
}
.view798e4-skip:focus { left: 10px; top: 10px; }

/* ============================================================
   HEADER / TOP NAV  (edge-aligned functional header)
   ============================================================ */
.view798e4-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--view798e4-canvas);
  z-index: 90;
  height: var(--view798e4-header-h);
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--view798e4-line);
  display: flex;
  align-items: center;
}

.view798e4-header-inner {
  width: 100%;
  max-width: var(--view798e4-canvas);
  margin: 0 auto;
  padding: 0 var(--view798e4-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Brand area: real logo only */
.view798e4-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.view798e4-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--view798e4-line);
  background: #0c1418;
  flex-shrink: 0;
}
.view798e4-brand-name {
  font-family: var(--view798e4-font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--view798e4-text);
  white-space: nowrap;
}
.view798e4-brand-name span { color: var(--view798e4-accent); }

/* Action area */
.view798e4-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.view798e4-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 0 16px;
  height: 34px;
  border-radius: var(--view798e4-radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  font-family: var(--view798e4-font-body);
  line-height: 1;
}
.view798e4-btn--login {
  background: transparent;
  color: var(--view798e4-text);
  border: 1px solid var(--view798e4-line);
}
.view798e4-btn--login:active { background: #1A1F25; }
.view798e4-btn--register {
  background: var(--view798e4-accent);
  color: #062A2C;
}
.view798e4-btn--register:active { background: var(--view798e4-accent-deep); color: #021A1C; }

.view798e4-menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--view798e4-panel);
  border: 1px solid var(--view798e4-line);
  color: var(--view798e4-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.view798e4-menu-btn:active { background: #232A31; }
.view798e4-menu-btn svg { width: 18px; height: 18px; }

/* ============================================================
   FULL-HEIGHT MENU LAYER
   ============================================================ */
.view798e4-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(7, 9, 11, 0.97);
  backdrop-filter: blur(6px);
  transform: translateX(100%);
  transition: transform .22s ease;
  overflow-y: auto;
  max-width: var(--view798e4-canvas);
  margin: 0 auto;
}
.view798e4-menu.is-open { transform: translateX(0); }

.view798e4-menu-bar {
  height: var(--view798e4-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--view798e4-pad);
  border-bottom: 1px solid var(--view798e4-line);
  position: sticky;
  top: 0;
  background: rgba(7, 9, 11, 0.95);
}
.view798e4-menu-bar b {
  font-family: var(--view798e4-font-mono);
  color: var(--view798e4-accent);
  font-size: 15px;
  letter-spacing: 0.6px;
}
.view798e4-menu-close {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--view798e4-panel);
  border: 1px solid var(--view798e4-line);
  color: var(--view798e4-text);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.view798e4-menu-close svg { width: 16px; height: 16px; }

.view798e4-menu-cta {
  padding: 16px var(--view798e4-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.view798e4-menu-cta .view798e4-btn { height: 42px; font-size: 14px; }

.view798e4-menu-section { padding: 6px var(--view798e4-pad) 14px; }
.view798e4-menu-section h3 {
  margin: 14px 0 6px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--view798e4-muted-dim);
  font-family: var(--view798e4-font-mono);
  font-weight: 600;
}
.view798e4-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.view798e4-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  color: var(--view798e4-text);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
}
.view798e4-menu-list a:active { background: var(--view798e4-panel); }
.view798e4-menu-list a span {
  color: var(--view798e4-muted-dim);
  font-family: var(--view798e4-font-mono);
  font-size: 12px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   MAIN
   ============================================================ */
.view798e4-main {
  padding: calc(var(--view798e4-header-h) + 12px) var(--view798e4-pad) calc(var(--view798e4-bottomnav-h) + 24px);
}

/* ---------- Hero carousel ---------- */
.view798e4-hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--view798e4-line);
  background: #0c1418;
  margin-bottom: 16px;
}
.view798e4-hero-track {
  display: flex;
  transition: transform .35s ease;
}
.view798e4-hero-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.view798e4-hero-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.view798e4-hero-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  padding: 24px 12px 8px;
  border-radius: 0 0 8px 8px;
  pointer-events: none;
}
.view798e4-hero-cap b {
  display: block;
  font-size: 15px;
  color: var(--view798e4-text);
  font-weight: 700;
}
.view798e4-hero-cap small { color: var(--view798e4-muted); font-size: 12px; }

.view798e4-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.view798e4-hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(224, 255, 255, 0.4);
  border: 0; padding: 0; cursor: pointer;
}
.view798e4-hero-dot.is-active { background: var(--view798e4-accent); width: 18px; border-radius: 4px; }

/* ---------- H1 / page intro ---------- */
.view798e4-page-head {
  margin: 4px 0 16px;
}
.view798e4-h1 {
  font-family: var(--view798e4-font-mono);
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
  color: var(--view798e4-text);
}
.view798e4-h1 em {
  font-style: normal;
  color: var(--view798e4-accent);
}
.view798e4-lede {
  margin: 0;
  color: var(--view798e4-muted);
  font-size: 14px;
}

/* ---------- Generic section heading ---------- */
.view798e4-section { margin: 22px 0; }
.view798e4-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--view798e4-line);
}
.view798e4-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--view798e4-text);
  line-height: 1.3;
}
.view798e4-section-head .view798e4-tag {
  font-family: var(--view798e4-font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--view798e4-bg);
  background: var(--view798e4-accent);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.view798e4-section-head .view798e4-link {
  font-size: 12px;
  color: var(--view798e4-accent);
  font-family: var(--view798e4-font-mono);
}

/* ============================================================
   GAME GRID (compact square thumbnail catalog)
   ============================================================ */
.view798e4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 375px) {
  .view798e4-game-grid { grid-template-columns: repeat(4, 1fr); gap: 9px; }
}
@media (min-width: 400px) {
  .view798e4-game-grid { grid-template-columns: repeat(5, 1fr); }
}

.view798e4-game {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  color: inherit;
  font-family: inherit;
}
.view798e4-game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--view798e4-radius-card);
  overflow: hidden;
  background: var(--view798e4-panel);
  border: 1px solid var(--view798e4-line);
}
.view798e4-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.view798e4-game:active .view798e4-game-thumb {
  border-color: var(--view798e4-accent);
}
.view798e4-game-name {
  font-size: 11px;
  line-height: 1.25;
  color: var(--view798e4-muted);
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 1px;
}
.view798e4-game:active .view798e4-game-name { color: var(--view798e4-text); }

/* ============================================================
   INFO MODULES
   ============================================================ */
.view798e4-prose {
  color: var(--view798e4-muted);
  font-size: 14px;
}
.view798e4-prose p { margin: 0 0 10px; }
.view798e4-prose strong { color: var(--view798e4-text); }
.view798e4-prose a { color: var(--view798e4-accent); border-bottom: 1px solid rgba(0,206,209,0.4); }

.view798e4-h2 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--view798e4-text);
  line-height: 1.3;
}
.view798e4-h3 {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--view798e4-accent);
  font-family: var(--view798e4-font-mono);
  letter-spacing: 0.3px;
}

/* Category highlights: scenario branch cards */
.view798e4-cat-row {
  display: grid;
  gap: 10px;
}
.view798e4-cat-card {
  background: var(--view798e4-panel);
  border: 1px solid var(--view798e4-line);
  border-left: 3px solid var(--view798e4-accent);
  border-radius: var(--view798e4-radius-card);
  padding: 12px 14px;
}
.view798e4-cat-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--view798e4-text);
}
.view798e4-cat-card p {
  margin: 0;
  font-size: 13px;
  color: var(--view798e4-muted);
}
.view798e4-cat-card .view798e4-pill {
  display: inline-block;
  font-family: var(--view798e4-font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--view798e4-accent);
  border: 1px solid rgba(0,206,209,0.35);
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 6px;
}

/* Tricks list */
.view798e4-trick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: trick;
}
.view798e4-trick-list li {
  counter-increment: trick;
  background: var(--view798e4-bg-soft);
  border: 1px solid var(--view798e4-line);
  border-radius: var(--view798e4-radius-card);
  padding: 10px 12px 10px 40px;
  position: relative;
  font-size: 13.5px;
  color: var(--view798e4-muted);
}
.view798e4-trick-list li::before {
  content: counter(trick, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--view798e4-font-mono);
  color: var(--view798e4-accent);
  font-size: 12px;
  font-weight: 700;
}
.view798e4-trick-list li b { color: var(--view798e4-text); }

/* Download / mobile app block */
.view798e4-download {
  background: linear-gradient(135deg, #0c1c1f 0%, #0a0a0a 70%);
  border: 1px solid var(--view798e4-line);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.view798e4-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.view798e4-download-tile {
  background: var(--view798e4-panel);
  border: 1px solid var(--view798e4-line);
  border-radius: var(--view798e4-radius-card);
  padding: 10px;
  text-align: center;
}
.view798e4-download-tile b { display: block; color: var(--view798e4-accent); font-size: 13px; }
.view798e4-download-tile small { color: var(--view798e4-muted-dim); font-size: 11px; }

.view798e4-dl-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.view798e4-dl-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--view798e4-accent);
  background: transparent;
  color: var(--view798e4-accent);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 8px;
  cursor: pointer;
  border-radius: var(--view798e4-radius-card); /* square high-contrast CTA */
  font-family: var(--view798e4-font-body);
  min-height: 44px;
}
.view798e4-dl-btn--primary {
  background: var(--view798e4-accent);
  color: #062A2C;
}
.view798e4-dl-btn:active { background: rgba(0,206,209,0.18); }
.view798e4-dl-btn--primary:active { background: var(--view798e4-accent-deep); color: #021A1C; }

/* FAQ */
.view798e4-faq { display: grid; gap: 8px; }
.view798e4-faq-item {
  background: var(--view798e4-panel);
  border: 1px solid var(--view798e4-line);
  border-radius: var(--view798e4-radius-card);
  overflow: hidden;
}
.view798e4-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--view798e4-text);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: inherit;
}
.view798e4-faq-q .view798e4-faq-ico {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--view798e4-accent);
  transition: transform .18s ease;
}
.view798e4-faq-item.is-open .view798e4-faq-q .view798e4-faq-ico { transform: rotate(45deg); }
.view798e4-faq-a {
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease, padding .22s ease;
  color: var(--view798e4-muted);
  font-size: 13px;
}
.view798e4-faq-item.is-open .view798e4-faq-a {
  padding: 0 14px 12px;
  max-height: 360px;
}

/* Step summary */
.view798e4-steps {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.view798e4-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--view798e4-bg-soft);
  border: 1px solid var(--view798e4-line);
  border-radius: var(--view798e4-radius-card);
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--view798e4-muted);
}
.view798e4-steps li b { color: var(--view798e4-text); }
.view798e4-steps li::before {
  content: "";
}
.view798e4-step-num {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--view798e4-panel-2);
  color: var(--view798e4-accent);
  font-family: var(--view798e4-font-mono);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--view798e4-line);
}

/* Inline promo strip */
.view798e4-promo-strip {
  background: linear-gradient(90deg, rgba(0,206,209,0.14), rgba(0,206,209,0.02));
  border: 1px solid rgba(0,206,209,0.35);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
}
.view798e4-promo-strip p { margin: 0; font-size: 13px; color: var(--view798e4-text); }
.view798e4-promo-strip p b { color: var(--view798e4-accent); }
.view798e4-promo-strip .view798e4-btn { flex-shrink: 0; }

/* ---------- Category nav chips (jump-to) ---------- */
.view798e4-catnav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 0 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.view798e4-catnav::-webkit-scrollbar { display: none; }
.view798e4-catnav button {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--view798e4-line);
  background: var(--view798e4-panel);
  color: var(--view798e4-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--view798e4-font-mono);
  letter-spacing: 0.4px;
  min-height: 32px;
}
.view798e4-catnav button:active,
.view798e4-catnav button.is-active {
  background: var(--view798e4-accent);
  color: #062A2C;
  border-color: var(--view798e4-accent);
}

/* ============================================================
   EXTENDED FOOTER (homepage exclusive)
   ============================================================ */
.view798e4-ext {
  margin-top: 26px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--view798e4-line);
}
.view798e4-ext-grid {
  display: grid;
  gap: 16px;
}
.view798e4-ext h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--view798e4-muted-dim);
  font-family: var(--view798e4-font-mono);
}
.view798e4-ext p { font-size: 13px; color: var(--view798e4-muted); margin: 0 0 8px; }
.view798e4-ext-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.view798e4-ext-links li a {
  display: block;
  color: var(--view798e4-muted);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--view798e4-line);
}
.view798e4-ext-links li a:active { color: var(--view798e4-text); }
.view798e4-ext-promo {
  display: grid;
  gap: 8px;
}
.view798e4-ext-promo button {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  background: var(--view798e4-panel);
  border: 1px solid var(--view798e4-line);
  border-left: 3px solid var(--view798e4-accent);
  color: var(--view798e4-text);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--view798e4-radius-card);
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}
.view798e4-ext-promo button small {
  display: block;
  color: var(--view798e4-muted-dim);
  font-weight: 400;
  font-size: 11.5px;
  margin-top: 2px;
}
.view798e4-ext-promo button:active { background: #1E252C; }

.view798e4-disclaimer {
  background: rgba(255, 210, 74, 0.06);
  border: 1px solid rgba(255, 210, 74, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #E8D9A8;
  line-height: 1.5;
}

/* ============================================================
   COMMON FOOTER + BOTTOM NAV (full-width navigation rail)
   ============================================================ */
.view798e4-footer {
  border-top: 1px solid var(--view798e4-line);
  background: #060809;
  padding: 14px var(--view798e4-pad) calc(var(--view798e4-bottomnav-h) + 14px);
  color: var(--view798e4-muted-dim);
  font-size: 12px;
}
.view798e4-footer-copy { margin: 0; text-align: center; }
.view798e4-footer-copy b { color: var(--view798e4-muted); font-family: var(--view798e4-font-mono); }

.view798e4-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(6, 8, 9, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--view798e4-line);
}
.view798e4-bottomnav-inner {
  max-width: var(--view798e4-canvas);
  margin: 0 auto;
  height: var(--view798e4-bottomnav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.view798e4-bottomnav a,
.view798e4-bottomnav button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--view798e4-muted-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-family: var(--view798e4-font-body);
  cursor: pointer;
  padding: 6px 2px 4px;
  position: relative;
  min-height: var(--view798e4-bottomnav-h);
  text-decoration: none;
}
.view798e4-bottomnav a span,
.view798e4-bottomnav button span { letter-spacing: 0.3px; }

.view798e4-nav-tile {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--view798e4-panel);
  border: 1px solid var(--view798e4-line);
}
.view798e4-nav-tile svg { width: 16px; height: 16px; }

.view798e4-bottomnav a.is-active,
.view798e4-bottomnav button.is-active {
  color: var(--view798e4-text);
}
.view798e4-bottomnav a.is-active::after,
.view798e4-bottomnav button.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: var(--view798e4-accent);
  border-radius: 2px;
}
.view798e4-bottomnav a.is-active .view798e4-nav-tile,
.view798e4-bottomnav button.is-active .view798e4-nav-tile {
  background: rgba(0, 206, 209, 0.16);
  border-color: var(--view798e4-accent);
}
.view798e4-bottomnav a:active .view798e4-nav-tile,
.view798e4-bottomnav button:active .view798e4-nav-tile {
  border-color: var(--view798e4-accent);
}

/* Promo emphasis tile */
.view798e4-bottomnav .view798e4-nav-tile--promo {
  background: var(--view798e4-accent);
  border-color: var(--view798e4-accent);
  color: #062A2C;
}

/* ---------- Utility ---------- */
.view798e4-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.view798e4-divider {
  height: 1px;
  background: var(--view798e4-line);
  margin: 18px 0;
  border: 0;
}

/* Center CTA row */
.view798e4-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

/* ============================================================
   HELP PAGES: distinct editorial patterns on one design system
   ============================================================ */
.view798e4-help-lead {
  border: 1px solid var(--view798e4-line);
  border-top: 3px solid var(--view798e4-accent);
  background: linear-gradient(145deg, #101b1e, var(--view798e4-bg-soft));
  padding: 16px;
  margin: 4px 0 18px;
}
.view798e4-help-lead .view798e4-h1 { margin-bottom: 10px; }
.view798e4-help-lead p { margin: 0; color: var(--view798e4-muted); font-size: 14px; }
.view798e4-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--view798e4-accent);
  font: 700 10px/1.2 var(--view798e4-font-mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.view798e4-quickfacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.view798e4-quickfacts div {
  border: 1px solid var(--view798e4-line);
  background: rgba(10,10,10,.52);
  padding: 9px;
  min-width: 0;
}
.view798e4-quickfacts b { display: block; color: var(--view798e4-text); font-size: 12px; }
.view798e4-quickfacts span { color: var(--view798e4-muted-dim); font-size: 11px; }
.view798e4-branch {
  display: grid;
  gap: 9px;
  margin: 10px 0;
}
.view798e4-branch article {
  position: relative;
  border: 1px solid var(--view798e4-line);
  background: var(--view798e4-panel);
  padding: 12px 12px 12px 44px;
}
.view798e4-branch article::before {
  content: attr(data-mark);
  position: absolute;
  left: 10px;
  top: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--view798e4-accent);
  color: var(--view798e4-accent);
  font: 700 11px/1 var(--view798e4-font-mono);
}
.view798e4-branch h3 { margin: 0 0 4px; font-size: 14px; color: var(--view798e4-text); }
.view798e4-branch p { margin: 0; font-size: 13px; color: var(--view798e4-muted); }
.view798e4-checkboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.view798e4-checkboard li {
  border: 1px solid var(--view798e4-line);
  background: var(--view798e4-bg-soft);
  padding: 10px;
  color: var(--view798e4-muted);
  font-size: 12.5px;
}
.view798e4-checkboard li::before { content: "✓ "; color: var(--view798e4-good); font-weight: 800; }
.view798e4-symptom {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--view798e4-muted);
  margin: 10px 0;
}
.view798e4-symptom th, .view798e4-symptom td {
  border: 1px solid var(--view798e4-line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.view798e4-symptom th { color: var(--view798e4-text); background: var(--view798e4-panel-2); }
.view798e4-symptom td:first-child { color: var(--view798e4-accent); font-weight: 700; }
.view798e4-procon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.view798e4-procon article { border: 1px solid var(--view798e4-line); padding: 11px; background: var(--view798e4-panel); }
.view798e4-procon h3 { margin: 0 0 6px; font-size: 13px; color: var(--view798e4-text); }
.view798e4-procon ul { margin: 0; padding-left: 17px; color: var(--view798e4-muted); font-size: 12.5px; }
.view798e4-route {
  position: relative;
  list-style: none;
  padding: 0 0 0 18px;
  margin: 12px 0;
  counter-reset: route;
}
.view798e4-route::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: var(--view798e4-accent-deep); }
.view798e4-route li {
  counter-increment: route;
  position: relative;
  margin: 0 0 10px;
  padding: 12px 12px 12px 38px;
  border: 1px solid var(--view798e4-line);
  background: var(--view798e4-bg-soft);
  color: var(--view798e4-muted);
  font-size: 13px;
}
.view798e4-route li::before {
  content: counter(route);
  position: absolute;
  left: -18px;
  top: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--view798e4-bg);
  border: 2px solid var(--view798e4-accent);
  color: var(--view798e4-accent);
  font: 700 11px/1 var(--view798e4-font-mono);
  border-radius: 50%;
}
.view798e4-route b { color: var(--view798e4-text); }
.view798e4-term-list { margin: 0; display: grid; gap: 8px; }
.view798e4-term-list div { border-bottom: 1px dashed var(--view798e4-line); padding: 0 0 8px; }
.view798e4-term-list dt { color: var(--view798e4-accent); font: 700 12px/1.4 var(--view798e4-font-mono); }
.view798e4-term-list dd { margin: 3px 0 0; color: var(--view798e4-muted); font-size: 13px; }
.view798e4-factbar { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 5px; scrollbar-width: none; }
.view798e4-factbar::-webkit-scrollbar { display: none; }
.view798e4-factbar span { flex: 0 0 145px; border: 1px solid var(--view798e4-line); padding: 10px; color: var(--view798e4-muted); font-size: 12px; background: var(--view798e4-panel); }
.view798e4-inline-action {
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(0,206,209,.5);
  background: transparent;
  color: var(--view798e4-accent);
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.view798e4-note {
  border-left: 3px solid var(--view798e4-warn);
  background: rgba(255,210,74,.06);
  padding: 10px 12px;
  color: #e8d9a8;
  font-size: 12.5px;
  margin: 10px 0;
}
@media (max-width: 340px) {
  .view798e4-actions { gap: 3px; }
  .view798e4-actions .view798e4-btn { padding: 0 9px; font-size: 11.5px; }
  .view798e4-brand-name { font-size: 15px; }
  .view798e4-header-inner { padding-left: 9px; padding-right: 9px; }
  .view798e4-checkboard, .view798e4-procon { grid-template-columns: 1fr; }
}

/* ---------- Wide screen: keep the phone canvas ---------- */
@media (min-width: 480px) {
  body { background: #050708; }
  .view798e4-shell {
    box-shadow: 0 0 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,206,209,0.08);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
