/* Shared Apex City web shell. Keep the public site on the same ink, slate, blue and gold palette as the game. */
:root {
  color-scheme: dark;
  --bg: #101820;
  --bg2: #141e2c;
  --bg3: #1b2938;
  --ink: #f1f4f8;
  --ink2: #becbd8;
  --mute: #92a5b8;
  --muted: #becbd8;
  --text: #f1f4f8;
  --line: rgba(135, 174, 207, .2);
  --accent: #f4c24b;
  --accent2: #ffdb7b;
  --accent-strong: #ffdb7b;
  --link: #89bdf3;
  --blue: #89bdf3;
  --ok: #59d4a9;
  --panel: #141e2c;
  --panel-raised: #1b2938;
  --r: 18px;
  --max: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-padding-top: 5.5rem; }
body {
  color: var(--ink);
  background:
    radial-gradient(70rem 34rem at 78% -12%, rgba(84, 142, 188, .13), transparent 65%),
    var(--bg);
}
a { color: var(--link); }
a:hover { color: #c3ddff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 3px;
}
::selection { color: #101820; background: var(--accent2); }

.top, .site-header, header.site-header {
  border-color: var(--line) !important;
  background: rgba(16, 24, 32, .9) !important;
  backdrop-filter: saturate(1.35) blur(14px);
  -webkit-backdrop-filter: saturate(1.35) blur(14px);
}
.top .wrap, .site-header .shell, .site-header .header-row { min-height: 68px; }
.brand, .brand-name { color: var(--ink) !important; }
.nav a, .main-nav a, .footer-links a { transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav a:hover, .main-nav a:hover, .footer-links a:hover { color: var(--ink) !important; }
.nav a[aria-current="page"] { color: var(--accent) !important; }

.cta, .button-primary, .nav-cta {
  border-color: rgba(255, 219, 123, .45) !important;
  background: linear-gradient(180deg, var(--accent2), var(--accent) 72%) !important;
  color: #1b1b18 !important;
  box-shadow: 0 10px 28px rgba(244, 194, 75, .16);
}
.cta:hover, .button-primary:hover, .nav-cta:hover { filter: brightness(1.06); }
.cta.ghost, .button-secondary {
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, .035) !important;
  color: var(--ink) !important;
  box-shadow: none;
}
.cta.ghost:hover, .button-secondary:hover { border-color: rgba(137, 189, 243, .55) !important; }

.eyebrow, .live-kicker, .style-index, .section-kicker { color: var(--blue) !important; }
.eyebrow::before { background: var(--accent) !important; }
.hero::after { background: linear-gradient(180deg, rgba(16, 24, 32, .22), rgba(16, 24, 32, .72) 72%, var(--bg)), radial-gradient(80% 60% at 20% 0%, rgba(137, 189, 243, .13), transparent 60%) !important; }
.hero h1, h1, h2, h3 { color: var(--ink); }
.hero .lede, .section-intro, .card p, .system-card p, .style-copy p { color: var(--ink2); }

.card, .kpi, .system-card, .style-card, .live-card, .release, .item, .callout, .panel,
.faq-item, .faq-card, .press-card, .gallery figure, .shot, details, .explore-band {
  border-color: var(--line) !important;
  background-color: var(--bg2);
}
.card, .style-card, .system-card, .live-card, .item, .press-card, .kpi, details {
  box-shadow: 0 16px 42px rgba(0, 0, 0, .14);
}
.card:hover, .style-card:hover, .item:hover, .press-card:hover { border-color: rgba(137, 189, 243, .45) !important; }
.kpi b, .kpi strong, .style-footnote strong, .system-index { color: var(--accent) !important; }
.proof-line, .proof-line + section, .live-section { border-color: var(--line) !important; background-color: rgba(20, 30, 44, .72) !important; }
.site-footer, footer.site, .footer, .footer-top {
  border-color: var(--line) !important;
  background-color: #0d141c !important;
}
.copyright { border-color: var(--line) !important; color: var(--mute) !important; }

/* Non-photographic style preview cards: avoid presenting old camera tests as current gameplay captures. */
.style-preview {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(155deg, #233647, #121c27 72%);
}
.style-preview::before, .style-preview::after { content: ""; position: absolute; bottom: 0; }
.style-preview::before {
  left: 8%; width: 84%; height: 58%;
  background: linear-gradient(90deg, #304a5e 0 12%, transparent 12% 15%, #3d5e73 15% 31%, transparent 31% 35%, #29465c 35% 51%, transparent 51% 54%, #466377 54% 72%, transparent 72% 76%, #2e4a60 76%);
  clip-path: polygon(0 100%, 0 47%, 12% 47%, 12% 20%, 29% 20%, 29% 55%, 41% 55%, 41% 0, 58% 0, 58% 37%, 72% 37%, 72% 13%, 88% 13%, 88% 59%, 100% 59%, 100% 100%);
  opacity: .85;
}
.style-preview::after { left: 0; width: 100%; height: 18%; background: linear-gradient(90deg, transparent, rgba(137, 189, 243, .2), transparent); }
.style-preview[data-style="realistic"] { background: linear-gradient(155deg, #253642, #121b24 72%); }
.style-preview[data-style="cartoon"] { background: linear-gradient(155deg, #34576c, #16232d 72%); }
.style-preview[data-style="clay"] { background: linear-gradient(155deg, #6b6253, #242a2e 72%); }
.style-preview[data-style="poly"] { background: linear-gradient(155deg, #31566a, #17232b 72%); }
.style-preview[data-style="realistic"]::before { background: repeating-linear-gradient(90deg, #526c78 0 3px, transparent 3px 12px), linear-gradient(90deg, #304a5e, #466377); }
.style-preview[data-style="cartoon"]::before { background: repeating-linear-gradient(90deg, #f5c45a 0 7px, transparent 7px 19px), linear-gradient(90deg, #4c91ad, #74b4bd); clip-path: polygon(0 100%,0 52%,15% 52%,15% 24%,30% 24%,30% 52%,42% 52%,42% 0,60% 0,60% 46%,74% 46%,74% 17%,91% 17%,91% 56%,100% 56%,100% 100%); }
.style-preview[data-style="clay"]::before { left: 12%; width: 76%; height: 42%; background: linear-gradient(90deg,#9a795c 0 24%,transparent 24% 27%,#b38e68 27% 53%,transparent 53% 57%,#927357 57% 78%,transparent 78%); clip-path: polygon(0 100%,0 40%,12% 40%,12% 23%,38% 23%,38% 40%,49% 40%,49% 0,76% 0,76% 56%,100% 56%,100% 100%); }
.style-preview[data-style="poly"]::before { background: linear-gradient(90deg,#3b7084,#5a8a9a); clip-path: polygon(0 100%,0 47%,17% 23%,33% 47%,33% 100%,39% 100%,39% 34%,52% 0,65% 34%,65% 100%,73% 100%,73% 51%,88% 17%,100% 51%,100% 100%); }
.style-preview-label { position: absolute; z-index: 1; right: 12px; bottom: 12px; color: #eaf3fb; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero-art .hero-preview { min-height: 420px; height: clamp(340px, 40vw, 520px); }
.style-card .style-preview { min-height: 180px; }
.shot .style-preview { min-height: 240px; height: 100%; }
.shot.tall .style-preview { min-height: 360px; }
.press-card .style-preview, .gallery .style-preview, .gallery figure .style-preview { width: 100%; min-height: 200px; }
.style-card .style-preview::before { bottom: 0; }
@media (max-width: 620px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .main-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
  .hero-copy, .section-intro { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
  .hero-copy .lede { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .hero-art .hero-preview { height: min(72vw, 480px); min-height: 245px; }
}

.live-status { color: var(--mute); }
.live::before { background: var(--ok) !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
