/* ==========================================================================
   888starz apk download - mobile-first stylesheet
   Phone canvas: 320-430px, centered on wide screens.
   Palette: #1B263B (deep) / #34495E (mid) / #DCDCDC (light) / #66CDAA (accent)
   Class prefix: shelld98c8-
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --shelld98c8-bg: #1B263B;
  --shelld98c8-bg-deep: #131C2C;
  --shelld98c8-panel: #223350;
  --shelld98c8-panel-2: #1E2A42;
  --shelld98c8-mid: #34495E;
  --shelld98c8-line: #3A5069;
  --shelld98c8-line-soft: rgba(58, 80, 105, 0.55);
  --shelld98c8-ink: #DCDCDC;
  --shelld98c8-ink-dim: #A6B2C2;
  --shelld98c8-ink-faint: #7E8CA0;
  --shelld98c8-accent: #66CDAA;
  --shelld98c8-accent-deep: #3FA685;
  --shelld98c8-on-accent: #0F1E2A;
  --shelld98c8-danger: #E08A7A;
  --shelld98c8-radius: 5px;
  --shelld98c8-radius-lg: 8px;
  --shelld98c8-top-h: 56px;
  --shelld98c8-dock-h: 58px;
  --shelld98c8-font-body: "Segoe UI", "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", system-ui, -apple-system, Arial, sans-serif;
  --shelld98c8-font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

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

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

body.shelld98c8-page {
  margin: 0;
  font-family: var(--shelld98c8-font-body);
  font-size: 14px;
  line-height: 1.62;
  color: var(--shelld98c8-ink);
  background-color: var(--shelld98c8-bg-deep);
  /* faint ruled texture gives the frame a technical, plotted feel */
  background-image: repeating-linear-gradient(
    180deg,
    rgba(52, 73, 94, 0.14) 0px,
    rgba(52, 73, 94, 0.14) 1px,
    transparent 1px,
    transparent 26px
  );
}

body.shelld98c8-no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; }

a { color: var(--shelld98c8-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--shelld98c8-accent);
  outline-offset: 2px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--shelld98c8-accent); color: var(--shelld98c8-on-accent); }

/* ---------- centered phone canvas ---------- */
.shelld98c8-canvas {
  position: relative;
  max-width: 430px;
  margin-inline: auto;
  min-height: 100vh;
  background: var(--shelld98c8-bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

@media (min-width: 460px) {
  .shelld98c8-canvas {
    border-inline: 1px solid var(--shelld98c8-line-soft);
  }
}

/* ---------- skip link ---------- */
.shelld98c8-skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 200;
  background: var(--shelld98c8-accent);
  color: var(--shelld98c8-on-accent);
  font-weight: 700;
  font-size: 12px;
  padding: 9px 14px;
  border-radius: var(--shelld98c8-radius);
  transition: top 0.18s ease;
}
.shelld98c8-skip:focus { top: 8px; text-decoration: none; }

/* ==========================================================================
   Top bar - edge-aligned functional header
   ========================================================================== */
.shelld98c8-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--shelld98c8-top-h);
  padding: 8px 12px 8px 10px;
  background: linear-gradient(180deg, rgba(27, 38, 59, 0.98), rgba(24, 34, 53, 0.94));
  border-bottom: 1px solid var(--shelld98c8-line);
  backdrop-filter: blur(6px);
}

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

.shelld98c8-brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 7px;
  border: 1px solid var(--shelld98c8-line);
  background: #0E1727;
  object-fit: cover;
  display: block;
}

.shelld98c8-brand-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--shelld98c8-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shelld98c8-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* staggered primary / secondary CTAs */
.shelld98c8-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border-radius: var(--shelld98c8-radius);
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.shelld98c8-btn--primary {
  background: var(--shelld98c8-accent);
  color: var(--shelld98c8-on-accent);
  padding: 0 15px;
  font-size: 12.5px;
  box-shadow: 0 3px 0 var(--shelld98c8-accent-deep);
}
.shelld98c8-btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--shelld98c8-accent-deep);
}

.shelld98c8-btn--ghost {
  background: transparent;
  border: 1px solid var(--shelld98c8-line);
  color: var(--shelld98c8-ink);
  padding: 0 11px;
  font-size: 11.5px;
}
.shelld98c8-btn--ghost:active {
  border-color: var(--shelld98c8-accent);
  color: var(--shelld98c8-accent);
}

