/* ============================================================
   Goperya (goperya.cyou) - dynamic tokens stylesheet
   Mobile-first HTML5 gaming canvas.
   Prefix: viewf30cd-  |  Accent palette: deep magenta + navy
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --viewf30cd-bg: #0F0F23;
  --viewf30cd-bg-2: #14142b;
  --viewf30cd-bg-3: #1b1b3a;
  --viewf30cd-bg-4: #222247;
  --viewf30cd-bg-5: #2a2a52;
  --viewf30cd-brand: #880E4F;
  --viewf30cd-brand-2: #C2185B;
  --viewf30cd-brand-3: #E91E63;
  --viewf30cd-text: #CED4DA;
  --viewf30cd-text-strong: #F4F6F8;
  --viewf30cd-text-dim: #8b8fa3;
  --viewf30cd-gold: #F5C518;
  --viewf30cd-green: #4caf7a;
  --viewf30cd-red: #e0564f;
  --viewf30cd-border: rgba(206, 212, 218, 0.12);
  --viewf30cd-border-strong: rgba(206, 212, 218, 0.28);
  --viewf30cd-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
  --viewf30cd-shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.32);
  --viewf30cd-radius: 3px;
  --viewf30cd-radius-lg: 6px;
  --viewf30cd-mono: "SFMono-Regular", "Roboto Mono", ui-monospace, Consolas, Menlo, monospace;
  --viewf30cd-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --viewf30cd-topbar-h: 56px;
  --viewf30cd-bottomnav-h: 66px;
  --viewf30cd-canvas: 480px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--viewf30cd-sans);
  background: #05050f;
  color: var(--viewf30cd-text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}
a { color: var(--viewf30cd-brand-3); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--viewf30cd-gold); }
h1, h2, h3, h4 { margin: 0; color: var(--viewf30cd-text-strong); line-height: 1.3; }
p { margin: 0 0 .85rem; }
ul, ol { margin: 0 0 .85rem; padding-left: 1.15rem; }
li { margin-bottom: .35rem; }
:focus-visible {
  outline: 2px solid var(--viewf30cd-gold);
  outline-offset: 2px;
}

/* ---------- Page canvas ---------- */
.viewf30cd-page {
  position: relative;
  max-width: var(--viewf30cd-canvas);
  margin: 0 auto;
  background: var(--viewf30cd-bg);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* ---------- Top bar ---------- */
.viewf30cd-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--viewf30cd-canvas);
  height: var(--viewf30cd-topbar-h);
  background: linear-gradient(180deg, #120a1f 0%, #0F0F23 100%);
  border-bottom: 1px solid var(--viewf30cd-border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 60;
}
.viewf30cd-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.viewf30cd-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--viewf30cd-radius);
  object-fit: cover;
  border: 1px solid var(--viewf30cd-brand-2);
  flex-shrink: 0;
}
.viewf30cd-brand-name {
  font-family: var(--viewf30cd-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .5px;
  color: var(--viewf30cd-text-strong);
  white-space: nowrap;
}
.viewf30cd-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.viewf30cd-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--viewf30cd-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 8px 12px;
  border-radius: var(--viewf30cd-radius);
  min-height: 36px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
  line-height: 1;
}
.viewf30cd-btn--register {
  background: var(--viewf30cd-brand);
  color: #fff;
  border: 1px solid var(--viewf30cd-brand-2);
}
.viewf30cd-btn--register:hover {
  background: var(--viewf30cd-brand-2);
  color: #fff;
}
.viewf30cd-btn--login {
  background: transparent;
  color: var(--viewf30cd-text);
  border: 1px solid var(--viewf30cd-border-strong);
}
.viewf30cd-btn--login:hover {
  color: var(--viewf30cd-gold);
  border-color: var(--viewf30cd-gold);
}
.viewf30cd-menu-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--viewf30cd-border-strong);
  border-radius: var(--viewf30cd-radius);
  color: var(--viewf30cd-text);
  transition: color .18s ease, border-color .18s ease;
}
.viewf30cd-menu-toggle:hover { color: var(--viewf30cd-gold); border-color: var(--viewf30cd-gold); }
.viewf30cd-menu-toggle-bars,
.viewf30cd-menu-toggle-bars::before,
.viewf30cd-menu-toggle-bars::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}
.viewf30cd-menu-toggle-bars::before { position: absolute; top: -5px; left: 0; }
.viewf30cd-menu-toggle-bars::after  { position: absolute; top: 5px; left: 0; }

