/* ==========================================================================
   96jili.click - site stylesheet
   Class prefix : layer5228e-
   Design brief : dark magenta canvas, tech-condensed headings, low radius
   sectioned panels, image-plus-name-bar game tiles, step-driven rhythm,
   short-range section motion, square high-contrast CTAs.
   Canvas target: 320-430px, centered on wide screens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --layer5228e-bg: #0a0a0a;
  --layer5228e-bg-outer: #120313;
  --layer5228e-panel: #170817;
  --layer5228e-panel-2: #1e0a1c;
  --layer5228e-panel-3: #260d24;
  --layer5228e-line: #3d1440;
  --layer5228e-line-soft: #2c0f2d;
  --layer5228e-hot: #ff4500;
  --layer5228e-pink: #ff1493;
  --layer5228e-mauve: #cd5c5c;
  --layer5228e-grape: #8b008b;
  --layer5228e-ink: #f6eef4;
  --layer5228e-dim: #999999;
  --layer5228e-font-head: "Bahnschrift", "Saira Condensed", "Arial Narrow",
    "Franklin Gothic Medium", "Helvetica Neue", sans-serif;
  --layer5228e-font-body: system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --layer5228e-radius: 3px;
  --layer5228e-head-h: 96px;
  --layer5228e-bnav-h: 62px;
  --layer5228e-tap: 44px;
}

/* --------------------------------------------------------------------------
   2. Base reset and phone canvas
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--layer5228e-font-body);
  background: var(--layer5228e-bg-outer);
  color: var(--layer5228e-ink);
  font-size: 14px;
  line-height: 1.62;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 44px rgba(139, 0, 139, 0.35);
}

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

button,
a {
  font-family: inherit;
  -webkit-tap-highlight-color: rgba(255, 20, 147, 0.22);
}

a {
  color: var(--layer5228e-pink);
  text-decoration: none;
}

a:hover {
  color: var(--layer5228e-hot);
}

:focus-visible {
  outline: 2px solid var(--layer5228e-pink);
  outline-offset: 2px;
}

::selection {
  background: var(--layer5228e-grape);
  color: #fff;
}

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

/* --------------------------------------------------------------------------
   3. Top bar : two-layer brand + action design
   -------------------------------------------------------------------------- */
.layer5228e-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #1c0a1b 0%, #12051400 140%), #140714;
  border-bottom: 1px solid var(--layer5228e-line);
}

.layer5228e-brandRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 6px 12px 2px;
  border-bottom: 1px solid var(--layer5228e-line-soft);
}

.layer5228e-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.layer5228e-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--layer5228e-radius);
  border: 1px solid var(--layer5228e-grape);
  object-fit: cover;
  background: #000;
}

.layer5228e-brandName {
  font-family: var(--layer5228e-font-head);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--layer5228e-ink);
  line-height: 1;
}

.layer5228e-brandName b {
  color: var(--layer5228e-hot);
  font-weight: 700;
}

.layer5228e-actionsRow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px 9px;
}

