/* ============================================================
   bouncing ball - surface-mobile-a784e5.css
   Mobile-first arcade casino skin for the 320-430px phone canvas.
   Palette: #3A3A3A base / #F8F8FF text / #F0F8FF support / #4682B4 accent
   Direction: poster headings + narrow body, low-radius zoned
   sections, pure image game cards, step-driven rhythm,
   drawer slide-in + card lift motion, staggered CTA sizes.
   All classes and variables use the shella784e- prefix.
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --shella784e-base: #3A3A3A;
  --shella784e-base-deep: #2C2C2C;
  --shella784e-base-raise: #434343;
  --shella784e-text: #F8F8FF;
  --shella784e-text-dim: rgba(248, 248, 255, 0.72);
  --shella784e-tint: #F0F8FF;
  --shella784e-accent: #4682B4;
  --shella784e-accent-deep: #3A6C97;
  --shella784e-accent-soft: rgba(70, 130, 180, 0.20);
  --shella784e-line: rgba(248, 248, 255, 0.14);
  --shella784e-line-strong: rgba(248, 248, 255, 0.30);
  --shella784e-font-display: 'Archivo Black', 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  --shella784e-font-body: 'Archivo Narrow', 'Arial Narrow', Arial, system-ui, sans-serif;
  --shella784e-radius: 3px;
  --shella784e-radius-lg: 6px;
  --shella784e-topbar-h: 58px;
  --shella784e-dock-space: 84px;
  --shella784e-canvas: 430px;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--shella784e-base-deep);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  max-width: 430px; /* phone canvas stays centered on wide screens */
  min-height: 100vh;
  background: var(--shella784e-base);
  color: var(--shella784e-text);
  font-family: var(--shella784e-font-body);
  font-size: 15.5px;
  line-height: 1.55;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.45);
  /* keep content clear of the floating dock */
  padding-bottom: calc(var(--shella784e-dock-space) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--shella784e-font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--shella784e-tint);
  text-decoration: none;
}

a:hover {
  color: var(--shella784e-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font-family: var(--shella784e-font-body);
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--shella784e-tint);
  outline-offset: 2px;
  border-radius: var(--shella784e-radius);
}

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

.shella784e-skip {
  position: fixed;
  top: 6px;
  left: 50%;
  transform: translateY(-160%);
  z-index: 90;
  background: var(--shella784e-tint);
  color: var(--shella784e-base-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--shella784e-radius);
  transition: transform 0.18s ease;
}

.shella784e-skip:focus {
  transform: translateY(0) translateX(-50%);
}

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

/* JS enhancement only: cards lift in when the script is active */
.shella784e-js .shella784e-rise {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.shella784e-js .shella784e-rise.shella784e-is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- top action band ---------- */
.shella784e-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 50;
  min-height: var(--shella784e-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(58, 58, 58, 0.96);
  border-bottom: 1px solid var(--shella784e-line);
  backdrop-filter: blur(8px);
}

.shella784e-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  text-decoration: none;
}

.shella784e-brand:hover {
  text-decoration: none;
  color: var(--shella784e-text);
}

.shella784e-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--shella784e-radius);
  border: 1px solid var(--shella784e-line-strong);
  background: var(--shella784e-base-deep);
  flex: none;
}

.shella784e-brand-name {
  font-family: var(--shella784e-font-display);
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.shella784e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--shella784e-radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.shella784e-btn:active {
  transform: translateY(1px);
}

.shella784e-btn-register {
  background: var(--shella784e-accent);
  color: var(--shella784e-tint);
}

.shella784e-btn-register:hover {
  background: var(--shella784e-accent-deep);
}

.shella784e-btn-login {
  background: transparent;
  color: var(--shella784e-text);
  border-color: var(--shella784e-line-strong);
}

.shella784e-btn-login:hover {
  border-color: var(--shella784e-accent);
  color: var(--shella784e-accent);
}

.shella784e-menu-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  cursor: pointer;
  color: var(--shella784e-text);
  -webkit-tap-highlight-color: transparent;
}

.shella784e-menu-btn:hover {
  border-color: var(--shella784e-accent);
  color: var(--shella784e-accent);
}

.shella784e-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* compact header for 320-359px phones */
@media (max-width: 359px) {
  .shella784e-brand img {
    width: 30px;
    height: 30px;
  }

  .shella784e-brand-name {
    font-size: 13.5px;
  }

  .shella784e-btn {
    min-height: 44px;
    padding: 8px 8px;
    font-size: 11.5px;
  }
}