/* burger - three bars morph into an X */
.shelld98c8-burger {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--shelld98c8-line);
  border-radius: var(--shelld98c8-radius);
  cursor: pointer;
}
.shelld98c8-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--shelld98c8-ink);
  transition: transform 0.22s ease, opacity 0.18s ease, width 0.22s ease;
}
.shelld98c8-burger span:nth-child(2) { width: 12px; justify-self: center; }
.shelld98c8-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.shelld98c8-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.shelld98c8-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.shelld98c8-burger:active { border-color: var(--shelld98c8-accent); }
.shelld98c8-burger:active span { background: var(--shelld98c8-accent); }

/* ==========================================================================
   Full-height menu layer
   ========================================================================== */
.shelld98c8-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
}
.shelld98c8-menu.shelld98c8-is-open {
  pointer-events: auto;
  visibility: visible;
}

.shelld98c8-menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 28, 0.72);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.shelld98c8-menu.shelld98c8-is-open .shelld98c8-menu-scrim { opacity: 1; }

.shelld98c8-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(84%, 340px);
  background: var(--shelld98c8-bg);
  border-left: 1px solid var(--shelld98c8-line);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.26s cubic-bezier(0.22, 0.9, 0.3, 1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.shelld98c8-menu.shelld98c8-is-open .shelld98c8-menu-panel { transform: translateX(0); }

.shelld98c8-menu-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid var(--shelld98c8-line);
  background: var(--shelld98c8-panel-2);
}

.shelld98c8-menu-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--shelld98c8-line);
  background: #0E1727;
  object-fit: cover;
}

.shelld98c8-menu-brand {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.shelld98c8-menu-close {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  background: transparent;
  border: 1px solid var(--shelld98c8-line);
  border-radius: var(--shelld98c8-radius);
  color: var(--shelld98c8-ink);
  cursor: pointer;
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.shelld98c8-menu-close:active {
  color: var(--shelld98c8-accent);
  border-color: var(--shelld98c8-accent);
  transform: rotate(90deg);
}

.shelld98c8-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 16px;
}

.shelld98c8-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--shelld98c8-ink);
  font-size: 13.5px;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.shelld98c8-menu-item:hover {
  background: var(--shelld98c8-panel);
  text-decoration: none;
}
.shelld98c8-menu-item:active { color: var(--shelld98c8-accent); }

.shelld98c8-menu-idx {
  font-family: var(--shelld98c8-font-mono);
  font-size: 10px;
  color: var(--shelld98c8-accent);
  letter-spacing: 0.1em;
  width: 22px;
  flex: 0 0 auto;
}

.shelld98c8-menu-rule {
  margin: 8px 14px;
  border: 0;
  border-top: 1px dashed var(--shelld98c8-line-soft);
}

.shelld98c8-menu-cta {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--shelld98c8-line);
  background: var(--shelld98c8-panel-2);
}

/* ==========================================================================
   Main column
   ========================================================================== */
.shelld98c8-main {
  padding: calc(var(--shelld98c8-top-h) + 14px) 12px calc(var(--shelld98c8-dock-h) + 40px);
}

.shelld98c8-sec { margin-top: 26px; }

/* reveal-on-scroll helper (subtle, respects reduced motion) */
.shelld98c8-sec,
.shelld98c8-hero { opacity: 0; transform: translateY(8px); }
.shelld98c8-is-in { opacity: 1; transform: none; }
.shelld98c8-hero { transition: opacity 0.3s ease, transform 0.3s ease; }
.shelld98c8-sec { transition: opacity 0.35s ease, transform 0.35s ease; }

/* ---------- hero ---------- */
.shelld98c8-hero { padding-top: 4px; }

.shelld98c8-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--shelld98c8-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--shelld98c8-accent);
  border: 1px solid var(--shelld98c8-line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--shelld98c8-panel-2);
}
.shelld98c8-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--shelld98c8-accent);
  box-shadow: 0 0 6px var(--shelld98c8-accent);
}

h1.shelld98c8-hero-title {
  margin: 12px 0 10px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #F2F5F8;
}

