/* ==========================================================================
   gperya app · gperyaapp.homes · basefiles stylesheet
   Canvas: mobile-first 320-430px, centered phone frame on wide screens
   Palette: #AD1457 / #FF8A80 / #CCCCCC / #FF91A4 / #0E1621
   Voice: mono accents over plain body text, light card radius, compact CTAs
   ========================================================================== */

:root {
  --surface039ec-bg: #0e1621;
  --surface039ec-bg-deep: #080e16;
  --surface039ec-panel: #141f2d;
  --surface039ec-panel-2: #1a2736;
  --surface039ec-line: #27364a;
  --surface039ec-line-soft: #1f2c3d;
  --surface039ec-brand: #ad1457;
  --surface039ec-brand-deep: #7c0f3e;
  --surface039ec-coral: #ff8a80;
  --surface039ec-pink: #ff91a4;
  --surface039ec-ink: #cccccc;
  --surface039ec-ink-strong: #f1e9ee;
  --surface039ec-ink-dim: #90a0b4;
  --surface039ec-ink-faint: #6d7f95;
  --surface039ec-radius-card: 12px;
  --surface039ec-radius-btn: 8px;
  --surface039ec-radius-pill: 999px;
  --surface039ec-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --surface039ec-font-mono: "Cascadia Mono", "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --surface039ec-topbar-h: 106px;
  --surface039ec-dock-h: 62px;
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--surface039ec-bg-deep);
  color: var(--surface039ec-ink);
  font-family: var(--surface039ec-font-sans);
  font-size: 14px;
  line-height: 1.62;
  min-height: 100vh;
}

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

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

a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

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

.surface039ec-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface039ec-brand);
  color: #ffffff;
  font-family: var(--surface039ec-font-mono);
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 0 0 var(--surface039ec-radius-btn) 0;
}

.surface039ec-skip:focus { left: 0; }

/* ---------- phone canvas ---------- */

.surface039ec-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--surface039ec-bg);
  min-height: 100vh;
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
}

.surface039ec-page {
  padding: calc(var(--surface039ec-topbar-h) + 14px) 14px calc(var(--surface039ec-dock-h) + 52px);
}

/* ---------- top bar: centered identity + action strip ---------- */

.surface039ec-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  background: rgba(14, 22, 33, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface039ec-line-soft);
  padding-top: env(safe-area-inset-top, 0px);
}

.surface039ec-ident {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px 8px;
}

.surface039ec-ident img {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  border: 1px solid var(--surface039ec-line);
  object-fit: cover;
}

.surface039ec-ident-name {
  font-family: var(--surface039ec-font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: lowercase;
  color: var(--surface039ec-ink-strong);
}

.surface039ec-ident-name em {
  font-style: normal;
  color: var(--surface039ec-pink);
}

.surface039ec-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 12px 10px;
}

