/* ==========================================================================
   ph356 mobile-first base styles
   Class prefix:  shellf380b-
   Palette:       #9400D3 primary | #262626 bg | #4A4A4A gray | #696969 gray | #EE82EE accent
   Direction:     monospace accents + regular body, round buttons + square cards,
                  mixed big/small game tiles, step-progression info rhythm,
                  short-distance transitions, compact icon+text CTAs.
   ========================================================================== */

:root {
  --shellf380b-bg: #262626;
  --shellf380b-bg-deep: #1b1b1b;
  --shellf380b-bg-soft: #303030;
  --shellf380b-surface: #333333;
  --shellf380b-surface-2: #3a3a3a;
  --shellf380b-primary: #9400D3;
  --shellf380b-primary-strong: #7b00b5;
  --shellf380b-primary-soft: rgba(148, 0, 211, 0.20);
  --shellf380b-accent: #EE82EE;
  --shellf380b-accent-soft: rgba(238, 130, 238, 0.16);
  --shellf380b-text: #f4f1f6;
  --shellf380b-text-mute: #b8b2bf;
  --shellf380b-text-faint: #8a8590;
  --shellf380b-gray: #696969;
  --shellf380b-gray-2: #4A4A4A;
  --shellf380b-line: rgba(238, 130, 238, 0.20);
  --shellf380b-line-soft: rgba(255, 255, 255, 0.07);
  --shellf380b-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shellf380b-radius-card: 6px;
  --shellf380b-radius-lg: 10px;
  --shellf380b-radius-pill: 999px;
  --shellf380b-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shellf380b-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shellf380b-canvas: 430px;
  --shellf380b-topbar-h: 58px;
  --shellf380b-footbar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #121212;
  color: var(--shellf380b-text);
  font-family: var(--shellf380b-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--shellf380b-accent); outline-offset: 2px; border-radius: 6px; }

/* ===== Canvas (centered phone frame on wide screens) ===== */
.shellf380b-canvas {
  position: relative;
  max-width: var(--shellf380b-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(148, 0, 211, 0.22), transparent 60%),
    linear-gradient(180deg, var(--shellf380b-bg) 0%, var(--shellf380b-bg-deep) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.shellf380b-main { padding-bottom: calc(var(--shellf380b-footbar-h) + 16px); }
.shellf380b-container { width: 100%; padding: 0 14px; }

/* ===== Page heading (unique H1) ===== */
.shellf380b-pagehead { padding: 14px 14px 4px; }
.shellf380b-pagehead h1 {
  font-family: var(--shellf380b-font-mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.3px;
  color: var(--shellf380b-text);
  margin: 0 0 4px;
}
.shellf380b-pagehead h1 span { color: var(--shellf380b-accent); }
.shellf380b-pagehead p {
  font-size: 13px;
  color: var(--shellf380b-text-mute);
  margin: 0;
}
.shellf380b-pagehead-rule {
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--shellf380b-primary) 0%, var(--shellf380b-accent) 60%, transparent 100%);
}

/* ===== Top action bar (LOGO-led) ===== */
.shellf380b-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--shellf380b-topbar-h);
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(38, 38, 38, 0.96) 0%, rgba(38, 38, 38, 0.92) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--shellf380b-line);
}
.shellf380b-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
}
.shellf380b-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--shellf380b-line);
  box-shadow: 0 0 0 3px rgba(148, 0, 211, 0.18);
  flex: 0 0 auto;
}
.shellf380b-brand-name {
  font-family: var(--shellf380b-font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--shellf380b-text);
  white-space: nowrap;
}
.shellf380b-brand-name span { color: var(--shellf380b-accent); }

.shellf380b-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.shellf380b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--shellf380b-radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.shellf380b-btn:active { transform: translateY(1px) scale(0.98); }
.shellf380b-btn--login {
  color: var(--shellf380b-accent);
  border: 1px solid var(--shellf380b-line);
  background: rgba(238, 130, 238, 0.06);
}
.shellf380b-btn--register {
  color: #fff;
  background: linear-gradient(135deg, var(--shellf380b-primary) 0%, var(--shellf380b-primary-strong) 100%);
  box-shadow: 0 4px 14px rgba(148, 0, 211, 0.45);
}
.shellf380b-menu-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--shellf380b-line);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shellf380b-text);
}
.shellf380b-menu-toggle svg { width: 18px; height: 18px; }
.shellf380b-menu-toggle[aria-expanded="true"] { background: var(--shellf380b-primary-soft); }

