/* ============================================================
   ColorPlus mobile palette — colorplus.cfd
   Prefix contract: every class and variable uses "viewbe70f-"
   Canvas target: 320-430px, centered phone frame on wide views
   Visual direction: bold compact headings + light body,
   low-radius bordered partitions, outlined tile cards,
   step-progression rhythm, subtle icon state changes,
   full-width primary CTA.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --viewbe70f-flame: #D2691E;
  --viewbe70f-flame-deep: #B45712;
  --viewbe70f-sand: #DEB887;
  --viewbe70f-sand-soft: rgba(222, 184, 135, 0.16);
  --viewbe70f-slate: #6C757D;
  --viewbe70f-deep: #0F0F23;
  --viewbe70f-void: #090916;
  --viewbe70f-panel: #161630;
  --viewbe70f-panel-2: #1D1D3C;
  --viewbe70f-line: rgba(222, 184, 135, 0.22);
  --viewbe70f-line-dim: rgba(108, 117, 125, 0.35);
  --viewbe70f-text: #EFE9DD;
  --viewbe70f-muted: #A7ADb5;
  --viewbe70f-r-1: 4px;   /* lowest radius: chips, tags */
  --viewbe70f-r-2: 6px;   /* tiles, inputs */
  --viewbe70f-r-3: 8px;   /* panels, CTA — still low */
  --viewbe70f-head-h: 118px;
  --viewbe70f-nav-h: 66px;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background:
    radial-gradient(1200px 500px at 50% -180px, rgba(210, 105, 30, 0.14), transparent 60%),
    var(--viewbe70f-void);
  color: var(--viewbe70f-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.62;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: var(--viewbe70f-sand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

:focus-visible {
  outline: 2px solid var(--viewbe70f-sand);
  outline-offset: 2px;
  border-radius: var(--viewbe70f-r-1);
}

::selection { background: var(--viewbe70f-flame); color: #fff; }

/* ---------- 3. Phone shell ---------- */
.viewbe70f-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--viewbe70f-deep);
  min-height: 100vh;
  border-left: 1px solid var(--viewbe70f-line-dim);
  border-right: 1px solid var(--viewbe70f-line-dim);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
}

.viewbe70f-main {
  padding: calc(var(--viewbe70f-head-h) + 14px) 14px calc(var(--viewbe70f-nav-h) + 34px);
  display: block;
}

/* ---------- 4. Typography ---------- */
h1, h2, h3, .viewbe70f-kicker {
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.22;
}

h1 {
  font-size: 25px;
  text-transform: none;
  color: #fff;
}

h2 {
  font-size: 18.5px;
  color: #fff;
  padding-left: 10px;
  border-left: 3px solid var(--viewbe70f-flame);
  margin: 26px 0 10px;
}

h3 {
  font-size: 15px;
  color: var(--viewbe70f-sand);
  font-weight: 700;
}

p { margin: 0 0 12px; }

.viewbe70f-lead { color: var(--viewbe70f-muted); }

.viewbe70f-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--viewbe70f-flame);
  margin-bottom: 6px;
}

/* ---------- 5. Fixed header, two layers ---------- */
.viewbe70f-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(15, 15, 35, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--viewbe70f-line);
}

/* Brand layer: logo image + name only */
.viewbe70f-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 62px;
  padding: 10px 14px 6px;
}

.viewbe70f-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
}

.viewbe70f-brand:hover { text-decoration: none; }

.viewbe70f-brand img {
  width: 38px;
  height: 38px;
  border-radius: var(--viewbe70f-r-2);
  border: 1px solid var(--viewbe70f-line);
  object-fit: cover;
  background: var(--viewbe70f-panel);
}

.viewbe70f-brandname {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.viewbe70f-brandname b { color: var(--viewbe70f-flame); font-weight: 800; }

.viewbe70f-menubtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--viewbe70f-line);
  border-radius: var(--viewbe70f-r-2);
  color: var(--viewbe70f-sand);
  font-size: 13px;
  font-weight: 600;
  background: var(--viewbe70f-sand-soft);
  transition: background 0.18s ease, transform 0.12s ease;
}

.viewbe70f-menubtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; }

.viewbe70f-menubtn:active { transform: scale(0.96); }

