/* =====================================================================
   mostbetapp.homes - surface stylesheet
   File: css/mostbet-app-surface-a53d1e.css
   All class names and custom properties use the layer3d1e8- prefix.
   Palette: #0E1621 base / #F5DEB3 wheat / #D2B48C tan
            #FF7F50 coral accent / #8B7355 line brown
   Direction: technical headings, stroke-led corners, outlined tile
   cards, step-advance rhythm, square high-contrast CTAs.
   ===================================================================== */

:root {
  --layer3d1e8-ink: #0E1621;
  --layer3d1e8-ink2: #121d2b;
  --layer3d1e8-ink3: #16232f;
  --layer3d1e8-ink4: #1b2b3a;
  --layer3d1e8-wheat: #F5DEB3;
  --layer3d1e8-tan: #D2B48C;
  --layer3d1e8-coral: #FF7F50;
  --layer3d1e8-coraldeep: #e8663a;
  --layer3d1e8-brown: #8B7355;
  --layer3d1e8-line: rgba(139, 115, 85, 0.42);
  --layer3d1e8-line2: rgba(210, 180, 140, 0.24);
  --layer3d1e8-fog: rgba(245, 222, 179, 0.66);
  --layer3d1e8-glow: rgba(255, 127, 80, 0.32);
  --layer3d1e8-fonthead: "Chakra Petch", "Noto Sans Bengali", "Segoe UI", sans-serif;
  --layer3d1e8-fontbody: "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  --layer3d1e8-radius: 3px;
  --layer3d1e8-topbar-h: 56px;
  --layer3d1e8-bottomnav-h: 64px;
  --layer3d1e8-gap: 10px;
  --layer3d1e8-pad: 14px;
}

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

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

body {
  margin: 0;
  background: var(--layer3d1e8-ink);
  color: var(--layer3d1e8-wheat);
  font-family: var(--layer3d1e8-fontbody);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
  /* keep clear of the fixed bottom navigation */
  padding-bottom: calc(var(--layer3d1e8-bottomnav-h) + 26px + env(safe-area-inset-bottom, 0px));
}

body.layer3d1e8-locked { overflow: hidden; }

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

a { color: var(--layer3d1e8-coral); text-decoration: none; }
a:hover,
a:focus-visible { text-decoration: underline; }

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

:focus-visible {
  outline: 2px solid var(--layer3d1e8-coral);
  outline-offset: 2px;
}

::selection { background: var(--layer3d1e8-coral); color: var(--layer3d1e8-ink); }

/* ------------------------------------------------------------------ */
/* Phone canvas: 320-430px column, centered on wide screens            */
/* ------------------------------------------------------------------ */
.layer3d1e8-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(255, 127, 80, 0.07), transparent 62%),
    var(--layer3d1e8-ink);
  position: relative;
}

.layer3d1e8-main {
  padding: calc(var(--layer3d1e8-topbar-h) + 10px) var(--layer3d1e8-pad) 8px;
}

.layer3d1e8-dirhead {
  margin: 0;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--layer3d1e8-wheat);
}

.layer3d1e8-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 90;
  background: var(--layer3d1e8-coral);
  color: var(--layer3d1e8-ink);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--layer3d1e8-radius);
}
.layer3d1e8-skip:focus {
  left: 10px;
  top: 10px;
}

/* ------------------------------------------------------------------ */
/* Fixed compact brand topbar                                          */
/* ------------------------------------------------------------------ */
.layer3d1e8-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--layer3d1e8-topbar-h);
  padding: 8px var(--layer3d1e8-pad) 8px 10px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: rgba(14, 22, 33, 0.94);
  border-bottom: 1px solid var(--layer3d1e8-line);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.layer3d1e8-topbar.layer3d1e8-compact {
  background: rgba(14, 22, 33, 0.98);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.layer3d1e8-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  text-decoration: none;
}

.layer3d1e8-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--layer3d1e8-radius);
  border: 1px solid var(--layer3d1e8-line);
  object-fit: cover;
  background: var(--layer3d1e8-ink2);
}

.layer3d1e8-brand b {
  font-family: var(--layer3d1e8-fonthead);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--layer3d1e8-wheat);
  white-space: nowrap;
}

