/* ============================================================
   Jili VO - mobile lobby frame stylesheet
   File: css/dynamic-4fe378-frame.css
   Prefix contract: every class and variable uses "c37867-"
   Canvas: 320-430px phone frame, centered on wide screens
   Palette: #141414 base / #9400D3 violet / #2E8B57 sea / #F08080 coral
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --c37867-ink: #141414;
  --c37867-ink-deep: #0e0e10;
  --c37867-panel: #1d1d23;
  --c37867-panel-2: #24242c;
  --c37867-panel-3: #2c2c35;
  --c37867-violet: #9400d3;
  --c37867-violet-hi: #b84ae6;
  --c37867-violet-glow: rgba(148, 0, 211, 0.22);
  --c37867-sea: #2e8b57;
  --c37867-sea-hi: #46b377;
  --c37867-coral: #f08080;
  --c37867-coral-soft: rgba(240, 128, 128, 0.16);
  --c37867-text: #f4f1f6;
  --c37867-muted: #b7b1c0;
  --c37867-faint: #8d8798;
  --c37867-line: rgba(255, 255, 255, 0.09);
  --c37867-font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --c37867-font-tech: "Cascadia Mono", ui-monospace, "SF Mono", Consolas, "Roboto Mono", monospace;
  --c37867-r-lg: 16px;
  --c37867-r-md: 12px;
  --c37867-r-sm: 8px;
  --c37867-topbar-h: 54px;
  --c37867-rail-h: 60px;
}

/* ---------- 2. Reset & shell ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--c37867-ink-deep);
  color: var(--c37867-text);
  font-family: var(--c37867-font-body);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Phone canvas stays centered when the viewport grows */
.c37867-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c37867-ink);
  overflow-x: hidden;
}

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

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

a { color: var(--c37867-coral); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--c37867-coral);
  outline-offset: 2px;
  border-radius: 4px;
}

.c37867-skiplink {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 60;
  background: var(--c37867-violet);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--c37867-r-sm);
  font-weight: 700;
  transition: top 0.15s ease;
}
.c37867-skiplink:focus { top: 8px; }

/* ---------- 3. Top action band ---------- */
.c37867-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--c37867-topbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c37867-line);
}

.c37867-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.c37867-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(184, 74, 230, 0.55);
  box-shadow: 0 0 0 3px var(--c37867-violet-glow);
  object-fit: cover;
  flex: 0 0 auto;
}

.c37867-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.c37867-brand-name em {
  font-style: normal;
  color: var(--c37867-coral);
}

/* Segmented Register / Login control */
.c37867-seg {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(184, 74, 230, 0.5);
  border-radius: 11px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(148, 0, 211, 0.1);
}

.c37867-seg-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.c37867-seg-btn + .c37867-seg-btn {
  border-left: 1px solid rgba(184, 74, 230, 0.5);
}
.c37867-seg-btn--hot {
  background: linear-gradient(160deg, var(--c37867-violet-hi), var(--c37867-violet));
  color: #fff;
}
.c37867-seg-btn--ghost { color: var(--c37867-text); }
.c37867-seg-btn:active { transform: scale(0.95); }

/* Burger toggle for the expandable nav rail */
.c37867-burger {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--c37867-line);
  background: var(--c37867-panel);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.c37867-burger:active { transform: scale(0.92); }
.c37867-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--c37867-text);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.c37867-burger span + span { margin-top: 3px; }
.c37867-burger.c37867-is-open { border-color: var(--c37867-coral); }
.c37867-burger.c37867-is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.c37867-burger.c37867-is-open span:nth-child(2) { opacity: 0; }
.c37867-burger.c37867-is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Expandable nav sheet under the band */
.c37867-navpanel {
  position: absolute;
  top: var(--c37867-topbar-h);
  left: 0;
  right: 0;
  z-index: 39;
  background: var(--c37867-panel);
  border-bottom: 1px solid var(--c37867-line);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
  padding: 12px 14px 16px;
  display: none;
}
.c37867-navpanel.c37867-is-open { display: block; animation: c37867-drop 0.18s ease both; }

@keyframes c37867-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.c37867-navgroup {
  font-family: var(--c37867-font-tech);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c37867-faint);
  margin: 12px 0 6px;
}
.c37867-navgroup:first-child { margin-top: 0; }

