/* ==========================================================================
   Highest Stakes — shared frame stylesheet
   Palette: #0D1117 base / #C9C9FF ink
   Feel: near-square tool corners, light floating image cards, short-list rhythm
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --viewf91b9-bg: #0d1117;
  --viewf91b9-bg-deep: #090c11;
  --viewf91b9-panel: #11161f;
  --viewf91b9-panel-2: #151b27;
  --viewf91b9-panel-3: #1a2130;
  --viewf91b9-ink: #c9c9ff;
  --viewf91b9-ink-strong: #e6e6ff;
  --viewf91b9-dim: rgba(201, 201, 255, 0.66);
  --viewf91b9-faint: rgba(201, 201, 255, 0.42);
  --viewf91b9-line: rgba(201, 201, 255, 0.14);
  --viewf91b9-line-strong: rgba(201, 201, 255, 0.3);
  --viewf91b9-accent: #c9c9ff;
  --viewf91b9-accent-ink: #0d1117;
  --viewf91b9-wash: rgba(201, 201, 255, 0.07);
  --viewf91b9-wash-2: rgba(201, 201, 255, 0.12);
  --viewf91b9-shadow-card: 0 8px 18px rgba(0, 0, 0, 0.42);
  --viewf91b9-shadow-pop: 0 12px 30px rgba(0, 0, 0, 0.55);
  --viewf91b9-radius-s: 2px;
  --viewf91b9-radius-m: 3px;
  --viewf91b9-radius-l: 4px;
  --viewf91b9-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --viewf91b9-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --viewf91b9-header-h: 116px;
  --viewf91b9-nav-h: 64px;
  --viewf91b9-ease: cubic-bezier(0.32, 0, 0.24, 1);
}

/* ---------- reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--viewf91b9-bg-deep);
  color: var(--viewf91b9-ink);
  font-family: var(--viewf91b9-font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--viewf91b9-ink-strong);
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin: 0 0 0.5em;
}

h1 { font-size: 25px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

p { margin: 0 0 0.9em; }

a {
  color: var(--viewf91b9-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--viewf91b9-line-strong);
  transition: color 0.16s var(--viewf91b9-ease), border-color 0.16s var(--viewf91b9-ease);
}

a:hover { color: var(--viewf91b9-ink-strong); border-bottom-color: var(--viewf91b9-ink-strong); }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }

li { margin-bottom: 0.4em; }

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

:focus-visible {
  outline: 2px solid var(--viewf91b9-accent);
  outline-offset: 2px;
}

::selection {
  background: var(--viewf91b9-accent);
  color: var(--viewf91b9-accent-ink);
}

/* ---------- phone canvas ---------- */
.viewf91b9-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--viewf91b9-bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(201, 201, 255, 0.06), 0 0 60px rgba(0, 0, 0, 0.6);
}

.viewf91b9-main {
  padding: calc(var(--viewf91b9-header-h) + 10px) 14px calc(var(--viewf91b9-nav-h) + 58px + env(safe-area-inset-bottom, 0px));
}

/* subtle top wash behind hero */
.viewf91b9-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(201, 201, 255, 0.09), transparent 68%);
  pointer-events: none;
}

/* ---------- masthead: two-layer fixed header ---------- */
.viewf91b9-masthead {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--viewf91b9-line);
}

/* layer 1: brand strip */
.viewf91b9-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px 6px;
}

.viewf91b9-logo {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--viewf91b9-line-strong);
  border-radius: var(--viewf91b9-radius-m);
  background: var(--viewf91b9-panel-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.viewf91b9-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.viewf91b9-wordmark {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.05;
}

.viewf91b9-wordmark b {
  display: block;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--viewf91b9-ink-strong);
}

.viewf91b9-wordmark span {
  display: block;
  font-family: var(--viewf91b9-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--viewf91b9-faint);
  margin-top: 3px;
}

/* menu trigger with morphing bars */
.viewf91b9-menubtn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--viewf91b9-line);
  border-radius: var(--viewf91b9-radius-m);
  transition: border-color 0.18s var(--viewf91b9-ease), background 0.18s var(--viewf91b9-ease);
}

.viewf91b9-menubtn:active {
  background: var(--viewf91b9-wash);
}

.viewf91b9-menubtn-box {
  position: relative;
  width: 18px;
  height: 12px;
}