/* ---------- scrim + side drawer ---------- */
.shella784e-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 20, 20, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.shella784e-scrim.shella784e-is-open {
  opacity: 1;
  visibility: visible;
}

.shella784e-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  width: min(84vw, 316px);
  background: #353535;
  border-right: 1px solid var(--shella784e-line-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(-103%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.shella784e-drawer.shella784e-is-open {
  transform: translateX(0);
}

.shella784e-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--shella784e-line);
}

.shella784e-drawer-head img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: var(--shella784e-radius);
}

.shella784e-drawer-title {
  font-family: var(--shella784e-font-display);
  font-size: 15px;
}

.shella784e-drawer-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  color: var(--shella784e-text);
  cursor: pointer;
}

.shella784e-drawer-close svg {
  width: 18px;
  height: 18px;
}

.shella784e-drawer-group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shella784e-accent);
  padding: 14px 16px 6px;
}

.shella784e-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--shella784e-text);
  border-left: 3px solid transparent;
}

.shella784e-drawer-link:hover {
  background: rgba(248, 248, 255, 0.05);
  color: var(--shella784e-text);
  text-decoration: none;
  border-left-color: var(--shella784e-accent);
}

.shella784e-drawer-link[aria-current='page'] {
  background: var(--shella784e-accent-soft);
  border-left-color: var(--shella784e-accent);
  color: var(--shella784e-tint);
}

.shella784e-drawer-foot {
  margin-top: auto;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--shella784e-line);
}

.shella784e-drawer-foot .shella784e-btn {
  width: 100%;
}

/* ---------- main canvas ---------- */
.shella784e-main {
  padding: calc(var(--shella784e-topbar-h) + 12px) 12px 10px;
}

/* ---------- hero ---------- */
.shella784e-hero {
  padding: 18px 2px 6px;
}

.shella784e-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shella784e-accent);
  margin-bottom: 10px;
}

.shella784e-kicker::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--shella784e-accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.shella784e-hero h1 {
  font-size: 27px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.shella784e-lead {
  color: var(--shella784e-text-dim);
  font-size: 15.5px;
  margin-bottom: 16px;
}

.shella784e-cta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 4px 0 18px;
}

/* staggered hero CTAs: dominant primary, smaller secondary */
.shella784e-cta-main {
  flex: 1 1 190px;
  min-height: 54px;
  background: var(--shella784e-accent);
  color: var(--shella784e-tint);
  border: 1px solid var(--shella784e-accent);
  font-family: var(--shella784e-font-display);
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 16px;
  border-radius: var(--shella784e-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.shella784e-cta-main:hover {
  background: var(--shella784e-accent-deep);
  color: var(--shella784e-tint);
  text-decoration: none;
}

.shella784e-cta-main:active {
  transform: translateY(2px);
}

.shella784e-cta-sub {
  flex: 0 1 auto;
  min-height: 44px;
  background: transparent;
  color: var(--shella784e-text);
  border: 1px solid var(--shella784e-line-strong);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: var(--shella784e-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.shella784e-cta-sub:hover {
  border-color: var(--shella784e-accent);
  color: var(--shella784e-accent);
}

.shella784e-cta-sub:active {
  transform: translateY(2px);
}

/* ---------- promo carousel ---------- */
.shella784e-carousel {
  position: relative;
  margin: 6px 0 4px;
}

.shella784e-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--shella784e-radius-lg);
  border: 1px solid var(--shella784e-line);
  background: var(--shella784e-base-deep);
}

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

.shella784e-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--shella784e-base-deep);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.shella784e-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shella784e-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 10px;
  background: linear-gradient(180deg, rgba(44, 44, 44, 0) 0%, rgba(44, 44, 44, 0.92) 78%);
  color: var(--shella784e-text);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.3;
  text-align: left;
}

.shella784e-carrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 44, 44, 0.72);
  border: 1px solid var(--shella784e-line-strong);
  border-radius: 50%;
  color: var(--shella784e-tint);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.shella784e-carrow:hover {
  background: var(--shella784e-accent);
}

.shella784e-carrow svg {
  width: 18px;
  height: 18px;
}

.shella784e-cprev {
  left: 8px;
}

.shella784e-cnext {
  right: 8px;
}

.shella784e-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.shella784e-dot {
  width: 44px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.shella784e-dot::after {
  content: '';
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--shella784e-line-strong);
  transition: background 0.2s ease, width 0.2s ease;
}