/* compact icon-text CTAs, motion budget reserved for these keys */
.surface039ec-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--surface039ec-radius-btn);
  border: 1px solid transparent;
  font-family: var(--surface039ec-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.surface039ec-cta svg { width: 15px; height: 15px; flex: none; }

.surface039ec-cta--join {
  flex: 1;
  background: linear-gradient(120deg, var(--surface039ec-brand) 0%, #d4405f 55%, var(--surface039ec-pink) 115%);
  color: #ffffff;
}

.surface039ec-cta--ghost {
  flex: 1;
  background: transparent;
  border-color: var(--surface039ec-line);
  color: var(--surface039ec-coral);
}

.surface039ec-cta--join:active,
.surface039ec-cta--ghost:active {
  transform: scale(0.965);
  filter: brightness(1.12);
}

.surface039ec-menubtn {
  flex: none;
  width: 44px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--surface039ec-radius-btn);
  border: 1px solid var(--surface039ec-line);
  background: var(--surface039ec-panel);
  color: var(--surface039ec-coral);
  transition: transform 0.12s ease;
}

.surface039ec-menubtn svg { width: 18px; height: 18px; }

.surface039ec-menubtn:active { transform: scale(0.94); }

/* ---------- slide-up route panel ---------- */

.surface039ec-scrim {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 8, 14, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.surface039ec-scrim.surface039ec-is-on { opacity: 1; pointer-events: auto; }

.surface039ec-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  max-height: min(80vh, 620px);
  overflow-y: auto;
  z-index: 100;
  background: var(--surface039ec-panel);
  border: 1px solid var(--surface039ec-line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 6px 14px calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(104%);
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
  visibility: hidden;
}

.surface039ec-sheet.surface039ec-is-on {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

.surface039ec-sheet-grip {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--surface039ec-line);
  margin: 4px auto 10px;
}

.surface039ec-sheet-title {
  font-family: var(--surface039ec-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surface039ec-ink-dim);
  margin: 0 0 10px;
}

.surface039ec-sheet-actions {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.surface039ec-sheet-group { margin-bottom: 14px; }

.surface039ec-route {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 4px;
  border-bottom: 1px solid var(--surface039ec-line-soft);
  color: var(--surface039ec-ink);
  font-size: 14.5px;
  text-decoration: none;
}

.surface039ec-route:hover { color: var(--surface039ec-coral); text-decoration: none; }

.surface039ec-route-no {
  font-family: var(--surface039ec-font-mono);
  font-size: 11px;
  color: var(--surface039ec-pink);
  width: 24px;
  flex: none;
}

.surface039ec-route-arrow {
  margin-left: auto;
  color: var(--surface039ec-ink-faint);
  font-family: var(--surface039ec-font-mono);
  font-size: 13px;
}

.surface039ec-route.surface039ec-is-here {
  color: var(--surface039ec-coral);
  font-weight: 700;
}

.surface039ec-route.surface039ec-is-here .surface039ec-route-no { color: var(--surface039ec-coral); }

/* ---------- hero ---------- */

.surface039ec-hero { padding-top: 4px; }

.surface039ec-hero h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--surface039ec-ink-strong);
  font-weight: 800;
}

.surface039ec-hero h1 .surface039ec-h1-accent {
  color: var(--surface039ec-pink);
}

.surface039ec-hero p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--surface039ec-ink-dim);
}

.surface039ec-hero p strong { color: var(--surface039ec-ink); font-weight: 600; }

/* carousel */

.surface039ec-carousel {
  position: relative;
  border-radius: var(--surface039ec-radius-card);
  overflow: hidden;
  border: 1px solid var(--surface039ec-line);
  background: var(--surface039ec-panel);
}

.surface039ec-track {
  display: flex;
  transition: transform 0.38s ease;
}

.surface039ec-slide {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  position: relative;
}

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

.surface039ec-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0) 0%, rgba(14, 22, 33, 0.88) 78%);
  text-align: left;
  font-family: var(--surface039ec-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--surface039ec-ink-strong);
}

.surface039ec-dots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.surface039ec-dot {
  width: 18px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--surface039ec-radius-pill);
  background: rgba(204, 204, 204, 0.34);
  transition: background 0.18s ease;
}

.surface039ec-dot.surface039ec-is-on { background: var(--surface039ec-coral); }

/* ---------- mono chip strip ---------- */

.surface039ec-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 16px 0 0;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.surface039ec-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--surface039ec-radius-btn);
  border: 1px solid var(--surface039ec-line);
  background: var(--surface039ec-panel);
  font-family: var(--surface039ec-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--surface039ec-ink-dim);
  white-space: nowrap;
}

.surface039ec-chip b { color: var(--surface039ec-coral); font-weight: 700; }

/* ---------- step rail (step-forward rhythm) ---------- */

.surface039ec-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 18px 0 4px;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.surface039ec-rail::-webkit-scrollbar { display: none; }

.surface039ec-step {
  flex: 0 0 82%;
  scroll-snap-align: start;
  background: var(--surface039ec-panel);
  border: 1px solid var(--surface039ec-line-soft);
  border-left: 3px solid var(--surface039ec-brand);
  border-radius: var(--surface039ec-radius-card);
  padding: 12px 13px;
}

.surface039ec-step-no {
  font-family: var(--surface039ec-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--surface039ec-pink);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 4px;
}

.surface039ec-step b {
  display: block;
  color: var(--surface039ec-ink-strong);
  font-size: 14px;
  margin-bottom: 3px;
}

.surface039ec-step p {
  margin: 0;
  font-size: 12.5px;
  color: var(--surface039ec-ink-dim);
  line-height: 1.5;
}

/* ---------- game sections ---------- */

.surface039ec-band { margin-top: 26px; }

.surface039ec-band-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.surface039ec-band-head h2 {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.28;
  color: var(--surface039ec-ink-strong);
  font-weight: 800;
  letter-spacing: -0.005em;
}

