/* ============================================================
   Nust.homes mobile-first interface
   Prefix: c32517-
   Palette: #0D1117 / #36454F / #808080 / #BBBBBB + state gold
   Direction: geometric titles, neutral body, light card rounding,
   pure-image game cards, short list rhythm, state-only motion,
   solid primary + outlined secondary CTAs.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --c32517-bg: #0D1117;
  --c32517-bg-soft: #11161f;
  --c32517-surface: #161d28;
  --c32517-surface-2: #1b2330;
  --c32517-charcoal: #36454F;
  --c32517-text: #BBBBBB;
  --c32517-text-strong: #E8E8E8;
  --c32517-muted: #808080;
  --c32517-line: rgba(187, 187, 187, 0.12);
  --c32517-line-strong: rgba(187, 187, 187, 0.24);

  /* state accent (motion budget = state color only) */
  --c32517-accent: #e6b94a;
  --c32517-accent-deep: #c89a2e;
  --c32517-accent-soft: rgba(230, 185, 74, 0.14);
  --c32517-danger: #d96651;
  --c32517-ok: #6fae8e;

  --c32517-radius-sm: 8px;
  --c32517-radius: 14px;
  --c32517-radius-lg: 20px;

  --c32517-tap: 44px;
  --c32517-shell: 430px;
  --c32517-header-h: 56px;
  --c32517-bottom-h: 64px;

  --c32517-font-title: "Space Grotesk", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --c32517-font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --c32517-shadow-card: 0 2px 10px rgba(0, 0, 0, 0.35);
  --c32517-shadow-pop: 0 14px 38px rgba(0, 0, 0, 0.55);
}

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

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

body {
  margin: 0;
  font-family: var(--c32517-font-body);
  background: #05080c;
  color: var(--c32517-text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--c32517-text-strong);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c32517-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

ul,
ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--c32517-font-title);
  color: var(--c32517-text-strong);
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0.2px;
}

p { margin: 0 0 12px; }

:where(p, li) code {
  font-family: "JetBrains Mono", "Consolas", monospace;
  background: var(--c32517-surface-2);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--c32517-text-strong);
  font-size: 0.92em;
}

/* ---------- Mobile shell ---------- */
.c32517-shell {
  max-width: var(--c32517-shell);
  margin: 0 auto;
  background: var(--c32517-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.c32517-main {
  padding-bottom: calc(var(--c32517-bottom-h) + 24px);
}

/* Visually hidden but available to assistive tech */
.c32517-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;
}

/* ---------- Top header ---------- */
.c32517-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  height: var(--c32517-header-h);
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.88) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c32517-line);
}

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

.c32517-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--c32517-line-strong), 0 2px 6px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.c32517-brand-name {
  font-family: var(--c32517-font-title);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1.2px;
  color: var(--c32517-text-strong);
  text-transform: lowercase;
}

.c32517-brand-name::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--c32517-accent);
  vertical-align: 2px;
}

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

.c32517-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.c32517-btn--primary {
  background: var(--c32517-accent);
  color: #1a1300;
  border: 1px solid var(--c32517-accent);
}

.c32517-btn--primary:active {
  background: var(--c32517-accent-deep);
}

.c32517-btn--ghost {
  background: transparent;
  color: var(--c32517-text-strong);
  border: 1px solid var(--c32517-line-strong);
}

.c32517-btn--ghost:active {
  border-color: var(--c32517-accent);
  color: var(--c32517-accent);
}

.c32517-btn--block {
  width: 100%;
  min-height: var(--c32517-tap);
  padding: 0 18px;
  font-size: 14.5px;
}

.c32517-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c32517-line);
  background: var(--c32517-surface);
  color: var(--c32517-text-strong);
}

.c32517-menu-btn svg { width: 20px; height: 20px; }

.c32517-menu-btn[aria-expanded="true"] {
  border-color: var(--c32517-accent);
  color: var(--c32517-accent);
}

