/* ==========================================================================
   nnph login - surface mobile stylesheet
   Canvas strategy: 320-430px phone canvas, centered frame on wide screens
   Palette: #FFB3FF / #0E1621 / #880E4F / #FF5722 (dark bg, light text)
   Class prefix: shella576f-
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --shella576f-ink: #0E1621;
  --shella576f-ink-2: #14202f;
  --shella576f-ink-3: #1b2b3f;
  --shella576f-void: #070d15;
  --shella576f-plum: #880E4F;
  --shella576f-plum-2: #b3125f;
  --shella576f-rose: #FFB3FF;
  --shella576f-rose-2: #ffd9f7;
  --shella576f-mist: #a7b4c6;
  --shella576f-mist-2: #7d8ba0;
  --shella576f-ember: #FF5722;
  --shella576f-ember-2: #ff8a52;
  --shella576f-paper: #f4eefb;
  --shella576f-line: rgba(255, 179, 255, 0.15);
  --shella576f-line-2: rgba(255, 179, 255, 0.32);
  --shella576f-r-xl: 22px;
  --shella576f-r-lg: 16px;
  --shella576f-r-md: 11px;
  --shella576f-r-sm: 8px;
  --shella576f-font-head: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --shella576f-font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --shella576f-dock-h: 60px;
  --shella576f-top-h: 100px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

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

body.shella576f-page {
  margin: 0;
  background: var(--shella576f-void);
  color: var(--shella576f-paper);
  font-family: var(--shella576f-font-body);
  font-size: 14.5px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

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

button { font-family: inherit; }

a { color: var(--shella576f-rose); text-decoration: none; }
a:hover { color: var(--shella576f-rose-2); text-decoration: underline; }

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

/* ---------- centered phone canvas ---------- */
.shella576f-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 52% at 50% -4%, rgba(136, 14, 79, 0.42), transparent 62%),
    radial-gradient(90% 40% at 88% 12%, rgba(255, 87, 34, 0.10), transparent 60%),
    var(--shella576f-ink);
  box-shadow: 0 0 0 1px rgba(255, 179, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* ---------- fixed topbar: centered identity bar + action row ---------- */
.shella576f-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(14, 22, 33, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--shella576f-line);
  padding-top: env(safe-area-inset-top);
  transition: box-shadow 0.25s ease;
}

.shella576f-topbar.shella576f-scrolled {
  box-shadow: 0 10px 26px rgba(3, 7, 12, 0.55);
}

/* identity: logo + site name only */
.shella576f-ident {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px 7px;
}

.shella576f-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--shella576f-line-2);
  box-shadow: 0 3px 10px rgba(136, 14, 79, 0.55);
  object-fit: cover;
}

.shella576f-brand {
  font-family: var(--shella576f-font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--shella576f-rose-2);
  white-space: nowrap;
}

.shella576f-brand::after {
  content: "";
  display: block;
  height: 2px;
  width: 46px;
  margin: 1px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--shella576f-ember), var(--shella576f-plum-2));
}

/* action area: full-width-feel primary CTA + login + menu */
.shella576f-actions {
  display: grid;
  grid-template-columns: 1.7fr 1fr auto;
  gap: 8px;
  padding: 0 12px 10px;
}

.shella576f-btn {
  min-height: 44px;
  border: none;
  border-radius: var(--shella576f-r-lg);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.shella576f-btn:active { transform: scale(0.965); }

.shella576f-btn-reg {
  background: linear-gradient(135deg, var(--shella576f-ember) 0%, #ff7043 55%, var(--shella576f-plum-2) 130%);
  color: #fff7f2;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.4);
}

.shella576f-btn-log {
  background: transparent;
  border: 1.5px solid var(--shella576f-line-2);
  color: var(--shella576f-rose);
}

.shella576f-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: var(--shella576f-r-lg);
  border: 1.5px solid var(--shella576f-line);
  background: var(--shella576f-ink-2);
  color: var(--shella576f-rose);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.shella576f-menu-btn:active { transform: scale(0.94); }

.shella576f-menu-btn svg { width: 18px; height: 18px; }

/* collapsible compact route panel */
.shella576f-routes {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px;
  background: rgba(11, 18, 28, 0.98);
  border-bottom: 1px solid var(--shella576f-line);
  box-shadow: 0 22px 34px rgba(3, 7, 12, 0.6);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 59;
}

.shella576f-routes.shella576f-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.shella576f-routes a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 11px;
  border-radius: var(--shella576f-r-md);
  border: 1px solid var(--shella576f-line);
  background: var(--shella576f-ink-2);
  color: var(--shella576f-paper);
  font-size: 13px;
  font-weight: 600;
}

.shella576f-routes a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--shella576f-mist-2);
  flex: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.shella576f-routes a:hover { color: var(--shella576f-rose-2); text-decoration: none; border-color: var(--shella576f-line-2); }

