/* ==========================================================================
   123apps.click - dynamic-015415-interface.css
   Mobile-first interface stylesheet for a 320-430px phone canvas.
   Palette anchors: #F5F5F5 (paper) / #00695C (teal) / #1E1E1E (ink)
   Design keys: humanist headings + clear body, small radius, high density,
   image cards with bottom name strip, fact-first rhythm, color-only states,
   solid primary CTA paired with outlined secondary CTA.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --c54154-ink: #1e1e1e;                       /* page background */
  --c54154-ink-deep: #141414;                  /* letterbox behind canvas */
  --c54154-panel: #232323;                     /* raised surface */
  --c54154-panel-raise: #2a2a2a;               /* pressed / hovered surface */
  --c54154-paper: #f5f5f5;                     /* primary text */
  --c54154-mute: rgba(245, 245, 245, 0.64);    /* secondary text */
  --c54154-faint: rgba(245, 245, 245, 0.42);   /* tertiary text */
  --c54154-line: rgba(245, 245, 245, 0.12);    /* hairline */
  --c54154-line-strong: rgba(245, 245, 245, 0.24);
  --c54154-teal: #00695c;                      /* brand fill */
  --c54154-teal-deep: #00483f;                 /* pressed fill */
  --c54154-teal-soft: rgba(0, 105, 92, 0.16);  /* wash for active rows */
  --c54154-teal-bright: #2fbfa8;               /* teal readable on ink */
  --c54154-font-head: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --c54154-font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --c54154-radius: 5px;
  --c54154-radius-lg: 7px;
  --c54154-canvas: 430px;                      /* phone canvas width */
  --c54154-top-h: 106px;                       /* fixed header block */
  --c54154-dock-h: 58px;                       /* fixed bottom dock */
  --c54154-safe-b: env(safe-area-inset-bottom, 0px);
}

/* --------------------------------------------------------------------------
   2. Base reset
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c54154-ink-deep);
  color: var(--c54154-paper);
  font-family: var(--c54154-font-body);
  font-size: 15px;
  line-height: 1.62;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: var(--c54154-teal-bright);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

::selection {
  background: var(--c54154-teal);
  color: var(--c54154-paper);
}

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--c54154-teal-bright);
  outline-offset: 2px;
}

.c54154-locked { overflow: hidden; }

/* Screen-reader only helper */
.c54154-sr-only {
  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 appears on first focus */
.c54154-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--c54154-teal);
  color: var(--c54154-paper);
  border-radius: var(--c54154-radius);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-64px);
}

.c54154-skip:focus { transform: none; }

/* --------------------------------------------------------------------------
   3. Phone canvas shell (centered on wide screens)
   -------------------------------------------------------------------------- */
.c54154-shell {
  position: relative;
  max-width: var(--c54154-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c54154-ink);
}

@media (min-width: 431px) {
  .c54154-shell {
    box-shadow: 0 0 0 1px rgba(245, 245, 245, 0.06), 0 18px 60px rgba(0, 0, 0, 0.55);
  }
}

/* --------------------------------------------------------------------------
   4. Fixed top bar: centered identity row + action row
   -------------------------------------------------------------------------- */
.c54154-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  max-width: var(--c54154-canvas);
  margin-inline: auto;
  background: rgba(30, 30, 30, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c54154-line-strong);
}

.c54154-brandrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px 6px;
}

.c54154-brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: var(--c54154-radius);
  border: 1px solid var(--c54154-line-strong);
  object-fit: cover;
}