.layer3d1e8-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Square-corner high-contrast CTA pair */
.layer3d1e8-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--layer3d1e8-radius);
  font-family: var(--layer3d1e8-fonthead);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.layer3d1e8-cta-solid {
  background: var(--layer3d1e8-coral);
  color: var(--layer3d1e8-ink);
}
.layer3d1e8-cta-solid:hover,
.layer3d1e8-cta-solid:focus-visible {
  background: var(--layer3d1e8-coraldeep);
  box-shadow: 0 0 14px var(--layer3d1e8-glow);
  text-decoration: none;
}

.layer3d1e8-cta-line {
  border: 1px solid var(--layer3d1e8-line2);
  color: var(--layer3d1e8-wheat);
  background: rgba(22, 35, 47, 0.6);
}
.layer3d1e8-cta-line:hover,
.layer3d1e8-cta-line:focus-visible {
  border-color: var(--layer3d1e8-coral);
  color: var(--layer3d1e8-coral);
  text-decoration: none;
}

.layer3d1e8-burger {
  width: 38px;
  height: 36px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  background: rgba(22, 35, 47, 0.6);
}
.layer3d1e8-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--layer3d1e8-tan);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.layer3d1e8-burger:hover span { background: var(--layer3d1e8-coral); }

/* ------------------------------------------------------------------ */
/* Slide-up route sheet                                                */
/* ------------------------------------------------------------------ */
.layer3d1e8-veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 9, 15, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.layer3d1e8-veil.layer3d1e8-open { opacity: 1; visibility: visible; }

.layer3d1e8-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 102%);
  width: 100%;
  max-width: 430px;
  z-index: 71;
  background: var(--layer3d1e8-ink2);
  border: 1px solid var(--layer3d1e8-line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 14px var(--layer3d1e8-pad) calc(16px + env(safe-area-inset-bottom, 0px));
  max-height: 78vh;
  overflow-y: auto;
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.layer3d1e8-sheet.layer3d1e8-open { transform: translate(-50%, 0); }

.layer3d1e8-sheetbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.layer3d1e8-sheetbar strong {
  font-family: var(--layer3d1e8-fonthead);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--layer3d1e8-tan);
}
.layer3d1e8-sheetshut {
  width: 38px;
  height: 34px;
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  color: var(--layer3d1e8-wheat);
  font-size: 16px;
  line-height: 1;
}
.layer3d1e8-sheetshut:hover { color: var(--layer3d1e8-coral); border-color: var(--layer3d1e8-coral); }

.layer3d1e8-routes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.layer3d1e8-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  background: var(--layer3d1e8-ink3);
  color: var(--layer3d1e8-wheat);
  font-size: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.layer3d1e8-route:hover,
.layer3d1e8-route:focus-visible {
  text-decoration: none;
  border-color: var(--layer3d1e8-coral);
  background: var(--layer3d1e8-ink4);
}
.layer3d1e8-route.layer3d1e8-here {
  border-color: var(--layer3d1e8-coral);
  box-shadow: inset 3px 0 0 var(--layer3d1e8-coral);
}
.layer3d1e8-route i {
  font-style: normal;
  color: var(--layer3d1e8-brown);
  font-family: var(--layer3d1e8-fonthead);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.layer3d1e8-route:hover i { color: var(--layer3d1e8-coral); }

.layer3d1e8-sheetcta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.layer3d1e8-sheetcta .layer3d1e8-cta { min-height: 42px; }

/* ------------------------------------------------------------------ */
/* Hero block                                                          */
/* ------------------------------------------------------------------ */
.layer3d1e8-hero {
  padding: 6px 0 14px;
}

.layer3d1e8-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--layer3d1e8-coral);
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  padding: 4px 8px;
  margin-bottom: 10px;
}
.layer3d1e8-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--layer3d1e8-coral);
  box-shadow: 0 0 8px var(--layer3d1e8-glow);
}

.layer3d1e8-hero h1 {
  margin: 0 0 10px;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 23px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--layer3d1e8-wheat);
}

.layer3d1e8-lead {
  margin: 0;
  color: var(--layer3d1e8-fog);
  font-size: 14.5px;
}
.layer3d1e8-lead + .layer3d1e8-lead { margin-top: 10px; }

