/* ==========================================================================
   Gilas vs Korea - display-dynamic stylesheet
   Mobile-first phone canvas (320-430px), low-radius sectioned panels,
   humanist serif headings + clear sans body, mixed large/small game tiles.
   All classes and custom properties use the layer90e2b- prefix.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --layer90e2b-night: #1b263b;            /* deep navy page base */
  --layer90e2b-night-deep: #121a2b;       /* darker panel base */
  --layer90e2b-night-soft: #223350;       /* raised panel navy */
  --layer90e2b-coffee: #6f4e37;           /* coffee brown tint */
  --layer90e2b-coffee-soft: rgba(111, 78, 55, 0.38);
  --layer90e2b-gold: #ffd700;             /* primary accent */
  --layer90e2b-khaki: #f0e68c;            /* soft light accent */
  --layer90e2b-orange: #ff8c00;           /* CTA energy */
  --layer90e2b-paper: #f7f1de;            /* main text tone */
  --layer90e2b-muted: rgba(247, 241, 222, 0.66);
  --layer90e2b-faint: rgba(247, 241, 222, 0.44);
  --layer90e2b-line: rgba(240, 230, 140, 0.20);
  --layer90e2b-line-soft: rgba(240, 230, 140, 0.12);
  --layer90e2b-ink-on-accent: #1b263b;
  --layer90e2b-radius-xs: 3px;
  --layer90e2b-radius-s: 5px;
  --layer90e2b-radius-m: 7px;
  --layer90e2b-gap: 12px;
  --layer90e2b-pad: 14px;
  --layer90e2b-font-head: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --layer90e2b-font-body: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --layer90e2b-shadow: 0 10px 26px rgba(9, 14, 26, 0.55);
  --layer90e2b-dock-h: 66px;
  --layer90e2b-top-h: 58px;
}

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

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

body {
  margin: 0;
  background: #0d1422;
  color: var(--layer90e2b-paper);
  font-family: var(--layer90e2b-font-body);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: rgba(255, 216, 0, 0.22);
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--layer90e2b-khaki);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--layer90e2b-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: var(--layer90e2b-gold);
  color: var(--layer90e2b-ink-on-accent);
}

/* --------------------------------------------------------------------------
   3. Phone canvas shell - centered 430px column on any screen
   -------------------------------------------------------------------------- */
.layer90e2b-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 34% at 18% 0%, rgba(255, 140, 0, 0.16), transparent 62%),
    radial-gradient(90% 26% at 88% 7%, rgba(255, 215, 0, 0.10), transparent 58%),
    linear-gradient(180deg, var(--layer90e2b-night) 0%, #16203a 46%, var(--layer90e2b-night-deep) 100%);
  overflow-x: clip;
}

@media (min-width: 480px) {
  .layer90e2b-shell {
    box-shadow:
      0 0 0 1px var(--layer90e2b-line-soft),
      0 0 60px rgba(0, 0, 0, 0.65);
  }
}

.layer90e2b-main {
  padding: calc(var(--layer90e2b-top-h) + 10px) var(--layer90e2b-pad) calc(var(--layer90e2b-dock-h) + 34px);
}

.layer90e2b-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
}

.layer90e2b-skip:focus {
  left: 10px;
  top: 8px;
  padding: 8px 14px;
  background: var(--layer90e2b-gold);
  color: var(--layer90e2b-ink-on-accent);
  border-radius: var(--layer90e2b-radius-s);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Compact icon + text buttons (site CTA language)
   -------------------------------------------------------------------------- */
.layer90e2b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: var(--layer90e2b-radius-m);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.layer90e2b-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.layer90e2b-btn--solid {
  background: linear-gradient(135deg, var(--layer90e2b-orange), #ffb347 88%);
  color: #26150a;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.32);
}

.layer90e2b-btn--solid:hover,
.layer90e2b-btn--solid:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(255, 140, 0, 0.46);
  color: #26150a;
  text-decoration: none;
}

.layer90e2b-btn--gold {
  background: linear-gradient(135deg, var(--layer90e2b-gold), #ffe873);
  color: var(--layer90e2b-ink-on-accent);
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.28);
}

.layer90e2b-btn--gold:hover,
.layer90e2b-btn--gold:focus-visible {
  transform: translateY(-1px);
  color: var(--layer90e2b-ink-on-accent);
  text-decoration: none;
}

.layer90e2b-btn--ghost {
  background: rgba(27, 38, 59, 0.55);
  color: var(--layer90e2b-khaki);
  border-color: var(--layer90e2b-line);
}

.layer90e2b-btn--ghost:hover,
.layer90e2b-btn--ghost:focus-visible {
  border-color: var(--layer90e2b-gold);
  color: var(--layer90e2b-gold);
  text-decoration: none;
}

.layer90e2b-btn--wide {
  width: 100%;
}

/* Text link styled as a quiet inline action */
.layer90e2b-inline-action {
  color: var(--layer90e2b-gold);
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 215, 0, 0.5);
  padding-bottom: 1px;
}