.c54154-brand-name {
  font-family: var(--c54154-font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.c54154-actionrow {
  display: grid;
  grid-template-columns: 46px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 4px 10px 10px;
}

/* Hamburger button: bars morph into an X when the drawer is open */
.c54154-menu-btn {
  position: relative;
  width: 46px;
  height: 44px;
  border: 1px solid var(--c54154-line-strong);
  border-radius: var(--c54154-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.c54154-menu-btn:hover,
.c54154-menu-btn:focus-visible { border-color: var(--c54154-teal-bright); }

.c54154-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--c54154-paper);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.c54154-menu-btn.c54154-x .c54154-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.c54154-menu-btn.c54154-x .c54154-bar:nth-child(2) { opacity: 0; }
.c54154-menu-btn.c54154-x .c54154-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons: solid primary + outlined secondary */
.c54154-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--c54154-radius);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.c54154-btn-solid {
  background: var(--c54154-teal);
  color: var(--c54154-paper);
}

.c54154-btn-solid:hover,
.c54154-btn-solid:focus-visible { background: var(--c54154-teal-deep); }

.c54154-btn-ghost {
  border: 1px solid var(--c54154-line-strong);
  color: var(--c54154-paper);
}

.c54154-btn-ghost:hover,
.c54154-btn-ghost:focus-visible {
  border-color: var(--c54154-teal-bright);
  color: var(--c54154-teal-bright);
}

a.c54154-btn:hover { text-decoration: none; }

.c54154-btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Side drawer menu + overlay
   -------------------------------------------------------------------------- */
.c54154-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.c54154-overlay.c54154-show {
  opacity: 1;
  visibility: visible;
}

.c54154-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 130;
  width: min(84vw, 312px);
  background: #212121;
  border-right: 1px solid var(--c54154-line-strong);
  overflow-y: auto;
  padding-bottom: calc(20px + var(--c54154-safe-b));
  transform: translateX(-102%);
  transition: transform 0.22s ease;
}

.c54154-drawer.c54154-open { transform: translateX(0); }

/* Keep the drawer aligned with the centered canvas on wide screens */
@media (min-width: 431px) {
  .c54154-drawer { left: calc(50% - 215px); }
}

.c54154-drawer-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--c54154-line);
}

.c54154-drawer-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--c54154-line-strong);
  object-fit: cover;
}

.c54154-drawer-brand {
  font-family: var(--c54154-font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex: 1;
}

.c54154-drawer-close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c54154-line);
  border-radius: 4px;
  color: var(--c54154-mute);
}

.c54154-drawer-close:hover { color: var(--c54154-paper); border-color: var(--c54154-teal-bright); }

.c54154-drawer-group { padding: 10px 0 4px; }

.c54154-drawer-label {
  margin: 0 16px 6px;
  font-family: var(--c54154-font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c54154-faint);
}

.c54154-drawer-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px 0 13px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--c54154-line);
  color: var(--c54154-paper);
  font-size: 14px;
}

.c54154-drawer-link:hover {
  background: var(--c54154-panel);
  text-decoration: none;
}

.c54154-drawer-link.c54154-active {
  color: var(--c54154-teal-bright);
  background: var(--c54154-teal-soft);
  border-left-color: var(--c54154-teal-bright);
}

.c54154-drawer-cta { padding: 16px 14px 4px; }

/* --------------------------------------------------------------------------
   6. Main flow offsets (fixed header above, fixed dock below)
   -------------------------------------------------------------------------- */
.c54154-main {
  padding-top: calc(var(--c54154-top-h) + 12px);
  padding-bottom: calc(var(--c54154-dock-h) + 26px + var(--c54154-safe-b));
}

/* --------------------------------------------------------------------------
   7. Hero block
   -------------------------------------------------------------------------- */
.c54154-hero { padding: 4px 14px 2px; }

.c54154-hero-kicker {
  display: inline-block;
  font-family: var(--c54154-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c54154-teal-bright);
}

.c54154-hero h1 {
  margin: 8px 0 10px;
  font-family: var(--c54154-font-head);
  font-size: 21px;
  line-height: 1.34;
  letter-spacing: 0.01em;
}

.c54154-hero-lead {
  margin: 0 0 14px;
  color: var(--c54154-mute);
  font-size: 13.5px;
}

.c54154-hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   8. Quick facts strip (compact 3-column summary)
   -------------------------------------------------------------------------- */