.viewf91b9-menubtn-box i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--viewf91b9-ink);
  border-radius: 1px;
  transition: transform 0.22s var(--viewf91b9-ease), width 0.22s var(--viewf91b9-ease), top 0.22s var(--viewf91b9-ease), opacity 0.18s var(--viewf91b9-ease);
}

.viewf91b9-menubtn-box i:nth-child(1) { top: 0; }
.viewf91b9-menubtn-box i:nth-child(2) { top: 5px; width: 70%; }
.viewf91b9-menubtn-box i:nth-child(3) { top: 10px; }

.viewf91b9-menubtn[data-open="1"] .viewf91b9-menubtn-box i:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.viewf91b9-menubtn[data-open="1"] .viewf91b9-menubtn-box i:nth-child(2) {
  opacity: 0;
  width: 100%;
}

.viewf91b9-menubtn[data-open="1"] .viewf91b9-menubtn-box i:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* layer 2: action strip */
.viewf91b9-actrow {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  padding: 0 12px 10px;
}

/* ---------- buttons ---------- */
.viewf91b9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--viewf91b9-radius-s);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.14s var(--viewf91b9-ease), background 0.16s var(--viewf91b9-ease), color 0.16s var(--viewf91b9-ease), border-color 0.16s var(--viewf91b9-ease), box-shadow 0.16s var(--viewf91b9-ease);
  -webkit-tap-highlight-color: transparent;
}

.viewf91b9-btn:active {
  transform: translateY(1px) scale(0.985);
}

/* solid primary */
.viewf91b9-btn--solid {
  background: var(--viewf91b9-accent);
  color: var(--viewf91b9-accent-ink);
  box-shadow: 0 4px 16px rgba(201, 201, 255, 0.22);
}

.viewf91b9-btn--solid:hover {
  background: var(--viewf91b9-ink-strong);
  color: var(--viewf91b9-accent-ink);
  border-bottom-color: transparent;
}

/* outlined secondary */
.viewf91b9-btn--line {
  background: transparent;
  color: var(--viewf91b9-ink);
  border-color: var(--viewf91b9-line-strong);
}

.viewf91b9-btn--line:hover {
  border-color: var(--viewf91b9-ink);
  color: var(--viewf91b9-ink-strong);
  background: var(--viewf91b9-wash);
}

/* block variant */
.viewf91b9-btn--block {
  width: 100%;
}

/* small inline text action */
.viewf91b9-inline-cta {
  font-weight: 600;
  color: var(--viewf91b9-ink-strong);
  border-bottom: 1px dashed var(--viewf91b9-line-strong);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0 0 1px;
  font-size: inherit;
  font-family: inherit;
}

.viewf91b9-inline-cta:active {
  color: var(--viewf91b9-accent);
}

/* ---------- full-height menu layer ---------- */
.viewf91b9-menuveil {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--viewf91b9-ease);
  z-index: 70;
}

.viewf91b9-menuveil[data-open="1"] {
  opacity: 1;
  pointer-events: auto;
}

.viewf91b9-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateX(105%);
  width: 100%;
  max-width: 430px;
  background: var(--viewf91b9-bg);
  border-left: 1px solid var(--viewf91b9-line);
  z-index: 80;
  display: flex;
  flex-direction: column;
  transition: transform 0.26s var(--viewf91b9-ease);
  visibility: hidden;
}

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

.viewf91b9-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--viewf91b9-line);
}

.viewf91b9-menu-top b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--viewf91b9-dim);
}

.viewf91b9-menu-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--viewf91b9-line);
  border-radius: var(--viewf91b9-radius-m);
  background: transparent;
  color: var(--viewf91b9-ink);
  font-size: 18px;
  line-height: 1;
  transition: background 0.16s var(--viewf91b9-ease);
}

.viewf91b9-menu-close:active {
  background: var(--viewf91b9-wash);
}

.viewf91b9-menu-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.viewf91b9-menu-label {
  font-family: var(--viewf91b9-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--viewf91b9-faint);
  margin: 16px 2px 8px;
}

.viewf91b9-menu-label:first-child { margin-top: 4px; }

.viewf91b9-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--viewf91b9-line);
}

.viewf91b9-menu-list li {
  margin: 0;
  border-bottom: 1px solid var(--viewf91b9-line);
}

.viewf91b9-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 10px 6px;
  border-bottom: none;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--viewf91b9-ink);
  transition: color 0.16s var(--viewf91b9-ease), padding-left 0.16s var(--viewf91b9-ease);
}

.viewf91b9-menu-list a:active {
  color: var(--viewf91b9-ink-strong);
  padding-left: 12px;
}

