/* =====================================================================
   Kein - kein.click
   File: css/layers-compact-a1eece.css
   Mobile-first base layer drawn for the 320-430px phone canvas.
   Every class and custom property carries the layer1eece- prefix.
   Visual direction: geometric headings over a neutral body face,
   stroke-led corners, image cards with a bottom name strip,
   short-list reading rhythm, state-color-only motion,
   staggered primary/secondary CTA sizes.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------- */
:root {
  --layer1eece-bg: #3a3a3a;
  --layer1eece-bg-deep: #2c2c2c;
  --layer1eece-bg-soft: #454545;
  --layer1eece-bg-well: #242424;
  --layer1eece-line: rgba(186, 255, 201, 0.22);
  --layer1eece-line-soft: rgba(186, 255, 201, 0.14);
  --layer1eece-line-strong: rgba(0, 255, 127, 0.55);
  --layer1eece-ink: #baffc9;
  --layer1eece-ink-strong: #eafff0;
  --layer1eece-ink-dim: #a9b8ad;
  --layer1eece-mint: #3cb371;
  --layer1eece-mint-deep: #2e8f5a;
  --layer1eece-neon: #00ff7f;
  --layer1eece-rose: #ffb3ba;
  --layer1eece-on-neon: #14261b;
  --layer1eece-on-ink: #1d2a21;
  --layer1eece-font-head: "Avenir Next", "Futura", "Trebuchet MS", "Segoe UI", sans-serif;
  --layer1eece-font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --layer1eece-shell: 480px;
  --layer1eece-topbar-h: 104px;
  --layer1eece-bottomnav-h: 62px;
  --layer1eece-r: 8px;
  --layer1eece-r-sm: 6px;
  --layer1eece-gap: 12px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: #1f1f1f;
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  max-width: var(--layer1eece-shell);
  min-height: 100vh;
  background: var(--layer1eece-bg);
  color: var(--layer1eece-ink);
  font-family: var(--layer1eece-font-body);
  font-size: 15px;
  line-height: 1.55;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

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

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

a {
  color: var(--layer1eece-neon);
  text-decoration: none;
}

a:hover,
a:active {
  color: var(--layer1eece-ink-strong);
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

section[id],
div[id] {
  scroll-margin-top: calc(var(--layer1eece-topbar-h) + 14px);
}

/* Screen-reader-only helper */
.layer1eece-sronly {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Visible focus ring on the dark canvas */
:focus-visible {
  outline: 2px solid var(--layer1eece-neon);
  outline-offset: 2px;
}

/* Body scroll lock while the drawer layer is open */
body.layer1eece-lock {
  overflow: hidden;
}

/* ---------------------------------------------------------------------
   3. Fixed top bar: brand line above, action line below
   --------------------------------------------------------------------- */
.layer1eece-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--layer1eece-shell);
  z-index: 50;
  background: var(--layer1eece-bg-deep);
  border-bottom: 2px solid var(--layer1eece-neon);
}

.layer1eece-brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px 4px;
}

.layer1eece-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--layer1eece-ink-strong);
  text-decoration: none;
}

.layer1eece-brand:hover {
  text-decoration: none;
}

.layer1eece-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--layer1eece-r);
  border: 1px solid var(--layer1eece-line);
  object-fit: cover;
  flex: 0 0 auto;
}

.layer1eece-brandname {
  font-family: var(--layer1eece-font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: lowercase;
  color: var(--layer1eece-ink);
}

.layer1eece-menubtn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--layer1eece-line);
  border-radius: var(--layer1eece-r);
}

.layer1eece-menubar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--layer1eece-ink);
  border-radius: 1px;
}

.layer1eece-menubtn:hover .layer1eece-menubar,
.layer1eece-menubtn:active .layer1eece-menubar {
  background: var(--layer1eece-neon);
}

.layer1eece-actionline {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 12px 10px;
}

