/* ==========================================================================
   Winzer mobile surface stylesheet
   File: css/mobile-41f888-surface.css
   Class / variable prefix: framef888d-
   Canvas: 320-430px phone-first layout; wide screens keep the centered canvas.
   Palette: #9400D3 #8470FF #D3D3D3 #E6E6FA #0F0F23 #FFB3BA
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --framef888d-ink-deep: #0F0F23;
  --framef888d-ink-soft: #171732;
  --framef888d-ink-card: #1d1d3d;
  --framef888d-violet: #9400D3;
  --framef888d-peri: #8470FF;
  --framef888d-mist: #D3D3D3;
  --framef888d-lav: #E6E6FA;
  --framef888d-blush: #FFB3BA;
  --framef888d-line: rgba(132, 112, 255, 0.28);
  --framef888d-glow: 0 0 14px rgba(132, 112, 255, 0.35);
  --framef888d-radius-s: 4px;
  --framef888d-radius-m: 10px;
  --framef888d-radius-l: 18px;
  --framef888d-tap: 44px;
  --framef888d-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--framef888d-ink-deep);
  background-image: radial-gradient(circle at 12% -4%, rgba(148, 0, 211, 0.22), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(132, 112, 255, 0.14), transparent 38%);
  color: var(--framef888d-lav);
  font-family: var(--framef888d-font);
  font-size: 15px;
  line-height: 1.62;
  font-weight: 300;
  overflow-x: hidden;
  /* room for the fixed top bar and the floating dock */
  padding-top: 54px;
  padding-bottom: 118px;
}

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

a { color: var(--framef888d-blush); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style-position: inside; }

button, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; }

:focus-visible {
  outline: 2px solid var(--framef888d-blush);
  outline-offset: 2px;
}

/* ---------- Phone canvas ---------- */
.framef888d-canvas {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  min-height: 100vh;
  background: var(--framef888d-ink-deep);
  position: relative;
  overflow-x: clip;
}

/* ---------- Ultra-slim fixed top bar ---------- */
.framef888d-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(15, 15, 35, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--framef888d-line);
}

.framef888d-toprow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 7px 10px;
}

.framef888d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-width: 0;
}

.framef888d-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
  box-shadow: 0 0 10px rgba(148, 0, 211, 0.5);
}

.framef888d-brand b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--framef888d-lav);
  white-space: nowrap;
}

.framef888d-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

/* Square-corner, high-contrast CTA pair */
.framef888d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--framef888d-tap);
  padding: 8px 13px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  border-radius: 0;
  transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.framef888d-btn:active { transform: scale(0.96); }

.framef888d-btn--register {
  background: var(--framef888d-blush);
  color: #241028;
  box-shadow: 0 0 12px rgba(255, 179, 186, 0.35);
}

.framef888d-btn--register:hover { box-shadow: 0 0 18px rgba(255, 179, 186, 0.6); text-decoration: none; }

.framef888d-btn--login {
  background: transparent;
  color: var(--framef888d-lav);
  border: 1px solid var(--framef888d-peri);
}

.framef888d-btn--login:hover { box-shadow: var(--framef888d-glow); text-decoration: none; }

.framef888d-burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--framef888d-radius-s);
}

.framef888d-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--framef888d-lav);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.framef888d-burger.framef888d-is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.framef888d-burger.framef888d-is-open span:nth-child(2) { opacity: 0; }
.framef888d-burger.framef888d-is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Layered pull-down menu ---------- */
.framef888d-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(23, 23, 50, 0.985);
  border-bottom: 1px solid var(--framef888d-line);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.55);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.framef888d-menu.framef888d-is-open { max-height: 640px; }

.framef888d-menu-inner { padding: 8px 12px 16px; }

.framef888d-menu-layer { padding: 6px 0; }

.framef888d-menu-layer + .framef888d-menu-layer { border-top: 1px dashed rgba(132, 112, 255, 0.22); }

.framef888d-menu-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--framef888d-peri);
  padding: 6px 4px 2px;
}

.framef888d-menu-cols {
  columns: 2;
  column-gap: 12px;
}

.framef888d-menu a {
  display: block;
  min-height: 40px;
  padding: 9px 8px;
  font-size: 13.5px;
  color: var(--framef888d-lav);
  border-radius: var(--framef888d-radius-s);
  break-inside: avoid;
}