.surface039ec-band-count {
  margin-left: auto;
  flex: none;
  font-family: var(--surface039ec-font-mono);
  font-size: 10.5px;
  color: var(--surface039ec-pink);
  border: 1px solid var(--surface039ec-line);
  border-radius: var(--surface039ec-radius-pill);
  padding: 2px 9px;
  white-space: nowrap;
}

.surface039ec-band-lead {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--surface039ec-ink-dim);
}

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

@media (min-width: 375px) {
  .surface039ec-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; }
}

/* small game tile */
.surface039ec-tile {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--surface039ec-line-soft);
  border-radius: var(--surface039ec-radius-card);
  background: var(--surface039ec-panel);
  overflow: hidden;
  text-align: left;
  min-width: 0;
}

.surface039ec-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface039ec-panel-2);
}

.surface039ec-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 5px 6px 7px;
  font-size: 10.5px;
  line-height: 1.32;
  color: var(--surface039ec-ink);
  font-weight: 500;
  min-height: 36px;
}

/* large mixed card anchoring each shelf */
.surface039ec-tile--hero {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  border-color: var(--surface039ec-brand-deep);
  background: linear-gradient(165deg, var(--surface039ec-panel-2) 0%, var(--surface039ec-panel) 70%);
}

.surface039ec-tile--hero img { aspect-ratio: 1 / 1; }

.surface039ec-tile--hero .surface039ec-tile-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--surface039ec-ink-strong);
  min-height: 0;
}

.surface039ec-tile-tag {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  font-family: var(--surface039ec-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: var(--surface039ec-brand);
  border-radius: var(--surface039ec-radius-pill);
  padding: 3px 8px;
}

/* ---------- reading modules ---------- */

.surface039ec-module {
  margin-top: 28px;
  background: var(--surface039ec-panel);
  border: 1px solid var(--surface039ec-line-soft);
  border-radius: var(--surface039ec-radius-card);
  padding: 15px 15px 17px;
}

.surface039ec-module > h2 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.3;
  color: var(--surface039ec-ink-strong);
  font-weight: 800;
}

.surface039ec-module h3 {
  margin: 16px 0 6px;
  font-size: 14px;
  color: var(--surface039ec-pink);
  font-weight: 700;
}

.surface039ec-module p {
  margin: 0 0 11px;
  font-size: 13.5px;
  color: var(--surface039ec-ink);
}

.surface039ec-module p:last-child { margin-bottom: 0; }

.surface039ec-inlink {
  color: var(--surface039ec-coral);
  border-bottom: 1px dashed rgba(255, 138, 128, 0.55);
}

.surface039ec-inlink:hover { border-bottom-style: solid; text-decoration: none; }

/* numbered trust checklist */
.surface039ec-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: surface039ec-cl;
}

.surface039ec-checklist li {
  counter-increment: surface039ec-cl;
  position: relative;
  padding: 9px 0 9px 40px;
  border-bottom: 1px dashed var(--surface039ec-line-soft);
  font-size: 13px;
  color: var(--surface039ec-ink);
}

.surface039ec-checklist li:last-child { border-bottom: 0; }

.surface039ec-checklist li::before {
  content: counter(surface039ec-cl, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--surface039ec-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--surface039ec-coral);
  border: 1px solid var(--surface039ec-line);
  border-radius: var(--surface039ec-radius-btn);
  background: var(--surface039ec-bg);
}

/* comparison rows */
.surface039ec-compare {
  border: 1px solid var(--surface039ec-line-soft);
  border-radius: var(--surface039ec-radius-btn);
  overflow: hidden;
}

.surface039ec-compare-row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--surface039ec-line-soft);
}

.surface039ec-compare-row:last-child { border-bottom: 0; }

.surface039ec-compare-k {
  font-family: var(--surface039ec-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--surface039ec-pink);
  padding: 9px 12px 3px;
  background: rgba(173, 20, 87, 0.12);
}

.surface039ec-compare-v {
  font-size: 13px;
  color: var(--surface039ec-ink);
  padding: 2px 12px 10px;
}

/* scenario Q&A */
.surface039ec-scenario-q {
  font-family: var(--surface039ec-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--surface039ec-ink-strong);
  background: linear-gradient(120deg, rgba(173, 20, 87, 0.32), rgba(255, 145, 164, 0.16));
  border: 1px solid var(--surface039ec-line);
  border-radius: var(--surface039ec-radius-btn);
  padding: 10px 12px;
  margin: 0 0 12px;
  line-height: 1.5;
}

.surface039ec-answer-first {
  color: var(--surface039ec-ink-strong);
  font-weight: 600;
}