/* Staggered CTA pair: fat filled primary, lean outlined secondary */
.layer1eece-btn {
  border-radius: 10px;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.layer1eece-btn-primary {
  flex: 1.35 1 0;
  min-height: 46px;
  background: var(--layer1eece-neon);
  border-color: var(--layer1eece-neon);
  color: var(--layer1eece-on-neon);
  font-family: var(--layer1eece-font-head);
  font-size: 0.95rem;
  font-weight: 700;
}

.layer1eece-btn-primary:hover,
.layer1eece-btn-primary:active {
  background: var(--layer1eece-ink);
  border-color: var(--layer1eece-ink);
  color: var(--layer1eece-on-ink);
}

.layer1eece-btn-ghost {
  flex: 1 1 0;
  min-height: 44px;
  background: transparent;
  border-color: var(--layer1eece-mint);
  color: var(--layer1eece-ink);
  font-size: 0.85rem;
}

.layer1eece-btn-ghost:hover,
.layer1eece-btn-ghost:active {
  border-color: var(--layer1eece-neon);
  color: var(--layer1eece-neon);
}

/* ---------------------------------------------------------------------
   4. Full-height drawer menu layer
   --------------------------------------------------------------------- */
.layer1eece-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(12, 14, 12, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.layer1eece-scrim.layer1eece-show {
  opacity: 1;
  visibility: visible;
}

.layer1eece-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: calc(50vw - min(50vw, 240px));
  width: min(84%, 316px);
  z-index: 80;
  background: var(--layer1eece-bg-deep);
  border-left: 1px solid var(--layer1eece-line-strong);
  overflow-y: auto;
  padding: 14px 14px 22px;
  transform: translateX(103%);
  transition: transform 0.26s ease;
}

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

.layer1eece-dhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--layer1eece-line-soft);
}

.layer1eece-dbrand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--layer1eece-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--layer1eece-ink-strong);
}

.layer1eece-dbrand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--layer1eece-line);
}

.layer1eece-dclose {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--layer1eece-line);
  border-radius: var(--layer1eece-r-sm);
  color: var(--layer1eece-ink);
  font-size: 1.1rem;
  line-height: 1;
}

.layer1eece-dclose:hover,
.layer1eece-dclose:active {
  color: var(--layer1eece-rose);
  border-color: var(--layer1eece-rose);
}

.layer1eece-dgroup {
  margin: 16px 2px 6px;
  font-family: var(--layer1eece-font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--layer1eece-rose);
}

.layer1eece-dnav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 10px;
  margin-bottom: 4px;
  color: var(--layer1eece-ink);
  border: 1px solid var(--layer1eece-line-soft);
  border-left: 3px solid var(--layer1eece-mint);
  border-radius: var(--layer1eece-r-sm);
  font-size: 0.88rem;
}

.layer1eece-dnav a:hover,
.layer1eece-dnav a:active {
  border-left-color: var(--layer1eece-neon);
  color: var(--layer1eece-ink-strong);
  text-decoration: none;
}

/* Contrast-inverted marker for the page currently open */
.layer1eece-dnav a.layer1eece-here,
.layer1eece-bnav a.layer1eece-here {
  background: var(--layer1eece-ink);
  color: var(--layer1eece-on-ink);
  border-color: var(--layer1eece-ink);
}

.layer1eece-dfoot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--layer1eece-line-soft);
  display: grid;
  gap: 8px;
}

/* ---------------------------------------------------------------------
   5. Main column spacing
   --------------------------------------------------------------------- */
.layer1eece-main {
  padding: calc(var(--layer1eece-topbar-h) + 14px) var(--layer1eece-gap) 26px;
}

/* ---------------------------------------------------------------------
   6. Hero block
   --------------------------------------------------------------------- */
.layer1eece-hero {
  border: 1px solid var(--layer1eece-line);
  border-radius: var(--layer1eece-r);
  background:
    linear-gradient(180deg, rgba(60, 179, 113, 0.14), rgba(36, 36, 36, 0) 62%),
    var(--layer1eece-bg-soft);
  padding: 16px 14px 14px;
  margin-bottom: 16px;
}

.layer1eece-h1 {
  margin: 0 0 10px;
  font-family: var(--layer1eece-font-head);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--layer1eece-ink-strong);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--layer1eece-neon);
}

