/* ==========================================================================
   tongits-pro-apk.click - surface sheet
   Class contract : every class uses the "surfaceae758-" prefix
   Canvas         : 320-430px phone frame, centered on wide screens
   Palette        : #1C2833 ink / #F0F0F0 paper / #9370DB violet / #CC99FF lilac
   Voice          : rounded headings + compact body, stroke-led corners,
                    light floating game tiles, restrained press + color motion
   ========================================================================== */

/* ---------- tokens ------------------------------------------------------ */
:root {
  --surfaceae758-ink: #1C2833;
  --surfaceae758-ink-deep: #141D26;
  --surfaceae758-ink-raise: #24313F;
  --surfaceae758-paper: #F0F0F0;
  --surfaceae758-paper-dim: rgba(240, 240, 240, 0.66);
  --surfaceae758-paper-faint: rgba(240, 240, 240, 0.42);
  --surfaceae758-violet: #9370DB;
  --surfaceae758-lilac: #CC99FF;
  --surfaceae758-line: rgba(240, 240, 240, 0.16);
  --surfaceae758-line-soft: rgba(240, 240, 240, 0.09);
  --surfaceae758-glow: 0 0 12px rgba(204, 153, 255, 0.35);
  --surfaceae758-radius: 9px;
  --surfaceae758-radius-soft: 6px;
  --surfaceae758-head-font: "Trebuchet MS", "Comfortaa", ui-rounded, "Hiragino Maru Gothic ProN", "Segoe UI", sans-serif;
  --surfaceae758-body-font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --surfaceae758-top-h: 56px;
  --surfaceae758-dock-h: 64px;
  --surfaceae758-pad: 14px;
}

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

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

body {
  margin: 0;
  background: var(--surfaceae758-ink-deep);
  color: var(--surfaceae758-paper);
  font-family: var(--surfaceae758-body-font);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.1px;
  overflow-x: hidden;
}

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

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--surfaceae758-lilac);
  text-decoration: none;
}

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

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

/* ---------- phone frame -------------------------------------------------- */
.surfaceae758-page {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 52% at 50% 0%, rgba(147, 112, 219, 0.18), transparent 62%),
    var(--surfaceae758-ink);
  border-left: 1px solid var(--surfaceae758-line-soft);
  border-right: 1px solid var(--surfaceae758-line-soft);
  padding-bottom: calc(var(--surfaceae758-dock-h) + env(safe-area-inset-bottom, 0px) + 10px);
}

.surfaceae758-main {
  padding: calc(var(--surfaceae758-top-h) + 10px) var(--surfaceae758-pad) 6px;
}

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

.surfaceae758-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--surfaceae758-paper);
}

.surfaceae758-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--surfaceae758-radius-soft);
  border: 1px solid var(--surfaceae758-line);
  object-fit: cover;
  flex: none;
}

.surfaceae758-brand-name {
  font-family: var(--surfaceae758-head-font);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surfaceae758-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

/* lightly rounded text buttons, stroke-led */
.surfaceae758-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: var(--surfaceae758-radius-soft);
  border: 1px solid var(--surfaceae758-violet);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.surfaceae758-btn:active {
  transform: scale(0.97);
}

.surfaceae758-btn--ghost {
  color: var(--surfaceae758-lilac);
  background: transparent;
}

.surfaceae758-btn--ghost:hover {
  background: rgba(147, 112, 219, 0.14);
}

.surfaceae758-btn--solid {
  color: #1C2833;
  background: linear-gradient(135deg, var(--surfaceae758-lilac), var(--surfaceae758-violet));
  border-color: var(--surfaceae758-lilac);
}

.surfaceae758-btn--solid:hover {
  box-shadow: var(--surfaceae758-glow);
}

.surfaceae758-menu-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--surfaceae758-line);
  border-radius: var(--surfaceae758-radius-soft);
  color: var(--surfaceae758-paper);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.surfaceae758-menu-btn:hover {
  border-color: var(--surfaceae758-violet);
  background: rgba(147, 112, 219, 0.12);
}