.viewbe70f-menubtn[aria-expanded="true"] {
  background: var(--viewbe70f-flame);
  border-color: var(--viewbe70f-flame);
  color: #fff;
}

/* Action layer: Register + Login */
.viewbe70f-actionrow {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  padding: 0 14px 10px;
}

.viewbe70f-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: var(--viewbe70f-r-3);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.viewbe70f-btn:active { transform: scale(0.975); }

.viewbe70f-btn-primary {
  background: linear-gradient(180deg, var(--viewbe70f-flame) 0%, var(--viewbe70f-flame-deep) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 10px rgba(210, 105, 30, 0.35);
}

.viewbe70f-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--viewbe70f-sand);
  color: var(--viewbe70f-sand);
}

.viewbe70f-btn-ghost:hover { background: var(--viewbe70f-sand-soft); text-decoration: none; }

/* Compact route panel (expandable menu) */
.viewbe70f-routes {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.28s ease, opacity 0.2s ease;
  background: var(--viewbe70f-panel);
}

.viewbe70f-routes.viewbe70f-routes-open {
  max-height: 420px;
  opacity: 1;
  border-top-color: var(--viewbe70f-line-dim);
}

.viewbe70f-routes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 14px 14px;
}

.viewbe70f-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-2);
  background: var(--viewbe70f-panel-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--viewbe70f-text);
  transition: border-color 0.15s ease;
}

.viewbe70f-route:hover { border-color: var(--viewbe70f-sand); text-decoration: none; }

.viewbe70f-route svg {
  width: 12px; height: 12px;
  stroke: var(--viewbe70f-slate);
  fill: none;
  stroke-width: 2;
  flex: none;
}

.viewbe70f-route span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewbe70f-route-viewbe70f-here {
  border-color: var(--viewbe70f-flame);
  background: rgba(210, 105, 30, 0.14);
  color: #fff;
}

/* ---------- 6. Hero ---------- */
.viewbe70f-hero {
  padding: 4px 0 2px;
}

.viewbe70f-hero p { color: var(--viewbe70f-muted); }

.viewbe70f-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 4px;
}

.viewbe70f-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--viewbe70f-sand);
  background: var(--viewbe70f-sand-soft);
  border: 1px solid var(--viewbe70f-line);
  border-radius: var(--viewbe70f-r-1);
  white-space: nowrap;
}

.viewbe70f-chip svg { width: 13px; height: 13px; stroke: var(--viewbe70f-flame); fill: none; stroke-width: 2; }

/* ---------- 7. Promo carousel ---------- */
.viewbe70f-promostrip { margin: 16px 0 4px; }

.viewbe70f-strip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--viewbe70f-slate);
  margin-bottom: 8px;
}

.viewbe70f-strip-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--viewbe70f-line-dim);
}

.viewbe70f-carousel {
  position: relative;
  border: 1px solid var(--viewbe70f-line);
  border-radius: var(--viewbe70f-r-3);
  overflow: hidden;
  background: var(--viewbe70f-panel);
}

.viewbe70f-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

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

.viewbe70f-slide img {
  width: 100%;
  aspect-ratio: 2.28 / 1;
  object-fit: cover;
}

.viewbe70f-dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.viewbe70f-dot {
  width: 22px;
  height: 10px;
  min-width: 22px;
  border-radius: 5px;
  background: rgba(239, 233, 221, 0.32);
  transition: background 0.2s ease, width 0.2s ease;
}

.viewbe70f-dot.viewbe70f-dot-on {
  background: var(--viewbe70f-flame);
  width: 30px;
}

/* ---------- 8. Game aisles ---------- */
.viewbe70f-aisle { margin-top: 22px; }

.viewbe70f-aisle-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.viewbe70f-aisle-head h2 { margin: 0; flex: 1; }

.viewbe70f-count {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--viewbe70f-slate);
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-1);
  padding: 3px 7px;
}

.viewbe70f-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

/* Outlined tile card */
.viewbe70f-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 5px 7px;
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-2);
  background: var(--viewbe70f-panel);
  text-align: center;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.viewbe70f-tile:hover { border-color: var(--viewbe70f-sand); text-decoration: none; }
.viewbe70f-tile:active { transform: scale(0.965); }

.viewbe70f-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--viewbe70f-r-1);
  background: var(--viewbe70f-panel-2);
}

