/* ==========================================================================
   phdream-23-login-visuals-385c8e.css
   Mobile-first stylesheet for phdream 23 login (phdream23login.click)
   Palette: #273746 deep navy base | #95A5A6 muted steel | #FA8072 salmon
            accent | #ECF0F1 light text | #BBBBBB soft line
   Design direction: humanist type, pill CTAs, rounded floating game cards,
   guide-sectioned rhythm, colour-state-only motion budget.
   All classes and custom properties use the ui385c8- prefix.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens and reset
   -------------------------------------------------------------------------- */
:root {
  --ui385c8-ink: #273746;            /* deep navy - canvas and accent text  */
  --ui385c8-steel: #95A5A6;          /* muted steel - secondary text        */
  --ui385c8-coral: #FA8072;          /* salmon - primary action colour      */
  --ui385c8-mist: #ECF0F1;           /* light mist - main body text         */
  --ui385c8-line: #BBBBBB;           /* soft line - hairlines and borders   */
  --ui385c8-void: #1a232c;           /* outside-canvas backdrop             */
  --ui385c8-veil: rgba(236, 240, 241, 0.05);
  --ui385c8-veil2: rgba(236, 240, 241, 0.09);
  --ui385c8-hair: rgba(187, 187, 187, 0.18);
  --ui385c8-hair2: rgba(187, 187, 187, 0.32);
  --ui385c8-shadow: 0 6px 18px rgba(15, 22, 30, 0.35);
  --ui385c8-r-card: 14px;
  --ui385c8-r-sect: 18px;
  --ui385c8-gap: 12px;
  --ui385c8-bar: 62px;               /* bottom nav height                   */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--ui385c8-void);
  color: var(--ui385c8-mist);
  font-family: "Trebuchet MS", "Segoe UI", -apple-system, BlinkMacSystemFont,
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  min-height: 100vh;
}

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

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

a {
  color: var(--ui385c8-coral);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul.ui385c8-clean,
ol.ui385c8-clean {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   2. Phone canvas - the page is a centred 430px canvas on any screen
   -------------------------------------------------------------------------- */
.ui385c8-canvas {
  position: relative;
  max-width: 430px;                 /* literal 430px phone canvas           */
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ui385c8-ink);
  box-shadow: 0 0 0 1px rgba(187, 187, 187, 0.08), 0 0 44px rgba(10, 16, 22, 0.6);
  overflow-x: hidden;
}

.ui385c8-main {
  padding: 0 12px calc(var(--ui385c8-bar) + 26px + env(safe-area-inset-bottom));
}

/* --------------------------------------------------------------------------
   3. Sticky top bar - brand row + action row (two-layer arrangement)
   -------------------------------------------------------------------------- */
.ui385c8-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(39, 55, 70, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ui385c8-hair);
}

.ui385c8-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 7px 12px;
}

.ui385c8-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ui385c8-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  box-shadow: 0 2px 8px rgba(10, 16, 22, 0.4);
}

.ui385c8-brand b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ui385c8-mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui385c8-menubtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ui385c8-hair2);
  border-radius: 999px;
  color: var(--ui385c8-mist);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ui385c8-menubtn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui385c8-menubtn:hover,
.ui385c8-menubtn[aria-expanded="true"] {
  border-color: var(--ui385c8-coral);
  color: var(--ui385c8-coral);
}

.ui385c8-actionrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 9px;
}

/* Solid primary pill + outlined secondary pill */
.ui385c8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, text-decoration 0.2s ease;
}

.ui385c8-btn--solid {
  background: var(--ui385c8-coral);
  color: var(--ui385c8-ink);
  border: 1px solid var(--ui385c8-coral);
}

.ui385c8-btn--solid:hover {
  background: #fb9488;
  border-color: #fb9488;
  text-decoration: none;
}

.ui385c8-btn--ghost {
  background: transparent;
  color: var(--ui385c8-mist);
  border: 1px solid var(--ui385c8-coral);
}

.ui385c8-btn--ghost:hover {
  background: rgba(250, 128, 114, 0.14);
  text-decoration: none;
}

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

.ui385c8-btn--sm {
  min-height: 38px;
  font-size: 13px;
  padding: 0 14px;
}

/* --------------------------------------------------------------------------
   4. Layered drop-down menu (tiers: guides / games)
   -------------------------------------------------------------------------- */
.ui385c8-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: #22303d;
  border-bottom: 1px solid var(--ui385c8-hair);
  box-shadow: var(--ui385c8-shadow);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.ui385c8-menu.ui385c8-open {
  display: block;
}