.framef888d-menu a:hover {
  background: rgba(148, 0, 211, 0.18);
  text-decoration: none;
  box-shadow: inset 2px 0 0 var(--framef888d-blush);
}

.framef888d-menu a.framef888d-menu--now {
  color: var(--framef888d-blush);
  font-weight: 700;
}

/* ---------- Main / hero ---------- */
.framef888d-main { padding-bottom: 8px; }

.framef888d-hero {
  padding: 18px 14px 6px;
  background: linear-gradient(180deg, rgba(148, 0, 211, 0.16), transparent 78%);
}

.framef888d-hero h1 {
  font-size: 24px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
  text-wrap: balance;
}

.framef888d-hero p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--framef888d-mist);
}

.framef888d-hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.framef888d-hero-actions .framef888d-btn { flex: 1; }

.framef888d-btn--ghost {
  background: rgba(132, 112, 255, 0.14);
  border: 1px solid var(--framef888d-line);
  color: var(--framef888d-lav);
}

.framef888d-btn--ghost:hover { box-shadow: var(--framef888d-glow); text-decoration: none; }

/* ---------- Promo carousel ---------- */
.framef888d-carousel {
  position: relative;
  margin: 14px 10px 0;
  border-radius: var(--framef888d-radius-m);
  overflow: hidden;
  border: 1px solid var(--framef888d-line);
  background: var(--framef888d-ink-soft);
}

.framef888d-track {
  display: flex;
  transition: transform 0.42s ease;
}

.framef888d-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  text-align: left;
}

.framef888d-slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.framef888d-slide-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(15, 15, 35, 0.92) 62%);
  display: block;
}

.framef888d-slide-text b {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.framef888d-slide-text small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--framef888d-blush);
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* Sliding focus indicator over the dots */
.framef888d-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.framef888d-dot {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.framef888d-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(230, 230, 250, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.framef888d-dot.framef888d-is-on i {
  background: var(--framef888d-blush);
  transform: scale(1.35);
  box-shadow: 0 0 8px rgba(255, 179, 186, 0.8);
}

/* ---------- Category quick-jump chips ---------- */
.framef888d-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 14px 10px 4px;
  scrollbar-width: none;
}

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

.framef888d-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--framef888d-lav);
  border: 1px solid var(--framef888d-line);
  border-radius: 999px;
  background: rgba(29, 29, 61, 0.85);
}

.framef888d-chip svg { width: 14px; height: 14px; stroke: var(--framef888d-blush); }

.framef888d-chip:hover { border-color: var(--framef888d-blush); text-decoration: none; box-shadow: var(--framef888d-glow); }

/* ---------- Games hub search ---------- */
.framef888d-hub {
  margin: 12px 10px 0;
  padding: 12px;
  border: 1px solid var(--framef888d-line);
  border-radius: var(--framef888d-radius-m);
  background: rgba(29, 29, 61, 0.55);
}

.framef888d-hub label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--framef888d-peri);
  margin-bottom: 7px;
}

.framef888d-hub input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--framef888d-lav);
  background: var(--framef888d-ink-deep);
  border: 1px solid var(--framef888d-line);
  border-radius: var(--framef888d-radius-s);
}

.framef888d-hub input::placeholder { color: rgba(211, 211, 211, 0.55); }

.framef888d-hub-hint {
  margin-top: 7px;
  font-size: 11.5px;
  color: rgba(211, 211, 211, 0.7);
}

/* ---------- Section shell (guide rhythm) ---------- */
.framef888d-sec { padding: 22px 10px 4px; }

.framef888d-sec-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-left: 3px solid var(--framef888d-violet);
  padding-left: 9px;
}

.framef888d-sec h2 {
  font-size: 18.5px;
  line-height: 1.32;
  font-weight: 800;
  color: #ffffff;
}

.framef888d-sec-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--framef888d-peri);
  text-transform: uppercase;
  white-space: nowrap;
}

.framef888d-lead {
  margin: 9px 2px 4px;
  font-size: 13.8px;
  color: var(--framef888d-mist);
}