.layer90e2b-inline-action:hover,
.layer90e2b-inline-action:focus-visible {
  color: #ffe873;
}

/* --------------------------------------------------------------------------
   5. Top brand bar (fixed) - logo + site name only on the brand side
   -------------------------------------------------------------------------- */
.layer90e2b-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--layer90e2b-top-h);
  padding: 8px var(--layer90e2b-pad);
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.97), rgba(18, 26, 43, 0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--layer90e2b-coffee-soft);
}

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

.layer90e2b-topbar__logo {
  width: 38px;
  height: 38px;
  border-radius: var(--layer90e2b-radius-s);
  border: 1px solid var(--layer90e2b-line);
  background: #0f1729;
  object-fit: cover;
  flex: none;
}

.layer90e2b-topbar__word {
  font-family: var(--layer90e2b-font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--layer90e2b-paper);
  white-space: nowrap;
}

.layer90e2b-topbar__word em {
  font-style: italic;
  color: var(--layer90e2b-orange);
  padding: 0 1px;
}

.layer90e2b-topbar__acts {
  display: flex;
  align-items: center;
  gap: 7px;
}

.layer90e2b-topbar__acts .layer90e2b-btn {
  min-height: 40px;
  padding: 8px 11px;
  font-size: 12.5px;
}

.layer90e2b-topbar__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--layer90e2b-radius-s);
  border: 1px solid var(--layer90e2b-line);
  background: rgba(34, 51, 80, 0.5);
  color: var(--layer90e2b-khaki);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.layer90e2b-topbar__burger svg {
  width: 19px;
  height: 19px;
}

.layer90e2b-topbar__burger:hover,
.layer90e2b-topbar__burger:focus-visible,
.layer90e2b-topbar__burger[aria-expanded="true"] {
  border-color: var(--layer90e2b-gold);
  color: var(--layer90e2b-gold);
}

/* --------------------------------------------------------------------------
   6. Expanding site menu
   -------------------------------------------------------------------------- */
.layer90e2b-menu {
  position: fixed;
  top: var(--layer90e2b-top-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 88;
  max-height: 0;
  overflow: hidden;
  background: rgba(15, 23, 41, 0.98);
  border-bottom: 1px solid transparent;
  transition: max-height 0.28s ease, border-color 0.28s ease;
}

.layer90e2b-menu[data-open="true"] {
  max-height: 560px;
  border-bottom-color: var(--layer90e2b-coffee-soft);
}

.layer90e2b-menu__inner {
  padding: 12px var(--layer90e2b-pad) 16px;
}

.layer90e2b-menu__tag {
  display: block;
  margin: 10px 0 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--layer90e2b-faint);
}

.layer90e2b-menu__tag:first-child {
  margin-top: 0;
}

.layer90e2b-menu__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.layer90e2b-menu__list--solo {
  grid-template-columns: 1fr;
}

.layer90e2b-menu__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--layer90e2b-line-soft);
  border-radius: var(--layer90e2b-radius-s);
  background: rgba(34, 51, 80, 0.36);
  color: var(--layer90e2b-paper);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}

.layer90e2b-menu__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--layer90e2b-gold), var(--layer90e2b-orange));
  transform: translateY(120%);
  transition: transform 0.22s ease;
}

.layer90e2b-menu__link:hover,
.layer90e2b-menu__link:focus-visible,
.layer90e2b-menu__link[aria-current="page"] {
  border-color: var(--layer90e2b-line);
  color: var(--layer90e2b-gold);
  text-decoration: none;
}

.layer90e2b-menu__link:hover::before,
.layer90e2b-menu__link:focus-visible::before,
.layer90e2b-menu__link[aria-current="page"]::before {
  transform: translateY(0);
}