.ui385c8-menugroup {
  padding: 10px 12px 4px;
}

.ui385c8-menugroup + .ui385c8-menugroup {
  border-top: 1px solid var(--ui385c8-hair);
}

.ui385c8-menuover {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ui385c8-steel);
  padding: 4px 2px 6px;
}

.ui385c8-menulink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  border-radius: 10px;
  color: var(--ui385c8-mist);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.ui385c8-menulink svg {
  width: 17px;
  height: 17px;
  stroke: var(--ui385c8-coral);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.ui385c8-menulink:hover,
.ui385c8-menulink.ui385c8-here {
  background: var(--ui385c8-veil);
  color: var(--ui385c8-coral);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Hero and search-intent lead
   -------------------------------------------------------------------------- */
.ui385c8-hero {
  padding: 18px 2px 6px;
}

.ui385c8-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ui385c8-steel);
  margin-bottom: 9px;
}

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

.ui385c8-hero h1 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ui385c8-mist);
}

.ui385c8-hero h1 em {
  font-style: normal;
  color: var(--ui385c8-coral);
}

.ui385c8-lede {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ui385c8-steel);
  line-height: 1.66;
}

.ui385c8-lede strong {
  color: var(--ui385c8-mist);
  font-weight: 700;
}

.ui385c8-heropanel {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--ui385c8-r-sect);
  background: linear-gradient(160deg, rgba(250, 128, 114, 0.16), rgba(236, 240, 241, 0.05));
  border: 1px solid var(--ui385c8-hair);
}

.ui385c8-heropanel p {
  font-size: 12.5px;
  color: var(--ui385c8-steel);
  line-height: 1.6;
}

.ui385c8-heropanel p + p {
  margin-top: 6px;
}

.ui385c8-ctarow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.ui385c8-ctarow .ui385c8-btn--link {
  border: 1px solid var(--ui385c8-hair2);
  color: var(--ui385c8-mist);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ui385c8-ctarow .ui385c8-btn--link:hover {
  border-color: var(--ui385c8-coral);
  color: var(--ui385c8-coral);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. Promo banner carousel
   -------------------------------------------------------------------------- */
.ui385c8-stage {
  position: relative;
  margin-top: 14px;
  border-radius: var(--ui385c8-r-sect);
  overflow: hidden;
  border: 1px solid var(--ui385c8-hair);
  box-shadow: var(--ui385c8-shadow);
  background: #22303d;
}

.ui385c8-slide {
  display: none;
  width: 100%;
}

.ui385c8-slide.ui385c8-on {
  display: block;
}

.ui385c8-slidebtn {
  display: block;
  width: 100%;
  text-align: left;
}

.ui385c8-slidebtn img {
  width: 100%;
  aspect-ratio: 2.42 / 1;
  object-fit: cover;
}

.ui385c8-slidecap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(26, 35, 44, 0) 0%, rgba(26, 35, 44, 0.88) 78%);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ui385c8-mist);
  pointer-events: none;
}

.ui385c8-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.ui385c8-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(236, 240, 241, 0.35);
  border: 1px solid rgba(187, 187, 187, 0.4);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ui385c8-dot.ui385c8-on {
  background: var(--ui385c8-coral);
  border-color: var(--ui385c8-coral);
}

/* --------------------------------------------------------------------------
   7. Category chip strip (lobby shortcuts)
   -------------------------------------------------------------------------- */
.ui385c8-chiprail {
  display: flex;
  gap: 8px;
  margin: 14px 0 4px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ui385c8-chiprail::-webkit-scrollbar {
  display: none;
}

.ui385c8-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ui385c8-hair2);
  color: var(--ui385c8-mist);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--ui385c8-veil);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ui385c8-chip svg {
  width: 14px;
  height: 14px;
  stroke: var(--ui385c8-coral);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui385c8-chip:hover {
  border-color: var(--ui385c8-coral);
  color: var(--ui385c8-coral);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   8. Guide sections - shared rhythm for every content block
   -------------------------------------------------------------------------- */
.ui385c8-sect {
  margin-top: 18px;
  padding: 16px 14px 18px;
  border-radius: var(--ui385c8-r-sect);
  background: var(--ui385c8-veil);
  border: 1px solid var(--ui385c8-hair);
  scroll-margin-top: 104px;
}

.ui385c8-secthead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ui385c8-sectbadge {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 128, 114, 0.14);
  border: 1px solid rgba(250, 128, 114, 0.4);
}

.ui385c8-sectbadge svg {
  width: 19px;
  height: 19px;
  stroke: var(--ui385c8-coral);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui385c8-sect h2 {
  font-size: 17.5px;
  line-height: 1.34;
  font-weight: 700;
  color: var(--ui385c8-mist);
}

.ui385c8-sectnote {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ui385c8-steel);
  line-height: 1.62;
}

.ui385c8-sectnote strong {
  color: var(--ui385c8-mist);
}

.ui385c8-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ui385c8-coral);
  border: 1px solid rgba(250, 128, 114, 0.45);
  vertical-align: 2px;
}

