/* ==========================================================================
   n777ua.homes - shell-adaptive-14dd51.css
   Mobile-first stylesheet for a 320-430px phone canvas.
   Design voice: petrol-dark casino hub, gold/violet accents, poster-size
   headings over narrow body text, pill buttons with square cards,
   compact square game tiles, color-only state feedback.
   Every class and variable carries the view4dd51- prefix.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --view4dd51-bg: #212F3D;            /* deep petrol page background */
  --view4dd51-bg-deep: #16212b;       /* darker stage under the canvas */
  --view4dd51-panel: #495057;         /* slate structural panel */
  --view4dd51-panel-soft: #3d4750;    /* pressed slate variant */
  --view4dd51-gold: #DAA520;          /* primary accent */
  --view4dd51-gold-soft: #b8871a;     /* darker gold for borders */
  --view4dd51-violet: #9400D3;        /* deep violet accent */
  --view4dd51-orchid: #9932CC;        /* orchid accent */
  --view4dd51-coral: #F08080;         /* coral signal color */
  --view4dd51-ink: #f6f1e7;           /* warm off-white text */
  --view4dd51-ink-dim: rgba(246, 241, 231, 0.74);
  --view4dd51-ink-faint: rgba(246, 241, 231, 0.52);
  --view4dd51-line: rgba(218, 165, 32, 0.30);
  --view4dd51-line-soft: rgba(246, 241, 231, 0.12);
  --view4dd51-shadow: 0 10px 26px rgba(5, 10, 15, 0.55);

  /* geometry */
  --view4dd51-canvas: 430px;          /* phone canvas width */
  --view4dd51-top-h: 56px;            /* fixed brand bar height */
  --view4dd51-dock-h: 60px;           /* fixed bottom dock height */
  --view4dd51-r-btn: 999px;           /* pill radius for buttons */
  --view4dd51-r-card: 6px;            /* square-leaning card radius */
  --view4dd51-r-tile: 5px;            /* game tile radius */
  --view4dd51-pad: 14px;              /* standard gutter */

  /* type */
  --view4dd51-font-poster: "Arial Black", "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --view4dd51-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--view4dd51-bg-deep);
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  max-width: 430px;                    /* the phone canvas itself */
  min-height: 100vh;
  background: var(--view4dd51-bg);
  color: var(--view4dd51-ink);
  font-family: var(--view4dd51-font-body);
  font-size: 14px;
  font-stretch: 92%;                   /* narrow body reading voice */
  letter-spacing: 0.005em;
  line-height: 1.62;
  overflow-x: hidden;
}

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

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

a { color: var(--view4dd51-gold); text-decoration: none; }
a:hover { color: var(--view4dd51-coral); }

:focus-visible {
  outline: 2px solid var(--view4dd51-gold);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--view4dd51-orchid); color: #fff; }

/* Wide screens keep the centered phone canvas. */
@media (min-width: 431px) {
  body {
    border-left: 1px solid var(--view4dd51-line);
    border-right: 1px solid var(--view4dd51-line);
    box-shadow: var(--view4dd51-shadow);
  }
}

/* ==========================================================================
   1. Top brand bar (fixed, compact)
   ========================================================================== */
.view4dd51-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  max-width: 430px;                    /* stay inside the phone canvas */
  margin: 0 auto;
  height: var(--view4dd51-top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, #1b2833 0%, #182430 100%);
  border-bottom: 1px solid var(--view4dd51-line);
}

/* Brand zone: logo image + name only. */
.view4dd51-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.view4dd51-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--view4dd51-line);
  object-fit: cover;
  flex: none;
  background: #0f1720;
}

.view4dd51-brandname {
  font-family: var(--view4dd51-font-poster);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--view4dd51-gold);
  white-space: nowrap;
}