.viewbe70f-tile-name {
  font-size: 10.8px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--viewbe70f-text);
  min-height: 27px;              /* stable rows: two wrapped lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 9. Partner strip ---------- */
.viewbe70f-partners {
  margin-top: 20px;
  border-top: 1px dashed var(--viewbe70f-line-dim);
  border-bottom: 1px dashed var(--viewbe70f-line-dim);
  padding: 12px 0;
}

.viewbe70f-partnerrow {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.viewbe70f-partnerrow::-webkit-scrollbar { display: none; }

.viewbe70f-partnerrow img {
  height: 30px;
  width: auto;
  flex: none;
  opacity: 0.55;
  filter: grayscale(0.4);
}

/* ---------- 10. Achievement ladder (step rhythm) ---------- */
.viewbe70f-ladder {
  list-style: none;
  border-left: 2px solid var(--viewbe70f-line-dim);
  margin: 14px 0 4px 6px;
}

.viewbe70f-mile {
  position: relative;
  padding: 0 0 14px 16px;
}

.viewbe70f-mile::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--viewbe70f-deep);
  border: 2px solid var(--viewbe70f-slate);
}

.viewbe70f-mile:first-child::before { border-color: var(--viewbe70f-flame); }

.viewbe70f-mile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
}

.viewbe70f-mile-head svg {
  width: 16px;
  height: 16px;
  stroke: var(--viewbe70f-sand);
  fill: none;
  stroke-width: 1.8;
  flex: none;
  transition: fill 0.2s ease, transform 0.2s ease;   /* icon state micro-change */
}

.viewbe70f-mile:hover .viewbe70f-mile-head svg {
  fill: var(--viewbe70f-sand);
  transform: translateY(-1px);
}

.viewbe70f-mile p { margin: 3px 0 0; font-size: 13px; color: var(--viewbe70f-muted); }

/* ---------- 11. Selection guide rows ---------- */
.viewbe70f-picklist { display: grid; gap: 8px; margin: 12px 0 4px; }

.viewbe70f-pick {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-3);
  background: var(--viewbe70f-panel);
}

.viewbe70f-pick-for {
  grid-column: 1 / -1;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--viewbe70f-flame);
}

.viewbe70f-pick-ic {
  width: 42px;
  height: 42px;
  border-radius: var(--viewbe70f-r-2);
  border: 1px solid var(--viewbe70f-line);
  background: var(--viewbe70f-sand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewbe70f-pick-ic svg { width: 20px; height: 20px; stroke: var(--viewbe70f-sand); fill: none; stroke-width: 1.8; }

.viewbe70f-pick p { margin: 0; font-size: 13px; color: var(--viewbe70f-muted); }

.viewbe70f-pick a { color: var(--viewbe70f-sand); font-weight: 600; border-bottom: 1px solid var(--viewbe70f-line); }

/* ---------- 12. Full-width CTA band ---------- */
.viewbe70f-ctaband {
  margin: 24px 0 6px;
  padding: 16px 14px;
  border: 1px solid var(--viewbe70f-line);
  border-radius: var(--viewbe70f-r-3);
  background:
    linear-gradient(160deg, rgba(210, 105, 30, 0.16), transparent 55%),
    var(--viewbe70f-panel);
}

.viewbe70f-ctaband p { color: var(--viewbe70f-muted); font-size: 13.5px; }

.viewbe70f-ctabig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border-radius: var(--viewbe70f-r-3);
  background: linear-gradient(180deg, var(--viewbe70f-flame) 0%, var(--viewbe70f-flame-deep) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(210, 105, 30, 0.35);
  transition: transform 0.12s ease;
}

.viewbe70f-ctabig:active { transform: scale(0.98); }
.viewbe70f-ctabig:hover { text-decoration: none; filter: brightness(1.06); }

.viewbe70f-ctabig svg { width: 18px; height: 18px; fill: #fff; }

.viewbe70f-ctasub {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--viewbe70f-slate);
}

/* ---------- 13. Step list ---------- */
.viewbe70f-steps {
  list-style: none;
  counter-reset: viewbe70f-step;
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
}

.viewbe70f-step {
  counter-increment: viewbe70f-step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--viewbe70f-line-dim);
  border-left: 3px solid var(--viewbe70f-flame);
  border-radius: var(--viewbe70f-r-2);
  background: var(--viewbe70f-panel);
}

.viewbe70f-step::before {
  content: counter(viewbe70f-step);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--viewbe70f-flame);
  color: var(--viewbe70f-flame);
  font-weight: 800;
  font-size: 15px;
}

