/* ==========================================================================
   wild skullz - mobile shell stylesheet
   File   : css/wild-skullz-shell-9ab40d.css
   Prefix : mobile40d4a-  (all classes and CSS variables)
   Canvas : 320 - 430px phone layout, centered on wide screens
   Palette: #141414 ink | #F5DEB3 bone | #FAF0E6 linen | #D2B48C tan
   Voice  : heavy display headings, weathered sharp game cards,
            bone utility buttons, angular high-contrast CTAs,
            scene-branch information rhythm, short 160ms transitions
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --mobile40d4a-ink: #141414;
  --mobile40d4a-ink-deep: #0c0b09;
  --mobile40d4a-panel: #1c1a15;
  --mobile40d4a-panel-2: #221f18;
  --mobile40d4a-panel-3: #191713;
  --mobile40d4a-line: #3b362b;
  --mobile40d4a-line-soft: #2c2921;
  --mobile40d4a-bone: #f5deb3;
  --mobile40d4a-linen: #faf0e6;
  --mobile40d4a-tan: #d2b48c;
  --mobile40d4a-tan-dim: #a5886236;
  --mobile40d4a-amber: #e9c887;
  --mobile40d4a-warn: #cf8f5f;
  --mobile40d4a-font: "Segoe UI", system-ui, -apple-system, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mobile40d4a-radius: 10px;
  --mobile40d4a-nav-h: 60px;
  --mobile40d4a-speed: 160ms;
  --mobile40d4a-ease: ease-out;
}

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

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

body.mobile40d4a-page {
  margin: 0;
  padding: 0;
  padding-bottom: calc(var(--mobile40d4a-nav-h) + 26px + env(safe-area-inset-bottom, 0px));
  background: var(--mobile40d4a-ink-deep);
  color: var(--mobile40d4a-linen);
  font-family: var(--mobile40d4a-font);
  font-size: 14px;
  line-height: 1.62;
  overflow-x: clip;
}

body.mobile40d4a-noscroll { overflow: hidden; }

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

h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }

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

a { color: var(--mobile40d4a-amber); text-decoration: none; }

a:active { opacity: 0.75; }

button {
  font-family: inherit;
  border: 0;
  cursor: pointer;
  color: inherit;
  background: none;
  -webkit-tap-highlight-color: rgba(245, 222, 179, 0.14);
}

:focus-visible {
  outline: 2px solid var(--mobile40d4a-bone);
  outline-offset: 2px;
}

::selection {
  background: var(--mobile40d4a-bone);
  color: var(--mobile40d4a-ink);
}

/* ---------- skip link ---------- */
.mobile40d4a-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--mobile40d4a-bone);
  color: var(--mobile40d4a-ink);
  font-weight: 800;
  padding: 10px 16px;
}

.mobile40d4a-skip:focus {
  left: 8px;
  top: 8px;
}

/* ---------- phone canvas ---------- */
.mobile40d4a-canvas {
  position: relative;
  max-width:430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 52% at 50% 0%, #26221a 0%, var(--mobile40d4a-ink) 46%),
    var(--mobile40d4a-ink);
  box-shadow: 0 0 0 1px var(--mobile40d4a-line-soft);
}

/* ---------- top action bar ---------- */
.mobile40d4a-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 10px;
  background: rgba(20, 20, 20, 0.97);
  border-bottom: 1px solid var(--mobile40d4a-line);
}

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

.mobile40d4a-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--mobile40d4a-line);
  border-radius: 4px;
  object-fit: cover;
  background: var(--mobile40d4a-panel);
}

.mobile40d4a-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--mobile40d4a-bone);
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* utility buttons: rounded, compact */
.mobile40d4a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: var(--mobile40d4a-radius);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform var(--mobile40d4a-speed) var(--mobile40d4a-ease),
    background-color var(--mobile40d4a-speed) var(--mobile40d4a-ease),
    color var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

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

.mobile40d4a-btn--solid {
  background: var(--mobile40d4a-bone);
  color: var(--mobile40d4a-ink);
}

.mobile40d4a-btn--ghost {
  background: transparent;
  color: var(--mobile40d4a-bone);
  box-shadow: inset 0 0 0 1.5px var(--mobile40d4a-tan);
}

/* burger */
.mobile40d4a-burger {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--mobile40d4a-radius);
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line);
  transition: background-color var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

