/* ============================================================
   cm889.homes - mobile-first casino portal base stylesheet
   Prefix: viewde6e4-
   Palette: #006400 / #00FF7F / #9AFF9A / #273746
   Direction: bold headings + light body, low-radius sections,
   grouped cover cards, scene-branch rhythm, restrained glow.
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --viewde6e4-green-deep: #006400;
  --viewde6e4-green-accent: #00FF7F;
  --viewde6e4-green-soft: #9AFF9A;
  --viewde6e4-slate-deep: #273746;
  --viewde6e4-slate-line: #1c2a35;
  --viewde6e4-ink: #f3fff4;
  --viewde6e4-ink-dim: #bfe6c2;
  --viewde6e4-canvas-max: 430px;      /* literal 430 guard value */
  --viewde6e4-radius-lg: 14px;
  --viewde6e4-radius-md: 8px;
  --viewde6e4-radius-sm: 5px;
  --viewde6e4-pad-edge: 14px;
  --viewde6e4-gap: 12px;
  --viewde6e4-top-bar: 58px;
  --viewde6e4-bottom-bar: 66px;
  --viewde6e4-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    "Roboto", "Arial", sans-serif;
  --viewde6e4-shadow-card: 0 6px 18px rgba(0, 0, 0, 0.32);
  --viewde6e4-glow-cta: 0 0 0 3px rgba(0, 255, 127, 0.32);
}

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

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

body {
  margin: 0;
  font-family: var(--viewde6e4-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--viewde6e4-ink);
  background:
    radial-gradient(circle at 20% -10%, #0c4a18 0%, transparent 55%),
    linear-gradient(180deg, #10331c 0%, var(--viewde6e4-green-deep) 45%, var(--viewde6e4-slate-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--viewde6e4-green-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul, ol { margin: 0; padding-left: 1.15rem; }
p { margin: 0 0 0.7rem; }

h1, h2, h3, h4 { margin: 0 0 0.55rem; line-height: 1.3; font-weight: 800; }
h2 { font-size: 1.22rem; letter-spacing: -0.01em; }
h3 { font-size: 1.04rem; font-weight: 700; }

/* ---- Centered mobile canvas ---- */
.viewde6e4-canvas {
  width: 100%;
  max-width: var(--viewde6e4-canvas-max);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 80, 25, 0.55) 0%, rgba(39, 55, 70, 0.62) 100%),
    var(--viewde6e4-slate-deep);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

/* ---- Top action band (minimal title band) ---- */
.viewde6e4-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--viewde6e4-canvas-max);
  height: var(--viewde6e4-top-bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 var(--viewde6e4-pad-edge);
  background: linear-gradient(90deg, #003d12 0%, #015a1c 100%);
  border-bottom: 1px solid rgba(0, 255, 127, 0.28);
  z-index: 60;
}

.viewde6e4-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.viewde6e4-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--viewde6e4-green-accent);
  flex-shrink: 0;
  background: #021b08;
}

.viewde6e4-brand-name {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--viewde6e4-green-soft);
  white-space: nowrap;
}
.viewde6e4-brand-name span { color: var(--viewde6e4-green-accent); }

.viewde6e4-actions { display: flex; align-items: center; gap: 7px; }

.viewde6e4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--viewde6e4-radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.2px;
  transition: box-shadow 0.2s ease, transform 0.12s ease, background 0.2s ease;
}

