/* ============================================================
   ph375.homes - mobile layer styles
   Prefix contract: every class uses c6857f-
   Canvas: 320-430px phone frame, centered on wide screens
   Visual direction: geometric headings + neutral body,
   stroke-dominant restrained rounding, outlined tile cards,
   fact-summary-then-expand rhythm, sliding focus indicator,
   softly rounded text CTA groups.
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --c6857f-ink: #262626;
  --c6857f-ink-deep: #1c1c1c;
  --c6857f-ink-raise: #2f2f2f;
  --c6857f-line: rgba(224, 255, 255, 0.22);
  --c6857f-line-soft: rgba(224, 255, 255, 0.12);
  --c6857f-cyan: #e0ffff;
  --c6857f-mint: #e8f5e8;
  --c6857f-pink: #ffc0cb;
  --c6857f-pink-strong: #ffb3ff;
  --c6857f-mute: #999999;
  --c6857f-radius-xs: 4px;
  --c6857f-radius-sm: 6px;
  --c6857f-radius: 8px;
  --c6857f-radius-lg: 12px;
  --c6857f-font-head: "Avenir Next", "Futura", "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  --c6857f-font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --c6857f-topbar-h: 58px;
  --c6857f-bottomnav-h: 62px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #161616;
  color: var(--c6857f-cyan);
  font-family: var(--c6857f-font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; }
button { font-family: inherit; }

.c6857f-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c6857f-ink);
  overflow-x: hidden;
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.55);
}

/* ---------- accessibility helpers ---------- */
.c6857f-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  background: var(--c6857f-pink);
  color: var(--c6857f-ink);
  padding: 10px 16px;
  border-radius: var(--c6857f-radius-sm);
  font-weight: 700;
}
.c6857f-skip:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--c6857f-pink-strong);
  outline-offset: 2px;
  border-radius: var(--c6857f-radius-xs);
}

/* ---------- top action band ---------- */
.c6857f-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--c6857f-topbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(38, 38, 38, 0.97);
  border-bottom: 1px solid var(--c6857f-line);
  backdrop-filter: blur(6px);
  z-index: 60;
}

.c6857f-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: var(--c6857f-cyan);
}

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

.c6857f-brand-name {
  font-family: var(--c6857f-font-head);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  color: var(--c6857f-pink);
}

.c6857f-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.c6857f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: var(--c6857f-radius-sm);
  border: 1px solid transparent;
  font-family: var(--c6857f-font-head);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.c6857f-btn-register {
  background: var(--c6857f-pink);
  color: var(--c6857f-ink);
}
.c6857f-btn-register:active { background: var(--c6857f-pink-strong); }

.c6857f-btn-login {
  background: transparent;
  border-color: var(--c6857f-cyan);
  color: var(--c6857f-cyan);
}
.c6857f-btn-login:active { background: rgba(224, 255, 255, 0.1); }

.c6857f-burger {
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius-sm);
  cursor: pointer;
}
.c6857f-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c6857f-cyan);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.c6857f-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.c6857f-burger.is-open span:nth-child(2) { opacity: 0; }
.c6857f-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- stacked overlay menu ---------- */
.c6857f-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 55;
}
.c6857f-scrim.is-open { opacity: 1; visibility: visible; }

.c6857f-drawer {
  position: fixed;
  top: var(--c6857f-topbar-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  max-height: 0;
  overflow: hidden;
  background: var(--c6857f-ink-deep);
  border-bottom: 1px solid var(--c6857f-line-soft);
  transition: max-height 0.3s ease;
  z-index: 58;
}
.c6857f-drawer.is-open { max-height: 560px; }

.c6857f-drawer-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 10px;
}

.c6857f-drawer-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 16px;
  color: var(--c6857f-mint);
  text-decoration: none;
  font-family: var(--c6857f-font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--c6857f-line-soft);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.c6857f-drawer-list a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--c6857f-mute);
  border-right: 2px solid var(--c6857f-mute);
  transform: rotate(45deg);
  flex: none;
}
.c6857f-drawer-list a:active { background: rgba(255, 192, 203, 0.1); }
.c6857f-drawer-list a.is-current {
  background: var(--c6857f-cyan);
  color: var(--c6857f-ink);
}
.c6857f-drawer-list a.is-current::after { border-color: var(--c6857f-ink); }

/* ---------- main column ---------- */
.c6857f-main {
  padding: calc(var(--c6857f-topbar-h) + 14px) 12px calc(var(--c6857f-bottomnav-h) + 26px + env(safe-area-inset-bottom));
}