/* ---------- Slide-up menu panel ---------- */
.viewf30cd-menu-scrim {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 15, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 70;
}
.viewf30cd-menu-scrim.is-open { opacity: 1; visibility: visible; }
.viewf30cd-menu-panel {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 100%);
  bottom: 0;
  width: 100%;
  max-width: var(--viewf30cd-canvas);
  background: var(--viewf30cd-bg-2);
  border-top: 2px solid var(--viewf30cd-brand-2);
  border-radius: 14px 14px 0 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  z-index: 80;
  transition: transform .26s ease;
  max-height: 78vh;
  overflow-y: auto;
}
.viewf30cd-menu-panel.is-open { transform: translate(-50%, 0); }
.viewf30cd-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.viewf30cd-menu-title {
  font-family: var(--viewf30cd-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--viewf30cd-text-dim);
}
.viewf30cd-menu-close {
  width: 32px; height: 32px;
  border-radius: var(--viewf30cd-radius);
  border: 1px solid var(--viewf30cd-border-strong);
  color: var(--viewf30cd-text);
  font-size: 18px;
  line-height: 1;
}
.viewf30cd-menu-close:hover { color: var(--viewf30cd-gold); border-color: var(--viewf30cd-gold); }
.viewf30cd-menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.viewf30cd-menu-list li { margin: 0; }
.viewf30cd-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--viewf30cd-border);
  border-radius: var(--viewf30cd-radius);
  color: var(--viewf30cd-text);
  font-size: 14.5px;
  background: var(--viewf30cd-bg-3);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.viewf30cd-menu-link:hover {
  color: var(--viewf30cd-text-strong);
  background: var(--viewf30cd-bg-4);
  border-color: var(--viewf30cd-brand-2);
}
.viewf30cd-menu-link-tag {
  font-family: var(--viewf30cd-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--viewf30cd-text-dim);
  margin-left: auto;
}
.viewf30cd-menu-foot {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.viewf30cd-menu-foot .viewf30cd-btn { flex: 1; justify-content: center; }

/* ---------- Main wrapper ---------- */
.viewf30cd-main {
  padding-top: calc(var(--viewf30cd-topbar-h) + 8px);
  padding-bottom: calc(var(--viewf30cd-bottomnav-h) + 24px);
}
.viewf30cd-section {
  padding: 22px 14px 8px;
}
.viewf30cd-section + .viewf30cd-section { padding-top: 8px; }
.viewf30cd-eyebrow {
  font-family: var(--viewf30cd-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--viewf30cd-brand-3);
  margin-bottom: 6px;
}
.viewf30cd-h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.viewf30cd-h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--viewf30cd-border);
}
.viewf30cd-h3 {
  font-family: var(--viewf30cd-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--viewf30cd-gold);
  margin: 16px 0 8px;
}
.viewf30cd-lead { font-size: 15.5px; color: var(--viewf30cd-text); }
.viewf30cd-muted { color: var(--viewf30cd-text-dim); }
.viewf30cd-strong { color: var(--viewf30cd-text-strong); font-weight: 600; }