.layer5228e-btnReg,
.layer5228e-btnLogin {
  flex: 1;
  min-height: var(--layer5228e-tap);
  border-radius: var(--layer5228e-radius);
  font-family: var(--layer5228e-font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.layer5228e-btnReg {
  border: 1px solid #ff6a2b;
  background: linear-gradient(180deg, #ff5a17 0%, #e03c00 100%);
  color: #140400;
}

.layer5228e-btnLogin {
  border: 1px solid var(--layer5228e-pink);
  background: transparent;
  color: var(--layer5228e-pink);
}

.layer5228e-btnReg:active,
.layer5228e-btnLogin:active {
  transform: translateY(1px) scale(0.97);
  filter: brightness(1.15);
}

.layer5228e-menuBtn {
  width: 46px;
  min-height: var(--layer5228e-tap);
  border: 1px solid var(--layer5228e-line);
  border-radius: var(--layer5228e-radius);
  background: var(--layer5228e-panel-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.12s ease;
}

.layer5228e-menuBtn:active {
  transform: scale(0.94);
}

.layer5228e-menuBtn i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--layer5228e-pink);
}

.layer5228e-menuBtn i:nth-child(2) {
  width: 13px;
  background: var(--layer5228e-hot);
}

/* --------------------------------------------------------------------------
   4. Side drawer menu
   -------------------------------------------------------------------------- */
.layer5228e-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 0, 6, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

/* Scroll lock applied while the drawer is open. */
body.layer5228e-lock {
  overflow: hidden;
}

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

.layer5228e-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(80vw, 302px);
  background: linear-gradient(160deg, #1e0a1d 0%, #10051100 220%), #150716;
  border-left: 1px solid var(--layer5228e-line);
  transform: translateX(102%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

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

.layer5228e-drawerHead {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--layer5228e-line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.layer5228e-drawerHead img {
  width: 30px;
  height: 30px;
  border-radius: var(--layer5228e-radius);
  border: 1px solid var(--layer5228e-grape);
}

.layer5228e-drawerHead span {
  font-family: var(--layer5228e-font-head);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--layer5228e-dim);
}

.layer5228e-drawerList {
  list-style: none;
  padding: 8px 0 14px;
}

.layer5228e-drawerItem a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 6px 14px;
  color: var(--layer5228e-ink);
  border-left: 3px solid transparent;
  font-size: 14px;
}

.layer5228e-drawerItem a:hover {
  background: var(--layer5228e-panel-2);
  border-left-color: var(--layer5228e-hot);
}

.layer5228e-drawerItem a.is-current {
  border-left-color: var(--layer5228e-pink);
  background: var(--layer5228e-panel-3);
  color: #fff;
}

.layer5228e-drawerNum {
  font-family: var(--layer5228e-font-head);
  font-size: 12px;
  color: var(--layer5228e-hot);
  letter-spacing: 0.08em;
  min-width: 20px;
}

.layer5228e-drawerCta {
  margin: auto 14px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--layer5228e-line-soft);
  display: grid;
  gap: 9px;
}

.layer5228e-drawerCta button {
  width: 100%;
  min-height: var(--layer5228e-tap);
  border-radius: var(--layer5228e-radius);
  font-family: var(--layer5228e-font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.layer5228e-drawerCta .go {
  border: 1px solid #ff6a2b;
  background: linear-gradient(180deg, #ff5a17, #e03c00);
  color: #140400;
}

.layer5228e-drawerCta .alt {
  border: 1px solid var(--layer5228e-pink);
  background: transparent;
  color: var(--layer5228e-pink);
}

/* --------------------------------------------------------------------------
   5. Main column
   -------------------------------------------------------------------------- */
.layer5228e-main {
  padding: calc(var(--layer5228e-head-h) + 10px) 12px
    calc(var(--layer5228e-bnav-h) + 34px);
  display: grid;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   6. Hero carousel (2:1 banners, click routes to promo)
   -------------------------------------------------------------------------- */
.layer5228e-hero {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid var(--layer5228e-line);
  border-radius: var(--layer5228e-radius);
  background: var(--layer5228e-panel);
}

.layer5228e-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.layer5228e-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.layer5228e-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 3;
}

.layer5228e-dot {
  width: 20px;
  height: 6px;
  padding: 0;
  border: 1px solid var(--layer5228e-dim);
  border-radius: 2px;
  background: rgba(10, 10, 10, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.layer5228e-dot.is-on {
  background: var(--layer5228e-hot);
  border-color: var(--layer5228e-hot);
}

/* --------------------------------------------------------------------------
   7. H1 title block
   -------------------------------------------------------------------------- */
.layer5228e-titleBlock {
  border: 1px solid var(--layer5228e-line);
  border-top: 3px solid var(--layer5228e-hot);
  border-radius: var(--layer5228e-radius);
  background: linear-gradient(180deg, var(--layer5228e-panel-2), var(--layer5228e-panel));
  padding: 15px 14px 16px;
}

.layer5228e-h1 {
  font-family: var(--layer5228e-font-head);
  font-size: 21px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--layer5228e-ink);
}

.layer5228e-h1 em {
  font-style: normal;
  color: var(--layer5228e-hot);
}

.layer5228e-lede {
  margin-top: 10px;
  font-size: 13.5px;
  color: #d9cdd6;
}

.layer5228e-lede + .layer5228e-lede {
  margin-top: 8px;
}

.layer5228e-ctaRow {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 9px;
}

.layer5228e-ctaMain,
.layer5228e-ctaGhost {
  min-height: var(--layer5228e-tap);
  border-radius: var(--layer5228e-radius);
  font-family: var(--layer5228e-font-head);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.layer5228e-ctaMain {
  border: 1px solid #ff6a2b;
  background: linear-gradient(180deg, #ff5a17, #e03c00);
  color: #140400;
}

.layer5228e-ctaGhost {
  border: 1px solid var(--layer5228e-pink);
  background: rgba(255, 20, 147, 0.06);
  color: var(--layer5228e-pink);
}

.layer5228e-ctaMain:active,
.layer5228e-ctaGhost:active {
  transform: translateY(1px) scale(0.97);
}

/* --------------------------------------------------------------------------
   8. Notice ticker strip
   -------------------------------------------------------------------------- */
.layer5228e-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--layer5228e-line);
  border-radius: var(--layer5228e-radius);
  background: linear-gradient(90deg, rgba(255, 69, 0, 0.16), rgba(139, 0, 139, 0.2));
  padding: 8px 11px;
  font-size: 12.5px;
  color: #ecd9e4;
}

.layer5228e-ticker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--layer5228e-hot);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(255, 69, 0, 0.8);
}

.layer5228e-ticker button {
  margin-left: auto;
  border: 1px solid var(--layer5228e-pink);
  background: none;
  color: var(--layer5228e-pink);
  font-family: var(--layer5228e-font-head);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
  cursor: pointer;
  min-height: 30px;
}

/* --------------------------------------------------------------------------
   9. Category shortcut chips
   -------------------------------------------------------------------------- */
.layer5228e-chipRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.layer5228e-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--layer5228e-line);
  border-radius: var(--layer5228e-radius);
  background: var(--layer5228e-panel-2);
  color: var(--layer5228e-ink);
  font-family: var(--layer5228e-font-head);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.layer5228e-chip:hover {
  border-color: var(--layer5228e-pink);
  color: #fff;
}

.layer5228e-chip:active {
  transform: scale(0.96);
}

.layer5228e-chip b {
  color: var(--layer5228e-hot);
  font-weight: 700;
}

.layer5228e-chip.is-page {
  border-color: var(--layer5228e-grape);
  background: rgba(139, 0, 139, 0.14);
}

/* --------------------------------------------------------------------------
   10. Content sections
   -------------------------------------------------------------------------- */
.layer5228e-section {
  scroll-margin-top: calc(var(--layer5228e-head-h) + 12px);
  border: 1px solid var(--layer5228e-line-soft);
  border-radius: var(--layer5228e-radius);
  background: linear-gradient(180deg, rgba(30, 10, 28, 0.6), rgba(23, 8, 23, 0.9));
  padding: 14px 12px 16px;
}

.layer5228e-secHead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.layer5228e-secIndex {
  flex: 0 0 auto;
  font-family: var(--layer5228e-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--layer5228e-hot);
  border: 1px solid var(--layer5228e-hot);
  border-radius: 2px;
  padding: 2px 6px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-top: 2px;
}

.layer5228e-h2 {
  font-family: var(--layer5228e-font-head);
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--layer5228e-ink);
  border-left: 3px solid var(--layer5228e-pink);
  padding-left: 9px;
}

.layer5228e-secNote {
  margin-top: 2px;
  padding-left: 12px;
  font-size: 12px;
  color: var(--layer5228e-dim);
  letter-spacing: 0.04em;
}

.layer5228e-prose {
  font-size: 13.5px;
  color: #d9cdd6;
}

.layer5228e-prose + .layer5228e-prose {
  margin-top: 9px;
}

.layer5228e-prose strong {
  color: #fff;
}

.layer5228e-inlineLink {
  color: var(--layer5228e-pink);
  border-bottom: 1px dashed rgba(255, 20, 147, 0.6);
  font-weight: 600;
}

.layer5228e-inlineLink:hover {
  color: var(--layer5228e-hot);
  border-bottom-color: var(--layer5228e-hot);
}

/* sub-heading inside a section */
.layer5228e-h3 {
  font-family: var(--layer5228e-font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--layer5228e-mauve);
  margin-top: 14px;
  margin-bottom: 6px;
}

/* compact related-pages line under a game grid */
.layer5228e-related {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed var(--layer5228e-line-soft);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--layer5228e-dim);
}

.layer5228e-related a {
  color: var(--layer5228e-mauve);
  font-weight: 600;
}

.layer5228e-related a:hover {
  color: var(--layer5228e-hot);
}

/* --------------------------------------------------------------------------
   11. Game grid : image tile with bottom name bar
   -------------------------------------------------------------------------- */
.layer5228e-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.layer5228e-game {
  border: 1px solid var(--layer5228e-line-soft);
  border-radius: var(--layer5228e-radius);
  background: var(--layer5228e-panel-2);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.layer5228e-game:active {
  transform: translateY(1px) scale(0.95);
  border-color: var(--layer5228e-pink);
}

.layer5228e-gameImg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
  display: block;
}

.layer5228e-gameName {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-family: var(--layer5228e-font-head);
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #eee2ea;
  background: linear-gradient(180deg, #2a0e27, #1c091b);
  border-top: 1px solid var(--layer5228e-grape);
  padding: 5px 4px;
  min-height: 34px;
}

@media (min-width: 400px) and (max-width: 430px) {
  .layer5228e-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .layer5228e-gameName {
    font-size: 10px;
    min-height: 32px;
  }
}

/* --------------------------------------------------------------------------
   12. Step blocks (progressive information rhythm)
   -------------------------------------------------------------------------- */
.layer5228e-steps {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 10px;
  counter-reset: layer5228e-step;
}

.layer5228e-step {
  counter-increment: layer5228e-step;
  position: relative;
  border: 1px solid var(--layer5228e-line-soft);
  border-left: 3px solid var(--layer5228e-hot);
  border-radius: var(--layer5228e-radius);
  background: var(--layer5228e-panel-2);
  padding: 10px 12px 11px 12px;
}

.layer5228e-step::before {
  content: counter(layer5228e-step, decimal-leading-zero);
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--layer5228e-font-head);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 69, 0, 0.45);
  letter-spacing: 0.06em;
}