.shelld98c8-hero-title em {
  font-style: normal;
  color: var(--shelld98c8-accent);
}

.shelld98c8-hero-lead {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--shelld98c8-ink-dim);
}

/* compact metric chips */
.shelld98c8-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 0 16px;
}

.shelld98c8-metric {
  border: 1px solid var(--shelld98c8-line);
  border-radius: var(--shelld98c8-radius);
  background: var(--shelld98c8-panel-2);
  padding: 7px 8px;
  text-align: center;
}
.shelld98c8-metric b {
  display: block;
  font-family: var(--shelld98c8-font-mono);
  font-size: 14px;
  color: var(--shelld98c8-accent);
  line-height: 1.2;
}
.shelld98c8-metric span {
  display: block;
  font-size: 9.5px;
  color: var(--shelld98c8-ink-faint);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ==========================================================================
   Carousel
   ========================================================================== */
.shelld98c8-carousel {
  position: relative;
  border: 1px solid var(--shelld98c8-line);
  border-radius: var(--shelld98c8-radius-lg);
  overflow: hidden;
  background: var(--shelld98c8-bg-deep);
  touch-action: pan-y;
}

.shelld98c8-slide {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: #0E1727;
  cursor: pointer;
  position: relative;
  aspect-ratio: 2 / 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  position: absolute;
  inset: 0;
}
.shelld98c8-slide.shelld98c8-is-active { opacity: 1; position: relative; }

.shelld98c8-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shelld98c8-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 26px 12px 10px;
  text-align: left;
  background: linear-gradient(180deg, rgba(15, 23, 39, 0) 0%, rgba(15, 23, 39, 0.88) 62%, rgba(15, 23, 39, 0.96) 100%);
}

.shelld98c8-slide-tag {
  font-family: var(--shelld98c8-font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--shelld98c8-on-accent);
  background: var(--shelld98c8-accent);
  border-radius: 3px;
  padding: 2px 7px;
}

.shelld98c8-slide-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #F4F7FA;
}

.shelld98c8-slide-hint {
  font-size: 10.5px;
  color: var(--shelld98c8-accent);
  letter-spacing: 0.05em;
}

.shelld98c8-car-arrow {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 44px;
  display: grid;
  place-content: center;
  background: rgba(19, 28, 44, 0.78);
  border: 1px solid var(--shelld98c8-line-soft);
  color: var(--shelld98c8-ink);
  cursor: pointer;
  z-index: 3;
  transition: background 0.16s ease, color 0.16s ease;
}
.shelld98c8-car-arrow--prev { left: 0; border-radius: 0 var(--shelld98c8-radius) var(--shelld98c8-radius) 0; border-left: 0; }
.shelld98c8-car-arrow--next { right: 0; border-radius: var(--shelld98c8-radius) 0 0 var(--shelld98c8-radius); border-right: 0; }
.shelld98c8-car-arrow:active { color: var(--shelld98c8-accent); background: rgba(30, 42, 66, 0.9); }
.shelld98c8-car-arrow svg { transition: transform 0.18s ease; }
.shelld98c8-car-arrow--prev:active svg { transform: translateX(-2px); }
.shelld98c8-car-arrow--next:active svg { transform: translateX(2px); }

.shelld98c8-car-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.shelld98c8-car-dot {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.shelld98c8-car-dot::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(220, 220, 220, 0.42);
  transition: background 0.18s ease, transform 0.18s ease;
}
.shelld98c8-car-dot:active::before { transform: scale(1.25); }
.shelld98c8-car-dot.shelld98c8-is-on::before {
  background: var(--shelld98c8-accent);
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(102, 205, 170, 0.7);
}

/* ==========================================================================
   Category shortcut strip
   ========================================================================== */
.shelld98c8-catstrip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 14px 2px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shelld98c8-catstrip::-webkit-scrollbar { display: none; }

.shelld98c8-catlink {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--shelld98c8-line);
  border-radius: 999px;
  background: var(--shelld98c8-panel-2);
  color: var(--shelld98c8-ink-dim);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.shelld98c8-catlink i {
  font-style: normal;
  font-family: var(--shelld98c8-font-mono);
  font-size: 9px;
  color: var(--shelld98c8-accent);
}
.shelld98c8-catlink:active,
.shelld98c8-catlink.shelld98c8-is-on {
  color: var(--shelld98c8-accent);
  border-color: var(--shelld98c8-accent);
  text-decoration: none;
}