/* ---------- Hero / carousel ---------- */
.viewf30cd-hero { padding: 6px 12px 4px; }
.viewf30cd-carousel {
  position: relative;
  border: 1px solid var(--viewf30cd-border-strong);
  border-radius: var(--viewf30cd-radius-lg);
  overflow: hidden;
  background: var(--viewf30cd-bg-2);
}
.viewf30cd-track { position: relative; }
.viewf30cd-slide {
  position: relative;
  display: block;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  cursor: pointer;
}
.viewf30cd-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.viewf30cd-slide-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--viewf30cd-bg-3);
}
.viewf30cd-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(15,15,35,0.92) 0%, rgba(15,15,35,0) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.viewf30cd-slide-title {
  font-family: var(--viewf30cd-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--viewf30cd-gold);
}
.viewf30cd-slide-sub {
  font-size: 12.5px;
  color: var(--viewf30cd-text);
}
.viewf30cd-carousel-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.viewf30cd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(206, 212, 218, 0.4);
  transition: background-color .18s ease;
  padding: 0;
}
.viewf30cd-dot.is-active { background: var(--viewf30cd-gold); }

/* ---------- Intro band ---------- */
.viewf30cd-intro {
  padding: 6px 14px 4px;
}
.viewf30cd-intro-card {
  background: linear-gradient(135deg, rgba(136,14,79,0.22) 0%, rgba(15,15,35,0) 70%);
  border: 1px solid var(--viewf30cd-border-strong);
  border-left: 3px solid var(--viewf30cd-brand-2);
  border-radius: var(--viewf30cd-radius);
  padding: 14px;
}
.viewf30cd-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.viewf30cd-pill {
  font-family: var(--viewf30cd-mono);
  font-size: 11px;
  letter-spacing: .4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--viewf30cd-border-strong);
  color: var(--viewf30cd-text-dim);
  background: var(--viewf30cd-bg-2);
}

/* ---------- Game blocks ---------- */
.viewf30cd-game-block { padding: 14px 12px 6px; }
.viewf30cd-game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.viewf30cd-game-head-left { display: flex; flex-direction: column; gap: 2px; }
.viewf30cd-game-tag {
  font-family: var(--viewf30cd-mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--viewf30cd-text-dim);
}
.viewf30cd-game-title {
  font-family: var(--viewf30cd-mono);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--viewf30cd-text-strong);
}
.viewf30cd-game-count {
  font-family: var(--viewf30cd-mono);
  font-size: 11px;
  color: var(--viewf30cd-brand-3);
  padding: 3px 8px;
  border: 1px solid var(--viewf30cd-brand);
  border-radius: 999px;
  background: rgba(136, 14, 79, 0.18);
}
.viewf30cd-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.viewf30cd-game-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--viewf30cd-bg-2);
  border: 1px solid var(--viewf30cd-border);
  border-radius: var(--viewf30cd-radius);
  overflow: hidden;
  padding: 0;
  transition: border-color .18s ease, background-color .18s ease;
}
.viewf30cd-game-tile:hover {
  border-color: var(--viewf30cd-gold);
  background: var(--viewf30cd-bg-3);
}
.viewf30cd-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--viewf30cd-bg-3);
}
.viewf30cd-game-name {
  display: block;
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--viewf30cd-text);
  padding: 5px 6px 6px;
  background: var(--viewf30cd-bg-3);
  border-top: 1px solid var(--viewf30cd-border);
  min-height: 30px;
  word-break: break-word;
  text-align: center;
}
.viewf30cd-game-tile:hover .viewf30cd-game-name { color: var(--viewf30cd-text-strong); }