.viewf91b9-menu-list a::after {
  content: "\203A";
  font-family: var(--viewf91b9-mono);
  color: var(--viewf91b9-faint);
}

.viewf91b9-menu-list a[aria-current="page"] {
  color: var(--viewf91b9-ink-strong);
  font-weight: 700;
}

.viewf91b9-menu-foot {
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--viewf91b9-line);
  background: var(--viewf91b9-panel);
}

.viewf91b9-menu-foot p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--viewf91b9-dim);
}

/* scroll lock while the menu layer is open */
.viewf91b9-scroll-lock {
  overflow: hidden;
}

/* ---------- hero ---------- */
.viewf91b9-hero {
  position: relative;
  margin: 4px 0 18px;
}

.viewf91b9-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--viewf91b9-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--viewf91b9-faint);
  margin-bottom: 10px;
}

.viewf91b9-hero-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--viewf91b9-line-strong);
}

.viewf91b9-hero h1 {
  margin-bottom: 10px;
}

.viewf91b9-hero-lead {
  color: var(--viewf91b9-dim);
  font-size: 14px;
  margin-bottom: 14px;
}

/* ---------- carousel ---------- */
.viewf91b9-carousel {
  position: relative;
  border: 1px solid var(--viewf91b9-line);
  border-radius: var(--viewf91b9-radius-m);
  background: var(--viewf91b9-panel);
  overflow: hidden;
}

.viewf91b9-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.viewf91b9-track::-webkit-scrollbar {
  display: none;
}

.viewf91b9-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  border: none;
  padding: 0;
  background: var(--viewf91b9-panel-2);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.viewf91b9-slide img {
  width: 100%;
  aspect-ratio: 48 / 21;
  object-fit: cover;
  transition: transform 0.2s var(--viewf91b9-ease);
}

.viewf91b9-slide:active img {
  transform: scale(0.99);
}

.viewf91b9-slide-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  font-family: var(--viewf91b9-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--viewf91b9-ink-strong);
  background: rgba(13, 17, 23, 0.82);
  border: 1px solid var(--viewf91b9-line);
  border-radius: var(--viewf91b9-radius-s);
  padding: 5px 8px;
}

.viewf91b9-caro-dots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.viewf91b9-dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: none;
  background: rgba(201, 201, 255, 0.3);
  border-radius: 2px;
  transition: background 0.18s var(--viewf91b9-ease), width 0.18s var(--viewf91b9-ease);
}

.viewf91b9-dot[data-on="1"] {
  background: var(--viewf91b9-accent);
  width: 30px;
}

/* ---------- category jump strip ---------- */
.viewf91b9-jumps {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin: 0 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.viewf91b9-jumps a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--viewf91b9-line);
  border-radius: var(--viewf91b9-radius-s);
  background: var(--viewf91b9-panel);
  font-family: var(--viewf91b9-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--viewf91b9-dim);
  border-bottom-width: 1px;
  transition: color 0.16s var(--viewf91b9-ease), border-color 0.16s var(--viewf91b9-ease);
}

.viewf91b9-jumps a:hover {
  color: var(--viewf91b9-ink-strong);
  border-color: var(--viewf91b9-line-strong);
}

.viewf91b9-jumps a em {
  font-style: normal;
  color: var(--viewf91b9-faint);
}

/* ---------- game boards ---------- */
.viewf91b9-board {
  position: relative;
  margin: 26px 0 34px;
  padding-top: 14px;
  border-top: 1px solid var(--viewf91b9-line);
  scroll-margin-top: calc(var(--viewf91b9-header-h) + 8px);
}

.viewf91b9-board-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.viewf91b9-board-index {
  flex: 0 0 auto;
  font-family: var(--viewf91b9-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--viewf91b9-faint);
  border: 1px solid var(--viewf91b9-line);
  border-radius: var(--viewf91b9-radius-s);
  padding: 6px 7px;
  margin-top: 3px;
  background: var(--viewf91b9-panel);
}

.viewf91b9-board-title {
  font-size: 19px;
  margin-bottom: 6px;
}

.viewf91b9-board-note {
  font-size: 13.5px;
  color: var(--viewf91b9-dim);
  margin: 0 0 14px;
}

/* game grid: 4 columns at 320px, 5 columns on wider canvases */
.viewf91b9-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
}

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