.layer5228e-stepTitle {
  display: block;
  font-family: var(--layer5228e-font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
  padding-right: 30px;
}

.layer5228e-step p {
  font-size: 13px;
  color: #d9cdd6;
}

/* --------------------------------------------------------------------------
   13. Check lists, takeaways, fact grid
   -------------------------------------------------------------------------- */
.layer5228e-checkList {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.layer5228e-checkItem {
  position: relative;
  padding: 9px 11px 10px 34px;
  border: 1px solid var(--layer5228e-line-soft);
  border-radius: var(--layer5228e-radius);
  background: var(--layer5228e-panel-2);
  font-size: 13px;
  color: #d9cdd6;
}

.layer5228e-checkItem::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 13px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--layer5228e-pink);
  transform: rotate(45deg);
}

.layer5228e-checkItem strong {
  color: #fff;
}

.layer5228e-takeBox {
  margin-top: 12px;
  border: 1px solid var(--layer5228e-grape);
  border-radius: var(--layer5228e-radius);
  background:
    linear-gradient(135deg, rgba(255, 20, 147, 0.09), rgba(255, 69, 0, 0.07)),
    var(--layer5228e-panel-2);
  padding: 12px;
}

.layer5228e-takeBox ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.layer5228e-takeBox li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: #e6dae2;
}

