/* ============================================================
   17jl.homes - native-1fce50-canvas.css
   Mobile-first phone canvas (320-430px), centered on wide viewports.
   Palette: rust #BF360C / deep slate #1C2833 / light gray #E0E0E0
   Voice: poster headings (Oswald) over narrow body (Roboto Condensed),
   outlined tile game cards, light-rounded text CTA groups,
   compact metric-explanation rhythm, restrained fade feedback.
   All classes and variables carry the layer1fce5- prefix.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --layer1fce5-bg: #1c2833;
  --layer1fce5-bg-deep: #131c25;
  --layer1fce5-panel: #24313d;
  --layer1fce5-panel-2: #2b3a48;
  --layer1fce5-line: #3d4f5e;
  --layer1fce5-line-soft: #33424f;
  --layer1fce5-ink: #e0e0e0;
  --layer1fce5-ink-strong: #f4f6f7;
  --layer1fce5-muted: #a4b4c0;
  --layer1fce5-rust: #bf360c;
  --layer1fce5-rust-bright: #dd5320;
  --layer1fce5-rust-deep: #942a08;
  --layer1fce5-sand: #e8c9a0;
  --layer1fce5-radius-tile: 6px;
  --layer1fce5-radius-btn: 999px;
  --layer1fce5-radius-mod: 8px;
  --layer1fce5-font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --layer1fce5-font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --layer1fce5-topbar-h: 108px;
  --layer1fce5-bnav-h: 66px;
  --layer1fce5-gap: 12px;
}

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

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

body {
  margin: 0;
  padding: 0;
  background: #0d141b;
  color: var(--layer1fce5-ink);
  font-family: var(--layer1fce5-font-body);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.1px;
}

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

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

a { color: var(--layer1fce5-sand); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--layer1fce5-font-head);
  color: var(--layer1fce5-ink-strong);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 600;
}

p { margin: 0 0 10px; }

ul, ol { margin: 0 0 10px; padding-left: 20px; }

/* ---------- Phone canvas ---------- */
.layer1fce5-page {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 42% at 50% 0%, #2a3a49 0%, var(--layer1fce5-bg) 58%),
    var(--layer1fce5-bg);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  overflow-x: hidden;
}

@media (min-width: 431px) {
  body { background: #0b1117; }
  .layer1fce5-page { border-left: 1px solid var(--layer1fce5-line-soft); border-right: 1px solid var(--layer1fce5-line-soft); }
}

.layer1fce5-main {
  padding: calc(var(--layer1fce5-topbar-h) + 6px) 14px calc(var(--layer1fce5-bnav-h) + 26px);
}

/* ---------- Fixed top bar: identity bar + action row ---------- */
.layer1fce5-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #223140 0%, #1a2632 100%);
  border-bottom: 2px solid var(--layer1fce5-rust);
  padding-top: env(safe-area-inset-top);
}

.layer1fce5-ident {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  border-bottom: 1px solid var(--layer1fce5-line-soft);
}

.layer1fce5-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
}

.layer1fce5-brandlogo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--layer1fce5-line);
  background: #0f171f;
  object-fit: cover;
}

.layer1fce5-brandname {
  font-family: var(--layer1fce5-font-head);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--layer1fce5-ink-strong);
}

.layer1fce5-brandname em {
  font-style: normal;
  color: var(--layer1fce5-rust-bright);
}

.layer1fce5-menubtn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--layer1fce5-line);
  border-radius: 10px;
}

.layer1fce5-menubtn svg { width: 20px; height: 20px; fill: var(--layer1fce5-ink); }

.layer1fce5-menubtn:active { background: var(--layer1fce5-panel-2); }

.layer1fce5-identnote {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--layer1fce5-muted);
  border: 1px solid var(--layer1fce5-line-soft);
  border-radius: var(--layer1fce5-radius-btn);
  padding: 3px 8px;
}

.layer1fce5-actrow {
  display: flex;
  gap: 8px;
  padding: 8px 12px 10px;
}

