/* ==========================================================================
   x777 casino - interface stylesheet
   File: css/x777-casino-interface-bb0d8d.css
   Canvas: 320-430px mobile-first, centered phone frame on wide screens
   Prefix: every class uses shelld8de3-
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --shelld8de3-ink: #0F0F23;          /* deep midnight canvas */
  --shelld8de3-ink-deep: #090918;     /* page backdrop behind canvas */
  --shelld8de3-ink-soft: #171733;     /* resting panel */
  --shelld8de3-ink-raise: #1e1e40;    /* raised panel */
  --shelld8de3-line: #2c2c55;         /* hairline borders */
  --shelld8de3-wheat: #F5DEB3;        /* brand gold-wheat */
  --shelld8de3-wheat-hi: #ffe9bd;     /* hover wheat */
  --shelld8de3-cream: #FAF0E6;        /* body text */
  --shelld8de3-mist: #b7b1d6;         /* quiet secondary text */
  --shelld8de3-glow: rgba(245, 222, 179, 0.16);
  --shelld8de3-glow-soft: rgba(245, 222, 179, 0.07);
  --shelld8de3-r-s: 8px;
  --shelld8de3-r-m: 14px;
  --shelld8de3-r-l: 20px;
  --shelld8de3-gap: 10px;
  --shelld8de3-pad: 16px;
  --shelld8de3-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --shelld8de3-dock-h: 64px;
}

/* --------------------------------------------------------------------------
   2. Base canvas
   -------------------------------------------------------------------------- */
html {
  background: var(--shelld8de3-ink-deep);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.shelld8de3-skin {
  margin: 0 auto;
  max-width: 430px;                   /* phone canvas never grows past 430px */
  min-height: 100vh;
  background:
    radial-gradient(120% 52% at 50% -8%, var(--shelld8de3-glow-soft), transparent 62%),
    var(--shelld8de3-ink);
  color: var(--shelld8de3-cream);
  font-family: var(--shelld8de3-font);
  font-size: 15px;
  line-height: 1.62;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
}

@media (min-width: 431px) {
  body.shelld8de3-skin {
    border-left: 1px solid var(--shelld8de3-line);
    border-right: 1px solid var(--shelld8de3-line);
  }
}

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

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

a {
  color: var(--shelld8de3-wheat);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover { color: var(--shelld8de3-wheat-hi); }

h1, h2, h3 {
  font-family: var(--shelld8de3-font);
  color: var(--shelld8de3-wheat);
  margin: 0 0 10px;
  line-height: 1.28;
  letter-spacing: 0.1px;
}

h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }

p { margin: 0 0 12px; }

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

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

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

::selection {
  background: var(--shelld8de3-wheat);
  color: var(--shelld8de3-ink);
}

/* Utility: visually hidden but announced */
.shelld8de3-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.shelld8de3-skip {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--shelld8de3-wheat);
  color: var(--shelld8de3-ink);
  font-weight: 700;
  border-radius: var(--shelld8de3-r-s);
  transition: top 0.25s ease;
}

.shelld8de3-skip:focus { top: 10px; }

/* --------------------------------------------------------------------------
   3. Fixed header: action row + centered identity bar
   -------------------------------------------------------------------------- */
.shelld8de3-head {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  background: rgba(15, 15, 35, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--shelld8de3-line);
}

/* utility row: menu on the left, register/login on the right */
.shelld8de3-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 4px var(--shelld8de3-pad) 4px 10px;
}

.shelld8de3-burger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: var(--shelld8de3-r-s);
  color: var(--shelld8de3-wheat);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.shelld8de3-burger:hover,
.shelld8de3-burger:focus-visible {
  background: var(--shelld8de3-glow);
}

.shelld8de3-burger-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.shelld8de3-burger-bar {
  height: 2px;
  border-radius: 2px;
  background: var(--shelld8de3-wheat);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.shelld8de3-head-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* register: solid wheat pill, login: quiet outline pill */
.shelld8de3-btn-register,
.shelld8de3-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease,
    border-color 0.25s ease;
}

.shelld8de3-btn-register {
  background: linear-gradient(135deg, var(--shelld8de3-wheat-hi), var(--shelld8de3-wheat));
  color: var(--shelld8de3-ink);
  box-shadow: 0 4px 16px var(--shelld8de3-glow);
}

.shelld8de3-btn-register:hover {
  transform: translateY(-1px);
  color: #000;
}

.shelld8de3-btn-login {
  border: 1px solid var(--shelld8de3-wheat);
  color: var(--shelld8de3-wheat);
}

.shelld8de3-btn-login:hover {
  background: var(--shelld8de3-glow);
}

/* centered identity strip below the action row */
.shelld8de3-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px var(--shelld8de3-pad) 10px;
}