/* ---------- hero carousel ---------- */
.c6857f-carousel { position: relative; }

.c6857f-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--c6857f-radius-lg);
  border: 1px solid var(--c6857f-line);
}
.c6857f-track::-webkit-scrollbar { display: none; }

.c6857f-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 0;
  border: 0;
  background: var(--c6857f-ink-deep);
  cursor: pointer;
}
.c6857f-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.c6857f-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.c6857f-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 99px;
  border: 1px solid var(--c6857f-cyan);
  background: transparent;
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.c6857f-dot.is-on {
  width: 22px;
  background: var(--c6857f-pink);
  border-color: var(--c6857f-pink);
}

/* ---------- intro / h1 ---------- */
.c6857f-intro { margin-top: 18px; }

.c6857f-kicker {
  display: inline-block;
  font-family: var(--c6857f-font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c6857f-pink-strong);
  border: 1px solid rgba(255, 179, 255, 0.4);
  border-radius: var(--c6857f-radius-xs);
  padding: 3px 8px;
  margin-bottom: 10px;
}

.c6857f-h1 {
  font-family: var(--c6857f-font-head);
  font-size: clamp(1.42rem, 5.6vw, 1.78rem);
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--c6857f-cyan);
  margin: 0 0 10px;
}

.c6857f-lead {
  margin: 0 0 10px;
  color: var(--c6857f-mint);
}
.c6857f-lead + .c6857f-lead { color: var(--c6857f-mute); font-size: 0.92rem; }

/* ---------- fact chips strip ---------- */
.c6857f-hscroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.c6857f-hscroll::-webkit-scrollbar { display: none; }

.c6857f-facts { margin-top: 14px; }

.c6857f-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  background: rgba(232, 245, 232, 0.04);
  font-size: 0.78rem;
  color: var(--c6857f-mint);
  white-space: nowrap;
}
.c6857f-chip b { color: var(--c6857f-pink); font-weight: 700; }

/* ---------- section frame ---------- */
.c6857f-sec { margin-top: 26px; }

.c6857f-sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--c6857f-line);
  padding-bottom: 7px;
  margin-bottom: 6px;
  position: relative;
}
.c6857f-sec-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  background: var(--c6857f-pink);
  transition: width 0.3s ease;
}

.c6857f-h2 {
  font-family: var(--c6857f-font-head);
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--c6857f-cyan);
  margin: 0;
}

.c6857f-sec-note {
  margin: 8px 0 10px;
  font-size: 0.88rem;
  color: var(--c6857f-mute);
}
.c6857f-sec-note strong { color: var(--c6857f-mint); font-weight: 600; }

.c6857f-sec-links {
  margin: 10px 0 2px;
  font-size: 0.82rem;
  color: var(--c6857f-mute);
}
.c6857f-sec-links a {
  color: var(--c6857f-pink-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.c6857f-sec-links a:active { color: var(--c6857f-pink); }

/* ---------- outlined tile game grid ---------- */
.c6857f-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.c6857f-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  background: rgba(224, 255, 255, 0.03);
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.c6857f-tile:active {
  border-color: var(--c6857f-pink-strong);
  background: rgba(255, 192, 203, 0.08);
}

.c6857f-tile-art {
  display: block;
  border-radius: var(--c6857f-radius-sm);
  overflow: hidden;
  background: var(--c6857f-ink-deep);
}
.c6857f-tile-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.c6857f-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--c6857f-mint);
}

/* ---------- winners strip ---------- */
.c6857f-win-chip {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 128px;
  padding: 8px 10px;
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  background: rgba(232, 245, 232, 0.04);
}
.c6857f-win-chip b {
  font-family: var(--c6857f-font-head);
  font-size: 0.82rem;
  color: var(--c6857f-pink);
}
.c6857f-win-chip span { font-size: 0.72rem; color: var(--c6857f-mute); }
.c6857f-win-chip small { font-size: 0.72rem; color: var(--c6857f-mint); }

/* ---------- feature boxes ---------- */
.c6857f-feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.c6857f-feat {
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  padding: 10px;
  background: rgba(224, 255, 255, 0.02);
}
.c6857f-feat h3 {
  font-family: var(--c6857f-font-head);
  font-size: 0.85rem;
  margin: 0 0 5px;
  color: var(--c6857f-pink-strong);
}
.c6857f-feat p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--c6857f-mute);
}

