/* ==========================================================================
   phdream1.click - mobile-first canvas stylesheet
   Palette: #333333 ink base, #FFBF00 / #FFCC33 / #FF9800 accents,
   #FFFFFF / #FFF8DC light text. Rounded display type, compact body type.
   Buttons are round, cards stay squared, transitions stay short.
   All classes and custom properties carry the surface8e8f1- prefix.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --surface8e8f1-ink: #333333;          /* page background */
  --surface8e8f1-ink-deep: #262626;     /* raised panels */
  --surface8e8f1-ink-soft: #3d3d3d;     /* subtle fills */
  --surface8e8f1-edge: #4a4a42;         /* hairlines on dark */
  --surface8e8f1-gold: #FFBF00;         /* primary accent */
  --surface8e8f1-amber: #FFCC33;        /* secondary accent */
  --surface8e8f1-flame: #FF9800;        /* warm gradient end */
  --surface8e8f1-paper: #FFFFFF;        /* strong text */
  --surface8e8f1-cream: #FFF8DC;        /* soft text */
  --surface8e8f1-mute: rgba(255, 248, 220, 0.68);
  --surface8e8f1-shadow: rgba(0, 0, 0, 0.42);
  --surface8e8f1-radius-card: 6px;      /* cards stay squared */
  --surface8e8f1-radius-pill: 999px;    /* buttons stay round */
  --surface8e8f1-font-display: "Arial Rounded MT Bold", "Trebuchet MS",
    "Segoe UI", Verdana, sans-serif;
  --surface8e8f1-font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --surface8e8f1-topbar-h: 56px;
  --surface8e8f1-bottombar-h: 76px;
  --surface8e8f1-tap: 44px;             /* minimum touch target */
  --surface8e8f1-gap: 10px;
  --surface8e8f1-step: 190ms;           /* short-distance motion only */
}

/* --------------------------------------------------------------------------
   2. Base and reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: #202020;
  color: var(--surface8e8f1-cream);
  font-family: var(--surface8e8f1-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--surface8e8f1-font-display);
  color: var(--surface8e8f1-paper);
  line-height: 1.22;
  margin: 0 0 0.5em;
  letter-spacing: 0.1px;
}

p {
  margin: 0 0 0.85em;
}

a {
  color: var(--surface8e8f1-amber);
  text-decoration: none;
}

a:hover {
  color: var(--surface8e8f1-gold);
  text-decoration: underline;
}

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

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

/* --------------------------------------------------------------------------
   3. Phone canvas shell (centered on wide screens, 430px ceiling)
   -------------------------------------------------------------------------- */
.surface8e8f1-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface8e8f1-ink);
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.55);
  overflow-x: hidden;
}

.surface8e8f1-main {
  display: block;
  padding: 0 12px var(--surface8e8f1-bottombar-h);
  /* bottom room keeps the fixed layer clear of the last content block */
}

.surface8e8f1-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface8e8f1-gold);
  color: #241d00;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--surface8e8f1-radius-pill);
  z-index: 60;
}

.surface8e8f1-skip:focus {
  left: 12px;
  top: 10px;
}

/* --------------------------------------------------------------------------
   4. Sticky top bar - tab style brand row plus action cluster
   -------------------------------------------------------------------------- */
.surface8e8f1-topwrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #3a3a38 0%, var(--surface8e8f1-ink) 100%);
  border-bottom: 1px solid var(--surface8e8f1-edge);
}

.surface8e8f1-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--surface8e8f1-topbar-h);
  padding: 0 10px;
}

.surface8e8f1-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-right: auto;
}

.surface8e8f1-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--surface8e8f1-gold);
  background: var(--surface8e8f1-ink-deep);
  flex: 0 0 auto;
}

.surface8e8f1-brandname {
  font-family: var(--surface8e8f1-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--surface8e8f1-gold);
  white-space: nowrap;
  letter-spacing: 0.4px;
}

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