.c37867-navgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.c37867-navlink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--c37867-r-sm);
  background: var(--c37867-panel-2);
  color: var(--c37867-text);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.c37867-navlink:hover { text-decoration: none; border-color: rgba(184, 74, 230, 0.5); }
.c37867-navlink:active { transform: scale(0.97); }
.c37867-navlink--wide { grid-column: 1 / -1; }
.c37867-navlink .c37867-navdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c37867-faint);
  flex: 0 0 auto;
}
.c37867-navlink.c37867-is-current {
  border-color: var(--c37867-coral);
  background: var(--c37867-coral-soft);
}
.c37867-navlink.c37867-is-current .c37867-navdot { background: var(--c37867-coral); }

/* ---------- 4. Hero ---------- */
.c37867-main { padding-bottom: calc(var(--c37867-rail-h) + 34px); }

.c37867-hero {
  padding: 22px 14px 18px;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(148, 0, 211, 0.35), transparent 60%),
    radial-gradient(90% 70% at 0% 110%, rgba(46, 139, 87, 0.18), transparent 55%),
    var(--c37867-ink);
  border-bottom: 1px solid var(--c37867-line);
}

.c37867-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--c37867-font-tech);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c37867-coral);
}
.c37867-kicker::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--c37867-coral);
  border-radius: 2px;
}

.c37867-hero-title {
  font-size: 26px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 10px;
}
.c37867-hero-title small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c37867-muted);
  letter-spacing: 0;
}

.c37867-hero-lead {
  color: var(--c37867-muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.c37867-hero-lead strong { color: var(--c37867-text); }

.c37867-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.c37867-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--c37867-font-tech);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--c37867-text);
  background: var(--c37867-panel-2);
  border: 1px solid var(--c37867-line);
  border-radius: var(--c37867-r-sm);
  padding: 5px 9px;
}
.c37867-chip--sea { border-color: rgba(70, 179, 119, 0.5); color: var(--c37867-sea-hi); }
.c37867-chip--coral { border-color: rgba(240, 128, 128, 0.45); color: var(--c37867-coral); }
.c37867-chip--violet { border-color: rgba(184, 74, 230, 0.5); color: #d9a7f2; }

/* ---------- 5. Promo carousel ---------- */
.c37867-caro {
  padding: 18px 0 6px;
  background: var(--c37867-ink);
}

.c37867-caro-viewport {
  overflow: hidden;
  border-radius: var(--c37867-r-lg);
  margin: 0 14px;
  border: 1px solid var(--c37867-line);
  touch-action: pan-y;
}

.c37867-caro-track {
  display: flex;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.c37867-caro-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  display: block;
  text-align: left;
}
.c37867-caro-slide img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.c37867-caro-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(14, 14, 16, 0.92));
}

.c37867-caro-text {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c37867-text);
}

.c37867-caro-tag {
  flex: 0 0 auto;
  font-family: var(--c37867-font-tech);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(150deg, var(--c37867-violet-hi), var(--c37867-violet));
  border-radius: 999px;
  padding: 6px 12px;
}
.c37867-caro-slide:active .c37867-caro-tag { transform: scale(0.94); }

.c37867-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 10px 0 2px;
}

.c37867-dot {
  position: relative;
  width: 40px;
  height: 36px;
  display: grid;
  place-items: center;
  transition: width 0.15s ease;
}
.c37867-dot::before {
  content: "";
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: var(--c37867-panel-3);
  transition: background 0.15s ease;
}
.c37867-dot.c37867-is-on::before { background: var(--c37867-coral); }

/* ---------- 5b. Fact strip ---------- */
.c37867-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.c37867-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  background: var(--c37867-panel);
  border: 1px solid var(--c37867-line);
  border-radius: var(--c37867-r-md);
  padding: 10px 11px;
}

.c37867-fact-n {
  font-family: var(--c37867-font-tech);
  font-size: 16px;
  font-weight: 700;
  color: var(--c37867-coral);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.c37867-fact-t {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--c37867-muted);
}

/* ---------- 6. Content sections ---------- */
.c37867-section {
  padding: 22px 14px 6px;
  border-bottom: 1px solid var(--c37867-line);
}
.c37867-section:last-of-type { border-bottom: 0; }