/* ---------- numbered steps ---------- */
.c6857f-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  counter-reset: c6857f-step;
}
.c6857f-steps li {
  counter-increment: c6857f-step;
  position: relative;
  padding: 0 0 12px 38px;
  font-size: 0.86rem;
  color: var(--c6857f-mint);
}
.c6857f-steps li::before {
  content: counter(c6857f-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c6857f-pink);
  border-radius: 50%;
  font-family: var(--c6857f-font-head);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--c6857f-pink);
}
.c6857f-steps li b { color: var(--c6857f-cyan); }
.c6857f-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 2px;
  width: 1px;
  background: var(--c6857f-line-soft);
}

/* ---------- category highlight rows ---------- */
.c6857f-catrow {
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  padding: 10px 12px;
  margin-top: 8px;
  background: rgba(224, 255, 255, 0.02);
}
.c6857f-catrow h3 {
  font-family: var(--c6857f-font-head);
  font-size: 0.88rem;
  margin: 0 0 4px;
  color: var(--c6857f-cyan);
}
.c6857f-catrow h3 em {
  font-style: normal;
  color: var(--c6857f-pink);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 6px;
}
.c6857f-catrow p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--c6857f-mute);
}

/* ---------- expandable answers ---------- */
.c6857f-qa {
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  margin-top: 8px;
  background: rgba(224, 255, 255, 0.02);
  overflow: hidden;
}
.c6857f-qa summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 40px 11px 12px;
  font-family: var(--c6857f-font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--c6857f-mint);
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.c6857f-qa summary::-webkit-details-marker { display: none; }
.c6857f-qa summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
  color: var(--c6857f-pink);
  transition: transform 0.25s ease;
}
.c6857f-qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.c6857f-qa[open] summary { color: var(--c6857f-pink-strong); }
.c6857f-qa div { padding: 0 12px 12px; font-size: 0.82rem; color: var(--c6857f-mute); }
.c6857f-qa div a { color: var(--c6857f-pink-strong); }

.c6857f-answer {
  border-left: 3px solid var(--c6857f-pink);
  padding: 8px 0 8px 12px;
  margin: 10px 0 4px;
  font-size: 0.88rem;
  color: var(--c6857f-mint);
}

/* ---------- open answer cards (help pages) ---------- */
.c6857f-qa-open {
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  padding: 11px 12px;
  margin-top: 8px;
  background: rgba(224, 255, 255, 0.02);
}
.c6857f-qa-open h3 {
  margin: 0 0 5px;
  font-family: var(--c6857f-font-head);
  font-size: 0.88rem;
  color: var(--c6857f-pink-strong);
}
.c6857f-qa-open p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--c6857f-mute);
}
.c6857f-qa-open p a { color: var(--c6857f-pink-strong); }

/* ---------- term definition rows (help pages) ---------- */
.c6857f-term {
  border: 1px solid var(--c6857f-line);
  border-left: 3px solid var(--c6857f-mint);
  border-radius: var(--c6857f-radius);
  padding: 9px 12px;
  margin-top: 8px;
  background: rgba(232, 245, 232, 0.03);
}
.c6857f-term h3 {
  margin: 0 0 4px;
  font-family: var(--c6857f-font-head);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--c6857f-mint);
}
.c6857f-term p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--c6857f-mute);
}

/* ---------- decision checklist (help pages) ---------- */
.c6857f-checks {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.c6857f-checks li {
  position: relative;
  padding: 7px 0 7px 32px;
  border-bottom: 1px dashed var(--c6857f-line-soft);
  font-size: 0.86rem;
  color: var(--c6857f-mint);
}
.c6857f-checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--c6857f-mint);
  border-bottom: 2px solid var(--c6857f-mint);
  transform: rotate(-45deg);
}
.c6857f-checks li:last-child { border-bottom: 0; }

/* ---------- if/then troubleshooting rows (help pages) ---------- */
.c6857f-ifs { margin: 10px 0 0; }
.c6857f-ifrow {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  padding: 9px 10px;
  margin-top: 8px;
  background: rgba(224, 255, 255, 0.02);
}
.c6857f-ifrow dt {
  font-family: var(--c6857f-font-head);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c6857f-pink);
  border: 1px solid rgba(255, 192, 203, 0.4);
  border-radius: var(--c6857f-radius-xs);
  padding: 4px 6px;
  text-align: center;
}
.c6857f-ifrow dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--c6857f-mint);
}
.c6857f-ifrow dd a { color: var(--c6857f-pink-strong); }