.layer90e2b-menu__note {
  margin-top: 12px;
  padding: 9px 12px;
  border-left: 3px solid var(--layer90e2b-orange);
  background: rgba(255, 140, 0, 0.08);
  border-radius: var(--layer90e2b-radius-xs);
  font-size: 12px;
  color: var(--layer90e2b-muted);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.layer90e2b-hero {
  position: relative;
  padding: 18px 16px 20px;
  border: 1px solid var(--layer90e2b-line-soft);
  border-radius: var(--layer90e2b-radius-m);
  background:
    linear-gradient(145deg, rgba(111, 78, 55, 0.35), rgba(27, 38, 59, 0.2) 55%),
    var(--layer90e2b-night-soft);
  box-shadow: var(--layer90e2b-shadow);
}

.layer90e2b-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--layer90e2b-khaki);
  padding: 5px 10px;
  border: 1px solid var(--layer90e2b-line);
  border-radius: 999px;
}

.layer90e2b-hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--layer90e2b-orange);
  box-shadow: 0 0 8px rgba(255, 140, 0, 0.8);
}

.layer90e2b-hero__title {
  margin: 12px 0 10px;
  font-family: var(--layer90e2b-font-head);
  font-size: 26px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--layer90e2b-paper);
  text-wrap: balance;
}

.layer90e2b-hero__lead {
  color: var(--layer90e2b-muted);
  font-size: 14px;
}

.layer90e2b-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.layer90e2b-hero__cta .layer90e2b-btn {
  flex: 1 1 150px;
}

.layer90e2b-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px dashed var(--layer90e2b-line-soft);
}

.layer90e2b-hero__stat {
  text-align: center;
}

.layer90e2b-hero__stat b {
  display: block;
  font-family: var(--layer90e2b-font-head);
  font-size: 19px;
  color: var(--layer90e2b-gold);
  line-height: 1.15;
}

.layer90e2b-hero__stat span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--layer90e2b-faint);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   8. Banner showcase (carousel)
   -------------------------------------------------------------------------- */
.layer90e2b-show {
  margin-top: 14px;
}

.layer90e2b-show__frame {
  position: relative;
  border-radius: var(--layer90e2b-radius-m);
  border: 1px solid var(--layer90e2b-coffee-soft);
  overflow: hidden;
  background: var(--layer90e2b-night-deep);
  box-shadow: var(--layer90e2b-shadow);
}

.layer90e2b-show__track {
  display: flex;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.33, 0.9, 0.3, 1);
  touch-action: pan-y;
}

.layer90e2b-show__slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--layer90e2b-night-deep);
}

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

.layer90e2b-show__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(13, 20, 34, 0.86));
}

.layer90e2b-show__cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.layer90e2b-show__cap b {
  font-family: var(--layer90e2b-font-head);
  font-size: 15px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.layer90e2b-show__cap span {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--layer90e2b-gold);
  color: var(--layer90e2b-ink-on-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.layer90e2b-show__dots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 0 2px;
}

.layer90e2b-show__dot {
  width: 30px;
  height: 22px;
  border: 0;
  padding: 6px 0 0;
  background: transparent;
  position: relative;
}

.layer90e2b-show__dot::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--layer90e2b-line);
  transition: background 0.2s ease;
}

.layer90e2b-show__pip {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--layer90e2b-gold), var(--layer90e2b-orange));
  transform: translateX(-50%);
  transition: transform 0.34s cubic-bezier(0.33, 0.9, 0.3, 1);
}

/* --------------------------------------------------------------------------
   9. Lobby blocks and game tiles (mixed lead + compact tiles)
   -------------------------------------------------------------------------- */
.layer90e2b-lobby {
  margin-top: 26px;
}

.layer90e2b-lobby__intro {
  padding: 4px 2px 2px;
  font-size: 13px;
  color: var(--layer90e2b-faint);
}

.layer90e2b-block {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--layer90e2b-coffee-soft);
}

.layer90e2b-block:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.layer90e2b-block__crumb {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--layer90e2b-orange);
}

.layer90e2b-block__title {
  margin: 7px 0 8px;
  font-family: var(--layer90e2b-font-head);
  font-size: 19.5px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--layer90e2b-paper);
}

.layer90e2b-block__intro {
  font-size: 13.5px;
  color: var(--layer90e2b-muted);
}

