/* ==========================================================================
   medi plast - dynamic-5bce52-layers.css
   Mobile-first stylesheet for the 320-430px phone canvas.
   Palette: #A0522D / #D2B48C / #FFB3BA / #212F3D / #CD853F
   Direction: humanist headings, near-square tool corners, compact square
   game catalogue, conclusion-first rhythm, slide-in menu + card lift.
   ========================================================================== */

:root {
  --mobilece52d-bg: #212F3D;
  --mobilece52d-bg-deep: #18212B;
  --mobilece52d-bg-outer: #0E161E;
  --mobilece52d-panel: #2A3B4E;
  --mobilece52d-panel-soft: #243445;
  --mobilece52d-line: #3A4E63;
  --mobilece52d-line-soft: #2E3F52;
  --mobilece52d-ink: #D2B48C;
  --mobilece52d-ink-strong: #F3E4CC;
  --mobilece52d-ink-dim: #9FB2C6;
  --mobilece52d-sienna: #A0522D;
  --mobilece52d-peru: #CD853F;
  --mobilece52d-blush: #FFB3BA;
  --mobilece52d-radius: 3px;
  --mobilece52d-radius-lg: 5px;
  --mobilece52d-head-h: 56px;
  --mobilece52d-bnav-h: 58px;
  --mobilece52d-font-head: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --mobilece52d-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--mobilece52d-bg-outer);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--mobilece52d-font-body);
  font-size: 15px;
  line-height: 1.58;
  color: var(--mobilece52d-ink);
  background: var(--mobilece52d-bg);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

a { color: var(--mobilece52d-blush); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mobilece52d-blush);
  outline-offset: 2px;
  border-radius: var(--mobilece52d-radius);
}

.mobilece52d-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.mobilece52d-skip {
  position: absolute;
  left: 8px; top: -46px;
  z-index: 200;
  background: var(--mobilece52d-peru);
  color: #1B2634;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--mobilece52d-radius);
  transition: top 0.18s ease;
}
.mobilece52d-skip:focus { top: 6px; }

/* ==========================================================================
   Fixed top bar - asymmetric brand header
   ========================================================================== */

.mobilece52d-top {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  background: linear-gradient(180deg, #26374A 0%, #1D2A38 100%);
  border-bottom: 2px solid var(--mobilece52d-peru);
  box-shadow: 0 3px 10px rgba(8, 13, 19, 0.55);
}

.mobilece52d-toprow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--mobilece52d-head-h);
  padding: 8px 10px 8px 12px;
}

/* Brand block leans left, visually heavier than the action zone */
.mobilece52d-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  min-width: 0;
}
.mobilece52d-logo {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--mobilece52d-peru);
  border-radius: var(--mobilece52d-radius);
  background: #0F1822;
  object-fit: cover;
}
.mobilece52d-name {
  font-family: var(--mobilece52d-font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--mobilece52d-ink-strong);
  line-height: 1.15;
  white-space: nowrap;
}
.mobilece52d-name small {
  display: block;
  font-family: var(--mobilece52d-font-body);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--mobilece52d-peru);
  margin-top: 1px;
}

/* Compact dual-button group */
.mobilece52d-duo {
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
}