.framef888d-lead a { border-bottom: 1px solid rgba(255, 179, 186, 0.5); }
.framef888d-lead a:hover { text-decoration: none; border-bottom-color: var(--framef888d-blush); }

/* ---------- Compact game grid: 4 cols at 320px, 5 cols on wider phones ---------- */
.framef888d-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.framef888d-gcard {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: var(--framef888d-radius-s);
  background: var(--framef888d-ink-card);
  border: 1px solid rgba(132, 112, 255, 0.16);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.framef888d-gcard:active {
  transform: scale(0.95);
  border-color: var(--framef888d-blush);
  box-shadow: var(--framef888d-glow);
}

.framef888d-gimg {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.framef888d-gname {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 34px;
  padding: 4px 4px 6px;
  font-size: 11px;
  line-height: 1.32;
  font-weight: 700;
  color: var(--framef888d-lav);
  background: linear-gradient(180deg, rgba(148, 0, 211, 0.12), rgba(15, 15, 35, 0.4));
}

.framef888d-sec-empty { display: none; }
.framef888d-sec.framef888d-is-hidden { display: none; }

.framef888d-more {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(211, 211, 211, 0.75);
}

/* ---------- Info panels (app / payments / highlights / takeaways / scenario) ---------- */
.framef888d-panel {
  margin-top: 14px;
  padding: 14px 12px;
  border: 1px solid var(--framef888d-line);
  border-radius: var(--framef888d-radius-m);
  background: linear-gradient(180deg, rgba(29, 29, 61, 0.75), rgba(15, 15, 35, 0.4));
}

.framef888d-panel h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--framef888d-blush);
  margin-bottom: 6px;
}

.framef888d-panel p { font-size: 13.6px; color: var(--framef888d-mist); }
.framef888d-panel p + p,
.framef888d-panel ul + p,
.framef888d-panel h3 + p { margin-top: 8px; }

.framef888d-panel ul,
.framef888d-panel ol { margin-top: 8px; }

.framef888d-panel li {
  font-size: 13.4px;
  color: var(--framef888d-mist);
  padding: 5px 0 5px 2px;
  border-bottom: 1px dashed rgba(132, 112, 255, 0.18);
}

.framef888d-panel li:last-child { border-bottom: 0; }

.framef888d-panel li::marker { color: var(--framef888d-peri); font-weight: 700; }

.framef888d-panel-cta {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.framef888d-panel-cta .framef888d-btn { flex: 1; }

/* Category highlight rows: icon + text label pairs */
.framef888d-catrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(132, 112, 255, 0.18);
}

.framef888d-catrow:last-child { border-bottom: 0; }

.framef888d-catrow svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  stroke: var(--framef888d-blush);
  fill: none;
  stroke-width: 1.7;
}

.framef888d-catrow b {
  display: block;
  font-size: 13.8px;
  font-weight: 800;
  color: var(--framef888d-lav);
}

.framef888d-catrow span { font-size: 13px; color: var(--framef888d-mist); }

/* Scenario dialogue block */
.framef888d-scenario {
  border-left: 3px solid var(--framef888d-blush);
  padding: 8px 0 8px 11px;
  margin-top: 10px;
}

.framef888d-scenario q {
  display: block;
  font-size: 13.4px;
  font-style: italic;
  color: var(--framef888d-lav);
}

.framef888d-scenario q::before { content: "\201C"; color: var(--framef888d-blush); font-weight: 800; }
.framef888d-scenario q::after { content: "\201D"; color: var(--framef888d-blush); font-weight: 800; }

/* ---------- Extended footer: two-column directory ---------- */
.framef888d-xfooter {
  margin-top: 26px;
  padding: 18px 12px 14px;
  border-top: 1px solid var(--framef888d-line);
  background: rgba(23, 23, 50, 0.8);
}

.framef888d-xbrand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(132, 112, 255, 0.22);
}

.framef888d-xbrand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex: none;
}

.framef888d-xbrand b { display: block; font-size: 17px; font-weight: 800; color: #ffffff; }
.framef888d-xbrand span { display: block; font-size: 11.5px; color: rgba(211, 211, 211, 0.8); }

.framef888d-xintro {
  margin: 10px 0 4px;
  font-size: 12.6px;
  color: var(--framef888d-mist);
}

.framef888d-xdir-title {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--framef888d-peri);
}