.c54154-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px 4px;
}

.c54154-fact {
  padding: 9px 4px 8px;
  background: var(--c54154-panel);
  border: 1px solid var(--c54154-line);
  border-radius: var(--c54154-radius);
  text-align: center;
}

.c54154-fact-num {
  display: block;
  font-family: var(--c54154-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--c54154-teal-bright);
}

.c54154-fact-label {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--c54154-mute);
}

/* --------------------------------------------------------------------------
   9. Banner carousel
   -------------------------------------------------------------------------- */
.c54154-carousel {
  margin: 10px 14px 0;
  border: 1px solid var(--c54154-line);
  border-radius: var(--c54154-radius-lg);
  overflow: hidden;
}

.c54154-track {
  display: flex;
  transition: transform 0.3s ease;
}

.c54154-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}

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

.c54154-slide-capt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 9px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.86), rgba(10, 10, 10, 0));
}

.c54154-slide-title {
  display: block;
  font-family: var(--c54154-font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--c54154-paper);
}

.c54154-slide-sub {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: rgba(245, 245, 245, 0.78);
}

.c54154-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 9px 0 3px;
}

.c54154-dot {
  width: 22px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c54154-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.28);
}

.c54154-dot.c54154-on::before { background: var(--c54154-teal-bright); }

/* --------------------------------------------------------------------------
   10. Category chips (horizontal scroll)
   -------------------------------------------------------------------------- */
.c54154-chips {
  display: flex;
  gap: 6px;
  padding: 10px 14px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.c54154-chips::-webkit-scrollbar { display: none; }

.c54154-chip {
  flex: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: var(--c54154-panel);
  border: 1px solid var(--c54154-line);
  border-radius: var(--c54154-radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--c54154-mute);
  scroll-snap-align: start;
}

.c54154-chip:hover {
  border-color: var(--c54154-teal-bright);
  color: var(--c54154-teal-bright);
  text-decoration: none;
}

.c54154-chip b {
  font-weight: 700;
  color: var(--c54154-teal-bright);
}

/* --------------------------------------------------------------------------
   11. Game sections and tiles
   -------------------------------------------------------------------------- */
.c54154-section { padding: 4px 14px 0; }

.c54154-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 4px;
}

.c54154-sec-head h2 {
  margin: 0;
  font-family: var(--c54154-font-head);
  font-size: 16.5px;
  line-height: 1.38;
  letter-spacing: 0.01em;
}

.c54154-sec-count {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--c54154-faint);
  white-space: nowrap;
}

.c54154-sec-intro {
  margin: 3px 0 10px;
  font-size: 12.5px;
  color: var(--c54154-mute);
}

.c54154-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 396px) {
  .c54154-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Game tile: square icon + bottom name strip */
.c54154-game {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--c54154-panel);
  border: 1px solid var(--c54154-line);
  border-radius: var(--c54154-radius);
  overflow: hidden;
  text-align: center;
}

.c54154-game:hover { border-color: var(--c54154-teal-bright); background: var(--c54154-panel-raise); }

.c54154-game-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.c54154-game-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 31px;
  padding: 4px 4px 5px;
  border-top: 1px solid var(--c54154-line);
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--c54154-paper);
  overflow-wrap: break-word;
}

/* Related real subpages shown under each category grid */
.c54154-sec-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 11px 0 6px;
  border-top: 1px dashed var(--c54154-line);
  margin-top: 12px;
  font-size: 12px;
  color: var(--c54154-mute);
}

.c54154-sec-links a { font-weight: 600; }

.c54154-sec-links a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   12. Content modules after the game area
   -------------------------------------------------------------------------- */
.c54154-module { margin: 24px 14px 0; }

.c54154-module-h {
  margin: 0 0 7px;
  font-family: var(--c54154-font-head);
  font-size: 16.5px;
  line-height: 1.4;
}

.c54154-lede {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--c54154-teal-bright);
  font-size: 13.5px;
  color: var(--c54154-paper);
}