.viewbe70f-step p { margin: 0; font-size: 13.2px; color: var(--viewbe70f-muted); }
.viewbe70f-step b { color: var(--viewbe70f-text); font-weight: 700; }

/* ---------- 14. Scenario Q&A ---------- */
.viewbe70f-qa {
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-3);
  overflow: hidden;
  margin: 12px 0 4px;
}

.viewbe70f-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 13px 14px;
  background: var(--viewbe70f-panel-2);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--viewbe70f-line-dim);
  min-height: 48px;
}

.viewbe70f-q svg {
  width: 17px; height: 17px;
  stroke: var(--viewbe70f-flame);
  fill: none;
  stroke-width: 2;
  flex: none;
}

.viewbe70f-a {
  padding: 12px 14px 14px;
  font-size: 13.2px;
  color: var(--viewbe70f-muted);
  background: var(--viewbe70f-panel);
}

.viewbe70f-a b { color: var(--viewbe70f-text); font-weight: 700; }

/* ---------- 15. Entity relationship map ---------- */
.viewbe70f-relmap { display: grid; gap: 7px; margin: 12px 0 4px; }

.viewbe70f-rel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-2);
  background: var(--viewbe70f-panel);
  font-size: 12.5px;
  color: var(--viewbe70f-muted);
}

.viewbe70f-rel b { color: var(--viewbe70f-sand); font-weight: 700; white-space: nowrap; }

.viewbe70f-rel-arrow {
  flex: none;
  width: 16px;
  height: 10px;
  stroke: var(--viewbe70f-flame);
  fill: none;
  stroke-width: 2;
}

/* ---------- 16. Extended footer ---------- */
.viewbe70f-extfoot {
  margin: 30px -14px 0;
  padding: 20px 16px 6px;
  border-top: 1px solid var(--viewbe70f-line);
  background:
    linear-gradient(180deg, rgba(210, 105, 30, 0.07), transparent 40%),
    var(--viewbe70f-panel);
}

.viewbe70f-extbrand {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--viewbe70f-line-dim);
}

.viewbe70f-extbrand img {
  width: 40px; height: 40px;
  border-radius: var(--viewbe70f-r-2);
  border: 1px solid var(--viewbe70f-line);
  flex: none;
}

.viewbe70f-extbrand h3 { margin-bottom: 3px; }

.viewbe70f-extbrand p { margin: 0; font-size: 12.8px; color: var(--viewbe70f-muted); }

.viewbe70f-extblock { padding: 15px 0; border-bottom: 1px dashed var(--viewbe70f-line-dim); }
.viewbe70f-extblock:last-child { border-bottom: 0; }

.viewbe70f-exttitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--viewbe70f-sand);
  margin-bottom: 10px;
}

/* Two-column page directory */
.viewbe70f-directory {
  columns: 2;
  column-gap: 12px;
}

.viewbe70f-directory a {
  display: flex;
  align-items: center;
  gap: 6px;
  break-inside: avoid;
  min-height: 40px;
  padding: 6px 2px;
  font-size: 12.3px;
  font-weight: 600;
  color: var(--viewbe70f-text);
  border-bottom: 1px dotted var(--viewbe70f-line-dim);
}

.viewbe70f-directory a:hover { color: var(--viewbe70f-sand); text-decoration: none; }

.viewbe70f-directory svg {
  width: 11px; height: 11px;
  stroke: var(--viewbe70f-flame);
  fill: none;
  stroke-width: 2.4;
  flex: none;
}

/* Promotion action list: icon + text labels */
.viewbe70f-promoacts { display: grid; gap: 8px; }

.viewbe70f-promoact {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-2);
  background: var(--viewbe70f-panel-2);
  text-align: left;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.viewbe70f-promoact:hover { border-color: var(--viewbe70f-flame); }
.viewbe70f-promoact:active { transform: scale(0.98); }

.viewbe70f-promoact svg {
  width: 19px; height: 19px;
  stroke: var(--viewbe70f-flame);
  fill: none;
  stroke-width: 1.8;
  flex: none;
}