.layer5228e-takeBox li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 2px;
  background: var(--layer5228e-hot);
}

.layer5228e-factGrid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.layer5228e-factRow {
  display: flex;
  gap: 10px;
  align-items: baseline;
  border: 1px solid var(--layer5228e-line-soft);
  border-radius: var(--layer5228e-radius);
  background: var(--layer5228e-panel-2);
  padding: 8px 11px;
}

.layer5228e-factKey {
  flex: 0 0 108px;
  font-family: var(--layer5228e-font-head);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--layer5228e-dim);
}

.layer5228e-factVal {
  font-size: 13px;
  color: #f2e8ee;
}

@media (min-width: 380px) {
  .layer5228e-factGrid {
    grid-template-columns: 1fr 1fr;
  }

  .layer5228e-factRow {
    flex-direction: column;
    gap: 2px;
  }
}

/* --------------------------------------------------------------------------
   14. Extended footer (promo shortcuts > brand > directory > disclaimer)
   -------------------------------------------------------------------------- */
.layer5228e-xfoot {
  border: 1px solid var(--layer5228e-line);
  border-radius: var(--layer5228e-radius);
  background: linear-gradient(180deg, #1b0a1a, #12061300 180%), #150716;
  padding: 14px 12px 15px;
  display: grid;
  gap: 16px;
}

.layer5228e-xfootTitle {
  font-family: var(--layer5228e-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--layer5228e-dim);
  margin-bottom: 9px;
}

.layer5228e-promoShortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.layer5228e-psBtn {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--layer5228e-line);
  border-radius: var(--layer5228e-radius);
  background: var(--layer5228e-panel-2);
  color: var(--layer5228e-ink);
  font-family: var(--layer5228e-font-head);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.layer5228e-psBtn svg {
  flex: 0 0 auto;
}

.layer5228e-psBtn:hover {
  border-color: var(--layer5228e-hot);
  color: #fff;
}

.layer5228e-psBtn:active {
  transform: scale(0.96);
}

.layer5228e-psBtn.accent {
  border-color: rgba(255, 69, 0, 0.55);
  background: linear-gradient(180deg, rgba(255, 69, 0, 0.14), rgba(139, 0, 139, 0.1));
}

.layer5228e-brandBlk {
  border-top: 1px solid var(--layer5228e-line-soft);
  padding-top: 13px;
}

.layer5228e-brandBlk p {
  font-size: 12.5px;
  color: #cfc2cc;
}

.layer5228e-dirGrid {
  border-top: 1px solid var(--layer5228e-line-soft);
  padding-top: 13px;
}

.layer5228e-dirGrid ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.layer5228e-dirItem {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
}

.layer5228e-dirItem span {
  color: #b7a8b2;
}

.layer5228e-dirItem a {
  color: var(--layer5228e-pink);
  font-weight: 600;
}

.layer5228e-dirItem a:hover {
  color: var(--layer5228e-hot);
}

@media (min-width: 360px) {
  .layer5228e-dirGrid ul {
    grid-template-columns: 1fr 1fr;
  }
}

.layer5228e-disclaim {
  border-top: 1px solid var(--layer5228e-line-soft);
  padding-top: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--layer5228e-dim);
}