.c37867-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.c37867-sec-title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 6px 0 8px;
}

.c37867-subhead {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c37867-coral);
  margin: 14px 0 6px;
}

.c37867-sec-text {
  color: var(--c37867-muted);
  font-size: 13.5px;
  margin-bottom: 12px;
}
.c37867-sec-text strong { color: var(--c37867-text); }
.c37867-sec-text a { font-weight: 600; }

.c37867-count {
  flex: 0 0 auto;
  font-family: var(--c37867-font-tech);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--c37867-sea-hi);
  border: 1px solid rgba(70, 179, 119, 0.4);
  border-radius: 999px;
  padding: 3px 8px;
}

/* ---------- 7. Game grid ---------- */
.c37867-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
}

.c37867-gtile {
  display: block;
  width: 100%;
  text-align: center;
  transition: transform 0.12s ease;
}
.c37867-gtile:active { transform: scale(0.94); }

.c37867-gtile-imgframe {
  border-radius: var(--c37867-r-md);
  overflow: hidden;
  border: 1px solid var(--c37867-line);
  background: var(--c37867-panel-2);
  transition: border-color 0.15s ease;
}
.c37867-gtile:hover .c37867-gtile-imgframe,
.c37867-gtile:focus-visible .c37867-gtile-imgframe {
  border-color: rgba(184, 74, 230, 0.65);
}

.c37867-gtile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.c37867-gtile-name {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--c37867-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c37867-seemore {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 2px;
  font-family: var(--c37867-font-tech);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c37867-coral);
  min-height: 34px;
  padding: 6px 14px;
  border: 1px dashed rgba(240, 128, 128, 0.4);
  border-radius: 999px;
  transition: transform 0.12s ease;
}
.c37867-seemore:active { transform: scale(0.96); }

/* ---------- 8. Selection guide rows ---------- */
.c37867-picks {
  display: grid;
  gap: 8px;
}

.c37867-pick {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--c37867-panel);
  border: 1px solid var(--c37867-line);
  border-left: 3px solid var(--c37867-violet);
  border-radius: var(--c37867-r-sm);
  padding: 10px;
}

.c37867-pick-goal {
  font-family: var(--c37867-font-tech);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c37867-coral);
  padding-top: 2px;
}

.c37867-pick-body { font-size: 13px; color: var(--c37867-muted); }
.c37867-pick-body strong { color: var(--c37867-text); }

/* ---------- 9. Player quotes ---------- */
.c37867-quotes {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 14px 10px;
  margin: 0 -14px;
  -webkit-overflow-scrolling: touch;
}

.c37867-quote {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--c37867-panel);
  border: 1px solid var(--c37867-line);
  border-radius: var(--c37867-r-md);
  padding: 12px;
}

.c37867-quote-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.c37867-quote-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--c37867-font-tech);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex: 0 0 auto;
}
.c37867-quote--v .c37867-quote-avatar { background: linear-gradient(150deg, var(--c37867-violet-hi), var(--c37867-violet)); }
.c37867-quote--s .c37867-quote-avatar { background: linear-gradient(150deg, var(--c37867-sea-hi), var(--c37867-sea)); }
.c37867-quote--c .c37867-quote-avatar { background: linear-gradient(150deg, #f7a9a9, var(--c37867-coral)); }

.c37867-quote-name { font-size: 13px; font-weight: 700; }
.c37867-quote-meta {
  font-family: var(--c37867-font-tech);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c37867-faint);
}

.c37867-quote-stars {
  margin-left: auto;
  color: var(--c37867-coral);
  font-size: 11px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.c37867-quote-text { font-size: 12.5px; color: var(--c37867-muted); }

/* ---------- 10. Direct answer & scenario panels ---------- */
.c37867-answer {
  background: linear-gradient(150deg, rgba(148, 0, 211, 0.16), rgba(46, 139, 87, 0.1));
  border: 1px solid rgba(184, 74, 230, 0.4);
  border-radius: var(--c37867-r-lg);
  padding: 14px;
}

.c37867-answer-tag {
  display: inline-block;
  font-family: var(--c37867-font-tech);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c37867-coral);
  margin-bottom: 6px;
}

.c37867-answer p { font-size: 13.5px; color: var(--c37867-text); }
.c37867-answer p + p { margin-top: 8px; color: var(--c37867-muted); }

.c37867-scene {
  border: 1px dashed rgba(240, 128, 128, 0.45);
  border-radius: var(--c37867-r-lg);
  padding: 14px;
  background: rgba(240, 128, 128, 0.05);
}

.c37867-scene q {
  display: block;
  font-size: 13px;
  color: var(--c37867-coral);
  font-style: italic;
  margin-bottom: 8px;
}

/* ---------- 11. Step list ---------- */
.c37867-steps { list-style: none; display: grid; gap: 8px; }

.c37867-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  background: var(--c37867-panel);
  border: 1px solid var(--c37867-line);
  border-radius: var(--c37867-r-sm);
  padding: 10px;
  font-size: 13px;
  color: var(--c37867-muted);
}
.c37867-step strong { color: var(--c37867-text); }

