/* ============================================================
   1xbet download apk — responsive token stylesheet
   Mobile-first canvas 320-430px; wide screens keep the centered
   phone shell. Palette: #FF8A80 #008B8B #20B2AA #FFC0CB #262626.
   Design key: stroke-led panels, technical mono labels, grouped
   cover-card shelves, compact metric rows, motion on CTAs only.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --layer6f4c8-bg: #262626;
  --layer6f4c8-bg-deep: #1b1a19;
  --layer6f4c8-panel: #2e2c2a;
  --layer6f4c8-panel-2: #35322f;
  --layer6f4c8-line: #4b4642;
  --layer6f4c8-line-soft: rgba(255, 192, 203, 0.16);
  --layer6f4c8-ink: #f6f1ee;
  --layer6f4c8-ink-dim: #c7c0ba;
  --layer6f4c8-coral: #ff8a80;
  --layer6f4c8-teal: #008b8b;
  --layer6f4c8-sea: #20b2aa;
  --layer6f4c8-blush: #ffc0cb;
  --layer6f4c8-shell: 430px;
  --layer6f4c8-top-h: 56px;
  --layer6f4c8-dock-h: 64px;
  --layer6f4c8-r: 8px;
  --layer6f4c8-r-sm: 6px;
  --layer6f4c8-mono: ui-monospace, "Cascadia Mono", "SF Mono", "Roboto Mono", Consolas, monospace;
  --layer6f4c8-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--layer6f4c8-bg-deep);
  color: var(--layer6f4c8-ink);
  font-family: var(--layer6f4c8-sans);
  font-size: 15px;
  line-height: 1.58;
  overflow-x: hidden;
}

body.layer6f4c8-locked { overflow: hidden; }

img { max-width: 100%; }

a { color: var(--layer6f4c8-sea); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

button { font-family: inherit; }

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

/* Centered phone canvas used on any screen width */
.layer6f4c8-shell {
  position: relative;
  max-width: var(--layer6f4c8-shell);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--layer6f4c8-bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 42px rgba(0, 0, 0, 0.35);
  overflow-x: clip;
}

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

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

.layer6f4c8-brand-img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--layer6f4c8-line);
  object-fit: cover;
  flex: none;
}

.layer6f4c8-brand-name {
  font-family: var(--layer6f4c8-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--layer6f4c8-blush);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.layer6f4c8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--layer6f4c8-r-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease;
}

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

.layer6f4c8-btn-register {
  background: var(--layer6f4c8-coral);
  border: 1px solid var(--layer6f4c8-coral);
  color: #262626;
}

.layer6f4c8-btn-login {
  background: transparent;
  border: 1px solid var(--layer6f4c8-sea);
  color: var(--layer6f4c8-sea);
}

.layer6f4c8-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--layer6f4c8-r-sm);
  border: 1px solid var(--layer6f4c8-line);
  background: transparent;
  color: var(--layer6f4c8-ink);
  cursor: pointer;
}

.layer6f4c8-menu-btn:active { transform: scale(0.92); }
.layer6f4c8-menu-btn svg { width: 20px; height: 20px; display: block; }

/* ---------- stacked overlay menu ---------- */
.layer6f4c8-menu {
  position: fixed;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: rgba(24, 23, 22, 0.985);
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.layer6f4c8-menu.layer6f4c8-open { opacity: 1; visibility: visible; }

.layer6f4c8-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--layer6f4c8-line);
}

.layer6f4c8-menu-title {
  margin: 0;
  font-family: var(--layer6f4c8-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--layer6f4c8-sea);
}

.layer6f4c8-menu-close {
  width: 40px;
  height: 40px;
  border-radius: var(--layer6f4c8-r-sm);
  border: 1px solid var(--layer6f4c8-line);
  background: transparent;
  color: var(--layer6f4c8-ink);
  cursor: pointer;
}

.layer6f4c8-menu-close:active { transform: scale(0.92); }
.layer6f4c8-menu-close svg { width: 18px; height: 18px; display: block; margin: 0 auto; }