/* ---------- Module: RTP ---------- */
.viewf30cd-card {
  background: var(--viewf30cd-bg-2);
  border: 1px solid var(--viewf30cd-border);
  border-radius: var(--viewf30cd-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.viewf30cd-rtp-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.viewf30cd-rtp-stat {
  background: var(--viewf30cd-bg-3);
  border: 1px solid var(--viewf30cd-border);
  border-radius: var(--viewf30cd-radius);
  padding: 12px;
}
.viewf30cd-rtp-num {
  font-family: var(--viewf30cd-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--viewf30cd-gold);
  letter-spacing: -.5px;
}
.viewf30cd-rtp-label {
  font-size: 12px;
  color: var(--viewf30cd-text-dim);
  margin-top: 4px;
}
.viewf30cd-rtp-bar {
  height: 6px;
  background: var(--viewf30cd-bg-4);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}
.viewf30cd-rtp-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--viewf30cd-brand-2), var(--viewf30cd-gold));
  border-radius: 999px;
}

/* ---------- Module: Achievements ---------- */
.viewf30cd-achv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.viewf30cd-achv {
  background: var(--viewf30cd-bg-3);
  border: 1px solid var(--viewf30cd-border);
  border-radius: var(--viewf30cd-radius);
  padding: 12px;
}
.viewf30cd-achv-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.viewf30cd-achv-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--viewf30cd-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--viewf30cd-brand);
  border: 1px solid var(--viewf30cd-brand-2);
  flex-shrink: 0;
}
.viewf30cd-achv-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--viewf30cd-text-strong);
}
.viewf30cd-achv-desc { font-size: 12.5px; color: var(--viewf30cd-text-dim); }