/* Action zone: register / login / menu trigger. */
.view4dd51-topacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.view4dd51-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: var(--view4dd51-r-btn);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.view4dd51-btn--gold {
  background: linear-gradient(180deg, #e8b52c 0%, var(--view4dd51-gold) 100%);
  color: #1d1502;
  box-shadow: 0 3px 0 var(--view4dd51-gold-soft);
}

.view4dd51-btn--gold:active { background: var(--view4dd51-gold-soft); }

.view4dd51-btn--ghost {
  border: 1px solid var(--view4dd51-line);
  color: var(--view4dd51-ink);
  background: rgba(148, 0, 211, 0.10);
}

.view4dd51-btn--ghost:active {
  background: rgba(148, 0, 211, 0.32);
  border-color: var(--view4dd51-orchid);
}

/* Menu trigger: three rail bars, turns gold while open. */
.view4dd51-menubtn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--view4dd51-line);
  border-radius: 10px;
  background: rgba(246, 241, 231, 0.05);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.view4dd51-menubtn span {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--view4dd51-gold);
  transition: background-color 0.18s ease;
}

.view4dd51-menubtn:active {
  border-color: var(--view4dd51-orchid);
  background: rgba(148, 0, 211, 0.28);
}

.view4dd51-topbar .view4dd51-btn--register { padding: 7px 12px; }
.view4dd51-topbar .view4dd51-btn--login { padding: 7px 11px; }

/* ==========================================================================
   2. Slide-up route panel (bottom sheet)
   ========================================================================== */
.view4dd51-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 13, 18, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.view4dd51-scrim.view4dd51-scrim--on { opacity: 1; visibility: visible; }

.view4dd51-routes {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  max-width: 430px;
  margin: 0 auto;
  background: #182430;
  border-top: 2px solid var(--view4dd51-gold);
  border-radius: 18px 18px 0 0;
  padding: 14px var(--view4dd51-pad) calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateY(103%);
  transition: transform 0.26s ease;
  box-shadow: 0 -12px 30px rgba(5, 10, 15, 0.6);
}

.view4dd51-routes--open { transform: translateY(0); }

.view4dd51-routes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.view4dd51-routes-title {
  margin: 0;
  font-family: var(--view4dd51-font-poster);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--view4dd51-gold);
}

.view4dd51-routes-close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--view4dd51-ink-dim);
  font-size: 20px;
  line-height: 1;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.view4dd51-routes-close:active { color: var(--view4dd51-coral); background: rgba(240, 128, 128, 0.12); }

.view4dd51-routegroup { margin-top: 10px; }

.view4dd51-routegroup-tag {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--view4dd51-orchid);
}

.view4dd51-routelist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.view4dd51-routelist a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--view4dd51-line-soft);
  border-radius: var(--view4dd51-r-card);
  background: rgba(73, 80, 87, 0.35);
  color: var(--view4dd51-ink);
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.view4dd51-routelist a:active {
  background: rgba(218, 165, 32, 0.18);
  border-color: var(--view4dd51-gold);
  color: var(--view4dd51-gold);
}

.view4dd51-routelist a.view4dd51-route--now {
  border-color: var(--view4dd51-gold);
  color: var(--view4dd51-gold);
  background: rgba(218, 165, 32, 0.10);
}

/* ==========================================================================
   3. Main column
   ========================================================================== */
.view4dd51-main {
  padding: calc(var(--view4dd51-top-h) + 12px) var(--view4dd51-pad)
           calc(var(--view4dd51-dock-h) + 30px + env(safe-area-inset-bottom, 0px));
}

.view4dd51-section { margin-top: 26px; }

.view4dd51-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--view4dd51-orchid);
}

.view4dd51-kicker::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--view4dd51-gold);
}

/* Poster voice for H-levels; each page owns exactly one H1. */
.view4dd51-h1,
h1.view4dd51-h1 {
  margin: 0 0 10px;
  font-family: var(--view4dd51-font-poster);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--view4dd51-ink);
}

.view4dd51-h1 em {
  font-style: normal;
  color: var(--view4dd51-gold);
}

.view4dd51-h2,
h2.view4dd51-h2 {
  margin: 0 0 8px;
  font-family: var(--view4dd51-font-poster);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--view4dd51-ink);
}

.view4dd51-h2 b {
  font-weight: 900;
  color: var(--view4dd51-gold);
}

.view4dd51-h3,
h3.view4dd51-h3 {
  margin: 0 0 6px;
  font-family: var(--view4dd51-font-poster);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--view4dd51-orchid);
}

.view4dd51-lede {
  margin: 0 0 12px;
  color: var(--view4dd51-ink-dim);
  font-size: 13.5px;
}