.framef888d-xdir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 8px;
}

.framef888d-xdir a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 8px;
  font-size: 12.8px;
  color: var(--framef888d-lav);
  border-radius: var(--framef888d-radius-s);
  background: rgba(29, 29, 61, 0.65);
  border: 1px solid rgba(132, 112, 255, 0.14);
}

.framef888d-xdir a svg {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: var(--framef888d-blush);
  fill: none;
  stroke-width: 1.7;
}

.framef888d-xdir a:hover {
  border-color: var(--framef888d-blush);
  text-decoration: none;
  box-shadow: var(--framef888d-glow);
}

.framef888d-xpromo {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.framef888d-xpromo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 10px;
  font-size: 12.6px;
  font-weight: 700;
  text-align: left;
  color: #241028;
  background: var(--framef888d-blush);
  border-radius: 0;
  box-shadow: 0 0 10px rgba(255, 179, 186, 0.22);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.framef888d-xpromo-btn:nth-child(even) {
  background: var(--framef888d-peri);
  color: #10102a;
}

.framef888d-xpromo-btn:hover { box-shadow: 0 0 16px rgba(255, 179, 186, 0.55); }

.framef888d-xpromo-btn:active { transform: scale(0.96); }

.framef888d-xpromo-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: #241028;
  fill: none;
  stroke-width: 1.8;
}

.framef888d-xpromo-btn:nth-child(even) svg { stroke: #10102a; }

.framef888d-xnote {
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px dashed rgba(255, 179, 186, 0.4);
  border-radius: var(--framef888d-radius-s);
  font-size: 11.6px;
  line-height: 1.6;
  color: rgba(211, 211, 211, 0.85);
}

/* ---------- Common footer strip ---------- */
.framef888d-foot {
  padding: 14px 12px 6px;
  text-align: center;
  font-size: 11.6px;
  color: rgba(211, 211, 211, 0.65);
}

/* ---------- Floating dock (fixed bottom nav, 5 roles) ---------- */
.framef888d-dock {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: calc(100% - 16px);
  max-width: 414px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px 4px;
  background: rgba(23, 23, 50, 0.96);
  border: 1px solid var(--framef888d-line);
  border-radius: var(--framef888d-radius-l);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.framef888d-dock a,
.framef888d-dock button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  min-width: 44px;
  padding: 5px 2px;
  border-radius: var(--framef888d-radius-m);
  font-size: 10.3px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--framef888d-mist);
}

.framef888d-dock svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.framef888d-dock a:hover,
.framef888d-dock button:hover { color: var(--framef888d-lav); text-decoration: none; }

.framef888d-dock .framef888d-is-on {
  color: var(--framef888d-blush);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 186, 0.35), var(--framef888d-glow);
}

.framef888d-dock .framef888d-is-on svg { fill: rgba(255, 179, 186, 0.22); stroke: var(--framef888d-blush); }

.framef888d-dock button:active { transform: scale(0.94); }

/* ---------- Wide phones: 430px breakpoint keeps the same canvas, denser grids ---------- */
@media (min-width: 430px) {
  .framef888d-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
  .framef888d-hero h1 { font-size: 26px; }
  .framef888d-sec h2 { font-size: 20px; }
  .framef888d-chip { padding: 7px 14px; }
}

@media (min-width: 396px) and (max-width: 429px) {
  .framef888d-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (prefers-contrast: more) {
  .framef888d-lead,
  .framef888d-panel p,
  .framef888d-panel li { color: #ffffff; }
  .framef888d-gname { color: #ffffff; }
}

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

.framef888d-sr-only-toggle { display: none; }

/* ---------- Help pages: bonus uses a numbered rail; safety uses a ledger ---------- */
.framef888d-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--framef888d-mist);
}

.framef888d-crumb a { color: var(--framef888d-blush); }

.framef888d-answer {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--framef888d-peri);
  background: rgba(132, 112, 255, 0.08);
  font-size: 14px;
  color: #fff;
}

.framef888d-prose { padding: 0 12px 4px; }
.framef888d-prose p { margin-top: 8px; font-size: 13.7px; color: var(--framef888d-mist); }
.framef888d-prose p a { border-bottom: 1px solid rgba(255, 179, 186, 0.45); }