.viewbe70f-promoact b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.viewbe70f-promoact span {
  display: block;
  font-size: 11.5px;
  color: var(--viewbe70f-slate);
  line-height: 1.35;
}

.viewbe70f-note {
  font-size: 11.8px;
  line-height: 1.55;
  color: var(--viewbe70f-slate);
  padding: 10px 12px;
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-2);
  background: rgba(9, 9, 22, 0.5);
}

/* ---------- 17. Common footer: copyright only ---------- */
.viewbe70f-commonfoot {
  margin: 0 -14px;
  padding: 14px 16px calc(var(--viewbe70f-nav-h) + 26px);
  border-top: 1px solid var(--viewbe70f-line-dim);
  text-align: center;
  font-size: 11.5px;
  color: var(--viewbe70f-slate);
  background: var(--viewbe70f-void);
}

/* ---------- 18. Bottom nav: center-raised ---------- */
.viewbe70f-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  min-height: var(--viewbe70f-nav-h);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 15, 35, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--viewbe70f-line);
}

.viewbe70f-bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px;
  font-size: 10.3px;
  font-weight: 600;
  color: var(--viewbe70f-slate);
  border-radius: var(--viewbe70f-r-2);
  transition: color 0.15s ease, transform 0.12s ease;
}

.viewbe70f-bn-item:active { transform: scale(0.93); }
.viewbe70f-bn-item:hover { text-decoration: none; }

.viewbe70f-bn-item svg {
  width: 23px; height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  transition: fill 0.18s ease;
}

/* Label emphasis + filled icon for the active role */
.viewbe70f-is-active { color: var(--viewbe70f-sand); font-weight: 800; }
.viewbe70f-is-active svg { fill: currentColor; stroke: var(--viewbe70f-sand); }

/* Raised center play button */
.viewbe70f-bn-play {
  position: relative;
  color: #fff;
  transform: translateY(-13px);
}

.viewbe70f-bn-play .viewbe70f-bn-disc {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--viewbe70f-flame) 0%, var(--viewbe70f-flame-deep) 100%);
  border: 2px solid rgba(222, 184, 135, 0.55);
  box-shadow: 0 6px 16px rgba(210, 105, 30, 0.5);
}

.viewbe70f-bn-play svg { width: 24px; height: 24px; stroke: #fff; fill: #fff; stroke-width: 1.6; }
.viewbe70f-bn-play span { color: var(--viewbe70f-sand); font-weight: 800; }
.viewbe70f-bn-play:active { transform: translateY(-13px) scale(0.94); }

/* ---------- 19. Motion & density guards ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}

/* 5-column game grid on wider phones */
@media (min-width: 396px) {
  .viewbe70f-grid { grid-template-columns: repeat(5, 1fr); }
  h1 { font-size: 27px; }
}

/* Very narrow phones: keep 4 columns, tighten gaps */
@media (max-width: 335px) {
  .viewbe70f-grid { gap: 6px; }
  .viewbe70f-main { padding-left: 10px; padding-right: 10px; }
  .viewbe70f-extfoot { margin-left: -10px; margin-right: -10px; padding-left: 12px; padding-right: 12px; }
  .viewbe70f-commonfoot { margin-left: -10px; margin-right: -10px; }
  .viewbe70f-tile-name { font-size: 10px; }
}

/* Landscape-short phones: header must not eat the viewport */
/* ---------- 19. Help page modules ---------- */
.viewbe70f-helpintro {
  padding: 12px;
  border: 1px solid var(--viewbe70f-line);
  border-top: 3px solid var(--viewbe70f-flame);
  border-radius: var(--viewbe70f-r-2);
  background: linear-gradient(135deg, rgba(210, 105, 30, 0.15), var(--viewbe70f-panel));
}

.viewbe70f-helpintro p:last-child { margin-bottom: 0; }

.viewbe70f-toolrow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
}

.viewbe70f-tool {
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-2);
  background: var(--viewbe70f-panel);
}

.viewbe70f-tool b { display: block; color: var(--viewbe70f-sand); font-size: 12.5px; }
.viewbe70f-tool span { display: block; margin-top: 4px; color: var(--viewbe70f-muted); font-size: 11.8px; line-height: 1.4; }

.viewbe70f-device {
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
}