/* ---------- Buttons: light-rounded text CTA group ---------- */
.layer1fce5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: var(--layer1fce5-radius-btn);
  border: 1px solid transparent;
  font-family: var(--layer1fce5-font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: none;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

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

.layer1fce5-btn-solid {
  background: linear-gradient(180deg, var(--layer1fce5-rust-bright) 0%, var(--layer1fce5-rust) 100%);
  color: #fff;
  border-color: var(--layer1fce5-rust-deep);
  box-shadow: 0 3px 0 var(--layer1fce5-rust-deep);
}

.layer1fce5-btn-solid:active { box-shadow: 0 1px 0 var(--layer1fce5-rust-deep); }

.layer1fce5-btn-ghost {
  border-color: var(--layer1fce5-line);
  color: var(--layer1fce5-ink);
  background: rgba(36, 49, 61, 0.6);
}

.layer1fce5-btn-ghost:hover { border-color: var(--layer1fce5-rust-bright); color: #fff; text-decoration: none; }

.layer1fce5-btn-grow { flex: 1 1 auto; }

.layer1fce5-btn-sm { min-height: 38px; padding: 7px 14px; font-size: 13px; }

.layer1fce5-ctagroup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

/* ---------- Stacked overlay menu ---------- */
.layer1fce5-menuov {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100%;
  z-index: 90;
  background: linear-gradient(180deg, #17222d 0%, #101923 100%);
  display: none;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 14px) 18px 24px;
  overflow-y: auto;
}

.layer1fce5-menuov.layer1fce5-menu-open { display: flex; animation: layer1fce5-fadein 0.2s ease both; }

.layer1fce5-menuhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--layer1fce5-rust);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.layer1fce5-menuhead span {
  font-family: var(--layer1fce5-font-head);
  font-size: 19px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--layer1fce5-ink-strong);
}

.layer1fce5-menuclose {
  width: 44px;
  height: 44px;
  border: 1px solid var(--layer1fce5-line);
  border-radius: 10px;
  background: var(--layer1fce5-panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layer1fce5-menuclose svg { width: 18px; height: 18px; fill: var(--layer1fce5-ink); }

.layer1fce5-menutag {
  display: block;
  margin: 14px 2px 6px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--layer1fce5-rust-bright);
}

.layer1fce5-menuitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 12px;
  margin: 0 0 6px;
  border: 1px solid var(--layer1fce5-line-soft);
  border-radius: var(--layer1fce5-radius-tile);
  background: var(--layer1fce5-panel);
  color: var(--layer1fce5-ink);
  font-family: var(--layer1fce5-font-head);
  font-size: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.layer1fce5-menuitem::after {
  content: "\203A";
  color: var(--layer1fce5-rust-bright);
  font-size: 20px;
}

.layer1fce5-menuitem:hover, .layer1fce5-menuitem:active {
  border-color: var(--layer1fce5-rust);
  color: #fff;
  text-decoration: none;
}

.layer1fce5-menuitem[aria-current="page"] {
  border-color: var(--layer1fce5-rust-bright);
  background: var(--layer1fce5-panel-2);
}

/* ---------- Hero ---------- */
.layer1fce5-hero { padding: 6px 0 2px; }

.layer1fce5-hero h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.layer1fce5-hero h1 .layer1fce5-h1accent { color: var(--layer1fce5-rust-bright); }

.layer1fce5-lede {
  color: var(--layer1fce5-muted);
  font-size: 15.5px;
  max-width: 38ch;
}

.layer1fce5-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 4px;
}

.layer1fce5-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--layer1fce5-line-soft);
  border-radius: var(--layer1fce5-radius-btn);
  background: rgba(20, 29, 38, 0.7);
  color: var(--layer1fce5-ink);
  font-size: 11.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 11px;
}

.layer1fce5-chip b { color: var(--layer1fce5-sand); font-weight: 700; }

.layer1fce5-chipdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--layer1fce5-rust-bright);
  display: inline-block;
}

/* ---------- Carousel ---------- */
.layer1fce5-carousel {
  position: relative;
  margin: 14px 0 4px;
  border: 1px solid var(--layer1fce5-line);
  border-radius: var(--layer1fce5-radius-mod);
  overflow: hidden;
  background: var(--layer1fce5-bg-deep);
}

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

.layer1fce5-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  display: block;
}

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