.layer1eece-lead {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--layer1eece-ink);
}

.layer1eece-heronote {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--layer1eece-ink-dim);
}

.layer1eece-herocta {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 12px;
}

.layer1eece-herostats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
}

.layer1eece-herostat {
  border: 1px dashed var(--layer1eece-line);
  border-radius: var(--layer1eece-r-sm);
  padding: 6px 6px 5px;
  text-align: center;
}

.layer1eece-herostat b {
  display: block;
  font-family: var(--layer1eece-font-head);
  font-size: 1.05rem;
  color: var(--layer1eece-neon);
}

.layer1eece-herostat span {
  font-size: 0.64rem;
  color: var(--layer1eece-ink-dim);
  line-height: 1.3;
  display: block;
}

/* ---------------------------------------------------------------------
   7. Quick-jump chips (in-page section anchors)
   --------------------------------------------------------------------- */
.layer1eece-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.layer1eece-chips a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--layer1eece-line);
  border-radius: 999px;
  background: rgba(60, 179, 113, 0.1);
  color: var(--layer1eece-ink);
  font-size: 0.74rem;
  white-space: nowrap;
}

.layer1eece-chips a:hover,
.layer1eece-chips a:active {
  color: var(--layer1eece-neon);
  border-color: var(--layer1eece-line-strong);
  text-decoration: none;
}

/* ---------------------------------------------------------------------
   8. Crossfade promo carousel (opacity-only slide change)
   --------------------------------------------------------------------- */
.layer1eece-carousel {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid var(--layer1eece-line);
  border-radius: var(--layer1eece-r);
  overflow: hidden;
  background: var(--layer1eece-bg-well);
  aspect-ratio: 2 / 1;
}

.layer1eece-cfdeck {
  position: relative;
  width: 100%;
  height: 100%;
}

.layer1eece-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--layer1eece-bg-well);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.layer1eece-slide.layer1eece-on {
  opacity: 1;
  z-index: 2;
}

.layer1eece-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer1eece-slidecap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 8px;
  background: linear-gradient(180deg, rgba(20, 24, 20, 0), rgba(20, 24, 20, 0.88));
  color: var(--layer1eece-ink-strong);
  font-size: 0.78rem;
  text-align: left;
}

.layer1eece-slidecap b {
  display: block;
  font-family: var(--layer1eece-font-head);
  font-size: 0.86rem;
  color: var(--layer1eece-neon);
}

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

.layer1eece-dot {
  width: 40px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
}

.layer1eece-dot::before {
  content: "";
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: rgba(186, 255, 201, 0.45);
  transition: background-color 0.18s ease;
}

.layer1eece-dot[aria-current="true"]::before {
  background: var(--layer1eece-neon);
}

.layer1eece-dot:hover::before {
  background: var(--layer1eece-ink-strong);
}

/* ---------------------------------------------------------------------
   9. Category sections
   --------------------------------------------------------------------- */
.layer1eece-cat {
  margin: 0 0 24px;
}

.layer1eece-cattag {
  display: inline-block;
  font-family: var(--layer1eece-font-head);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--layer1eece-rose);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 8px;
}

.layer1eece-cat.layer1eece-cat-slot .layer1eece-cattag {
  color: var(--layer1eece-neon);
}

.layer1eece-cat.layer1eece-cat-hot .layer1eece-cattag {
  color: var(--layer1eece-rose);
}

.layer1eece-cat.layer1eece-cat-live .layer1eece-cattag {
  color: var(--layer1eece-ink);
}

.layer1eece-cat.layer1eece-cat-fish .layer1eece-cattag {
  color: var(--layer1eece-mint);
}

.layer1eece-h2 {
  margin: 0 0 8px;
  font-family: var(--layer1eece-font-head);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--layer1eece-ink-strong);
}

.layer1eece-catnote {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--layer1eece-ink-dim);
}

/* Per-category strip of real subpage links */
.layer1eece-catlinks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.layer1eece-catlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 11px;
  border: 1px dashed var(--layer1eece-line);
  border-radius: var(--layer1eece-r-sm);
  color: var(--layer1eece-ink);
  font-size: 0.72rem;
}

