/* ============================================================
   Philippines vs Jordan - adaptive canvas stylesheet
   Palette base: #D2691E flame / #2D2D2D panel / #708090 slate
                 #90EE90 mint accent / #2E8B57 sea green
   Tone: monospace accents over a regular body font, rounded
   action buttons against square outlined tile cards, compact
   metric-first information rhythm, icon micro-state motion.
   Canvas: 320-430px phone frame, centered on wide screens.
   ============================================================ */

:root {
  --surface6663f-bg: #1b1a18;
  --surface6663f-bg-deep: #141312;
  --surface6663f-raise: #232120;
  --surface6663f-panel: #2d2d2d;
  --surface6663f-line: #3a3733;
  --surface6663f-line-soft: #2e2b28;
  --surface6663f-text: #f3f0e9;
  --surface6663f-dim: #b7b1a5;
  --surface6663f-faint: #8b857a;
  --surface6663f-flame: #d2691e;
  --surface6663f-flame-hi: #e07f36;
  --surface6663f-mint: #90ee90;
  --surface6663f-mint-deep: #4fae6f;
  --surface6663f-sea: #2e8b57;
  --surface6663f-slate: #708090;
  --surface6663f-ink-on-flame: #170d04;
  --surface6663f-mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --surface6663f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --surface6663f-r-btn: 999px;
  --surface6663f-r-card: 5px;
  --surface6663f-topbar-h: 60px;
}

/* Help-page answer blocks remain legible when reused by the two Part1 guides. */
.surface6663f-module .surface6663f-secitem + .surface6663f-secitem { margin-top: 0; }
.surface6663f-module .surface6663f-xf-promo { text-decoration: none; }
.surface6663f-module .surface6663f-faq-body .surface6663f-xf-promo { margin-top: 8px; }

* { box-sizing: border-box; }

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

body.surface6663f-body {
  margin: 0;
  background: var(--surface6663f-bg-deep);
  color: var(--surface6663f-text);
  font-family: var(--surface6663f-sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Phone canvas: never wider than 430px, centered when room allows */
.surface6663f-canvas {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 52% at 18% 0%, rgba(210, 105, 30, 0.14), transparent 60%),
    var(--surface6663f-bg);
  overflow-x: clip;
}

img { max-width: 100%; }

a { color: var(--surface6663f-mint); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--surface6663f-mint);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   Top bar - asymmetric brand head: logo + name grow on the
   left, compact action cluster hugs the right edge.
   ------------------------------------------------------------ */
.surface6663f-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--surface6663f-topbar-h);
  padding: 8px 12px;
  background: rgba(27, 26, 24, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface6663f-line);
}

.surface6663f-brand {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
}

.surface6663f-brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  border: 1px solid var(--surface6663f-line);
  background: #0e0d0c;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.surface6663f-brand-name {
  font-family: var(--surface6663f-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--surface6663f-mint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surface6663f-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   Segmented action buttons: rounded pill split into a label
   segment and a hard mono tip segment.
   ------------------------------------------------------------ */
.surface6663f-segbtn {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--surface6663f-flame);
  border-radius: var(--surface6663f-r-btn);
  background: linear-gradient(160deg, var(--surface6663f-flame-hi), var(--surface6663f-flame));
  color: var(--surface6663f-ink-on-flame);
  font-family: var(--surface6663f-sans);
  cursor: pointer;
  min-height: 44px;
  overflow: hidden;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.surface6663f-segbtn:active { transform: translateY(1px) scale(0.98); filter: brightness(1.08); }

.surface6663f-seg-main {
  display: flex;
  align-items: center;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.surface6663f-seg-tip {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--surface6663f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(23, 13, 4, 0.35);
  border-left: 1px dashed rgba(23, 13, 4, 0.55);
  white-space: nowrap;
}

.surface6663f-segbtn.is-ghost {
  background: transparent;
  color: var(--surface6663f-mint);
  border-color: var(--surface6663f-mint-deep);
}

.surface6663f-segbtn.is-ghost .surface6663f-seg-tip {
  background: rgba(144, 238, 144, 0.1);
  border-left-color: rgba(144, 238, 144, 0.4);
}

.surface6663f-segbtn.is-sea {
  border-color: var(--surface6663f-sea);
  background: linear-gradient(160deg, #3aa46a, var(--surface6663f-sea));
}

/* Compact header variants */
.surface6663f-topbar .surface6663f-segbtn { min-height: 40px; }
.surface6663f-topbar .surface6663f-seg-main { padding: 0 11px; font-size: 12.5px; }
.surface6663f-topbar .surface6663f-seg-tip { display: none; }
@media (min-width: 360px) {
  .surface6663f-topbar .surface6663f-seg-tip { display: flex; }
}

/* Menu trigger: 44px square, three bars folding into an X */
.surface6663f-menubtn {
  position: relative;
  width: 44px;
  height: 40px;
  flex: 0 0 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--surface6663f-raise);
  border: 1px solid var(--surface6663f-line);
  border-radius: 12px;
  cursor: pointer;
}

.surface6663f-menubtn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--surface6663f-mint);
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
}

