/* ==========================================================================
   xkingappapk.homes - compact-de9d86-viewport.css
   Mobile-first stylesheet for the XKing app apk phone canvas.
   Palette: #FF8C00 / #FF5722 / #1E1E1E / #FFE4B5
   Design voice: dark velvet base, amber edge-light, humanist headings,
   square high-contrast CTAs, compact square-tile game catalog.
   All classes and custom properties use the layerde9d8- prefix.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --layerde9d8-bg: #1e1e1e;
  --layerde9d8-bg-deep: #141414;
  --layerde9d8-panel: #262521;
  --layerde9d8-panel-2: #2d2a24;
  --layerde9d8-edge: #3a352c;
  --layerde9d8-amber: #ff8c00;
  --layerde9d8-flame: #ff5722;
  --layerde9d8-ink: #ffe4b5;
  --layerde9d8-ink-soft: rgba(255, 228, 181, 0.82);
  --layerde9d8-ink-dim: rgba(255, 228, 181, 0.62);
  --layerde9d8-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --layerde9d8-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --layerde9d8-canvas: 430px;
  --layerde9d8-bnav-h: 66px;
  --layerde9d8-top-h: 58px;
  --layerde9d8-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  --layerde9d8-lift: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt,
figure {
  margin: 0;
}

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--layerde9d8-amber);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--layerde9d8-amber);
  color: #1e1e1e;
}

/* --------------------------------------------------------------------------
   3. Phone canvas (centered on wide screens)
   -------------------------------------------------------------------------- */
.layerde9d8-page {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 46% at 50% -6%, rgba(255, 140, 0, 0.16), transparent 62%),
    var(--layerde9d8-bg);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.08), 0 0 60px rgba(0, 0, 0, 0.55);
}

@media (min-width: 430px) {
  .layerde9d8-page {
    border-radius: 4px 4px 0 0;
  }
}

/* Skip link for keyboard users */
.layerde9d8-skip {
  position: absolute;
  left: 10px;
  top: -48px;
  z-index: 200;
  background: var(--layerde9d8-amber);
  color: #1e1e1e;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.layerde9d8-skip:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   4. Asymmetric brand header
   -------------------------------------------------------------------------- */
.layerde9d8-top {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--layerde9d8-top-h);
  padding: 8px 10px 8px 12px;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.98), rgba(30, 30, 30, 0.92));
  border-bottom: 1px solid rgba(255, 140, 0, 0.28);
  backdrop-filter: blur(6px);
}

.layerde9d8-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 12px 5px 10px;
  background: linear-gradient(120deg, rgba(255, 140, 0, 0.2), rgba(255, 87, 34, 0.08) 70%, transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.layerde9d8-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(255, 140, 0, 0.55);
  background: #141414;
  object-fit: cover;
  flex: none;
}

.layerde9d8-brand-name {
  font-family: var(--layerde9d8-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--layerde9d8-ink);
}

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

/* Header action buttons: square corners, high contrast */
.layerde9d8-btn-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.layerde9d8-btn-top--login {
  border: 1px solid rgba(255, 228, 181, 0.5);
  color: var(--layerde9d8-ink);
}

.layerde9d8-btn-top--reg {
  background: var(--layerde9d8-amber);
  color: #1e1e1e;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

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

.layerde9d8-btn-top--login:hover {
  border-color: var(--layerde9d8-amber);
  color: var(--layerde9d8-amber);
}

.layerde9d8-btn-top--reg:hover {
  background: var(--layerde9d8-flame);
  color: #fff8ec;
}

/* Burger trigger */
.layerde9d8-burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: -8px;
}

.layerde9d8-burger-box {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 0;
}

.layerde9d8-burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--layerde9d8-ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.layerde9d8-burger[aria-expanded="true"] .layerde9d8-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.layerde9d8-burger[aria-expanded="true"] .layerde9d8-burger-line:nth-child(2) {
  opacity: 0;
}

.layerde9d8-burger[aria-expanded="true"] .layerde9d8-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Side drawer menu
   -------------------------------------------------------------------------- */
.layerde9d8-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 8, 5, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.layerde9d8-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: max(0px, calc(50vw - 215px));
  z-index: 100;
  width: min(86vw, 322px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #2a2822, #1d1c19 60%);
  border-left: 2px solid var(--layerde9d8-amber);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.55);
  transform: translateX(106%);
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.layerde9d8-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.25);
}

.layerde9d8-drawer-logo {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(255, 140, 0, 0.55);
  object-fit: cover;
}

.layerde9d8-drawer-title {
  font-family: var(--layerde9d8-serif);
  font-size: 17px;
  font-weight: 700;
}