.mobile40d4a-burger:active { background: var(--mobile40d4a-line-soft); }

.mobile40d4a-burger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--mobile40d4a-bone);
}

/* ---------- full-height menu screen ---------- */
.mobile40d4a-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: rgba(12, 11, 9, 0.72);
  opacity: 0;
  transition: opacity var(--mobile40d4a-speed) linear;
}

.mobile40d4a-drawer.mobile40d4a-on {
  display: block;
  opacity: 1;
}

.mobile40d4a-drawer-sheet {
  position: absolute;
  inset: 0;
  max-width:430px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, #241f16 0%, var(--mobile40d4a-ink) 38%),
    var(--mobile40d4a-ink);
  border-left: 1px solid var(--mobile40d4a-line);
  border-right: 1px solid var(--mobile40d4a-line);
  overflow-y: auto;
  padding: 14px 18px calc(var(--mobile40d4a-nav-h) + 26px);
  transform: translateY(-10px);
  transition: transform var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

.mobile40d4a-drawer.mobile40d4a-on .mobile40d4a-drawer-sheet {
  transform: translateY(0);
}

.mobile40d4a-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mobile40d4a-bone);
  margin-bottom: 14px;
}

.mobile40d4a-drawer-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--mobile40d4a-bone);
}

.mobile40d4a-drawer-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--mobile40d4a-radius);
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line);
  color: var(--mobile40d4a-bone);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.mobile40d4a-drawer-group { margin-bottom: 18px; }

.mobile40d4a-drawer-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mobile40d4a-tan);
  margin: 0 0 8px 12px;
}

.mobile40d4a-drawer-list {
  border-left: 2px solid var(--mobile40d4a-line);
}

.mobile40d4a-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  color: var(--mobile40d4a-linen);
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--mobile40d4a-line-soft);
  transition: background-color var(--mobile40d4a-speed) var(--mobile40d4a-ease),
    color var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

.mobile40d4a-drawer-link:active {
  background: var(--mobile40d4a-bone);
  color: var(--mobile40d4a-ink);
}

.mobile40d4a-drawer-mark {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: var(--mobile40d4a-tan);
}

.mobile40d4a-drawer-link:active .mobile40d4a-drawer-mark {
  background: var(--mobile40d4a-ink);
}

.mobile40d4a-drawer-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--mobile40d4a-bone);
  color: var(--mobile40d4a-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: left;
}

.mobile40d4a-drawer-promo span:last-child {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid var(--mobile40d4a-ink);
  padding: 3px 7px;
}

/* ---------- hero + carousel ---------- */
.mobile40d4a-hero {
  padding: 18px 12px 4px;
}

.mobile40d4a-hero-copy { margin-bottom: 12px; }

.mobile40d4a-hero-title {
  display: flex;
  flex-direction: column;
  font-size: 27px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--mobile40d4a-linen);
}

.mobile40d4a-hero-title small {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mobile40d4a-tan);
  margin-bottom: 6px;
}

.mobile40d4a-hero-sub {
  margin-top: 8px;
  font-size: 13.5px;
  color: #d9cfc0;
  max-width: 40ch;
}

.mobile40d4a-carousel { position: relative; }

.mobile40d4a-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--mobile40d4a-line);
  background: var(--mobile40d4a-panel-3);
}

.mobile40d4a-track::-webkit-scrollbar { display: none; }

.mobile40d4a-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}

.mobile40d4a-slideimg {
  width: 100%;
  aspect-ratio: 640 / 268;
  object-fit: cover;
  background: var(--mobile40d4a-panel);
}

.mobile40d4a-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 11, 9, 0.9) 100%);
  pointer-events: none;
}

.mobile40d4a-slide-cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: var(--mobile40d4a-linen);
}

.mobile40d4a-slide-cap b {
  display: block;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.mobile40d4a-slide-cap i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11.5px;
  color: var(--mobile40d4a-tan);
  letter-spacing: 0.05em;
}

.mobile40d4a-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.mobile40d4a-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(250, 240, 230, 0.34);
  border: 1px solid rgba(250, 240, 230, 0.5);
  transition: background-color var(--mobile40d4a-speed) linear;
}

.mobile40d4a-dot.mobile40d4a-on {
  background: var(--mobile40d4a-bone);
  border-color: var(--mobile40d4a-bone);
}