.surface6663f-menubtn span:nth-child(2) { width: 12px; }
.surface6663f-menubtn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.surface6663f-menubtn.is-open span:nth-child(2) { opacity: 0; width: 18px; }
.surface6663f-menubtn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------
   Slide-up route panel
   ------------------------------------------------------------ */
.surface6663f-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 9, 8, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.surface6663f-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.surface6663f-routes {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-width: 430px;
  margin: 0 auto;
  background: var(--surface6663f-raise);
  border: 1px solid var(--surface6663f-line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 78vh;
  overflow-y: auto;
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.34s;
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.55);
}

.surface6663f-routes.is-open { transform: translateY(0); visibility: visible; }

.surface6663f-routes-grip {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--surface6663f-line);
  margin: 0 auto 12px;
}

.surface6663f-routes-title {
  margin: 0 0 4px;
  font-family: var(--surface6663f-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--surface6663f-flame-hi);
}

.surface6663f-routes-cta {
  display: flex;
  gap: 10px;
  margin: 10px 0 14px;
}

.surface6663f-routes-cta .surface6663f-segbtn { flex: 1 1 0; justify-content: center; }

.surface6663f-routes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.surface6663f-routes-list a,
.surface6663f-routes-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 2px;
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--surface6663f-line-soft);
  color: var(--surface6663f-text);
  font-family: var(--surface6663f-sans);
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.surface6663f-routes-list a:active,
.surface6663f-routes-list button:active { color: var(--surface6663f-mint); }

.surface6663f-route-no {
  font-family: var(--surface6663f-mono);
  font-size: 11px;
  color: var(--surface6663f-slate);
  border: 1px solid var(--surface6663f-line);
  border-radius: 4px;
  padding: 2px 6px;
  flex: 0 0 auto;
}

.surface6663f-route-arrow {
  margin-left: auto;
  color: var(--surface6663f-flame-hi);
  font-family: var(--surface6663f-mono);
}

/* ------------------------------------------------------------
   Main column
   ------------------------------------------------------------ */
.surface6663f-main {
  padding: 0 0 calc(96px + env(safe-area-inset-bottom));
}

section { scroll-margin-top: calc(var(--surface6663f-topbar-h) + 12px); }

/* Hero */
.surface6663f-hero { padding: 20px 14px 6px; }

.surface6663f-h1 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.surface6663f-h1 em {
  font-style: normal;
  color: var(--surface6663f-flame-hi);
}

.surface6663f-hero-sub {
  margin: 0 0 14px;
  color: var(--surface6663f-dim);
  font-size: 13.5px;
}

.surface6663f-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

/* Compact metric strip: mono number + explanatory caption */
.surface6663f-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 6px;
}

.surface6663f-metric {
  border: 1px solid var(--surface6663f-line);
  border-radius: var(--surface6663f-r-card);
  background: var(--surface6663f-raise);
  padding: 9px 8px 8px;
}

.surface6663f-metric b {
  display: block;
  font-family: var(--surface6663f-mono);
  font-size: 19px;
  line-height: 1.1;
  color: var(--surface6663f-mint);
}

.surface6663f-metric span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--surface6663f-faint);
  letter-spacing: 0.2px;
}

/* ------------------------------------------------------------
   Banner carousel
   ------------------------------------------------------------ */
.surface6663f-carousel {
  position: relative;
  margin: 16px 12px 4px;
  border: 1px solid var(--surface6663f-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface6663f-raise);
}

