/* ==========================================================================
   sigebet.click - mobile visual layer
   File   : css/mobile-ef1865-visuals.css
   Prefix : layer18650-
   Palette: #34495E (slate background) / #495057 (steel) / #FFEB3B (accent)
   Direction: poster headings over narrow body copy, stroke-led tile cards,
   step-by-step information rhythm, square high-contrast CTAs,
   slide-in menu and light tile lift as the only motion budget.
   Canvas : 320-430px phone frame, centered on wide screens.
   ========================================================================== */

:root {
  --layer18650-slate: #34495E;
  --layer18650-slate-deep: #2A3B4D;
  --layer18650-slate-floor: #22303F;
  --layer18650-slate-raise: #3B516A;
  --layer18650-slate-line: #56687E;
  --layer18650-steel: #495057;
  --layer18650-steel-soft: #5C6672;
  --layer18650-steel-line: #6E7887;
  --layer18650-accent: #FFEB3B;
  --layer18650-accent-press: #E8D52E;
  --layer18650-accent-ink: #23290F;
  --layer18650-paper: #F2F6FA;
  --layer18650-paper-dim: #C3CEDA;
  --layer18650-paper-faint: #9DACBB;
  --layer18650-ok: #8FE3A8;
  --layer18650-warn: #FFC4C4;
  --layer18650-rail: 12px;
  --layer18650-bar-h: 58px;
  --layer18650-nav-h: 62px;
  --layer18650-font-head: "Arial Black", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --layer18650-font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base canvas
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

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

body.layer18650-body {
  margin: 0;
  padding: 0;
  background: #18222D;
  background-image: repeating-linear-gradient(
    135deg,
    #18222D 0px,
    #18222D 14px,
    #1B2634 14px,
    #1B2634 28px
  );
  color: var(--layer18650-paper);
  font-family: var(--layer18650-font-body);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.012em;
  min-height: 100vh;
}

.layer18650-page {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--layer18650-slate);
  box-shadow: 0 0 0 1px #101820, 0 0 34px rgba(0, 0, 0, 0.45);
  overflow-x: hidden;
}

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

a {
  color: var(--layer18650-accent);
  text-decoration: none;
}

a.layer18650-linktext {
  color: var(--layer18650-accent);
  border-bottom: 1px solid var(--layer18650-accent-press);
  font-weight: 600;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--layer18650-accent);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* --------------------------------------------------------------------------
   Top bar : compact brand row + action cluster
   -------------------------------------------------------------------------- */

.layer18650-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #31445A 0%, var(--layer18650-slate) 100%);
  border-bottom: 2px solid var(--layer18650-accent);
  box-shadow: 0 3px 12px rgba(12, 18, 26, 0.55);
}

.layer18650-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--layer18650-bar-h);
  padding: 8px var(--layer18650-rail);
}

.layer18650-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--layer18650-paper);
}

.layer18650-brand-logo {
  width: 36px;
  height: 36px;
  border: 2px solid var(--layer18650-accent);
  border-radius: 4px;
  object-fit: cover;
  background: var(--layer18650-slate-deep);
  flex: 0 0 auto;
}

.layer18650-brandname {
  font-family: var(--layer18650-font-head);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--layer18650-paper);
  line-height: 1;
}

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

/* Square, high-contrast CTAs */
.layer18650-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 0;
  border: 2px solid transparent;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.layer18650-cta:active {
  transform: scale(0.94);
}

.layer18650-cta-solid {
  background: var(--layer18650-accent);
  color: var(--layer18650-accent-ink);
  border-color: var(--layer18650-accent);
}

.layer18650-cta-solid:hover {
  background: var(--layer18650-accent-press);
}

.layer18650-cta-ghost {
  background: transparent;
  color: var(--layer18650-accent);
  border-color: var(--layer18650-accent);
}

.layer18650-cta-ghost:hover {
  background: rgba(255, 235, 59, 0.14);
}

.layer18650-menubtn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--layer18650-slate-deep);
  border: 2px solid var(--layer18650-slate-line);
  border-radius: 4px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.layer18650-menubtn:active {
  transform: scale(0.92);
}

.layer18650-menubtn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--layer18650-accent);
}

.layer18650-menubtn[aria-expanded="true"] {
  border-color: var(--layer18650-accent);
}

/* --------------------------------------------------------------------------
   Drawer menu : layered dropdown under the brand row
   -------------------------------------------------------------------------- */

.layer18650-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--layer18650-slate-deep);
  border-bottom: 3px solid var(--layer18650-accent);
  box-shadow: 0 16px 24px rgba(10, 15, 22, 0.5);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  max-height: calc(100vh - var(--layer18650-bar-h));
  overflow-y: auto;
}