.viewde6e4-btn-primary {
  background: var(--viewde6e4-green-accent);
  color: #02260e;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.viewde6e4-btn-primary:hover { text-decoration: none; box-shadow: var(--viewde6e4-glow-cta); }
.viewde6e4-btn-primary:active { transform: translateY(1px); }

.viewde6e4-btn-ghost {
  background: transparent;
  color: var(--viewde6e4-green-soft);
  border-color: rgba(154, 255, 154, 0.55);
}
.viewde6e4-btn-ghost:hover { text-decoration: none; background: rgba(154, 255, 154, 0.12); }

.viewde6e4-menu-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--viewde6e4-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(154, 255, 154, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.viewde6e4-menu-btn:hover { background: rgba(0, 255, 127, 0.14); }
.viewde6e4-menu-btn svg { width: 20px; height: 20px; stroke: var(--viewde6e4-green-soft); }

/* ---- Partitioned menu overlay ---- */
.viewde6e4-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--viewde6e4-canvas-max);
  height: 100vh;
  background: linear-gradient(180deg, #02180a 0%, var(--viewde6e4-green-deep) 60%, #0a3a18 100%);
  z-index: 80;
  overflow-y: auto;
  padding: 18px var(--viewde6e4-pad-edge) calc(var(--viewde6e4-bottom-bar) + 24px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.viewde6e4-menu[data-open="true"] { visibility: visible; opacity: 1; }

.viewde6e4-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.viewde6e4-menu-head h2 {
  color: var(--viewde6e4-green-accent);
  font-size: 1.15rem;
}
.viewde6e4-menu-close {
  width: 34px; height: 34px;
  border-radius: var(--viewde6e4-radius-sm);
  border: 1px solid rgba(154, 255, 154, 0.4);
  background: transparent;
  color: var(--viewde6e4-green-soft);
  font-size: 1.2rem;
  line-height: 1;
}

.viewde6e4-menu-partition { margin-bottom: 18px; }
.viewde6e4-menu-partition-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--viewde6e4-green-soft);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(154, 255, 154, 0.25);
}
.viewde6e4-menu-links { list-style: none; padding: 0; margin: 0; }
.viewde6e4-menu-links li { margin: 0; }
.viewde6e4-menu-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--viewde6e4-radius-sm);
  color: var(--viewde6e4-ink);
  font-weight: 600;
  border-left: 3px solid transparent;
}
.viewde6e4-menu-links a:hover {
  text-decoration: none;
  background: rgba(0, 255, 127, 0.1);
  border-left-color: var(--viewde6e4-green-accent);
}
.viewde6e4-menu-links a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--viewde6e4-green-accent);
  flex-shrink: 0;
}
.viewde6e4-menu-cta {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Page scaffolding ---- */
.viewde6e4-main {
  padding: calc(var(--viewde6e4-top-bar) + 12px) var(--viewde6e4-pad-edge) calc(var(--viewde6e4-bottom-bar) + 30px);
}

.viewde6e4-section { margin-bottom: 26px; }

.viewde6e4-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(154, 255, 154, 0.18);
}
.viewde6e4-section-head h2 { color: var(--viewde6e4-green-soft); margin: 0; }
.viewde6e4-section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--viewde6e4-green-accent);
  white-space: nowrap;
}

/* ---- Hero carousel ---- */
.viewde6e4-hero {
  position: relative;
  border-radius: var(--viewde6e4-radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: var(--viewde6e4-shadow-card);
  background: #02180a;
}
.viewde6e4-hero-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}
.viewde6e4-hero-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.viewde6e4-hero-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.viewde6e4-hero-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.viewde6e4-hero-caption h2 { font-size: 1.16rem; margin: 0 0 4px; color: #fff; }
.viewde6e4-hero-caption p { margin: 0; font-size: 0.82rem; color: var(--viewde6e4-green-soft); }
.viewde6e4-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.viewde6e4-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}
.viewde6e4-hero-dot.is-active { background: var(--viewde6e4-green-accent); }

/* ---- Quick stat strip ---- */
.viewde6e4-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.viewde6e4-stat {
  background: rgba(0, 255, 127, 0.07);
  border: 1px solid rgba(154, 255, 154, 0.2);
  border-radius: var(--viewde6e4-radius-md);
  padding: 10px 6px;
  text-align: center;
}
.viewde6e4-stat-num {
  display: block;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--viewde6e4-green-accent);
}
.viewde6e4-stat-label {
  font-size: 0.7rem;
  color: var(--viewde6e4-ink-dim);
  letter-spacing: 0.04em;
}

/* ---- Category rail (horizontal chips) ---- */
.viewde6e4-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
  list-style: none;
  padding-left: 0;
}
.viewde6e4-rail::-webkit-scrollbar { display: none; }
.viewde6e4-rail a {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(154, 255, 154, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--viewde6e4-green-soft);
  font-size: 0.82rem;
  font-weight: 600;
}
.viewde6e4-rail a:hover {
  text-decoration: none;
  background: var(--viewde6e4-green-accent);
  color: #02260e;
}