.shella576f-routes a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(136, 14, 79, 0.55), rgba(255, 87, 34, 0.18));
  border-color: var(--shella576f-plum-2);
  color: var(--shella576f-rose-2);
}

.shella576f-routes a[aria-current="page"]::before { background: var(--shella576f-ember); transform: scale(1.35); }

/* ---------- main flow ---------- */
.shella576f-main {
  padding: calc(var(--shella576f-top-h) + 14px) 14px calc(var(--shella576f-dock-h) + 46px);
}

.shella576f-sec { margin: 26px 0; }

/* ---------- hero ---------- */
.shella576f-hero {
  text-align: center;
  padding: 6px 2px 4px;
}

.shella576f-h1 {
  margin: 0 0 10px;
  font-family: var(--shella576f-font-head);
  font-size: 26px;
  line-height: 1.24;
  font-weight: 700;
  color: var(--shella576f-rose-2);
  text-wrap: balance;
}

.shella576f-h1 em {
  font-style: normal;
  color: var(--shella576f-ember-2);
}

.shella576f-hero p {
  margin: 0 0 12px;
  color: var(--shella576f-mist);
  font-size: 13.8px;
  text-align: left;
}

/* hero full-width primary CTA pair */
.shella576f-herocta {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}

.shella576f-cta-main {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: var(--shella576f-r-lg);
  background: linear-gradient(135deg, var(--shella576f-ember) 0%, #ff7043 60%, var(--shella576f-plum-2) 140%);
  color: #fff7f2;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 87, 34, 0.38);
  transition: transform 0.12s ease;
}

.shella576f-cta-main:active { transform: scale(0.97); }

.shella576f-cta-ghost {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--shella576f-r-lg);
  border: 1.5px solid var(--shella576f-line-2);
  background: rgba(20, 32, 47, 0.7);
  color: var(--shella576f-rose);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.shella576f-cta-ghost:active { transform: scale(0.97); }

/* trust chips */
.shella576f-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 2px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.shella576f-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--shella576f-line);
  background: rgba(136, 14, 79, 0.18);
  color: var(--shella576f-rose);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.shella576f-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shella576f-ember);
}

/* ---------- carousel ---------- */
.shella576f-carousel {
  position: relative;
  border-radius: var(--shella576f-r-xl);
  overflow: hidden;
  border: 1px solid var(--shella576f-line);
  box-shadow: 0 12px 30px rgba(3, 7, 12, 0.5);
}

.shella576f-ctrack {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.33, 0.9, 0.3, 1);
}

.shella576f-cslide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  aspect-ratio: 21 / 10;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 179, 255, 0.12);
}

.shella576f-cslide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shella576f-cslide:active img { transform: scale(1.02); }

.shella576f-ccap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(7, 13, 21, 0.92) 78%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.shella576f-ccap strong {
  font-family: var(--shella576f-font-head);
  font-size: 16.5px;
  color: var(--shella576f-rose-2);
  line-height: 1.3;
}

.shella576f-ccap span {
  font-size: 11.5px;
  color: var(--shella576f-mist);
  letter-spacing: 0.4px;
}

.shella576f-ccap .shella576f-ccapgo {
  align-self: flex-start;
  margin-top: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--shella576f-ember);
  color: #fff7f2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.shella576f-cdots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.shella576f-cdot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 179, 255, 0.4);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.shella576f-cdot.shella576f-on {
  width: 22px;
  background: linear-gradient(90deg, var(--shella576f-ember), var(--shella576f-rose));
}