/* ==========================================================================
   Sections, headings, game grid
   ========================================================================== */
.shelld98c8-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  border-bottom: 2px solid var(--shelld98c8-mid);
  padding-bottom: 7px;
  margin-bottom: 9px;
}

.shelld98c8-sec-idx {
  font-family: var(--shelld98c8-font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--shelld98c8-accent);
  align-self: center;
}

h2.shelld98c8-sec-title {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: 0.01em;
  color: #EDF1F5;
  flex: 1 1 100%;
}

.shelld98c8-sec-count {
  order: 3;
  font-family: var(--shelld98c8-font-mono);
  font-size: 9.5px;
  color: var(--shelld98c8-ink-faint);
  border: 1px solid var(--shelld98c8-line-soft);
  border-radius: 3px;
  padding: 2px 6px;
}

.shelld98c8-sec-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--shelld98c8-ink-dim);
}

.shelld98c8-sec-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 10px 0 4px;
  font-size: 11.5px;
}
.shelld98c8-sec-links b {
  color: var(--shelld98c8-ink-faint);
  font-weight: 600;
  font-size: 10.5px;
}
.shelld98c8-sec-links a { font-weight: 700; }

/* outlined tile cards */
.shelld98c8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

@media (min-width: 375px) {
  .shelld98c8-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
  }
}

@media (min-width: 430px) {
  .shelld98c8-grid { gap: 10px; }
  .shelld98c8-tile-name { font-size: 11px; }
}

.shelld98c8-tile {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  padding: 5px 4px 6px;
  background: linear-gradient(180deg, #24344E 0%, #1F2C44 100%);
  border: 1px solid var(--shelld98c8-line);
  border-radius: var(--shelld98c8-radius);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.shelld98c8-tile:hover { border-color: var(--shelld98c8-accent-deep); }
.shelld98c8-tile:active {
  border-color: var(--shelld98c8-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.shelld98c8-tile-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 3px;
  background: #0E1727;
  border: 1px solid var(--shelld98c8-line-soft);
  border-radius: 4px;
  overflow: hidden;
}

.shelld98c8-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.shelld98c8-tile-name {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--shelld98c8-ink);
  min-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  padding: 0 1px;
}

/* ==========================================================================
   Content modules
   ========================================================================== */

/* module 1: comparison rows */
.shelld98c8-duo { display: grid; gap: 8px; margin-top: 10px; }

.shelld98c8-duo-row {
  background: var(--shelld98c8-panel-2);
  border: 1px solid var(--shelld98c8-line);
  border-left: 3px solid var(--shelld98c8-accent);
  border-radius: var(--shelld98c8-radius);
  padding: 9px 11px;
}

.shelld98c8-duo-key {
  font-size: 13px;
  font-weight: 800;
  color: #EDF1F5;
  margin: 0 0 4px;
}

.shelld98c8-duo-row dl {
  margin: 0;
  display: grid;
  gap: 3px;
  font-size: 12px;
}
.shelld98c8-duo-row dt {
  color: var(--shelld98c8-accent);
  font-family: var(--shelld98c8-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}
.shelld98c8-duo-row dd { margin: 0 0 4px; color: var(--shelld98c8-ink-dim); }
.shelld98c8-duo-row dd:last-child { margin-bottom: 0; }

/* module 2: category shelf cards */
.shelld98c8-shelf {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.shelld98c8-shelf-card {
  border: 1px solid var(--shelld98c8-line);
  border-top: 2px solid var(--shelld98c8-mid);
  border-radius: var(--shelld98c8-radius);
  background: var(--shelld98c8-panel-2);
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.shelld98c8-shelf-tag {
  align-self: flex-start;
  font-family: var(--shelld98c8-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--shelld98c8-accent);
  border: 1px solid var(--shelld98c8-accent-deep);
  border-radius: 3px;
  padding: 1px 6px;
}

.shelld98c8-shelf-card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #EDF1F5;
}

.shelld98c8-shelf-card p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--shelld98c8-ink-dim);
}

/* module 3: prose + stats */
.shelld98c8-prose { font-size: 13px; color: var(--shelld98c8-ink-dim); }
.shelld98c8-prose p { margin: 0 0 10px; }
.shelld98c8-prose p:last-child { margin-bottom: 0; }
.shelld98c8-prose strong { color: var(--shelld98c8-ink); font-weight: 700; }

.shelld98c8-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
}

.shelld98c8-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border: 1px dashed var(--shelld98c8-line);
  border-radius: var(--shelld98c8-radius);
  background: var(--shelld98c8-panel-2);
  padding: 8px 10px;
}
.shelld98c8-stat-num {
  font-family: var(--shelld98c8-font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--shelld98c8-accent);
  line-height: 1;
}
.shelld98c8-stat-lab {
  font-size: 10.5px;
  color: var(--shelld98c8-ink-faint);
  line-height: 1.3;
}