.layerde9d8-drawer-sub {
  display: block;
  font-family: var(--layerde9d8-sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--layerde9d8-ink-dim);
}

.layerde9d8-drawer-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--layerde9d8-ink-soft);
  border: 1px solid rgba(255, 228, 181, 0.28);
}

.layerde9d8-drawer-group {
  padding: 14px 14px 4px;
}

.layerde9d8-drawer-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--layerde9d8-amber);
  margin-bottom: 6px;
}

.layerde9d8-drawer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 12px 12px 14px;
  border-left: 3px solid transparent;
  color: var(--layerde9d8-ink-soft);
  font-size: 14px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.layerde9d8-drawer-link:hover,
.layerde9d8-drawer-link:focus-visible {
  background: rgba(255, 140, 0, 0.1);
  border-left-color: var(--layerde9d8-amber);
  color: var(--layerde9d8-ink);
  text-decoration: none;
  transform: translateX(2px);
}

.layerde9d8-drawer-link--on {
  background: rgba(255, 140, 0, 0.16);
  border-left-color: var(--layerde9d8-flame);
  color: var(--layerde9d8-ink);
  font-weight: 700;
}

.layerde9d8-drawer-arrow {
  margin-left: auto;
  color: var(--layerde9d8-amber);
  font-size: 13px;
}

.layerde9d8-drawer-foot {
  margin-top: auto;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 140, 0, 0.25);
}

.layerde9d8-drawer-cta {
  width: 100%;
  min-height: 48px;
  background: var(--layerde9d8-amber);
  color: #1e1e1e;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  transition: background 0.16s ease, transform 0.14s ease;
}

.layerde9d8-drawer-cta:hover {
  background: var(--layerde9d8-flame);
  color: #fff8ec;
}

.layerde9d8-drawer-cta:active {
  transform: translateY(2px);
}

/* Body scroll lock while the drawer is open */
html.layerde9d8-locked,
body.layerde9d8-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Main column and hero
   -------------------------------------------------------------------------- */
.layerde9d8-main {
  padding: 14px 12px calc(var(--layerde9d8-bnav-h) + 26px + env(safe-area-inset-bottom));
}

.layerde9d8-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--layerde9d8-amber);
  padding: 5px 10px 5px 8px;
  background: rgba(255, 140, 0, 0.12);
  border-left: 3px solid var(--layerde9d8-flame);
  margin-bottom: 10px;
}

.layerde9d8-hero {
  padding: 8px 2px 4px;
}

.layerde9d8-hero h1 {
  font-family: var(--layerde9d8-serif);
  font-size: clamp(25px, 7.6vw, 31px);
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: var(--layerde9d8-ink);
  text-wrap: balance;
}

.layerde9d8-hero h1 em {
  font-style: normal;
  color: var(--layerde9d8-amber);
}

.layerde9d8-lede {
  margin-top: 10px;
  color: var(--layerde9d8-ink-soft);
  font-size: 14.5px;
}

/* Square high-contrast CTA pair */
.layerde9d8-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.layerde9d8-btn {
  flex: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
  transition: transform 0.14s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.layerde9d8-btn--primary {
  background: var(--layerde9d8-amber);
  color: #1e1e1e;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

.layerde9d8-btn--primary:hover {
  background: var(--layerde9d8-flame);
  color: #fff8ec;
}

.layerde9d8-btn--ghost {
  border: 1px solid rgba(255, 228, 181, 0.45);
  color: var(--layerde9d8-ink);
}

.layerde9d8-btn--ghost:hover {
  border-color: var(--layerde9d8-amber);
  color: var(--layerde9d8-amber);
}

.layerde9d8-btn:active {
  transform: translateY(2px);
}

/* Compact metric + explainer strip */
.layerde9d8-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.layerde9d8-metrics li {
  background: linear-gradient(180deg, var(--layerde9d8-panel-2), var(--layerde9d8-panel));
  border: 1px solid var(--layerde9d8-edge);
  border-top: 2px solid var(--layerde9d8-amber);
  border-radius: 0 0 10px 10px;
  padding: 10px 9px 9px;
}

.layerde9d8-metrics strong {
  display: block;
  font-family: var(--layerde9d8-serif);
  font-size: 22px;
  line-height: 1.1;
  color: var(--layerde9d8-amber);
}

.layerde9d8-metrics span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--layerde9d8-ink-dim);
}

/* --------------------------------------------------------------------------
   7. Banner carousel (scroll-snap track, JS enhanced)
   -------------------------------------------------------------------------- */