.view4dd51-copy { margin: 0 0 10px; color: var(--view4dd51-ink-dim); }
.view4dd51-copy strong { color: var(--view4dd51-ink); font-weight: 700; }
.view4dd51-copy a { border-bottom: 1px solid var(--view4dd51-line); }

/* ==========================================================================
   4. Hero
   ========================================================================== */
.view4dd51-hero {
  position: relative;
  margin-top: 4px;
  padding: 16px 14px;
  border: 1px solid var(--view4dd51-line);
  border-radius: var(--view4dd51-r-card);
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(148, 0, 211, 0.38) 0%, transparent 58%),
    radial-gradient(90% 70% at 0% 110%, rgba(218, 165, 32, 0.16) 0%, transparent 60%),
    #1b2833;
  overflow: hidden;
}

.view4dd51-hero::after {
  content: "";
  position: absolute;
  top: 10px;
  right: -30px;
  width: 110px;
  height: 110px;
  border: 2px solid rgba(218, 165, 32, 0.20);
  border-radius: 50%;
  pointer-events: none;
}

.view4dd51-ctarow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.view4dd51-ctarow .view4dd51-btn { min-height: 44px; }

.view4dd51-btn--violet {
  background: linear-gradient(180deg, var(--view4dd51-orchid) 0%, var(--view4dd51-violet) 100%);
  color: #f6f1e7;
  box-shadow: 0 3px 0 #5c0a85;
}

.view4dd51-btn--violet:active { background: var(--view4dd51-violet); }

.view4dd51-btn--quiet {
  border: 1px solid var(--view4dd51-line-soft);
  color: var(--view4dd51-ink-dim);
}

.view4dd51-btn--quiet:active {
  color: var(--view4dd51-gold);
  border-color: var(--view4dd51-gold);
}

/* Fact strip: three compact cells under the hero. */
.view4dd51-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.view4dd51-facts li {
  padding: 8px 6px;
  text-align: center;
  border: 1px solid var(--view4dd51-line-soft);
  border-radius: var(--view4dd51-r-card);
  background: rgba(73, 80, 87, 0.30);
}

.view4dd51-facts b {
  display: block;
  font-family: var(--view4dd51-font-poster);
  font-size: 16px;
  font-weight: 900;
  color: var(--view4dd51-gold);
  line-height: 1.1;
}

.view4dd51-facts span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--view4dd51-ink-faint);
}

/* ==========================================================================
   5. Banner carousel
   ========================================================================== */
.view4dd51-carousel {
  position: relative;
  margin-top: 14px;
  border: 1px solid var(--view4dd51-line);
  border-radius: var(--view4dd51-r-card);
  background: #101922;
  overflow: hidden;
}

.view4dd51-track {
  display: flex;
  transition: transform 0.32s ease;
}

.view4dd51-slide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  padding: 0;
}

.view4dd51-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.view4dd51-carousel-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 14, 19, 0.82) 100%);
}

.view4dd51-dots {
  display: flex;
  gap: 7px;
}

.view4dd51-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--view4dd51-gold);
  background: transparent;
  padding: 0;
  transition: background-color 0.18s ease;
}

.view4dd51-dot--on { background: var(--view4dd51-gold); }

.view4dd51-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--view4dd51-line);
  color: var(--view4dd51-gold);
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 33, 43, 0.78);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.view4dd51-arrow:active {
  background: var(--view4dd51-gold);
  color: #1d1502;
  border-color: var(--view4dd51-gold);
}

.view4dd51-arrows { display: flex; gap: 6px; }

/* ==========================================================================
   6. Game shelves
   ========================================================================== */
.view4dd51-shelfhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.view4dd51-shelfcount {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--view4dd51-ink-faint);
}

.view4dd51-shelf {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--view4dd51-line-soft);
}

/* Compact square-tile catalog grid: 4 columns at 320px. */
.view4dd51-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
}

@media (min-width: 375px) {
  .view4dd51-grid { gap: 8px; }
}

/* 5 columns on the wider half of the phone band. */
@media (min-width: 402px) {
  .view4dd51-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.view4dd51-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--view4dd51-line-soft);
  border-radius: var(--view4dd51-r-tile);
  background: #1b2833;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.view4dd51-tile:active {
  background: rgba(218, 165, 32, 0.14);
  border-color: var(--view4dd51-gold);
}