.layer6f4c8-menu-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.layer6f4c8-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 4px;
  border-bottom: 1px dashed rgba(255, 192, 203, 0.12);
  color: var(--layer6f4c8-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.layer6f4c8-menu-link:hover,
.layer6f4c8-menu-link:focus-visible { color: var(--layer6f4c8-sea); text-decoration: none; }

.layer6f4c8-menu-link.layer6f4c8-active { color: var(--layer6f4c8-coral); }

.layer6f4c8-menu-idx {
  font-family: var(--layer6f4c8-mono);
  font-size: 0.68rem;
  color: var(--layer6f4c8-sea);
  flex: none;
  width: 22px;
}

.layer6f4c8-menu-tag {
  margin-left: auto;
  font-family: var(--layer6f4c8-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--layer6f4c8-ink-dim);
}

.layer6f4c8-menu-cta {
  margin-top: 16px;
  width: 100%;
  min-height: 46px;
  background: var(--layer6f4c8-coral);
  border: 1px solid var(--layer6f4c8-coral);
  color: #262626;
  border-radius: var(--layer6f4c8-r);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.layer6f4c8-menu-cta:active { transform: scale(0.97); }

/* ---------- main flow ---------- */
.layer6f4c8-main {
  padding: calc(var(--layer6f4c8-top-h) + 12px) 14px
           calc(var(--layer6f4c8-dock-h) + 34px + env(safe-area-inset-bottom));
}

.layer6f4c8-mod { margin: 0 0 26px; }

.layer6f4c8-eyebrow {
  display: block;
  font-family: var(--layer6f4c8-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--layer6f4c8-sea);
  margin: 0 0 6px;
}

.layer6f4c8-mod-title {
  font-size: 1.22rem;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--layer6f4c8-ink);
}

.layer6f4c8-p {
  margin: 0 0 12px;
  color: var(--layer6f4c8-ink-dim);
  font-size: 0.92rem;
}

.layer6f4c8-p strong { color: var(--layer6f4c8-ink); font-weight: 700; }

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

.layer6f4c8-hero-title {
  font-size: 1.42rem;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--layer6f4c8-ink);
}

.layer6f4c8-hero-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.layer6f4c8-hero-cta .layer6f4c8-btn { min-height: 44px; padding: 10px 16px; font-size: 0.88rem; }

.layer6f4c8-btn-ghost {
  background: transparent;
  border: 1px solid var(--layer6f4c8-line);
  color: var(--layer6f4c8-ink);
}

/* ---------- compact metric strip ---------- */
.layer6f4c8-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 18px 0 22px;
}

.layer6f4c8-metric {
  border: 1px solid var(--layer6f4c8-line);
  border-left: 3px solid var(--layer6f4c8-sea);
  border-radius: var(--layer6f4c8-r-sm);
  background: var(--layer6f4c8-panel);
  padding: 9px 10px;
}

.layer6f4c8-metric-val {
  display: block;
  font-family: var(--layer6f4c8-mono);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--layer6f4c8-coral);
  line-height: 1.1;
}

.layer6f4c8-metric-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--layer6f4c8-ink-dim);
  margin-top: 3px;
}

@media (min-width: 375px) {
  .layer6f4c8-metrics { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- promo carousel ---------- */
.layer6f4c8-carousel {
  position: relative;
  border: 1px solid var(--layer6f4c8-line);
  border-radius: var(--layer6f4c8-r);
  overflow: hidden;
  background: var(--layer6f4c8-panel);
  margin: 0 0 26px;
}

.layer6f4c8-track {
  display: flex;
  transition: transform 0.42s ease;
  touch-action: pan-y;
}

.layer6f4c8-slide {
  display: block;
  min-width: 100%;
  padding: 0;
  border: 0;
  background: #141312;
  text-align: left;
  cursor: pointer;
}

.layer6f4c8-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
}

.layer6f4c8-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(20, 19, 18, 0.92) 78%);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--layer6f4c8-ink);
  font-weight: 600;
}