/* ---------- Stacked overlay menu ---------- */
.c32517-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.c32517-menu-overlay[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.c32517-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(86vw, 360px);
  height: 100dvh;
  background: var(--c32517-bg-soft);
  border-left: 1px solid var(--c32517-line);
  box-shadow: var(--c32517-shadow-pop);
  transform: translateX(105%);
  transition: transform .26s cubic-bezier(.22,.61,.36,1);
  display: flex;
  flex-direction: column;
  padding: 14px 0 18px;
  overflow-y: auto;
}

.c32517-menu-overlay[data-open="true"] .c32517-menu-panel {
  transform: translateX(0);
}

.c32517-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 14px;
  border-bottom: 1px solid var(--c32517-line);
}

.c32517-menu-head .c32517-brand-name { font-size: 18px; }

.c32517-menu-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--c32517-line);
  background: var(--c32517-surface);
  color: var(--c32517-text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c32517-menu-close svg { width: 18px; height: 18px; }

.c32517-menu-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 14px 16px 8px;
}

.c32517-menu-list {
  padding: 4px 12px;
}

.c32517-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 12px;
  color: var(--c32517-text);
  font-weight: 500;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.c32517-menu-link:active {
  background: var(--c32517-surface);
  color: var(--c32517-text-strong);
}

.c32517-menu-link[aria-current="page"] {
  background: var(--c32517-accent-soft);
  color: var(--c32517-accent);
  border-color: rgba(230, 185, 74, 0.35);
}

.c32517-menu-link .c32517-menu-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: currentColor;
}

.c32517-menu-link span { flex: 1; }

.c32517-menu-link .c32517-menu-arrow {
  width: 16px;
  height: 16px;
  color: var(--c32517-muted);
}

.c32517-menu-foot {
  margin-top: auto;
  padding: 14px 16px 4px;
  border-top: 1px solid var(--c32517-line);
  color: var(--c32517-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Section primitives ---------- */
.c32517-section {
  padding: 22px 14px 4px;
}

.c32517-section--tight { padding: 16px 14px 0; }

.c32517-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--c32517-line);
}

.c32517-section-head h2 {
  font-size: 19px;
  font-weight: 700;
}

.c32517-section-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--c32517-muted);
}

.c32517-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c32517-accent);
  font-weight: 700;
}

.c32517-section-tag::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--c32517-accent);
  display: inline-block;
}

.c32517-section-more {
  font-size: 12.5px;
  color: var(--c32517-text);
  border: 1px solid var(--c32517-line-strong);
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color .16s ease, color .16s ease;
}

.c32517-section-more:active {
  border-color: var(--c32517-accent);
  color: var(--c32517-accent);
}

/* ---------- Hero carousel ---------- */
.c32517-hero {
  margin: 14px 14px 0;
  position: relative;
  border-radius: var(--c32517-radius-lg);
  overflow: hidden;
  background: var(--c32517-surface);
  box-shadow: var(--c32517-shadow-card);
}

.c32517-hero-track {
  display: flex;
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.c32517-hero-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
}

.c32517-hero-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.c32517-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0) 35%, rgba(13, 17, 23, 0.85) 100%);
}

.c32517-hero-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.c32517-hero-copy strong {
  font-family: var(--c32517-font-title);
  font-size: 17px;
  color: #fff;
  display: block;
  letter-spacing: .3px;
  line-height: 1.2;
}

.c32517-hero-copy span {
  font-size: 12px;
  color: var(--c32517-text);
  display: block;
  margin-top: 3px;
}

.c32517-hero-cta {
  background: var(--c32517-accent);
  color: #1a1300;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(230, 185, 74, 0.35);
}

.c32517-hero-dots {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.c32517-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background-color .18s ease, width .18s ease;
  border: 0;
  padding: 0;
}

.c32517-hero-dot[aria-current="true"] {
  background: var(--c32517-accent);
  width: 18px;
  border-radius: 999px;
}

/* ---------- Quick stats strip ---------- */
.c32517-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 14px 0;
}

.c32517-stat {
  background: var(--c32517-surface);
  border: 1px solid var(--c32517-line);
  border-radius: var(--c32517-radius);
  padding: 11px 8px;
  text-align: center;
}