.shelld8de3-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--shelld8de3-r-s);
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--shelld8de3-line), 0 3px 10px rgba(0, 0, 0, 0.45);
}

.shelld8de3-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--shelld8de3-wheat);
  text-transform: lowercase;
}

.shelld8de3-brand-name b {
  font-weight: 800;
  color: var(--shelld8de3-cream);
}

/* --------------------------------------------------------------------------
   4. Stacked overlay menu
   -------------------------------------------------------------------------- */
.shelld8de3-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(5, 5, 15, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.shelld8de3-menu-backdrop--on {
  opacity: 1;
  pointer-events: auto;
}

.shelld8de3-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 100%;
  max-width: 430px;
  max-height: 100vh;
  overflow-y: auto;
  z-index: 95;
  padding: 18px var(--shelld8de3-pad) 26px;
  background: linear-gradient(180deg, var(--shelld8de3-ink-raise), var(--shelld8de3-ink) 45%);
  border-bottom: 1px solid var(--shelld8de3-line);
  border-radius: 0 0 var(--shelld8de3-r-l) var(--shelld8de3-r-l);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.shelld8de3-menu--open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.shelld8de3-menu-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--shelld8de3-mist);
  padding: 4px 2px 10px;
}

.shelld8de3-menu-list {
  display: flex;
  flex-direction: column;      /* stacked overlay entries */
  gap: 4px;
}

.shelld8de3-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--shelld8de3-r-m);
  color: var(--shelld8de3-cream);
  font-size: 15px;
  font-weight: 600;
  background: var(--shelld8de3-glow-soft);
  transition: background 0.25s ease, color 0.25s ease;
}

.shelld8de3-menu-link em {
  font-style: normal;
  font-size: 11px;
  color: var(--shelld8de3-mist);
}

.shelld8de3-menu-link:hover {
  background: var(--shelld8de3-glow);
  color: var(--shelld8de3-wheat);
}

/* active page: contrast inversion */
.shelld8de3-menu-link--on,
.shelld8de3-menu-link--on em {
  background: var(--shelld8de3-wheat);
  color: var(--shelld8de3-ink);
  font-weight: 800;
}

.shelld8de3-menu-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--shelld8de3-line);
  border-radius: var(--shelld8de3-r-m);
  font-size: 13px;
  color: var(--shelld8de3-mist);
}

.shelld8de3-menu-note a,
.shelld8de3-menu-note button {
  font-weight: 700;
  color: var(--shelld8de3-wheat);
  padding: 0;
  font-size: 13px;
}

/* body scroll lock while menu is open */
body.shelld8de3-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   5. Main column rhythm
   -------------------------------------------------------------------------- */
.shelld8de3-main {
  padding: 118px var(--shelld8de3-pad) calc(var(--shelld8de3-dock-h) + 30px + env(safe-area-inset-bottom, 0px));
}

.shelld8de3-sect {
  margin: 26px 0;
}

.shelld8de3-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--shelld8de3-mist);
}

.shelld8de3-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--shelld8de3-wheat);
}

.shelld8de3-sect-lead {
  color: var(--shelld8de3-mist);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   6. Hero carousel
   -------------------------------------------------------------------------- */
.shelld8de3-hero {
  margin: 4px calc(var(--shelld8de3-pad) * -1) 6px;
}

.shelld8de3-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--shelld8de3-r-l);
  background: var(--shelld8de3-ink-soft);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.shelld8de3-slide {
  position: relative;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.shelld8de3-slide--on {
  opacity: 1;
  pointer-events: auto;
}

.shelld8de3-slide-img {
  width: 100%;
  aspect-ratio: 10 / 5;
  object-fit: cover;
}

.shelld8de3-slide-cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--shelld8de3-r-m);
  background: linear-gradient(90deg, rgba(9, 9, 24, 0.88), rgba(9, 9, 24, 0.35));
}

.shelld8de3-slide-txt h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.shelld8de3-slide-txt p {
  margin: 0;
  font-size: 11.5px;
  color: var(--shelld8de3-mist);
  max-width: 200px;
}

.shelld8de3-slide-cta {
  flex: none;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--shelld8de3-wheat-hi), var(--shelld8de3-wheat));
  color: var(--shelld8de3-ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 18px var(--shelld8de3-glow);
  transition: transform 0.2s ease, filter 0.25s ease;
}

.shelld8de3-slide-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.shelld8de3-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(9, 9, 24, 0.62);
  color: var(--shelld8de3-cream);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease;
}

.shelld8de3-hero-arrow:hover {
  background: var(--shelld8de3-wheat);
  color: var(--shelld8de3-ink);
}

.shelld8de3-hero-arrow--prev { left: 8px; }
.shelld8de3-hero-arrow--next { right: 8px; }

.shelld8de3-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 2px;
}

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

.shelld8de3-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--shelld8de3-line);
  transition: background 0.25s ease, width 0.25s ease;
}