.layer18650-drawer[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.layer18650-drawer-layer {
  padding: 10px var(--layer18650-rail) 12px;
  border-bottom: 1px solid rgba(86, 104, 126, 0.45);
}

.layer18650-drawer-layer:last-child {
  border-bottom: 0;
}

.layer18650-drawer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--layer18650-paper-faint);
}

.layer18650-drawer-label::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--layer18650-accent);
  flex: 0 0 auto;
}

.layer18650-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.layer18650-drawer-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 10px;
  background: var(--layer18650-slate);
  border: 1px solid var(--layer18650-slate-line);
  border-radius: 3px;
  color: var(--layer18650-paper);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.layer18650-drawer-link:hover {
  border-color: var(--layer18650-accent);
  color: var(--layer18650-accent);
}

.layer18650-drawer-link:active {
  transform: scale(0.97);
}

.layer18650-drawer-link[data-current="true"] {
  border-color: var(--layer18650-accent);
  color: var(--layer18650-accent);
  background: rgba(255, 235, 59, 0.1);
}

/* --------------------------------------------------------------------------
   Main column
   -------------------------------------------------------------------------- */

.layer18650-main {
  padding: calc(var(--layer18650-bar-h) + 14px) var(--layer18650-rail)
    calc(var(--layer18650-nav-h) + 26px + env(safe-area-inset-bottom, 0px));
}

.layer18650-section {
  margin: 0 0 26px;
}

/* --------------------------------------------------------------------------
   Hero + carousel
   -------------------------------------------------------------------------- */

.layer18650-hero {
  margin: 0 0 22px;
}

.layer18650-h1 {
  font-family: var(--layer18650-font-head);
  font-size: 25px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 5px solid var(--layer18650-accent);
}

.layer18650-heroline {
  margin: 0 0 14px;
  color: var(--layer18650-paper-dim);
  font-size: 14px;
}

.layer18650-carousel {
  position: relative;
  border: 2px solid var(--layer18650-slate-line);
  border-radius: 4px;
  background: var(--layer18650-slate-deep);
  overflow: hidden;
}

.layer18650-slide {
  display: none;
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--layer18650-slate-deep);
  text-align: left;
}

.layer18650-slide.layer18650-slide-on {
  display: block;
}

.layer18650-slide-img {
  width: 100%;
  aspect-ratio: 10 / 5;
  object-fit: cover;
  min-height: 150px;
}

.layer18650-slide-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-block;
  margin: 0;
  padding: 7px 12px;
  background: var(--layer18650-accent);
  color: var(--layer18650-accent-ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.layer18650-dots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.layer18650-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--layer18650-accent);
  background: transparent;
  border-radius: 2px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.layer18650-dot.layer18650-dot-on {
  background: var(--layer18650-accent);
  transform: scale(1.15);
}

.layer18650-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.layer18650-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--layer18650-steel-line);
  border-radius: 3px;
  background: rgba(73, 80, 87, 0.4);
  color: var(--layer18650-paper-dim);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.layer18650-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--layer18650-accent);
}

/* --------------------------------------------------------------------------
   Section headings : poster style, yellow marker bar
   -------------------------------------------------------------------------- */

.layer18650-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  padding: 10px 0 8px;
  border-bottom: 2px solid var(--layer18650-slate-line);
}

.layer18650-sec-title {
  font-family: var(--layer18650-font-head);
  font-size: 17.5px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  padding-left: 9px;
  border-left: 4px solid var(--layer18650-accent);
}

.layer18650-sec-count {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--layer18650-paper-faint);
}

.layer18650-lead {
  margin: 8px 0 12px;
  color: var(--layer18650-paper-dim);
  font-size: 14px;
}

.layer18650-lead strong,
.layer18650-prose strong {
  color: var(--layer18650-paper);
}

.layer18650-prose {
  margin: 0;
}

.layer18650-prose p {
  margin: 0 0 12px;
  color: var(--layer18650-paper-dim);
  font-size: 14px;
}

.layer18650-h3 {
  font-family: var(--layer18650-font-head);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 18px 0 6px;
  color: var(--layer18650-paper);
  padding-left: 9px;
  border-left: 4px solid var(--layer18650-steel-soft);
}

/* --------------------------------------------------------------------------
   Game grid : outlined tile cards
   -------------------------------------------------------------------------- */

.layer18650-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 4px;
}