.c54154-mod-txt {
  margin: 0 0 12px;
  font-size: 12.8px;
  color: var(--c54154-mute);
}

.c54154-mod-txt a { font-weight: 600; }

/* Milestone track (achievements) */
.c54154-milestones { margin: 0 0 6px; padding: 0; list-style: none; }

.c54154-milestones li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 7px 0;
}

.c54154-milestones li + li { border-top: 1px solid var(--c54154-line); }

.c54154-milestone-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--c54154-teal-bright);
  border-radius: 50%;
  color: var(--c54154-teal-bright);
  font-family: var(--c54154-font-head);
  font-size: 13px;
  font-weight: 700;
}

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

.c54154-milestone p {
  margin: 1px 0 0;
  font-size: 12.3px;
  color: var(--c54154-mute);
}

/* Numbered steps (how to play) */
.c54154-steps {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  counter-reset: c54154-step;
}

.c54154-steps li {
  position: relative;
  counter-increment: c54154-step;
  padding: 7px 0 7px 38px;
  font-size: 12.8px;
  color: var(--c54154-mute);
}

.c54154-steps li + li { border-top: 1px solid var(--c54154-line); }

.c54154-steps li::before {
  content: counter(c54154-step);
  position: absolute;
  left: 0;
  top: 9px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c54154-teal-soft);
  border: 1px solid var(--c54154-teal);
  border-radius: 4px;
  color: var(--c54154-teal-bright);
  font-family: var(--c54154-font-head);
  font-size: 12.5px;
  font-weight: 700;
}

.c54154-steps a { font-weight: 600; }

.c54154-h3 {
  margin: 14px 0 6px;
  font-family: var(--c54154-font-head);
  font-size: 13.5px;
  color: var(--c54154-paper);
}

/* Selection guide rows */
.c54154-guide-rows { display: grid; gap: 8px; }

.c54154-guide-row {
  padding: 10px 12px;
  background: var(--c54154-panel);
  border: 1px solid var(--c54154-line);
  border-radius: var(--c54154-radius);
}

.c54154-guide-row b {
  display: block;
  font-family: var(--c54154-font-head);
  font-size: 13px;
  color: var(--c54154-teal-bright);
}

.c54154-guide-row p {
  margin: 2px 0 0;
  font-size: 12.3px;
  color: var(--c54154-mute);
}

/* Entity relationship map */
.c54154-map {
  margin: 0 0 8px;
  padding-left: 0;
  list-style: none;
}

.c54154-map > li {
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--c54154-line-strong);
  font-size: 12.8px;
  color: var(--c54154-mute);
}

.c54154-map > li > b {
  display: block;
  font-family: var(--c54154-font-head);
  font-size: 13px;
  color: var(--c54154-paper);
}

.c54154-map ul {
  margin: 3px 0 0;
  padding-left: 12px;
  list-style: none;
}

.c54154-map ul li {
  position: relative;
  padding: 2px 0 2px 12px;
  font-size: 12.2px;
}

.c54154-map ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 1.5px;
  background: var(--c54154-faint);
}

.c54154-map a { font-weight: 600; }

/* Expandable term list (fact summary then expand) */
.c54154-terms { display: grid; gap: 7px; }

.c54154-term {
  border: 1px solid var(--c54154-line);
  border-radius: var(--c54154-radius);
  background: var(--c54154-panel);
}

.c54154-term[open] { border-color: var(--c54154-teal); }

.c54154-term summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  font-family: var(--c54154-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--c54154-paper);
  list-style: none;
  cursor: pointer;
}

.c54154-term summary::-webkit-details-marker { display: none; }

.c54154-term summary::after {
  content: "+";
  flex: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--c54154-teal-bright);
}

.c54154-term[open] summary { color: var(--c54154-teal-bright); }

.c54154-term[open] summary::after { content: "\2212"; }

.c54154-term-body {
  padding: 0 12px 11px;
  font-size: 12.4px;
  color: var(--c54154-mute);
}

