/* ============================================================
   1xvet.cyou - shared stylesheet
   Palette: #FFB6C1 (soft pink) / #0F0F23 (deep night) /
            #9370DB (violet) / #EEEEEE (paper white)
   Design tone: humanist headings + clear body text,
   small radii with dense rhythm, image-only game cards,
   scenario-branched content flow, light press motion.
   ============================================================ */

:root {
  --view7870b-night: #0F0F23;
  --view7870b-night-2: #161630;
  --view7870b-night-3: #1D1D3D;
  --view7870b-paper: #EEEEEE;
  --view7870b-paper-dim: #C9C9DE;
  --view7870b-paper-faint: #9C9CB8;
  --view7870b-violet: #9370DB;
  --view7870b-violet-deep: #6E4FB8;
  --view7870b-pink: #FFB6C1;
  --view7870b-pink-deep: #F58FA0;
  --view7870b-line: rgba(238, 238, 238, 0.14);
  --view7870b-line-strong: rgba(147, 112, 219, 0.55);
  --view7870b-ink-on-light: #241432;
  --view7870b-radius-s: 4px;
  --view7870b-radius-m: 6px;
  --view7870b-radius-l: 10px;
  --view7870b-font-head: "Trebuchet MS", "Seravek", "Segoe UI", Verdana, sans-serif;
  --view7870b-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --view7870b-tap: 44px;
  --view7870b-header-h: 54px;
  --view7870b-bottomnav-h: 58px;
  --view7870b-press: 140ms;
}

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: #070714;
  color: var(--view7870b-paper);
  font-family: var(--view7870b-font-body);
  font-size: 14px;
  line-height: 1.62;
  overflow-x: hidden;
}

/* Centered phone canvas, kept on wide screens */
.view7870b-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(147, 112, 219, 0.22), transparent 62%),
    var(--view7870b-night);
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.6);
  overflow-x: hidden;
}

.view7870b-shell::after {
  content: "";
  display: block;
  height: calc(var(--view7870b-bottomnav-h) + env(safe-area-inset-bottom, 0px) + 18px);
}

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

h1, h2, h3, h4 {
  font-family: var(--view7870b-font-head);
  color: var(--view7870b-paper);
  line-height: 1.28;
  margin: 0 0 8px;
  letter-spacing: 0.1px;
}

h1 { font-size: 21px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
h4 { font-size: 13.5px; }

p { margin: 0 0 10px; }

a {
  color: var(--view7870b-pink);
  text-decoration: none;
  transition: color var(--view7870b-press) ease;
}

a:hover { color: var(--view7870b-paper); }

ul, ol { margin: 0 0 10px; padding-left: 18px; }

.view7870b-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--view7870b-pink);
  color: var(--view7870b-ink-on-light);
  padding: 8px 14px;
  border-radius: var(--view7870b-radius-s);
  z-index: 300;
  font-weight: 700;
}

.view7870b-skip:focus {
  left: 10px;
  top: 10px;
}

:focus-visible {
  outline: 2px solid var(--view7870b-pink);
  outline-offset: 2px;
  border-radius: var(--view7870b-radius-s);
}

/* ---------- fixed functional header (edge aligned) ---------- */

.view7870b-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--view7870b-header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(15, 15, 35, 0.94);
  border-bottom: 1px solid var(--view7870b-line-strong);
  backdrop-filter: blur(8px);
  z-index: 120;
}

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

.view7870b-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--view7870b-radius-s);
  border: 1px solid var(--view7870b-line-strong);
  object-fit: cover;
  background: var(--view7870b-night-2);
  flex: 0 0 auto;
}