.layer1fce5-slidecap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(19, 28, 37, 0) 0%, rgba(15, 22, 30, 0.92) 78%);
  text-align: left;
}

.layer1fce5-slidecap b {
  display: block;
  font-family: var(--layer1fce5-font-head);
  font-size: 17px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
}

.layer1fce5-slidecap span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--layer1fce5-sand);
}

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

.layer1fce5-dot {
  width: 26px;
  height: 26px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: rgba(224, 224, 224, 0.25);
}

.layer1fce5-dot::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--layer1fce5-ink);
  opacity: 0.6;
}

.layer1fce5-dot.layer1fce5-dot-on::before { background: var(--layer1fce5-rust-bright); opacity: 1; }

/* ---------- Sections / modules ---------- */
.layer1fce5-sec {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--layer1fce5-line-soft);
}

.layer1fce5-sec h2 {
  position: relative;
  font-size: 20px;
  padding-left: 12px;
  margin-bottom: 10px;
}

.layer1fce5-sec h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--layer1fce5-rust-bright), var(--layer1fce5-rust-deep));
}

.layer1fce5-secnote {
  color: var(--layer1fce5-muted);
  font-size: 13.5px;
  margin: 0 0 10px;
}

.layer1fce5-sec h3 {
  font-size: 14px;
  letter-spacing: 0.8px;
  color: var(--layer1fce5-sand);
  margin: 12px 0 4px;
}

/* ---------- Game grid: outlined tile cards ---------- */
.layer1fce5-ggrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 6px;
}

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

.layer1fce5-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--layer1fce5-line);
  border-radius: var(--layer1fce5-radius-tile);
  background: var(--layer1fce5-panel);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.12s ease;
}

.layer1fce5-tile:hover, .layer1fce5-tile:active {
  border-color: var(--layer1fce5-rust-bright);
}

.layer1fce5-tile:active { transform: scale(0.96); }

.layer1fce5-timgwrap {
  border-bottom: 1px solid var(--layer1fce5-line-soft);
  background: #101923;
}

.layer1fce5-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.layer1fce5-tname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
  padding: 4px 5px 5px;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.2px;
  color: var(--layer1fce5-ink);
  text-align: center;
  text-transform: none;
}

.layer1fce5-cat {
  margin-top: 18px;
  padding-top: 4px;
}

.layer1fce5-cat:first-of-type { margin-top: 6px; }

.layer1fce5-catmeta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: -2px 0 8px;
}

.layer1fce5-catcount {
  font-family: var(--layer1fce5-font-head);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--layer1fce5-rust-bright);
  border: 1px solid rgba(191, 54, 12, 0.55);
  border-radius: var(--layer1fce5-radius-btn);
  padding: 2px 9px;
  white-space: nowrap;
}

/* ---------- Direct answer block ---------- */
.layer1fce5-answer {
  border: 1px solid var(--layer1fce5-line);
  border-left: 4px solid var(--layer1fce5-rust);
  border-radius: var(--layer1fce5-radius-mod);
  background: rgba(36, 49, 61, 0.72);
  padding: 12px 12px 8px;
}

.layer1fce5-answer p { color: var(--layer1fce5-ink); }

.layer1fce5-answerfacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 4px;
}

@media (min-width: 375px) {
  .layer1fce5-answerfacts { grid-template-columns: 1fr 1fr; }
}

.layer1fce5-fact {
  border-top: 1px dashed var(--layer1fce5-line);
  padding-top: 8px;
}

.layer1fce5-fact b {
  display: block;
  font-family: var(--layer1fce5-font-head);
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--layer1fce5-sand);
  margin-bottom: 2px;
}

.layer1fce5-fact span { font-size: 13px; color: var(--layer1fce5-muted); }

/* ---------- Compact metric rows (promotions, payments) ---------- */
.layer1fce5-metric {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 2px;
  border-bottom: 1px solid var(--layer1fce5-line-soft);
}

.layer1fce5-metric:last-of-type { border-bottom: 0; }

.layer1fce5-metric b {
  flex: 0 0 96px;
  font-family: var(--layer1fce5-font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--layer1fce5-rust-bright);
  line-height: 1.35;
}