.layer90e2b-block__intro + .layer90e2b-block__intro {
  margin-top: 7px;
}

.layer90e2b-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

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

.layer90e2b-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 5px;
  min-height: 44px;
  background: rgba(34, 51, 80, 0.34);
  border: 1px solid var(--layer90e2b-line-soft);
  border-radius: var(--layer90e2b-radius-s);
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.layer90e2b-tile:hover,
.layer90e2b-tile:focus-visible {
  border-color: var(--layer90e2b-gold);
  background: rgba(111, 78, 55, 0.30);
  transform: translateY(-2px);
}

.layer90e2b-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--layer90e2b-radius-xs);
}

.layer90e2b-tile__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--layer90e2b-paper);
  min-height: 2.6em;
}

/* Lead tile: spans two tracks and two rows for the mixed-card rhythm */
.layer90e2b-tile--lead {
  grid-column: span 2;
  grid-row: span 2;
  padding: 7px;
  border-color: var(--layer90e2b-line);
  background:
    linear-gradient(160deg, rgba(255, 215, 0, 0.14), transparent 46%),
    rgba(34, 51, 80, 0.55);
}

.layer90e2b-tile--lead img {
  border-radius: var(--layer90e2b-radius-s);
}

.layer90e2b-tile--lead .layer90e2b-tile__name {
  font-size: 13px;
  font-family: var(--layer90e2b-font-head);
  min-height: 0;
  color: #fff;
}

.layer90e2b-tile__tag {
  align-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--layer90e2b-gold);
  color: var(--layer90e2b-ink-on-accent);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layer90e2b-block__more {
  margin-top: 10px;
  text-align: center;
}

.layer90e2b-block__more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px dashed var(--layer90e2b-line);
  border-radius: var(--layer90e2b-radius-s);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--layer90e2b-khaki);
}

.layer90e2b-block__more a:hover,
.layer90e2b-block__more a:focus-visible {
  border-color: var(--layer90e2b-gold);
  color: var(--layer90e2b-gold);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   10. Player voices (testimonials)
   -------------------------------------------------------------------------- */
.layer90e2b-voices {
  margin-top: 28px;
  padding: 16px 14px 8px;
  border: 1px solid var(--layer90e2b-line-soft);
  border-radius: var(--layer90e2b-radius-m);
  background: rgba(18, 26, 43, 0.6);
}

.layer90e2b-voices__item {
  position: relative;
  padding: 12px 12px 12px 38px;
  border-bottom: 1px dashed var(--layer90e2b-line-soft);
}

.layer90e2b-voices__item:last-child {
  border-bottom: 0;
}

.layer90e2b-voices__item::before {
  content: "\201C";
  position: absolute;
  left: 6px;
  top: 4px;
  font-family: var(--layer90e2b-font-head);
  font-size: 40px;
  line-height: 1;
  color: var(--layer90e2b-orange);
  opacity: 0.85;
}

.layer90e2b-voices__text {
  font-size: 13.5px;
  color: var(--layer90e2b-paper);
}

.layer90e2b-voices__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--layer90e2b-faint);
}

.layer90e2b-voices__meter {
  position: relative;
  width: 74px;
  height: 5px;
  border-radius: 3px;
  background: var(--layer90e2b-line-soft);
  overflow: hidden;
  flex: none;
}

.layer90e2b-voices__meter i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--layer90e2b-orange), var(--layer90e2b-gold));
}

/* --------------------------------------------------------------------------
   11. Payment routes
   -------------------------------------------------------------------------- */
.layer90e2b-wallet {
  margin-top: 28px;
}

.layer90e2b-wallet__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.layer90e2b-wallet__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 10px;
  border: 1px solid var(--layer90e2b-line-soft);
  border-left: 3px solid var(--layer90e2b-coffee);
  border-radius: var(--layer90e2b-radius-s);
  background: rgba(34, 51, 80, 0.30);
}

.layer90e2b-wallet__cell svg {
  width: 20px;
  height: 20px;
  color: var(--layer90e2b-gold);
}

.layer90e2b-wallet__cell b {
  font-size: 12.5px;
  color: var(--layer90e2b-paper);
}

.layer90e2b-wallet__cell span {
  font-size: 11px;
  line-height: 1.5;
  color: var(--layer90e2b-muted);
}

.layer90e2b-wallet__q {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--layer90e2b-line);
  border-radius: var(--layer90e2b-radius-s);
  font-size: 12.5px;
  color: var(--layer90e2b-muted);
}