.layer18650-tile {
  display: flex;
  flex-direction: column;
  background: var(--layer18650-slate-deep);
  border: 1px solid var(--layer18650-slate-line);
  border-radius: 4px;
  padding: 5px;
  color: var(--layer18650-paper);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.layer18650-tile:hover {
  transform: translateY(-3px);
  border-color: var(--layer18650-accent);
}

.layer18650-tile:active {
  transform: translateY(-1px) scale(0.97);
}

.layer18650-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: var(--layer18650-slate);
  border: 1px solid rgba(86, 104, 126, 0.6);
}

.layer18650-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10.8px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  color: var(--layer18650-paper-dim);
  min-height: 28px;
  word-break: break-word;
}

.layer18650-tile:hover .layer18650-tile-name {
  color: var(--layer18650-accent);
}

/* --------------------------------------------------------------------------
   Trick rows : tagged ledger lines
   -------------------------------------------------------------------------- */

.layer18650-tricklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}

.layer18650-trick {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  padding: 10px;
  background: var(--layer18650-slate-deep);
  border: 1px solid var(--layer18650-slate-line);
  border-left: 3px solid var(--layer18650-accent);
  border-radius: 3px;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.layer18650-trick:hover {
  transform: translateY(-2px);
  border-color: var(--layer18650-accent);
}

.layer18650-trick-tag {
  align-self: start;
  display: inline-block;
  padding: 4px 6px;
  background: var(--layer18650-steel);
  border: 1px solid var(--layer18650-steel-line);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--layer18650-accent);
  text-align: center;
}

.layer18650-trick-title {
  margin: 0 0 3px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--layer18650-paper);
}

.layer18650-trick-text {
  margin: 0;
  font-size: 13px;
  color: var(--layer18650-paper-dim);
}

/* --------------------------------------------------------------------------
   Steps : numbered progression rail
   -------------------------------------------------------------------------- */

.layer18650-steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: layer18650-step;
}

.layer18650-step {
  position: relative;
  counter-increment: layer18650-step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 0 0 16px 0;
}

.layer18650-step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--layer18650-slate-line);
}

.layer18650-step:last-child::before {
  display: none;
}

.layer18650-step:last-child {
  padding-bottom: 2px;
}

.layer18650-step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--layer18650-accent);
  border-radius: 3px;
  background: var(--layer18650-slate-deep);
  color: var(--layer18650-accent);
  font-family: var(--layer18650-font-head);
  font-weight: 900;
  font-size: 16px;
}

.layer18650-step-num::before {
  content: counter(layer18650-step);
}

.layer18650-step-title {
  margin: 3px 0 3px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--layer18650-paper);
  letter-spacing: 0.02em;
}

.layer18650-step-text {
  margin: 0;
  font-size: 13px;
  color: var(--layer18650-paper-dim);
}

/* --------------------------------------------------------------------------
   Requirements checklist
   -------------------------------------------------------------------------- */

.layer18650-req-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.layer18650-req {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px dashed var(--layer18650-steel-line);
  border-radius: 3px;
  background: rgba(73, 80, 87, 0.28);
}

.layer18650-req-mark {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid var(--layer18650-accent);
  border-radius: 2px;
  position: relative;
  flex: 0 0 auto;
}

.layer18650-req-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--layer18650-accent);
  border-bottom: 2px solid var(--layer18650-accent);
  transform: rotate(40deg);
}

.layer18650-req-body {
  font-size: 13px;
  color: var(--layer18650-paper-dim);
}

.layer18650-req-body strong {
  display: block;
  margin-bottom: 2px;
  color: var(--layer18650-paper);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Access summary rows (mobile entry ledger)
   -------------------------------------------------------------------------- */

.layer18650-accesslist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}

.layer18650-access {
  padding: 10px 12px;
  background: var(--layer18650-slate-deep);
  border: 1px solid var(--layer18650-slate-line);
  border-radius: 3px;
  font-size: 13px;
  color: var(--layer18650-paper-dim);
  transition: border-color 0.14s ease;
}

.layer18650-access:hover {
  border-color: var(--layer18650-accent);
}

.layer18650-access strong {
  display: block;
  margin-bottom: 2px;
  color: var(--layer18650-paper);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Pros / limitations split
   -------------------------------------------------------------------------- */

.layer18650-veccol {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--layer18650-slate-line);
  border-radius: 3px;
  background: rgba(42, 59, 77, 0.55);
}

.layer18650-veccol-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--layer18650-font-head);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--layer18650-paper);
}

.layer18650-veccol-title::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
}

.layer18650-veccol-pros .layer18650-veccol-title::before {
  background: var(--layer18650-accent);
}

.layer18650-veccol-lims {
  border-style: dashed;
}

.layer18650-veccol-lims .layer18650-veccol-title::before {
  background: var(--layer18650-steel-soft);
}