.c37867-step-n {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--c37867-font-tech);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(150deg, var(--c37867-violet-hi), var(--c37867-violet));
}

/* ---------- 12. Checklist chips ---------- */
.c37867-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.c37867-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c37867-text);
  background: var(--c37867-panel-2);
  border: 1px solid var(--c37867-line);
  border-radius: 999px;
  padding: 6px 11px;
}
.c37867-check::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c37867-sea-hi);
  flex: 0 0 auto;
}

/* ---------- 13. FAQ ---------- */
.c37867-faq { display: grid; gap: 8px; }

.c37867-faq-item {
  background: var(--c37867-panel);
  border: 1px solid var(--c37867-line);
  border-radius: var(--c37867-r-md);
  overflow: hidden;
}

.c37867-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.c37867-faq-q::-webkit-details-marker { display: none; }
.c37867-faq-q::after {
  content: "+";
  font-family: var(--c37867-font-tech);
  font-size: 16px;
  color: var(--c37867-coral);
  transition: transform 0.15s ease;
}
.c37867-faq-item[open] .c37867-faq-q::after { transform: rotate(45deg); }

.c37867-faq-a {
  padding: 0 12px 12px;
  font-size: 13px;
  color: var(--c37867-muted);
}

/* ---------- 14. Bonus terms grid ---------- */
.c37867-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.c37867-term {
  background: var(--c37867-panel);
  border: 1px solid var(--c37867-line);
  border-radius: var(--c37867-r-sm);
  padding: 10px;
}
.c37867-term b {
  display: block;
  font-family: var(--c37867-font-tech);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c37867-coral);
  margin-bottom: 4px;
}
.c37867-term span { font-size: 12.5px; color: var(--c37867-muted); }

/* ---------- 15. Affiliate duo ---------- */
.c37867-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.c37867-duocard {
  background: var(--c37867-panel);
  border: 1px solid var(--c37867-line);
  border-top: 3px solid var(--c37867-sea);
  border-radius: var(--c37867-r-sm);
  padding: 11px 10px;
}
.c37867-duocard--violet { border-top-color: var(--c37867-violet); }
.c37867-duocard b { display: block; font-size: 13px; margin-bottom: 4px; }
.c37867-duocard p { font-size: 12px; color: var(--c37867-muted); }

/* ---------- 16. Extended footer ---------- */
.c37867-xfooter {
  padding: 22px 14px 8px;
  background: linear-gradient(180deg, var(--c37867-ink), #171719);
  border-top: 1px solid var(--c37867-line);
}

.c37867-xf-block + .c37867-xf-block { margin-top: 18px; }

.c37867-xf-heading {
  font-family: var(--c37867-font-tech);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c37867-faint);
  margin-bottom: 8px;
}

.c37867-xf-brand p {
  font-size: 12.5px;
  color: var(--c37867-muted);
}

.c37867-xf-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}

.c37867-xf-link {
  display: inline-block;
  padding: 6px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c37867-text);
  border-bottom: 1px dotted rgba(240, 128, 128, 0.35);
  min-height: 34px;
}
.c37867-xf-link:hover { color: var(--c37867-coral); text-decoration: none; }

