/* ==========================================================================
   Tongits Rules - mobile interface stylesheet
   File: css/tongits-rules-interface-38e087.css
   Canvas: 320-430px phone frame, centered on wider viewports.
   Every class uses the site prefix layer8e087-.
   Palette: #1A1A2E base / #F0F8FF ink / #0097A7 primary / #48D1CC accent
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  --layer8e087-bg: #1A1A2E;
  --layer8e087-bg-deep: #141425;
  --layer8e087-panel: #20203C;
  --layer8e087-panel-2: #272748;
  --layer8e087-line: #34345E;
  --layer8e087-line-soft: #2B2B4D;
  --layer8e087-ink: #F0F8FF;
  --layer8e087-muted: #B9C6DE;
  --layer8e087-faint: #8A97B4;
  --layer8e087-teal: #0097A7;
  --layer8e087-teal-deep: #006E7C;
  --layer8e087-aqua: #48D1CC;
  --layer8e087-radius-lg: 16px;
  --layer8e087-radius-md: 12px;
  --layer8e087-radius-sm: 8px;
  --layer8e087-head-font: Georgia, "Palatino Linotype", "Times New Roman", serif;
  --layer8e087-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --layer8e087-glow: 0 0 14px rgba(72, 209, 204, 0.35);
}

/* -------------------------------------------------------------------- base */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(72, 209, 204, 0.18);
}

a {
  color: var(--layer8e087-aqua);
  text-decoration: none;
}

a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--layer8e087-head-font);
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0;
  color: var(--layer8e087-ink);
}

:focus-visible {
  outline: 2px solid var(--layer8e087-aqua);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(72, 209, 204, 0.32); }

/* ------------------------------------------------------------ phone canvas */
.layer8e087-page {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--layer8e087-bg);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
}

@media (min-width: 431px) {
  .layer8e087-page {
    border-left: 1px solid var(--layer8e087-line-soft);
    border-right: 1px solid var(--layer8e087-line-soft);
  }
}

/* Helper: stretch any fixed bar exactly across the phone canvas. */
.layer8e087-fixedSpan { left: 0; right: 0; }

@media (min-width: 431px) {
  .layer8e087-fixedSpan {
    left: calc(50% - 215px);
    right: calc(50% - 215px);
  }
}

/* ------------------------------------------------------------------- topbar */
.layer8e087-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 20, 37, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--layer8e087-line);
}

.layer8e087-topRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
}

.layer8e087-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.layer8e087-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--layer8e087-line);
  flex: none;
}

.layer8e087-brandName {
  font-family: var(--layer8e087-head-font);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--layer8e087-ink);
}

.layer8e087-menuBtn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--layer8e087-line);
  color: var(--layer8e087-ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.layer8e087-menuBtn:hover {
  border-color: var(--layer8e087-aqua);
  box-shadow: var(--layer8e087-glow);
}

.layer8e087-menuBtn svg { width: 20px; height: 20px; }

.layer8e087-topActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 10px;
}

.layer8e087-topActions .layer8e087-btn {
  min-height: 40px;
  font-size: 13.5px;
}

/* ----------------------------------------------------------------- buttons */
.layer8e087-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    filter 0.16s ease, background 0.16s ease;
}

.layer8e087-btn svg { width: 15px; height: 15px; flex: none; }

.layer8e087-btn--cta {
  background: linear-gradient(135deg, var(--layer8e087-teal), var(--layer8e087-teal-deep));
  color: var(--layer8e087-ink);
  box-shadow: 0 5px 16px rgba(0, 151, 167, 0.4);
}

.layer8e087-btn--cta:hover { box-shadow: 0 6px 20px rgba(0, 151, 167, 0.58); }

.layer8e087-btn--ghost {
  background: rgba(72, 209, 204, 0.08);
  border: 1px solid rgba(72, 209, 204, 0.5);
  color: var(--layer8e087-aqua);
}

.layer8e087-btn--ghost:hover { background: rgba(72, 209, 204, 0.15); }

.layer8e087-btn:active { transform: translateY(1px); filter: brightness(1.08); }