/* Round buttons, staggered sizes for primary versus secondary roles */
.surface8e8f1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--surface8e8f1-radius-pill);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  min-height: var(--surface8e8f1-tap);
  padding: 0 14px;
  transition: transform var(--surface8e8f1-step) ease,
    box-shadow var(--surface8e8f1-step) ease;
}

.surface8e8f1-btn:active {
  transform: translateY(1px) scale(0.97);
}

.surface8e8f1-btn--gold {
  background: linear-gradient(135deg, var(--surface8e8f1-gold) 0%,
    var(--surface8e8f1-flame) 100%);
  color: #2c2300;
  box-shadow: 0 3px 0 #a86e00;
}

.surface8e8f1-btn--gold:hover {
  color: #2c2300;
  text-decoration: none;
  box-shadow: 0 4px 0 #a86e00;
}

.surface8e8f1-btn--ghost {
  background: transparent;
  color: var(--surface8e8f1-cream);
  border-color: var(--surface8e8f1-gold);
}

.surface8e8f1-btn--ghost:hover {
  color: var(--surface8e8f1-gold);
  text-decoration: none;
  background: rgba(255, 191, 0, 0.08);
}

.surface8e8f1-btn--compact {
  min-height: 38px;
  padding: 0 11px;
  font-size: 12px;
}

.surface8e8f1-btn--wide {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
}

.surface8e8f1-menubtn {
  width: var(--surface8e8f1-tap);
  height: var(--surface8e8f1-tap);
  border-radius: 12px;
  border: 1px solid var(--surface8e8f1-edge);
  background: var(--surface8e8f1-ink-deep);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  transition: border-color var(--surface8e8f1-step) ease;
}

.surface8e8f1-menubtn:hover {
  border-color: var(--surface8e8f1-gold);
}

.surface8e8f1-menubtn-bars,
.surface8e8f1-menubtn-bars::before,
.surface8e8f1-menubtn-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--surface8e8f1-amber);
}

.surface8e8f1-menubtn.surface8e8f1-open .surface8e8f1-menubtn-bars {
  background: transparent;
}

.surface8e8f1-menubtn.surface8e8f1-open .surface8e8f1-menubtn-bars::before {
  transform: translateY(3px) rotate(45deg);
}

.surface8e8f1-menubtn.surface8e8f1-open .surface8e8f1-menubtn-bars::after {
  transform: translateY(-3px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Sectioned menu panel that drops under the top bar
   -------------------------------------------------------------------------- */
.surface8e8f1-menupanel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
  background: var(--surface8e8f1-ink-deep);
  border-bottom: 1px solid var(--surface8e8f1-edge);
}

.surface8e8f1-menupanel.surface8e8f1-open {
  max-height: 72vh;
  overflow-y: auto;
}

.surface8e8f1-menugroup {
  padding: 10px 14px 4px;
}

.surface8e8f1-menugroup + .surface8e8f1-menugroup {
  border-top: 1px dashed var(--surface8e8f1-edge);
}

.surface8e8f1-menulabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--surface8e8f1-flame);
  margin: 0 0 6px;
}

.surface8e8f1-menulinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.surface8e8f1-menulink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--surface8e8f1-tap);
  padding: 8px 10px;
  border-radius: var(--surface8e8f1-radius-card);
  background: var(--surface8e8f1-ink-soft);
  color: var(--surface8e8f1-cream);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  transition: background var(--surface8e8f1-step) ease;
}

.surface8e8f1-menulink:hover {
  background: #474740;
  color: var(--surface8e8f1-paper);
  text-decoration: none;
}

.surface8e8f1-menulink--home {
  grid-column: 1 / -1;
}

/* lightweight underline marker for the active route */
.surface8e8f1-menulink[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--surface8e8f1-gold);
}

.surface8e8f1-menulink .surface8e8f1-menudot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface8e8f1-flame);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   6. Hero carousel
   -------------------------------------------------------------------------- */