.shella784e-dot:hover::after {
  background: var(--shella784e-text-dim);
}

.shella784e-dot.shella784e-is-active::after {
  width: 26px;
  background: var(--shella784e-accent);
}

/* ---------- quick strip ---------- */
.shella784e-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 4px;
}

.shella784e-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.04);
  text-align: center;
}

.shella784e-quick-item svg {
  width: 22px;
  height: 22px;
  color: var(--shella784e-accent);
}

.shella784e-quick-item span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--shella784e-text);
}

/* ---------- zoned sections ---------- */
.shella784e-section {
  margin-top: 18px;
  padding: 18px 14px 16px;
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius-lg);
  background: rgba(67, 67, 67, 0.34);
  scroll-margin-top: calc(var(--shella784e-topbar-h) + 10px);
}

.shella784e-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 8px;
}

.shella784e-section h2 {
  font-size: 20px;
  text-transform: uppercase;
  flex: 1 1 100%;
}

.shella784e-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shella784e-base-deep);
  background: var(--shella784e-tint);
  padding: 3px 8px;
  border-radius: 2px;
  order: -1;
}

@media (min-width: 375px) {
  .shella784e-section h2 {
    font-size: 21.5px;
  }
}

.shella784e-section .shella784e-lead {
  font-size: 14.5px;
  margin-bottom: 14px;
}

/* ---------- steps ---------- */
.shella784e-steps {
  counter-reset: shella784e-step;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shella784e-step {
  counter-increment: shella784e-step;
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.04);
}

.shella784e-step::before {
  content: counter(shella784e-step, decimal-leading-zero);
  font-family: var(--shella784e-font-display);
  font-size: 19px;
  color: var(--shella784e-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--shella784e-accent);
  border-radius: var(--shella784e-radius);
  background: var(--shella784e-accent-soft);
}

.shella784e-step h3 {
  font-family: var(--shella784e-font-body);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--shella784e-tint);
  margin-bottom: 4px;
}

.shella784e-step p {
  margin: 0;
  font-size: 14px;
  color: var(--shella784e-text-dim);
}

/* ---------- game grids ---------- */
.shella784e-games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 7px;
}

@media (min-width: 390px) {
  .shella784e-games {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 9px;
  }
}

/* pure image card with a short name underneath */
.shella784e-game {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: rgba(248, 248, 255, 0.05);
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.shella784e-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--shella784e-base-deep);
}

.shella784e-game-name {
  font-weight: 700;
  font-size: 11px;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--shella784e-text);
  padding: 0 4px 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

.shella784e-game:hover {
  border-color: var(--shella784e-accent);
  background: rgba(70, 130, 180, 0.14);
  transform: translateY(-2px); /* light card lift */
}

.shella784e-game:active {
  transform: translateY(-1px) scale(0.99);
}

/* ---------- module: mobile entry grid ---------- */
.shella784e-entrygrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-bottom: 14px;
}

@media (min-width: 375px) {
  .shella784e-entrygrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shella784e-entry {
  padding: 11px 12px;
  border: 1px solid var(--shella784e-line);
  border-left: 3px solid var(--shella784e-accent);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.04);
}

.shella784e-entry strong {
  display: block;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--shella784e-tint);
  margin-bottom: 3px;
}

.shella784e-entry p {
  margin: 0;
  font-size: 13.5px;
  color: var(--shella784e-text-dim);
}

/* ---------- module: checklist / notes ---------- */
.shella784e-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shella784e-notes li {
  position: relative;
  padding: 9px 10px 9px 34px;
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.03);
  font-size: 14px;
  color: var(--shella784e-text-dim);
}

.shella784e-notes li::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--shella784e-accent);
  transform: rotate(45deg);
}

/* ---------- module: milestone track ---------- */
.shella784e-milestones {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--shella784e-accent);
  margin-left: 10px;
}

.shella784e-milestones li {
  position: relative;
  padding: 10px 4px 12px 20px;
}

.shella784e-milestones li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--shella784e-base);
  border: 2px solid var(--shella784e-accent);
}

.shella784e-milestones strong {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--shella784e-tint);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.shella784e-milestones span {
  font-size: 14px;
  color: var(--shella784e-text-dim);
}