/* ---------- section shells and headings ---------- */
.shella576f-sh {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.shella576f-secno {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 10px 4px 10px 4px;
  background: linear-gradient(140deg, var(--shella576f-plum), #5c0a36);
  border: 1px solid rgba(255, 179, 255, 0.25);
  color: var(--shella576f-rose);
  font-family: var(--shella576f-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.shella576f-h2 {
  margin: 0;
  font-family: var(--shella576f-font-head);
  font-size: 19.5px;
  line-height: 1.28;
  font-weight: 700;
  color: var(--shella576f-paper);
  text-wrap: balance;
}

.shella576f-lead {
  margin: 8px 0 14px;
  color: var(--shella576f-mist);
  font-size: 13.6px;
}

.shella576f-lead a { border-bottom: 1px dashed rgba(255, 179, 255, 0.45); font-weight: 600; }

/* ---------- game grid: compact square tile directory ---------- */
.shella576f-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.shella576f-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px 5px 7px;
  border-radius: var(--shella576f-r-md);
  border: 1px solid var(--shella576f-line);
  background: linear-gradient(180deg, var(--shella576f-ink-2), rgba(20, 32, 47, 0.55));
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: rgba(255, 179, 255, 0.1);
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.shella576f-tile:hover { border-color: var(--shella576f-line-2); }

.shella576f-tile:active { transform: scale(0.93); }

.shella576f-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--shella576f-r-sm);
}

.shella576f-tile-n {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--shella576f-paper);
  overflow-wrap: anywhere;
}

/* ---------- step-progression module ---------- */
.shella576f-steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: shella576f-step;
}

.shella576f-steps li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 18px 0;
  counter-increment: shella576f-step;
}

.shella576f-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--shella576f-plum-2), rgba(136, 14, 79, 0.15));
}

.shella576f-stepno {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 6px;
  background: linear-gradient(140deg, var(--shella576f-ember), var(--shella576f-plum));
  color: #fff7f2;
  font-family: var(--shella576f-font-head);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(255, 87, 34, 0.3);
}

.shella576f-stepno::before { content: counter(shella576f-step); }

.shella576f-steps h3 {
  margin: 3px 0 4px;
  font-family: var(--shella576f-font-head);
  font-size: 15.5px;
  color: var(--shella576f-rose-2);
}

.shella576f-steps p { margin: 0; font-size: 13.2px; color: var(--shella576f-mist); }

.shella576f-steps p a { border-bottom: 1px dashed rgba(255, 179, 255, 0.45); font-weight: 600; }

/* ---------- winners feed ---------- */
.shella576f-wins {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.shella576f-wins li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: var(--shella576f-r-md);
  border: 1px solid var(--shella576f-line);
  background: rgba(20, 32, 47, 0.6);
}

.shella576f-wav {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--shella576f-plum-2), var(--shella576f-plum));
  border: 1px solid rgba(255, 179, 255, 0.3);
  color: var(--shella576f-rose-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.shella576f-wmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.shella576f-wmeta strong { font-size: 12.8px; color: var(--shella576f-paper); font-weight: 700; }

.shella576f-wmeta span { font-size: 11.5px; color: var(--shella576f-mist-2); }

.shella576f-wamt {
  flex: none;
  font-family: var(--shella576f-font-head);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--shella576f-ember-2);
}

.shella576f-wnote {
  margin: 10px 0 0;
  font-size: 11.8px;
  color: var(--shella576f-mist-2);
  border-left: 3px solid rgba(255, 87, 34, 0.5);
  padding-left: 10px;
}