.surface8e8f1-hero {
  position: relative;
  margin: 12px 0 4px;
  border-radius: var(--surface8e8f1-radius-card);
  overflow: hidden;
  border: 1px solid var(--surface8e8f1-edge);
  background: var(--surface8e8f1-ink-deep);
}

.surface8e8f1-track {
  display: flex;
  width: 100%;
  transition: transform 340ms ease;
}

.surface8e8f1-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface8e8f1-ink-deep);
}

.surface8e8f1-slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.surface8e8f1-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.surface8e8f1-dot {
  width: 22px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--surface8e8f1-radius-pill);
  background: rgba(255, 248, 220, 0.4);
  transition: background var(--surface8e8f1-step) ease;
}

.surface8e8f1-dot.surface8e8f1-active {
  background: var(--surface8e8f1-gold);
}

.surface8e8f1-herostrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: var(--surface8e8f1-radius-card);
  background: linear-gradient(90deg, rgba(255, 191, 0, 0.16) 0%,
    rgba(255, 152, 0, 0.06) 100%);
  border: 1px solid rgba(255, 191, 0, 0.35);
}

.surface8e8f1-herostrip-text {
  font-size: 12.5px;
  color: var(--surface8e8f1-cream);
  margin: 0;
}

.surface8e8f1-herostrip-text strong {
  color: var(--surface8e8f1-gold);
}

/* --------------------------------------------------------------------------
   7. Category jump chips
   -------------------------------------------------------------------------- */
.surface8e8f1-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin: 0 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.surface8e8f1-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--surface8e8f1-radius-pill);
  border: 1px solid var(--surface8e8f1-edge);
  background: var(--surface8e8f1-ink-deep);
  color: var(--surface8e8f1-cream);
  font-size: 12.5px;
  font-weight: 700;
  transition: border-color var(--surface8e8f1-step) ease,
    color var(--surface8e8f1-step) ease;
}

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

.surface8e8f1-chipnum {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  font-size: 11px;
  color: #2c2300;
  background: var(--surface8e8f1-amber);
  border-radius: var(--surface8e8f1-radius-pill);
  padding: 1px 6px;
}

/* --------------------------------------------------------------------------
   8. Page heading block
   -------------------------------------------------------------------------- */
.surface8e8f1-pagehead {
  padding: 16px 0 6px;
}

.surface8e8f1-pagehead h1 {
  font-size: 25px;
  margin-bottom: 6px;
}

.surface8e8f1-pagehead-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--surface8e8f1-flame);
  margin: 0 0 4px;
}

.surface8e8f1-pagehead-sub {
  color: var(--surface8e8f1-mute);
  font-size: 13.5px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. Content sections and game catalog
   -------------------------------------------------------------------------- */
.surface8e8f1-section {
  padding: 18px 0 4px;
  border-top: 1px solid rgba(74, 74, 66, 0.6);
  margin-top: 14px;
}

.surface8e8f1-section:first-of-type {
  border-top: 0;
}

.surface8e8f1-sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.surface8e8f1-sectitle {
  font-size: 18.5px;
  margin: 0;
}

.surface8e8f1-sectitle em {
  font-style: normal;
  color: var(--surface8e8f1-gold);
}

.surface8e8f1-secnote {
  font-size: 11px;
  font-weight: 700;
  color: var(--surface8e8f1-flame);
  white-space: nowrap;
  letter-spacing: 0.4px;
}

.surface8e8f1-secintro {
  color: var(--surface8e8f1-mute);
  font-size: 13px;
  margin: 0 0 10px;
}

.surface8e8f1-secintro strong {
  color: var(--surface8e8f1-cream);
}

/* compact square-figure catalog: 4 stable tracks on every phone width */
.surface8e8f1-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.surface8e8f1-gcell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 5px 4px 7px;
  border: 1px solid var(--surface8e8f1-edge);
  border-radius: var(--surface8e8f1-radius-card);
  background: var(--surface8e8f1-ink-deep);
  transition: transform var(--surface8e8f1-step) ease,
    border-color var(--surface8e8f1-step) ease;
}