.c32517-stat strong {
  display: block;
  font-family: var(--c32517-font-title);
  font-size: 17px;
  color: var(--c32517-accent);
  font-weight: 700;
}

.c32517-stat span {
  display: block;
  font-size: 10.5px;
  color: var(--c32517-muted);
  margin-top: 3px;
  letter-spacing: .3px;
}

/* ---------- Category chips ---------- */
.c32517-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 14px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.c32517-chips::-webkit-scrollbar { display: none; }

.c32517-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--c32517-surface);
  color: var(--c32517-text);
  border: 1px solid var(--c32517-line);
  transition: color .16s ease, border-color .16s ease;
}

.c32517-chip:active {
  color: var(--c32517-accent);
  border-color: var(--c32517-accent);
}

/* ---------- Game grid & cards ---------- */
.c32517-cat-block {
  padding: 22px 14px 6px;
}

.c32517-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.c32517-cat-head h3 {
  font-size: 16.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.c32517-cat-head h3::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--c32517-accent);
  border-radius: 2px;
  display: inline-block;
}

.c32517-cat-head a {
  font-size: 12px;
  color: var(--c32517-muted);
  border: 1px solid var(--c32517-line);
  padding: 5px 10px;
  border-radius: 999px;
}

.c32517-cat-head a:active { color: var(--c32517-accent); }

.c32517-cat-desc {
  font-size: 12.5px;
  color: var(--c32517-muted);
  margin: -6px 0 12px;
  max-width: 38em;
}

.c32517-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
}

.c32517-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 4px 2px 6px;
  border-radius: var(--c32517-radius-sm);
  transition: background-color .16s ease;
}

.c32517-game:active {
  background: var(--c32517-surface);
}

.c32517-game-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--c32517-radius-sm);
  overflow: hidden;
  background: linear-gradient(145deg, var(--c32517-surface) 0%, var(--c32517-charcoal) 100%);
  box-shadow: inset 0 0 0 1px var(--c32517-line);
}

.c32517-game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.c32517-game:active .c32517-game-media img {
  transform: scale(1.04);
}

.c32517-game-name {
  font-size: 11.5px;
  color: var(--c32517-text);
  line-height: 1.25;
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 2px;
  word-break: break-word;
}

@media (min-width: 360px) {
  .c32517-grid { gap: 12px 10px; }
  .c32517-game-name { font-size: 12px; }
}

@media (min-width: 400px) {
  .c32517-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Content modules ---------- */
.c32517-module {
  margin: 22px 14px 0;
  background: var(--c32517-surface);
  border: 1px solid var(--c32517-line);
  border-radius: var(--c32517-radius);
  padding: 16px 15px 14px;
  box-shadow: var(--c32517-shadow-card);
}

.c32517-module h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.c32517-module > p {
  font-size: 13.5px;
  color: var(--c32517-text);
  margin-bottom: 12px;
}

.c32517-module p a {
  color: var(--c32517-accent);
  border-bottom: 1px dashed rgba(230, 185, 74, 0.5);
  padding-bottom: 1px;
}

/* Comparison table block */
.c32517-compare {
  display: grid;
  gap: 9px;
}

.c32517-compare-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 11px 12px;
  background: var(--c32517-bg-soft);
  border: 1px solid var(--c32517-line);
  border-radius: 11px;
  align-items: start;
}

.c32517-compare-row strong {
  font-family: var(--c32517-font-title);
  color: var(--c32517-text-strong);
  font-size: 13px;
  font-weight: 700;
}

.c32517-compare-row span {
  font-size: 12.5px;
  color: var(--c32517-text);
  line-height: 1.5;
}

.c32517-compare-row em {
  font-style: normal;
  color: var(--c32517-accent);
  font-weight: 600;
}

/* Promotion cards */
.c32517-promo-list {
  display: grid;
  gap: 10px;
}

.c32517-promo-card {
  position: relative;
  padding: 13px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c32517-surface-2) 0%, var(--c32517-charcoal) 100%);
  border: 1px solid var(--c32517-line-strong);
  overflow: hidden;
}