/* ---------- studio partners rail ---------- */
.shella576f-partners {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shella576f-partners::-webkit-scrollbar { display: none; }

.shella576f-partners img {
  flex: none;
  height: 40px;
  width: auto;
  border-radius: var(--shella576f-r-sm);
  border: 1px solid var(--shella576f-line);
  background: rgba(244, 238, 251, 0.94);
  padding: 3px 7px;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.shella576f-partners img:active { opacity: 1; }

/* ---------- relationship map module ---------- */
.shella576f-rel {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.shella576f-rel li {
  padding: 10px 12px;
  border-radius: 4px var(--shella576f-r-lg) 4px var(--shella576f-r-lg);
  border: 1px solid var(--shella576f-line);
  border-left: 3px solid var(--shella576f-plum-2);
  background: rgba(20, 32, 47, 0.55);
}

.shella576f-rel strong {
  display: block;
  font-family: var(--shella576f-font-head);
  font-size: 14px;
  color: var(--shella576f-rose-2);
}

.shella576f-rel p { margin: 3px 0 0; font-size: 12.8px; color: var(--shella576f-mist); }

.shella576f-rel p a, .shella576f-what a, .shella576f-lead a { font-weight: 600; }

/* ---------- informational blocks ---------- */
.shella576f-what p {
  margin: 8px 0;
  color: var(--shella576f-mist);
  font-size: 13.4px;
}

.shella576f-qa {
  margin: 12px 0;
  padding: 11px 13px;
  border-radius: var(--shella576f-r-md);
  border: 1px dashed rgba(255, 179, 255, 0.28);
  background: rgba(136, 14, 79, 0.14);
}

.shella576f-qa h3 {
  margin: 0 0 5px;
  font-family: var(--shella576f-font-head);
  font-size: 14.5px;
  color: var(--shella576f-rose-2);
}

.shella576f-qa p { margin: 0; font-size: 12.9px; color: var(--shella576f-mist); }

/* ---------- extended footer (home only) ---------- */
.shella576f-xfoot {
  margin: 30px 0 0;
  padding: 18px 14px 16px;
  border-radius: var(--shella576f-r-xl) var(--shella576f-r-xl) 10px 10px;
  border: 1px solid var(--shella576f-line);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(136, 14, 79, 0.32), transparent 70%),
    var(--shella576f-ink-2);
  display: grid;
  gap: 16px;
}

.shella576f-xt {
  margin: 0 0 9px;
  font-family: var(--shella576f-font-head);
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--shella576f-rose);
}

.shella576f-xpromo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.shella576f-xpromo button {
  min-height: 46px;
  padding: 6px 8px;
  border-radius: var(--shella576f-r-md);
  border: 1px solid rgba(255, 87, 34, 0.4);
  background: linear-gradient(140deg, rgba(255, 87, 34, 0.2), rgba(136, 14, 79, 0.3));
  color: var(--shella576f-rose-2);
  font-size: 12.4px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.shella576f-xpromo button:hover { border-color: var(--shella576f-ember); }

.shella576f-xpromo button:active { transform: scale(0.95); }

.shella576f-xbrand { margin: 0; font-size: 12.8px; color: var(--shella576f-mist); }

.shella576f-xdir { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }

.shella576f-xdir a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 4px 6px;
  border-radius: var(--shella576f-r-sm);
  border: 1px solid var(--shella576f-line);
  background: rgba(14, 22, 33, 0.7);
  color: var(--shella576f-paper);
  font-size: 10.8px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.shella576f-xdir a:hover { color: var(--shella576f-rose-2); text-decoration: none; border-color: var(--shella576f-line-2); }

.shella576f-xdisc {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--shella576f-line);
  font-size: 11.4px;
  line-height: 1.6;
  color: var(--shella576f-mist-2);
}

/* ---------- generic copyright bar ---------- */
.shella576f-copy {
  padding: 14px 16px calc(var(--shella576f-dock-h) + 20px);
  text-align: center;
  font-size: 11.6px;
  color: var(--shella576f-mist-2);
  letter-spacing: 0.4px;
}

/* ---------- floating dock: 5-role bottom navigation ---------- */
.shella576f-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--shella576f-dock-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(16, 25, 38, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--shella576f-line-2);
  box-shadow: 0 -10px 30px rgba(3, 7, 12, 0.55);
}

.shella576f-dock-i {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--shella576f-dock-h);
  padding: 6px 2px 5px;
  border: none;
  background: transparent;
  color: var(--shella576f-mist);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(255, 179, 255, 0.1);
  transition: color 0.15s ease, transform 0.12s ease;
}

.shella576f-dock-i:hover { color: var(--shella576f-rose); text-decoration: none; }

.shella576f-dock-i:active { transform: scale(0.92); }

.shella576f-dock-i svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.18s ease, stroke 0.18s ease, transform 0.18s ease;
}

/* active role: top indicator line + filled icon state */
.shella576f-dock-i::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: transparent;
  transition: background 0.18s ease;
}

.shella576f-dock-i.shella576f-on { color: var(--shella576f-rose); }

.shella576f-dock-i.shella576f-on::before {
  background: linear-gradient(90deg, var(--shella576f-ember), var(--shella576f-rose));
}

.shella576f-dock-i.shella576f-on svg {
  fill: currentColor;
  stroke: var(--shella576f-rose);
  transform: translateY(-1px);
}

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