.layerde9d8-carousel {
  position: relative;
  margin-top: 16px;
  border: 1px solid var(--layerde9d8-edge);
  border-radius: 12px;
  overflow: hidden;
  background: var(--layerde9d8-panel);
}

.layerde9d8-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

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

.layerde9d8-slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.layerde9d8-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(20, 20, 20, 0.92) 78%);
}

.layerde9d8-slide-cap strong {
  display: block;
  font-family: var(--layerde9d8-serif);
  font-size: 17px;
  line-height: 1.25;
  color: var(--layerde9d8-ink);
}

.layerde9d8-slide-cap em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--layerde9d8-amber);
}

.layerde9d8-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.22);
  pointer-events: none;
}

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

.layerde9d8-dot {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layerde9d8-dot i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 228, 181, 0.42);
  border: 1px solid rgba(255, 228, 181, 0.6);
  transition: background 0.18s ease, transform 0.18s ease, width 0.18s ease;
}

.layerde9d8-dot.layerde9d8-dot--on i {
  width: 16px;
  border-radius: 4px;
  background: var(--layerde9d8-amber);
  border-color: var(--layerde9d8-amber);
  transform: none;
}

/* --------------------------------------------------------------------------
   8. Category blocks and square-tile game catalog
   -------------------------------------------------------------------------- */
.layerde9d8-cat {
  margin-top: 26px;
  scroll-margin-top: calc(var(--layerde9d8-top-h) + 8px);
}

.layerde9d8-cat-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.layerde9d8-cat-index {
  font-family: var(--layerde9d8-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--layerde9d8-flame);
  letter-spacing: 0.16em;
}

.layerde9d8-cat h2 {
  font-family: var(--layerde9d8-serif);
  font-size: 20px;
  line-height: 1.22;
  color: var(--layerde9d8-ink);
  text-wrap: balance;
}

.layerde9d8-cat-intro {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--layerde9d8-ink-soft);
}

.layerde9d8-cat-links {
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--layerde9d8-ink-dim);
}

.layerde9d8-cat-links a {
  color: var(--layerde9d8-amber);
  text-decoration: underline;
  text-decoration-color: rgba(255, 140, 0, 0.4);
  text-underline-offset: 3px;
}

/* Grid: 4 columns on small phones, 5 on wider canvases */
.layerde9d8-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

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

.layerde9d8-tile {
  min-width: 0;
}

.layerde9d8-tile-hit {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  background: linear-gradient(180deg, var(--layerde9d8-panel-2), var(--layerde9d8-panel));
  border: 1px solid var(--layerde9d8-edge);
  border-radius: 10px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.layerde9d8-tile-hit:hover {
  border-color: rgba(255, 140, 0, 0.65);
  transform: translateY(-2px);
  box-shadow: var(--layerde9d8-lift);
}

.layerde9d8-tile-hit:active {
  transform: translateY(0) scale(0.97);
  border-color: var(--layerde9d8-flame);
}

.layerde9d8-tile-frame {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  overflow: hidden;
  background: #191713;
}

.layerde9d8-tile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layerde9d8-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  font-size: 10.5px;
  line-height: 1.25;
  text-align: center;
  color: var(--layerde9d8-ink-soft);
  overflow-wrap: anywhere;
}

.layerde9d8-tile:hover .layerde9d8-tile-name {
  color: var(--layerde9d8-ink);
}

/* --------------------------------------------------------------------------
   9. Editorial sections (steps, checklist, comparison, FAQ)
   -------------------------------------------------------------------------- */
.layerde9d8-sect {
  margin-top: 30px;
  scroll-margin-top: calc(var(--layerde9d8-top-h) + 8px);
}

.layerde9d8-sect h2 {
  font-family: var(--layerde9d8-serif);
  font-size: 20px;
  line-height: 1.24;
  color: var(--layerde9d8-ink);
  text-wrap: balance;
}

.layerde9d8-sect > .layerde9d8-sect-lede {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--layerde9d8-ink-soft);
}

.layerde9d8-sect h3 {
  font-family: var(--layerde9d8-serif);
  font-size: 15.5px;
  color: var(--layerde9d8-ink);
  margin: 16px 0 6px;
}

.layerde9d8-sect p {
  font-size: 13.5px;
  color: var(--layerde9d8-ink-soft);
}

.layerde9d8-sect p + p {
  margin-top: 9px;
}