.layer18650-veclist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.layer18650-vecitem {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 13px;
  color: var(--layer18650-paper-dim);
  border-top: 1px solid rgba(86, 104, 126, 0.35);
}

.layer18650-vecitem:first-child {
  border-top: 0;
}

.layer18650-vecitem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
}

.layer18650-veccol-pros .layer18650-vecitem::before {
  background: var(--layer18650-accent);
}

.layer18650-veccol-lims .layer18650-vecitem::before {
  background: transparent;
  border: 1px solid var(--layer18650-paper-faint);
}

/* --------------------------------------------------------------------------
   Extended footer : sectioned list (brand > promos > directory > note)
   -------------------------------------------------------------------------- */

.layer18650-xfooter {
  margin: 30px 0 0;
  border: 2px solid var(--layer18650-slate-line);
  border-radius: 4px;
  background: var(--layer18650-slate-floor);
  overflow: hidden;
}

.layer18650-xf-brand {
  padding: 14px var(--layer18650-rail) 12px;
  border-bottom: 1px solid rgba(86, 104, 126, 0.4);
}

.layer18650-xf-brandtitle {
  font-family: var(--layer18650-font-head);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--layer18650-accent);
}

.layer18650-xf-brand p {
  margin: 0;
  font-size: 13px;
  color: var(--layer18650-paper-dim);
}

.layer18650-xf-label {
  display: block;
  padding: 10px var(--layer18650-rail) 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--layer18650-paper-faint);
}

.layer18650-xf-layer {
  border-top: 1px solid rgba(86, 104, 126, 0.4);
}

.layer18650-xf-promos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px var(--layer18650-rail) 10px;
}

.layer18650-xf-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--layer18650-slate-deep);
  border: 1px solid var(--layer18650-slate-line);
  border-radius: 3px;
  color: var(--layer18650-paper);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.layer18650-xf-promo:hover {
  border-color: var(--layer18650-accent);
  color: var(--layer18650-accent);
}

.layer18650-xf-promo:active {
  transform: scale(0.98);
}

.layer18650-xf-promo::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.layer18650-xf-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 2px var(--layer18650-rail) 12px;
}

.layer18650-xf-dirlink {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(110, 120, 135, 0.5);
  border-radius: 3px;
  background: rgba(52, 73, 94, 0.5);
  color: var(--layer18650-paper-dim);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.layer18650-xf-dirlink:hover {
  border-color: var(--layer18650-accent);
  color: var(--layer18650-accent);
}

.layer18650-xf-note {
  padding: 12px var(--layer18650-rail) 14px;
  border-top: 1px dashed rgba(110, 120, 135, 0.5);
  font-size: 12px;
  line-height: 1.5;
  color: var(--layer18650-paper-faint);
}

/* --------------------------------------------------------------------------
   Common footer + bottom navigation
   -------------------------------------------------------------------------- */

.layer18650-footer {
  padding: 14px var(--layer18650-rail) 10px;
  border-top: 1px solid rgba(86, 104, 126, 0.4);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--layer18650-paper-faint);
}

.layer18650-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--layer18650-nav-h);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #2E4053 0%, #22303F 100%);
  border-top: 2px solid var(--layer18650-accent);
}

.layer18650-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px;
  background: none;
  border: 0;
  border-top: 3px solid transparent;
  color: var(--layer18650-paper-dim);
  border-radius: 0;
  transition: color 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.layer18650-bnav-item:hover {
  color: var(--layer18650-accent);
}

.layer18650-bnav-item:active {
  transform: scale(0.92);
}

.layer18650-bnav-item[data-state="on"] {
  color: var(--layer18650-accent);
  border-top-color: var(--layer18650-accent);
  transform: translateY(-2px);
}

.layer18650-bnav-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: rgba(34, 48, 63, 0.6);
}

.layer18650-bnav-ic svg {
  width: 17px;
  height: 17px;
  display: block;
}

.layer18650-bnav-label {
  font-size: 10.2px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Help-page bodies : fault board, glossary, compare strips, kit, flow
   -------------------------------------------------------------------------- */

.layer18650-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.layer18650-faults {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}

.layer18650-fault {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  padding: 10px;
  background: var(--layer18650-slate-deep);
  border: 1px solid var(--layer18650-slate-line);
  border-radius: 3px;
}

.layer18650-fault-code {
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px;
  border: 2px solid var(--layer18650-accent);
  border-radius: 3px;
  color: var(--layer18650-accent);
  font-family: var(--layer18650-font-head);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.layer18650-fault h3,
.layer18650-warn h3,
.layer18650-gloss h3,
.layer18650-pick h3,
.layer18650-stamp h3,
.layer18650-flow h3,
.layer18650-band h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--layer18650-paper);
}