.view4dd51-tile-th {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: #0f1720;
}

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

.view4dd51-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
  font-size: 10.5px;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--view4dd51-ink);
  word-break: break-word;
}

.view4dd51-tile:active .view4dd51-tile-name { color: var(--view4dd51-gold); }

/* Small "hot" pip pinned to the corner of a trending tile. */
.view4dd51-pip {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(15, 23, 32, 0.78);
  border: 1px solid rgba(240, 128, 128, 0.55);
  color: var(--view4dd51-coral);
  font-size: 8.5px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ==========================================================================
   7. Feature modules after the shelves
   ========================================================================== */
.view4dd51-module {
  margin-top: 26px;
  padding: 14px;
  border: 1px solid var(--view4dd51-line-soft);
  border-radius: var(--view4dd51-r-card);
  background: rgba(73, 80, 87, 0.22);
}

.view4dd51-module--gold { border-color: var(--view4dd51-line); }

/* Milestone rail (achievement module). */
.view4dd51-rail {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.view4dd51-rail li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--view4dd51-line-soft);
  border-radius: var(--view4dd51-r-card);
  background: #1b2833;
}

.view4dd51-rail-badge {
  align-self: center;
  text-align: center;
  padding: 6px 2px;
  border-radius: 8px;
  background: rgba(148, 0, 211, 0.22);
  border: 1px solid var(--view4dd51-orchid);
}

.view4dd51-rail-badge b {
  display: block;
  font-family: var(--view4dd51-font-poster);
  font-size: 14px;
  color: var(--view4dd51-gold);
  line-height: 1.1;
}

.view4dd51-rail-badge span {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--view4dd51-ink-faint);
}

.view4dd51-rail h3 { margin: 0 0 3px; }
.view4dd51-rail p { margin: 0; font-size: 12.5px; color: var(--view4dd51-ink-dim); }

/* Offer rows (promotion module). */
.view4dd51-offers {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.view4dd51-offers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--view4dd51-line-soft);
  border-left: 3px solid var(--view4dd51-gold);
  border-radius: var(--view4dd51-r-card);
  background: #1b2833;
}

.view4dd51-offers li:nth-child(even) { border-left-color: var(--view4dd51-orchid); }

.view4dd51-offer-name {
  display: block;
  font-weight: 700;
  color: var(--view4dd51-ink);
  font-size: 13px;
}

.view4dd51-offer-note {
  display: block;
  font-size: 11.5px;
  color: var(--view4dd51-ink-faint);
}