/* ---------- category chips ---------- */
.mobile40d4a-chips {
  position: sticky;
  top: 58px;
  z-index: 70;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 12px;
  background: rgba(20, 20, 20, 0.97);
  border-bottom: 1px solid var(--mobile40d4a-line-soft);
}

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

.mobile40d4a-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line);
  color: var(--mobile40d4a-linen);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color var(--mobile40d4a-speed) var(--mobile40d4a-ease),
    color var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

.mobile40d4a-chip.mobile40d4a-on {
  background: var(--mobile40d4a-bone);
  color: var(--mobile40d4a-ink);
  border-color: var(--mobile40d4a-bone);
}

/* ---------- content sections (scene-branch rhythm) ---------- */
.mobile40d4a-main { display: block; }

.mobile40d4a-sec {
  padding: 22px 12px 24px;
  scroll-margin-top: 96px;
}

/* alternating branch treatment */
.mobile40d4a-sec--band {
  background: var(--mobile40d4a-panel-3);
  border-top: 1px solid var(--mobile40d4a-line);
  border-bottom: 1px solid var(--mobile40d4a-line);
}

.mobile40d4a-sec-head {
  position: relative;
  padding-left: 12px;
  margin-bottom: 10px;
}

.mobile40d4a-sec-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: var(--mobile40d4a-bone);
}

.mobile40d4a-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mobile40d4a-tan);
  margin-bottom: 3px;
}

.mobile40d4a-sec-title {
  font-size: 20px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--mobile40d4a-linen);
}

.mobile40d4a-sec-intro {
  font-size: 13.5px;
  color: #d9cfc0;
  margin-bottom: 14px;
  max-width: 62ch;
}

.mobile40d4a-sec-links {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--mobile40d4a-panel-2);
  border-left: 3px solid var(--mobile40d4a-tan);
  font-size: 12.5px;
  line-height: 1.7;
  color: #cfc4b2;
}

.mobile40d4a-sec-links b {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mobile40d4a-tan);
  margin-bottom: 2px;
}

.mobile40d4a-sec-links a {
  color: var(--mobile40d4a-amber);
  font-weight: 700;
  border-bottom: 1px solid var(--mobile40d4a-tan-dim);
}

/* ---------- game grid + weathered cards ---------- */
.mobile40d4a-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mobile40d4a-gcard {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 4px;
  background:
    linear-gradient(160deg, #262119 0%, #191712 100%);
  border: 1px solid var(--mobile40d4a-line);
  box-shadow: inset 0 0 0 1px rgba(245, 222, 179, 0.05);
  transition: border-color var(--mobile40d4a-speed) var(--mobile40d4a-ease),
    transform var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

.mobile40d4a-gcard:active {
  border-color: var(--mobile40d4a-bone);
  transform: scale(0.96);
}

.mobile40d4a-gthumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #100f0c;
  filter: saturate(0.96) contrast(1.03);
}

.mobile40d4a-gname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
  font-size: 10.5px;
  line-height: 1.28;
  font-weight: 700;
  text-align: center;
  color: var(--mobile40d4a-linen);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

/* ---------- angular CTA band ---------- */
.mobile40d4a-cta {
  margin: 0 12px 24px;
  padding: 22px 16px;
  background: var(--mobile40d4a-bone);
  color: var(--mobile40d4a-ink);
  text-align: center;
}

.mobile40d4a-cta-title {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.mobile40d4a-cta-text {
  margin: 8px auto 14px;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.6;
  color: #3d3626;
}

.mobile40d4a-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  max-width: 320px;
  padding: 12px 18px;
  background: var(--mobile40d4a-ink);
  color: var(--mobile40d4a-bone);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

.mobile40d4a-cta-btn:active { transform: scale(0.97); }

.mobile40d4a-cta-sub {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6b5f45;
}

/* ---------- guide branches ---------- */
.mobile40d4a-branch {
  position: relative;
  margin-bottom: 12px;
  padding: 12px 12px 12px 52px;
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line-soft);
  border-left: 3px solid var(--mobile40d4a-tan);
}

.mobile40d4a-branch-no {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile40d4a-bone);
  color: var(--mobile40d4a-ink);
  font-size: 13px;
  font-weight: 900;
}

.mobile40d4a-branch-h {
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--mobile40d4a-linen);
  margin-bottom: 4px;
}