.surfaceae758-menu-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- compact route panel ------------------------------------------ */
.surfaceae758-routes {
  position: fixed;
  top: calc(var(--surfaceae758-top-h) - 6px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  max-width: 414px;
  z-index: 55;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  background: var(--surfaceae758-ink-raise);
  border: 1px solid var(--surfaceae758-line);
  border-radius: var(--surfaceae758-radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.surfaceae758-routes.surfaceae758-is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.surfaceae758-route {
  display: block;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--surfaceae758-line-soft);
  border-radius: var(--surfaceae758-radius-soft);
  color: var(--surfaceae758-paper);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.surfaceae758-route small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--surfaceae758-paper-faint);
}

.surfaceae758-route:hover {
  border-color: var(--surfaceae758-violet);
  color: var(--surfaceae758-lilac);
  background: rgba(147, 112, 219, 0.10);
}

.surfaceae758-route[aria-current="page"] {
  border-color: var(--surfaceae758-lilac);
  color: var(--surfaceae758-lilac);
  background: rgba(147, 112, 219, 0.16);
}

/* ---------- hero ---------------------------------------------------------- */
.surfaceae758-hero {
  padding: 8px 0 2px;
}

.surfaceae758-hero h1 {
  font-family: var(--surfaceae758-head-font);
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

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

.surfaceae758-lede {
  color: var(--surfaceae758-paper-dim);
  font-size: 13.5px;
  margin-bottom: 12px;
}

.surfaceae758-lede strong {
  color: var(--surfaceae758-paper);
  font-weight: 600;
}

/* CTA group: lightly rounded text buttons */
.surfaceae758-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.surfaceae758-cta-row .surfaceae758-btn {
  min-height: 40px;
  padding: 8px 16px;
}

/* ---------- metric strip (compact figures + one-line why) ------------------ */
.surfaceae758-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 16px;
}

.surfaceae758-metric {
  border: 1px solid var(--surfaceae758-line);
  border-radius: var(--surfaceae758-radius);
  background: rgba(36, 49, 63, 0.55);
  padding: 9px 7px;
  text-align: center;
}

.surfaceae758-metric-num {
  display: block;
  font-family: var(--surfaceae758-head-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--surfaceae758-lilac);
  line-height: 1.1;
}

.surfaceae758-metric-note {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--surfaceae758-paper-faint);
}

/* ---------- banner carousel ------------------------------------------------ */
.surfaceae758-carousel {
  position: relative;
  border: 1px solid var(--surfaceae758-line);
  border-radius: var(--surfaceae758-radius);
  overflow: hidden;
  margin: 0 0 14px;
  background: var(--surfaceae758-ink-raise);
  touch-action: pan-y;
}

.surfaceae758-slide {
  position: relative;
  display: none;
  aspect-ratio: 2 / 1;
}

.surfaceae758-slide.surfaceae758-is-on {
  display: block;
}

.surfaceae758-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.surfaceae758-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(20, 29, 38, 0.92));
  font-family: var(--surfaceae758-head-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

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

.surfaceae758-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--surfaceae758-lilac);
  background: transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.surfaceae758-dot.surfaceae758-is-on {
  background: var(--surfaceae758-lilac);
  box-shadow: var(--surfaceae758-glow);
}

.surfaceae758-banner-kicker {
  margin: -8px 0 14px;
  font-size: 11px;
  color: var(--surfaceae758-paper-faint);
  letter-spacing: 0.3px;
}

/* ---------- sections ------------------------------------------------------- */
.surfaceae758-sec {
  margin: 0 0 22px;
  scroll-margin-top: calc(var(--surfaceae758-top-h) + 8px);
}

.surfaceae758-sec-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--surfaceae758-head-font);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.surfaceae758-sec-head::before {
  content: "";
  flex: none;
  width: 5px;
  height: 18px;
  align-self: center;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--surfaceae758-lilac), var(--surfaceae758-violet));
}

.surfaceae758-sec h2 {
  font-size: 17px;
  font-weight: 700;
}

.surfaceae758-sec h3 {
  font-family: var(--surfaceae758-head-font);
  font-size: 14px;
  margin: 12px 0 6px;
  color: var(--surfaceae758-lilac);
}