.shelld8de3-dot--on::after {
  width: 20px;
  background: var(--shelld8de3-wheat);
}

/* --------------------------------------------------------------------------
   7. Intro block + chips
   -------------------------------------------------------------------------- */
.shelld8de3-intro {
  padding: 14px 0 4px;
}

.shelld8de3-intro .shelld8de3-sect-lead {
  color: var(--shelld8de3-cream);
  font-size: 14.5px;
}

.shelld8de3-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.shelld8de3-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--shelld8de3-line);
  border-radius: 999px;
  background: var(--shelld8de3-glow-soft);
  color: var(--shelld8de3-mist);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.shelld8de3-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--shelld8de3-wheat);
}

/* --------------------------------------------------------------------------
   8. Game grid: small tiles with wide feature tiles
   -------------------------------------------------------------------------- */
.shelld8de3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 4 columns at 320px */
  gap: var(--shelld8de3-gap);
}

@media (min-width: 400px) {
  .shelld8de3-grid { grid-template-columns: repeat(5, 1fr); }  /* 5 columns on wider phones */
}

.shelld8de3-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: var(--shelld8de3-r-m);
  background: var(--shelld8de3-ink-soft);
  border: 1px solid transparent;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.shelld8de3-tile:hover {
  border-color: var(--shelld8de3-wheat);
  background: var(--shelld8de3-ink-raise);
  transform: translateY(-2px);
}

.shelld8de3-tile-art {
  display: block;
  border-radius: var(--shelld8de3-r-s);
  overflow: hidden;
  background: var(--shelld8de3-ink-deep);
}

.shelld8de3-tile-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.shelld8de3-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--shelld8de3-cream);
  min-height: 30px;
}

/* wide feature tile: the "big card" half of the mix */
.shelld8de3-tile--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 10px;
  padding: 8px;
  background: linear-gradient(120deg, var(--shelld8de3-ink-raise), var(--shelld8de3-ink-soft));
}

.shelld8de3-tile--wide .shelld8de3-tile-art { flex: none; width: 34%; }

.shelld8de3-tile--wide .shelld8de3-tile-name {
  font-size: 12.5px;
  -webkit-line-clamp: 3;
  min-height: 0;
}

/* --------------------------------------------------------------------------
   9. Content panels (security / features / tricks / checklist)
   -------------------------------------------------------------------------- */
.shelld8de3-panel {
  padding: 16px;
  border-radius: var(--shelld8de3-r-l);
  background: var(--shelld8de3-ink-soft);
  border: 1px solid var(--shelld8de3-line);
}

.shelld8de3-qa {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shelld8de3-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--shelld8de3-wheat);
  border-radius: 0 var(--shelld8de3-r-m) var(--shelld8de3-r-m) 0;
  background: var(--shelld8de3-glow-soft);
  color: var(--shelld8de3-cream);
  font-size: 14px;
}

.shelld8de3-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shelld8de3-point {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--shelld8de3-r-m);
  background: var(--shelld8de3-glow-soft);
  font-size: 14px;
  color: var(--shelld8de3-cream);
}

.shelld8de3-point b,
.shelld8de3-feat-title,
.shelld8de3-step b { color: var(--shelld8de3-wheat); }

.shelld8de3-point::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--shelld8de3-wheat);
  opacity: 0.85;
}

.shelld8de3-featgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--shelld8de3-gap);
}

@media (max-width: 359px) {
  .shelld8de3-featgrid { grid-template-columns: 1fr; }
}

.shelld8de3-feat {
  padding: 12px;
  border-radius: var(--shelld8de3-r-m);
  background: var(--shelld8de3-glow-soft);
  border: 1px solid var(--shelld8de3-line);
}

.shelld8de3-feat-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.shelld8de3-feat-text {
  font-size: 12.5px;
  color: var(--shelld8de3-mist);
  line-height: 1.5;
}

.shelld8de3-steps {
  counter-reset: shelld8de3-step;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shelld8de3-step {
  counter-increment: shelld8de3-step;
  position: relative;
  padding: 11px 12px 11px 44px;
  border-radius: var(--shelld8de3-r-m);
  background: var(--shelld8de3-glow-soft);
  font-size: 14px;
}

.shelld8de3-step::before {
  content: counter(shelld8de3-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--shelld8de3-wheat);
  color: var(--shelld8de3-ink);
  font-size: 12px;
  font-weight: 800;
}

.shelld8de3-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shelld8de3-checkitem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--shelld8de3-line);
  border-radius: var(--shelld8de3-r-m);
  background: var(--shelld8de3-glow-soft);
  font-size: 14px;
}

.shelld8de3-checkitem::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  border: 2px solid var(--shelld8de3-wheat);
  background:
    linear-gradient(var(--shelld8de3-wheat), var(--shelld8de3-wheat)) center / 8px 8px no-repeat;
}