.view7870b-brand-name {
  font-family: var(--view7870b-font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--view7870b-paper);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

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

.view7870b-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

/* Compact icon+text CTA buttons */
.view7870b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: var(--view7870b-radius-s);
  border: 1px solid transparent;
  font-family: var(--view7870b-font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
  transition:
    transform var(--view7870b-press) ease,
    background-color var(--view7870b-press) ease,
    border-color var(--view7870b-press) ease,
    color var(--view7870b-press) ease;
}

.view7870b-btn svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.view7870b-btn:active {
  transform: scale(0.94);
}

.view7870b-btn-primary {
  background: linear-gradient(135deg, var(--view7870b-pink) 0%, var(--view7870b-pink-deep) 100%);
  color: var(--view7870b-ink-on-light);
}

.view7870b-btn-ghost {
  background: transparent;
  border-color: var(--view7870b-violet);
  color: var(--view7870b-paper);
}

.view7870b-btn-ghost:active {
  background: rgba(147, 112, 219, 0.2);
}

.view7870b-burger {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--view7870b-night-3);
  border: 1px solid var(--view7870b-line);
  border-radius: var(--view7870b-radius-s);
  cursor: pointer;
  transition: transform var(--view7870b-press) ease, border-color var(--view7870b-press) ease;
}

.view7870b-burger:active { transform: scale(0.92); }

.view7870b-burger-box {
  width: 16px;
  height: 12px;
  position: relative;
}

.view7870b-burger-box i {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--view7870b-paper);
  border-radius: 1px;
  transition: transform var(--view7870b-press) ease, opacity var(--view7870b-press) ease, top var(--view7870b-press) ease;
}

.view7870b-burger-box i:nth-child(1) { top: 0; }
.view7870b-burger-box i:nth-child(2) { top: 5px; }
.view7870b-burger-box i:nth-child(3) { top: 10px; }

.view7870b-burger[aria-expanded="true"] .view7870b-burger-box i:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
  background: var(--view7870b-pink);
}

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

.view7870b-burger[aria-expanded="true"] .view7870b-burger-box i:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
  background: var(--view7870b-pink);
}

/* ---------- stacked overlay menu ---------- */

.view7870b-menu {
  position: fixed;
  top: calc(var(--view7870b-header-h) + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - var(--view7870b-header-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  background: rgba(13, 13, 30, 0.985);
  border-bottom: 2px solid var(--view7870b-violet);
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 115;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--view7870b-press) ease, transform var(--view7870b-press) ease, visibility var(--view7870b-press) ease;
}

.view7870b-menu[data-open="1"] {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.view7870b-menu-cta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.view7870b-menu-cta .view7870b-btn { flex: 1 1 50%; min-height: 40px; }

.view7870b-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.view7870b-menu-list li + li {
  border-top: 1px solid var(--view7870b-line);
}

.view7870b-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 6px;
  color: var(--view7870b-paper);
  font-family: var(--view7870b-font-head);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--view7870b-radius-s);
  transition: background-color var(--view7870b-press) ease, color var(--view7870b-press) ease;
}

.view7870b-menu-link:active {
  background: rgba(147, 112, 219, 0.22);
  color: var(--view7870b-pink);
}

.view7870b-menu-link span:first-child { min-width: 0; }

.view7870b-menu-tag {
  font-family: var(--view7870b-font-body);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--view7870b-paper-faint);
  white-space: nowrap;
}

.view7870b-menu-note {
  margin: 10px 2px 0;
  font-size: 11px;
  color: var(--view7870b-paper-faint);
}

/* ---------- main column ---------- */

.view7870b-main {
  padding: calc(var(--view7870b-header-h) + env(safe-area-inset-top, 0px) + 10px) 12px 14px;
}

.view7870b-section {
  margin: 0 0 18px;
}

/* ---------- hero / H1 zone ---------- */

.view7870b-hero {
  padding: 4px 0 2px;
}

.view7870b-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--view7870b-pink);
  border: 1px solid rgba(255, 182, 193, 0.4);
  border-radius: var(--view7870b-radius-s);
  padding: 3px 8px;
  margin-bottom: 8px;
}

.view7870b-hero p {
  color: var(--view7870b-paper-dim);
  font-size: 13px;
}

.view7870b-hero-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.view7870b-hero-row .view7870b-btn {
  min-height: 40px;
  flex: 1 1 150px;
}

/* ---------- promo carousel ---------- */