/* Inline promotional text button used inside article sections. */
.layer8e087-inlineCta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--layer8e087-teal), var(--layer8e087-teal-deep));
  color: var(--layer8e087-ink);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(0, 151, 167, 0.35);
  margin: 2px 0 12px;
}

.layer8e087-inlineCta svg { width: 15px; height: 15px; }

.layer8e087-inlineCta:hover { box-shadow: 0 6px 18px rgba(0, 151, 167, 0.5); }

.layer8e087-inlineCta:active { transform: translateY(1px); }

/* ------------------------------------------------------------------ drawer */
.layer8e087-scrim {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(10, 10, 20, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.layer8e087-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 80;
  width: min(82vw, 332px);
  max-width: 430px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: linear-gradient(180deg, #232345, #1B1B33);
  border-left: 1px solid var(--layer8e087-line);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1), visibility 0.32s;
}

@media (min-width: 431px) {
  .layer8e087-drawer { right: calc(50% - 215px); }
}

.layer8e087-drawer.layer8e087-is-open { transform: translateX(0); visibility: visible; }

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

.layer8e087-drawerHead .layer8e087-brand { gap: 8px; }

.layer8e087-drawerHead .layer8e087-logo { width: 28px; height: 28px; }

.layer8e087-dclose {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--layer8e087-line);
  color: var(--layer8e087-muted);
}

.layer8e087-dclose svg { width: 18px; height: 18px; }

.layer8e087-dgroup { padding: 12px 12px 2px; }

.layer8e087-dgroupTitle {
  margin: 0 0 6px;
  padding-left: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--layer8e087-faint);
}

.layer8e087-dlink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--layer8e087-ink);
  font-size: 14px;
}

.layer8e087-dlink::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--layer8e087-line);
  flex: none;
}

.layer8e087-dlink:hover {
  background: rgba(72, 209, 204, 0.08);
  text-decoration: none;
}

.layer8e087-dlink.layer8e087-is-active {
  background: rgba(0, 151, 167, 0.16);
  color: var(--layer8e087-aqua);
  font-weight: 700;
}

.layer8e087-dlink.layer8e087-is-active::before {
  background: var(--layer8e087-aqua);
  box-shadow: 0 0 8px rgba(72, 209, 204, 0.8);
}

.layer8e087-drawerFoot {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--layer8e087-line-soft);
}

/* -------------------------------------------------------------------- hero */
.layer8e087-hero {
  padding: 20px 16px 18px;
  border-bottom: 1px solid var(--layer8e087-line-soft);
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(0, 151, 167, 0.28), transparent 60%),
    radial-gradient(90% 70% at 0% 0%, rgba(72, 209, 204, 0.14), transparent 55%),
    var(--layer8e087-bg);
}

.layer8e087-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--layer8e087-aqua);
}

.layer8e087-hero h1 {
  font-size: 26px;
  line-height: 1.18;
  margin: 0 0 10px;
}

@media (min-width: 430px) {
  .layer8e087-hero h1 { font-size: 28px; }
}

.layer8e087-heroLead {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--layer8e087-muted);
}

.layer8e087-duo {
  display: flex;
  gap: 8px;
}

.layer8e087-duo > * { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- carousel */
.layer8e087-carousel { padding: 16px 16px 4px; }

.layer8e087-cvframe {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--layer8e087-line);
  background: var(--layer8e087-panel);
}

.layer8e087-cvtrack {
  display: flex;
  touch-action: pan-y;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.3, 1);
}

.layer8e087-cvslide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  display: block;
}

.layer8e087-cvslide img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
}

.layer8e087-cvcap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 9px;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 20, 0.88));
  color: var(--layer8e087-ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: left;
}

.layer8e087-cvdots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 2px;
}

.layer8e087-cvdot {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layer8e087-cvdot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--layer8e087-line);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.layer8e087-cvdot.layer8e087-is-on::after {
  background: var(--layer8e087-aqua);
  box-shadow: 0 0 8px rgba(72, 209, 204, 0.7);
  transform: scale(1.25);
}

/* ------------------------------------------------------------- game shelves */
.layer8e087-games { padding: 18px 16px 4px; }

.layer8e087-gamesHead h2 { font-size: 20px; line-height: 1.25; }