.layer90e2b-wallet__q b {
  color: var(--layer90e2b-khaki);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   12. Progress climb (achievements)
   -------------------------------------------------------------------------- */
.layer90e2b-climb {
  margin-top: 28px;
}

.layer90e2b-climb__row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--layer90e2b-line-soft);
}

.layer90e2b-climb__row:last-child {
  border-bottom: 0;
}

.layer90e2b-climb__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--layer90e2b-radius-xs);
  border: 1px solid var(--layer90e2b-line);
  background: rgba(255, 215, 0, 0.08);
  font-family: var(--layer90e2b-font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--layer90e2b-gold);
}

.layer90e2b-climb__body b {
  display: block;
  font-size: 13.5px;
  color: var(--layer90e2b-paper);
}

.layer90e2b-climb__body p {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--layer90e2b-muted);
}

.layer90e2b-climb__bar {
  position: relative;
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--layer90e2b-line-soft);
  overflow: hidden;
}

.layer90e2b-climb__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--layer90e2b-coffee), var(--layer90e2b-orange) 70%, var(--layer90e2b-gold));
}

/* --------------------------------------------------------------------------
   13. Readiness checklist
   -------------------------------------------------------------------------- */
.layer90e2b-ready {
  margin-top: 28px;
  padding: 15px 14px;
  border: 1px solid var(--layer90e2b-line-soft);
  border-radius: var(--layer90e2b-radius-m);
  background:
    linear-gradient(180deg, rgba(111, 78, 55, 0.22), transparent 60%),
    rgba(18, 26, 43, 0.6);
}

.layer90e2b-ready__item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 0;
}

.layer90e2b-ready__item svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--layer90e2b-gold);
}

.layer90e2b-ready__item p {
  font-size: 13px;
  color: var(--layer90e2b-paper);
}

.layer90e2b-ready__item p span {
  display: block;
  font-size: 12px;
  color: var(--layer90e2b-muted);
}

/* --------------------------------------------------------------------------
   14. Extended footer zone: shortcuts, brand note, directory, disclaimer
   -------------------------------------------------------------------------- */
.layer90e2b-xfoot {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 2px solid var(--layer90e2b-coffee);
}

.layer90e2b-xfoot h2 {
  margin: 0 0 4px;
  font-family: var(--layer90e2b-font-head);
  font-size: 19px;
  line-height: 1.3;
  color: var(--layer90e2b-paper);
}

.layer90e2b-xfoot__sub {
  font-size: 12.5px;
  color: var(--layer90e2b-faint);
}

.layer90e2b-shorts {
  display: flex;
  gap: 8px;
  margin: 13px calc(var(--layer90e2b-pad) * -1) 0;
  padding: 2px var(--layer90e2b-pad) 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

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

.layer90e2b-short {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--layer90e2b-radius-s);
  border: 1px solid var(--layer90e2b-line);
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.16), rgba(255, 215, 0, 0.06));
  color: var(--layer90e2b-paper);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.layer90e2b-short svg {
  width: 16px;
  height: 16px;
  color: var(--layer90e2b-orange);
}

.layer90e2b-short:hover,
.layer90e2b-short:focus-visible {
  border-color: var(--layer90e2b-gold);
  color: var(--layer90e2b-gold);
  transform: translateY(-1px);
}

.layer90e2b-xfoot__brand {
  margin-top: 14px;
  font-size: 13px;
  color: var(--layer90e2b-muted);
}

.layer90e2b-xfoot__brand b {
  color: var(--layer90e2b-khaki);
}

.layer90e2b-xfoot__directory {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px dashed var(--layer90e2b-line-soft);
}

.layer90e2b-xfoot__directory h3 {
  margin: 0 0 9px;
  font-family: var(--layer90e2b-font-head);
  font-size: 15px;
  color: var(--layer90e2b-khaki);
}

.layer90e2b-xfoot__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.layer90e2b-xfoot__cols a {
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--layer90e2b-paper);
  border-bottom: 1px dotted var(--layer90e2b-line-soft);
}

.layer90e2b-xfoot__cols a::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--layer90e2b-orange);
}

.layer90e2b-xfoot__cols a:hover,
.layer90e2b-xfoot__cols a:focus-visible {
  color: var(--layer90e2b-gold);
}