/* Fact chips strip */
.layer3d1e8-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0 4px;
}
.layer3d1e8-chip {
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  background: var(--layer3d1e8-ink2);
  padding: 8px 6px;
  text-align: center;
}
.layer3d1e8-chip b {
  display: block;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 16px;
  color: var(--layer3d1e8-coral);
  line-height: 1.2;
}
.layer3d1e8-chip small {
  display: block;
  font-size: 10.5px;
  color: var(--layer3d1e8-tan);
  line-height: 1.4;
  margin-top: 2px;
}

/* ------------------------------------------------------------------ */
/* Promo banner carousel                                               */
/* ------------------------------------------------------------------ */
.layer3d1e8-carousel {
  position: relative;
  margin: 4px 0 18px;
}

.layer3d1e8-reel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--layer3d1e8-line);
  border-radius: 6px;
  background: var(--layer3d1e8-ink2);
}
.layer3d1e8-reel::-webkit-scrollbar { display: none; }

.layer3d1e8-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  display: block;
  aspect-ratio: 40 / 19;
  overflow: hidden;
}
.layer3d1e8-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.layer3d1e8-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0) 34%, rgba(14, 22, 33, 0.86) 100%);
}
.layer3d1e8-slidecap {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}
.layer3d1e8-slidecap b {
  font-family: var(--layer3d1e8-fonthead);
  font-size: 14px;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.layer3d1e8-slidecap em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--layer3d1e8-coral);
  border: 1px solid var(--layer3d1e8-coral);
  border-radius: var(--layer3d1e8-radius);
  padding: 3px 7px;
  background: rgba(14, 22, 33, 0.55);
  white-space: nowrap;
}

.layer3d1e8-dotbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.layer3d1e8-dot {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--layer3d1e8-brown);
  opacity: 0.55;
  transition: background 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}
.layer3d1e8-dot.layer3d1e8-on {
  background: var(--layer3d1e8-coral);
  opacity: 1;
  box-shadow: 0 0 8px var(--layer3d1e8-glow);
}

/* ------------------------------------------------------------------ */
/* Section shells and headings                                         */
/* ------------------------------------------------------------------ */
.layer3d1e8-block {
  margin: 0 0 22px;
}

.layer3d1e8-sechead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-left: 3px solid var(--layer3d1e8-coral);
  padding-left: 10px;
  margin-bottom: 8px;
}
.layer3d1e8-sechead h2 {
  margin: 0;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--layer3d1e8-wheat);
}
.layer3d1e8-sechead .layer3d1e8-tag {
  flex: none;
  margin-left: auto;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--layer3d1e8-tan);
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  padding: 2px 6px;
  white-space: nowrap;
}

.layer3d1e8-secnote {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--layer3d1e8-fog);
}

/* ------------------------------------------------------------------ */
/* Outlined tile game grid                                             */
/* ------------------------------------------------------------------ */
.layer3d1e8-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.layer3d1e8-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  background: var(--layer3d1e8-ink2);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.layer3d1e8-tile:hover,
.layer3d1e8-tile:focus-visible {
  border-color: var(--layer3d1e8-coral);
  box-shadow: 0 0 12px var(--layer3d1e8-glow);
  transform: translateY(-2px);
}
.layer3d1e8-tile:active { transform: translateY(0); }

.layer3d1e8-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(139, 115, 85, 0.28);
  background: var(--layer3d1e8-ink3);
}

.layer3d1e8-tilename {
  font-size: 11px;
  line-height: 1.45;
  color: var(--layer3d1e8-tan);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  word-break: break-word;
}
.layer3d1e8-tile:hover .layer3d1e8-tilename { color: var(--layer3d1e8-wheat); }

/* Category ribbon above each grid */
.layer3d1e8-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--layer3d1e8-tan);
}
.layer3d1e8-ribbon::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--layer3d1e8-line), transparent);
}

/* ------------------------------------------------------------------ */
/* Step-advance modules                                                */
/* ------------------------------------------------------------------ */
.layer3d1e8-panel {
  border: 1px solid var(--layer3d1e8-line);
  border-radius: 6px;
  background: var(--layer3d1e8-ink2);
  padding: 14px 12px;
  margin: 0 0 14px;
}