.layer8e087-gamesHead p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--layer8e087-muted);
}

.layer8e087-shelf {
  margin-top: 14px;
  padding: 12px;
  background: var(--layer8e087-panel);
  border: 1px solid var(--layer8e087-line-soft);
  border-radius: var(--layer8e087-radius-lg);
}

.layer8e087-shelfHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.layer8e087-shelfTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.3;
}

.layer8e087-shelfTitle::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--layer8e087-aqua), var(--layer8e087-teal));
  flex: none;
}

.layer8e087-shelfChip {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--layer8e087-aqua);
  border: 1px solid rgba(72, 209, 204, 0.4);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.layer8e087-shelfNote {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--layer8e087-muted);
}

.layer8e087-grid {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
}

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

.layer8e087-tile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease;
}

.layer8e087-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--layer8e087-line);
  background: var(--layer8e087-panel-2);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.layer8e087-tile:hover { transform: translateY(-2px); }

.layer8e087-tile:hover img {
  border-color: var(--layer8e087-aqua);
  box-shadow: var(--layer8e087-glow);
}

.layer8e087-tile:active { transform: translateY(0) scale(0.96); }

.layer8e087-tileName {
  display: flex;
  align-items: center;
  min-height: 2.6em;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  color: var(--layer8e087-muted);
  overflow-wrap: anywhere;
}

.layer8e087-tile:hover .layer8e087-tileName { color: var(--layer8e087-ink); }

/* -------------------------------------------------------- content sections */
.layer8e087-block { padding: 22px 16px 6px; }

.layer8e087-block > h2 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.layer8e087-lead {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--layer8e087-ink);
}

.layer8e087-block p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--layer8e087-muted);
}

.layer8e087-block strong { color: var(--layer8e087-ink); }

.layer8e087-block em { color: var(--layer8e087-aqua); font-style: normal; }

/* Comparison rows (play styles) */
.layer8e087-vslist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 14px;
}

.layer8e087-vsrow {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 11px 12px;
  background: var(--layer8e087-panel);
  border: 1px solid var(--layer8e087-line-soft);
  border-radius: var(--layer8e087-radius-md);
}

.layer8e087-vsrow svg {
  width: 22px;
  height: 22px;
  color: var(--layer8e087-aqua);
}

.layer8e087-vsName {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--layer8e087-ink);
}

.layer8e087-vsNote {
  margin: 0;
  font-size: 13px;
  color: var(--layer8e087-muted);
}

/* Compact two-column category notes */
.layer8e087-catGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0 14px;
}

.layer8e087-catCard {
  padding: 11px 12px;
  background: var(--layer8e087-panel);
  border: 1px solid var(--layer8e087-line-soft);
  border-left: 3px solid var(--layer8e087-teal);
  border-radius: var(--layer8e087-radius-md);
}

.layer8e087-catCard h3 {
  font-size: 14px;
  margin: 0 0 3px;
}

.layer8e087-catCard p {
  margin: 0;
  font-size: 12.5px;
  color: var(--layer8e087-muted);
}

/* Checklist rows */
.layer8e087-checklist {
  list-style: none;
  margin: 4px 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer8e087-checkItem {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  background: var(--layer8e087-panel);
  border: 1px solid var(--layer8e087-line-soft);
  border-radius: var(--layer8e087-radius-md);
  font-size: 13px;
  color: var(--layer8e087-muted);
}

.layer8e087-checkItem svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--layer8e087-aqua);
}

/* Relation list (entity summary) */
.layer8e087-relList {
  list-style: none;
  margin: 4px 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer8e087-relItem {
  padding: 10px 12px;
  border-left: 3px solid var(--layer8e087-aqua);
  border-radius: var(--layer8e087-radius-sm);
  background: rgba(0, 151, 167, 0.08);
  font-size: 13px;
  color: var(--layer8e087-muted);
}

.layer8e087-relItem strong { color: var(--layer8e087-ink); }

/* --------------------------------------------------------- extended footer */
.layer8e087-xfoot {
  margin-top: 18px;
  padding: 20px 16px 8px;
  background: var(--layer8e087-bg-deep);
  border-top: 1px solid var(--layer8e087-line-soft);
}

.layer8e087-xfoot h2 { font-size: 18px; }

.layer8e087-xfootSub {
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--layer8e087-muted);
}