.viewbe70f-device article {
  padding: 11px 12px;
  border-left: 3px solid var(--viewbe70f-slate);
  border-top: 1px solid var(--viewbe70f-line-dim);
  border-right: 1px solid var(--viewbe70f-line-dim);
  border-bottom: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-2);
  background: var(--viewbe70f-panel);
}

.viewbe70f-device article:first-child { border-left-color: var(--viewbe70f-flame); }
.viewbe70f-device h3 { margin-bottom: 4px; }
.viewbe70f-device p { margin: 0; font-size: 13px; color: var(--viewbe70f-muted); }

.viewbe70f-callout {
  margin: 12px 0 4px;
  padding: 11px 12px;
  border: 1px solid var(--viewbe70f-line);
  border-radius: var(--viewbe70f-r-2);
  background: var(--viewbe70f-sand-soft);
  color: var(--viewbe70f-text);
  font-size: 13px;
}

.viewbe70f-callout b { color: var(--viewbe70f-flame); }

.viewbe70f-branchlist { display: grid; gap: 8px; margin: 12px 0 4px; }

.viewbe70f-branch {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-2);
  background: var(--viewbe70f-panel);
}

.viewbe70f-branch-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--viewbe70f-sand-soft);
  border: 1px solid var(--viewbe70f-sand);
  color: var(--viewbe70f-sand);
  font-weight: 800;
}

.viewbe70f-branch h3 { margin: 0 0 3px; }
.viewbe70f-branch p { margin: 0; color: var(--viewbe70f-muted); font-size: 13px; }

.viewbe70f-compare {
  overflow-x: auto;
  margin: 12px 0 4px;
  border: 1px solid var(--viewbe70f-line-dim);
  border-radius: var(--viewbe70f-r-2);
  background: var(--viewbe70f-panel);
}

.viewbe70f-compare table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 12px; }
.viewbe70f-compare th, .viewbe70f-compare td { padding: 9px 10px; border-bottom: 1px solid var(--viewbe70f-line-dim); text-align: left; vertical-align: top; }
.viewbe70f-compare th { color: var(--viewbe70f-sand); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.viewbe70f-compare td { color: var(--viewbe70f-muted); }
.viewbe70f-compare tr:last-child td { border-bottom: 0; }

.viewbe70f-glossary { display: grid; gap: 7px; margin: 12px 0 4px; }
.viewbe70f-term { padding: 9px 11px; border: 1px solid var(--viewbe70f-line-dim); border-radius: var(--viewbe70f-r-2); background: var(--viewbe70f-panel); }
.viewbe70f-term dt { color: var(--viewbe70f-sand); font-weight: 800; font-size: 13px; }
.viewbe70f-term dd { margin: 3px 0 0; color: var(--viewbe70f-muted); font-size: 12.8px; }

.viewbe70f-helpactions { display: grid; gap: 8px; margin: 12px 0 4px; }
.viewbe70f-helpaction { display: block; padding: 11px 12px; border: 1px solid var(--viewbe70f-line-dim); border-radius: var(--viewbe70f-r-2); background: var(--viewbe70f-panel-2); }
.viewbe70f-helpaction b { display: block; color: #fff; font-size: 13px; }
.viewbe70f-helpaction span { display: block; margin-top: 3px; color: var(--viewbe70f-muted); font-size: 12.5px; }
.viewbe70f-helpaction:hover { border-color: var(--viewbe70f-flame); text-decoration: none; }

/* ---------- 20. Motion & density guards ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}

/* 5-column game grid on wider phones */
@media (min-width: 396px) {
  .viewbe70f-grid { grid-template-columns: repeat(5, 1fr); }
  h1 { font-size: 27px; }
}

/* Very narrow phones: keep 4 columns, tighten gaps */
@media (max-width: 335px) {
  .viewbe70f-grid { gap: 6px; }
  .viewbe70f-main { padding-left: 10px; padding-right: 10px; }
  .viewbe70f-extfoot { margin-left: -10px; margin-right: -10px; padding-left: 12px; padding-right: 12px; }
  .viewbe70f-commonfoot { margin-left: -10px; margin-right: -10px; }
  .viewbe70f-tile-name { font-size: 10px; }
}

/* Landscape-short phones: header must not eat the viewport */
@media (max-height: 480px) and (orientation: landscape) {
  .viewbe70f-routes.viewbe70f-routes-open { max-height: 260px; overflow-y: auto; }
}