.view7870b-carousel {
  position: relative;
  aspect-ratio: 640 / 260;
  border-radius: var(--view7870b-radius-l);
  overflow: hidden;
  border: 1px solid var(--view7870b-line-strong);
  background: var(--view7870b-night-2);
}

.view7870b-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 420ms ease, transform 420ms ease, visibility 420ms ease;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: var(--view7870b-night-2);
}

.view7870b-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view7870b-slide-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  position: absolute;
  inset: 0;
}

.view7870b-slide:active img { transform: scale(0.985); }

.view7870b-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.view7870b-dot {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  border: 0;
  padding: 0;
  background: rgba(238, 238, 238, 0.35);
  cursor: pointer;
  transition: background-color var(--view7870b-press) ease, transform var(--view7870b-press) ease;
}

.view7870b-dot:active { transform: scale(0.86); }

.view7870b-dot-active {
  background: var(--view7870b-pink);
}

/* ---------- category jump strip ---------- */

.view7870b-jumps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.view7870b-jumps::-webkit-scrollbar { display: none; }

.view7870b-jump {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: var(--view7870b-radius-s);
  border: 1px solid var(--view7870b-line);
  background: var(--view7870b-night-2);
  color: var(--view7870b-paper-dim);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--view7870b-press) ease, border-color var(--view7870b-press) ease, transform var(--view7870b-press) ease;
}

.view7870b-jump svg { width: 12px; height: 12px; }

.view7870b-jump:active {
  transform: scale(0.94);
  color: var(--view7870b-pink);
  border-color: var(--view7870b-pink);
}

/* ---------- game sections ---------- */

.view7870b-game-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-left: 3px solid var(--view7870b-violet);
  padding-left: 8px;
  margin-bottom: 6px;
}

.view7870b-game-head h2 { margin: 0; }

.view7870b-game-count {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--view7870b-paper-faint);
  white-space: nowrap;
  letter-spacing: 0.4px;
}

.view7870b-game-intro {
  color: var(--view7870b-paper-dim);
  font-size: 12.5px;
  margin-bottom: 10px;
}

/* Dense 4-column grid of image-only cards, short name under art */
.view7870b-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 7px;
  margin-bottom: 6px;
}

.view7870b-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: center;
  font-family: var(--view7870b-font-body);
  transition: transform var(--view7870b-press) ease;
}

.view7870b-tile:active { transform: scale(0.93); }

.view7870b-tile-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--view7870b-radius-m);
  overflow: hidden;
  border: 1px solid var(--view7870b-line);
  background:
    linear-gradient(160deg, var(--view7870b-night-3), var(--view7870b-night-2));
  transition: border-color var(--view7870b-press) ease, box-shadow var(--view7870b-press) ease;
}

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

.view7870b-tile:hover .view7870b-tile-art,
.view7870b-tile:focus-visible .view7870b-tile-art {
  border-color: var(--view7870b-pink);
  box-shadow: 0 0 0 2px rgba(255, 182, 193, 0.18);
}

.view7870b-tile-name {
  display: block;
  font-size: 11px;
  line-height: 1.32;
  font-weight: 600;
  color: var(--view7870b-paper-dim);
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: color var(--view7870b-press) ease;
}

.view7870b-tile:hover .view7870b-tile-name { color: var(--view7870b-pink); }

/* Section footnote with in-body route links */
.view7870b-note {
  margin-top: 8px;
  padding: 9px 10px;
  background: var(--view7870b-night-2);
  border: 1px solid var(--view7870b-line);
  border-left: 3px solid var(--view7870b-pink);
  border-radius: var(--view7870b-radius-s);
  font-size: 12.5px;
  color: var(--view7870b-paper-dim);
}

.view7870b-note strong { color: var(--view7870b-paper); }

/* ---------- article / content modules ---------- */

.view7870b-panel {
  background: var(--view7870b-night-2);
  border: 1px solid var(--view7870b-line);
  border-radius: var(--view7870b-radius-m);
  padding: 13px 13px 8px;
}

