/* PATH 714 — shared brand styles
   AAA design tokens (2026-11-27, P1): values unified to the
   storyboard mockup's system (DESIGN_SYSTEM_AAA.md §a) — one navy /
   gold / ivory family for TV, phone, and pages. Type roles: Cinzel =
   display, Crimson Pro = body serif, Manrope = UI sans. */
:root {
  --navy: #070f2a;
  --navy-2: #0c183d;
  --navy-3: #12235a;
  --gold: #d9b45a;
  --gold-bright: #f2d98c;
  --gold-2: #f2d98c;
  --gold-deep: #8a6d1f;
  --gold-dark: #8a6d1f;
  --ivory: #fff8e6;
  --ivory-2: #f3e9c8;
  --ivory-dim: #cbd3ee;
  --muted: #cbd3ee;
  --line: rgba(217, 180, 90, .45);
  --card: #0e1a42;
  --backdrop: #050a1e;
  --shadow: rgba(0, 0, 0, .55);
  --font-display: Cinzel, "Crimson Pro", Georgia, serif;
  --font-body: "Crimson Pro", Georgia, "Times New Roman", serif;
  --font-ui: Manrope, "Segoe UI", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .cinzel { font-family: var(--font-display); }
button { font-family: inherit; cursor: pointer; }

.gold-text {
  background: linear-gradient(180deg, #fbe9a8 0%, #f2d98c 38%, #d9b45a 62%, #a37f22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn-gold {
  /* Harmonized gold (Michael, 2026-11-20): sampled from the emblem's
     own metal — highlight #fad77d, mid #edb249, deep #cd7f1d — so every
     gold button/pill matches the logo's antique gold, not the old
     bright yellow-gold. One family everywhere this gradient lives. */
  background: linear-gradient(180deg, #fad77d 0%, #edb249 48%, #cd7f1d 100%);
  color: #241a02; border: 1px solid #fad77d;
  font-family: var(--font-ui); font-weight: 800; letter-spacing: .12em;
  border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.5), inset 0 1px 0 #fff8;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-gold:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(1px); }
.btn-gold:disabled { filter: grayscale(.5) brightness(.7); cursor: default; transform: none; }
.btn-ghost {
  background: rgba(12, 24, 61, .72); color: var(--ivory);
  border: 1px solid rgba(217, 180, 90, .55); border-radius: 10px;
  font-family: var(--font-ui); font-weight: 800; letter-spacing: .1em;
  transition: all .2s ease;
}
.btn-ghost:hover { border-color: var(--gold-bright); color: #fff; }
.btn-ghost.selected { background: linear-gradient(180deg, #fad77d 0%, #edb249 48%, #cd7f1d 100%); color: #241a02; border-color: #fad77d; font-weight: 800; }

.panel {
  background: linear-gradient(165deg, rgba(14, 26, 66, .92), rgba(7, 15, 42, .94));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255, 248, 230, .08);
  backdrop-filter: blur(6px);
}

/* Back-to-home corner control — one component on every screen that is not
   home itself; same recipe as the TV sound toggle, mirrored to top-left. */
.back-home {
  position: fixed; top: 16px; left: 16px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright);
  background: linear-gradient(165deg, rgba(14,26,66,.88), rgba(7,15,42,.9));
  border: 1px solid rgba(217,180,90,.6);
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
  text-decoration: none;
  transition: opacity .3s ease, border-color .2s ease, transform .2s ease;
}
.back-home:hover { border-color: var(--gold-bright); color: #fff; transform: translateY(-1px); }
.back-home.gone { opacity: 0; pointer-events: none; }
.fade-scene { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.fade-scene.active { opacity: 1; pointer-events: auto; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glowPulse { 0%,100% { filter: drop-shadow(0 0 12px rgba(242,217,140,.55)); } 50% { filter: drop-shadow(0 0 30px rgba(242,217,140,.95)); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: riseIn .3s cubic-bezier(.2,.8,.25,1) both; }

/* AAA P9 (2026-11-28): reduced motion — cuts replace fades on the
   shared surfaces; every state a fade carried is class-driven, so
   the end state (and everything it says) arrives whole, instantly.
   Hold and reading timings are server-side and never lived here. */
@media (prefers-reduced-motion: reduce) {
  .btn-gold, .btn-ghost, .back-home { transition: none; }
  .fade-scene { transition: none; }
  .rise { animation: none; }
}