/* ---- Game grid + grouped cover cards ---- */
.viewde6e4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
@media (min-width: 375px) {
  .viewde6e4-game-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}

.viewde6e4-card {
  background: linear-gradient(180deg, rgba(0, 60, 18, 0.9) 0%, rgba(8, 28, 16, 0.95) 100%);
  border: 1px solid rgba(0, 255, 127, 0.18);
  border-radius: var(--viewde6e4-radius-md);
  padding: 5px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.viewde6e4-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--viewde6e4-green-accent);
  box-shadow: 0 6px 14px rgba(0, 255, 127, 0.2);
}
.viewde6e4-card-media {
  position: relative;
  border-radius: var(--viewde6e4-radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #02180a;
}
.viewde6e4-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.viewde6e4-card-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--viewde6e4-green-accent);
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 700;
}
.viewde6e4-card-title {
  margin-top: 5px;
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--viewde6e4-ink);
  font-weight: 600;
  min-height: 1.4em;
  word-break: break-word;
  padding: 0 2px 2px;
}

/* ---- Content module blocks ---- */
.viewde6e4-block {
  background: rgba(2, 30, 12, 0.55);
  border: 1px solid rgba(154, 255, 154, 0.16);
  border-left: 4px solid var(--viewde6e4-green-accent);
  border-radius: var(--viewde6e4-radius-md);
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}
.viewde6e4-block p { color: var(--viewde6e4-ink-dim); font-size: 0.9rem; }
.viewde6e4-block strong { color: var(--viewde6e4-green-soft); }
.viewde6e4-block a { font-weight: 700; }

.viewde6e4-inline-list { list-style: none; padding: 0; margin: 6px 0 0; }
.viewde6e4-inline-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  border-bottom: 1px dashed rgba(154, 255, 154, 0.14);
  font-size: 0.88rem;
  color: var(--viewde6e4-ink-dim);
}
.viewde6e4-inline-list li:last-child { border-bottom: none; }
.viewde6e4-inline-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--viewde6e4-green-accent);
  font-weight: 800;
}

/* comparison table */
.viewde6e4-compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.82rem;
}
.viewde6e4-compare th,
.viewde6e4-compare td {
  text-align: left;
  padding: 8px 9px;
  border-bottom: 1px solid rgba(154, 255, 154, 0.18);
  vertical-align: top;
  color: var(--viewde6e4-ink-dim);
}
.viewde6e4-compare th {
  color: var(--viewde6e4-green-soft);
  background: rgba(0, 255, 127, 0.08);
  font-weight: 700;
}

/* feature chip grid */
.viewde6e4-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 8px;
}
.viewde6e4-feature {
  background: rgba(0, 255, 127, 0.06);
  border: 1px solid rgba(154, 255, 154, 0.18);
  border-radius: var(--viewde6e4-radius-sm);
  padding: 10px;
}
.viewde6e4-feature-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--viewde6e4-green-accent);
  margin-bottom: 3px;
}
.viewde6e4-feature-desc { font-size: 0.76rem; color: var(--viewde6e4-ink-dim); line-height: 1.4; }

/* steps */
.viewde6e4-steps { list-style: none; padding: 0; counter-reset: step; margin: 6px 0 0; }
.viewde6e4-steps li {
  position: relative;
  padding: 6px 0 14px 30px;
  font-size: 0.88rem;
  color: var(--viewde6e4-ink-dim);
  counter-increment: step;
}
.viewde6e4-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--viewde6e4-green-accent);
  color: #02260e;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA slab */