.mobilece52d-btn {
  font-family: var(--mobilece52d-font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: var(--mobilece52d-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobilece52d-btn:active { transform: translateY(-1px); }

.mobilece52d-btn--solid {
  background: var(--mobilece52d-peru);
  color: #20160A;
}
.mobilece52d-btn--solid:active { background: #B9781F; }

.mobilece52d-btn--ghost {
  background: transparent;
  color: var(--mobilece52d-blush);
  border-color: var(--mobilece52d-sienna);
}
.mobilece52d-btn--ghost:active { background: rgba(160, 82, 45, 0.28); }

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

/* Menu trigger */
.mobilece52d-menubtn {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: var(--mobilece52d-panel-soft);
  border: 1px solid var(--mobilece52d-line);
  border-radius: var(--mobilece52d-radius);
  cursor: pointer;
  padding: 10px 11px;
}
.mobilece52d-menubtn span {
  display: block;
  height: 2px;
  background: var(--mobilece52d-ink);
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.mobilece52d-menubtn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--mobilece52d-blush); }
.mobilece52d-menubtn.is-open span:nth-child(2) { opacity: 0; }
.mobilece52d-menubtn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--mobilece52d-blush); }

/* ==========================================================================
   Layered dropdown menu (slides in under the bar)
   ========================================================================== */

.mobilece52d-menu {
  position: fixed;
  top: calc(var(--mobilece52d-head-h) + 2px);
  left: 50%;
  transform: translate(-50%, -10px);
  width: min(430px, 100%);
  max-height: calc(100vh - var(--mobilece52d-head-h) - 20px);
  overflow-y: auto;
  background: var(--mobilece52d-bg-deep);
  border-bottom: 2px solid var(--mobilece52d-sienna);
  z-index: 85;
  padding: 6px 10px 14px;
  visibility: hidden;
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
}
.mobilece52d-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobilece52d-mgroup { border-bottom: 1px solid var(--mobilece52d-line-soft); }
.mobilece52d-mgroup:last-child { border-bottom: 0; }

.mobilece52d-mhead {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--mobilece52d-font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--mobilece52d-peru);
  letter-spacing: 0.3px;
  padding: 6px 2px;
  text-align: left;
}
.mobilece52d-mhead i {
  font-style: normal;
  font-size: 11px;
  color: var(--mobilece52d-ink-dim);
  transition: transform 0.2s ease;
}
.mobilece52d-mhead.is-open i { transform: rotate(90deg); color: var(--mobilece52d-blush); }

.mobilece52d-mlayer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}
.mobilece52d-mlayer.is-open { grid-template-rows: 1fr; }
.mobilece52d-mlayer > ul {
  list-style: none;
  margin: 0; padding: 0 0 6px 6px;
  overflow: hidden;
}

.mobilece52d-mlink {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 8px 8px 10px;
  color: var(--mobilece52d-ink);
  font-size: 13.5px;
  border-left: 2px solid var(--mobilece52d-line);
  position: relative;
}
.mobilece52d-mlink:active { background: rgba(205, 133, 63, 0.12); }
.mobilece52d-mlink svg { flex: 0 0 16px; }
.mobilece52d-mlink--now {
  color: var(--mobilece52d-ink-strong);
  border-left-color: var(--mobilece52d-blush);
  font-weight: 700;
}
.mobilece52d-mlink--now::after {
  content: "";
  position: absolute;
  left: 10px; bottom: 5px;
  width: 22px; height: 2px;
  background: var(--mobilece52d-blush);
}
.mobilece52d-mlink--go {
  color: var(--mobilece52d-blush);
  border-left-color: var(--mobilece52d-peru);
  width: 100%;
  background: none;
  border-top: 0; border-right: 0; border-bottom: 0;
  cursor: pointer;
  font-family: var(--mobilece52d-font-body);
  font-size: 13.5px;
  text-align: left;
}

/* ==========================================================================
   Main canvas spacing
   ========================================================================== */

.mobilece52d-main {
  padding-top: calc(var(--mobilece52d-head-h) + 8px);
  padding-bottom: calc(var(--mobilece52d-bnav-h) + 26px + env(safe-area-inset-bottom, 0px));
}

/* Category jump strip - scrolls horizontally, anchors only as enhancement */
.mobilece52d-jump {
  position: sticky;
  top: calc(var(--mobilece52d-head-h) + 2px);
  z-index: 40;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 10px;
  background: rgba(24, 33, 43, 0.96);
  border-bottom: 1px solid var(--mobilece52d-line-soft);
  scrollbar-width: none;
}
.mobilece52d-jump::-webkit-scrollbar { display: none; }
.mobilece52d-jump a {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--mobilece52d-ink);
  padding: 8px 12px;
  border: 1px solid var(--mobilece52d-line);
  border-radius: var(--mobilece52d-radius);
  background: var(--mobilece52d-panel-soft);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}
.mobilece52d-jump a:active { background: var(--mobilece52d-sienna); color: var(--mobilece52d-ink-strong); }

/* ==========================================================================
   Hero
   ========================================================================== */