/* module 4: takeaways */
.shelld98c8-takeaways {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  counter-reset: shelld98c8-take;
}

.shelld98c8-take {
  counter-increment: shelld98c8-take;
  position: relative;
  padding: 9px 11px 9px 38px;
  border: 1px solid var(--shelld98c8-line);
  border-radius: var(--shelld98c8-radius);
  background: var(--shelld98c8-panel-2);
  font-size: 12.5px;
  color: var(--shelld98c8-ink-dim);
}
.shelld98c8-take::before {
  content: counter(shelld98c8-take, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--shelld98c8-font-mono);
  font-size: 11px;
  color: var(--shelld98c8-on-accent);
  background: var(--shelld98c8-accent);
  border-radius: 3px;
  padding: 1px 5px;
}
.shelld98c8-take strong { color: var(--shelld98c8-ink); }

/* generic sub-heading inside modules */
.shelld98c8-mod h3 {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--shelld98c8-accent);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Extended footer (home only, before the generic footer)
   ========================================================================== */
.shelld98c8-ext {
  margin-top: 30px;
  border: 1px solid var(--shelld98c8-line);
  border-radius: var(--shelld98c8-radius-lg);
  background: var(--shelld98c8-panel-2);
  overflow: hidden;
}

.shelld98c8-ext-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 850;
  color: #EDF1F5;
  background: linear-gradient(90deg, var(--shelld98c8-panel), var(--shelld98c8-panel-2));
  border-bottom: 1px solid var(--shelld98c8-line);
}
.shelld98c8-ext-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid var(--shelld98c8-accent);
  border-radius: 2px;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.shelld98c8-ext-group { padding: 12px; }
.shelld98c8-ext-group + .shelld98c8-ext-group { border-top: 1px dashed var(--shelld98c8-line-soft); }

.shelld98c8-ext-label {
  font-family: var(--shelld98c8-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--shelld98c8-ink-faint);
  margin: 0 0 8px;
}

/* six promo actions, staggered sizes */
.shelld98c8-promogroup {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.shelld98c8-promo-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 8px 11px;
  border-radius: var(--shelld98c8-radius);
  border: 1px solid var(--shelld98c8-accent-deep);
  background: rgba(102, 205, 170, 0.10);
  color: var(--shelld98c8-accent);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}
.shelld98c8-promo-btn small {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--shelld98c8-ink-faint);
  letter-spacing: 0.03em;
}
.shelld98c8-promo-btn:active {
  background: rgba(102, 205, 170, 0.22);
  transform: translateY(-1px);
}

.shelld98c8-promo-btn--big {
  grid-column: 1 / -1;
  min-height: 56px;
  background: var(--shelld98c8-accent);
  color: var(--shelld98c8-on-accent);
  border-color: var(--shelld98c8-accent-deep);
  box-shadow: 0 3px 0 var(--shelld98c8-accent-deep);
  font-size: 13.5px;
}
.shelld98c8-promo-btn--big small { color: rgba(15, 30, 42, 0.75); }
.shelld98c8-promo-btn--big:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--shelld98c8-accent-deep);
}

.shelld98c8-ext-brand {
  margin: 0;
  font-size: 12px;
  color: var(--shelld98c8-ink-dim);
  line-height: 1.6;
}