.mobile40d4a-branch-p {
  font-size: 13px;
  line-height: 1.62;
  color: #d9cfc0;
}

.mobile40d4a-branch-p a {
  color: var(--mobile40d4a-amber);
  font-weight: 700;
  border-bottom: 1px solid var(--mobile40d4a-tan-dim);
}

/* ---------- RTP analysis ---------- */
.mobile40d4a-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.mobile40d4a-stat {
  padding: 10px 12px;
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line-soft);
}

.mobile40d4a-stat-k {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mobile40d4a-tan);
  margin-bottom: 3px;
}

.mobile40d4a-stat-v {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--mobile40d4a-linen);
}

/* ---------- app steps ---------- */
.mobile40d4a-steps { counter-reset: mobile40d4a-step; }

.mobile40d4a-step {
  position: relative;
  counter-increment: mobile40d4a-step;
  padding: 10px 10px 10px 44px;
  margin-bottom: 8px;
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line-soft);
  font-size: 13px;
  line-height: 1.6;
  color: #d9cfc0;
}

.mobile40d4a-step::before {
  content: counter(mobile40d4a-step, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 13px;
  font-weight: 900;
  color: var(--mobile40d4a-tan);
  letter-spacing: 0.05em;
}

.mobile40d4a-step a {
  color: var(--mobile40d4a-amber);
  font-weight: 700;
  border-bottom: 1px solid var(--mobile40d4a-tan-dim);
}

/* ---------- requirements checklist ---------- */
.mobile40d4a-check { margin-top: 10px; }

.mobile40d4a-checkitem {
  position: relative;
  padding: 9px 10px 9px 34px;
  margin-bottom: 6px;
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line-soft);
  font-size: 13px;
  line-height: 1.55;
  color: #d9cfc0;
}

.mobile40d4a-checkitem::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  width: 9px;
  height: 9px;
  background: var(--mobile40d4a-bone);
  box-shadow: 3px 3px 0 rgba(210, 180, 140, 0.35);
}

.mobile40d4a-checkitem b { color: var(--mobile40d4a-linen); }

/* ---------- FAQ ---------- */
.mobile40d4a-faq { margin-top: 6px; }

.mobile40d4a-q {
  border: 1px solid var(--mobile40d4a-line);
  border-left: 3px solid var(--mobile40d4a-tan);
  background: var(--mobile40d4a-panel-3);
  margin-bottom: 8px;
}

.mobile40d4a-q-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 12px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--mobile40d4a-linen);
  cursor: pointer;
  list-style: none;
}

.mobile40d4a-q-summary::-webkit-details-marker { display: none; }

.mobile40d4a-q-summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 900;
  color: var(--mobile40d4a-tan);
  transition: transform var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

.mobile40d4a-q[open] .mobile40d4a-q-summary::after { transform: rotate(45deg); }

.mobile40d4a-q-a {
  padding: 0 12px 13px;
  font-size: 12.8px;
  line-height: 1.66;
  color: #cfc4b2;
}

.mobile40d4a-q-a a {
  color: var(--mobile40d4a-amber);
  font-weight: 700;
}

/* ---------- extended footer ---------- */
.mobile40d4a-xfoot {
  margin-top: 26px;
  padding: 22px 12px 18px;
  background:
    linear-gradient(180deg, #1d1a13 0%, #141210 100%);
  border-top: 2px solid var(--mobile40d4a-bone);
}

.mobile40d4a-xfoot-brand {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--mobile40d4a-line);
}

.mobile40d4a-xfoot-brand b {
  display: block;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--mobile40d4a-bone);
  margin-bottom: 5px;
}

.mobile40d4a-xfoot-brand p {
  font-size: 12.5px;
  line-height: 1.66;
  color: #cfc4b2;
  max-width: 60ch;
}

/* two-column directory */
.mobile40d4a-xfoot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.mobile40d4a-xfoot-h {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mobile40d4a-tan);
  margin: 12px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--mobile40d4a-line-soft);
}

.mobile40d4a-xfoot-col { min-width: 0; }

.mobile40d4a-xfoot-col:first-child .mobile40d4a-xfoot-h { margin-top: 0; }