.mobilece52d-hero {
  padding: 16px 14px 18px;
  background:
    linear-gradient(160deg, rgba(205, 133, 63, 0.14) 0%, rgba(33, 47, 61, 0) 55%),
    var(--mobilece52d-bg);
  border-bottom: 1px solid var(--mobilece52d-line-soft);
}

.mobilece52d-hero h1 {
  font-family: var(--mobilece52d-font-head);
  font-size: 24px;
  line-height: 1.24;
  margin: 0 0 10px;
  color: var(--mobilece52d-ink-strong);
}
.mobilece52d-hero h1 em {
  font-style: normal;
  color: var(--mobilece52d-blush);
}

.mobilece52d-lede {
  font-size: 14px;
  color: var(--mobilece52d-ink);
  margin: 0 0 14px;
}

.mobilece52d-hero .mobilece52d-duo { grid-template-columns: 1fr 1fr; }

.mobilece52d-facts {
  margin: 14px 0 0;
  padding: 12px 12px 10px;
  list-style: none;
  background: var(--mobilece52d-bg-deep);
  border: 1px solid var(--mobilece52d-line-soft);
  border-radius: var(--mobilece52d-radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.mobilece52d-facts li {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--mobilece52d-ink-dim);
  padding-left: 13px;
  position: relative;
}
.mobilece52d-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 6px; height: 6px;
  background: var(--mobilece52d-peru);
}
.mobilece52d-facts li:nth-child(even)::before { background: var(--mobilece52d-blush); }

/* ==========================================================================
   Campaign carousel
   ========================================================================== */

.mobilece52d-camp { padding: 16px 0 4px; }

.mobilece52d-camp h2,
.mobilece52d-cat h2,
.mobilece52d-module h2 {
  font-family: var(--mobilece52d-font-head);
  font-size: 19px;
  line-height: 1.3;
  color: var(--mobilece52d-ink-strong);
  margin: 0 0 8px;
  padding-left: 9px;
  border-left: 3px solid var(--mobilece52d-peru);
}

.mobilece52d-camp h2 { margin-left: 12px; margin-right: 12px; }

.mobilece52d-reel {
  overflow: hidden;
  position: relative;
}
.mobilece52d-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.33, 0.9, 0.35, 1);
}
.mobilece52d-slide {
  flex: 0 0 100%;
  padding: 0 12px;
}
.mobilece52d-slidebtn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: var(--mobilece52d-panel-soft);
  border: 1px solid var(--mobilece52d-line);
  border-radius: var(--mobilece52d-radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.mobilece52d-slidebtn img {
  width: 100%;
  aspect-ratio: 430 / 200;
  object-fit: cover;
}
.mobilece52d-slidecap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-top: 2px solid var(--mobilece52d-sienna);
}
.mobilece52d-slidecap strong {
  font-family: var(--mobilece52d-font-head);
  font-size: 13.5px;
  color: var(--mobilece52d-ink-strong);
  font-weight: 700;
}
.mobilece52d-slidecap span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mobilece52d-blush);
  white-space: nowrap;
}

.mobilece52d-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 2px;
}
.mobilece52d-dot {
  width: 26px; height: 6px;
  border: 0;
  border-radius: var(--mobilece52d-radius);
  background: var(--mobilece52d-line);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}
.mobilece52d-dot.is-on { background: var(--mobilece52d-peru); }

/* ==========================================================================
   Game catalogue - compact square tiles
   ========================================================================== */

.mobilece52d-cat { padding: 18px 12px 6px; }

.mobilece52d-catintro {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mobilece52d-ink);
  margin: 0 0 12px;
}
.mobilece52d-catintro a { border-bottom: 1px dotted var(--mobilece52d-blush); }

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

.mobilece52d-tile {
  display: block;
  width: 100%;
  padding: 4px 4px 6px;
  background: var(--mobilece52d-panel-soft);
  border: 1px solid var(--mobilece52d-line-soft);
  border-radius: var(--mobilece52d-radius);
  cursor: pointer;
  text-align: center;
  transition: transform 0.14s ease, border-color 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobilece52d-tile:active {
  transform: translateY(-2px);
  border-color: var(--mobilece52d-peru);
  background: var(--mobilece52d-panel);
}
.mobilece52d-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: #101923;
}
.mobilece52d-tile span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--mobilece52d-ink);
  margin-top: 4px;
  min-height: 27px;
  word-break: break-word;
}