.layer1eece-catlinks a::before {
  content: "›";
  margin-right: 6px;
  color: var(--layer1eece-rose);
  font-weight: 700;
}

.layer1eece-catlinks a:hover,
.layer1eece-catlinks a:active {
  color: var(--layer1eece-neon);
  border-color: var(--layer1eece-line-strong);
  text-decoration: none;
}

/* ---------------------------------------------------------------------
   10. Game grid: icon above, name strip pinned to the card bottom
   --------------------------------------------------------------------- */
.layer1eece-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
}

.layer1eece-gcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  background: var(--layer1eece-bg-soft);
  border: 1px solid var(--layer1eece-line-soft);
  border-radius: var(--layer1eece-r);
  overflow: hidden;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.layer1eece-gimg {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--layer1eece-bg-well);
}

.layer1eece-gimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer1eece-gname {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7em;
  padding: 4px 4px 5px;
  text-align: center;
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--layer1eece-ink);
  background: rgba(18, 24, 19, 0.78);
  border-top: 1px solid var(--layer1eece-line-soft);
  overflow-wrap: anywhere;
}

@media (hover: hover) {
  .layer1eece-gcard:hover {
    border-color: var(--layer1eece-line-strong);
  }

  .layer1eece-gcard:hover .layer1eece-gname {
    color: var(--layer1eece-ink-strong);
  }
}

.layer1eece-gcard:active {
  border-color: var(--layer1eece-neon);
  background: #22301f;
}

/* ---------------------------------------------------------------------
   11. Player quotes module
   --------------------------------------------------------------------- */
.layer1eece-quotes {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.layer1eece-quote {
  border: 1px solid var(--layer1eece-line);
  border-left: 3px solid var(--layer1eece-mint);
  border-radius: var(--layer1eece-r);
  background: rgba(60, 179, 113, 0.08);
  padding: 10px 12px 9px;
}

.layer1eece-quote p {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: var(--layer1eece-ink-strong);
}

.layer1eece-qwho {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--layer1eece-rose);
}

/* ---------------------------------------------------------------------
   12. RTP reading module
   --------------------------------------------------------------------- */
.layer1eece-block {
  margin: 0 0 26px;
}

.layer1eece-block > p {
  margin: 0 0 9px;
  font-size: 0.84rem;
  color: var(--layer1eece-ink);
}

.layer1eece-rtpbars {
  list-style: none;
  display: grid;
  gap: 8px;
  border: 1px solid var(--layer1eece-line-soft);
  border-radius: var(--layer1eece-r);
  padding: 10px;
  margin: 12px 0;
  background: var(--layer1eece-bg-well);
}

.layer1eece-rtprow {
  display: grid;
  grid-template-columns: 86px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.layer1eece-rtplabel {
  font-size: 0.68rem;
  color: var(--layer1eece-ink-dim);
  line-height: 1.25;
}

.layer1eece-rtpline {
  height: 8px;
  border-radius: 4px;
  background: rgba(186, 255, 201, 0.12);
  overflow: hidden;
}

.layer1eece-rtppct {
  font-family: var(--layer1eece-font-head);
  font-size: 0.72rem;
  color: var(--layer1eece-neon);
  text-align: right;
}

.layer1eece-qa {
  margin: 12px 0 0;
  border-top: 1px solid var(--layer1eece-line-soft);
}

.layer1eece-qa dt {
  font-family: var(--layer1eece-font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--layer1eece-ink-strong);
  padding: 10px 2px 4px;
}

.layer1eece-qa dd {
  margin: 0;
  padding: 0 2px 10px;
  font-size: 0.8rem;
  color: var(--layer1eece-ink-dim);
  border-bottom: 1px dashed var(--layer1eece-line-soft);
}

/* ---------------------------------------------------------------------
   13. Features module (two-column scan grid)
   --------------------------------------------------------------------- */
.layer1eece-feats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.layer1eece-feat {
  border: 1px solid var(--layer1eece-line);
  border-radius: var(--layer1eece-r-sm);
  background: var(--layer1eece-bg-soft);
  padding: 9px 9px 8px;
}

.layer1eece-feat h3 {
  margin: 0 0 4px;
  font-family: var(--layer1eece-font-head);
  font-size: 0.78rem;
  color: var(--layer1eece-neon);
}

.layer1eece-feat p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--layer1eece-ink-dim);
}