/* Numbered steps with square badges */
.layerde9d8-steps {
  counter-reset: layerde9d8-step;
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.layerde9d8-steps li {
  counter-increment: layerde9d8-step;
  position: relative;
  padding: 11px 12px 11px 48px;
  background: linear-gradient(180deg, var(--layerde9d8-panel-2), var(--layerde9d8-panel));
  border: 1px solid var(--layerde9d8-edge);
  border-radius: 10px;
  font-size: 13px;
  color: var(--layerde9d8-ink-soft);
}

.layerde9d8-steps li::before {
  content: counter(layerde9d8-step, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 11px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--layerde9d8-amber);
  color: #1e1e1e;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 0;
}

.layerde9d8-steps strong {
  color: var(--layerde9d8-ink);
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
}

/* Decision checklist with square check boxes */
.layerde9d8-checklist {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.layerde9d8-checklist li {
  display: flex;
  gap: 10px;
  padding: 10px 11px;
  background: rgba(255, 140, 0, 0.05);
  border: 1px solid var(--layerde9d8-edge);
  border-left: 3px solid var(--layerde9d8-amber);
  border-radius: 0 10px 10px 0;
  font-size: 12.5px;
  color: var(--layerde9d8-ink-soft);
}

.layerde9d8-box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--layerde9d8-amber);
  border-radius: 3px;
  background:
    linear-gradient(135deg, transparent 46%, var(--layerde9d8-amber) 46% 58%, transparent 58%) no-repeat center / 0 0;
  transition: background-size 0.2s ease;
}

.layerde9d8-checklist li:active .layerde9d8-box {
  background-size: 100% 100%;
}

.layerde9d8-checklist strong {
  color: var(--layerde9d8-ink);
}

/* Comparison rows: metric chip + explanation */
.layerde9d8-compare {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.layerde9d8-compare-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  background: linear-gradient(180deg, var(--layerde9d8-panel-2), var(--layerde9d8-panel));
  border: 1px solid var(--layerde9d8-edge);
  border-radius: 12px 4px 4px 12px;
}

.layerde9d8-compare-chip {
  display: inline-block;
  padding: 4px 7px;
  background: var(--layerde9d8-amber);
  color: #1e1e1e;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
}

.layerde9d8-compare-row dt {
  margin-top: 6px;
  font-family: var(--layerde9d8-serif);
  font-size: 14px;
  color: var(--layerde9d8-ink);
}

.layerde9d8-compare-row dd {
  font-size: 12.5px;
  color: var(--layerde9d8-ink-soft);
}

/* FAQ accordion */
.layerde9d8-faq {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.layerde9d8-faq-item {
  background: linear-gradient(180deg, var(--layerde9d8-panel-2), var(--layerde9d8-panel));
  border: 1px solid var(--layerde9d8-edge);
  border-radius: 10px;
  overflow: hidden;
}

.layerde9d8-faq-item[open] {
  border-color: rgba(255, 140, 0, 0.55);
}

.layerde9d8-faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 40px 11px 13px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--layerde9d8-ink);
  cursor: pointer;
  position: relative;
  list-style: none;
}

.layerde9d8-faq-item summary::-webkit-details-marker {
  display: none;
}

.layerde9d8-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 140, 0, 0.6);
  color: var(--layerde9d8-amber);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.layerde9d8-faq-item[open] summary::after {
  content: "\2013";
  background: var(--layerde9d8-amber);
  color: #1e1e1e;
}

.layerde9d8-faq-body {
  padding: 0 13px 12px;
  font-size: 13px;
  color: var(--layerde9d8-ink-soft);
}

/* --------------------------------------------------------------------------
   10. Extended footer (brand > promotions > directory > disclaimer)
   -------------------------------------------------------------------------- */
.layerde9d8-xfoot {
  margin-top: 34px;
  padding: 18px 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 140, 0, 0.09), transparent 40%),
    linear-gradient(180deg, var(--layerde9d8-panel), #201f1b);
  border: 1px solid var(--layerde9d8-edge);
  border-radius: 14px 14px 4px 4px;
}

.layerde9d8-xfoot h2 {
  font-family: var(--layerde9d8-serif);
  font-size: 19px;
  color: var(--layerde9d8-ink);
}

.layerde9d8-xfoot-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}

.layerde9d8-xfoot-logo {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 140, 0, 0.55);
  object-fit: cover;
}

.layerde9d8-xfoot-brand p {
  font-size: 12.5px;
  color: var(--layerde9d8-ink-soft);
}

.layerde9d8-xfoot h3 {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--layerde9d8-amber);
}

/* Horizontal shortcut rail with snap scrolling */
.layerde9d8-shorts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 140, 0, 0.5) transparent;
}