.view4dd51-offer-cta {
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: var(--view4dd51-r-btn);
  border: 1px solid var(--view4dd51-line);
  color: var(--view4dd51-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(218, 165, 32, 0.08);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.view4dd51-offer-cta:active { background: var(--view4dd51-gold); color: #1d1502; }

/* Step ladder (how-to module). */
.view4dd51-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: view4dd51-step;
}

.view4dd51-steps li {
  position: relative;
  counter-increment: view4dd51-step;
  padding: 10px 12px 10px 44px;
  border: 1px solid var(--view4dd51-line-soft);
  border-radius: var(--view4dd51-r-card);
  background: #1b2833;
  font-size: 12.5px;
  color: var(--view4dd51-ink-dim);
}

.view4dd51-steps li::before {
  content: counter(view4dd51-step, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 10px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(148, 0, 211, 0.26);
  border: 1px solid var(--view4dd51-orchid);
  color: var(--view4dd51-gold);
  font-family: var(--view4dd51-font-poster);
  font-size: 11px;
  font-weight: 900;
}

.view4dd51-steps b { color: var(--view4dd51-ink); }

/* Comparison rows (weighing module). */
.view4dd51-weigh {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.view4dd51-weigh li {
  padding: 10px 12px;
  border: 1px solid var(--view4dd51-line-soft);
  border-radius: var(--view4dd51-r-card);
  background: #1b2833;
}

.view4dd51-weigh h3 { margin: 0 0 3px; color: var(--view4dd51-gold); }

.view4dd51-weigh .view4dd51-weigh-q {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--view4dd51-ink-faint);
}

.view4dd51-weigh p { margin: 0; font-size: 12.5px; color: var(--view4dd51-ink-dim); }

/* ==========================================================================
   8. Extended footer (homepage only)
   ========================================================================== */
.view4dd51-xfoot {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 2px solid var(--view4dd51-gold);
}

.view4dd51-xfoot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.view4dd51-xfoot-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--view4dd51-line);
  flex: none;
  object-fit: cover;
}

.view4dd51-xfoot-brandname {
  font-family: var(--view4dd51-font-poster);
  font-size: 17px;
  font-weight: 900;
  color: var(--view4dd51-gold);
}

/* Two-column page directory. */
.view4dd51-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.view4dd51-directory a {
  display: block;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--view4dd51-line-soft);
  border-radius: var(--view4dd51-r-card);
  background: rgba(73, 80, 87, 0.28);
  color: var(--view4dd51-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.view4dd51-directory a:active {
  background: rgba(218, 165, 32, 0.16);
  border-color: var(--view4dd51-gold);
  color: var(--view4dd51-gold);
}

.view4dd51-directory a small {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--view4dd51-ink-faint);
}

/* Promo fast tracks: pill group of six short actions. */
.view4dd51-fasttracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.view4dd51-fasttracks li { min-width: 0; }

.view4dd51-fast {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--view4dd51-r-btn);
  border: 1px solid var(--view4dd51-line);
  background: rgba(148, 0, 211, 0.12);
  color: var(--view4dd51-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.view4dd51-fast b { color: var(--view4dd51-gold); font-weight: 900; }

.view4dd51-fast:active {
  background: var(--view4dd51-gold);
  color: #1d1502;
  border-color: var(--view4dd51-gold);
}

.view4dd51-fast:active b { color: #1d1502; }

.view4dd51-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px dashed rgba(240, 128, 128, 0.45);
  border-radius: var(--view4dd51-r-card);
  background: rgba(240, 128, 128, 0.07);
  font-size: 11.5px;
  color: var(--view4dd51-ink-dim);
}

.view4dd51-note b { color: var(--view4dd51-coral); }

/* ==========================================================================
   9. Common footer + fixed bottom dock
   ========================================================================== */
.view4dd51-foot {
  padding: 14px var(--view4dd51-pad) 10px;
  border-top: 1px solid var(--view4dd51-line-soft);
  text-align: center;
  font-size: 11px;
  color: var(--view4dd51-ink-faint);
}

.view4dd51-foot p { margin: 0; }

/* Compact icon rack docked to the phone canvas bottom. */
.view4dd51-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-width: 430px;                    /* aligned with the canvas edges */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--view4dd51-dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(180deg, #1b2833 0%, #131e28 100%);
  border-top: 1px solid var(--view4dd51-line);
}

.view4dd51-dockitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: var(--view4dd51-ink-faint);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.view4dd51-dockitem:active {
  color: var(--view4dd51-gold);
  background: rgba(218, 165, 32, 0.10);
}

.view4dd51-dockitem--now { color: var(--view4dd51-gold); }

.view4dd51-dockitem--now::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--view4dd51-gold);
}

/* Dual-tone role icons: two SVG tones per glyph. */
.view4dd51-dockitem svg {
  width: 22px;
  height: 22px;
  display: block;
}

.view4dd51-ic-a { fill: var(--view4dd51-gold); }
.view4dd51-ic-b { fill: var(--view4dd51-orchid); }

.view4dd51-dockitem:active .view4dd51-ic-b,
.view4dd51-dockitem--now .view4dd51-ic-b { fill: var(--view4dd51-coral); }

/* ==========================================================================
   10. Motion and readability preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view4dd51-track,
  .view4dd51-routes,
  .view4dd51-scrim,
  .view4dd51-btn,
  .view4dd51-tile,
  .view4dd51-dot,
  .view4dd51-arrow,
  .view4dd51-dockitem,
  .view4dd51-offer-cta,
  .view4dd51-fast,
  .view4dd51-directory a,
  .view4dd51-routelist a { transition: none; }
}

/* Long-word control so no tile or heading can force horizontal scroll. */
.view4dd51-h1,
.view4dd51-h2,
.view4dd51-h3,
.view4dd51-lede,
.view4dd51-copy,
.view4dd51-tile-name,
.view4dd51-offer-name,
.view4dd51-directory a { overflow-wrap: anywhere; }