.mobile40d4a-xfoot-link {
  display: block;
  padding: 7px 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: #d9cfc0;
  border-bottom: 1px dotted var(--mobile40d4a-line-soft);
  transition: color var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

.mobile40d4a-xfoot-link:active { color: var(--mobile40d4a-bone); }

/* promo entries inside directory */
.mobile40d4a-xp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  margin-bottom: 7px;
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line);
  border-left: 3px solid var(--mobile40d4a-bone);
  text-align: left;
  transition: border-color var(--mobile40d4a-speed) var(--mobile40d4a-ease),
    transform var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

.mobile40d4a-xp:active {
  border-color: var(--mobile40d4a-bone);
  transform: scale(0.98);
}

.mobile40d4a-xp b {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--mobile40d4a-linen);
  line-height: 1.3;
}

.mobile40d4a-xp i {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--mobile40d4a-tan);
  margin-top: 2px;
}

.mobile40d4a-xp-arrow {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
  color: var(--mobile40d4a-bone);
}

.mobile40d4a-xfoot-disc {
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(210, 180, 140, 0.07);
  border: 1px solid var(--mobile40d4a-line-soft);
  font-size: 11.5px;
  line-height: 1.66;
  color: #b3a892;
}

/* ---------- common footer ---------- */
.mobile40d4a-footer {
  padding: 14px 16px 18px;
  background: #0e0d0b;
  border-top: 1px solid var(--mobile40d4a-line-soft);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.7;
  color: #8f8570;
  letter-spacing: 0.03em;
}

.mobile40d4a-footer b { color: #c8bda6; font-weight: 800; }

/* ---------- fixed mobile bottom navigation ---------- */
.mobile40d4a-bnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #171511;
  border-top: 2px solid var(--mobile40d4a-bone);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile40d4a-bnav-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width:430px;
  margin: 0 auto;
}

.mobile40d4a-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--mobile40d4a-nav-h);
  padding: 6px 2px 8px;
  color: #b9ad93;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color var(--mobile40d4a-speed) var(--mobile40d4a-ease),
    color var(--mobile40d4a-speed) var(--mobile40d4a-ease);
}

.mobile40d4a-bnav-item:active { color: var(--mobile40d4a-linen); }

/* active state = solid background block */
.mobile40d4a-bnav-item.mobile40d4a-on {
  background: var(--mobile40d4a-bone);
  color: var(--mobile40d4a-ink);
}

.mobile40d4a-bnav-ic {
  width: 22px;
  height: 22px;
  display: block;
}

.mobile40d4a-bnav-ic svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- generic prose block ---------- */
.mobile40d4a-prose {
  font-size: 13.5px;
  line-height: 1.68;
  color: #d9cfc0;
  max-width: 64ch;
}

.mobile40d4a-prose + .mobile40d4a-prose { margin-top: 10px; }

.mobile40d4a-prose a {
  color: var(--mobile40d4a-amber);
  font-weight: 700;
  border-bottom: 1px solid var(--mobile40d4a-tan-dim);
}

.mobile40d4a-prose b { color: var(--mobile40d4a-linen); }

/* ---------- responsive breakpoints ---------- */

/* Small phones and up: slightly roomier cards */
@media (min-width: 375px) {
  .mobile40d4a-hero { padding: 22px 14px 4px; }
  .mobile40d4a-hero-title { font-size: 30px; }
  .mobile40d4a-sec { padding: 24px 14px 26px; }
  .mobile40d4a-sec-title { font-size: 21px; }
  .mobile40d4a-gname { font-size: 11px; }
  .mobile40d4a-cta { margin: 0 14px 26px; }
  .mobile40d4a-xfoot { padding: 24px 14px 18px; }
  .mobile40d4a-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile40d4a-verdict-word { font-size: 20px; }
}

/* Full canvas width: five columns, taller hero */
@media (min-width:430px) {
  .mobile40d4a-canvas {
    box-shadow: 0 0 0 1px var(--mobile40d4a-line), 0 0 44px rgba(0, 0, 0, 0.6);
  }
  .mobile40d4a-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile40d4a-hero-title { font-size: 32px; }
  .mobile40d4a-cta-btn { font-size: 16px; }
  .mobile40d4a-stats { gap: 10px; }
}

/* ---------- help page components (verdict panel) ---------- */
.mobile40d4a-verdict {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 14px 12px;
  margin-bottom: 14px;
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line);
  border-left: 4px solid var(--mobile40d4a-bone);
}

.mobile40d4a-verdict-word {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-right: 10px;
  border-right: 1px solid var(--mobile40d4a-line);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mobile40d4a-bone);
}