.layer90e2b-xfoot__legal {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(240, 230, 140, 0.28);
  border-radius: var(--layer90e2b-radius-s);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--layer90e2b-faint);
}

/* --------------------------------------------------------------------------
   15. Copyright bar
   -------------------------------------------------------------------------- */
.layer90e2b-foot {
  margin-top: 20px;
  padding: 14px var(--layer90e2b-pad) 8px;
  border-top: 1px solid var(--layer90e2b-coffee-soft);
  text-align: center;
}

.layer90e2b-foot__copy {
  font-size: 12px;
  color: var(--layer90e2b-muted);
}

.layer90e2b-foot__fine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--layer90e2b-faint);
}

.layer90e2b-foot__fine i {
  font-style: normal;
  padding: 2px 7px;
  border: 1px solid var(--layer90e2b-line-soft);
  border-radius: var(--layer90e2b-radius-xs);
}

/* --------------------------------------------------------------------------
   16. Fixed dock (5-role bottom navigation)
   -------------------------------------------------------------------------- */
.layer90e2b-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 92;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: var(--layer90e2b-dock-h);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 20, 34, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--layer90e2b-line);
}

.layer90e2b-dock__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  padding: 5px 2px 4px;
  border: 0;
  background: transparent;
  color: var(--layer90e2b-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--layer90e2b-radius-s);
  transition: color 0.18s ease, background 0.18s ease;
}

.layer90e2b-dock__item svg {
  width: 21px;
  height: 21px;
  transition: transform 0.18s ease;
}

.layer90e2b-dock__item:hover,
.layer90e2b-dock__item:focus-visible {
  color: var(--layer90e2b-gold);
  text-decoration: none;
}

.layer90e2b-dock__item:hover svg {
  transform: translateY(-1px);
}

/* Active role: contrast inversion plus the sliding notch below */
.layer90e2b-dock__item--active {
  background: linear-gradient(160deg, var(--layer90e2b-gold), #ffdf6e);
  color: var(--layer90e2b-ink-on-accent);
  font-weight: 800;
}

.layer90e2b-dock__item--active:hover {
  color: var(--layer90e2b-ink-on-accent);
}

.layer90e2b-dock__notch {
  position: absolute;
  top: -1px;
  left: 0;
  width: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--layer90e2b-orange), var(--layer90e2b-gold));
  transition: transform 0.3s cubic-bezier(0.33, 0.9, 0.3, 1);
  z-index: 2;
}

/* --------------------------------------------------------------------------
   17. Focus visibility and motion budget
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--layer90e2b-gold);
  outline-offset: 2px;
}

.layer90e2b-tile:focus-visible,
.layer90e2b-show__slide:focus-visible {
  outline-offset: 3px;
}

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

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

/* Small phones: tighten hero type only */
@media (max-width: 359px) {
  .layer90e2b-hero__title {
    font-size: 22px;
  }

  .layer90e2b-block__title {
    font-size: 18px;
  }

  .layer90e2b-tile__name {
    font-size: 10px;
  }
}

/* --------------------------------------------------------------------------
   18. Help pages: route rail, answers, and field notes
   -------------------------------------------------------------------------- */
.layer90e2b-help-hero {
  position: relative;
  padding: 18px 16px 20px;
  border-left: 4px solid var(--layer90e2b-orange);
  border-top: 1px solid var(--layer90e2b-line);
  border-right: 1px solid var(--layer90e2b-line-soft);
  border-bottom: 1px solid var(--layer90e2b-line-soft);
  background: linear-gradient(135deg, rgba(111, 78, 55, 0.48), rgba(27, 38, 59, 0.35));
  box-shadow: var(--layer90e2b-shadow);
}

.layer90e2b-help-hero__kicker {
  color: var(--layer90e2b-gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.layer90e2b-help-hero h1 {
  margin: 10px 0 10px;
  font-family: var(--layer90e2b-font-head);
  font-size: 25px;
  line-height: 1.2;
  color: var(--layer90e2b-paper);
  text-wrap: balance;
}

.layer90e2b-help-hero p {
  color: var(--layer90e2b-muted);
  font-size: 14px;
}

.layer90e2b-help-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.layer90e2b-help-hero__actions .layer90e2b-btn {
  flex: 1 1 145px;
}

.layer90e2b-help-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 7px 9px;
  border: 1px dashed var(--layer90e2b-line);
  color: var(--layer90e2b-khaki);
  font-size: 11.5px;
}

.layer90e2b-help-flag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--layer90e2b-gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.layer90e2b-route {
  position: relative;
  margin-top: 24px;
  padding-left: 18px;
}

.layer90e2b-route::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 9px;
  left: 5px;
  width: 2px;
  background: linear-gradient(180deg, var(--layer90e2b-gold), var(--layer90e2b-coffee), transparent);
}