/* ===== Full-height drawer menu ===== */
.shellf380b-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  pointer-events: none;
}
.shellf380b-drawer[data-open="true"] { visibility: visible; pointer-events: auto; }
.shellf380b-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.shellf380b-drawer[data-open="true"] .shellf380b-drawer-backdrop { opacity: 1; }
.shellf380b-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 86%;
  max-width: 360px;
  background: linear-gradient(180deg, #2c2c2c 0%, #1f1f1f 100%);
  border-left: 1px solid var(--shellf380b-line);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
  padding: 18px 16px calc(var(--shellf380b-footbar-h) + 18px);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.5);
}
.shellf380b-drawer[data-open="true"] .shellf380b-drawer-panel { transform: translateX(0); }
.shellf380b-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.shellf380b-drawer-title {
  font-family: var(--shellf380b-font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--shellf380b-accent);
}
.shellf380b-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--shellf380b-line);
  color: var(--shellf380b-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shellf380b-drawer-close svg { width: 16px; height: 16px; }
.shellf380b-drawer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.shellf380b-drawer-section { margin-bottom: 16px; }
.shellf380b-drawer-label {
  font-family: var(--shellf380b-font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--shellf380b-text-faint);
  margin: 0 0 8px 4px;
}
.shellf380b-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--shellf380b-radius-card);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--shellf380b-line-soft);
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.shellf380b-drawer-link:active { transform: scale(0.99); }
.shellf380b-drawer-link:hover { background: var(--shellf380b-primary-soft); border-color: var(--shellf380b-line); }
.shellf380b-drawer-link-tile {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--shellf380b-primary-soft);
  color: var(--shellf380b-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.shellf380b-drawer-link-tile svg { width: 15px; height: 15px; }
.shellf380b-drawer-link small { margin-left: auto; color: var(--shellf380b-text-faint); font-size: 11px; font-family: var(--shellf380b-font-mono); }

/* ===== Hero carousel ===== */
.shellf380b-hero { padding: 14px 0 4px; }
.shellf380b-carousel { position: relative; border-radius: var(--shellf380b-radius-lg); overflow: hidden; box-shadow: var(--shellf380b-shadow); }
.shellf380b-track { display: flex; transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1); }
.shellf380b-slide { flex: 0 0 100%; position: relative; }
.shellf380b-slide-btn { display: block; width: 100%; padding: 0; }
.shellf380b-slide-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shellf380b-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 16px;
  text-align: left;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.shellf380b-slide-kicker {
  font-family: var(--shellf380b-font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--shellf380b-accent);
  display: inline-block;
  margin-bottom: 4px;
}
.shellf380b-slide-title { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.25; }
.shellf380b-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.shellf380b-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s ease, width 0.2s ease;
}
.shellf380b-dot[data-active="true"] { background: var(--shellf380b-accent); width: 18px; border-radius: 4px; }

/* ===== Quick category strip ===== */
.shellf380b-quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 14px 0 4px;
}
.shellf380b-quick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--shellf380b-radius-card);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--shellf380b-line-soft);
  transition: background 0.18s ease, transform 0.18s ease;
}
.shellf380b-quick-tile:active { transform: scale(0.97); }
.shellf380b-quick-tile:hover { background: var(--shellf380b-primary-soft); }
.shellf380b-quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--shellf380b-primary) 0%, var(--shellf380b-primary-strong) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(148, 0, 211, 0.35);
}
.shellf380b-quick-icon svg { width: 18px; height: 18px; }
.shellf380b-quick-label { font-size: 11px; font-weight: 600; color: var(--shellf380b-text-mute); }