.layerde9d8-short {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 12px;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.45);
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--layerde9d8-ink);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.layerde9d8-short svg {
  width: 14px;
  height: 14px;
  color: var(--layerde9d8-amber);
}

.layerde9d8-short:hover {
  background: var(--layerde9d8-amber);
  color: #1e1e1e;
}

.layerde9d8-short:hover svg {
  color: #1e1e1e;
}

.layerde9d8-short:active {
  transform: translateY(1px);
}

/* Page directory: compact two-column list */
.layerde9d8-dir {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.layerde9d8-dir li {
  min-width: 0;
}

.layerde9d8-dir a {
  display: block;
  padding: 8px 9px;
  background: rgba(255, 228, 181, 0.04);
  border: 1px solid var(--layerde9d8-edge);
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--layerde9d8-ink-soft);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.layerde9d8-dir a:hover {
  border-color: var(--layerde9d8-amber);
  color: var(--layerde9d8-ink);
  text-decoration: none;
}

.layerde9d8-dir b {
  display: block;
  color: var(--layerde9d8-ink);
  font-size: 12px;
}

.layerde9d8-disclaimer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 140, 0, 0.35);
  font-size: 11px;
  line-height: 1.55;
  color: var(--layerde9d8-ink-dim);
}

/* --------------------------------------------------------------------------
   11. Universal footer strip
   -------------------------------------------------------------------------- */
.layerde9d8-footer {
  padding: 16px 12px 10px;
  text-align: center;
  border-top: 1px solid rgba(255, 140, 0, 0.2);
  background: rgba(20, 20, 20, 0.6);
}

.layerde9d8-footer p {
  font-size: 11px;
  color: var(--layerde9d8-ink-dim);
}

/* --------------------------------------------------------------------------
   12. Segmented bottom action bar
   -------------------------------------------------------------------------- */
.layerde9d8-bnav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--layerde9d8-bnav-h);
  background: linear-gradient(180deg, #1b1a17, #141311);
  border-top: 2px solid var(--layerde9d8-amber);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.layerde9d8-bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--layerde9d8-bnav-h);
  padding: 8px 2px 6px;
  border-left: 1px solid rgba(255, 228, 181, 0.1);
  color: var(--layerde9d8-ink-dim);
  transition: color 0.16s ease, background 0.16s ease;
}

.layerde9d8-bnav-item:first-child {
  border-left: 0;
}

.layerde9d8-bnav-item svg {
  width: 22px;
  height: 22px;
}

/* Linear icons by default, filled shape when the segment is active */
.layerde9d8-ico-solid {
  display: none;
}

.layerde9d8-bnav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, color 0.18s ease;
}

.layerde9d8-bnav-bar {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 3px;
  background: var(--layerde9d8-flame);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

/* Active state: contrast inversion with filled icon */
.layerde9d8-bnav-item--on {
  background: var(--layerde9d8-amber);
  color: #1e1e1e;
}

.layerde9d8-bnav-item--on .layerde9d8-ico-line {
  display: none;
}

.layerde9d8-bnav-item--on .layerde9d8-ico-solid {
  display: block;
}

.layerde9d8-bnav-item--on .layerde9d8-bnav-label {
  color: #1e1e1e;
  transform: translateY(-1px);
}

.layerde9d8-bnav-item--on .layerde9d8-bnav-bar {
  width: 22px;
  background: #1e1e1e;
}

.layerde9d8-bnav-item:hover {
  color: var(--layerde9d8-ink);
  text-decoration: none;
}

.layerde9d8-bnav-item:active {
  transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   13. Entrance lift animation (JS-gated so no-JS users see content)
   -------------------------------------------------------------------------- */
html.layerde9d8-js .layerde9d8-rise {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

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

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

  html.layerde9d8-js .layerde9d8-rise {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   14. Small-canvas safeguards
   -------------------------------------------------------------------------- */
@media (max-width: 339px) {
  .layerde9d8-brand-name {
    font-size: 14px;
  }

  .layerde9d8-btn-top {
    padding: 7px 7px;
    font-size: 11.5px;
  }

  .layerde9d8-metrics {
    grid-template-columns: 1fr;
  }

  .layerde9d8-compare-row {
    grid-template-columns: 1fr;
  }

  .layerde9d8-dir {
    grid-template-columns: 1fr;
  }
}

/* Print: keep content readable, drop fixed chrome */
@media print {
  .layerde9d8-top,
  .layerde9d8-bnav,
  .layerde9d8-drawer,
  .layerde9d8-scrim,
  .layerde9d8-carousel {
    display: none;
  }

  .layerde9d8-main {
    padding: 0;
  }
}