.surface8e8f1-gcell:hover {
  border-color: var(--surface8e8f1-gold);
  text-decoration: none;
}

.surface8e8f1-gcell:active {
  transform: scale(0.95);
}

.surface8e8f1-gimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: #1d1d1d;
}

.surface8e8f1-gname {
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--surface8e8f1-cream);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   10. Editorial modules (conclusion first, compact compare rows after)
   -------------------------------------------------------------------------- */
.surface8e8f1-module {
  margin-top: 14px;
  padding: 14px 12px 12px;
  border: 1px solid var(--surface8e8f1-edge);
  border-radius: var(--surface8e8f1-radius-card);
  background: var(--surface8e8f1-ink-deep);
}

.surface8e8f1-module > h2 {
  font-size: 18px;
}

.surface8e8f1-lead {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--surface8e8f1-paper);
  background: rgba(255, 191, 0, 0.1);
  border-left: 3px solid var(--surface8e8f1-gold);
  padding: 8px 10px;
  border-radius: 0 var(--surface8e8f1-radius-card) var(--surface8e8f1-radius-card) 0;
  margin: 0 0 12px;
}

.surface8e8f1-prose {
  font-size: 13.5px;
  color: var(--surface8e8f1-cream);
}

.surface8e8f1-prose p {
  margin: 0 0 0.8em;
}

.surface8e8f1-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 4px;
}

.surface8e8f1-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--surface8e8f1-edge);
  border-radius: var(--surface8e8f1-radius-card);
  background: var(--surface8e8f1-ink-soft);
}

.surface8e8f1-rowterm {
  font-family: var(--surface8e8f1-font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--surface8e8f1-gold);
  line-height: 1.3;
}

.surface8e8f1-rowdesc {
  font-size: 12.5px;
  color: var(--surface8e8f1-mute);
  line-height: 1.45;
}

.surface8e8f1-rowdesc a {
  font-weight: 600;
}

/* staggered CTA cluster: one oversized primary, smaller support buttons */
.surface8e8f1-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.surface8e8f1-cta--stack {
  flex-direction: column;
  align-items: stretch;
}

.surface8e8f1-cta-primary {
  flex: 1 1 100%;
  min-height: 52px;
  font-size: 16px;
  padding: 0 20px;
}

.surface8e8f1-cta-second {
  flex: 1 1 44%;
  min-height: var(--surface8e8f1-tap);
  font-size: 13px;
}

.surface8e8f1-cta-third {
  flex: 1 1 100%;
  min-height: 38px;
  font-size: 12.5px;
}

/* checklist */
.surface8e8f1-check {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.surface8e8f1-checkitem {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border-radius: var(--surface8e8f1-radius-card);
  background: var(--surface8e8f1-ink-soft);
  border: 1px solid var(--surface8e8f1-edge);
  font-size: 13px;
}

.surface8e8f1-checkitem::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--surface8e8f1-gold), var(--surface8e8f1-flame));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat,
    linear-gradient(#000 0 0);
}

.surface8e8f1-checkitem strong {
  color: var(--surface8e8f1-paper);
}

/* compact inline promotion strip used inside editorial modules */
.surface8e8f1-promostrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: var(--surface8e8f1-radius-card);
  border: 1px dashed var(--surface8e8f1-flame);
  background: rgba(255, 152, 0, 0.08);
  font-size: 12.5px;
  color: var(--surface8e8f1-cream);
}

/* --------------------------------------------------------------------------
   11. Extended home footer: brand, promo actions, directory, disclaimer
   -------------------------------------------------------------------------- */
.surface8e8f1-xt {
  margin-top: 20px;
  padding: 16px 12px 10px;
  border-top: 3px solid var(--surface8e8f1-gold);
  background: var(--surface8e8f1-ink-deep);
  border-radius: var(--surface8e8f1-radius-card) var(--surface8e8f1-radius-card) 0 0;
}