/* ---------------------------------------------------------------------
   14. Steps module (numbered stroke list)
   --------------------------------------------------------------------- */
.layer1eece-steps {
  list-style: none;
  counter-reset: layer1eecestep;
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.layer1eece-steps li {
  counter-increment: layer1eecestep;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--layer1eece-line-soft);
  border-radius: var(--layer1eece-r-sm);
  padding: 8px 10px 8px 8px;
  background: rgba(44, 44, 44, 0.55);
}

.layer1eece-steps li::before {
  content: counter(layer1eecestep);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--layer1eece-line-strong);
  border-radius: 50%;
  font-family: var(--layer1eece-font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--layer1eece-neon);
}

.layer1eece-steps li p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--layer1eece-ink);
}

/* ---------------------------------------------------------------------
   15. Extended homepage footer: brand > directory > promos > note
   --------------------------------------------------------------------- */
.layer1eece-xf {
  border-top: 1px solid var(--layer1eece-line);
  background: var(--layer1eece-bg-deep);
  padding: 18px var(--layer1eece-gap) 6px;
}

.layer1eece-xf .layer1eece-h2 {
  font-size: 0.98rem;
}

.layer1eece-xfbrand {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--layer1eece-line-soft);
  border-left: 3px solid var(--layer1eece-neon);
  border-radius: var(--layer1eece-r-sm);
  font-size: 0.78rem;
  color: var(--layer1eece-ink-dim);
}

.layer1eece-dir {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 16px;
}

.layer1eece-dir a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 6px 7px;
  border: 1px solid var(--layer1eece-line-soft);
  border-radius: var(--layer1eece-r-sm);
  color: var(--layer1eece-ink);
  font-size: 0.68rem;
  line-height: 1.3;
}

.layer1eece-dir a b {
  color: var(--layer1eece-ink-strong);
  font-size: 0.7rem;
}

.layer1eece-dir a:hover,
.layer1eece-dir a:active {
  border-color: var(--layer1eece-line-strong);
  text-decoration: none;
}

.layer1eece-promos {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
}

.layer1eece-promo-main {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--layer1eece-neon);
  border-radius: 10px;
  background: var(--layer1eece-neon);
  color: var(--layer1eece-on-neon);
  font-family: var(--layer1eece-font-head);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 12px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.layer1eece-promo-main:hover,
.layer1eece-promo-main:active {
  background: var(--layer1eece-ink);
  border-color: var(--layer1eece-ink);
  color: var(--layer1eece-on-ink);
}

.layer1eece-promo-row {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  padding: 8px 11px;
  background: transparent;
  border: 1px solid var(--layer1eece-line);
  border-radius: var(--layer1eece-r);
  color: var(--layer1eece-ink);
  font-size: 0.8rem;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.layer1eece-promo-row span {
  flex: 1 1 auto;
}

.layer1eece-promo-row::after {
  content: "→";
  flex: 0 0 auto;
  color: var(--layer1eece-rose);
  font-weight: 700;
}

.layer1eece-promo-row:hover,
.layer1eece-promo-row:active {
  color: var(--layer1eece-ink-strong);
  border-color: var(--layer1eece-line-strong);
}

.layer1eece-xfnote {
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px dashed var(--layer1eece-line);
  border-radius: var(--layer1eece-r-sm);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--layer1eece-ink-dim);
}

/* ---------------------------------------------------------------------
   16. Common footer line
   --------------------------------------------------------------------- */
.layer1eece-foot {
  padding: 12px var(--layer1eece-gap) 10px;
  border-top: 1px solid var(--layer1eece-line-soft);
  text-align: center;
  color: var(--layer1eece-ink-dim);
  font-size: 0.7rem;
}