.view7870b-answer {
  border: 1px solid var(--view7870b-line-strong);
  background: linear-gradient(150deg, rgba(147, 112, 219, 0.16), rgba(255, 182, 193, 0.07) 60%, transparent);
  border-radius: var(--view7870b-radius-m);
  padding: 13px;
}

.view7870b-answer-lead {
  font-family: var(--view7870b-font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--view7870b-pink);
  margin-bottom: 6px;
}

.view7870b-panel p,
.view7870b-answer p {
  font-size: 13px;
  color: var(--view7870b-paper-dim);
}

.view7870b-panel p strong,
.view7870b-answer p strong { color: var(--view7870b-paper); }

/* Feature rows: scannable, comparable blocks */
.view7870b-feat {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--view7870b-line);
}

.view7870b-feat:first-of-type { border-top: 0; padding-top: 2px; }

.view7870b-feat-badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--view7870b-radius-m);
  background: rgba(147, 112, 219, 0.18);
  border: 1px solid var(--view7870b-line-strong);
  color: var(--view7870b-pink);
}

.view7870b-feat-badge svg { width: 17px; height: 17px; }

.view7870b-feat h3 { margin-bottom: 3px; }

.view7870b-feat p {
  margin: 0;
  font-size: 12.5px;
  color: var(--view7870b-paper-dim);
}

/* Metric strip: compact comparable numbers */
.view7870b-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 4px;
}

.view7870b-metric {
  background: var(--view7870b-night-3);
  border: 1px solid var(--view7870b-line);
  border-radius: var(--view7870b-radius-s);
  padding: 8px 6px;
  text-align: center;
}

.view7870b-metric b {
  display: block;
  font-family: var(--view7870b-font-head);
  font-size: 15px;
  color: var(--view7870b-pink);
}

.view7870b-metric span {
  display: block;
  font-size: 10.5px;
  color: var(--view7870b-paper-faint);
  letter-spacing: 0.3px;
}

/* FAQ accordion */
.view7870b-faq-item {
  border: 1px solid var(--view7870b-line);
  border-radius: var(--view7870b-radius-s);
  margin-bottom: 7px;
  background: var(--view7870b-night-2);
  overflow: hidden;
}

.view7870b-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  min-height: 46px;
  background: transparent;
  border: 0;
  color: var(--view7870b-paper);
  font-family: var(--view7870b-font-head);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color var(--view7870b-press) ease, background-color var(--view7870b-press) ease;
}

.view7870b-faq-q:active {
  color: var(--view7870b-pink);
  background: rgba(147, 112, 219, 0.12);
}

.view7870b-faq-q i {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--view7870b-line-strong);
  color: var(--view7870b-pink);
  font-style: normal;
  font-size: 13px;
  line-height: 1;
  transition: transform var(--view7870b-press) ease;
}

.view7870b-faq-item[data-open="1"] .view7870b-faq-q i { transform: rotate(45deg); }

.view7870b-faq-a {
  display: none;
  padding: 0 12px 11px;
  font-size: 12.8px;
  color: var(--view7870b-paper-dim);
}

.view7870b-faq-item[data-open="1"] .view7870b-faq-a { display: block; }

/* ---------- homepage extended footer ---------- */

.view7870b-ext {
  margin-top: 20px;
  border-top: 2px solid var(--view7870b-violet);
  padding: 14px 12px 6px;
  background:
    linear-gradient(180deg, rgba(147, 112, 219, 0.1), transparent 70%),
    var(--view7870b-night-2);
}

.view7870b-ext-brand p {
  font-size: 12.5px;
  color: var(--view7870b-paper-dim);
}

/* 5 horizontal promo shortcuts */
.view7870b-ext-promos {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0 4px;
}

.view7870b-ext-promos::-webkit-scrollbar { display: none; }

.view7870b-shortcut {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--view7870b-radius-s);
  background: var(--view7870b-night-3);
  border: 1px solid var(--view7870b-line-strong);
  color: var(--view7870b-paper);
  font-family: var(--view7870b-font-head);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--view7870b-press) ease, border-color var(--view7870b-press) ease, background-color var(--view7870b-press) ease;
}