.layer3d1e8-panel > p {
  margin: 0 0 10px;
  color: var(--layer3d1e8-fog);
  font-size: 14px;
}
.layer3d1e8-panel > p:last-child { margin-bottom: 0; }

.layer3d1e8-steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: layer3d1e8step;
}

.layer3d1e8-steps li {
  counter-increment: layer3d1e8step;
  position: relative;
  padding: 0 0 0 44px;
  min-height: 36px;
}
.layer3d1e8-steps li::before {
  content: "0" counter(layer3d1e8step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 32px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--layer3d1e8-coral);
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  background: var(--layer3d1e8-ink3);
}
.layer3d1e8-steps b {
  display: block;
  color: var(--layer3d1e8-wheat);
  font-size: 14px;
  line-height: 1.5;
}
.layer3d1e8-steps span {
  display: block;
  color: var(--layer3d1e8-fog);
  font-size: 13px;
  line-height: 1.65;
}

/* Pros / limitations twin list */
.layer3d1e8-duo {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.layer3d1e8-duocol {
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  background: var(--layer3d1e8-ink3);
  padding: 10px 12px;
}
.layer3d1e8-duocol h3 {
  margin: 0 0 8px;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--layer3d1e8-coral);
}
.layer3d1e8-duo ul {
  margin: 0;
  padding-left: 16px;
  color: var(--layer3d1e8-fog);
  font-size: 13px;
}
.layer3d1e8-duo li { margin-bottom: 6px; }
.layer3d1e8-duo li:last-child { margin-bottom: 0; }

/* Compact condition rows (payment etc.) */
.layer3d1e8-conds {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.layer3d1e8-conds li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  background: var(--layer3d1e8-ink3);
  padding: 9px 10px;
  font-size: 13.5px;
  color: var(--layer3d1e8-fog);
}
.layer3d1e8-conds svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  fill: var(--layer3d1e8-coral);
}
.layer3d1e8-conds b { color: var(--layer3d1e8-wheat); }

/* ------------------------------------------------------------------ */
/* Extended footer: brand blurb > directory > promo actions > notice   */
/* ------------------------------------------------------------------ */
.layer3d1e8-extfoot {
  margin-top: 26px;
  border-top: 1px solid var(--layer3d1e8-line);
  padding-top: 18px;
  display: grid;
  gap: 16px;
}

.layer3d1e8-extbrand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.layer3d1e8-extbrand img {
  width: 40px;
  height: 40px;
  border-radius: var(--layer3d1e8-radius);
  border: 1px solid var(--layer3d1e8-line);
  object-fit: cover;
  background: var(--layer3d1e8-ink2);
}
.layer3d1e8-extbrand p {
  margin: 0;
  font-size: 13px;
  color: var(--layer3d1e8-fog);
}
.layer3d1e8-extbrand b {
  display: block;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 14px;
  color: var(--layer3d1e8-wheat);
  margin-bottom: 2px;
}

.layer3d1e8-extcols { display: grid; gap: 14px; }

.layer3d1e8-extcols h3 {
  margin: 0 0 8px;
  font-family: var(--layer3d1e8-fonthead);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--layer3d1e8-tan);
}