.layer90e2b-route__step {
  position: relative;
  padding: 0 0 18px 14px;
}

.layer90e2b-route__step::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--layer90e2b-night);
  border-radius: 50%;
  background: var(--layer90e2b-orange);
  box-shadow: 0 0 0 1px var(--layer90e2b-orange);
}

.layer90e2b-route__step:last-child {
  padding-bottom: 0;
}

.layer90e2b-route__step b {
  display: block;
  color: var(--layer90e2b-paper);
  font-family: var(--layer90e2b-font-head);
  font-size: 16px;
  line-height: 1.3;
}

.layer90e2b-route__step span {
  display: block;
  margin-top: 3px;
  color: var(--layer90e2b-muted);
  font-size: 12.5px;
}

.layer90e2b-route__step em {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  border: 1px solid var(--layer90e2b-line-soft);
  color: var(--layer90e2b-faint);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layer90e2b-help-panel {
  margin-top: 25px;
  padding: 15px 14px;
  border-top: 2px solid var(--layer90e2b-coffee);
  background: rgba(18, 26, 43, 0.58);
}

.layer90e2b-help-panel h2,
.layer90e2b-help-section h2 {
  margin: 0 0 9px;
  color: var(--layer90e2b-paper);
  font-family: var(--layer90e2b-font-head);
  font-size: 20px;
  line-height: 1.28;
}

.layer90e2b-help-panel > p,
.layer90e2b-help-section > p {
  margin-top: 8px;
  color: var(--layer90e2b-muted);
  font-size: 13.5px;
}

.layer90e2b-help-section {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--layer90e2b-line-soft);
}

.layer90e2b-help-section__lead {
  padding: 10px 12px;
  border-left: 3px solid var(--layer90e2b-gold);
  background: rgba(255, 215, 0, 0.07);
  color: var(--layer90e2b-paper) !important;
}

.layer90e2b-checklist {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.layer90e2b-checklist__item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 9px;
  border: 1px solid var(--layer90e2b-line-soft);
  background: rgba(34, 51, 80, 0.34);
}

.layer90e2b-checklist__item::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--layer90e2b-line);
  color: var(--layer90e2b-gold);
  font-weight: 800;
}

.layer90e2b-checklist__item b {
  display: block;
  color: var(--layer90e2b-paper);
  font-size: 13px;
}

.layer90e2b-checklist__item span {
  display: block;
  margin-top: 2px;
  color: var(--layer90e2b-muted);
  font-size: 12px;
}

.layer90e2b-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.layer90e2b-help-actions .layer90e2b-btn {
  flex: 1 1 145px;
}

.layer90e2b-qa {
  margin-top: 13px;
}

.layer90e2b-qa details {
  border-bottom: 1px solid var(--layer90e2b-line-soft);
}

.layer90e2b-qa summary {
  position: relative;
  min-height: 48px;
  padding: 13px 25px 11px 0;
  cursor: pointer;
  color: var(--layer90e2b-paper);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.layer90e2b-qa summary::-webkit-details-marker {
  display: none;
}

.layer90e2b-qa summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 10px;
  color: var(--layer90e2b-orange);
  font-size: 20px;
  font-weight: 400;
}

.layer90e2b-qa details[open] summary::after {
  content: "-";
  color: var(--layer90e2b-gold);
}

.layer90e2b-qa details p {
  padding: 0 4px 13px 0;
  color: var(--layer90e2b-muted);
  font-size: 12.5px;
}

.layer90e2b-summary-band {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.layer90e2b-summary-band__item {
  padding: 11px 12px;
  border-right: 3px solid var(--layer90e2b-orange);
  background: linear-gradient(90deg, rgba(111, 78, 55, 0.28), rgba(34, 51, 80, 0.32));
}

.layer90e2b-summary-band__item b {
  display: block;
  color: var(--layer90e2b-khaki);
  font-size: 13px;
}

.layer90e2b-summary-band__item span {
  display: block;
  margin-top: 3px;
  color: var(--layer90e2b-muted);
  font-size: 12px;
}

/* Safety pages deliberately use a matrix instead of the how-to route rail. */
.layer90e2b-safety-lead {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--layer90e2b-line);
  background: rgba(111, 78, 55, 0.23);
}

