/* HMC App UX / Visual 3D / Newcomer Guide Layer — 2026-12-04
   Additive overlay on top of 2026-12-01 Livehouse Night refinement.
   Palette: ground #080A0F, warm gold primary #F5B041, cool blue secondary #38BDF8.
   Does not alter H1 fallback fonts, prices, billing logic, or legal copy. */

:root {
  --hmc-ux-ground: #080A0F;
  --hmc-ux-backstage: #10141D;
  --hmc-ux-card: #151B26;
  --hmc-ux-elevated: #1C2433;
  --hmc-ux-gold: #F5B041;
  --hmc-ux-gold-ink: #120D05;
  --hmc-ux-gold-soft: rgba(245, 176, 65, 0.16);
  --hmc-ux-gold-border: rgba(245, 176, 65, 0.42);
  --hmc-ux-blue: #38BDF8;
  --hmc-ux-blue-soft: rgba(56, 189, 248, 0.13);
  --hmc-ux-blue-border: rgba(56, 189, 248, 0.38);
  --hmc-ux-paper: #F3F4F6;
  --hmc-ux-muted: #B6C0CE;
  --hmc-ux-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hmc-ux-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 1. Unified Livehouse Night Stage Background (index.html + start.html) ── */
html {
  background-color: var(--hmc-ux-ground);
}

body.is-guest,
body.hmc-start-page {
  background-color: var(--hmc-ux-ground);
  background-image:
    radial-gradient(ellipse 76% 42% at 50% 0%, rgba(245, 176, 65, 0.12), transparent 65%),
    radial-gradient(ellipse 64% 48% at 88% 22%, rgba(56, 189, 248, 0.09), transparent 68%),
    radial-gradient(ellipse 56% 44% at 12% 84%, rgba(56, 189, 248, 0.06), transparent 72%),
    linear-gradient(180deg, #080A0F 0%, #0B0F17 52%, #080A0F 100%);
  background-attachment: scroll;
}

/* When new WebGL 3D stage is active, quiet down legacy burgundy #cosmos3d/#starfield */
body.hmc-stage3d-on #starfield,
body.hmc-stage3d-on .nebula,
body.is-guest #cosmos3d {
  opacity: 0 !important;
  pointer-events: none !important;
}

#hmcStage3dCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 480ms var(--hmc-ux-ease);
}

body.hmc-stage3d-on #hmcStage3dCanvas {
  opacity: 1;
}

/* Static 2D architectural depth stage for fallback-2d & reduced-motion */
.hmc-stage-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hmc-stage-backdrop::before {
  content: "";
  position: absolute;
  top: -12%;
  left: 50%;
  width: min(920px, 118vw);
  height: 52vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 58% 68% at 50% 18%, rgba(245, 176, 65, 0.14), rgba(245, 176, 65, 0.03) 54%, transparent 76%);
}

.hmc-stage-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 52% 38% at 86% 32%, rgba(56, 189, 248, 0.11), transparent 70%),
    linear-gradient(180deg, transparent 0%, transparent 62%, rgba(56, 189, 248, 0.04) 76%, transparent 92%);
}

/* Ensure main content always sits cleanly above backdrop & 3D canvas */
#landingPage,
main#app,
#app,
.site-footer {
  position: relative;
  z-index: 2;
}

/* ── 2. Deepened Livehouse Entrance Framing & CSS 3D Depth (index.html) ── */
body.is-guest .hmc-topbar {
  background: rgba(8, 10, 15, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

body.is-guest .hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(245, 176, 65, 0.24);
  background:
    radial-gradient(ellipse 74% 66% at 50% -4%, rgba(245, 176, 65, 0.18), transparent 62%),
    radial-gradient(ellipse 50% 56% at 96% 100%, rgba(56, 189, 248, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(21, 27, 38, 0.86) 0%, rgba(11, 15, 23, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(245, 176, 65, 0.26),
    inset 0 -1px 0 rgba(56, 189, 248, 0.16),
    0 28px 80px -46px rgba(0, 0, 0, 0.82),
    0 18px 60px -44px rgba(245, 176, 65, 0.28);
}

body.is-guest .hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hmc-ux-gold), transparent);
  opacity: 0.78;
  pointer-events: none;
}

body.is-guest .hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), transparent);
  opacity: 0.65;
  pointer-events: none;
}