/* ---------- help-page editorial modules ---------- */
.shella576f-help-hero {
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--shella576f-line-2);
}

.shella576f-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 5px 13px 5px 13px;
  background: rgba(255, 87, 34, 0.17);
  border: 1px solid rgba(255, 87, 34, 0.42);
  color: var(--shella576f-ember-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shella576f-help-hero .shella576f-h1 { margin-top: 12px; text-align: left; }
.shella576f-help-hero p { margin: 8px 0 0; color: var(--shella576f-mist); font-size: 13.7px; }

.shella576f-note-stack { display: grid; gap: 9px; margin-top: 13px; }

.shella576f-note {
  position: relative;
  padding: 12px 13px 12px 42px;
  border: 1px solid var(--shella576f-line);
  border-radius: 6px 16px 6px 16px;
  background: linear-gradient(135deg, rgba(136, 14, 79, 0.26), rgba(20, 32, 47, 0.72));
}

.shella576f-note::before {
  content: "!";
  position: absolute;
  left: 13px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--shella576f-ember);
  color: #fff7f2;
  font-family: var(--shella576f-font-head);
  font-weight: 800;
}

.shella576f-note strong { display: block; margin-bottom: 2px; color: var(--shella576f-rose-2); font-size: 13.4px; }
.shella576f-note span { display: block; color: var(--shella576f-mist); font-size: 12.6px; line-height: 1.55; }

.shella576f-checks {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.shella576f-checks li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 11px;
  border-left: 3px solid var(--shella576f-ember);
  border-radius: 4px var(--shella576f-r-md) var(--shella576f-r-md) 4px;
  background: rgba(20, 32, 47, 0.68);
}

.shella576f-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--shella576f-plum);
  color: var(--shella576f-rose-2);
  font-size: 14px;
  font-weight: 800;
}

.shella576f-checks strong { display: block; color: var(--shella576f-paper); font-size: 13.2px; line-height: 1.35; }
.shella576f-checks p { margin: 3px 0 0; color: var(--shella576f-mist); font-size: 12.6px; }

.shella576f-stepband {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 13px 0 4px;
}

.shella576f-stepband span {
  min-height: 54px;
  padding: 8px 5px 6px;
  border-top: 3px solid var(--shella576f-plum-2);
  border-radius: 4px 4px 10px 10px;
  background: rgba(136, 14, 79, 0.2);
  color: var(--shella576f-rose-2);
  font-size: 10.7px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.shella576f-stepband b { display: block; margin-bottom: 2px; color: var(--shella576f-ember-2); font-size: 13px; }

.shella576f-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(255, 87, 34, 0.42);
  border-radius: var(--shella576f-r-lg) 5px var(--shella576f-r-lg) 5px;
  background: linear-gradient(110deg, rgba(255, 87, 34, 0.2), rgba(136, 14, 79, 0.3));
}

.shella576f-inline-cta p { margin: 0; color: var(--shella576f-rose-2); font-size: 12.8px; font-weight: 700; line-height: 1.4; }
.shella576f-inline-cta button { flex: none; min-height: 44px; padding: 7px 12px; border: 0; border-radius: var(--shella576f-r-md); background: var(--shella576f-ember); color: #fff7f2; font-weight: 800; cursor: pointer; }

.shella576f-accordion-list { display: grid; gap: 8px; margin-top: 12px; }
.shella576f-accordion-list details { border: 1px solid var(--shella576f-line); border-radius: var(--shella576f-r-md); background: rgba(20, 32, 47, 0.68); overflow: hidden; }
.shella576f-accordion-list summary { min-height: 44px; padding: 11px 35px 11px 12px; position: relative; cursor: pointer; color: var(--shella576f-rose-2); font-family: var(--shella576f-font-head); font-size: 14px; font-weight: 700; }
.shella576f-accordion-list summary::after { content: "+"; position: absolute; right: 13px; top: 8px; color: var(--shella576f-ember-2); font-family: var(--shella576f-font-body); font-size: 21px; }
.shella576f-accordion-list details[open] summary::after { content: "-"; }
.shella576f-accordion-list details p { margin: 0; padding: 0 12px 12px; color: var(--shella576f-mist); font-size: 12.8px; }

/* The about page uses a fact ledger and timeline rather than the tips checklist. */
.shella576f-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 13px;
}