.surfaceae758-count {
  flex: none;
  font-family: var(--surfaceae758-body-font);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--surfaceae758-paper-faint);
  border: 1px solid var(--surfaceae758-line-soft);
  border-radius: 999px;
  padding: 2px 8px;
  align-self: center;
  white-space: nowrap;
}

/* ---------- game grid: light floating tiles -------------------------------- */
.surfaceae758-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 7px;
  margin-top: 10px;
}

.surfaceae758-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 5px 3px 6px;
  border: 1px solid transparent;
  border-radius: var(--surfaceae758-radius);
  background: rgba(36, 49, 63, 0.35);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: rgba(204, 153, 255, 0.18);
}

.surfaceae758-tile:hover {
  border-color: var(--surfaceae758-line);
  background: rgba(36, 49, 63, 0.7);
}

.surfaceae758-tile:active {
  transform: translateY(2px) scale(0.97);
  border-color: var(--surfaceae758-violet);
  box-shadow: var(--surfaceae758-glow);
}

.surfaceae758-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--surfaceae758-radius-soft);
  border: 1px solid var(--surfaceae758-line-soft);
  background: var(--surfaceae758-ink-raise);
}

.surfaceae758-tile-name {
  font-size: 10.5px;
  line-height: 1.25;
  text-align: center;
  color: var(--surfaceae758-paper-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
  word-break: break-word;
}

/* ---------- prose blocks ----------------------------------------------------- */
.surfaceae758-prose {
  border-left: 3px solid var(--surfaceae758-violet);
  padding: 2px 0 2px 10px;
  color: var(--surfaceae758-paper-dim);
  font-size: 13.5px;
}

.surfaceae758-prose + .surfaceae758-prose {
  margin-top: 8px;
}

.surfaceae758-link {
  border-bottom: 1px dashed rgba(204, 153, 255, 0.55);
  padding-bottom: 1px;
  font-weight: 600;
}

.surfaceae758-link:hover {
  color: var(--surfaceae758-paper);
  border-bottom-style: solid;
}

/* promo inline link */
.surfaceae758-promo-link {
  color: var(--surfaceae758-lilac);
  font-weight: 700;
  border-bottom: 1px dashed rgba(204, 153, 255, 0.6);
}

/* ---------- tips / checks / steps -------------------------------------------- */
.surfaceae758-tips,
.surfaceae758-checks {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.surfaceae758-tip,
.surfaceae758-check,
.surfaceae758-step {
  position: relative;
  border: 1px solid var(--surfaceae758-line-soft);
  border-radius: var(--surfaceae758-radius);
  background: rgba(36, 49, 63, 0.45);
  padding: 9px 11px 9px 38px;
  font-size: 13px;
  color: var(--surfaceae758-paper-dim);
  transition: border-color 0.18s ease;
}

.surfaceae758-tip:hover,
.surfaceae758-check:hover,
.surfaceae758-step:hover {
  border-color: var(--surfaceae758-line);
}

.surfaceae758-tip::before,
.surfaceae758-check::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--surfaceae758-violet);
  background: rgba(147, 112, 219, 0.15);
}

.surfaceae758-check::before {
  background:
    linear-gradient(135deg, transparent 45%, var(--surfaceae758-violet) 45% 58%, transparent 58%),
    rgba(147, 112, 219, 0.15);
}

.surfaceae758-tip strong,
.surfaceae758-check strong,
.surfaceae758-step strong {
  color: var(--surfaceae758-paper);
}

.surfaceae758-steps {
  counter-reset: surfaceae758-step;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.surfaceae758-step {
  counter-increment: surfaceae758-step;
  padding-left: 44px;
}

.surfaceae758-step::before {
  content: counter(surfaceae758-step, decimal);
  position: absolute;
  left: 11px;
  top: 9px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--surfaceae758-violet);
  color: var(--surfaceae758-lilac);
  font-family: var(--surfaceae758-head-font);
  font-size: 11.5px;
  font-weight: 700;
  background: none;
}

/* ---------- compact compare table ---------------------------------------------- */
.surfaceae758-compare {
  margin-top: 10px;
  border: 1px solid var(--surfaceae758-line-soft);
  border-radius: var(--surfaceae758-radius);
  overflow: hidden;
}