.surface8e8f1-xtbrand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.surface8e8f1-xtlogo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--surface8e8f1-gold);
  object-fit: cover;
  flex: 0 0 auto;
}

.surface8e8f1-xtbrandtext {
  font-size: 12.5px;
  color: var(--surface8e8f1-mute);
  margin: 0;
}

.surface8e8f1-xtbrandtext strong {
  display: block;
  font-family: var(--surface8e8f1-font-display);
  font-size: 15px;
  color: var(--surface8e8f1-gold);
  margin-bottom: 2px;
}

.surface8e8f1-xtpromos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.surface8e8f1-xtpromos .surface8e8f1-btn--wide {
  padding: 11px 8px;
  font-size: 12.5px;
  min-height: 48px;
}

.surface8e8f1-xtpromolinks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  padding: 2px 2px 0;
}

.surface8e8f1-xtpromolinks a {
  color: var(--surface8e8f1-amber);
  font-weight: 600;
}

.surface8e8f1-xtdirgroup {
  margin-bottom: 10px;
}

.surface8e8f1-xtdirlabel {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--surface8e8f1-flame);
  margin: 0 0 5px;
}

.surface8e8f1-xtdirlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.surface8e8f1-xtdirlink {
  display: inline-block;
  padding: 7px 11px;
  border-radius: var(--surface8e8f1-radius-card);
  background: var(--surface8e8f1-ink-soft);
  border: 1px solid var(--surface8e8f1-edge);
  color: var(--surface8e8f1-cream);
  font-size: 12px;
  font-weight: 600;
}

.surface8e8f1-xtdirlink:hover {
  color: var(--surface8e8f1-gold);
  border-color: var(--surface8e8f1-gold);
  text-decoration: none;
}

.surface8e8f1-xtnote {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 248, 220, 0.55);
  border-top: 1px solid var(--surface8e8f1-edge);
  padding-top: 10px;
  margin: 4px 0 0;
}

/* --------------------------------------------------------------------------
   12. Slim copyright footer
   -------------------------------------------------------------------------- */
.surface8e8f1-footer {
  padding: 14px 12px calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: #1f1f1f;
}

.surface8e8f1-footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--surface8e8f1-mute);
}

.surface8e8f1-footer-copy strong {
  color: var(--surface8e8f1-amber);
}

/* --------------------------------------------------------------------------
   13. Layered fixed bottom navigation
   -------------------------------------------------------------------------- */
.surface8e8f1-bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.surface8e8f1-bottomnav {
  pointer-events: auto;
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(38, 38, 38, 0.97) 0%, #202020 100%);
  border-top: 2px solid var(--surface8e8f1-gold);
  box-shadow: 0 -6px 18px var(--surface8e8f1-shadow);
}

.surface8e8f1-bnavitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 52px;
  padding: 6px 2px 4px;
  color: var(--surface8e8f1-mute);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  border: 0;
  background: transparent;
  transition: color var(--surface8e8f1-step) ease,
    transform var(--surface8e8f1-step) ease;
}

.surface8e8f1-bnavitem:active {
  transform: translateY(1px);
}

.surface8e8f1-bnavitem:hover {
  color: var(--surface8e8f1-amber);
  text-decoration: none;
}

.surface8e8f1-bnavitem svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* underline marker for the current page */
.surface8e8f1-bnavitem[aria-current="page"] {
  color: var(--surface8e8f1-gold);
}

.surface8e8f1-bnavitem[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--surface8e8f1-gold);
}

/* raised middle promo button gives the strip its layered profile */
.surface8e8f1-bnavitem--raise {
  color: #2c2300;
  background: linear-gradient(135deg, var(--surface8e8f1-gold) 0%,
    var(--surface8e8f1-flame) 100%);
  border-radius: var(--surface8e8f1-radius-pill);
  min-height: 58px;
  margin: -22px 4px 0;
  box-shadow: 0 4px 0 #a86e00, 0 6px 14px var(--surface8e8f1-shadow);
  font-size: 10.5px;
  justify-content: center;
  gap: 2px;
}