.layer8e087-promoGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.layer8e087-promoCard {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 11px 10px;
  text-align: left;
  border-radius: var(--layer8e087-radius-md);
  border: 1px solid rgba(72, 209, 204, 0.35);
  background: linear-gradient(150deg, rgba(0, 151, 167, 0.18), rgba(26, 26, 46, 0.4));
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.layer8e087-promoCard svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--layer8e087-aqua);
}

.layer8e087-promoCard:hover { box-shadow: var(--layer8e087-glow); }

.layer8e087-promoCard:active { transform: scale(0.97); }

.layer8e087-promoName {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--layer8e087-ink);
  line-height: 1.3;
}

.layer8e087-promoSub {
  display: block;
  font-size: 10.5px;
  color: var(--layer8e087-muted);
  line-height: 1.35;
}

.layer8e087-brandNote {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: var(--layer8e087-radius-md);
  background: var(--layer8e087-panel);
  border: 1px solid var(--layer8e087-line-soft);
  font-size: 13px;
  color: var(--layer8e087-muted);
}

.layer8e087-dirTitle {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--layer8e087-aqua);
}

.layer8e087-dirGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.layer8e087-dirGrid a {
  font-size: 12.5px;
  color: var(--layer8e087-muted);
  line-height: 1.45;
}

.layer8e087-dirGrid a:hover { color: var(--layer8e087-aqua); }

.layer8e087-disclaim {
  margin: 0;
  padding: 12px 0 8px;
  border-top: 1px dashed var(--layer8e087-line);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--layer8e087-faint);
}