.viewde6e4-cta-slab {
  background: linear-gradient(135deg, #005a18 0%, var(--viewde6e4-green-deep) 100%);
  border: 1px solid rgba(0, 255, 127, 0.3);
  border-radius: var(--viewde6e4-radius-lg);
  padding: 16px;
  text-align: center;
  margin: 18px 0;
}
.viewde6e4-cta-slab h3 { color: var(--viewde6e4-green-soft); margin-bottom: 6px; }
.viewde6e4-cta-slab p { color: var(--viewde6e4-ink-dim); font-size: 0.85rem; margin-bottom: 12px; }
.viewde6e4-cta-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---- Extended footer (cm889 site专属扩展区) ---- */
.viewde6e4-extended {
  margin-top: 18px;
  border-top: 1px solid rgba(154, 255, 154, 0.22);
  padding-top: 18px;
}
.viewde6e4-brand-intro {
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--viewde6e4-radius-md);
  padding: 14px;
  margin-bottom: 16px;
}
.viewde6e4-brand-intro h3 { color: var(--viewde6e4-green-accent); font-size: 1rem; }
.viewde6e4-brand-intro p { font-size: 0.86rem; color: var(--viewde6e4-ink-dim); }

.viewde6e4-ext-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--viewde6e4-green-soft);
  margin: 14px 0 8px;
}
.viewde6e4-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.viewde6e4-shortcuts a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(0, 255, 127, 0.06);
  border: 1px solid rgba(154, 255, 154, 0.2);
  border-radius: var(--viewde6e4-radius-sm);
  color: var(--viewde6e4-ink);
  font-size: 0.8rem;
  font-weight: 600;
}
.viewde6e4-shortcuts a:hover { text-decoration: none; background: rgba(0, 255, 127, 0.14); }

.viewde6e4-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.viewde6e4-promo-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 10px;
  border-radius: var(--viewde6e4-radius-sm);
  border: 1px solid rgba(0, 255, 127, 0.35);
  background: linear-gradient(160deg, rgba(0, 90, 24, 0.85), rgba(2, 24, 10, 0.85));
  color: var(--viewde6e4-ink);
  font-weight: 700;
  font-size: 0.82rem;
}
.viewde6e4-promo-tile small { color: var(--viewde6e4-green-soft); font-weight: 500; font-size: 0.72rem; }
.viewde6e4-promo-tile:hover { text-decoration: none; box-shadow: var(--viewde6e4-glow-cta); }

.viewde6e4-disclaimer {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--viewde6e4-radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(154, 255, 154, 0.25);
  font-size: 0.76rem;
  color: var(--viewde6e4-ink-dim);
  line-height: 1.5;
}

.viewde6e4-copyright {
  text-align: center;
  font-size: 0.76rem;
  color: var(--viewde6e4-ink-dim);
  padding: 12px 0 4px;
}

/* ---- Bottom function bar (outlined, 5 roles) ---- */
.viewde6e4-bottombar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--viewde6e4-canvas-max);
  height: var(--viewde6e4-bottom-bar);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(0deg, #01250a 0%, #013d12 100%);
  border-top: 1px solid rgba(0, 255, 127, 0.3);
  z-index: 60;
}
.viewde6e4-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--viewde6e4-ink-dim);
  font-size: 0.64rem;
  font-weight: 600;
  border-right: 1px solid rgba(154, 255, 154, 0.1);
  background: transparent;
  border-top: none; border-bottom: none; border-left: none;
  padding: 0 2px;
  position: relative;
  min-height: 44px;
}
.viewde6e4-nav-item:last-child { border-right: none; }
.viewde6e4-nav-item svg {
  width: 22px; height: 22px;
  stroke: var(--viewde6e4-ink-dim);
  fill: none;
  stroke-width: 1.8;
}
.viewde6e4-nav-item.is-active {
  color: #02260e;
  background: var(--viewde6e4-green-accent);
  border-radius: 10px 10px 0 0;
}
.viewde6e4-nav-item.is-active svg { stroke: #02260e; }
.viewde6e4-nav-item.is-active::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 26px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--viewde6e4-green-soft);
}
.viewde6e4-nav-item:hover { text-decoration: none; }
.viewde6e4-nav-item:not(.is-active):hover { color: var(--viewde6e4-green-soft); }
.viewde6e4-nav-item:not(.is-active):hover svg { stroke: var(--viewde6e4-green-soft); }

/* ---- Utilities ---- */
.viewde6e4-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;
}
.viewde6e4-lead {
  font-size: 0.94rem;
  color: var(--viewde6e4-ink-dim);
  margin-bottom: 14px;
}