.layer6f4c8-slide-cap small {
  display: block;
  font-family: var(--layer6f4c8-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--layer6f4c8-blush);
  margin-bottom: 2px;
  font-weight: 700;
}

.layer6f4c8-dots {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}

.layer6f4c8-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid var(--layer6f4c8-blush);
  border-radius: 3px;
  background: rgba(20, 19, 18, 0.4);
  cursor: pointer;
}

.layer6f4c8-dot.layer6f4c8-on { background: var(--layer6f4c8-blush); }
.layer6f4c8-dot:active { transform: scale(0.85); }

/* ---------- game wall (grouped cover cards) ---------- */
.layer6f4c8-group {
  border: 1px solid var(--layer6f4c8-line);
  border-radius: var(--layer6f4c8-r);
  background: var(--layer6f4c8-panel);
  margin: 0 0 16px;
  overflow: hidden;
}

.layer6f4c8-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--layer6f4c8-line);
}

.layer6f4c8-group-code {
  font-family: var(--layer6f4c8-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #262626;
  background: var(--layer6f4c8-sea);
  border-radius: 4px;
  padding: 2px 6px;
  flex: none;
}

.layer6f4c8-group-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.layer6f4c8-chip {
  margin-left: auto;
  font-family: var(--layer6f4c8-mono);
  font-size: 0.64rem;
  color: var(--layer6f4c8-blush);
  border: 1px solid var(--layer6f4c8-line-soft);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}

.layer6f4c8-group-note {
  margin: 0;
  padding: 8px 12px 0;
  font-size: 0.78rem;
  color: var(--layer6f4c8-ink-dim);
}

.layer6f4c8-grid {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 6px;
}

@media (min-width: 396px) {
  .layer6f4c8-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.layer6f4c8-tile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 6px 2px 7px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--layer6f4c8-r-sm);
  cursor: pointer;
}

.layer6f4c8-tile-btn img {
  width: 100%;
  max-width: 68px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--layer6f4c8-r-sm);
  border: 1px solid var(--layer6f4c8-line);
}

.layer6f4c8-tile-name {
  font-size: 0.67rem;
  line-height: 1.25;
  text-align: center;
  color: var(--layer6f4c8-ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.7em;
  word-break: break-word;
}

/* ---------- decision CTA panel ---------- */
.layer6f4c8-cta-panel {
  border: 1px solid var(--layer6f4c8-coral);
  border-radius: var(--layer6f4c8-r);
  background: linear-gradient(180deg, rgba(255, 138, 128, 0.09), rgba(46, 44, 42, 0.9));
  padding: 14px;
}

.layer6f4c8-steps {
  list-style: none;
  margin: 12px 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.layer6f4c8-step {
  border: 1px solid var(--layer6f4c8-line);
  border-radius: var(--layer6f4c8-r-sm);
  background: var(--layer6f4c8-bg);
  padding: 9px 8px;
  text-align: center;
}

.layer6f4c8-step-n {
  display: block;
  font-family: var(--layer6f4c8-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--layer6f4c8-coral);
}

.layer6f4c8-step-t {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--layer6f4c8-ink);
  font-weight: 600;
  margin-top: 4px;
}

.layer6f4c8-cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.layer6f4c8-mt-12 { margin-top: 12px; }

.layer6f4c8-cta-row .layer6f4c8-btn { min-height: 44px; flex: 1 1 130px; }

/* ---------- highlights (shelf selector rows) ---------- */
.layer6f4c8-hl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--layer6f4c8-line);
  border-radius: var(--layer6f4c8-r);
  background: var(--layer6f4c8-panel);
  overflow: hidden;
}

.layer6f4c8-hl-row {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px dashed rgba(255, 192, 203, 0.12);
}

.layer6f4c8-hl-row:last-child { border-bottom: 0; }

.layer6f4c8-hl-code {
  font-family: var(--layer6f4c8-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--layer6f4c8-sea);
  border: 1px solid var(--layer6f4c8-line);
  border-radius: 4px;
  padding: 3px 5px;
  height: fit-content;
  flex: none;
  letter-spacing: 0.06em;
}