.c32517-promo-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 92px;
  height: 92px;
  background: var(--c32517-accent-soft);
  border-radius: 50%;
}

.c32517-promo-card h3 {
  position: relative;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.c32517-promo-card p {
  position: relative;
  font-size: 12.5px;
  color: var(--c32517-text);
  margin: 0 0 10px;
  line-height: 1.5;
}

.c32517-promo-card a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1a1300;
  background: var(--c32517-accent);
  padding: 7px 13px;
  border-radius: 999px;
}

/* Numbered steps */
.c32517-steps {
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.c32517-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  counter-increment: step;
  padding: 11px 12px;
  background: var(--c32517-bg-soft);
  border: 1px solid var(--c32517-line);
  border-radius: 11px;
  align-items: start;
}

.c32517-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--c32517-font-title);
  font-weight: 700;
  color: var(--c32517-accent);
  font-size: 16px;
  line-height: 1.1;
}

.c32517-step strong {
  display: block;
  font-family: var(--c32517-font-title);
  font-size: 13px;
  color: var(--c32517-text-strong);
  margin-bottom: 2px;
}

.c32517-step span {
  font-size: 12.5px;
  color: var(--c32517-text);
  line-height: 1.5;
}

/* Bullet checklist */
.c32517-check-list { display: grid; gap: 8px; }

.c32517-check-list li {
  position: relative;
  padding: 9px 12px 9px 32px;
  background: var(--c32517-bg-soft);
  border: 1px solid var(--c32517-line);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c32517-text);
}

.c32517-check-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--c32517-accent);
  border-bottom: 2px solid var(--c32517-accent);
  transform: rotate(-45deg);
}

/* Takeaways grid */
.c32517-takeaway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.c32517-takeaway {
  background: var(--c32517-bg-soft);
  border: 1px solid var(--c32517-line);
  border-left: 3px solid var(--c32517-accent);
  border-radius: 10px;
  padding: 10px 11px;
}

.c32517-takeaway strong {
  display: block;
  font-family: var(--c32517-font-title);
  font-size: 12.5px;
  color: var(--c32517-text-strong);
  margin-bottom: 3px;
}

.c32517-takeaway span {
  font-size: 11.5px;
  color: var(--c32517-muted);
  line-height: 1.45;
}

/* Inline keyword answer lead */
.c32517-lead {
  background: var(--c32517-accent-soft);
  border: 1px solid rgba(230, 185, 74, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--c32517-text-strong);
  line-height: 1.55;
}

.c32517-lead strong { color: var(--c32517-accent); }

/* Download block */
.c32517-download {
  display: grid;
  gap: 12px;
}

.c32517-download-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--c32517-bg-soft);
  border: 1px solid var(--c32517-line);
  border-radius: 12px;
}

.c32517-download-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--c32517-charcoal);
  color: var(--c32517-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c32517-download-ico svg { width: 20px; height: 20px; }

.c32517-download-row strong {
  display: block;
  font-family: var(--c32517-font-title);
  font-size: 13.5px;
  color: var(--c32517-text-strong);
}

.c32517-download-row span {
  font-size: 11.5px;
  color: var(--c32517-muted);
}

.c32517-download-row a {
  font-size: 12px;
  font-weight: 700;
  color: var(--c32517-accent);
  border: 1px solid var(--c32517-accent);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* In-text Q&A */
.c32517-qa { display: grid; gap: 10px; }

.c32517-qa-item {
  padding: 12px 13px;
  background: var(--c32517-bg-soft);
  border: 1px solid var(--c32517-line);
  border-radius: 11px;
}

.c32517-qa-item strong {
  display: block;
  font-family: var(--c32517-font-title);
  color: var(--c32517-text-strong);
  font-size: 13.5px;
  margin-bottom: 4px;
}

.c32517-qa-item span {
  font-size: 12.5px;
  color: var(--c32517-text);
  line-height: 1.55;
}

/* ---------- Extended footer (home only) ---------- */
.c32517-extended {
  margin: 26px 14px 0;
  padding: 18px 15px 16px;
  background: var(--c32517-bg-soft);
  border: 1px solid var(--c32517-line);
  border-radius: var(--c32517-radius-lg);
}

.c32517-extended > section + section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c32517-line);
}