.view7870b-shortcut svg {
  width: 14px;
  height: 14px;
  color: var(--view7870b-pink);
}

.view7870b-shortcut:active {
  transform: scale(0.93);
  border-color: var(--view7870b-pink);
  background: rgba(147, 112, 219, 0.25);
}

/* Page directory: two-lane link grid */
.view7870b-dir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.view7870b-dir a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 44px;
  padding: 8px 9px;
  border-radius: var(--view7870b-radius-s);
  background: var(--view7870b-night-3);
  border: 1px solid var(--view7870b-line);
  transition: border-color var(--view7870b-press) ease, transform var(--view7870b-press) ease;
}

.view7870b-dir a:active {
  transform: scale(0.96);
  border-color: var(--view7870b-pink);
}

.view7870b-dir b {
  font-family: var(--view7870b-font-head);
  font-size: 12.5px;
  color: var(--view7870b-paper);
}

.view7870b-dir span {
  font-size: 10.5px;
  color: var(--view7870b-paper-faint);
  line-height: 1.35;
}

.view7870b-ext-disclaimer {
  margin: 12px 0 4px;
  padding: 9px 10px;
  border: 1px dashed var(--view7870b-line);
  border-radius: var(--view7870b-radius-s);
  font-size: 11px;
  color: var(--view7870b-paper-faint);
  line-height: 1.55;
}

/* ---------- common footer ---------- */

.view7870b-footer {
  border-top: 1px solid var(--view7870b-line);
  padding: 12px 12px 10px;
  text-align: center;
}

.view7870b-footer small {
  display: block;
  font-size: 11px;
  color: var(--view7870b-paper-faint);
  letter-spacing: 0.3px;
}

/* ---------- brand-accent bottom navigation ---------- */

.view7870b-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--view7870b-bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(22, 22, 48, 0.97), rgba(13, 13, 30, 0.99));
  border-top: 2px solid var(--view7870b-violet);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
  z-index: 110;
}

.view7870b-bottomnav a,
.view7870b-bottomnav button {
  flex: 1 1 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: var(--view7870b-tap);
  padding: 5px 2px;
  background: transparent;
  border: 0;
  color: var(--view7870b-paper-faint);
  font-family: var(--view7870b-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  position: relative;
  transition: color var(--view7870b-press) ease, transform var(--view7870b-press) ease;
}

.view7870b-bottomnav svg {
  width: 20px;
  height: 20px;
  transition: transform var(--view7870b-press) ease;
}

.view7870b-bottomnav a:active,
.view7870b-bottomnav button:active {
  transform: scale(0.9);
  color: var(--view7870b-pink);
}

/* Active role: slight lift + pink accent bar */
.view7870b-bottomnav .view7870b-on {
  color: var(--view7870b-pink);
}

.view7870b-bottomnav .view7870b-on svg {
  transform: translateY(-2px);
}

.view7870b-bottomnav .view7870b-on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--view7870b-pink);
}

.view7870b-bottomnav .view7870b-promo-flag {
  position: absolute;
  top: 6px;
  right: calc(50% - 20px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--view7870b-violet);
  border: 1px solid var(--view7870b-night);
}

/* ---------- helpers ---------- */

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

/* ---------- responsive tuning ---------- */

/* 375px and up: slightly airier rows, still 4 columns */
@media (min-width: 375px) {
  .view7870b-grid { gap: 10px 8px; }
  .view7870b-tile-name { font-size: 11.5px; }
  .view7870b-main { padding-left: 14px; padding-right: 14px; }
}

/* 430px canvas: 5 game columns per row */
@media (min-width: 430px) {
  .view7870b-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .view7870b-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  h1 { font-size: 22px; }
}

/* Compact-height phones: trim vertical chrome */
@media (max-height: 620px) {
  .view7870b-menu { padding-bottom: 10px; }
  .view7870b-hero p { margin-bottom: 6px; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