/* ---- Help-page layouts ---- */
.viewde6e4-page-intro {
  background: linear-gradient(145deg, rgba(0, 90, 24, 0.72), rgba(20, 42, 31, 0.92));
  border: 1px solid rgba(0, 255, 127, 0.25);
  border-radius: var(--viewde6e4-radius-lg);
  padding: 16px 14px;
  margin-bottom: 18px;
}
.viewde6e4-page-intro h1 { font-size: 1.45rem; color: var(--viewde6e4-green-soft); }
.viewde6e4-page-intro p { color: var(--viewde6e4-ink-dim); }
.viewde6e4-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--viewde6e4-green-accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.viewde6e4-branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.viewde6e4-branch {
  min-width: 0;
  padding: 11px;
  background: rgba(0, 255, 127, 0.06);
  border-top: 3px solid var(--viewde6e4-green-accent);
  border-radius: var(--viewde6e4-radius-sm);
}
.viewde6e4-branch h3 { font-size: 0.86rem; color: var(--viewde6e4-green-soft); }
.viewde6e4-branch p { font-size: 0.78rem; color: var(--viewde6e4-ink-dim); }
.viewde6e4-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--viewde6e4-green-accent);
  border-radius: var(--viewde6e4-radius-sm);
  background: rgba(0, 255, 127, 0.1);
  color: var(--viewde6e4-green-soft);
  font-weight: 750;
  font-size: 0.83rem;
}
.viewde6e4-action-link:hover { text-decoration: none; box-shadow: var(--viewde6e4-glow-cta); }
.viewde6e4-diagnostic { border-left-color: #9AFF9A; }
.viewde6e4-diagnostic-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.25fr;
  gap: 7px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(154, 255, 154, 0.2);
  color: var(--viewde6e4-ink-dim);
  font-size: 0.76rem;
}
.viewde6e4-diagnostic-row:last-child { border-bottom: 0; }
.viewde6e4-diagnostic-row strong { color: var(--viewde6e4-green-soft); }
.viewde6e4-question-stack { display: grid; gap: 10px; }
.viewde6e4-question {
  background: rgba(2, 30, 12, 0.58);
  border: 1px solid rgba(154, 255, 154, 0.18);
  border-radius: var(--viewde6e4-radius-sm);
  padding: 13px;
}
.viewde6e4-question h3 { color: var(--viewde6e4-green-soft); font-size: 0.96rem; }
.viewde6e4-question p { color: var(--viewde6e4-ink-dim); font-size: 0.86rem; }
.viewde6e4-term-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.viewde6e4-term-strip::-webkit-scrollbar { display: none; }
.viewde6e4-term {
  flex: 0 0 78%;
  border-left: 3px solid var(--viewde6e4-green-accent);
  background: rgba(0, 0, 0, 0.2);
  padding: 11px;
  border-radius: var(--viewde6e4-radius-sm);
}
.viewde6e4-term strong { color: var(--viewde6e4-green-accent); }
.viewde6e4-term p { margin: 4px 0 0; font-size: 0.8rem; color: var(--viewde6e4-ink-dim); }
.viewde6e4-inner-footer {
  border-top: 1px solid rgba(154, 255, 154, 0.22);
  margin-top: 22px;
  padding: 13px 0 2px;
  text-align: center;
  color: var(--viewde6e4-ink-dim);
  font-size: 0.76rem;
}
@media (max-width: 340px) {
  .viewde6e4-topbar { padding-left: 8px; padding-right: 8px; }
  .viewde6e4-brand-name { font-size: 1.05rem; }
  .viewde6e4-actions { gap: 4px; }
  .viewde6e4-btn { padding-left: 9px; padding-right: 9px; font-size: 0.78rem; }
  .viewde6e4-branch-grid { grid-template-columns: 1fr; }
}

/* ---- Wide screen: keep mobile canvas centered ---- */
@media (min-width: 480px) {
  body { background-color: #0a0f0c; }
  .viewde6e4-canvas { border-radius: 0; }
}

/* ---- Accessibility ---- */
:focus-visible {
  outline: 2px solid var(--viewde6e4-green-accent);
  outline-offset: 2px;
}