/* Inline note used inside modules */
.c54154-note {
  margin: 10px 0 6px;
  padding: 9px 11px;
  border: 1px dashed var(--c54154-line-strong);
  border-radius: var(--c54154-radius);
  font-size: 12px;
  color: var(--c54154-mute);
}

.c54154-note a { font-weight: 600; }

/* --------------------------------------------------------------------------
   13. Extended home footer (brand > promotions > directory > disclaimer)
   -------------------------------------------------------------------------- */
.c54154-extfoot {
  margin: 30px 14px 6px;
  padding-top: 16px;
  border-top: 2px solid var(--c54154-teal);
}

.c54154-ef-title {
  margin: 16px 0 8px;
  font-family: var(--c54154-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c54154-teal-bright);
}

.c54154-ef-title:first-child { margin-top: 0; }

.c54154-ef-brand {
  margin: 0;
  font-size: 12.5px;
  color: var(--c54154-mute);
}

.c54154-ef-promos {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c54154-ef-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--c54154-panel);
  border: 1px solid var(--c54154-line);
  border-radius: var(--c54154-radius);
  font-size: 12.8px;
  font-weight: 600;
  color: var(--c54154-paper);
  text-align: left;
}

.c54154-ef-promo:hover { border-color: var(--c54154-teal-bright); color: var(--c54154-teal-bright); }

.c54154-ef-arrow {
  flex: none;
  color: var(--c54154-teal-bright);
  font-size: 15px;
  line-height: 1;
}

.c54154-ef-directory {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 360px) {
  .c54154-ef-directory { grid-template-columns: 1fr 1fr; }
}

.c54154-ef-directory a {
  display: block;
  padding: 9px 2px;
  border-bottom: 1px solid var(--c54154-line);
  font-size: 12.3px;
  color: var(--c54154-mute);
}

.c54154-ef-directory a:hover { color: var(--c54154-teal-bright); }

.c54154-ef-note {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--c54154-line-strong);
  border-radius: var(--c54154-radius);
  font-size: 11.3px;
  line-height: 1.6;
  color: var(--c54154-faint);
}

.c54154-ef-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border: 1px solid var(--c54154-line-strong);
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c54154-mute);
}

/* --------------------------------------------------------------------------
   14. Common footer (copyright only)
   -------------------------------------------------------------------------- */
.c54154-footer {
  padding: 16px 14px 6px;
  border-top: 1px solid var(--c54154-line);
  text-align: center;
  font-size: 11.5px;
  color: var(--c54154-faint);
}

/* --------------------------------------------------------------------------
   15. Fixed mobile bottom dock (5 roles, outlined bar)
   -------------------------------------------------------------------------- */
.c54154-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  max-width: var(--c54154-canvas);
  margin-inline: auto;
  background: rgba(22, 22, 22, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--c54154-line-strong);
  padding-bottom: var(--c54154-safe-b);
}

.c54154-dock-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: var(--c54154-dock-h);
}

.c54154-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 44px;
  color: var(--c54154-mute);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.c54154-dock-item:hover { color: var(--c54154-paper); }

.c54154-dock-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease;
}

.c54154-dock-ico svg {
  width: 21px;
  height: 21px;
  display: block;
}

/* Active item: teal accent with a slight lift */
.c54154-dock-item.c54154-active { color: var(--c54154-teal-bright); }

.c54154-dock-item.c54154-active .c54154-dock-ico { transform: translateY(-2px); }

/* Promo dock entries carry a small dot to separate them from real routes */
.c54154-dock-item.c54154-dock-promo { color: var(--c54154-paper); }

.c54154-dock-item.c54154-dock-promo:hover { color: var(--c54154-teal-bright); }

.c54154-dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c54154-teal-bright);
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   16. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .c54154-track,
  .c54154-drawer,
  .c54154-overlay,
  .c54154-dock-ico,
  .c54154-bar {
    transition: none;
  }
}