.c37867-xf-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.c37867-xf-promo {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: var(--c37867-r-sm);
  padding: 8px 10px;
  transition: transform 0.12s ease;
}
.c37867-xf-promo:active { transform: scale(0.95); }
.c37867-xf-promo--main {
  grid-column: 1 / -1;
  min-height: 46px;
  background: linear-gradient(150deg, var(--c37867-violet-hi), var(--c37867-violet));
  font-size: 13px;
}
.c37867-xf-promo--sea { background: linear-gradient(150deg, var(--c37867-sea-hi), var(--c37867-sea)); }
.c37867-xf-promo--coral { background: linear-gradient(150deg, #f7a9a9, var(--c37867-coral)); color: #2a1216; }
.c37867-xf-promo--flat { background: var(--c37867-panel-2); border: 1px solid rgba(184, 74, 230, 0.5); }

.c37867-xf-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--c37867-faint);
  border-left: 2px solid var(--c37867-panel-3);
  padding-left: 10px;
}

.c37867-copy {
  padding: 16px 14px 10px;
  text-align: center;
  font-family: var(--c37867-font-tech);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--c37867-faint);
}

/* ---------- 17. Bottom nav rail ---------- */
.c37867-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  height: calc(var(--c37867-rail-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(16, 16, 18, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--c37867-line);
}

.c37867-rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: var(--c37867-muted);
  transition: transform 0.12s ease, color 0.12s ease;
}
.c37867-rail-item:active { transform: scale(0.92); }

.c37867-rail-ico {
  width: 22px;
  height: 22px;
  display: block;
}
.c37867-rail-ico svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.c37867-rail-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Active role: icon fill flips + coral notch above */
.c37867-rail-item.c37867-is-current { color: var(--c37867-coral); }
.c37867-rail-item.c37867-is-current .c37867-rail-ico svg {
  fill: var(--c37867-coral-soft);
  stroke: var(--c37867-coral);
}
.c37867-rail-item.c37867-is-current::before {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--c37867-coral);
}