.surfaceae758-compare-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding: 9px 11px;
  font-size: 13px;
  color: var(--surfaceae758-paper-dim);
  border-bottom: 1px solid var(--surfaceae758-line-soft);
  background: rgba(36, 49, 63, 0.35);
}

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

.surfaceae758-compare-key {
  font-family: var(--surfaceae758-head-font);
  font-weight: 700;
  color: var(--surfaceae758-lilac);
  font-size: 12.5px;
}

/* ---------- entity map rows ------------------------------------------------------ */
.surfaceae758-rel {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.surfaceae758-rel-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px dashed var(--surfaceae758-line);
  border-radius: var(--surfaceae758-radius-soft);
  padding: 8px 11px;
  font-size: 13px;
  color: var(--surfaceae758-paper-dim);
}

.surfaceae758-rel-row b {
  font-family: var(--surfaceae758-head-font);
  color: var(--surfaceae758-paper);
  font-size: 12.5px;
  letter-spacing: 0.2px;
}

/* ---------- extended footer (home only) -------------------------------------------- */
.surfaceae758-xfoot {
  margin: 26px 0 18px;
  border-top: 1px solid var(--surfaceae758-line);
  padding-top: 16px;
}

.surfaceae758-xfoot-brand {
  font-size: 13px;
  color: var(--surfaceae758-paper-dim);
  margin-bottom: 14px;
}

.surfaceae758-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 14px;
}

.surfaceae758-directory li {
  border: 1px solid var(--surfaceae758-line-soft);
  border-radius: var(--surfaceae758-radius-soft);
  background: rgba(36, 49, 63, 0.4);
  transition: border-color 0.18s ease;
}

.surfaceae758-directory li:hover {
  border-color: var(--surfaceae758-violet);
}

.surfaceae758-directory a {
  display: block;
  min-height: 44px;
  padding: 7px 9px;
  color: var(--surfaceae758-paper);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.surfaceae758-directory a small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--surfaceae758-paper-faint);
  line-height: 1.35;
}

.surfaceae758-promo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 14px;
}

.surfaceae758-promo-stack .surfaceae758-btn {
  min-height: 44px;
  font-size: 12.5px;
  padding: 8px 10px;
  line-height: 1.25;
}

.surfaceae758-promo-stack .surfaceae758-btn--wide {
  grid-column: 1 / -1;
}

.surfaceae758-fine {
  border: 1px solid var(--surfaceae758-line-soft);
  border-left: 3px solid var(--surfaceae758-violet);
  border-radius: var(--surfaceae758-radius-soft);
  padding: 9px 11px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--surfaceae758-paper-faint);
}

/* ---------- help-page structures ------------------------------------------------- */
.surfaceae758-faq-signal,
.surfaceae758-guide-map {
  display: grid;
  gap: 7px;
  margin: 0 0 22px;
}

.surfaceae758-faq-signal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.surfaceae758-faq-signal > div,
.surfaceae758-guide-node {
  min-width: 0;
  border: 1px solid var(--surfaceae758-line-soft);
  border-radius: var(--surfaceae758-radius);
  background: rgba(36, 49, 63, 0.5);
  padding: 9px 8px;
}

.surfaceae758-faq-signal-mark,
.surfaceae758-guide-node span {
  display: block;
  color: var(--surfaceae758-lilac);
  font-family: var(--surfaceae758-head-font);
  font-size: 11px;
  font-weight: 700;
}

.surfaceae758-faq-signal strong,
.surfaceae758-faq-signal small,
.surfaceae758-guide-node b,
.surfaceae758-guide-node small {
  display: block;
}

.surfaceae758-faq-signal strong,
.surfaceae758-guide-node b {
  margin-top: 3px;
  color: var(--surfaceae758-paper);
  font-size: 12px;
}

.surfaceae758-faq-signal small,
.surfaceae758-guide-node small {
  margin-top: 3px;
  color: var(--surfaceae758-paper-faint);
  font-size: 10px;
  line-height: 1.35;
}