.layer18650-fault p,
.layer18650-warn p,
.layer18650-gloss p,
.layer18650-pick p,
.layer18650-stamp p,
.layer18650-flow p,
.layer18650-band p,
.layer18650-kit p {
  margin: 0;
  font-size: 13px;
  color: var(--layer18650-paper-dim);
}

.layer18650-warns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}

.layer18650-warn {
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--layer18650-steel-line);
  border-left: 4px solid var(--layer18650-warn);
  border-radius: 3px;
  background: rgba(73, 80, 87, 0.35);
}

.layer18650-gloss {
  margin: 12px 0 0;
  border: 1px solid var(--layer18650-slate-line);
  border-radius: 3px;
  overflow: hidden;
}

.layer18650-gloss-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(86, 104, 126, 0.45);
  background: var(--layer18650-slate-deep);
}

.layer18650-gloss-row:first-child {
  border-top: 0;
}

.layer18650-gloss-term {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--layer18650-accent);
}

.layer18650-gates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}

.layer18650-gate {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 2px solid var(--layer18650-slate-line);
  border-radius: 3px;
  background: rgba(42, 59, 77, 0.45);
}

.layer18650-gate-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--layer18650-accent);
  color: var(--layer18650-accent-ink);
  font-family: var(--layer18650-font-head);
  font-weight: 900;
  font-size: 16px;
}

.layer18650-gate h3 {
  margin: 2px 0 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--layer18650-paper);
}

.layer18650-gate p {
  margin: 0;
  font-size: 13px;
  color: var(--layer18650-paper-dim);
}

.layer18650-stops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
}

.layer18650-stop {
  min-height: 44px;
  padding: 10px;
  border: 1px dashed var(--layer18650-steel-line);
  border-radius: 3px;
  background: var(--layer18650-slate-floor);
}

.layer18650-stop strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--layer18650-accent);
}

.layer18650-stop p {
  margin: 0;
  font-size: 12.5px;
  color: var(--layer18650-paper-dim);
}

.layer18650-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}

.layer18650-pick {
  padding: 0;
  border: 1px solid var(--layer18650-slate-line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--layer18650-slate-deep);
}

.layer18650-pick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--layer18650-slate-floor);
  border-bottom: 2px solid var(--layer18650-accent);
}

.layer18650-pick-top span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--layer18650-paper-faint);
}

.layer18650-pick-body {
  padding: 10px;
}

.layer18650-stamps {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--layer18650-steel-line);
}

.layer18650-stamp {
  position: relative;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--layer18650-slate-line);
  border-radius: 3px;
  background: rgba(73, 80, 87, 0.28);
}

.layer18650-stamp-time {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 6px;
  background: var(--layer18650-steel);
  color: var(--layer18650-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.layer18650-kit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
}

.layer18650-kit-item {
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--layer18650-slate-line);
  border-radius: 3px;
  background: var(--layer18650-slate-deep);
}

.layer18650-kit-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  color: var(--layer18650-paper);
}

.layer18650-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 12px 0 0;
}

.layer18650-flow-step {
  padding: 10px 10px 14px 12px;
  border-left: 2px solid var(--layer18650-accent);
  margin-left: 8px;
}

.layer18650-bands {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}

.layer18650-band {
  padding: 10px 12px;
  border: 2px solid var(--layer18650-slate-line);
  border-radius: 0;
  background: var(--layer18650-slate-deep);
}

.layer18650-band[data-level="stop"] {
  border-color: var(--layer18650-accent);
}

.layer18650-band-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--layer18650-accent);
}

/* --------------------------------------------------------------------------
   Wide-screen behavior : keep the 430px phone frame centered
   -------------------------------------------------------------------------- */

@media (min-width: 375px) {
  .layer18650-h1 {
    font-size: 27px;
  }

  .layer18650-sec-title {
    font-size: 18.5px;
  }

  .layer18650-tile-name {
    font-size: 11.2px;
  }
}

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

  .layer18650-xf-dirgrid {
    grid-template-columns: repeat(3, 1fr);
  }

  .layer18650-h1 {
    font-size: 30px;
  }
}

/* Respect users who prefer no animation */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .layer18650-drawer,
  .layer18650-tile,
  .layer18650-trick,
  .layer18650-cta,
  .layer18650-menubtn,
  .layer18650-bnav-item,
  .layer18650-dot,
  .layer18650-xf-promo {
    transition: none;
  }

  .layer18650-tile:hover,
  .layer18650-trick:hover {
    transform: none;
  }
}