/* --------------------------------------------------------------------------
   10. Extended footer (homepage only)
   -------------------------------------------------------------------------- */
.shelld8de3-ext {
  margin: 30px calc(var(--shelld8de3-pad) * -1) 0;
  padding: 22px var(--shelld8de3-pad) 8px;
  border-top: 1px solid var(--shelld8de3-line);
  background: linear-gradient(180deg, var(--shelld8de3-ink-raise), var(--shelld8de3-ink));
}

.shelld8de3-ext h3 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--shelld8de3-mist);
  margin: 18px 0 10px;
}

.shelld8de3-ext h3:first-child { margin-top: 0; }

/* horizontal promo shortcuts */
.shelld8de3-promorow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shelld8de3-promopill {
  flex: none;
  scroll-snap-align: start;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--shelld8de3-wheat);
  color: var(--shelld8de3-wheat);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.shelld8de3-promopill:hover {
  background: var(--shelld8de3-wheat);
  color: var(--shelld8de3-ink);
}

.shelld8de3-promopill--solid {
  background: var(--shelld8de3-wheat);
  color: var(--shelld8de3-ink);
}

.shelld8de3-promopill--solid:hover {
  background: var(--shelld8de3-wheat-hi);
  color: #000;
}

.shelld8de3-brandnote {
  font-size: 13.5px;
  color: var(--shelld8de3-mist);
}

.shelld8de3-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

@media (max-width: 359px) {
  .shelld8de3-directory { grid-template-columns: 1fr; }
}

.shelld8de3-directory a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--shelld8de3-r-s);
  background: var(--shelld8de3-glow-soft);
  color: var(--shelld8de3-cream);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.shelld8de3-directory a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--shelld8de3-wheat);
  flex: none;
}

.shelld8de3-directory a:hover {
  background: var(--shelld8de3-glow);
  color: var(--shelld8de3-wheat);
}

.shelld8de3-partners {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
}

.shelld8de3-partner {
  flex: none;
  width: 64px;
  height: 30px;
  border-radius: 6px;
  object-fit: contain;
  filter: grayscale(0.4) opacity(0.85);
  transition: filter 0.25s ease;
}

.shelld8de3-partner:hover { filter: none; }

.shelld8de3-disclaimer {
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px dashed var(--shelld8de3-line);
  border-radius: var(--shelld8de3-r-m);
  font-size: 12px;
  color: var(--shelld8de3-mist);
}

/* --------------------------------------------------------------------------
   11. Universal footer
   -------------------------------------------------------------------------- */
.shelld8de3-foot {
  padding: 16px var(--shelld8de3-pad) 8px;
  text-align: center;
  font-size: 12px;
  color: var(--shelld8de3-mist);
  border-top: 1px solid var(--shelld8de3-line);
  margin: 20px calc(var(--shelld8de3-pad) * -1) 0;
}

/* --------------------------------------------------------------------------
   12. Mobile bottom dock: center-raised, borderless symbols
   -------------------------------------------------------------------------- */
.shelld8de3-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, 1fr);
  align-items: end;
  min-height: calc(var(--shelld8de3-dock-h) + env(safe-area-inset-bottom, 0px));
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(21, 21, 46, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--shelld8de3-line);
}

.shelld8de3-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px;
  border-radius: var(--shelld8de3-r-m);
  color: var(--shelld8de3-mist);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.25s ease, background 0.25s ease;
}

.shelld8de3-dock-item svg {
  width: 22px;
  height: 22px;
  display: block;
}

.shelld8de3-dock-item:hover {
  color: var(--shelld8de3-wheat);
}

/* current page: contrast inversion */
.shelld8de3-dock-item--on {
  background: var(--shelld8de3-wheat);
  color: var(--shelld8de3-ink);
}

/* raised center promo button */
.shelld8de3-dock-raised {
  position: relative;
  transform: translateY(-16px);
  min-height: 56px;
  gap: 2px;
  color: var(--shelld8de3-ink);
  background: linear-gradient(135deg, var(--shelld8de3-wheat-hi), var(--shelld8de3-wheat));
  border-radius: var(--shelld8de3-r-l);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 0 4px var(--shelld8de3-ink);
  font-size: 10.5px;
}

.shelld8de3-dock-raised svg { width: 24px; height: 24px; }

.shelld8de3-dock-raised:hover {
  color: #000;
  filter: brightness(1.05);
}

/* --------------------------------------------------------------------------
   13. Restrained reveal motion (only when JS is present)
   -------------------------------------------------------------------------- */
.shelld8de3-js .shelld8de3-rvl {
  opacity: 0;
  transform: translateY(14px);
}

.shelld8de3-js .shelld8de3-rvl-on {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .shelld8de3-js .shelld8de3-rvl {
    opacity: 1;
    transform: none;
  }
}