/* ---------- module: CTA band ---------- */
.shella784e-band {
  border: 1px solid var(--shella784e-accent);
  border-radius: var(--shella784e-radius-lg);
  background: linear-gradient(135deg, rgba(70, 130, 180, 0.30) 0%, rgba(70, 130, 180, 0.08) 62%);
  padding: 18px 14px 16px;
  text-align: center;
}

.shella784e-band h2 {
  font-size: 19.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.shella784e-band .shella784e-cta-main {
  width: 100%;
  margin-bottom: 10px;
}

.shella784e-band .shella784e-cta-sub {
  width: auto;
  margin-bottom: 12px;
}

.shella784e-band-note {
  font-size: 13.5px;
  color: var(--shella784e-text-dim);
}

.shella784e-band-note a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--shella784e-tint);
}

/* ---------- module: takeaway counters ---------- */
.shella784e-takeaways {
  counter-reset: shella784e-take;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shella784e-takeaways li {
  counter-increment: shella784e-take;
  position: relative;
  padding: 10px 12px 10px 44px;
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.04);
  font-size: 14px;
  color: var(--shella784e-text-dim);
}

.shella784e-takeaways li::before {
  content: counter(shella784e-take);
  position: absolute;
  left: 10px;
  top: 9px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--shella784e-font-display);
  font-size: 12px;
  color: var(--shella784e-base-deep);
  background: var(--shella784e-tint);
  border-radius: 2px;
}

/* ---------- extended footer (home only) ---------- */
.shella784e-xfooter {
  margin: 20px 12px 0;
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius-lg);
  background: rgba(44, 44, 44, 0.6);
  padding: 16px 14px;
}

.shella784e-xfhead {
  font-family: var(--shella784e-font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shella784e-accent);
  margin: 0 0 10px;
}

.shella784e-xfbrand p {
  font-size: 14px;
  color: var(--shella784e-text-dim);
}

.shella784e-xfbrand .shella784e-brand {
  margin-bottom: 8px;
}

.shella784e-xfblock {
  border-top: 1px solid var(--shella784e-line);
  margin-top: 16px;
  padding-top: 14px;
}

.shella784e-xfdir {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

@media (min-width: 375px) {
  .shella784e-xfdir {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shella784e-xfdir a {
  display: block;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--shella784e-line);
  border-left: 3px solid var(--shella784e-accent);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--shella784e-text);
}

.shella784e-xfdir a:hover {
  background: rgba(70, 130, 180, 0.16);
  color: var(--shella784e-tint);
  text-decoration: none;
}

.shella784e-xflabel {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shella784e-accent);
  margin-bottom: 2px;
}

.shella784e-promolist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shella784e-promo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: rgba(248, 248, 255, 0.05);
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  color: var(--shella784e-text);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.shella784e-promo-item::after {
  content: '\2192';
  color: var(--shella784e-accent);
  font-weight: 700;
  flex: none;
}

.shella784e-promo-item:hover {
  border-color: var(--shella784e-accent);
  background: rgba(70, 130, 180, 0.16);
}

.shella784e-promo-item:active {
  transform: translateY(1px);
}

.shella784e-xfdisclaimer {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--shella784e-text-dim);
}

/* ---------- common footer ---------- */
.shella784e-footer {
  padding: 18px 12px 8px;
  text-align: center;
}

.shella784e-footer p {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--shella784e-text-dim);
}

/* ---------- floating dock (bottom navigation) ---------- */
.shella784e-bottomnav {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 410px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(53, 53, 53, 0.94);
  border: 1px solid var(--shella784e-line-strong);
  border-radius: 8px;
  padding: 4px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.shella784e-bn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  border-radius: var(--shella784e-radius);
  color: var(--shella784e-text-dim);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.shella784e-bn-item:hover {
  color: var(--shella784e-text);
  text-decoration: none;
}

/* active role sits on a light support block with an accent indicator */
.shella784e-bn-item.shella784e-is-active {
  color: var(--shella784e-base-deep);
  background: var(--shella784e-tint);
}

.shella784e-bn-item.shella784e-is-active::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--shella784e-accent);
}

.shella784e-bn-item svg {
  width: 21px;
  height: 21px;
  flex: none;
}