.surface6663f-track {
  display: flex;
  transition: transform 0.45s ease;
}

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

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

.surface6663f-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(16, 14, 12, 0.82));
}

.surface6663f-slide-tag {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--surface6663f-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--surface6663f-mint);
}

.surface6663f-slide-tag b {
  display: block;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.3px;
}

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

.surface6663f-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
}

.surface6663f-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(243, 240, 233, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

.surface6663f-dot.is-on::before {
  width: 18px;
  background: var(--surface6663f-flame-hi);
}

/* ------------------------------------------------------------
   Prose blocks
   ------------------------------------------------------------ */
.surface6663f-intro {
  padding: 18px 14px 4px;
}

.surface6663f-intro p {
  margin: 0 0 12px;
  color: var(--surface6663f-dim);
  font-size: 13.5px;
}

.surface6663f-intro p strong,
.surface6663f-faq-body strong { color: var(--surface6663f-text); }

.surface6663f-h2 {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.1px;
}

/* ------------------------------------------------------------
   Category jump strip
   ------------------------------------------------------------ */
.surface6663f-jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px 10px;
  scrollbar-width: none;
}

.surface6663f-jump::-webkit-scrollbar { display: none; }

.surface6663f-jumpchip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--surface6663f-line);
  border-radius: var(--surface6663f-r-btn);
  background: var(--surface6663f-raise);
  color: var(--surface6663f-dim);
  font-family: var(--surface6663f-mono);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.surface6663f-jumpchip i {
  font-style: normal;
  color: var(--surface6663f-flame-hi);
}

.surface6663f-jumpchip:active {
  border-color: var(--surface6663f-flame);
  color: var(--surface6663f-mint);
}

/* ------------------------------------------------------------
   Game lobby - square outlined tile cards on a stable grid
   ------------------------------------------------------------ */
.surface6663f-lobby { padding: 4px 12px 8px; }

.surface6663f-cathead {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 6px;
}

.surface6663f-catcount {
  flex: 0 0 auto;
  font-family: var(--surface6663f-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--surface6663f-flame-hi);
  border: 1px solid rgba(210, 105, 30, 0.55);
  border-radius: 4px;
  padding: 3px 7px;
}

.surface6663f-catblurb {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--surface6663f-faint);
}

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

@media (min-width: 400px) {
  .surface6663f-tilegrid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}

.surface6663f-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 4px 6px;
  background: var(--surface6663f-raise);
  border: 1px solid var(--surface6663f-line);
  border-radius: var(--surface6663f-r-card);
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.surface6663f-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  background: #0d0c0b;
}

.surface6663f-tile span {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--surface6663f-dim);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 27px;
  word-break: break-word;
}

.surface6663f-tile:active,
.surface6663f-tile:hover {
  border-color: var(--surface6663f-flame);
  background: #282420;
}

.surface6663f-tile:active { transform: translateY(1px) scale(0.97); }

/* ------------------------------------------------------------
   Content modules after the lobby
   ------------------------------------------------------------ */
.surface6663f-module {
  margin-top: 30px;
  padding: 18px 14px 6px;
  border-top: 1px solid var(--surface6663f-line-soft);
}

.surface6663f-module-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--surface6663f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--surface6663f-sea);
  border-left: 3px solid var(--surface6663f-sea);
  padding-left: 8px;
}

.surface6663f-module > p,
.surface6663f-module .surface6663f-lead {
  margin: 0 0 12px;
  color: var(--surface6663f-dim);
  font-size: 13px;
}

/* FAQ accordions */
.surface6663f-faq {
  border: 1px solid var(--surface6663f-line);
  border-radius: var(--surface6663f-r-card);
  background: var(--surface6663f-raise);
  margin: 0 0 9px;
  overflow: hidden;
}

.surface6663f-faq summary {
  position: relative;
  min-height: 48px;
  padding: 12px 40px 12px 38px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--surface6663f-text);
  cursor: pointer;
  list-style: none;
}

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

.surface6663f-faq summary::before {
  content: "?";
  position: absolute;
  left: 11px;
  top: 12px;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--surface6663f-mono);
  font-size: 11px;
  color: var(--surface6663f-flame-hi);
  border: 1px solid rgba(210, 105, 30, 0.6);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.surface6663f-faq[open] summary::before {
  background: rgba(210, 105, 30, 0.9);
  color: var(--surface6663f-ink-on-flame);
}