.shelld98c8-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shelld98c8-dir-link {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--shelld98c8-ink);
  padding: 6px 2px;
  border-bottom: 1px solid var(--shelld98c8-line-soft);
  line-height: 1.4;
}
.shelld98c8-dir-link::before {
  content: "\203A";
  color: var(--shelld98c8-accent);
  font-weight: 900;
}
.shelld98c8-dir-link:hover { color: var(--shelld98c8-accent); text-decoration: none; }
.shelld98c8-dir-link:active { color: var(--shelld98c8-accent); }

.shelld98c8-ext-note {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--shelld98c8-ink-faint);
  border-left: 3px solid var(--shelld98c8-mid);
  padding-left: 9px;
}

/* ==========================================================================
   Generic footer
   ========================================================================== */
.shelld98c8-foot {
  margin-top: 18px;
  padding: 14px 2px 6px;
  border-top: 1px solid var(--shelld98c8-line-soft);
  text-align: center;
}

.shelld98c8-foot-copy {
  font-family: var(--shelld98c8-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--shelld98c8-ink-faint);
}

/* ==========================================================================
   Bottom dock - layered bar, 5 roles
   ========================================================================== */
.shelld98c8-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 80;
  background: linear-gradient(180deg, rgba(23, 33, 51, 0.98), #101A2B);
  border-top: 1px solid var(--shelld98c8-line);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.4);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* thin accent layer on top of the bar */
.shelld98c8-dock::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--shelld98c8-accent) 50%, transparent 100%);
  opacity: 0.75;
}

.shelld98c8-dock-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--shelld98c8-dock-h);
}

.shelld98c8-dock-item {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--shelld98c8-dock-h);
  padding: 6px 2px 7px;
  background: transparent;
  border: 0;
  color: var(--shelld98c8-ink-dim);
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}

.shelld98c8-dock-item svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1), stroke-dashoffset 0.3s ease;
}

.shelld98c8-dock-lab {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* active indicator: small raised bar under the icon */
.shelld98c8-dock-item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--shelld98c8-accent);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.shelld98c8-dock-item:active {
  color: var(--shelld98c8-accent);
  transform: translateY(-2px);
}
/* icon state micro-change on press */
.shelld98c8-dock-item:active svg { transform: scale(1.14) rotate(-5deg); }

.shelld98c8-dock-item[aria-current="page"] {
  color: var(--shelld98c8-accent);
  transform: translateY(-3px);
}
.shelld98c8-dock-item[aria-current="page"]::after { width: 18px; }
.shelld98c8-dock-item[aria-current="page"] svg { transform: scale(1.1); }

.shelld98c8-dock-item[aria-current="page"] .shelld98c8-dock-lab { color: var(--shelld98c8-accent); }

/* ---------- utilities ---------- */
.shelld98c8-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;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .shelld98c8-sec,
  .shelld98c8-hero { opacity: 1; transform: none; }
}

html { scroll-behavior: smooth; }