@media (hover: hover) {
  .mobilece52d-tile:hover {
    transform: translateY(-2px);
    border-color: var(--mobilece52d-peru);
  }
}

/* Four columns hold from 320px; five fit comfortably from 390px up */
@media (min-width: 390px) {
  .mobilece52d-grid { grid-template-columns: repeat(5, 1fr); gap: 7px; }
}

/* ==========================================================================
   Long-form modules after the catalogue
   ========================================================================== */

.mobilece52d-module {
  padding: 20px 14px 8px;
  border-top: 1px solid var(--mobilece52d-line-soft);
}
.mobilece52d-module:first-of-type { border-top: 0; }

.mobilece52d-module h3 {
  font-family: var(--mobilece52d-font-head);
  font-size: 16px;
  color: var(--mobilece52d-blush);
  margin: 20px 0 7px;
  position: relative;
  padding-bottom: 5px;
}
.mobilece52d-module h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 2px;
  background: var(--mobilece52d-peru);
}

.mobilece52d-module p {
  font-size: 14px;
  line-height: 1.66;
  margin: 0 0 12px;
}

.mobilece52d-lead {
  font-size: 14.5px;
  color: var(--mobilece52d-ink-strong);
}

.mobilece52d-note {
  border-left: 3px solid var(--mobilece52d-sienna);
  background: #1C2836;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  border-radius: 0 var(--mobilece52d-radius) var(--mobilece52d-radius) 0;
  margin: 0 0 14px;
}

.mobilece52d-steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: mobilece52dstep;
}
.mobilece52d-steps li {
  counter-increment: mobilece52dstep;
  position: relative;
  padding: 8px 8px 8px 40px;
  margin-bottom: 6px;
  background: var(--mobilece52d-bg-deep);
  border: 1px solid var(--mobilece52d-line-soft);
  border-radius: var(--mobilece52d-radius);
  font-size: 13.5px;
  line-height: 1.55;
}
.mobilece52d-steps li::before {
  content: counter(mobilece52dstep, decimal-leading-zero);
  position: absolute;
  left: 8px; top: 9px;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  background: var(--mobilece52d-sienna);
  color: var(--mobilece52d-ink-strong);
  font-family: var(--mobilece52d-font-head);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--mobilece52d-radius);
}

/* Compact relationship table */
.mobilece52d-relwrap {
  overflow-x: auto;
  border: 1px solid var(--mobilece52d-line);
  border-radius: var(--mobilece52d-radius);
  margin: 0 0 14px;
}
.mobilece52d-rel {
  border-collapse: collapse;
  width: 100%;
  min-width: 300px;
  font-size: 12px;
}
.mobilece52d-rel th,
.mobilece52d-rel td {
  text-align: left;
  padding: 8px 9px;
  border-bottom: 1px solid var(--mobilece52d-line-soft);
  vertical-align: top;
  line-height: 1.5;
}
.mobilece52d-rel th {
  font-family: var(--mobilece52d-font-head);
  color: var(--mobilece52d-peru);
  background: var(--mobilece52d-bg-deep);
  white-space: nowrap;
}
.mobilece52d-rel td { color: var(--mobilece52d-ink); }
.mobilece52d-rel tr:last-child td { border-bottom: 0; }

/* Term list */
.mobilece52d-terms { margin: 0 0 14px; }
.mobilece52d-terms dt {
  font-family: var(--mobilece52d-font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--mobilece52d-peru);
  padding-top: 10px;
}
.mobilece52d-terms dd {
  margin: 3px 0 0;
  padding: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.6;
  border-bottom: 1px dashed var(--mobilece52d-line-soft);
}
.mobilece52d-terms dt:first-of-type { padding-top: 0; }

/* ==========================================================================
   Extended footer: directory > brand > promotions > disclaimer
   ========================================================================== */