/* --------------------------------------------------------------------------
   15. Common copyright footer
   -------------------------------------------------------------------------- */
.layer5228e-foot {
  text-align: center;
  padding: 2px 12px 6px;
  margin-top: -8px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--layer5228e-dim);
}

/* --------------------------------------------------------------------------
   16. Bottom navigation : outlined functional bar
   -------------------------------------------------------------------------- */
.layer5228e-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--layer5228e-bnav-h);
  background: #150716;
  border-top: 1px solid var(--layer5228e-line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.layer5228e-bnItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--layer5228e-bnav-h);
  border: 0;
  border-left: 1px solid var(--layer5228e-line-soft);
  border-radius: 0;
  background: none;
  color: var(--layer5228e-dim);
  font-family: var(--layer5228e-font-head);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 2px 7px;
  transition: color 0.15s ease, transform 0.12s ease;
}

.layer5228e-bnItem:first-child {
  border-left: 0;
}

.layer5228e-bnItem svg {
  width: 22px;
  height: 22px;
}

/* two-tone icon parts: fill tone switches when a role is active */
.layer5228e-bnItem .icoFill {
  fill: #3a1440;
  transition: fill 0.18s ease;
}

.layer5228e-bnItem .icoLine {
  stroke: var(--layer5228e-mauve);
  fill: none;
  transition: stroke 0.18s ease;
}