.c32517-ext-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.c32517-ext-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--c32517-line-strong);
}

.c32517-ext-brand strong {
  font-family: var(--c32517-font-title);
  font-size: 16px;
  color: var(--c32517-text-strong);
  display: block;
}

.c32517-ext-brand span {
  font-size: 12px;
  color: var(--c32517-muted);
}

.c32517-ext-brand p {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c32517-text);
}

.c32517-ext-title {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c32517-accent);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.c32517-ext-title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--c32517-accent);
}

.c32517-ext-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px 12px;
}

.c32517-ext-list a {
  font-size: 12.5px;
  color: var(--c32517-text);
  padding: 5px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.c32517-ext-list a::before {
  content: "›";
  color: var(--c32517-accent);
  font-weight: 700;
}

.c32517-ext-list a:active { color: var(--c32517-accent); }

.c32517-ext-promos {
  display: grid;
  gap: 8px;
}

.c32517-ext-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  background: var(--c32517-surface);
  border: 1px solid var(--c32517-line);
  border-radius: 11px;
}

.c32517-ext-promo span {
  font-size: 12.5px;
  color: var(--c32517-text-strong);
  font-weight: 600;
}

.c32517-ext-promo small {
  display: block;
  font-size: 11px;
  color: var(--c32517-muted);
  font-weight: 400;
  margin-top: 2px;
}

.c32517-ext-promo a {
  font-size: 11.5px;
  font-weight: 700;
  color: #1a1300;
  background: var(--c32517-accent);
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.c32517-ext-disclaimer {
  font-size: 11.5px;
  color: var(--c32517-muted);
  line-height: 1.55;
  padding: 11px 13px;
  background: rgba(54, 69, 79, 0.35);
  border-radius: 10px;
  border-left: 3px solid var(--c32517-muted);
}

/* ---------- Common footer ---------- */
.c32517-footer {
  margin-top: 24px;
  padding: 16px 14px calc(var(--c32517-bottom-h) + 18px);
  background: var(--c32517-bg-soft);
  border-top: 1px solid var(--c32517-line);
  text-align: center;
}

.c32517-footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.c32517-footer-mark img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.c32517-footer-mark span {
  font-family: var(--c32517-font-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--c32517-text-strong);
  letter-spacing: 1px;
}

.c32517-footer-copy {
  font-size: 11.5px;
  color: var(--c32517-muted);
  line-height: 1.55;
}

/* ---------- Bottom navigation ---------- */
.c32517-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--c32517-shell);
  z-index: 60;
  background: rgba(11, 15, 21, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--c32517-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--c32517-bottom-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.c32517-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--c32517-muted);
  font-size: 10px;
  letter-spacing: .2px;
  font-weight: 600;
  padding: 4px 2px;
  border-top: 3px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.c32517-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform .18s ease;
}

.c32517-nav-item:active {
  color: var(--c32517-text-strong);
}

.c32517-nav-item[aria-current="page"] {
  color: var(--c32517-accent);
  border-top-color: var(--c32517-accent);
}

.c32517-nav-item[aria-current="page"] svg {
  transform: translateY(-1px);
}

.c32517-nav-item--promo {
  color: var(--c32517-accent);
}

.c32517-nav-item--promo svg {
  filter: drop-shadow(0 0 6px rgba(230, 185, 74, 0.45));
}

.c32517-nav-pill {
  position: absolute;
  top: 2px;
  background: var(--c32517-accent);
  color: #1a1300;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: .5px;
}

/* ---------- Utility ---------- */
.c32517-hide { display: none !important; }

.c32517-text-accent { color: var(--c32517-accent); }
.c32517-text-strong { color: var(--c32517-text-strong); }
.c32517-text-muted { color: var(--c32517-muted); }

.c32517-link-inline {
  color: var(--c32517-accent);
  border-bottom: 1px dashed rgba(230, 185, 74, 0.5);
  padding-bottom: 1px;
}