/* ===== Promo action bar ===== */
.shellf380b-promobar {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.shellf380b-promo-card {
  position: relative;
  padding: 12px 12px 14px;
  border-radius: var(--shellf380b-radius-lg);
  background: linear-gradient(135deg, rgba(148, 0, 211, 0.32) 0%, rgba(38, 38, 38, 0.6) 100%);
  border: 1px solid var(--shellf380b-line);
  overflow: hidden;
}
.shellf380b-promo-card::after {
  content: "";
  position: absolute;
  right: -28px; top: -28px;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(238, 130, 238, 0.35), transparent 65%);
  pointer-events: none;
}
.shellf380b-promo-card-kicker {
  font-family: var(--shellf380b-font-mono);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--shellf380b-accent);
}
.shellf380b-promo-card-title { font-size: 15px; font-weight: 800; margin: 3px 0 8px; }
.shellf380b-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--shellf380b-radius-pill);
  background: linear-gradient(135deg, var(--shellf380b-accent) 0%, #c850c8 100%);
  color: #1b1b1b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.shellf380b-cta:active { transform: scale(0.97); }
.shellf380b-cta svg { width: 14px; height: 14px; }
.shellf380b-cta--ghost {
  background: transparent;
  color: var(--shellf380b-accent);
  border: 1px solid var(--shellf380b-line);
}
.shellf380b-cta--block { display: flex; width: 100%; justify-content: center; }

/* ===== Sections ===== */
.shellf380b-section { padding: 22px 0 6px; }
.shellf380b-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.shellf380b-section-kicker {
  font-family: var(--shellf380b-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--shellf380b-accent);
  display: block;
  margin-bottom: 3px;
}
.shellf380b-section-title { font-size: 19px; font-weight: 800; line-height: 1.2; }
.shellf380b-section-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--shellf380b-accent);
  white-space: nowrap;
  font-family: var(--shellf380b-font-mono);
}

/* ===== Game grid (big + small mix) ===== */
.shellf380b-gamegrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.shellf380b-card {
  background: var(--shellf380b-surface);
  border: 1px solid var(--shellf380b-line-soft);
  border-radius: var(--shellf380b-radius-card);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.shellf380b-card:active { transform: scale(0.97); }
.shellf380b-card:hover { border-color: var(--shellf380b-line); box-shadow: 0 6px 16px rgba(148, 0, 211, 0.25); }
.shellf380b-card-imgwrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #202020;
  overflow: hidden;
}
.shellf380b-card-img { width: 100%; height: 100%; object-fit: cover; }
.shellf380b-card-name {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--shellf380b-text-mute);
  padding: 5px 6px 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
}
.shellf380b-card--big { grid-column: span 2; grid-row: span 2; }
.shellf380b-card--big .shellf380b-card-imgwrap { aspect-ratio: auto; flex: 1 1 auto; }
.shellf380b-card--big .shellf380b-card-name { font-size: 13px; min-height: 0; padding: 8px 10px 10px; }
.shellf380b-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  font-family: var(--shellf380b-font-mono);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #1b1b1b;
  background: var(--shellf380b-accent);
  border-radius: 4px;
  font-weight: 800;
}
.shellf380b-card-badge--hot { background: #ff5a5a; color: #fff; }

/* ===== Info modules (step progression) ===== */
.shellf380b-module {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--shellf380b-line-soft);
  border-left: 3px solid var(--shellf380b-primary);
  border-radius: var(--shellf380b-radius-card);
  padding: 14px;
  margin-bottom: 12px;
}
.shellf380b-module--accent { border-left-color: var(--shellf380b-accent); }
.shellf380b-module-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.shellf380b-module-tile {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--shellf380b-primary-soft);
  color: var(--shellf380b-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.shellf380b-module-tile svg { width: 16px; height: 16px; }
.shellf380b-module-title { font-size: 16px; font-weight: 800; }
.shellf380b-module p { color: var(--shellf380b-text-mute); font-size: 14px; margin-bottom: 8px; }
.shellf380b-module p:last-child { margin-bottom: 0; }
.shellf380b-module strong { color: var(--shellf380b-text); }

.shellf380b-steps { display: flex; flex-direction: column; gap: 10px; }
.shellf380b-step { display: flex; gap: 11px; align-items: flex-start; }
.shellf380b-step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--shellf380b-primary) 0%, var(--shellf380b-primary-strong) 100%);
  color: #fff;
  font-family: var(--shellf380b-font-mono);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shellf380b-step-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.shellf380b-step-body p { font-size: 13px; color: var(--shellf380b-text-mute); margin: 0; }

.shellf380b-list { display: flex; flex-direction: column; gap: 7px; }
.shellf380b-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--shellf380b-text-mute);
}
.shellf380b-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--shellf380b-accent);
}

.shellf380b-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shellf380b-mini {
  padding: 10px;
  border-radius: var(--shellf380b-radius-card);
  background: rgba(148, 0, 211, 0.10);
  border: 1px solid var(--shellf380b-line);
}
.shellf380b-mini-label { font-family: var(--shellf380b-font-mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--shellf380b-accent); margin-bottom: 3px; }
.shellf380b-mini-val { font-size: 13px; font-weight: 700; color: var(--shellf380b-text); }