.surfaceae758-faq-rules {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.surfaceae758-faq-rules > div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--surfaceae758-line-soft);
  border-radius: var(--surfaceae758-radius-soft);
  background: rgba(36, 49, 63, 0.35);
  color: var(--surfaceae758-paper-dim);
  font-size: 12.5px;
}

.surfaceae758-faq-rules b {
  color: var(--surfaceae758-lilac);
  font-family: var(--surfaceae758-head-font);
  font-size: 12px;
}

.surfaceae758-faq-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.surfaceae758-faq-item {
  border: 1px solid var(--surfaceae758-line-soft);
  border-radius: var(--surfaceae758-radius);
  background: rgba(36, 49, 63, 0.4);
  overflow: hidden;
}

.surfaceae758-faq-item summary {
  position: relative;
  min-height: 44px;
  padding: 11px 36px 11px 12px;
  color: var(--surfaceae758-paper);
  cursor: pointer;
  font-family: var(--surfaceae758-head-font);
  font-size: 13.5px;
  font-weight: 700;
  list-style: none;
}

.surfaceae758-faq-item summary::-webkit-details-marker {
  display: none;
}

.surfaceae758-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 9px;
  color: var(--surfaceae758-lilac);
  font-size: 20px;
  font-weight: 400;
}

.surfaceae758-faq-item[open] summary {
  border-bottom: 1px solid var(--surfaceae758-line-soft);
  color: var(--surfaceae758-lilac);
}

.surfaceae758-faq-item[open] summary::after {
  content: "-";
}

.surfaceae758-faq-answer {
  padding: 10px 12px 12px;
  color: var(--surfaceae758-paper-dim);
  font-size: 13px;
}

.surfaceae758-faq-answer p + p {
  margin-top: 9px;
}

.surfaceae758-guide-map {
  grid-template-columns: 1fr 12px 1fr 12px 1fr 12px 1fr;
  align-items: stretch;
}

.surfaceae758-guide-line {
  align-self: center;
  height: 1px;
  background: var(--surfaceae758-violet);
}

/* ---------- common footer ------------------------------------------------------- */
.surfaceae758-foot {
  border-top: 1px solid var(--surfaceae758-line-soft);
  margin-top: 6px;
  padding: 12px var(--surfaceae758-pad) 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--surfaceae758-paper-faint);
}

/* ---------- bottom dock: compact icon rack ---------------------------------------- */
.surfaceae758-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 62;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  height: calc(var(--surfaceae758-dock-h) + env(safe-area-inset-bottom, 0px));
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 29, 38, 0.96);
  border-top: 1px solid var(--surfaceae758-line);
  backdrop-filter: blur(8px);
}

.surfaceae758-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  border-radius: var(--surfaceae758-radius);
  color: var(--surfaceae758-paper-faint);
  font-size: 10px;
  letter-spacing: 0.2px;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.surfaceae758-dock-item svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

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

.surfaceae758-dock-item:active {
  transform: scale(0.94);
}

/* active role: background block carries the icon */
.surfaceae758-dock-item.surfaceae758-is-here {
  color: #1C2833;
  background: linear-gradient(135deg, var(--surfaceae758-lilac), var(--surfaceae758-violet));
  box-shadow: var(--surfaceae758-glow);
}

/* ---------- wider phone canvas ----------------------------------------------------- */
@media (max-width: 360px) {
  .surfaceae758-faq-signal {
    grid-template-columns: 1fr;
  }

  .surfaceae758-faq-rules > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .surfaceae758-guide-map {
    grid-template-columns: 1fr 8px 1fr 8px 1fr 8px 1fr;
    gap: 4px;
  }
}

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

  .surfaceae758-metric-note {
    font-size: 11px;
  }
}

@media (min-width: 431px) {
  body {
    background:
      radial-gradient(60% 40% at 50% 0%, rgba(147, 112, 219, 0.14), transparent 70%),
      #101820;
  }
}

/* ---------- motion budget: light press + color only --------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .surfaceae758-btn,
  .surfaceae758-tile,
  .surfaceae758-dock-item,
  .surfaceae758-routes,
  .surfaceae758-dot {
    transition: none;
  }
}