/* Center promo role gets a lifted violet pill */
.c37867-rail-item--promo .c37867-rail-ico { margin-top: 0; }
.c37867-rail-item--hotspot {
  color: #fff;
}
.c37867-rail-item--hotspot .c37867-rail-ico {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--c37867-violet-hi), var(--c37867-violet));
  box-shadow: 0 4px 12px var(--c37867-violet-glow);
  margin-top: -14px;
}
.c37867-rail-item--hotspot .c37867-rail-ico svg { stroke: #fff; }

/* ---------- 18. Reveal micro-motion ---------- */
.c37867-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.c37867-reveal.c37867-is-on { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .c37867-reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Width tuning inside the phone canvas ---------- */
@media (min-width: 360px) {
  .c37867-gtile-name { font-size: 11.5px; }
  .c37867-quote { flex: 0 0 76%; }
}

/* Five-column game rows on wider phones */
@media (min-width: 400px) {
  .c37867-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 9px; }
  .c37867-hero-title { font-size: 28px; }
}

/* Desktop: keep the phone frame visible and centered */
@media (min-width: 431px) {
  body { background: #0a0a0b; }
  .c37867-canvas {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 60px rgba(148, 0, 211, 0.12);
  }
}

/* Ultra-wide: add a faint side glow so the frame reads as an app */
@media (min-width: 900px) {
  .c37867-canvas::before,
  .c37867-canvas::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 140px;
    pointer-events: none;
    background: radial-gradient(60% 40% at var(--c37867-side, 100%) 50%, rgba(148, 0, 211, 0.08), transparent 70%);
  }
  .c37867-canvas::before { left: 0; --c37867-side: 0%; }
  .c37867-canvas::after { right: 0; }
}

/* Compatible completion: fixed bands, readable source content and help layouts. */
.c37867-topbar { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; }
.c37867-canvas { padding-top: var(--c37867-topbar-h); }
.c37867-actions { display: flex; align-items: center; gap: 4px; }
.c37867-brand { gap: 6px; }
.c37867-brand-name { font-size: 16px; }
.c37867-seg-btn { min-height: 44px; padding: 0 9px; }
.c37867-burger { width: 44px; height: 44px; }
.c37867-burger span { flex: none; }
.c37867-navpanel { position: fixed; left: 50%; right: auto; transform: translateX(-50%); width: 100%; max-width: 430px; max-height: calc(100dvh - 120px); overflow-y: auto; }
.c37867-navpanel.c37867-is-open { animation: none; }
.c37867-main { padding-bottom: calc(var(--c37867-rail-h) + env(safe-area-inset-bottom, 0px) + 28px); }
.c37867-section { padding-bottom: 18px; }
.c37867-reveal { opacity: 1; transform: none; }
.c37867-gtile-imgframe { display: block; }
.c37867-gtile-name { display: block; overflow: visible; -webkit-line-clamp: unset; overflow-wrap: anywhere; }
.c37867-grid { align-items: start; }
.c37867-dot { width: 44px; height: 44px; }
.c37867-caro-slide img { height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
.c37867-gtile img { height: auto; }
.c37867-burger-lines { width: 16px; }
.c37867-skiplink { min-height: 44px; }
.c37867-caro-cap { position: static; padding: 10px; min-height: 64px; background: var(--c37867-panel); align-items: center; }
.c37867-caro-text { font-size: 12px; }
.c37867-seemore, .c37867-xf-link { min-height: 44px; }
.c37867-xf-promo--main { grid-column: auto; }
.c37867-xf-promo { flex-direction: column; font-size: 12px; }
.c37867-xf-promo small { font-size: 11px; font-weight: 400; }
.c37867-copy { padding-bottom: 18px; }
.c37867-rail-item:hover { text-decoration: none; }
.c37867-prose p, .c37867-prose li, .c37867-prose dd { color: var(--c37867-muted); font-size: 14px; }
.c37867-prose p + p { margin-top: 12px; }
.c37867-prose strong, .c37867-prose dt { color: var(--c37867-text); }
.c37867-prose a { text-decoration: underline; }
.c37867-prose ul, .c37867-prose ol { padding-left: 20px; margin: 12px 0; }
.c37867-prose li + li { margin-top: 10px; }
.c37867-cta { display: block; width: 100%; min-height: 48px; text-align: left; padding: 10px 12px; margin: 14px 0 4px; border-radius: var(--c37867-r-sm); border: 1px solid var(--c37867-violet-hi); background: rgba(148,0,211,.15); color: var(--c37867-text); font-size: 13px; font-weight: 700; }
.c37867-cta:active { background: var(--c37867-violet); transform: scale(.98); }
.c37867-cta--sea { border-color: var(--c37867-sea-hi); background: rgba(46,139,87,.12); }
.c37867-cta--coral { border-color: var(--c37867-coral); background: var(--c37867-coral-soft); }
.c37867-breadcrumb { font-size: 12px; padding: 12px 14px 0; color: var(--c37867-muted); }
.c37867-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.c37867-decision { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.c37867-decision div { background: var(--c37867-panel); border-top: 2px solid var(--c37867-sea); padding: 12px 10px; border-radius: 0 0 8px 8px; }
.c37867-decision div + div { border-color: var(--c37867-coral); }
.c37867-decision b { display: block; margin-bottom: 6px; }
.c37867-decision p { font-size: 13px; }
.c37867-repair { margin: 12px 0; }
.c37867-repair dt { font-weight: 700; margin-top: 14px; border-bottom: 1px solid var(--c37867-line); padding-bottom: 4px; }
.c37867-repair dd { margin: 8px 0 12px; }
.c37867-audit { list-style: none; padding: 0 !important; }
.c37867-audit li { padding: 12px; border-left: 3px solid var(--c37867-sea); background: var(--c37867-panel); border-radius: 0 10px 10px 0; }
.c37867-stop { border: 1px solid var(--c37867-coral); padding: 14px; border-radius: 14px 4px; margin: 12px 0; }
.c37867-review { border-bottom: 1px solid var(--c37867-line); padding: 12px 0; }
.c37867-review:last-child { border-bottom: 0; }
.c37867-review b { display: block; color: var(--c37867-coral); margin-bottom: 6px; }
.c37867-help-question { color: var(--c37867-text) !important; font-weight: 700; margin-top: 14px; }
.c37867-jumps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 12px; }
.c37867-jumps a { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--c37867-panel); border-radius: 8px; font-size: 12px; padding: 6px; }
:target { scroll-margin-top: 68px; }