.layer1eece-foot p {
  margin: 0;
}

/* ---------------------------------------------------------------------
   17. Fixed bottom navigation band
   --------------------------------------------------------------------- */
.layer1eece-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--layer1eece-shell);
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--layer1eece-bg-deep);
  border-top: 2px solid var(--layer1eece-neon);
  padding: 3px 0 calc(3px + env(safe-area-inset-bottom, 0px));
}

.layer1eece-bn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 4px 2px;
  background: transparent;
  border: 0;
  color: var(--layer1eece-ink-dim);
  font-size: 0.6rem;
  line-height: 1.2;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.layer1eece-bn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.layer1eece-bn span {
  letter-spacing: 0.02em;
}

.layer1eece-bn:hover,
.layer1eece-bn:active {
  color: var(--layer1eece-ink-strong);
  text-decoration: none;
}

/* Contrast-inverted active role */
.layer1eece-bn.layer1eece-bn-on,
.layer1eece-bnav a.layer1eece-here {
  background: var(--layer1eece-ink);
  color: var(--layer1eece-on-ink);
  border-radius: var(--layer1eece-r-sm) var(--layer1eece-r-sm) 0 0;
}

/* Reserve room so the fixed band never covers body copy */
.layer1eece-endpad {
  height: calc(var(--layer1eece-bottomnav-h) + 22px + env(safe-area-inset-bottom, 0px));
}

/* ---------------------------------------------------------------------
   18. Back-to-top bubble
   --------------------------------------------------------------------- */
.layer1eece-totop {
  position: fixed;
  z-index: 55;
  bottom: calc(var(--layer1eece-bottomnav-h) + 16px + env(safe-area-inset-bottom, 0px));
  right: calc(50vw - min(50vw, 240px) + 12px);
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--layer1eece-line-strong);
  border-radius: 50%;
  background: rgba(24, 30, 25, 0.92);
  color: var(--layer1eece-neon);
  font-size: 1.05rem;
  line-height: 1;
}

.layer1eece-totop.layer1eece-show {
  display: flex;
}

.layer1eece-totop:hover,
.layer1eece-totop:active {
  color: var(--layer1eece-ink-strong);
  border-color: var(--layer1eece-ink);
}

/* ---------------------------------------------------------------------
   19. Help-page reading utilities
   --------------------------------------------------------------------- */
.layer1eece-main .layer1eece-promo-main,
.layer1eece-main .layer1eece-promo-row {
  display: block;
  margin-top: 12px;
  text-align: center;
}

.layer1eece-main .layer1eece-promo-row {
  min-height: 46px;
}

.layer1eece-quote {
  margin-top: 12px;
}

/* ---------------------------------------------------------------------
   20. Breakpoints
   --------------------------------------------------------------------- */

/* Literal 430px guard: the top of the intended phone canvas */
@media (max-width: 430px) {
  .layer1eece-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .layer1eece-xf {
    padding-left: 10px;
    padding-right: 10px;
  }

  .layer1eece-h1 {
    font-size: 1.24rem;
  }

  .layer1eece-grid {
    gap: 8px 5px;
  }

  .layer1eece-gname {
    font-size: 0.6rem;
  }

  .layer1eece-dir {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layer1eece-slidecap b {
    font-size: 0.8rem;
  }
}

/* Extra-tight devices keep four steady columns and calmer type */
@media (max-width: 359px) {
  body {
    font-size: 14px;
  }

  .layer1eece-h1 {
    font-size: 1.12rem;
  }

  .layer1eece-brandname {
    font-size: 1.16rem;
  }

  .layer1eece-herostats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layer1eece-herocta {
    flex-direction: column;
  }

  .layer1eece-dir {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Comfortable phones move the game grid to five tracks */
@media (min-width: 375px) {
  .layer1eece-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .layer1eece-gname {
    font-size: 0.62rem;
  }
}

/* Wide viewports keep the centered phone canvas with a soft edge */
@media (min-width: 700px) {
  body {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 44px rgba(0, 0, 0, 0.5);
  }
}

/* Respect users who ask for less motion: kill all transitions */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