.c32517-divider {
  height: 1px;
  background: var(--c32517-line);
  margin: 18px 0;
  border: 0;
}

/* Flash highlight when a chip jumps to a section */
@keyframes c32517Flash {
  0%   { background-color: rgba(230, 185, 74, 0.18); }
  100% { background-color: transparent; }
}

.c32517-flash {
  animation: c32517Flash 0.9s ease-out;
  border-radius: var(--c32517-radius);
}

/* ---------- Help pages ---------- */
.c32517-help-main { padding-bottom: calc(var(--c32517-bottom-h) + 30px); }
.c32517-help-hero {
  margin: 16px 14px 0;
  padding: 18px 15px;
  border: 1px solid var(--c32517-line-strong);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--c32517-surface) 0%, var(--c32517-bg-soft) 100%);
}
.c32517-help-hero h1 { font-size: 24px; margin-top: 7px; }
.c32517-help-hero p { margin: 10px 0 0; font-size: 13.5px; }
.c32517-help-nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 14px 2px;
  scrollbar-width: none;
}
.c32517-help-nav::-webkit-scrollbar { display: none; }
.c32517-help-nav a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--c32517-line); border-radius: 10px; color: var(--c32517-text); font-size: 12px; }
.c32517-help-nav a:active { color: var(--c32517-accent); border-color: var(--c32517-accent); }
.c32517-help-layout { display: grid; gap: 14px; margin: 16px 14px 0; }
.c32517-help-block { padding: 16px 14px; background: var(--c32517-surface); border: 1px solid var(--c32517-line); border-radius: 14px; }
.c32517-help-block h2 { font-size: 18px; margin-bottom: 10px; }
.c32517-help-block h3 { font-size: 14px; margin: 14px 0 5px; color: var(--c32517-accent); }
.c32517-help-block p, .c32517-help-block li { font-size: 13px; line-height: 1.6; }
.c32517-help-block ol, .c32517-help-block ul { padding-left: 20px; list-style: decimal; }
.c32517-help-block ul { list-style: disc; }
.c32517-help-block li + li { margin-top: 7px; }
.c32517-help-block a { color: var(--c32517-accent); border-bottom: 1px dashed rgba(230,185,74,.5); }
.c32517-help-answer { padding: 11px 12px; border-left: 3px solid var(--c32517-accent); background: var(--c32517-bg-soft); margin-top: 9px; border-radius: 0 10px 10px 0; }
.c32517-help-answer strong { color: var(--c32517-text-strong); display: block; margin-bottom: 3px; }
.c32517-help-actions { display: grid; gap: 9px; margin-top: 12px; }
.c32517-help-action { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-radius: 11px; background: var(--c32517-bg-soft); border: 1px solid var(--c32517-line); }
.c32517-help-action span { font-size: 12.5px; }
.c32517-help-action a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--c32517-accent); border-radius: 999px; color: var(--c32517-accent); }
.c32517-faq-stack { display: grid; gap: 8px; }
.c32517-faq-item { border: 1px solid var(--c32517-line); border-radius: 10px; background: var(--c32517-bg-soft); padding: 12px; }
.c32517-faq-item summary { cursor: pointer; min-height: 26px; color: var(--c32517-text-strong); font-family: var(--c32517-font-title); font-size: 13.5px; font-weight: 700; }
.c32517-faq-item p { margin: 9px 0 0; font-size: 12.5px; }
.c32517-faq-item[open] { border-color: rgba(230,185,74,.45); }
.c32517-faq-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 16px; }
.c32517-faq-index a { min-height: 44px; padding: 8px 10px; display: flex; align-items: center; border: 1px solid var(--c32517-line); border-radius: 9px; color: var(--c32517-text); font-size: 11.5px; }
.c32517-faq-index a:active { color: var(--c32517-accent); }

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

/* ---------- Wide screen: keep phone canvas ---------- */
@media (min-width: 480px) {
  body { background: #05080c; }
  .c32517-shell {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
  }
}