.layer8e087-topLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  margin: 2px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--layer8e087-line);
  color: var(--layer8e087-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.layer8e087-topLink svg { width: 14px; height: 14px; }

.layer8e087-topLink:hover {
  color: var(--layer8e087-aqua);
  border-color: var(--layer8e087-aqua);
}

/* ------------------------------------------------------------- common foot */
.layer8e087-foot {
  padding: 14px 16px calc(96px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  color: var(--layer8e087-faint);
}

.layer8e087-foot p { margin: 0; }

/* --------------------------------------------------------- bottom nav bar */
.layer8e087-bottomnav {
  position: fixed;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  max-width: 430px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(18, 18, 36, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--layer8e087-line);
}

.layer8e087-navItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  color: var(--layer8e087-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 10px;
  transition: color 0.16s ease, transform 0.16s ease;
}

.layer8e087-navItem svg { width: 22px; height: 22px; }

.layer8e087-navItem:active { transform: translateY(-1px); }

.layer8e087-navItem:hover { color: var(--layer8e087-muted); }

.layer8e087-navItem.layer8e087-is-active {
  color: var(--layer8e087-aqua);
  text-shadow: 0 0 10px rgba(72, 209, 204, 0.55);
}

/* Center raised promotional hub of the bottom bar. */
.layer8e087-navRaise {
  width: 54px;
  height: 54px;
  margin-top: -30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10233F;
  background: linear-gradient(160deg, var(--layer8e087-teal), var(--layer8e087-aqua));
  border: 2px solid rgba(240, 248, 255, 0.35);
  box-shadow: 0 6px 18px rgba(0, 151, 167, 0.45), 0 0 0 4px rgba(18, 18, 36, 0.97);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.layer8e087-navRaise svg { width: 24px; height: 24px; }

.layer8e087-navRaise:hover { box-shadow: 0 8px 22px rgba(72, 209, 204, 0.6), 0 0 0 4px rgba(18, 18, 36, 0.97); }

.layer8e087-navRaise:active { transform: scale(0.93); }

/* --------------------------------------------------------- motion, a11y... */
@media (max-width: 359px) {
  .layer8e087-hero h1 { font-size: 23px; }
  .layer8e087-catGrid { grid-template-columns: 1fr; }
  .layer8e087-promoGrid { grid-template-columns: 1fr; }
  .layer8e087-dirGrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------- help pages */
.layer8e087-helpHero {
  position: relative;
  padding: 22px 16px 20px;
  background:
    linear-gradient(120deg, rgba(0, 151, 167, 0.2), transparent 55%),
    radial-gradient(85% 90% at 100% 0%, rgba(72, 209, 204, 0.17), transparent 62%),
    var(--layer8e087-bg);
  border-bottom: 1px solid var(--layer8e087-line-soft);
}

.layer8e087-helpHero::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(72, 209, 204, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(72, 209, 204, 0.05);
  pointer-events: none;
}

.layer8e087-helpHero h1 {
  max-width: 330px;
  margin-bottom: 10px;
  font-size: 27px;
  line-height: 1.15;
}

.layer8e087-helpIntro {
  position: relative;
  z-index: 1;
  margin: 0 0 15px;
  max-width: 390px;
  color: var(--layer8e087-muted);
  font-size: 14.5px;
}

.layer8e087-helpActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.layer8e087-helpActions > * { flex: 1 1 145px; }

.layer8e087-helpRail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 16px 16px 2px;
}

.layer8e087-helpRailItem {
  min-height: 72px;
  padding: 10px 8px;
  border-top: 2px solid var(--layer8e087-teal);
  border-radius: 0 0 var(--layer8e087-radius-sm) var(--layer8e087-radius-sm);
  background: var(--layer8e087-panel);
}

.layer8e087-helpRailItem strong {
  display: block;
  margin-bottom: 3px;
  color: var(--layer8e087-aqua);
  font-family: var(--layer8e087-head-font);
  font-size: 17px;
}

.layer8e087-helpRailItem span {
  display: block;
  color: var(--layer8e087-muted);
  font-size: 11px;
  line-height: 1.3;
}

.layer8e087-helpSection {
  padding: 22px 16px 4px;
}

.layer8e087-helpSection > h2 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.layer8e087-helpSection > p {
  margin: 0 0 12px;
  color: var(--layer8e087-muted);
  font-size: 14px;
}

.layer8e087-helpSection > p strong,
.layer8e087-helpAnswer strong { color: var(--layer8e087-ink); }

.layer8e087-helpSteps {
  display: grid;
  gap: 8px;
  margin: 13px 0 14px;
}

.layer8e087-helpStep {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px 12px;
  background: var(--layer8e087-panel);
  border: 1px solid var(--layer8e087-line-soft);
  border-radius: var(--layer8e087-radius-md);
}

.layer8e087-helpStepMark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(0, 151, 167, 0.28);
  color: var(--layer8e087-aqua);
  font-family: var(--layer8e087-head-font);
  font-weight: 700;
}

.layer8e087-helpStep h3 {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.3;
}

.layer8e087-helpStep p {
  margin: 0;
  color: var(--layer8e087-muted);
  font-size: 13px;
  line-height: 1.48;
}

.layer8e087-helpCheck,
.layer8e087-helpBranches {
  display: grid;
  gap: 8px;
  margin: 13px 0 14px;
}

.layer8e087-helpCheckItem,
.layer8e087-helpBranch {
  position: relative;
  padding: 11px 12px 11px 37px;
  border-left: 3px solid var(--layer8e087-aqua);
  border-radius: 0 var(--layer8e087-radius-sm) var(--layer8e087-radius-sm) 0;
  background: rgba(0, 151, 167, 0.1);
  color: var(--layer8e087-muted);
  font-size: 13px;
}

.layer8e087-helpCheckItem::before {
  content: "✓";
  position: absolute;
  left: 13px;
  top: 10px;
  color: var(--layer8e087-aqua);
  font-weight: 700;
}

.layer8e087-helpBranch::before {
  content: "→";
  position: absolute;
  left: 13px;
  top: 10px;
  color: var(--layer8e087-aqua);
  font-weight: 700;
}

.layer8e087-helpCheckItem strong,
.layer8e087-helpBranch strong { color: var(--layer8e087-ink); }

.layer8e087-helpNotice {
  margin: 13px 0 14px;
  padding: 13px;
  border: 1px solid rgba(72, 209, 204, 0.45);
  border-radius: var(--layer8e087-radius-md);
  background: linear-gradient(135deg, rgba(0, 151, 167, 0.2), rgba(32, 32, 60, 0.72));
  color: var(--layer8e087-muted);
  font-size: 13px;
}

.layer8e087-helpNotice strong { color: var(--layer8e087-ink); }

.layer8e087-helpAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 0 9px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(72, 209, 204, 0.1);
  border: 1px solid rgba(72, 209, 204, 0.55);
  color: var(--layer8e087-aqua);
  font-size: 13px;
  font-weight: 700;
}

.layer8e087-helpAction:hover {
  background: rgba(72, 209, 204, 0.18);
  text-decoration: none;
  box-shadow: var(--layer8e087-glow);
}

.layer8e087-helpAction.layer8e087-helpAction--solid {
  background: linear-gradient(135deg, var(--layer8e087-teal), var(--layer8e087-teal-deep));
  color: var(--layer8e087-ink);
  border-color: transparent;
}

.layer8e087-helpMatrix {
  display: grid;
  gap: 8px;
  margin: 13px 0 14px;
}

.layer8e087-helpMatrixRow {
  display: grid;
  grid-template-columns: minmax(88px, 0.7fr) 1.3fr;
  gap: 9px;
  padding: 10px;
  border-bottom: 1px solid var(--layer8e087-line-soft);
  color: var(--layer8e087-muted);
  font-size: 12.5px;
}

.layer8e087-helpMatrixRow strong { color: var(--layer8e087-ink); }

.layer8e087-helpRibbon {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 13px 0 14px;
  padding: 2px 2px 7px;
  scrollbar-width: thin;
}

.layer8e087-helpRibbonItem {
  min-width: 142px;
  padding: 11px;
  border-radius: var(--layer8e087-radius-md);
  background: var(--layer8e087-panel-2);
  border: 1px solid var(--layer8e087-line);
  color: var(--layer8e087-muted);
  font-size: 12.5px;
}

.layer8e087-helpRibbonItem strong {
  display: block;
  margin-bottom: 4px;
  color: var(--layer8e087-aqua);
  font-size: 13px;
}

.layer8e087-helpQuestionList {
  display: grid;
  gap: 9px;
  margin: 13px 0 14px;
}

.layer8e087-helpQuestion {
  overflow: hidden;
  border: 1px solid var(--layer8e087-line-soft);
  border-radius: var(--layer8e087-radius-md);
  background: var(--layer8e087-panel);
}

.layer8e087-helpQuestion summary {
  min-height: 48px;
  padding: 13px 34px 13px 12px;
  cursor: pointer;
  list-style: none;
  color: var(--layer8e087-ink);
  font-family: var(--layer8e087-head-font);
  font-size: 14px;
  font-weight: 700;
  position: relative;
}

.layer8e087-helpQuestion summary::-webkit-details-marker { display: none; }
.layer8e087-helpQuestion summary::after {
  content: "+";
  position: absolute;
  right: 13px;
  color: var(--layer8e087-aqua);
  font-family: var(--layer8e087-body-font);
  font-size: 20px;
  line-height: 1;
}

.layer8e087-helpQuestion[open] summary::after { content: "−"; }

.layer8e087-helpAnswer {
  padding: 0 12px 13px;
  color: var(--layer8e087-muted);
  font-size: 13px;
}

.layer8e087-helpAnswer p { margin: 0 0 9px; }
.layer8e087-helpAnswer p:last-child { margin-bottom: 0; }

.layer8e087-helpAnswer a,
.layer8e087-helpSection a { color: var(--layer8e087-aqua); }

.layer8e087-helpFooterNote {
  margin: 18px 16px 4px;
  padding: 13px;
  border-top: 1px dashed var(--layer8e087-line);
  color: var(--layer8e087-faint);
  font-size: 11.5px;
  line-height: 1.55;
}

@media (max-width: 359px) {
  .layer8e087-helpHero h1 { font-size: 23px; }
  .layer8e087-helpRail { grid-template-columns: 1fr; }
  .layer8e087-helpRailItem { min-height: 0; }
  .layer8e087-helpMatrixRow { grid-template-columns: 1fr; gap: 3px; }
}