.layer5228e-bnItem.is-active {
  color: var(--layer5228e-hot);
  background: linear-gradient(180deg, rgba(255, 69, 0, 0.12), transparent);
}

.layer5228e-bnItem.is-active .icoFill {
  fill: var(--layer5228e-hot);
}

.layer5228e-bnItem.is-active .icoLine {
  stroke: var(--layer5228e-ink);
}

.layer5228e-bnItem:active {
  transform: translateY(1px) scale(0.93);
}

/* --------------------------------------------------------------------------
   17. Short-range reveal motion
   -------------------------------------------------------------------------- */
.layer5228e-rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0.05s;
}

.layer5228e-rv.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   18. Wide-screen framing (keep the phone canvas centered)
   -------------------------------------------------------------------------- */
@media (min-width: 700px) {
  body {
    border-left: 1px solid var(--layer5228e-line);
    border-right: 1px solid var(--layer5228e-line);
  }
}

/* --------------------------------------------------------------------------
   19. Small-screen refinements
   -------------------------------------------------------------------------- */
@media (max-width: 339px) {
  .layer5228e-chipRow {
    grid-template-columns: repeat(2, 1fr);
  }

  .layer5228e-promoShortcuts {
    grid-template-columns: 1fr;
  }

  .layer5228e-h1 {
    font-size: 19px;
  }
}