/* ---------- Module: Pros / Limits ---------- */
.viewf30cd-pc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
.viewf30cd-pc-col {
  border: 1px solid var(--viewf30cd-border);
  border-radius: var(--viewf30cd-radius);
  padding: 14px;
  background: var(--viewf30cd-bg-3);
}
.viewf30cd-pc-col--pros { border-left: 3px solid var(--viewf30cd-green); }
.viewf30cd-pc-col--cons { border-left: 3px solid var(--viewf30cd-red); }
.viewf30cd-pc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.viewf30cd-pc-badge {
  font-family: var(--viewf30cd-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.viewf30cd-pc-badge--pros { background: rgba(76, 175, 122, 0.18); color: var(--viewf30cd-green); }
.viewf30cd-pc-badge--cons { background: rgba(224, 86, 79, 0.18); color: var(--viewf30cd-red); }
.viewf30cd-pc-col ul { margin: 0; padding-left: 1.1rem; }
.viewf30cd-pc-col li { font-size: 13.5px; margin-bottom: 6px; }

/* ---------- Module: Direct answer ---------- */
.viewf30cd-direct {
  background: linear-gradient(135deg, rgba(136,14,79,0.32) 0%, var(--viewf30cd-bg-2) 60%);
  border: 1px solid var(--viewf30cd-brand-2);
  border-radius: var(--viewf30cd-radius-lg);
  padding: 18px;
}
.viewf30cd-direct-q {
  font-family: var(--viewf30cd-mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--viewf30cd-brand-3);
  margin-bottom: 6px;
}
.viewf30cd-direct-a {
  font-size: 16px;
  color: var(--viewf30cd-text-strong);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
}
.viewf30cd-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.viewf30cd-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--viewf30cd-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 10px 14px;
  border-radius: var(--viewf30cd-radius);
  min-height: 42px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.viewf30cd-cta--primary { background: var(--viewf30cd-gold); color: #1a1a2e; border: 1px solid var(--viewf30cd-gold); }
.viewf30cd-cta--primary:hover { background: #fff; color: #1a1a2e; }
.viewf30cd-cta--ghost { background: transparent; color: var(--viewf30cd-text); border: 1px solid var(--viewf30cd-border-strong); }
.viewf30cd-cta--ghost:hover { color: var(--viewf30cd-gold); border-color: var(--viewf30cd-gold); }

/* ---------- Scenario branch list ---------- */
.viewf30cd-branches { display: grid; gap: 10px; margin-top: 12px; }
.viewf30cd-branch {
  border: 1px solid var(--viewf30cd-border);
  border-left: 3px solid var(--viewf30cd-brand-2);
  border-radius: var(--viewf30cd-radius);
  padding: 12px 14px;
  background: var(--viewf30cd-bg-3);
}
.viewf30cd-branch-h {
  font-family: var(--viewf30cd-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--viewf30cd-gold);
  margin-bottom: 4px;
}
.viewf30cd-branch-p { font-size: 13.5px; margin: 0; }

/* ---------- Inline link list ---------- */
.viewf30cd-linklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
}
.viewf30cd-linklist li { margin: 0; }
.viewf30cd-linklist a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--viewf30cd-border);
  border-radius: var(--viewf30cd-radius);
  color: var(--viewf30cd-text);
  font-size: 13.5px;
  background: var(--viewf30cd-bg-3);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.viewf30cd-linklist a:hover {
  color: var(--viewf30cd-text-strong);
  border-color: var(--viewf30cd-brand-2);
  background: var(--viewf30cd-bg-4);
}
.viewf30cd-linklist-arrow { margin-left: auto; color: var(--viewf30cd-brand-3); font-family: var(--viewf30cd-mono); }

/* ---------- Extended footer ---------- */
.viewf30cd-ext {
  margin-top: 18px;
  padding: 18px 14px 6px;
  border-top: 1px solid var(--viewf30cd-border-strong);
  background: var(--viewf30cd-bg-2);
}
.viewf30cd-ext-group { margin-bottom: 18px; }
.viewf30cd-ext-h {
  font-family: var(--viewf30cd-mono);
  font-size: 11.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--viewf30cd-brand-3);
  margin-bottom: 8px;
}
.viewf30cd-ext-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.viewf30cd-ext-directory a {
  font-size: 12.5px;
  padding: 8px 10px;
  border: 1px solid var(--viewf30cd-border);
  border-radius: var(--viewf30cd-radius);
  color: var(--viewf30cd-text);
  background: var(--viewf30cd-bg-3);
  transition: color .18s ease, border-color .18s ease;
}
.viewf30cd-ext-directory a:hover { color: var(--viewf30cd-gold); border-color: var(--viewf30cd-brand-2); }
.viewf30cd-ext-brand-p { font-size: 13px; color: var(--viewf30cd-text-dim); margin: 0; }
.viewf30cd-ext-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.viewf30cd-ext-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--viewf30cd-brand);
  border-radius: var(--viewf30cd-radius);
  background: rgba(136, 14, 79, 0.16);
  color: var(--viewf30cd-text-strong);
  font-family: var(--viewf30cd-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: left;
  min-height: 42px;
  transition: background-color .18s ease, color .18s ease;
}
.viewf30cd-ext-promo:hover { background: var(--viewf30cd-brand); color: #fff; }
.viewf30cd-ext-promo-ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--viewf30cd-gold);
  color: #1a1a2e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.viewf30cd-ext-disclaimer {
  border: 1px dashed var(--viewf30cd-border-strong);
  border-radius: var(--viewf30cd-radius);
  padding: 12px;
  background: var(--viewf30cd-bg-3);
  font-size: 12px;
  color: var(--viewf30cd-text-dim);
}
.viewf30cd-ext-disclaimer strong { color: var(--viewf30cd-text); }

/* ---------- Common footer ---------- */
.viewf30cd-footer {
  padding: 16px 14px calc(var(--viewf30cd-bottomnav-h) + 18px);
  text-align: center;
  border-top: 1px solid var(--viewf30cd-border);
  background: var(--viewf30cd-bg);
}
.viewf30cd-footer-copy {
  font-family: var(--viewf30cd-mono);
  font-size: 11.5px;
  letter-spacing: .6px;
  color: var(--viewf30cd-text-dim);
}
.viewf30cd-footer-rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin-top: 8px;
}
.viewf30cd-footer-rules a,
.viewf30cd-footer-rules span {
  font-size: 11.5px;
  color: var(--viewf30cd-text-dim);
}
.viewf30cd-footer-rules a:hover { color: var(--viewf30cd-gold); }