.surface8e8f1-bnavitem--raise:hover {
  color: #241d00;
  text-decoration: none;
}

.surface8e8f1-bnavitem--raise svg {
  stroke: #2c2300;
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   14. Short-distance reveal transitions
   -------------------------------------------------------------------------- */
.surface8e8f1-rise {
  opacity: 0;
  transform: translateY(12px);
}

.surface8e8f1-rise.surface8e8f1-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms ease, transform 300ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .surface8e8f1-rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .surface8e8f1-track {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   15. Responsive tuning
   -------------------------------------------------------------------------- */

/* Small phones: keep four catalog tracks but tighten the chrome */
@media (max-width: 360px) {
  .surface8e8f1-brandname {
    font-size: 18px;
  }

  .surface8e8f1-btn--compact {
    padding: 0 9px;
    font-size: 11.5px;
  }

  .surface8e8f1-grid {
    gap: 6px;
  }

  .surface8e8f1-gname {
    font-size: 10px;
  }

  .surface8e8f1-pagehead h1 {
    font-size: 22px;
  }
}

/* 430px is the ceiling of the phone canvas: hold the centered column,
   widen type slightly, and let the catalog breathe with roomier gaps */
@media (min-width: 430px) {
  .surface8e8f1-shell {
    border-left: 1px solid #4a4a42;
    border-right: 1px solid #4a4a42;
  }

  .surface8e8f1-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .surface8e8f1-pagehead h1 {
    font-size: 27px;
  }

  .surface8e8f1-sectitle {
    font-size: 20px;
  }

  .surface8e8f1-grid {
    gap: 10px;
  }

  .surface8e8f1-gname {
    font-size: 11px;
  }

  .surface8e8f1-xt {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Wide screens: nothing grows past the phone canvas, the layered bottom
   bar simply stays glued to the centered column */
@media (min-width: 768px) {
  body {
    background: #171717;
  }

  .surface8e8f1-shell {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.65);
  }
}

/* --------------------------------------------------------------------------
   16. Help-page components: Q&A accordion, numbered rail, stacked notecards
   -------------------------------------------------------------------------- */

/* Collapsible question cards used by the FAQs page */
.surface8e8f1-acclist {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
}

.surface8e8f1-acc {
  border: 1px solid var(--surface8e8f1-edge);
  border-radius: var(--surface8e8f1-radius-card);
  background: var(--surface8e8f1-ink-soft);
}

.surface8e8f1-acc[open] {
  border-color: var(--surface8e8f1-gold);
  background: var(--surface8e8f1-ink-deep);
}

.surface8e8f1-accsum {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 11px;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--surface8e8f1-paper);
  list-style: none;
  cursor: pointer;
  transition: color var(--surface8e8f1-step) ease;
}

.surface8e8f1-accsum::-webkit-details-marker {
  display: none;
}

.surface8e8f1-accsum:hover {
  color: var(--surface8e8f1-gold);
}

.surface8e8f1-accsum::before {
  content: "?";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #2c2300;
  background: linear-gradient(135deg, var(--surface8e8f1-gold), var(--surface8e8f1-flame));
}

.surface8e8f1-acc[open] .surface8e8f1-accsum::before {
  content: "i";
}

.surface8e8f1-accbody {
  padding: 0 12px 12px 14px;
  font-size: 13px;
  color: var(--surface8e8f1-cream);
}

/* Stacked notecard pair for short fact callouts */
.surface8e8f1-notes {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
}

.surface8e8f1-note {
  padding: 9px 11px;
  border-radius: var(--surface8e8f1-radius-card);
  border-left: 3px solid var(--surface8e8f1-amber);
  background: var(--surface8e8f1-ink-soft);
  font-size: 12.5px;
  color: var(--surface8e8f1-mute);
}

.surface8e8f1-note strong {
  color: var(--surface8e8f1-amber);
}