/* Compatible completion: accessible controls and distinct help-page layouts. */
:root { --layer5228e-head-h: 114px; }
.layer5228e-main { padding-bottom: 24px; }
.layer5228e-foot { margin: 0; padding: 12px 12px calc(84px + env(safe-area-inset-bottom, 0px)); }
.layer5228e-main > *, .layer5228e-grid > *, .layer5228e-xfoot > * { min-width: 0; }
html { overflow-x: clip; }
.layer5228e-drawer { visibility: hidden; }
.layer5228e-drawer.is-open { visibility: visible; }
.layer5228e-prose, .layer5228e-dirItem, .layer5228e-factVal { overflow-wrap: anywhere; }
.layer5228e-h3 { color: #e8a3a3; }
.layer5228e-rv { opacity: 1; transform: none; }
.layer5228e-rv.is-in { animation: layer5228e-enter .25s ease; }
@keyframes layer5228e-enter { from { transform: translateY(8px); } to { transform: translateY(0); } }
.layer5228e-slide { pointer-events: none; visibility: hidden; }
.layer5228e-slide.is-active { pointer-events: auto; visibility: visible; }
.layer5228e-dots { bottom: 0; gap: 0; }
.layer5228e-dot { position: relative; width: 44px; height: 44px; background: transparent; border: 0; }
.layer5228e-dot::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 11px; height: 6px; border: 1px solid #fff; background: #170817; }
.layer5228e-dot.is-on { background: transparent; }
.layer5228e-dot.is-on::after { background: var(--layer5228e-hot); }
.layer5228e-pause { position: absolute; top: 4px; right: 4px; z-index: 4; min-width: 44px; min-height: 44px; border: 1px solid #999; color: #fff; background: #0a0a0a; cursor: pointer; }
.layer5228e-closeBtn { margin-left: auto; min-width: 44px; min-height: 44px; background: none; border: 1px solid #cd5c5c; color: #fff; font-size: 22px; cursor: pointer; }
.layer5228e-ticker button, .layer5228e-chip { min-height: 44px; }
.layer5228e-ctaRow > * { padding: 8px; }
.layer5228e-factKey { flex: 0 0 auto; min-width: 88px; }
.layer5228e-factRow { align-items: flex-start; }
.layer5228e-promoShortcuts { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.layer5228e-psBtn { flex: 0 0 158px; scroll-snap-align: start; }
.layer5228e-dirGrid ul { grid-template-columns: 1fr; }
.layer5228e-dirItem { display: block; }
.layer5228e-dirItem a { display: block; min-height: 44px; padding: 9px 0; }
.layer5228e-dirItem span { display: block; }
.layer5228e-chipRow { display: flex; overflow-x: auto; }
.layer5228e-chip { flex: 0 0 78px; }
.layer5228e-grid { align-items: stretch; }
.layer5228e-game { min-width: 0; min-height: 44px; }
.layer5228e-gameImg { height: auto; aspect-ratio: 1 / 1; }
.layer5228e-gameName { overflow-wrap: anywhere; }
.layer5228e-gameName { height: 39px; }
.layer5228e-caseLog { margin-top: 12px; display: grid; gap: 16px; }
.layer5228e-case { border-left: 3px solid var(--layer5228e-mauve); padding-left: 12px; }
.layer5228e-case dt { color: #fff; font-weight: 700; margin-bottom: 5px; }
.layer5228e-case dd { color: #d9cdd6; margin-bottom: 7px; }
.layer5228e-case dd strong { color: #f7b6d6; }
.layer5228e-evidence { list-style: none; border-top: 1px solid var(--layer5228e-grape); margin-top: 12px; }
.layer5228e-evidence li { padding: 12px 0; border-bottom: 1px solid var(--layer5228e-line); }
.layer5228e-branch { padding: 11px 12px; border-left: 3px solid var(--layer5228e-pink); background: var(--layer5228e-panel-2); margin-top: 12px; }
.layer5228e-action { margin-top: 11px; width: 100%; padding: 10px 12px; text-align: left; min-height: 44px; border: 1px solid var(--layer5228e-hot); background: #ff4500; color: #140400; font-weight: 700; cursor: pointer; border-radius: 2px; }
.layer5228e-action:active { transform: translateY(1px); }
.layer5228e-routeNotes { margin-top: 12px; display: grid; gap: 12px; }
.layer5228e-routeNotes a { display: flex; align-items: center; min-height: 44px; text-decoration: underline; }
.layer5228e-accessTrail { list-style: none; counter-reset: layer5228e-access; display: grid; gap: 0; margin-top: 14px; }
.layer5228e-accessTrail li { counter-increment: layer5228e-access; border-left: 2px solid var(--layer5228e-grape); padding: 0 0 22px 17px; position: relative; }
.layer5228e-accessTrail li::before { content: counter(layer5228e-access); position: absolute; left: -11px; top: 0; width: 20px; text-align: center; background: var(--layer5228e-bg); color: #ff9bcf; font-weight: 700; }
.layer5228e-accessTrail h3 { margin-top: 0; }
.layer5228e-stopNote { border: 1px solid var(--layer5228e-mauve); padding: 12px; margin-top: 12px; }
.layer5228e-miniList { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin-top: 12px; padding-bottom: 8px; }
.layer5228e-miniList li { flex: 0 0 130px; border: 1px solid var(--layer5228e-line); padding: 10px; }
.layer5228e-miniList strong { display: block; color: #fff; }
@media (min-width: 431px) { .layer5228e-drawer { right: calc((100vw - 430px) / 2); } }
@media (prefers-reduced-motion: reduce) { .layer5228e-rv.is-in { animation: none; } }

/* --------------------------------------------------------------------------
   20. Reduced motion preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .layer5228e-rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .layer5228e-slide,
  .layer5228e-drawer,
  .layer5228e-scrim {
    transition: none;
  }
}