.layer90e2b-safety-lead__signal {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--layer90e2b-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layer90e2b-safety-lead__signal i {
  width: 12px;
  height: 12px;
  border: 2px solid var(--layer90e2b-gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--layer90e2b-night);
}

.layer90e2b-safety-lead p {
  margin-top: 9px;
  color: var(--layer90e2b-paper);
  font-size: 13.5px;
}

.layer90e2b-risk-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.layer90e2b-risk-card {
  padding: 11px 12px;
  border-left: 4px solid var(--layer90e2b-orange);
  background: rgba(34, 51, 80, 0.42);
}

.layer90e2b-risk-card:nth-child(2) {
  border-left-color: var(--layer90e2b-gold);
}

.layer90e2b-risk-card:nth-child(3) {
  border-left-color: var(--layer90e2b-khaki);
}

.layer90e2b-risk-card b {
  display: block;
  color: var(--layer90e2b-paper);
  font-size: 13px;
}

.layer90e2b-risk-card span {
  display: block;
  margin-top: 3px;
  color: var(--layer90e2b-muted);
  font-size: 12px;
}

.layer90e2b-device-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.layer90e2b-device-list__row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--layer90e2b-line-soft);
}

.layer90e2b-device-list__row b {
  color: var(--layer90e2b-khaki);
  font-family: var(--layer90e2b-font-head);
  font-size: 14px;
}

.layer90e2b-device-list__row span {
  color: var(--layer90e2b-muted);
  font-size: 12.5px;
}

.layer90e2b-term-strip {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.layer90e2b-term-strip::-webkit-scrollbar {
  display: none;
}

.layer90e2b-term-strip__term {
  flex: 0 0 142px;
  padding: 10px;
  border-top: 3px solid var(--layer90e2b-gold);
  background: rgba(34, 51, 80, 0.40);
}

.layer90e2b-term-strip__term:nth-child(2) {
  border-top-color: var(--layer90e2b-orange);
}

.layer90e2b-term-strip__term:nth-child(3) {
  border-top-color: var(--layer90e2b-khaki);
}

.layer90e2b-term-strip__term b {
  display: block;
  color: var(--layer90e2b-paper);
  font-size: 12.5px;
}

.layer90e2b-term-strip__term span {
  display: block;
  margin-top: 4px;
  color: var(--layer90e2b-muted);
  font-size: 11.5px;
}

.layer90e2b-relationship {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--layer90e2b-line-soft);
  background: rgba(18, 26, 43, 0.62);
}

.layer90e2b-relationship__node {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid var(--layer90e2b-line-soft);
  color: var(--layer90e2b-paper);
  font-size: 12.5px;
}

.layer90e2b-relationship__node + .layer90e2b-relationship__node {
  margin-top: 6px;
}

.layer90e2b-relationship__node::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--layer90e2b-orange);
  transform: rotate(45deg);
}

.layer90e2b-relationship__arrow {
  display: block;
  padding: 3px 0 3px 12px;
  color: var(--layer90e2b-gold);
  font-size: 12px;
}

.layer90e2b-select {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.layer90e2b-select__choice {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--layer90e2b-line-soft);
  background: rgba(34, 51, 80, 0.32);
}

.layer90e2b-select__choice strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--layer90e2b-gold);
  color: var(--layer90e2b-ink-on-accent);
  font-size: 13px;
}

.layer90e2b-select__choice b {
  display: block;
  color: var(--layer90e2b-paper);
  font-size: 13px;
}

.layer90e2b-select__choice span {
  display: block;
  margin-top: 2px;
  color: var(--layer90e2b-muted);
  font-size: 12px;
}

.layer90e2b-safety-callout {
  margin-top: 14px;
  padding: 11px 12px;
  border-bottom: 2px solid var(--layer90e2b-orange);
  background: rgba(255, 140, 0, 0.08);
  color: var(--layer90e2b-paper);
  font-size: 13px;
}

@media (max-width: 359px) {
  .layer90e2b-help-hero h1 {
    font-size: 22px;
  }

  .layer90e2b-device-list__row {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 7px;
  }
}