/* light floating image card */
.viewf91b9-game {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 5px 5px 7px;
  background: var(--viewf91b9-panel);
  border: 1px solid var(--viewf91b9-line);
  border-radius: var(--viewf91b9-radius-m);
  box-shadow: var(--viewf91b9-shadow-card);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s var(--viewf91b9-ease), border-color 0.16s var(--viewf91b9-ease), box-shadow 0.16s var(--viewf91b9-ease);
}

.viewf91b9-game:active {
  transform: translateY(2px) scale(0.97);
  border-color: var(--viewf91b9-line-strong);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.viewf91b9-game-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--viewf91b9-radius-s);
  overflow: hidden;
  background: var(--viewf91b9-panel-3);
}

.viewf91b9-game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 201, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.viewf91b9-game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewf91b9-game-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--viewf91b9-ink);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.viewf91b9-board-links {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--viewf91b9-line);
  font-size: 12.5px;
  color: var(--viewf91b9-faint);
}

.viewf91b9-board-links a {
  font-weight: 500;
  color: var(--viewf91b9-dim);
}

.viewf91b9-board-links a:hover {
  color: var(--viewf91b9-ink-strong);
}

/* ---------- prose sections ---------- */
.viewf91b9-prose {
  margin: 30px 0;
  scroll-margin-top: calc(var(--viewf91b9-header-h) + 8px);
}

.viewf91b9-prose h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--viewf91b9-line);
  margin-bottom: 12px;
}

.viewf91b9-prose h3 {
  margin-top: 1.2em;
  color: var(--viewf91b9-ink-strong);
}

.viewf91b9-prose p {
  color: var(--viewf91b9-dim);
  font-size: 14px;
}

.viewf91b9-prose strong {
  color: var(--viewf91b9-ink-strong);
  font-weight: 600;
}

/* short-list rhythm blocks */
.viewf91b9-ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.viewf91b9-ticks li {
  position: relative;
  padding: 0 0 0 22px;
  margin-bottom: 9px;
  color: var(--viewf91b9-dim);
  font-size: 13.5px;
}

.viewf91b9-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--viewf91b9-line-strong);
  background: var(--viewf91b9-wash);
}

/* numbered steps */
.viewf91b9-steps {
  list-style: none;
  counter-reset: viewf91b9step;
  padding: 0;
  margin: 0 0 1em;
}

.viewf91b9-steps li {
  counter-increment: viewf91b9step;
  position: relative;
  padding: 0 0 14px 38px;
  margin: 0;
  color: var(--viewf91b9-dim);
  font-size: 13.5px;
}

.viewf91b9-steps li::before {
  content: counter(viewf91b9step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--viewf91b9-mono);
  font-size: 11px;
  color: var(--viewf91b9-ink);
  border: 1px solid var(--viewf91b9-line);
  background: var(--viewf91b9-panel);
  border-radius: var(--viewf91b9-radius-s);
  padding: 3px 5px;
}

.viewf91b9-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 1px;
  background: var(--viewf91b9-line);
}

.viewf91b9-steps b {
  display: block;
  color: var(--viewf91b9-ink-strong);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 2px;
}

/* ---------- FAQ accordion ---------- */
.viewf91b9-faq {
  border: 1px solid var(--viewf91b9-line);
  border-radius: var(--viewf91b9-radius-m);
  background: var(--viewf91b9-panel);
  overflow: hidden;
}

.viewf91b9-faq details {
  border-bottom: 1px solid var(--viewf91b9-line);
}

.viewf91b9-faq details:last-child {
  border-bottom: none;
}

.viewf91b9-faq summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 13px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--viewf91b9-ink-strong);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.viewf91b9-faq summary::-webkit-details-marker {
  display: none;
}

.viewf91b9-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--viewf91b9-mono);
  font-size: 15px;
  color: var(--viewf91b9-faint);
  transition: transform 0.2s var(--viewf91b9-ease), color 0.2s var(--viewf91b9-ease);
}

.viewf91b9-faq details[open] summary::after {
  content: "\2212";
  color: var(--viewf91b9-ink);
}

.viewf91b9-faq details[open] summary {
  background: var(--viewf91b9-wash);
}

.viewf91b9-faq-answer {
  padding: 2px 12px 14px;
  font-size: 13px;
  color: var(--viewf91b9-dim);
}

.viewf91b9-faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- callout ---------- */
.viewf91b9-note {
  border-left: 2px solid var(--viewf91b9-line-strong);
  background: var(--viewf91b9-wash);
  border-radius: 0 var(--viewf91b9-radius-m) var(--viewf91b9-radius-m) 0;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--viewf91b9-dim);
  margin: 0 0 1em;
}