.mobile40d4a-verdict-body {
  align-self: center;
  font-size: 12.8px;
  line-height: 1.6;
  color: #d9cfc0;
}

/* ---------- split lists: strengths / frictions, suits / skips ---------- */
.mobile40d4a-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mobile40d4a-duo-col {
  min-width: 0;
  padding: 12px;
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line-soft);
  border-top: 3px solid var(--mobile40d4a-tan);
}

.mobile40d4a-duo-col--bonetop { border-top-color: var(--mobile40d4a-bone); }

.mobile40d4a-duo-h {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--mobile40d4a-linen);
  margin-bottom: 6px;
}

.mobile40d4a-duo-col li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 12.8px;
  line-height: 1.55;
  color: #d9cfc0;
  border-bottom: 1px dotted var(--mobile40d4a-line-soft);
}

.mobile40d4a-duo-col li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--mobile40d4a-tan);
}

.mobile40d4a-duo-col--bonetop li::before { background: var(--mobile40d4a-bone); }

/* ---------- label rows: channel facts, troubleshooting matrix ---------- */
.mobile40d4a-tt {
  margin-bottom: 8px;
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line-soft);
}

.mobile40d4a-tt-row {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--mobile40d4a-line-soft);
}

.mobile40d4a-tt-row:first-child { border-top: 0; }

.mobile40d4a-tt-k {
  flex: 0 0 76px;
  padding-top: 2px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mobile40d4a-tan);
}

.mobile40d4a-tt-v {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.8px;
  line-height: 1.55;
  color: #d9cfc0;
}

.mobile40d4a-tt-v b { color: var(--mobile40d4a-linen); }

.mobile40d4a-tt-v a {
  color: var(--mobile40d4a-amber);
  font-weight: 700;
  border-bottom: 1px solid var(--mobile40d4a-tan-dim);
}

/* ---------- glossary ---------- */
.mobile40d4a-gloss dt {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--mobile40d4a-linen);
  margin-top: 10px;
}

.mobile40d4a-gloss dd {
  margin: 2px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--mobile40d4a-tan-dim);
  font-size: 12.8px;
  line-height: 1.6;
  color: #d9cfc0;
}

/* ---------- visible question / answer block ---------- */
.mobile40d4a-qa {
  margin-bottom: 10px;
  padding: 11px 12px;
  background: var(--mobile40d4a-panel-3);
  border: 1px solid var(--mobile40d4a-line);
  border-left: 3px solid var(--mobile40d4a-bone);
}

.mobile40d4a-qa-q {
  display: block;
  font-size: 13.2px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--mobile40d4a-linen);
  margin-bottom: 5px;
}

.mobile40d4a-qa-a {
  font-size: 12.8px;
  line-height: 1.64;
  color: #cfc4b2;
}

.mobile40d4a-qa-a a {
  color: var(--mobile40d4a-amber);
  font-weight: 700;
}

/* ---------- numbered takeaway strip ---------- */
.mobile40d4a-take { counter-reset: mobile40d4a-take; margin-top: 10px; }

.mobile40d4a-take-item {
  position: relative;
  counter-increment: mobile40d4a-take;
  padding: 9px 10px 9px 40px;
  margin-bottom: 6px;
  background: var(--mobile40d4a-panel-2);
  border: 1px solid var(--mobile40d4a-line-soft);
  font-size: 12.8px;
  line-height: 1.55;
  color: #d9cfc0;
}

.mobile40d4a-take-item::before {
  content: counter(mobile40d4a-take);
  position: absolute;
  left: 10px;
  top: 9px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile40d4a-bone);
  color: var(--mobile40d4a-ink);
  font-size: 11px;
  font-weight: 900;
}

.mobile40d4a-take-item b { color: var(--mobile40d4a-linen); }

/* ---------- in-content promo band ---------- */
.mobile40d4a-promo-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 12px;
  background: rgba(210, 180, 140, 0.08);
  border: 1px solid var(--mobile40d4a-line-soft);
}

.mobile40d4a-promo-inline p {
  flex: 1 1 170px;
  min-width: 0;
  margin: 0;
  font-size: 12.6px;
  line-height: 1.55;
  color: #d9cfc0;
}

.mobile40d4a-promo-inline .mobile40d4a-btn {
  flex: 0 0 auto;
  min-height: 46px;
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