.shellf380b-prose p { color: var(--shellf380b-text-mute); font-size: 14px; margin-bottom: 9px; }
.shellf380b-prose p:last-child { margin-bottom: 0; }
.shellf380b-prose a { color: var(--shellf380b-accent); font-weight: 700; border-bottom: 1px dashed rgba(238, 130, 238, 0.5); }

/* ===== FAQ ===== */
.shellf380b-faq { display: flex; flex-direction: column; gap: 8px; }
.shellf380b-faq details {
  border: 1px solid var(--shellf380b-line-soft);
  border-radius: var(--shellf380b-radius-card);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
}
.shellf380b-faq summary {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 22px;
}
.shellf380b-faq summary::-webkit-details-marker { display: none; }
.shellf380b-faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -1px;
  font-family: var(--shellf380b-font-mono);
  font-size: 18px;
  color: var(--shellf380b-accent);
}
.shellf380b-faq details[open] summary::after { content: "-"; }
.shellf380b-faq-body { padding-top: 8px; font-size: 13.5px; color: var(--shellf380b-text-mute); }

/* ===== Extended footer ===== */
.shellf380b-extfooter {
  margin-top: 26px;
  padding: 22px 14px 18px;
  background: linear-gradient(180deg, rgba(148, 0, 211, 0.10) 0%, rgba(0, 0, 0, 0.25) 100%);
  border-top: 1px solid var(--shellf380b-line);
}
.shellf380b-ext-kicker {
  font-family: var(--shellf380b-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--shellf380b-accent);
  margin-bottom: 6px;
}
.shellf380b-ext-brand { font-size: 14px; color: var(--shellf380b-text-mute); margin-bottom: 18px; }
.shellf380b-ext-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shellf380b-ext-col-title { font-size: 13px; font-weight: 800; margin-bottom: 8px; color: var(--shellf380b-text); }
.shellf380b-ext-col li { margin-bottom: 6px; }
.shellf380b-ext-col a { font-size: 12.5px; color: var(--shellf380b-text-mute); transition: color 0.18s ease; }
.shellf380b-ext-col a:hover { color: var(--shellf380b-accent); }
.shellf380b-ext-promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.shellf380b-ext-promo {
  padding: 10px 6px;
  border-radius: var(--shellf380b-radius-card);
  background: rgba(238, 130, 238, 0.08);
  border: 1px solid var(--shellf380b-line);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--shellf380b-accent);
  transition: background 0.18s ease, transform 0.18s ease;
}
.shellf380b-ext-promo:active { transform: scale(0.97); }
.shellf380b-ext-promo:hover { background: rgba(238, 130, 238, 0.18); }
.shellf380b-ext-promo-tile {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--shellf380b-primary) 0%, var(--shellf380b-primary-strong) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
}
.shellf380b-ext-promo-tile svg { width: 14px; height: 14px; }
.shellf380b-ext-disclaimer {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--shellf380b-radius-card);
  background: rgba(0, 0, 0, 0.25);
  font-size: 11.5px;
  color: var(--shellf380b-text-faint);
  line-height: 1.5;
}

/* ===== Common footer ===== */
.shellf380b-footer {
  padding: 16px 14px 8px;
  border-top: 1px solid var(--shellf380b-line-soft);
  text-align: center;
}
.shellf380b-footer-copy { font-size: 12px; color: var(--shellf380b-text-faint); font-family: var(--shellf380b-font-mono); letter-spacing: 0.5px; }