.framef888d-rail { margin: 8px 10px 0; display: flex; flex-direction: column; gap: 12px; }

.framef888d-rail-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--framef888d-line);
  border-radius: var(--framef888d-radius-m);
  background: rgba(29, 29, 61, 0.55);
}

.framef888d-rail-no {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #241028;
  background: var(--framef888d-blush);
}

.framef888d-rail-item h2 { font-size: 16.5px; line-height: 1.3; font-weight: 800; color: #fff; }
.framef888d-rail-item p,
.framef888d-rail-item li { font-size: 13.5px; color: var(--framef888d-mist); margin-top: 8px; }
.framef888d-rail-item ol,
.framef888d-rail-item ul { margin: 6px 0 0 16px; }
.framef888d-rail-item li { margin-top: 6px; }

.framef888d-check {
  margin: 12px 10px 0;
  padding: 12px;
  border: 1px dashed rgba(255, 179, 186, 0.45);
  border-radius: var(--framef888d-radius-s);
}

.framef888d-check h2 { font-size: 16.5px; color: #fff; font-weight: 800; line-height: 1.3; }
.framef888d-check li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--framef888d-mist);
}
.framef888d-check li i {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--framef888d-peri);
}

.framef888d-facts {
  margin: 12px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.framef888d-fact {
  padding: 10px 12px;
  background: var(--framef888d-ink-card);
  border-radius: var(--framef888d-radius-s);
  border-top: 2px solid var(--framef888d-violet);
}

.framef888d-fact b { display: block; font-size: 13px; color: var(--framef888d-blush); margin-bottom: 4px; }
.framef888d-fact span { font-size: 13.3px; color: var(--framef888d-mist); }

.framef888d-textbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13.5px;
  color: #241028;
  background: var(--framef888d-blush);
  border-radius: 0;
  text-align: center;
}

.framef888d-textbtn:hover { box-shadow: 0 0 14px rgba(255, 179, 186, 0.5); text-decoration: none; }
.framef888d-textbtn:active { transform: scale(0.98); }

.framef888d-textbtn--alt {
  background: transparent;
  color: var(--framef888d-lav);
  border: 1px solid var(--framef888d-peri);
}

/* Safety page: question ledger, sideways device cards, closing ribbon */
.framef888d-ledger { margin: 12px 10px 0; }

.framef888d-q {
  padding: 12px 0;
  border-bottom: 1px solid rgba(132, 112, 255, 0.22);
}

.framef888d-q dt {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.framef888d-q dd { margin-top: 6px; font-size: 13.6px; color: var(--framef888d-mist); }

.framef888d-devices {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 10px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.framef888d-devices::-webkit-scrollbar { display: none; }

.framef888d-device {
  flex: 0 0 82%;
  scroll-snap-align: start;
  padding: 12px;
  border-radius: var(--framef888d-radius-m);
  background: linear-gradient(160deg, rgba(148, 0, 211, 0.2), rgba(29, 29, 61, 0.8));
  border: 1px solid var(--framef888d-line);
}

.framef888d-device h3 { font-size: 14.5px; font-weight: 800; color: var(--framef888d-blush); }
.framef888d-device p { margin-top: 6px; font-size: 13.2px; color: var(--framef888d-mist); }

.framef888d-ribbon {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 8px 10px 0;
}

.framef888d-ribbon li {
  position: relative;
  padding: 0 0 14px 28px;
  font-size: 13.5px;
  color: var(--framef888d-mist);
  list-style: none;
}

.framef888d-ribbon li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 0;
  width: 2px;
  background: rgba(132, 112, 255, 0.45);
}

.framef888d-ribbon li:last-child::before { bottom: auto; height: 8px; }

.framef888d-ribbon li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--framef888d-peri);
  box-shadow: 0 0 8px rgba(132, 112, 255, 0.7);
}

.framef888d-ribbon b { color: #fff; }

.framef888d-cues { margin: 10px 10px 0; padding: 0; }
.framef888d-cues li {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed rgba(132, 112, 255, 0.2);
  font-size: 13.4px;
  color: var(--framef888d-mist);
  list-style: none;
}