/* guide ladder */
.surface039ec-ladder { margin: 4px 0 0; padding: 0; list-style: none; }

.surface039ec-ladder li {
  position: relative;
  padding: 0 0 12px 26px;
  font-size: 13.5px;
  color: var(--surface039ec-ink);
}

.surface039ec-ladder li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface039ec-coral);
  box-shadow: 0 0 0 3px rgba(255, 138, 128, 0.16);
}

.surface039ec-ladder b { color: var(--surface039ec-ink-strong); }

/* inline text CTA inside prose */
.surface039ec-textcta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--surface039ec-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(120deg, var(--surface039ec-brand) 0%, var(--surface039ec-pink) 130%);
  border-radius: var(--surface039ec-radius-btn);
  padding: 9px 14px;
  border: 0;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.surface039ec-textcta svg { width: 14px; height: 14px; }

.surface039ec-textcta:active { transform: scale(0.965); filter: brightness(1.12); }

/* ---------- extended footer ---------- */

.surface039ec-xfoot {
  margin-top: 30px;
  border-top: 1px solid var(--surface039ec-line);
  padding-top: 18px;
}

.surface039ec-xfoot-label {
  font-family: var(--surface039ec-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surface039ec-ink-faint);
  margin: 0 0 9px;
}

.surface039ec-xfoot-group { margin-bottom: 20px; }

.surface039ec-directory {
  columns: 2;
  column-gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.surface039ec-directory li {
  break-inside: avoid;
  margin: 0 0 3px;
}

.surface039ec-directory a {
  display: block;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--surface039ec-ink);
  border-bottom: 1px dotted var(--surface039ec-line-soft);
}

.surface039ec-directory a:hover { color: var(--surface039ec-coral); }

.surface039ec-brandnote {
  margin: 0;
  font-size: 12.5px;
  color: var(--surface039ec-ink-dim);
}

.surface039ec-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.surface039ec-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: var(--surface039ec-radius-btn);
  border: 1px solid var(--surface039ec-brand-deep);
  background: linear-gradient(150deg, rgba(173, 20, 87, 0.34), rgba(255, 145, 164, 0.10));
  color: var(--surface039ec-ink-strong);
  font-family: var(--surface039ec-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.surface039ec-promo svg { width: 13px; height: 13px; flex: none; color: var(--surface039ec-coral); }

.surface039ec-promo:active { transform: scale(0.96); filter: brightness(1.14); }

.surface039ec-promo--wide { grid-column: 1 / -1; }

.surface039ec-disclaimer {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--surface039ec-ink-faint);
  border: 1px dashed var(--surface039ec-line);
  border-radius: var(--surface039ec-radius-btn);
  padding: 10px 12px;
}

/* ---------- common footer ---------- */

.surface039ec-copy {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--surface039ec-line-soft);
  text-align: center;
  font-family: var(--surface039ec-font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--surface039ec-ink-faint);
}

/* ---------- segmented bottom action bar ---------- */

.surface039ec-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 110;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(10, 16, 25, 0.985);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--surface039ec-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.surface039ec-dockbtn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--surface039ec-dock-h);
  padding: 7px 2px 6px;
  background: none;
  border: 0;
  border-left: 1px solid rgba(39, 54, 74, 0.45);
  color: var(--surface039ec-ink-dim);
  text-decoration: none;
}

.surface039ec-dockbtn:first-child { border-left: 0; }

.surface039ec-dockbtn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.14s ease;
}

.surface039ec-dockbtn span {
  font-family: var(--surface039ec-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  transition: color 0.14s ease;
}

.surface039ec-dockbtn:active svg { transform: translateY(-1px) scale(1.1); }

.surface039ec-dockbtn:active span { color: var(--surface039ec-pink); }

/* active page: label emphasis + coral edge */
.surface039ec-dockbtn.surface039ec-is-here { color: var(--surface039ec-coral); }

.surface039ec-dockbtn.surface039ec-is-here span {
  color: var(--surface039ec-coral);
  font-weight: 800;
}

.surface039ec-dockbtn.surface039ec-is-here::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--surface039ec-coral);
}

/* promo segments get a warm tint */
.surface039ec-dockbtn--promo { background: rgba(173, 20, 87, 0.16); }

.surface039ec-dockbtn--promo svg { color: var(--surface039ec-pink); }

.surface039ec-dockbtn--promo span { color: var(--surface039ec-pink); font-weight: 700; }

/* ---------- utilities ---------- */

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