.ui385c8-moreall {
  margin-top: 10px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   9. Game grids and floating game cards
   -------------------------------------------------------------------------- */
.ui385c8-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.ui385c8-gcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--ui385c8-r-card);
  padding: 5px 5px 7px;
  background: var(--ui385c8-veil2);
  border: 1px solid var(--ui385c8-hair);
  box-shadow: 0 3px 10px rgba(12, 19, 26, 0.28);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  text-align: center;
  min-width: 0;
}

.ui385c8-gcard:hover {
  border-color: rgba(250, 128, 114, 0.75);
  background: rgba(250, 128, 114, 0.1);
}

.ui385c8-gcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #22303d;
}

.ui385c8-gcard span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ui385c8-mist);
  min-height: 27px;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   10. Editorial modules below the lobby
   -------------------------------------------------------------------------- */
.ui385c8-sect--paper {
  background: var(--ui385c8-veil);
}

.ui385c8-sect h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ui385c8-coral);
  margin-top: 14px;
}

.ui385c8-sect p {
  margin-top: 6px;
  font-size: 12.8px;
  color: var(--ui385c8-steel);
  line-height: 1.66;
}

.ui385c8-sect p strong,
.ui385c8-sect li strong {
  color: var(--ui385c8-mist);
  font-weight: 700;
}

.ui385c8-sect a.ui385c8-inline {
  color: var(--ui385c8-coral);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(250, 128, 114, 0.5);
}

.ui385c8-promorail {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ui385c8-promocell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--ui385c8-hair);
  background: rgba(39, 55, 70, 0.55);
}

.ui385c8-promocell svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--ui385c8-coral);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui385c8-promocell b {
  display: block;
  font-size: 12.5px;
  color: var(--ui385c8-mist);
}

.ui385c8-promocell small {
  display: block;
  font-size: 11px;
  color: var(--ui385c8-steel);
  line-height: 1.45;
}

.ui385c8-duo {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ui385c8-halfframe {
  border-radius: 14px;
  border: 1px solid var(--ui385c8-hair);
  padding: 12px;
  background: rgba(39, 55, 70, 0.5);
}

.ui385c8-halfframe h4 {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 7px;
}

.ui385c8-halfframe--good h4 {
  color: #7fd1a8;
}

.ui385c8-halfframe--warn h4 {
  color: var(--ui385c8-coral);
}

.ui385c8-halfframe ul {
  list-style: none;
}

.ui385c8-halfframe li {
  position: relative;
  padding-left: 16px;
  font-size: 12.3px;
  color: var(--ui385c8-steel);
  line-height: 1.58;
}

.ui385c8-halfframe li + li {
  margin-top: 6px;
}

.ui385c8-halfframe li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ui385c8-steel);
}

.ui385c8-halfframe--good li::before {
  background: #7fd1a8;
}

.ui385c8-halfframe--warn li::before {
  background: var(--ui385c8-coral);
}

.ui385c8-steps {
  counter-reset: ui385c8step;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.ui385c8-step {
  counter-increment: ui385c8step;
  position: relative;
  padding: 9px 12px 9px 44px;
  border-radius: 12px;
  background: rgba(39, 55, 70, 0.55);
  border: 1px solid var(--ui385c8-hair);
  font-size: 12.5px;
  color: var(--ui385c8-steel);
  line-height: 1.56;
}

.ui385c8-step b {
  color: var(--ui385c8-mist);
}

.ui385c8-step::before {
  content: counter(ui385c8step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(250, 128, 114, 0.16);
  border: 1px solid rgba(250, 128, 114, 0.55);
  color: var(--ui385c8-coral);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ui385c8-milestones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ui385c8-milestone {
  border-radius: 12px;
  border: 1px solid var(--ui385c8-hair);
  background: rgba(39, 55, 70, 0.55);
  padding: 10px 11px;
}

.ui385c8-milestone b {
  display: block;
  font-size: 12.3px;
  color: var(--ui385c8-mist);
}

.ui385c8-milestone small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ui385c8-steel);
}

/* --------------------------------------------------------------------------
   11. Homepage extended footer (directory > brand > promotions > disclaimer)
   -------------------------------------------------------------------------- */
.ui385c8-xfoot {
  margin-top: 20px;
  border-radius: var(--ui385c8-r-sect);
  border: 1px solid var(--ui385c8-hair);
  background: #22303d;
  padding: 16px 13px 16px;
}

.ui385c8-xfoot h2 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ui385c8-mist);
  line-height: 1.36;
}