.layer6f4c8-hl-body { min-width: 0; }

.layer6f4c8-hl-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--layer6f4c8-ink);
  margin: 0 0 3px;
}

.layer6f4c8-hl-body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--layer6f4c8-ink-dim);
}

/* ---------- achievements (metric log) ---------- */
.layer6f4c8-ach-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--layer6f4c8-line);
  border-radius: var(--layer6f4c8-r);
  overflow: hidden;
}

.layer6f4c8-ach-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  background: var(--layer6f4c8-panel);
  border-bottom: 1px dashed rgba(255, 192, 203, 0.12);
}

.layer6f4c8-ach-row:last-child { border-bottom: 0; }

.layer6f4c8-ach-val {
  font-family: var(--layer6f4c8-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--layer6f4c8-coral);
  line-height: 1.15;
  text-align: right;
  padding-top: 1px;
}

.layer6f4c8-ach-body { min-width: 0; }

.layer6f4c8-ach-name {
  margin: 0 0 2px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--layer6f4c8-ink);
}

.layer6f4c8-ach-body p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--layer6f4c8-ink-dim);
}

/* ---------- comparison dimensions ---------- */
.layer6f4c8-cmp-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.layer6f4c8-cmp-row {
  border: 1px solid var(--layer6f4c8-line);
  border-left: 3px solid var(--layer6f4c8-teal);
  border-radius: var(--layer6f4c8-r-sm);
  background: var(--layer6f4c8-panel);
  padding: 10px 12px;
}

.layer6f4c8-cmp-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--layer6f4c8-ink);
}

.layer6f4c8-cmp-verdict {
  font-family: var(--layer6f4c8-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #262626;
  background: var(--layer6f4c8-blush);
  border-radius: 4px;
  padding: 2px 6px;
}

.layer6f4c8-cmp-row p {
  margin: 0;
  font-size: 0.79rem;
  color: var(--layer6f4c8-ink-dim);
}

/* ---------- sub-question blocks ---------- */
.layer6f4c8-qa {
  border: 1px dashed var(--layer6f4c8-line);
  border-radius: var(--layer6f4c8-r-sm);
  padding: 10px 12px;
  margin: 10px 0;
  background: rgba(0, 139, 139, 0.08);
}

.layer6f4c8-qa-q {
  margin: 0 0 5px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--layer6f4c8-blush);
}

.layer6f4c8-qa p { margin: 0; font-size: 0.8rem; color: var(--layer6f4c8-ink-dim); }

/* ---------- extended footer (home only) ---------- */
.layer6f4c8-xfooter {
  margin: 8px 0 0;
  border-top: 1px solid var(--layer6f4c8-line);
  background: var(--layer6f4c8-bg-deep);
  padding: 18px 14px 10px;
}

.layer6f4c8-xf-label {
  font-family: var(--layer6f4c8-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--layer6f4c8-sea);
  margin: 0 0 8px;
}

.layer6f4c8-xf-block { margin: 0 0 18px; }

.layer6f4c8-xf-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layer6f4c8-xf-promo {
  flex: 1 1 calc(50% - 8px);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--layer6f4c8-sea);
  border-radius: var(--layer6f4c8-r-sm);
  background: rgba(32, 178, 170, 0.08);
  color: var(--layer6f4c8-ink);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.layer6f4c8-xf-promo.layer6f4c8-hot {
  border-color: var(--layer6f4c8-coral);
  background: rgba(255, 138, 128, 0.12);
  color: var(--layer6f4c8-coral);
}

.layer6f4c8-xf-promo:active { transform: scale(0.96); }

.layer6f4c8-xf-brand {
  margin: 0;
  font-size: 0.8rem;
  color: var(--layer6f4c8-ink-dim);
}

.layer6f4c8-xf-dir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 14px;
}

.layer6f4c8-xf-dir a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px dotted rgba(255, 192, 203, 0.14);
  font-size: 0.8rem;
  color: var(--layer6f4c8-ink-dim);
}