.layer1fce5-metric span {
  flex: 1 1 auto;
  font-size: 13.5px;
  color: var(--layer1fce5-ink);
  line-height: 1.5;
}

/* ---------- Steps ---------- */
.layer1fce5-steps {
  list-style: none;
  counter-reset: layer1fce5step;
  padding: 0;
  margin: 8px 0 6px;
}

.layer1fce5-steps li {
  counter-increment: layer1fce5step;
  position: relative;
  padding: 0 0 12px 40px;
  font-size: 14px;
}

.layer1fce5-steps li::before {
  content: counter(layer1fce5step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--layer1fce5-rust);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--layer1fce5-font-head);
  font-size: 12px;
  color: var(--layer1fce5-rust-bright);
  background: rgba(191, 54, 12, 0.12);
}

.layer1fce5-notecard {
  margin-top: 8px;
  border: 1px dashed var(--layer1fce5-line);
  border-radius: var(--layer1fce5-radius-mod);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--layer1fce5-muted);
}

/* ---------- Guide grid ---------- */
.layer1fce5-guidegrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 8px 0 6px;
}

@media (min-width: 375px) {
  .layer1fce5-guidegrid { grid-template-columns: 1fr 1fr; }
}

.layer1fce5-guide {
  border: 1px solid var(--layer1fce5-line);
  border-radius: var(--layer1fce5-radius-tile);
  background: var(--layer1fce5-panel);
  padding: 10px;
}

.layer1fce5-guide b {
  display: block;
  font-family: var(--layer1fce5-font-head);
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--layer1fce5-sand);
  margin-bottom: 3px;
}

.layer1fce5-guide span { font-size: 13px; color: var(--layer1fce5-muted); }

/* ---------- Pros / limits duo ---------- */
.layer1fce5-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 8px 0 6px;
}

@media (min-width: 375px) {
  .layer1fce5-duo { grid-template-columns: 1fr 1fr; }
}

.layer1fce5-duo ul { list-style: none; padding: 0; margin: 0; }

.layer1fce5-duo li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 13px;
  line-height: 1.45;
  border-bottom: 1px solid var(--layer1fce5-line-soft);
}

.layer1fce5-duo li:last-child { border-bottom: 0; }

.layer1fce5-duo-good li::before,
.layer1fce5-duo-limit li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 7px;
  height: 7px;
}

.layer1fce5-duo-good li::before { background: var(--layer1fce5-sand); }

.layer1fce5-duo-limit li::before { background: var(--layer1fce5-rust-bright); }

.layer1fce5-duotitle {
  font-family: var(--layer1fce5-font-head);
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--layer1fce5-ink-strong);
  margin-bottom: 4px;
}

/* ---------- Extended homepage footer ---------- */
.layer1fce5-xfoot {
  margin-top: 26px;
  border-top: 2px solid var(--layer1fce5-rust);
  background: linear-gradient(180deg, rgba(36, 49, 61, 0.55), rgba(16, 24, 32, 0.9));
  padding: 16px 0 6px;
}

.layer1fce5-xfinner { padding: 0 14px; }

.layer1fce5-xfbrand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.layer1fce5-xfbrandlogo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--layer1fce5-line);
  background: #0f171f;
  object-fit: cover;
  flex: 0 0 40px;
}

.layer1fce5-xfbrand p {
  margin: 0;
  font-size: 13px;
  color: var(--layer1fce5-muted);
}

.layer1fce5-xfbrand b {
  display: block;
  font-family: var(--layer1fce5-font-head);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--layer1fce5-ink-strong);
  margin-bottom: 2px;
}

.layer1fce5-xftitle {
  font-family: var(--layer1fce5-font-head);
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--layer1fce5-rust-bright);
  margin: 14px 0 8px;
}

.layer1fce5-dirgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 14px;
}

@media (min-width: 375px) {
  .layer1fce5-dirgrid { grid-template-columns: 1fr 1fr; }
}

.layer1fce5-dirlink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-size: 13px;
  color: var(--layer1fce5-ink);
  border-bottom: 1px dotted var(--layer1fce5-line-soft);
}

.layer1fce5-dirlink svg {
  width: 13px;
  height: 13px;
  fill: var(--layer1fce5-rust-bright);
  flex: 0 0 13px;
}