.ui385c8-xblockover {
  margin-top: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ui385c8-coral);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ui385c8-hair);
}

.ui385c8-dirgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.ui385c8-dirlink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 9px;
  border-radius: 11px;
  border: 1px solid var(--ui385c8-hair);
  background: rgba(39, 55, 70, 0.55);
  color: var(--ui385c8-mist);
  font-size: 11.8px;
  font-weight: 600;
  line-height: 1.25;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ui385c8-dirlink svg {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: var(--ui385c8-coral);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui385c8-dirlink:hover {
  border-color: var(--ui385c8-coral);
  color: var(--ui385c8-coral);
  text-decoration: none;
}

.ui385c8-brandnote {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ui385c8-steel);
  line-height: 1.62;
}

.ui385c8-promolist {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.ui385c8-promoentry {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250, 128, 114, 0.5);
  background: rgba(250, 128, 114, 0.1);
  color: var(--ui385c8-mist);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ui385c8-promoentry:hover {
  background: rgba(250, 128, 114, 0.22);
  border-color: var(--ui385c8-coral);
}

.ui385c8-promoentry svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: var(--ui385c8-coral);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui385c8-promoentry small {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ui385c8-steel);
}

.ui385c8-disclaimer {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--ui385c8-hair2);
  font-size: 11.3px;
  line-height: 1.58;
  color: var(--ui385c8-steel);
}

/* --------------------------------------------------------------------------
   12. Copyright bar
   -------------------------------------------------------------------------- */
.ui385c8-legal {
  margin-top: 12px;
  padding: 12px 4px 4px;
  border-top: 1px solid var(--ui385c8-hair);
  text-align: center;
  font-size: 11px;
  color: var(--ui385c8-steel);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. Fixed five-role bottom navigation
   -------------------------------------------------------------------------- */
.ui385c8-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;                 /* stays inside the phone canvas        */
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(28, 40, 52, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ui385c8-hair2);
  padding-bottom: env(safe-area-inset-bottom);
}

.ui385c8-bnitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--ui385c8-bar);
  padding: 7px 2px 6px;
  color: var(--ui385c8-steel);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.ui385c8-bnitem svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease;
}

.ui385c8-bnitem .ui385c8-fillzone {
  fill: transparent;
  transition: fill 0.2s ease;
}

.ui385c8-bnitem:hover {
  color: var(--ui385c8-mist);
}

/* Active role: filled icon treatment + short vertical lift */
.ui385c8-bnitem.ui385c8-bnitem--on {
  color: var(--ui385c8-coral);
}

.ui385c8-bnitem.ui385c8-bnitem--on svg {
  transform: translateY(-2px);
}

.ui385c8-bnitem.ui385c8-bnitem--on .ui385c8-fillzone {
  fill: rgba(250, 128, 114, 0.3);
}

.ui385c8-bnitem.ui385c8-bnitem--on::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ui385c8-coral);
}

.ui385c8-bnitem--cta .ui385c8-bnlabel {
  color: var(--ui385c8-mist);
}

.ui385c8-bnitem--cta {
  color: #c8cfd2;
}

/* --------------------------------------------------------------------------
   14. Small-screen refinements
   -------------------------------------------------------------------------- */
@media (max-width: 430px) {
  .ui385c8-hero h1 {
    font-size: 20.5px;
  }

  .ui385c8-sect h2 {
    font-size: 16.5px;
  }
}

@media (max-width: 374px) {
  .ui385c8-main {
    padding-left: 9px;
    padding-right: 9px;
  }

  .ui385c8-grid {
    gap: 5px;
  }

  .ui385c8-gcard span {
    font-size: 9.8px;
  }

  .ui385c8-ctarow,
  .ui385c8-actionrow {
    gap: 6px;
  }

  .ui385c8-milestones {
    grid-template-columns: 1fr;
  }

  .ui385c8-bnitem {
    font-size: 9.4px;
  }
}

@media (min-width: 431px) {
  .ui385c8-canvas {
    border-radius: 0 0 18px 18px;
  }
}

/* Honour reduced-motion preferences: colour states stay, movement stops */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ui385c8-bnitem.ui385c8-bnitem--on svg,
  .ui385c8-bnitem svg {
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