/* ---------- definition card grid (help pages) ---------- */
.c6857f-defs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.c6857f-def {
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  padding: 9px 10px;
  background: rgba(224, 255, 255, 0.02);
}
.c6857f-def h3 {
  margin: 0 0 4px;
  font-family: var(--c6857f-font-head);
  font-size: 0.84rem;
  color: var(--c6857f-cyan);
}
.c6857f-def p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--c6857f-mute);
}

/* ---------- numbered recap card (help pages) ---------- */
.c6857f-recap {
  list-style: none;
  counter-reset: c6857f-recap;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  background: rgba(255, 192, 203, 0.05);
}
.c6857f-recap li {
  counter-increment: c6857f-recap;
  position: relative;
  padding: 5px 0 5px 30px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--c6857f-mint);
}
.c6857f-recap li::before {
  content: counter(c6857f-recap);
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c6857f-pink);
  border-radius: 50%;
  font-family: var(--c6857f-font-head);
  font-weight: 700;
  font-size: 0.66rem;
  color: var(--c6857f-pink);
}

/* ---------- CTA text group ---------- */
.c6857f-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.c6857f-cta-group .c6857f-btn { flex: 1 1 auto; }

/* ---------- extended footer ---------- */
.c6857f-xfoot {
  margin-top: 30px;
  border-top: 1px solid var(--c6857f-line);
  padding-top: 16px;
}

.c6857f-promo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.c6857f-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--c6857f-line);
  border-radius: var(--c6857f-radius);
  background: rgba(255, 192, 203, 0.05);
  color: var(--c6857f-mint);
  font-family: var(--c6857f-font-head);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.c6857f-promo svg { flex: none; color: var(--c6857f-pink); }
.c6857f-promo:active {
  border-color: var(--c6857f-pink-strong);
  background: rgba(255, 192, 203, 0.14);
  color: var(--c6857f-cyan);
}

.c6857f-xfoot-brand {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--c6857f-mute);
}

.c6857f-dirlist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}
.c6857f-dirlist li {
  border-bottom: 1px dotted var(--c6857f-line-soft);
  padding: 5px 0;
}
.c6857f-dirlist a {
  color: var(--c6857f-mint);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.25s ease;
}
.c6857f-dirlist a:active,
.c6857f-dirlist a:hover { color: var(--c6857f-pink-strong); }

.c6857f-note {
  margin-top: 16px;
  border: 1px solid var(--c6857f-line-soft);
  border-left: 3px solid var(--c6857f-mute);
  border-radius: var(--c6857f-radius-xs);
  padding: 9px 11px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--c6857f-mute);
}

/* ---------- common footer ---------- */
.c6857f-footer {
  margin-top: 20px;
  padding: 12px 0 6px;
  border-top: 1px solid var(--c6857f-line-soft);
  text-align: center;
  font-size: 0.74rem;
  color: var(--c6857f-mute);
}

/* ---------- bottom nav rail ---------- */
.c6857f-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--c6857f-bottomnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(28, 28, 28, 0.97);
  border-top: 1px solid var(--c6857f-line);
  backdrop-filter: blur(6px);
  z-index: 60;
}

.c6857f-bn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--c6857f-bottomnav-h);
  padding: 4px 2px;
  color: var(--c6857f-mute);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.c6857f-bn-item span {
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  font-family: var(--c6857f-font-head);
  font-weight: 600;
}
.c6857f-bn-item svg { width: 22px; height: 22px; }

.c6857f-bn-item.is-active {
  color: var(--c6857f-ink);
  background: var(--c6857f-cyan);
  border-radius: var(--c6857f-radius) var(--c6857f-radius) 0 0;
}
.c6857f-bn-item.is-active svg { color: var(--c6857f-ink); }

.c6857f-bn-item:not(.is-active):active { color: var(--c6857f-pink); }

/* ---------- wide-phone breakpoint: literal 430px ---------- */
@media (min-width: 430px) {
  .c6857f-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .c6857f-tile-name { font-size: 0.7rem; }
  .c6857f-h2 { font-size: 1.16rem; }
  .c6857f-main { padding-left: 14px; padding-right: 14px; }
  .c6857f-promo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c6857f-defs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- narrow phones ---------- */
@media (max-width: 339px) {
  .c6857f-btn { padding: 8px 9px; font-size: 0.78rem; }
  .c6857f-brand-name { font-size: 1.08rem; }
  .c6857f-feats,
  .c6857f-dirlist { grid-template-columns: 1fr; }
}

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