.layer6f4c8-xf-dir a:hover,
.layer6f4c8-xf-dir a:focus-visible { color: var(--layer6f4c8-sea); text-decoration: none; }

.layer6f4c8-xf-dir small {
  display: block;
  font-family: var(--layer6f4c8-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--layer6f4c8-sea);
}

.layer6f4c8-xf-disclaimer {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #8f8880;
  border: 1px solid var(--layer6f4c8-line);
  border-radius: var(--layer6f4c8-r-sm);
  padding: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.layer6f4c8-legal {
  text-align: center;
  font-family: var(--layer6f4c8-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: #8f8880;
  padding: 12px 14px calc(16px + var(--layer6f4c8-dock-h) + env(safe-area-inset-bottom));
  background: var(--layer6f4c8-bg-deep);
}

/* ---------- bottom dock (center-raised) ---------- */
.layer6f4c8-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  min-height: calc(var(--layer6f4c8-dock-h) + env(safe-area-inset-bottom));
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(24, 23, 22, 0.97);
  border-top: 1px solid var(--layer6f4c8-line-soft);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.layer6f4c8-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px;
  background: transparent;
  border: 0;
  border-radius: var(--layer6f4c8-r-sm);
  color: var(--layer6f4c8-ink-dim);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.12s ease, color 0.12s ease;
}

.layer6f4c8-dock-btn svg {
  width: 21px;
  height: 21px;
  display: block;
}

.layer6f4c8-dock-btn:active { transform: scale(0.9); }

.layer6f4c8-dock-btn.layer6f4c8-active {
  color: var(--layer6f4c8-sea);
  transform: translateY(-3px);
}

/* raised center promo */
.layer6f4c8-dock-cta {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--layer6f4c8-blush);
  background: radial-gradient(circle at 32% 28%, #ffb0a8, var(--layer6f4c8-coral) 70%);
  color: #262626;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin-top: -22px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 138, 128, 0.32);
  transition: transform 0.12s ease;
}

.layer6f4c8-dock-cta svg { width: 19px; height: 19px; }

.layer6f4c8-dock-cta span {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layer6f4c8-dock-cta:active { transform: scale(0.92); }

/* ---------- wide-screen tuning ---------- */
@media (min-width: 430px) {
  .layer6f4c8-shell { border-radius: 0 0 14px 14px; }
  .layer6f4c8-main { padding-left: 18px; padding-right: 18px; }
  .layer6f4c8-hero-title { font-size: 1.55rem; }
}

/* ---------- motion discipline ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer6f4c8-track { transition: none; }
  .layer6f4c8-btn:active,
  .layer6f4c8-tile-btn:active,
  .layer6f4c8-dock-btn:active,
  .layer6f4c8-dock-cta:active,
  .layer6f4c8-xf-promo:active { transform: none; }
  .layer6f4c8-dock-btn.layer6f4c8-active { transform: none; }
}

/* ---------- help page variants ---------- */
.layer6f4c8-help-hero {
  border-left: 3px solid var(--layer6f4c8-coral);
  padding: 10px 12px 12px;
  background: rgba(255, 138, 128, 0.07);
}

.layer6f4c8-help-hero .layer6f4c8-hero-title { margin-bottom: 8px; }

.layer6f4c8-promo-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 24px;
}

.layer6f4c8-promo-rail .layer6f4c8-btn {
  min-height: 46px;
  padding: 8px 9px;
  font-size: 0.75rem;
}

.layer6f4c8-trouble {
  display: grid;
  gap: 8px;
  margin: 0;
}

.layer6f4c8-trouble-item {
  border: 1px solid var(--layer6f4c8-line);
  border-radius: var(--layer6f4c8-r-sm);
  background: var(--layer6f4c8-panel);
  padding: 11px 12px;
}

.layer6f4c8-trouble-item summary {
  cursor: pointer;
  color: var(--layer6f4c8-ink);
  font-weight: 800;
  min-height: 24px;
}

.layer6f4c8-trouble-item summary::marker { color: var(--layer6f4c8-coral); }
.layer6f4c8-trouble-item p { margin: 9px 0 0; color: var(--layer6f4c8-ink-dim); font-size: 0.82rem; }
.layer6f4c8-cause { color: var(--layer6f4c8-blush); font-weight: 700; }

.layer6f4c8-answer-stack {
  display: grid;
  gap: 10px;
}

.layer6f4c8-answer {
  border-top: 2px solid var(--layer6f4c8-sea);
  padding: 10px 0 2px;
}

.layer6f4c8-answer h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--layer6f4c8-ink);
}