/* ===== Bottom navigation rail (fixed) ===== */
.shellf380b-footbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shellf380b-canvas);
  height: var(--shellf380b-footbar-h);
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.96) 0%, rgba(18, 18, 18, 0.98) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--shellf380b-line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.shellf380b-footitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--shellf380b-text-faint);
  position: relative;
  min-height: 44px;
}
.shellf380b-footicon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.shellf380b-footicon svg { width: 17px; height: 17px; }
.shellf380b-footlabel { font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }
.shellf380b-footitem--active { color: var(--shellf380b-accent); }
.shellf380b-footitem--active .shellf380b-footicon {
  background: linear-gradient(135deg, var(--shellf380b-primary) 0%, var(--shellf380b-primary-strong) 100%);
  color: #fff;
  box-shadow: 0 0 14px rgba(238, 130, 238, 0.55);
}
.shellf380b-footitem--promo .shellf380b-footicon {
  background: linear-gradient(135deg, var(--shellf380b-accent) 0%, #c850c8 100%);
  color: #1b1b1b;
}
.shellf380b-footitem--promo .shellf380b-footlabel { color: var(--shellf380b-accent); }
.shellf380b-footitem:active .shellf380b-footicon { transform: translateY(-1px); }

/* ===== Utility ===== */
.shellf380b-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.shellf380b-eyebrow {
  font-family: var(--shellf380b-font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--shellf380b-accent);
}

/* ===== Help page layouts ===== */
.shellf380b-help-hero {
  padding: 18px 14px 10px;
  background: linear-gradient(135deg, rgba(148, 0, 211, 0.25), rgba(238, 130, 238, 0.06));
  border-bottom: 1px solid var(--shellf380b-line);
}
.shellf380b-help-hero h1 { font-family: var(--shellf380b-font-mono); font-size: 22px; line-height: 1.2; margin: 4px 0 7px; }
.shellf380b-help-hero p { color: var(--shellf380b-text-mute); font-size: 14px; }
.shellf380b-guide-rail { display: flex; gap: 8px; overflow-x: auto; padding: 14px; scrollbar-width: none; }
.shellf380b-guide-rail::-webkit-scrollbar { display: none; }
.shellf380b-guide-chip { min-width: 92px; min-height: 52px; padding: 8px 10px; border: 1px solid var(--shellf380b-line); border-radius: var(--shellf380b-radius-card); background: rgba(255,255,255,.04); }
.shellf380b-guide-chip strong { display: block; font-family: var(--shellf380b-font-mono); color: var(--shellf380b-accent); font-size: 11px; }
.shellf380b-guide-chip span { font-size: 11px; color: var(--shellf380b-text-mute); }
.shellf380b-callout { border: 1px solid var(--shellf380b-line); border-radius: var(--shellf380b-radius-lg); padding: 14px; background: rgba(148,0,211,.11); }
.shellf380b-callout p { color: var(--shellf380b-text-mute); font-size: 13.5px; }
.shellf380b-callout h3 { font-size: 16px; margin-bottom: 6px; }
.shellf380b-numbered { counter-reset: shellf380b-step; display: grid; gap: 10px; }
.shellf380b-numbered article { counter-increment: shellf380b-step; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--shellf380b-line-soft); }
.shellf380b-numbered article::before { content: counter(shellf380b-step, decimal-leading-zero); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--shellf380b-primary); color: #fff; font: 800 11px var(--shellf380b-font-mono); }
.shellf380b-numbered h3 { font-size: 15px; margin-bottom: 3px; }
.shellf380b-numbered p { color: var(--shellf380b-text-mute); font-size: 13.5px; }
.shellf380b-warning { border-left: 3px solid var(--shellf380b-accent); padding: 11px 12px; background: rgba(238,130,238,.07); }
.shellf380b-warning strong { color: var(--shellf380b-accent); }
.shellf380b-feature-map { display: grid; gap: 9px; }
.shellf380b-feature-row { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--shellf380b-line-soft); }
.shellf380b-feature-row strong { color: var(--shellf380b-accent); font: 700 11px var(--shellf380b-font-mono); text-transform: uppercase; letter-spacing: .8px; }
.shellf380b-feature-row p { color: var(--shellf380b-text-mute); font-size: 13.5px; }
.shellf380b-answer-list { display: grid; gap: 7px; }
.shellf380b-answer-list details { background: rgba(255,255,255,.03); border: 1px solid var(--shellf380b-line-soft); border-radius: var(--shellf380b-radius-card); padding: 11px 12px; }
.shellf380b-answer-list summary { cursor: pointer; font-weight: 700; padding-right: 18px; position: relative; }
.shellf380b-answer-list summary::after { content: '+'; position: absolute; right: 0; color: var(--shellf380b-accent); font-family: var(--shellf380b-font-mono); }
.shellf380b-answer-list details[open] summary::after { content: '−'; }
.shellf380b-answer-list p { padding-top: 8px; color: var(--shellf380b-text-mute); font-size: 13.5px; }
.shellf380b-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shellf380b-inline-actions .shellf380b-cta { min-height: 44px; }

/* ===== Responsive tweaks (still inside the phone canvas) ===== */
@media (min-width: 360px) {
  .shellf380b-section-title { font-size: 21px; }
}
@media (min-width: 414px) {
  .shellf380b-ext-promos { grid-template-columns: repeat(6, 1fr); }
}

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