/* ---------- Mobile bottom nav ---------- */
.viewf30cd-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--viewf30cd-canvas);
  height: var(--viewf30cd-bottomnav-h);
  background: linear-gradient(0deg, #120a1f 0%, #0F0F23 100%);
  border-top: 2px solid var(--viewf30cd-brand-2);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 65;
  padding-bottom: env(safe-area-inset-bottom);
}
.viewf30cd-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 4px;
  color: var(--viewf30cd-text-dim);
  font-size: 10px;
  font-family: var(--viewf30cd-mono);
  letter-spacing: .3px;
  text-align: center;
  border-top: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
  min-height: 44px;
}
.viewf30cd-nav-item:hover { color: var(--viewf30cd-text); }
.viewf30cd-nav-item.is-active {
  color: var(--viewf30cd-gold);
  border-top-color: var(--viewf30cd-gold);
  transform: translateY(-1px);
}
.viewf30cd-nav-ico {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.viewf30cd-nav-ico svg { width: 22px; height: 22px; display: block; }
.viewf30cd-nav-label { line-height: 1; }
.viewf30cd-nav-item--promo .viewf30cd-nav-ico {
  background: var(--viewf30cd-brand);
  border: 1px solid var(--viewf30cd-brand-2);
  border-radius: 50%;
}
.viewf30cd-nav-item--promo.is-active .viewf30cd-nav-ico,
.viewf30cd-nav-item--promo:hover .viewf30cd-nav-ico {
  background: var(--viewf30cd-brand-2);
}

/* ---------- Utility ---------- */
.viewf30cd-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.viewf30cd-hide-on-narrow { display: inline; }

/* ---------- Responsive ---------- */
@media (min-width: 360px) {
  .viewf30cd-h1 { font-size: 28px; }
  .viewf30cd-game-grid { gap: 10px; }
}
@media (min-width: 393px) {
  .viewf30cd-game-name { font-size: 12px; }
}
@media (min-width: 410px) {
  .viewf30cd-game-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 480px) {
  .viewf30cd-ext-directory { grid-template-columns: repeat(3, 1fr); }
  .viewf30cd-ext-promos { grid-template-columns: repeat(3, 1fr); }
}

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

/* ---------- Help page compositions ---------- */
.viewf30cd-help-hero { padding: 22px 14px 14px; border-bottom: 1px solid var(--viewf30cd-border-strong); background: radial-gradient(circle at 85% 10%, rgba(136,14,79,.38), transparent 42%), var(--viewf30cd-bg); }
.viewf30cd-help-kicker { color: var(--viewf30cd-gold); font: 11px var(--viewf30cd-mono); letter-spacing: 1.7px; text-transform: uppercase; margin-bottom: 8px; }
.viewf30cd-help-summary { font-size: 15.5px; color: var(--viewf30cd-text-strong); margin: 0; }
.viewf30cd-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.viewf30cd-help-actions .viewf30cd-cta { flex: 1 1 130px; justify-content: center; }
.viewf30cd-route-strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px; border-bottom: 1px solid var(--viewf30cd-border); scrollbar-width: thin; }
.viewf30cd-route-chip { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 11px; border: 1px solid var(--viewf30cd-border-strong); border-radius: var(--viewf30cd-radius); color: var(--viewf30cd-text); background: var(--viewf30cd-bg-3); font: 11px var(--viewf30cd-mono); }
.viewf30cd-route-chip:hover { border-color: var(--viewf30cd-gold); color: var(--viewf30cd-gold); }
.viewf30cd-guide-layout { padding: 16px 14px 0; }
.viewf30cd-step-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; counter-reset: guide-step; }
.viewf30cd-step-list li { counter-increment: guide-step; position: relative; margin: 0; padding: 13px 12px 13px 52px; border-left: 2px solid var(--viewf30cd-brand-2); background: var(--viewf30cd-bg-3); border-radius: var(--viewf30cd-radius); }
.viewf30cd-step-list li::before { content: counter(guide-step, decimal-leading-zero); position: absolute; left: 12px; top: 13px; color: var(--viewf30cd-gold); font: 700 12px var(--viewf30cd-mono); }
.viewf30cd-step-list strong { display: block; color: var(--viewf30cd-text-strong); margin-bottom: 3px; }
.viewf30cd-conditional-grid { display: grid; gap: 9px; margin-top: 12px; }
.viewf30cd-condition { padding: 12px; border: 1px solid var(--viewf30cd-border); border-radius: var(--viewf30cd-radius); background: linear-gradient(90deg, rgba(136,14,79,.2), var(--viewf30cd-bg-3)); }
.viewf30cd-condition strong { color: var(--viewf30cd-gold); display: block; margin-bottom: 4px; }
.viewf30cd-term-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.viewf30cd-term-table th, .viewf30cd-term-table td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--viewf30cd-border); padding: 10px 7px; }
.viewf30cd-term-table th { color: var(--viewf30cd-gold); font: 11px var(--viewf30cd-mono); letter-spacing: .5px; width: 34%; }
.viewf30cd-use-case { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--viewf30cd-border); }
.viewf30cd-use-case:last-child { border-bottom: 0; }
.viewf30cd-use-case-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--viewf30cd-brand); border: 1px solid var(--viewf30cd-brand-2); border-radius: var(--viewf30cd-radius); font: 700 13px var(--viewf30cd-mono); }
.viewf30cd-checklist { display: grid; gap: 7px; padding: 0; margin: 12px 0 0; list-style: none; }
.viewf30cd-checklist li { margin: 0; padding: 10px 11px 10px 34px; border: 1px solid var(--viewf30cd-border); border-radius: var(--viewf30cd-radius); position: relative; background: var(--viewf30cd-bg-3); }
.viewf30cd-checklist li::before { content: "□"; position: absolute; left: 11px; color: var(--viewf30cd-gold); font: 18px var(--viewf30cd-mono); line-height: 1; }
.viewf30cd-promo-rail { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.viewf30cd-promo-rail .viewf30cd-cta { justify-content: center; padding-inline: 8px; font-size: 11px; }
.viewf30cd-fact-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.viewf30cd-fact { padding: 12px 10px; border-top: 2px solid var(--viewf30cd-brand-2); background: var(--viewf30cd-bg-3); }
.viewf30cd-fact-label { color: var(--viewf30cd-text-dim); font: 10px var(--viewf30cd-mono); text-transform: uppercase; letter-spacing: .8px; }
.viewf30cd-fact-value { color: var(--viewf30cd-text-strong); font-weight: 700; margin-top: 4px; }
.viewf30cd-accordion { display: grid; gap: 7px; margin-top: 12px; }
.viewf30cd-accordion details { border: 1px solid var(--viewf30cd-border); border-radius: var(--viewf30cd-radius); background: var(--viewf30cd-bg-3); padding: 11px 12px; }
.viewf30cd-accordion summary { cursor: pointer; min-height: 24px; color: var(--viewf30cd-text-strong); font-weight: 650; }
.viewf30cd-accordion p { margin: 9px 0 0; color: var(--viewf30cd-text); font-size: 13.5px; }
.viewf30cd-support-note { border: 1px solid var(--viewf30cd-brand-2); border-radius: var(--viewf30cd-radius); padding: 13px; background: rgba(136,14,79,.16); }
.viewf30cd-relationship { display: grid; gap: 7px; margin-top: 12px; }
.viewf30cd-relationship div { padding: 10px 11px; background: var(--viewf30cd-bg-3); border-left: 3px solid var(--viewf30cd-gold); }
@media (min-width: 390px) { .viewf30cd-promo-rail { grid-template-columns: repeat(4, minmax(0,1fr)); } }