.layer6f4c8-answer p { margin: 0; color: var(--layer6f4c8-ink-dim); font-size: 0.82rem; }

.layer6f4c8-takeaways {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: layer6f4c8-take;
}

.layer6f4c8-takeaways li {
  counter-increment: layer6f4c8-take;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--layer6f4c8-line);
  color: var(--layer6f4c8-ink-dim);
  font-size: 0.84rem;
}

.layer6f4c8-takeaways li::before {
  content: counter(layer6f4c8-take, decimal-leading-zero);
  color: var(--layer6f4c8-coral);
  font-family: var(--layer6f4c8-mono);
  font-weight: 700;
}

.layer6f4c8-pros-limit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.layer6f4c8-pros-limit > div {
  border: 1px solid var(--layer6f4c8-line);
  border-top: 3px solid var(--layer6f4c8-sea);
  border-radius: var(--layer6f4c8-r-sm);
  padding: 10px;
  background: var(--layer6f4c8-panel);
}

.layer6f4c8-pros-limit > div:last-child { border-top-color: var(--layer6f4c8-coral); }
.layer6f4c8-pros-limit h3 { margin: 0 0 7px; font-size: 0.84rem; }
.layer6f4c8-pros-limit ul { margin: 0; padding-left: 16px; color: var(--layer6f4c8-ink-dim); font-size: 0.77rem; }
.layer6f4c8-pros-limit li + li { margin-top: 6px; }

.layer6f4c8-page-links {
  display: grid;
  gap: 8px;
  margin: 0;
}

.layer6f4c8-page-links a {
  display: block;
  border: 1px solid var(--layer6f4c8-line);
  border-left: 3px solid var(--layer6f4c8-sea);
  border-radius: var(--layer6f4c8-r-sm);
  padding: 10px 11px;
  color: var(--layer6f4c8-ink);
  font-weight: 700;
  background: var(--layer6f4c8-panel);
}

.layer6f4c8-page-links a:hover,
.layer6f4c8-page-links a:focus-visible { color: var(--layer6f4c8-coral); text-decoration: none; }

.layer6f4c8-device-table {
  display: grid;
  gap: 7px;
}

.layer6f4c8-device-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--layer6f4c8-line);
}

.layer6f4c8-device-row strong { color: var(--layer6f4c8-blush); font-size: 0.8rem; }
.layer6f4c8-device-row span { color: var(--layer6f4c8-ink-dim); font-size: 0.8rem; }

.layer6f4c8-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layer6f4c8-checklist li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid var(--layer6f4c8-line);
  border-radius: var(--layer6f4c8-r-sm);
  background: var(--layer6f4c8-panel);
  color: var(--layer6f4c8-ink-dim);
  font-size: 0.82rem;
}

.layer6f4c8-checklist li::before {
  content: "✓";
  color: var(--layer6f4c8-sea);
  font-weight: 800;
}

.layer6f4c8-note {
  margin: 12px 0 0;
  padding: 10px;
  border: 1px solid var(--layer6f4c8-line-soft);
  color: var(--layer6f4c8-ink-dim);
  font-size: 0.78rem;
  background: rgba(32, 178, 170, 0.06);
}

@media (min-width: 375px) {
  .layer6f4c8-promo-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layer6f4c8-promo-rail .layer6f4c8-btn { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .layer6f4c8-trouble-item,
  .layer6f4c8-page-links a { scroll-behavior: auto; }
}