/* ---------- help-page reading patterns ---------- */
.shelld98c8-help-main { padding-top: calc(var(--shelld98c8-top-h) + 16px); }
.shelld98c8-help-hero { padding: 4px 2px 0; }
.shelld98c8-help-hero h1 { margin: 12px 0 10px; font-size: 22px; line-height: 1.32; color: #F2F5F8; }
.shelld98c8-help-lead { margin: 0; color: var(--shelld98c8-ink-dim); font-size: 13px; }
.shelld98c8-help-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 14px 0 0; }
.shelld98c8-help-stat { min-width: 0; padding: 8px 6px; border: 1px solid var(--shelld98c8-line); border-radius: var(--shelld98c8-radius); background: var(--shelld98c8-panel-2); text-align: center; }
.shelld98c8-help-stat b { display: block; color: var(--shelld98c8-accent); font-family: var(--shelld98c8-font-mono); font-size: 15px; line-height: 1.1; }
.shelld98c8-help-stat span { display: block; color: var(--shelld98c8-ink-faint); font-size: 9.5px; margin-top: 3px; }
.shelld98c8-help-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0 2px; }
.shelld98c8-help-action { min-height: 48px; padding: 8px 10px; border: 1px solid var(--shelld98c8-accent-deep); border-radius: var(--shelld98c8-radius); background: rgba(102, 205, 170, 0.11); color: var(--shelld98c8-accent); font-size: 11.5px; font-weight: 800; text-align: left; cursor: pointer; }
.shelld98c8-help-action--primary { background: var(--shelld98c8-accent); color: var(--shelld98c8-on-accent); box-shadow: 0 3px 0 var(--shelld98c8-accent-deep); }
.shelld98c8-help-action small { display: block; margin-top: 3px; color: var(--shelld98c8-ink-faint); font-size: 9.5px; font-weight: 600; }
.shelld98c8-help-action--primary small { color: rgba(15, 30, 42, 0.72); }
.shelld98c8-help-action:active { transform: translateY(1px); }
.shelld98c8-help-index { display: flex; gap: 7px; overflow-x: auto; padding: 16px 0 3px; scrollbar-width: none; }
.shelld98c8-help-index::-webkit-scrollbar { display: none; }
.shelld98c8-help-index a { flex: 0 0 auto; min-height: 36px; padding: 8px 10px; border: 1px solid var(--shelld98c8-line); border-radius: 4px; color: var(--shelld98c8-ink-dim); background: var(--shelld98c8-panel-2); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.shelld98c8-help-index a:active { border-color: var(--shelld98c8-accent); color: var(--shelld98c8-accent); }
.shelld98c8-help-block { margin-top: 25px; }
.shelld98c8-help-block h2 { margin: 0 0 9px; padding: 0 0 7px; border-bottom: 2px solid var(--shelld98c8-mid); color: #EDF1F5; font-size: 16px; line-height: 1.38; }
.shelld98c8-help-block > p { margin: 0 0 10px; color: var(--shelld98c8-ink-dim); font-size: 12.8px; }
.shelld98c8-help-block > p strong { color: var(--shelld98c8-ink); }
.shelld98c8-help-note { margin: 10px 0 0; padding: 9px 10px; border-left: 3px solid var(--shelld98c8-accent); background: var(--shelld98c8-panel-2); color: var(--shelld98c8-ink-dim); font-size: 11.8px; }
.shelld98c8-help-list { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: shelld98c8-help-item; }
.shelld98c8-help-list li { position: relative; min-height: 44px; padding: 9px 10px 9px 36px; border: 1px solid var(--shelld98c8-line); border-radius: var(--shelld98c8-radius); background: var(--shelld98c8-panel-2); color: var(--shelld98c8-ink-dim); font-size: 12px; }
.shelld98c8-help-list li::before { counter-increment: shelld98c8-help-item; content: counter(shelld98c8-help-item, decimal-leading-zero); position: absolute; left: 9px; top: 10px; color: var(--shelld98c8-on-accent); background: var(--shelld98c8-accent); border-radius: 3px; padding: 1px 4px; font-family: var(--shelld98c8-font-mono); font-size: 10px; }
.shelld98c8-help-list strong { color: var(--shelld98c8-ink); }
.shelld98c8-checks { display: grid; gap: 7px; margin: 10px 0 0; }
.shelld98c8-check { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border: 1px dashed var(--shelld98c8-line); color: var(--shelld98c8-ink-dim); font-size: 12px; }
.shelld98c8-check::before { content: "✓"; flex: 0 0 auto; color: var(--shelld98c8-accent); font-weight: 900; }
.shelld98c8-check strong { color: var(--shelld98c8-ink); }
.shelld98c8-faults { display: grid; gap: 8px; margin-top: 10px; }
.shelld98c8-fault { border: 1px solid var(--shelld98c8-line); border-left: 3px solid var(--shelld98c8-danger); border-radius: var(--shelld98c8-radius); background: var(--shelld98c8-panel-2); padding: 9px 10px; }
.shelld98c8-fault h3 { margin: 0 0 4px; color: #EDF1F5; font-size: 12.5px; }
.shelld98c8-fault p { margin: 0; color: var(--shelld98c8-ink-dim); font-size: 11.8px; }
.shelld98c8-fault b { color: var(--shelld98c8-accent); }
.shelld98c8-compare { width: 100%; margin-top: 10px; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.shelld98c8-compare th, .shelld98c8-compare td { padding: 8px 6px; border: 1px solid var(--shelld98c8-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.shelld98c8-compare th { color: var(--shelld98c8-accent); background: var(--shelld98c8-panel); font-size: 10px; }
.shelld98c8-compare td { color: var(--shelld98c8-ink-dim); background: var(--shelld98c8-panel-2); }
.shelld98c8-qa { border-top: 1px solid var(--shelld98c8-line); }
.shelld98c8-qa details { border-bottom: 1px solid var(--shelld98c8-line); padding: 10px 0; }
.shelld98c8-qa summary { min-height: 26px; cursor: pointer; color: var(--shelld98c8-ink); font-size: 12.5px; font-weight: 800; }
.shelld98c8-qa summary::marker { color: var(--shelld98c8-accent); }
.shelld98c8-qa details p { margin: 7px 0 0; color: var(--shelld98c8-ink-dim); font-size: 12px; }
.shelld98c8-callout { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding: 10px; border: 1px solid var(--shelld98c8-accent-deep); border-radius: var(--shelld98c8-radius); background: rgba(102, 205, 170, 0.08); color: var(--shelld98c8-ink-dim); font-size: 11.5px; }
.shelld98c8-callout button { flex: 0 0 auto; min-height: 44px; padding: 7px 10px; border: 0; border-radius: 3px; background: var(--shelld98c8-accent); color: var(--shelld98c8-on-accent); font-size: 11px; font-weight: 800; cursor: pointer; }
.shelld98c8-definition-list { display: grid; gap: 6px; margin: 10px 0 0; }
.shelld98c8-definition { display: grid; grid-template-columns: minmax(82px, 0.7fr) 1.3fr; gap: 8px; padding: 8px 9px; border-bottom: 1px solid var(--shelld98c8-line-soft); }
.shelld98c8-definition dt { color: var(--shelld98c8-accent); font-size: 11.5px; font-weight: 800; }
.shelld98c8-definition dd { margin: 0; color: var(--shelld98c8-ink-dim); font-size: 11.5px; }
.shelld98c8-safety-band { display: grid; gap: 7px; margin-top: 10px; }
.shelld98c8-safety-item { padding: 10px; border: 1px solid var(--shelld98c8-line); border-radius: var(--shelld98c8-radius); background: linear-gradient(110deg, var(--shelld98c8-panel), var(--shelld98c8-panel-2)); }
.shelld98c8-safety-item h3 { margin: 0 0 3px; color: var(--shelld98c8-accent); font-size: 12.5px; }
.shelld98c8-safety-item p { margin: 0; color: var(--shelld98c8-ink-dim); font-size: 11.8px; }
.shelld98c8-stepper { display: grid; gap: 0; margin-top: 10px; }
.shelld98c8-step { position: relative; display: grid; grid-template-columns: 35px 1fr; gap: 9px; min-height: 66px; padding: 0 0 12px; }
.shelld98c8-step::before { content: ""; position: absolute; left: 16px; top: 31px; bottom: 0; border-left: 1px dashed var(--shelld98c8-line); }
.shelld98c8-step:last-child::before { display: none; }
.shelld98c8-step-no { position: relative; z-index: 1; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--shelld98c8-accent); color: var(--shelld98c8-on-accent); font-family: var(--shelld98c8-font-mono); font-size: 11px; font-weight: 800; }
.shelld98c8-step h3 { margin: 1px 0 3px; color: var(--shelld98c8-ink); font-size: 12.5px; }
.shelld98c8-step p { margin: 0; color: var(--shelld98c8-ink-dim); font-size: 11.8px; }
.shelld98c8-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 10px; }
.shelld98c8-map-cell { padding: 9px; border: 1px solid var(--shelld98c8-line); border-top: 2px solid var(--shelld98c8-accent-deep); background: var(--shelld98c8-panel-2); }
.shelld98c8-map-cell h3 { margin: 0 0 4px; color: var(--shelld98c8-accent); font-size: 12px; }
.shelld98c8-map-cell p { margin: 0; color: var(--shelld98c8-ink-dim); font-size: 11.3px; }
.shelld98c8-help-footnote { margin: 18px 0 0; padding: 10px; border-top: 1px solid var(--shelld98c8-line); color: var(--shelld98c8-ink-faint); font-size: 10.5px; }
@media (max-width: 344px) {
  .shelld98c8-help-actions { grid-template-columns: 1fr; }
  .shelld98c8-help-stats { gap: 4px; }
  .shelld98c8-help-stat span { font-size: 9px; }
  .shelld98c8-definition { grid-template-columns: 1fr; gap: 2px; }
}