.layer1fce5-dirlink:hover { color: #fff; }

/* ---------- Horizontal promo shortcuts ---------- */
.layer1fce5-shorts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 14px 8px;
  margin: 0 -14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.layer1fce5-shorts::-webkit-scrollbar { display: none; }

.layer1fce5-short {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 82px;
  min-height: 74px;
  border: 1px solid var(--layer1fce5-line);
  border-radius: var(--layer1fce5-radius-mod);
  background: var(--layer1fce5-panel);
  padding: 8px 6px;
  transition: border-color 0.18s ease, transform 0.12s ease;
}

.layer1fce5-short:hover, .layer1fce5-short:active { border-color: var(--layer1fce5-rust-bright); text-decoration: none; }

.layer1fce5-short:active { transform: scale(0.95); }

.layer1fce5-short svg { width: 20px; height: 20px; fill: var(--layer1fce5-rust-bright); }

.layer1fce5-short span {
  font-size: 11px;
  letter-spacing: 0.4px;
  text-align: center;
  color: var(--layer1fce5-ink);
  line-height: 1.25;
}

.layer1fce5-xfnote {
  margin: 12px 0 10px;
  border: 1px dashed var(--layer1fce5-line);
  border-radius: var(--layer1fce5-radius-mod);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--layer1fce5-muted);
}

/* ---------- Legal footer ---------- */
.layer1fce5-legal {
  border-top: 1px solid var(--layer1fce5-line-soft);
  padding: 12px 14px 6px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--layer1fce5-muted);
}

.layer1fce5-legal b { color: var(--layer1fce5-ink); }

/* ---------- Bottom navigation with raised center ---------- */
.layer1fce5-bnav {
  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);
  align-items: end;
  height: calc(var(--layer1fce5-bnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, rgba(26, 38, 50, 0.97), #131c25);
  border-top: 1px solid var(--layer1fce5-line);
}

.layer1fce5-bnav::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 10px;
  border-radius: 0 0 12px 12px;
  background: var(--layer1fce5-rust-deep);
  opacity: 0.5;
}

.layer1fce5-bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  height: var(--layer1fce5-bnav-h);
  padding: 8px 2px 7px;
  background: none;
  border: 0;
  text-decoration: none;
}

.layer1fce5-bnav-ico {
  width: 21px;
  height: 21px;
  fill: var(--layer1fce5-muted);
  transition: fill 0.18s ease, transform 0.18s ease;
}

.layer1fce5-bnav-label {
  font-family: var(--layer1fce5-font-head);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--layer1fce5-muted);
  opacity: 0.62;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.layer1fce5-bnav-item:active .layer1fce5-bnav-ico { transform: translateY(-2px); }

.layer1fce5-bnav-item:active .layer1fce5-bnav-label,
.layer1fce5-bnav-item:hover .layer1fce5-bnav-label { opacity: 1; color: var(--layer1fce5-ink-strong); }

.layer1fce5-bnav-item:hover { text-decoration: none; }

.layer1fce5-bnav-item.layer1fce5-is-on .layer1fce5-bnav-ico { fill: var(--layer1fce5-rust-bright); }

.layer1fce5-bnav-item.layer1fce5-is-on .layer1fce5-bnav-label {
  opacity: 1;
  color: var(--layer1fce5-rust-bright);
  font-weight: 600;
}

.layer1fce5-bnav-item.layer1fce5-is-on::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--layer1fce5-rust-bright);
}

/* Raised center promo role */
.layer1fce5-bnav-raise {
  justify-content: flex-start;
}

.layer1fce5-bnav-raise .layer1fce5-raisebtn {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--layer1fce5-rust-deep);
  background: linear-gradient(180deg, var(--layer1fce5-rust-bright) 0%, var(--layer1fce5-rust) 100%);
  box-shadow: 0 4px 14px rgba(191, 54, 12, 0.5), 0 0 0 5px #16202b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.layer1fce5-bnav-raise .layer1fce5-raisebtn:active { transform: translateX(-50%) scale(0.93); }