.layer3d1e8-dir {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.layer3d1e8-dir a {
  display: block;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  background: var(--layer3d1e8-ink2);
  color: var(--layer3d1e8-wheat);
  font-size: 12px;
  line-height: 1.45;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.layer3d1e8-dir a:hover,
.layer3d1e8-dir a:focus-visible {
  border-color: var(--layer3d1e8-coral);
  color: var(--layer3d1e8-coral);
  text-decoration: none;
}

.layer3d1e8-promorow {
  display: grid;
  gap: 8px;
}
.layer3d1e8-promorow .layer3d1e8-cta { width: 100%; min-height: 42px; }

.layer3d1e8-note {
  border: 1px solid var(--layer3d1e8-line);
  border-left: 3px solid var(--layer3d1e8-brown);
  border-radius: var(--layer3d1e8-radius);
  background: var(--layer3d1e8-ink2);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--layer3d1e8-fog);
}

/* ------------------------------------------------------------------ */
/* Common footer                                                       */
/* ------------------------------------------------------------------ */
.layer3d1e8-footer {
  border-top: 1px solid var(--layer3d1e8-line);
  margin-top: 8px;
  padding: 14px var(--layer3d1e8-pad) 10px;
  text-align: center;
  font-size: 12px;
  color: var(--layer3d1e8-tan);
}
.layer3d1e8-footer p { margin: 0 0 4px; }
.layer3d1e8-footer p:last-child { margin: 0; }

/* ------------------------------------------------------------------ */
/* Bottom navigation with raised center button                         */
/* ------------------------------------------------------------------ */
.layer3d1e8-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  z-index: 62;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  min-height: var(--layer3d1e8-bottomnav-h);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 29, 43, 0.97);
  border-top: 1px solid var(--layer3d1e8-line);
  backdrop-filter: blur(8px);
}

.layer3d1e8-navitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px;
  border-radius: var(--layer3d1e8-radius);
  color: var(--layer3d1e8-tan);
  font-size: 9.5px;
  line-height: 1.3;
  text-align: center;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.layer3d1e8-navitem svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  opacity: 0.9;
}
.layer3d1e8-navitem:hover { color: var(--layer3d1e8-wheat); text-decoration: none; }
.layer3d1e8-navitem.layer3d1e8-on {
  color: var(--layer3d1e8-coral);
  box-shadow: inset 0 3px 0 var(--layer3d1e8-coral);
}
.layer3d1e8-navitem.layer3d1e8-on svg {
  filter: drop-shadow(0 0 6px var(--layer3d1e8-glow));
}

/* Raised center promo role */
.layer3d1e8-navhub {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 48px;
}
.layer3d1e8-navraise {
  width: 54px;
  height: 54px;
  margin-top: -26px;
  border-radius: 50%;
  background: var(--layer3d1e8-coral);
  color: var(--layer3d1e8-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--layer3d1e8-ink);
  box-shadow: 0 0 0 1px var(--layer3d1e8-line), 0 6px 16px rgba(255, 127, 80, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.layer3d1e8-navraise svg {
  width: 24px;
  height: 24px;
  fill: var(--layer3d1e8-ink);
}
.layer3d1e8-navraise:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--layer3d1e8-coral), 0 8px 20px rgba(255, 127, 80, 0.5);
}

/* ------------------------------------------------------------------ */
/* In-copy emphasis helpers                                            */
/* ------------------------------------------------------------------ */
.layer3d1e8-inlink {
  color: var(--layer3d1e8-coral);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 127, 80, 0.5);
}
.layer3d1e8-inlink:hover { text-decoration-color: var(--layer3d1e8-coral); }

.layer3d1e8-miniquote {
  margin: 12px 0 0;
  border: 1px dashed var(--layer3d1e8-line);
  border-radius: var(--layer3d1e8-radius);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--layer3d1e8-tan);
  background: rgba(22, 35, 47, 0.45);
}

/* ------------------------------------------------------------------ */
/* Breakpoints                                                         */
/* ------------------------------------------------------------------ */
@media (min-width: 375px) {
  .layer3d1e8-grid { gap: 10px; }
  .layer3d1e8-hero h1 { font-size: 24px; }
  .layer3d1e8-dir { gap: 8px; }
}

@media (min-width: 390px) {
  /* wider phone canvas: five tile columns */
  .layer3d1e8-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 430px) {
  /* 430px phone-canvas edge: calmer density and larger tiles */
  :root {
    --layer3d1e8-pad: 16px;
    --layer3d1e8-gap: 12px;
  }
  .layer3d1e8-grid { gap: 11px; }
  .layer3d1e8-tilename { font-size: 11.5px; }
  .layer3d1e8-hero h1 { font-size: 26px; }
  .layer3d1e8-sechead h2 { font-size: 19px; }
}

@media (min-width: 700px) {
  /* keep the mobile canvas centered on desktop screens */
  body { background: #080d15; }
  .layer3d1e8-shell {
    border-left: 1px solid var(--layer3d1e8-line);
    border-right: 1px solid var(--layer3d1e8-line);
    box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  }
}

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