.mobilece52d-xfoot {
  margin-top: 22px;
  background: var(--mobilece52d-bg-deep);
  border-top: 2px solid var(--mobilece52d-sienna);
  padding: 16px 14px 6px;
}

.mobilece52d-xfoot h3 {
  font-family: var(--mobilece52d-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mobilece52d-peru);
  margin: 0 0 10px;
}

.mobilece52d-xsec { margin-bottom: 20px; }

.mobilece52d-dir {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mobilece52d-dir a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 9px;
  background: var(--mobilece52d-panel-soft);
  border: 1px solid var(--mobilece52d-line-soft);
  border-radius: var(--mobilece52d-radius);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mobilece52d-ink);
  line-height: 1.3;
}
.mobilece52d-dir a svg { flex: 0 0 14px; }
.mobilece52d-dir a:active { border-color: var(--mobilece52d-peru); color: var(--mobilece52d-ink-strong); }

.mobilece52d-brandnote {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--mobilece52d-ink-dim);
  margin: 0;
}

.mobilece52d-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.mobilece52d-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 44px;
  padding: 10px 11px;
  background: var(--mobilece52d-panel);
  border: 1px solid var(--mobilece52d-peru);
  border-radius: var(--mobilece52d-radius);
  color: var(--mobilece52d-ink-strong);
  font-family: var(--mobilece52d-font-body);
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.mobilece52d-promo:active { transform: translateY(-2px); background: #31465C; }
.mobilece52d-promo strong {
  font-size: 12.5px;
  letter-spacing: 0.2px;
}
.mobilece52d-promo em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--mobilece52d-blush);
  line-height: 1.35;
}

.mobilece52d-disc {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--mobilece52d-ink-dim);
  border: 1px dashed var(--mobilece52d-line);
  border-radius: var(--mobilece52d-radius);
  padding: 10px 11px;
  margin: 0;
}

.mobilece52d-copy {
  text-align: center;
  font-size: 11.5px;
  color: #7E93A9;
  padding: 10px 14px 14px;
  background: var(--mobilece52d-bg-deep);
}

/* ==========================================================================
   Fixed segmented action bar (mobile bottom navigation)
   ========================================================================== */

.mobilece52d-bnav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #141D27;
  border-top: 2px solid var(--mobilece52d-peru);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 14px rgba(8, 13, 19, 0.5);
}

.mobilece52d-bnav a,
.mobilece52d-bnav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--mobilece52d-bnav-h);
  padding: 6px 2px 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--mobilece52d-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--mobilece52d-ink-dim);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.mobilece52d-bnav svg {
  transition: transform 0.18s ease;
}
.mobilece52d-bnav a:active svg,
.mobilece52d-bnav button:active svg {
  transform: scale(0.88) translateY(1px);
}

.mobilece52d-bnav .is-now { color: var(--mobilece52d-ink-strong); }
.mobilece52d-bnav .is-now svg { transform: translateY(-1px) scale(1.1); }
.mobilece52d-bnav .is-now::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 3px;
  background: var(--mobilece52d-blush);
}

.mobilece52d-bnav .mobilece52d-bngo { color: var(--mobilece52d-blush); }

/* ==========================================================================
   Wide screens keep the same centred phone canvas
   ========================================================================== */

@media (min-width: 480px) {
  body {
    border-left: 1px solid #2A3B4E;
    border-right: 1px solid #2A3B4E;
    box-shadow: 0 0 34px rgba(0, 0, 0, 0.55);
  }
}

@media (max-width: 359px) {
  .mobilece52d-toprow { gap: 5px; padding: 7px 8px 7px 9px; }
  .mobilece52d-brand { gap: 6px; }
  .mobilece52d-logo { width: 32px; height: 32px; flex-basis: 32px; }
  .mobilece52d-name { font-size: 15.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .mobilece52d-duo { gap: 4px; }
  .mobilece52d-top .mobilece52d-btn { font-size: 11px; padding: 8px 8px; }
  .mobilece52d-hero h1 { font-size: 21.5px; }
  .mobilece52d-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .mobilece52d-track { transition: none; }
}