/* ---------- homepage extended footer ---------- */
.viewf91b9-extfoot {
  margin: 36px 0 0;
  border: 1px solid var(--viewf91b9-line);
  border-radius: var(--viewf91b9-radius-m);
  background: var(--viewf91b9-panel);
  padding: 16px 14px 6px;
}

.viewf91b9-extfoot-block {
  padding: 0 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--viewf91b9-line);
}

.viewf91b9-extfoot-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.viewf91b9-extfoot h2 {
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.viewf91b9-extfoot p {
  font-size: 12.5px;
  color: var(--viewf91b9-dim);
  margin-bottom: 8px;
}

/* horizontal shortcut directory */
.viewf91b9-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.viewf91b9-directory a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--viewf91b9-line);
  border-radius: var(--viewf91b9-radius-s);
  background: var(--viewf91b9-bg);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--viewf91b9-dim);
  border-bottom-width: 1px;
  transition: color 0.16s var(--viewf91b9-ease), border-color 0.16s var(--viewf91b9-ease);
}

.viewf91b9-directory a:hover {
  color: var(--viewf91b9-ink-strong);
  border-color: var(--viewf91b9-line-strong);
}

.viewf91b9-directory a em {
  font-style: normal;
  font-family: var(--viewf91b9-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--viewf91b9-faint);
  margin-right: 6px;
  text-transform: uppercase;
}

/* five promo shortcuts */
.viewf91b9-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.viewf91b9-shortcuts .viewf91b9-shortcut {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid var(--viewf91b9-line-strong);
  border-radius: var(--viewf91b9-radius-s);
  background: var(--viewf91b9-panel-2);
  color: var(--viewf91b9-ink);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  border-bottom-width: 1px;
  transition: background 0.16s var(--viewf91b9-ease), transform 0.14s var(--viewf91b9-ease);
}

.viewf91b9-shortcuts .viewf91b9-shortcut:active {
  transform: scale(0.97);
  background: var(--viewf91b9-wash-2);
}

.viewf91b9-shortcuts .viewf91b9-shortcut span {
  font-family: var(--viewf91b9-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--viewf91b9-faint);
}

.viewf91b9-shortcuts .viewf91b9-shortcut--wide {
  grid-column: 1 / -1;
}

.viewf91b9-extfoot-disclaimer {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--viewf91b9-faint);
}

/* ---------- common footer ---------- */
.viewf91b9-footer {
  border-top: 1px solid var(--viewf91b9-line);
  padding: 16px 14px 18px;
  text-align: center;
  background: var(--viewf91b9-bg-deep);
}

.viewf91b9-footer p {
  margin: 0;
  font-family: var(--viewf91b9-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--viewf91b9-faint);
  text-transform: uppercase;
}

/* ---------- layered bottom nav ---------- */
.viewf91b9-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 65;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* top stratum of the layered bar: status level */
.viewf91b9-bottomnav-level {
  height: 3px;
  display: flex;
  background: var(--viewf91b9-panel);
}

.viewf91b9-bottomnav-level i {
  flex: 1;
  background: transparent;
  transition: background 0.2s var(--viewf91b9-ease);
}

.viewf91b9-bottomnav-level i[data-on="1"] {
  background: var(--viewf91b9-accent);
}

/* main stratum: icon row */
.viewf91b9-bottomnav-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--viewf91b9-nav-h);
  border-top: 1px solid var(--viewf91b9-line);
}

.viewf91b9-navitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: var(--viewf91b9-faint);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s var(--viewf91b9-ease);
}

.viewf91b9-navitem svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.18s var(--viewf91b9-ease), stroke 0.18s var(--viewf91b9-ease), transform 0.18s var(--viewf91b9-ease);
}

.viewf91b9-navitem:active svg {
  transform: translateY(-1px) scale(0.92);
}

/* active role: color switch + icon fill morph */
.viewf91b9-navitem[data-on="1"] {
  color: var(--viewf91b9-ink-strong);
}

.viewf91b9-navitem[data-on="1"] svg {
  fill: var(--viewf91b9-accent);
  stroke: var(--viewf91b9-accent);
}

.viewf91b9-navitem[aria-current="page"] {
  color: var(--viewf91b9-ink-strong);
}

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

.viewf91b9-divider {
  border: none;
  border-top: 1px solid var(--viewf91b9-line);
  margin: 30px 0;
}

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