.shella576f-ledger div { min-height: 82px; padding: 10px; border: 1px solid var(--shella576f-line); border-radius: var(--shella576f-r-sm) var(--shella576f-r-lg) var(--shella576f-r-sm) var(--shella576f-r-lg); background: rgba(20, 32, 47, 0.72); }
.shella576f-ledger dt { color: var(--shella576f-mist-2); font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }
.shella576f-ledger dd { margin: 4px 0 0; color: var(--shella576f-rose-2); font-family: var(--shella576f-font-head); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }

.shella576f-timeline { list-style: none; margin: 13px 0 0; padding: 0 0 0 8px; border-left: 2px solid var(--shella576f-plum-2); }
.shella576f-timeline li { position: relative; padding: 0 0 17px 17px; }
.shella576f-timeline li:last-child { padding-bottom: 2px; }
.shella576f-timeline li::before { content: ""; position: absolute; left: -8px; top: 2px; width: 13px; height: 13px; border: 3px solid var(--shella576f-ink); border-radius: 50%; background: var(--shella576f-ember); }
.shella576f-timeline h3 { margin: 0 0 4px; color: var(--shella576f-rose-2); font-family: var(--shella576f-font-head); font-size: 15px; }
.shella576f-timeline p { margin: 0; color: var(--shella576f-mist); font-size: 12.9px; }

.shella576f-mistake-grid { display: grid; gap: 8px; margin-top: 12px; }
.shella576f-mistake { padding: 11px 12px 11px 14px; border-right: 3px solid var(--shella576f-ember); border-radius: var(--shella576f-r-md) 4px 4px var(--shella576f-r-md); background: rgba(136, 14, 79, 0.18); }
.shella576f-mistake h3 { margin: 0 0 3px; color: var(--shella576f-paper); font-family: var(--shella576f-font-head); font-size: 14.3px; }
.shella576f-mistake p { margin: 0; color: var(--shella576f-mist); font-size: 12.7px; }

.shella576f-facttable { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: 7px; font-size: 12.2px; }
.shella576f-facttable th { width: 36%; padding: 8px 9px; color: var(--shella576f-rose); text-align: left; vertical-align: top; font-weight: 800; }
.shella576f-facttable td { padding: 8px 9px; border-radius: 0 var(--shella576f-r-sm) var(--shella576f-r-sm) 0; background: rgba(20, 32, 47, 0.7); color: var(--shella576f-mist); vertical-align: top; }

.shella576f-about-qa { display: grid; gap: 7px; margin-top: 12px; }
.shella576f-about-qa article { padding: 10px 12px; border-bottom: 1px solid var(--shella576f-line-2); }
.shella576f-about-qa h3 { margin: 0 0 3px; color: var(--shella576f-rose-2); font-family: var(--shella576f-font-head); font-size: 14.2px; }
.shella576f-about-qa p { margin: 0; color: var(--shella576f-mist); font-size: 12.8px; }

.shella576f-disclosure { margin-top: 14px; padding: 12px; border: 1px dashed var(--shella576f-line-2); border-radius: 4px 15px 4px 15px; color: var(--shella576f-mist-2); font-size: 11.8px; }

/* ---------- responsive tuning inside the phone canvas ---------- */
@media (min-width: 375px) {
  .shella576f-grid { gap: 9px; }
  .shella576f-h1 { font-size: 28px; }
  .shella576f-h2 { font-size: 21px; }
  .shella576f-xdir { gap: 8px; }
}

@media (min-width: 400px) {
  .shella576f-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shella576f-tile-n { font-size: 10.5px; }
}

@media (min-width: 430px) {
  .shella576f-canvas { border-radius: 0; }
  .shella576f-main { padding-left: 18px; padding-right: 18px; }
  .shella576f-dock { border-radius: 18px 18px 0 0; }
  .shella576f-topbar { border-radius: 0 0 18px 18px; }
}

/* ---------- motion budget: icon-level micro changes only ---------- */
@media (prefers-reduced-motion: reduce) {
  .shella576f-ctrack { transition: none; }
  .shella576f-tile,
  .shella576f-btn,
  .shella576f-dock-i,
  .shella576f-cta-main,
  .shella576f-cta-ghost,
  .shella576f-xpromo button {
    transition: none;
  }
}