.surface6663f-faq summary::after {
  content: "+";
  position: absolute;
  right: 13px;
  top: 10px;
  font-family: var(--surface6663f-mono);
  font-size: 16px;
  color: var(--surface6663f-mint);
  transition: transform 0.2s ease;
}

.surface6663f-faq[open] summary::after { transform: rotate(45deg); }

.surface6663f-faq-body {
  padding: 0 13px 13px 38px;
  font-size: 12.8px;
  color: var(--surface6663f-dim);
}

.surface6663f-faq-body h3,
.surface6663f-h3 {
  margin: 14px 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--surface6663f-text);
}

/* Goal rows: mono tag on the left, advice on the right */
.surface6663f-goalrow {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--surface6663f-line-soft);
}

.surface6663f-goalrow:last-child { border-bottom: 0; }

.surface6663f-goaltag {
  align-self: start;
  font-family: var(--surface6663f-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 1.4;
  color: var(--surface6663f-mint);
  border: 1px solid rgba(144, 238, 144, 0.35);
  border-radius: 4px;
  padding: 5px 6px;
  text-align: center;
}

.surface6663f-goalrow p {
  margin: 0;
  font-size: 12.8px;
  color: var(--surface6663f-dim);
}

/* Numbered security items */
.surface6663f-secitem {
  counter-increment: surface6663f-sec;
  position: relative;
  padding: 10px 0 10px 40px;
  border-bottom: 1px dashed var(--surface6663f-line-soft);
}

.surface6663f-secitem:last-child { border-bottom: 0; }

.surface6663f-secitem::before {
  content: counter(surface6663f-sec, decimal-leading-zero);
  position: absolute;
  left: 2px;
  top: 12px;
  font-family: var(--surface6663f-mono);
  font-size: 12px;
  color: var(--surface6663f-slate);
}

.surface6663f-secitem h3 {
  margin: 0 0 3px;
  font-size: 13.5px;
  font-weight: 700;
}

.surface6663f-secitem p {
  margin: 0;
  font-size: 12.6px;
  color: var(--surface6663f-dim);
}

.surface6663f-seclist { counter-reset: surface6663f-sec; list-style: none; margin: 0; padding: 0; }

/* Criteria checklist */
.surface6663f-check {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px dashed var(--surface6663f-line-soft);
}

.surface6663f-check:last-child { border-bottom: 0; }

.surface6663f-check::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--surface6663f-mint-deep);
  border-radius: 3px;
}

.surface6663f-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--surface6663f-mint);
  border-bottom: 2px solid var(--surface6663f-mint);
  transform: rotate(-45deg);
}

.surface6663f-check h3 { margin: 0 0 3px; font-size: 13.5px; font-weight: 700; }

.surface6663f-check p { margin: 0; font-size: 12.6px; color: var(--surface6663f-dim); }

/* Direct answer block */
.surface6663f-answer {
  border-left: 3px solid var(--surface6663f-sea);
  border-radius: 0 var(--surface6663f-r-card) var(--surface6663f-r-card) 0;
  background: var(--surface6663f-raise);
  padding: 13px 14px;
  margin: 0 0 12px;
}

.surface6663f-answer-tag {
  display: block;
  margin-bottom: 5px;
  font-family: var(--surface6663f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--surface6663f-sea);
}

.surface6663f-answer p { margin: 0; font-size: 13px; color: var(--surface6663f-text); }

.surface6663f-steps {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--surface6663f-dim);
  font-size: 12.8px;
}

.surface6663f-steps li { margin: 0 0 8px; }

.surface6663f-steps li::marker {
  color: var(--surface6663f-flame-hi);
  font-family: var(--surface6663f-mono);
  font-size: 11px;
}

/* ------------------------------------------------------------
   Homepage extended footer: brand > promotions > directory >
   responsible-play note, rendered as a sectioned list.
   ------------------------------------------------------------ */
.surface6663f-xfooter {
  margin-top: 34px;
  border-top: 1px solid var(--surface6663f-line);
}

.surface6663f-xf-sec {
  padding: 16px 14px 14px;
  border-bottom: 1px solid var(--surface6663f-line-soft);
}