/* Entrance livehouse crest bar inside hero — confirms App identity clearly */
.hmc-hero-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 6px;
}

.hmc-guide-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--hmc-ux-blue-border);
  background: rgba(56, 189, 248, 0.08);
  color: var(--hmc-ux-blue);
  font: 600 0.8125rem/1.2 var(--hmc-font-sans, "PingFang HK", "Microsoft JhengHei", sans-serif);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms var(--hmc-ux-ease), border-color 180ms var(--hmc-ux-ease), transform 180ms var(--hmc-ux-ease);
}

.hmc-guide-trigger:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--hmc-ux-blue);
  transform: translateY(-1px);
}

.hmc-guide-trigger:focus-visible {
  outline: 2px solid var(--hmc-ux-blue);
  outline-offset: 3px;
}

.hmc-guide-trigger__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hmc-ux-gold);
  flex-shrink: 0;
}

/* Subtle CSS 3D stage depth on the 3-path cards (preserves 1 Gold Primary + 2 Blue Secondary) */
.hmc-paths__grid {
  perspective: 1100px;
}

.hmc-path--primary {
  border-color: rgba(245, 176, 65, 0.46);
  background:
    radial-gradient(110% 95% at var(--hmc-mx, 22%) var(--hmc-my, 6%), rgba(245, 176, 65, 0.2), transparent 62%),
    linear-gradient(168deg, rgba(28, 36, 51, 0.96) 0%, rgba(18, 23, 34, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(245, 176, 65, 0.3),
    0 24px 72px -44px rgba(245, 176, 65, 0.5);
  transform: rotateX(var(--hmc-rx, 0deg)) rotateY(var(--hmc-ry, 0deg));
  transition: transform 240ms var(--hmc-ux-ease), border-color 200ms var(--hmc-ux-ease), box-shadow 220ms var(--hmc-ux-ease);
  will-change: transform;
}

.hmc-path--primary:hover {
  border-color: rgba(245, 176, 65, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(245, 176, 65, 0.42),
    0 30px 84px -40px rgba(245, 176, 65, 0.62);
}

.hmc-path-strip {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-left: 3px solid var(--hmc-ux-blue);
  background:
    radial-gradient(90% 95% at var(--hmc-mx, 12%) var(--hmc-my, 20%), rgba(56, 189, 248, 0.14), transparent 60%),
    linear-gradient(160deg, rgba(16, 20, 29, 0.94) 0%, rgba(13, 18, 27, 0.96) 100%);
  transform: rotateX(var(--hmc-rx, 0deg)) rotateY(var(--hmc-ry, 0deg));
  transition: transform 240ms var(--hmc-ux-ease), border-color 200ms var(--hmc-ux-ease), box-shadow 220ms var(--hmc-ux-ease);
  will-change: transform;
}

.hmc-path-strip:hover {
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: 0 20px 56px -38px rgba(56, 189, 248, 0.36);
}

/* Primary gold CTA emphasis (single solid gold CTA on landing) */
.hmc-path--primary .hmc-cta--primary {
  box-shadow: 0 10px 28px -12px rgba(245, 176, 65, 0.65);
}

.hmc-path--primary .hmc-cta--primary:hover {
  box-shadow: 0 14px 34px -10px rgba(245, 176, 65, 0.78);
}

/* Capability & Store cards: subtle livehouse polish without altering pricing/legal meaning */
body.is-guest .hmc-capabilities .feature-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(100% 78% at 50% 0%, rgba(56, 189, 248, 0.12), transparent 64%),
    rgba(21, 27, 38, 0.92);
}

body.is-guest .pricing-card {
  background:
    radial-gradient(100% 78% at 50% 0%, rgba(56, 189, 248, 0.11), transparent 62%),
    rgba(21, 27, 38, 0.94);
  border-color: rgba(255, 255, 255, 0.11);
}

body.is-guest .pricing-card.best-value {
  background:
    radial-gradient(100% 78% at 50% 0%, rgba(245, 176, 65, 0.14), transparent 62%),
    rgba(21, 27, 38, 0.95);
  border-color: rgba(245, 176, 65, 0.38);
}

/* ── 3. Mobile Readability & Hierarchy Fixes (from LIVE audit) ── */
@media (max-width: 767.98px) {
  body.is-guest .hero-section {
    padding: 16px 14px 12px !important;
    margin-bottom: 10px !important;
  }

  body.is-guest .hmc-hero-lead {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0 auto 6px;
    color: var(--hmc-ux-muted);
  }

  body.is-guest .hmc-path--primary {
    padding: 14px 16px 12px;
  }

  body.is-guest .hmc-path-strip__body {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--hmc-ux-muted);
  }

  body.is-guest .hmc-path-strip {
    min-height: 82px;
    padding: 12px 14px;
  }

  .hmc-hero-actions-row {
    gap: 6px 10px;
    margin-top: 2px;
  }

  .hmc-guide-trigger {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.78rem;
  }
}

/* ── 4. start.html Livehouse Night Refinement & 3D Depth ── */
body.hmc-start-page {
  --bg0: #080A0F;
  --bg1: #0D121C;
  --bg: #080A0F;
  --gold: #F5B041;
  --blue: #38BDF8;
  --accent: #F5B041;
  --ink: #F3F4F6;
  --muted: #B6C0CE;
  --card: #151B26;
  --soft: #1C2433;
  --line: rgba(255, 255, 255, 0.14);
  --on: #120D05;
  --tap: #151B26;
  --pulse: rgba(245, 176, 65, 0.45);
}

body.hmc-start-page .wrap {
  width: min(100%, 460px);
  padding-top: max(68px, calc(env(safe-area-inset-top) + 56px));
}

body.hmc-start-page .hmc-start-topbar {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.hmc-start-page .hmc-start-topbar a.home {
  position: static;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 20, 29, 0.82);
  color: var(--hmc-ux-muted);
  font-size: 13px;
  white-space: nowrap;
}

body.hmc-start-page .hmc-start-topbar a.home:hover {
  color: var(--hmc-ux-paper);
  border-color: rgba(245, 176, 65, 0.42);
}

body.hmc-start-page .hmc-start-topbar .hmc-guide-trigger {
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

body.hmc-start-page [data-screen] {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 22px 18px 20px;
  background:
    radial-gradient(120% 75% at 50% 0%, rgba(245, 176, 65, 0.1), transparent 58%),
    rgba(16, 20, 29, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(245, 176, 65, 0.2),
    0 24px 68px -42px rgba(0, 0, 0, 0.85);
}

body.hmc-start-page .tap {
  border-color: var(--hmc-ux-gold);
  background:
    radial-gradient(circle at 38% 32%, rgba(245, 176, 65, 0.18), rgba(21, 27, 38, 0.96) 64%);
  box-shadow:
    inset 0 1px 0 rgba(245, 176, 65, 0.35),
    0 0 0 8px rgba(245, 176, 65, 0.06),
    0 18px 46px -22px rgba(245, 176, 65, 0.42);
  transition: transform 110ms var(--hmc-ux-ease), box-shadow 180ms var(--hmc-ux-ease);
}

body.hmc-start-page .tap.is-down {
  transform: scale(0.96);
  background: var(--hmc-ux-gold);
  color: var(--hmc-ux-gold-ink);
}

body.hmc-start-page .card {
  background: rgba(21, 27, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

body.hmc-start-page .card.is-on {
  border-color: var(--hmc-ux-gold);
  background: rgba(245, 176, 65, 0.1);
}

body.hmc-start-page .cell.gold { background: var(--hmc-ux-gold); }
body.hmc-start-page .cell.blue { background: var(--hmc-ux-blue); }

body.hmc-start-page .foot {
  text-align: center;
  font-size: 13px;
  color: var(--hmc-ux-muted);
  margin-top: 20px;
}

body.hmc-start-page .slit {
  background: linear-gradient(90deg, transparent, var(--hmc-ux-gold), transparent);
}

body.hmc-start-page #open {
  background: radial-gradient(ellipse at 50% 45%, #111622 0%, #080A0F 72%);
}

/* ── 5. Newcomer Step-by-Step Interactive Guide (Non-blocking, Accessible, Responsive) ── */
.hmc-guide-highlight {
  outline: 2px solid var(--hmc-ux-gold) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(245, 176, 65, 0.14) !important;
  border-radius: 20px;
}

.hmc-guide-shell {
  position: fixed;
  z-index: 65;
  right: 16px;
  bottom: 16px;
  width: min(352px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(245, 176, 65, 0.42);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(245, 176, 65, 0.14), transparent 58%),
    radial-gradient(90% 90% at 100% 100%, rgba(56, 189, 248, 0.1), transparent 62%),
    rgba(16, 20, 29, 0.97);
  color: var(--hmc-ux-paper);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 14px 15px 12px;
  font-family: var(--hmc-font-sans, "PingFang HK", "Microsoft JhengHei", sans-serif);
  animation: hmcGuideEnter 260ms var(--hmc-ux-ease-out);
}

.hmc-guide-shell[hidden] {
  display: none !important;
}

/* Docked first-visit welcome bar on index.html: sits cleanly between Hero and 3 Paths so it never occludes path cards or absorbs their clicks */
.hmc-guide-shell.hmc-guide-shell--docked {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 3;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 12px;
  padding: 10px 14px;
  animation: none;
  box-shadow:
    inset 0 1px 0 rgba(245, 176, 65, 0.24),
    0 14px 36px -24px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .hmc-guide-shell.hmc-guide-shell--docked {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
    padding: 9px 15px;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-copy {
    min-width: 0;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-head {
    justify-content: flex-start;
    margin-bottom: 2px;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    font-size: 0.82rem;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-title {
    font-size: 0.88rem;
    line-height: 1.28;
    margin: 0 0 2px;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-body {
    font-size: 0.76rem;
    line-height: 1.42;
    margin: 0;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    padding-right: 40px;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-btn {
    min-height: 36px;
    padding: 0 13px;
  }
}

@media (max-width: 1023.98px) and (min-width: 768px) {
  .hmc-guide-shell:not(.hmc-guide-shell--docked) {
    width: 318px;
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }
}

/* On narrow mobile screens, dock floating step card cleanly 12px above the 60px guest dock */
@media (max-width: 767.98px) {
  .hmc-guide-shell:not(.hmc-guide-shell--docked) {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    bottom: calc(var(--hmc-dock-h, 60px) + env(safe-area-inset-bottom, 0px) + 12px);
    padding: 10px 12px 9px;
    border-radius: 16px;
  }

  .hmc-guide-shell.hmc-guide-shell--docked {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 8px;
    padding: 8px 11px;
    border-radius: 16px;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-head {
    margin-bottom: 3px;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-title {
    font-size: 0.84rem;
    line-height: 1.28;
    margin-bottom: 2px;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-body {
    font-size: 0.72rem;
    line-height: 1.38;
    margin-bottom: 6px;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 0.8rem;
  }

  .hmc-guide-shell.hmc-guide-shell--docked .hmc-guide-btn {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.74rem;
  }

  .hmc-guide-shell.hmc-guide-shell--docked[data-mode="step"] {
    margin: 0 auto 12px;
    padding: 10px 12px 9px;
    border-color: rgba(245, 176, 65, 0.56);
  }

  .hmc-guide-shell.hmc-guide-shell--docked[data-mode="step"] .hmc-guide-dots {
    margin: 0 0 7px;
  }

  .hmc-guide-shell.hmc-guide-shell--docked[data-mode="step"] .hmc-guide-body {
    font-size: 0.76rem;
    line-height: 1.48;
    margin-bottom: 8px;
  }

  body.hmc-start-page .hmc-guide-shell:not(.hmc-guide-shell--docked) {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

/* Compact welcome bar keeps primary CTA completely clear on every viewport */
.hmc-guide-shell[data-mode="welcome"] {
  padding: 10px 13px;
}

.hmc-guide-shell[data-mode="welcome"] .hmc-guide-head {
  margin-bottom: 4px;
}

.hmc-guide-shell[data-mode="welcome"] .hmc-guide-title {
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.hmc-guide-shell[data-mode="welcome"] .hmc-guide-body {
  font-size: 0.76rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.hmc-guide-shell[data-compact="1"] {
  padding: 6px 11px;
}

.hmc-guide-shell[data-compact="1"] .hmc-guide-head {
  margin-bottom: 2px;
}

.hmc-guide-shell[data-compact="1"] .hmc-guide-step-pill,
.hmc-guide-shell[data-compact="1"] .hmc-guide-body {
  display: none;
}

.hmc-guide-shell[data-compact="1"] .hmc-guide-title {
  font-size: 0.78rem;
  line-height: 1.25;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hmc-guide-shell[data-compact="1"] .hmc-guide-close {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  font-size: 0.8rem;
}

.hmc-guide-shell[data-compact="1"] .hmc-guide-btn {
  min-height: 30px;
  padding: 0 11px;
  font-size: 0.75rem;
}

.hmc-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.hmc-guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hmc-ux-gold);
}

.hmc-guide-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.1);
  color: var(--hmc-ux-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hmc-guide-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hmc-ux-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.hmc-guide-close:hover {
  color: var(--hmc-ux-paper);
  border-color: rgba(245, 176, 65, 0.5);
  background: rgba(245, 176, 65, 0.12);
}

.hmc-guide-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--hmc-ux-paper);
}

.hmc-guide-body {
  margin: 0 0 11px;
  font-size: 0.82rem;
  line-height: 1.62;
  color: #D2DAE6;
}

.hmc-guide-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 11px;
}

.hmc-guide-dot {
  flex: 1 1 0;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 180ms var(--hmc-ux-ease);
}

.hmc-guide-dot.is-done {
  background: rgba(56, 189, 248, 0.65);
}

.hmc-guide-dot.is-active {
  background: var(--hmc-ux-gold);
}

.hmc-guide-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hmc-guide-actions-left,
.hmc-guide-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hmc-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font: 600 0.8rem/1.1 var(--hmc-font-sans, "PingFang HK", "Microsoft JhengHei", sans-serif);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  transition: background 160ms var(--hmc-ux-ease), border-color 160ms var(--hmc-ux-ease), color 160ms var(--hmc-ux-ease);
}

.hmc-guide-btn--next {
  border: 1px solid var(--hmc-ux-blue);
  background: rgba(56, 189, 248, 0.16);
  color: #E0F5FE;
}

.hmc-guide-btn--next:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: #7DD3FC;
}

.hmc-guide-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--hmc-ux-muted);
}

.hmc-guide-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--hmc-ux-paper);
}

.hmc-guide-btn--link {
  border: 1px solid var(--hmc-ux-gold-border);
  background: rgba(245, 176, 65, 0.12);
  color: var(--hmc-ux-gold);
}

.hmc-guide-btn--link:hover {
  background: rgba(245, 176, 65, 0.22);
  border-color: var(--hmc-ux-gold);
}

.hmc-guide-shell button:focus-visible,
.hmc-guide-shell a:focus-visible {
  outline: 2px solid var(--hmc-ux-gold) !important;
  outline-offset: 2px !important;
}

/* Focus Not Obscured (WCAG 2.2 2.4.11) */
:focus-visible {
  scroll-margin-top: 80px;
  scroll-margin-bottom: 120px;
}

@media (max-width: 360px) {
  .hmc-guide-title { font-size: 0.9rem; }
  .hmc-guide-body { font-size: 0.78rem; margin-bottom: 8px; }
  .hmc-guide-btn { padding: 0 11px; font-size: 0.76rem; min-height: 38px; }
}

@keyframes hmcGuideEnter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 6. Reduced Motion & 2D Fallback — Explicit Static Visual Hierarchy ── */
@media (prefers-reduced-motion: reduce) {
  #hmcStage3dCanvas {
    display: none !important;
  }

  .hmc-path--primary,
  .hmc-path-strip,
  .hmc-guide-shell,
  .hmc-guide-trigger,
  body.hmc-start-page .tap {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Preserved static depth & crisp hierarchy without motion */
  body.is-guest .hero-section {
    border: 1.5px solid rgba(245, 176, 65, 0.45);
    background:
      radial-gradient(ellipse 74% 66% at 50% 0%, rgba(245, 176, 65, 0.16), transparent 62%),
      #10141D;
  }

  body.is-guest .hmc-path--primary {
    border: 2px solid var(--hmc-ux-gold);
    background: rgba(245, 176, 65, 0.14);
  }

  body.is-guest .hmc-path-strip {
    border: 1.5px solid var(--hmc-ux-blue);
    border-left: 4px solid var(--hmc-ux-blue);
    background: rgba(56, 189, 248, 0.08);
  }

  .hmc-guide-shell {
    border: 2px solid var(--hmc-ux-gold);
    background: #10141D;
  }

  .hmc-guide-highlight {
    outline: 3px solid var(--hmc-ux-gold) !important;
    box-shadow: none !important;
  }
}

html[data-hmc-3d-mode="fallback-2d"] #hmcStage3dCanvas {
  display: none !important;
}