.layer1fce5-bnav-raise .layer1fce5-raisebtn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.layer1fce5-bnav-raise .layer1fce5-bnav-label { margin-top: 34px; }

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--layer1fce5-rust-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Restrained fade feedback ---------- */
html.layer1fce5-js .layer1fce5-fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.layer1fce5-js .layer1fce5-fade.layer1fce5-in {
  opacity: 1;
  transform: none;
}

@keyframes layer1fce5-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html.layer1fce5-js .layer1fce5-fade { opacity: 1; transform: none; }
  .layer1fce5-track { transition: none; }
}

/* ---------- Small-screen tightening ---------- */
@media (max-width: 359px) {
  .layer1fce5-hero h1 { font-size: 26px; }
  .layer1fce5-brandname { font-size: 21px; }
  .layer1fce5-btn { padding: 9px 12px; font-size: 13.5px; }
  .layer1fce5-short { width: 74px; }
}

/* ---------- Help page accents ---------- */
.layer1fce5-helpintro {
  border-left: 4px solid var(--layer1fce5-rust-bright);
  padding: 12px 12px 4px;
  background: rgba(36, 49, 61, 0.72);
  border-radius: 0 var(--layer1fce5-radius-mod) var(--layer1fce5-radius-mod) 0;
}

.layer1fce5-helpintro strong { color: var(--layer1fce5-sand); }

.layer1fce5-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 8px 10px;
  border-top: 1px solid var(--layer1fce5-rust);
  border-bottom: 1px solid var(--layer1fce5-line);
  color: var(--layer1fce5-ink-strong);
  font-family: var(--layer1fce5-font-head);
  font-size: 13px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.layer1fce5-ribbon b { color: var(--layer1fce5-rust-bright); }

.layer1fce5-callout {
  margin: 10px 0;
  padding: 11px 12px;
  border: 1px solid var(--layer1fce5-line);
  background: linear-gradient(135deg, rgba(191, 54, 12, 0.16), rgba(36, 49, 61, 0.72));
  border-radius: var(--layer1fce5-radius-mod);
}

.layer1fce5-callout b {
  display: block;
  margin-bottom: 3px;
  color: var(--layer1fce5-sand);
  font-family: var(--layer1fce5-font-head);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.layer1fce5-checklist { list-style: none; padding: 0; margin: 8px 0; }

.layer1fce5-checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--layer1fce5-line-soft);
  font-size: 13.5px;
}

.layer1fce5-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--layer1fce5-rust);
  border-radius: 50%;
  color: var(--layer1fce5-rust-bright);
  font-family: var(--layer1fce5-font-head);
  font-size: 11px;
}

.layer1fce5-signal {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--layer1fce5-line);
}

.layer1fce5-signal b {
  color: var(--layer1fce5-rust-bright);
  font-family: var(--layer1fce5-font-head);
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.layer1fce5-signal span { font-size: 13px; color: var(--layer1fce5-ink); }

.layer1fce5-scoreline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 12px 0;
}

.layer1fce5-score {
  min-height: 68px;
  padding: 9px 7px;
  border: 1px solid var(--layer1fce5-line);
  border-top: 3px solid var(--layer1fce5-rust);
  background: var(--layer1fce5-panel);
  text-align: center;
}

.layer1fce5-score b {
  display: block;
  color: var(--layer1fce5-rust-bright);
  font-family: var(--layer1fce5-font-head);
  font-size: 19px;
}

.layer1fce5-score span { display: block; color: var(--layer1fce5-muted); font-size: 11px; line-height: 1.25; }

.layer1fce5-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.layer1fce5-compare > div {
  padding: 10px;
  border: 1px solid var(--layer1fce5-line);
  background: rgba(36, 49, 61, 0.65);
}

.layer1fce5-compare h3 { margin-top: 0; }
.layer1fce5-compare p { font-size: 13px; color: var(--layer1fce5-muted); }

.layer1fce5-steps.layer1fce5-steps-tight li { padding-bottom: 9px; }

@media (max-width: 359px) {
  .layer1fce5-scoreline { gap: 4px; }
  .layer1fce5-score { padding-left: 3px; padding-right: 3px; }
  .layer1fce5-compare { grid-template-columns: 1fr; }
}