.surface6663f-xf-sec:last-child { border-bottom: 0; }

.surface6663f-xf-h {
  margin: 0 0 10px;
  font-family: var(--surface6663f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--surface6663f-flame-hi);
}

.surface6663f-xf-sec h2 { font-size: 16px; line-height: 1.35; margin: 0 0 10px; }

.surface6663f-xf-brand {
  margin: 0;
  font-size: 12.8px;
  color: var(--surface6663f-dim);
}

.surface6663f-xf-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 9px 0;
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--surface6663f-line-soft);
  color: var(--surface6663f-text);
  font-family: var(--surface6663f-sans);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.surface6663f-xf-promo:last-of-type { border-bottom: 0; }

.surface6663f-xf-promo i {
  flex: 0 0 auto;
  font-style: normal;
  font-family: var(--surface6663f-mono);
  font-size: 12px;
  color: var(--surface6663f-flame-hi);
  transition: transform 0.2s ease;
}

.surface6663f-xf-promo:active { color: var(--surface6663f-mint); }
.surface6663f-xf-promo:active i { transform: translateX(4px); }

.surface6663f-xf-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.surface6663f-xf-dir a {
  display: block;
  font-size: 12.4px;
  line-height: 1.4;
  color: var(--surface6663f-dim);
  text-decoration: none;
  border-left: 2px solid var(--surface6663f-line);
  padding-left: 9px;
}

.surface6663f-xf-dir a b {
  display: block;
  color: var(--surface6663f-text);
  font-size: 12.8px;
}

.surface6663f-xf-dir a:active b { color: var(--surface6663f-mint); }

.surface6663f-xf-note {
  margin: 0;
  font-size: 11.8px;
  line-height: 1.65;
  color: var(--surface6663f-faint);
}

/* ------------------------------------------------------------
   Common footer (copyright only) + fixed icon rack
   ------------------------------------------------------------ */
.surface6663f-footer {
  padding: 16px 14px 18px;
  border-top: 1px solid var(--surface6663f-line);
  text-align: center;
}

.surface6663f-footer p {
  margin: 0;
  font-family: var(--surface6663f-mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--surface6663f-faint);
}

.surface6663f-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(62px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(24, 23, 21, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--surface6663f-line);
}

.surface6663f-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 0 2px;
  background: none;
  border: 0;
  color: var(--surface6663f-faint);
  font-family: var(--surface6663f-mono);
  font-size: 9.5px;
  letter-spacing: 0.4px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.surface6663f-tab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.22s ease, stroke 0.22s ease, transform 0.22s ease;
}

.surface6663f-tab.is-active { color: var(--surface6663f-mint); }

.surface6663f-tab.is-active svg {
  fill: rgba(144, 238, 144, 0.28);
  stroke: var(--surface6663f-mint);
  transform: translateY(-1px);
}

.surface6663f-tab[data-promo] { color: var(--surface6663f-slate); }

.surface6663f-tab[data-promo] svg { stroke: var(--surface6663f-flame-hi); }

.surface6663f-tab[data-promo]::after {
  content: "";
  position: absolute;
  top: 9px;
  right: calc(50% - 17px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--surface6663f-flame);
}

/* Sliding active indicator across the rack */
.surface6663f-tabind {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--surface6663f-flame), var(--surface6663f-mint));
  transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.3, 1);
}

/* ------------------------------------------------------------
   Wide screens keep the centered phone canvas
   ------------------------------------------------------------ */
@media (min-width: 431px) {
  body.surface6663f-body {
    background:
      radial-gradient(60% 40% at 50% 0%, rgba(210, 105, 30, 0.07), transparent 70%),
      var(--surface6663f-bg-deep);
  }

  .surface6663f-canvas {
    box-shadow: 0 0 0 1px #2b2926, 0 0 70px rgba(0, 0, 0, 0.75);
  }
}

/* Small-phone squeeze */
@media (max-width: 340px) {
  .surface6663f-h1 { font-size: 22px; }
  .surface6663f-topbar .surface6663f-brand-logo { width: 38px; height: 38px; flex-basis: 38px; }
  .surface6663f-goalrow { grid-template-columns: 84px 1fr; }
}

/* Motion budget guard */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