/* label reveal micro-interaction */
.shella784e-bn-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.82;
  transform: translateY(1px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.shella784e-bn-item:hover .shella784e-bn-label,
.shella784e-bn-item:active .shella784e-bn-label,
.shella784e-bn-item.shella784e-is-active .shella784e-bn-label {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- guide pages ---------- */
.shella784e-guide-intro {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.shella784e-guide-stamp {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-left: 3px solid var(--shella784e-accent);
  background: var(--shella784e-accent-soft);
  color: var(--shella784e-tint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shella784e-guide-stamp::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--shella784e-accent);
  transform: rotate(45deg);
}

.shella784e-guide-rail {
  display: grid;
  gap: 8px;
  border-left: 2px solid var(--shella784e-accent);
  padding-left: 12px;
}

.shella784e-guide-rail li {
  padding: 10px 11px;
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.04);
}

.shella784e-guide-rail strong {
  display: block;
  margin-bottom: 3px;
  color: var(--shella784e-tint);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.shella784e-guide-rail span {
  display: block;
  color: var(--shella784e-text-dim);
  font-size: 13.5px;
}

.shella784e-definition-grid {
  display: grid;
  gap: 8px;
}

@media (min-width: 375px) {
  .shella784e-definition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shella784e-definition {
  min-height: 122px;
  padding: 12px;
  border-top: 3px solid var(--shella784e-accent);
  border-right: 1px solid var(--shella784e-line);
  border-bottom: 1px solid var(--shella784e-line);
  border-left: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.04);
}

.shella784e-definition h3,
.shella784e-safety-card h3,
.shella784e-scenario h3 {
  margin-bottom: 5px;
  color: var(--shella784e-tint);
  font-family: var(--shella784e-font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shella784e-definition p,
.shella784e-safety-card p,
.shella784e-scenario p {
  margin: 0;
  color: var(--shella784e-text-dim);
  font-size: 13.5px;
}

.shella784e-process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 12px 0 2px;
}

.shella784e-process-strip span {
  min-height: 58px;
  padding: 8px 5px;
  border-bottom: 3px solid var(--shella784e-accent);
  background: rgba(70, 130, 180, 0.14);
  color: var(--shella784e-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.shella784e-help-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.shella784e-help-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--shella784e-line-strong);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.05);
  color: var(--shella784e-text);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.shella784e-help-action::after {
  content: '\2192';
  flex: none;
  color: var(--shella784e-accent);
  font-size: 18px;
}

.shella784e-help-action:hover {
  border-color: var(--shella784e-accent);
  background: rgba(70, 130, 180, 0.16);
  text-decoration: none;
}

.shella784e-help-action:active {
  transform: translateY(1px);
}

.shella784e-safety-grid {
  display: grid;
  gap: 9px;
}

.shella784e-safety-card {
  position: relative;
  padding: 13px 12px 13px 42px;
  border: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.04);
}

.shella784e-safety-card::before {
  content: '\2713';
  position: absolute;
  left: 12px;
  top: 13px;
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shella784e-accent);
  border-radius: 50%;
  color: var(--shella784e-tint);
  font-size: 13px;
  font-weight: 700;
}

.shella784e-risk {
  padding: 13px 12px;
  border: 1px solid rgba(248, 248, 255, 0.3);
  border-left: 4px solid var(--shella784e-accent);
  border-radius: var(--shella784e-radius);
  background: rgba(44, 44, 44, 0.75);
}

.shella784e-risk strong {
  display: block;
  margin-bottom: 4px;
  color: var(--shella784e-tint);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shella784e-risk p {
  margin: 0;
  color: var(--shella784e-text-dim);
  font-size: 13.5px;
}

.shella784e-scenario-list {
  display: grid;
  gap: 8px;
}

.shella784e-scenario {
  padding: 12px;
  border-top: 1px solid var(--shella784e-accent);
  border-right: 1px solid var(--shella784e-line);
  border-bottom: 1px solid var(--shella784e-line);
  border-left: 1px solid var(--shella784e-line);
  border-radius: var(--shella784e-radius);
  background: rgba(248, 248, 255, 0.03);
}

.shella784e-checkline {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 10px;
  border-bottom: 1px solid var(--shella784e-line);
  color: var(--shella784e-text-dim);
  font-size: 13.5px;
}

.shella784e-checkline:last-child {
  border-bottom: 0;
}

.shella784e-checkline::before {
  content: '';
  width: 9px;
  height: 9px;
  margin-top: 5px;
  flex: none;
  background: var(--shella784e-accent);
  transform: rotate(45deg);
}

.shella784e-callout-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.shella784e-callout-list li {
  padding: 10px 11px;
  border-left: 3px solid var(--shella784e-accent);
  background: rgba(70, 130, 180, 0.11);
  color: var(--shella784e-text-dim);
  font-size: 13.5px;
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
