/* MysticForge 1.5: shared controls, legible copy and the layered forge. */
:root {
  --muted: #d0d2e3;
  --dim: #b7bbd2;
  --control-border: #8a81ad;
  --control-surface: #252238;
}
p { color: var(--muted); }
.hero-content > p { color: #ececf7; font-size: 1.0625rem; max-width: 480px; text-shadow: 0 2px 12px #090b14; }
.inner-hero p, .detail-subtitle, .long-copy, .contact-copy > p { color: var(--muted); font-size: 1rem; }
.section-heading p, .asset-info > p, .story-content > p, .value-card p, .end-cta p { color: var(--muted); font-size: 1rem; }
.story-points small, .footer-brand p, .footer-links a, .spec-row > span, .contact-option p, .contact-tip p { color: #c5c7dc; font-size: .875rem; }
.hero-foot, .asset-bottom-note, .catalog-note, .footer-bottom, .footer-signal small { color: #b9bcd3; font-size: .75rem; }
.kicker, .eyebrow, .hero .eyebrow, .asset-category, .contact-label, .cover-status, .detail-status, .filter-pill, .proof-inner span, .proof-inner b { font-size: .8125rem; }
.footer-links strong, .footer-signal > span:nth-child(2), .page-index { font-size: .75rem; }
.asset-info > p { height: auto; min-height: 3.4em; }

/* One filled primary control, one solid secondary control, one text-link treatment. */
.btn, .nav-store {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent;
  border-radius: 3px; font-size: .875rem; line-height: 1.4; font-weight: 750;
  letter-spacing: .01em; text-align: center;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover, .nav-store:hover { transform: none; }
.btn-primary { color: #171024; background: #c3a7ff; box-shadow: 0 6px 24px #7751be33; }
.btn-primary:hover { background: #d5c1ff; box-shadow: 0 6px 28px #7751be55; }
.btn-outline, .nav-store { color: #f5f1ff; background: var(--control-surface); border-color: var(--control-border); box-shadow: none; }
.btn-outline:hover, .nav-store:hover { color: #fff; background: #38304f; border-color: #c5aaff; }
.btn .icon, .nav-store .icon, .nav-store .unity-mark, .text-action .icon, .section-link .icon { display: none; }
.text-action, .section-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0;
  border: 0; font-size: .875rem; line-height: 1.5; font-weight: 700;
  color: #dccbff; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px; transition: color .2s;
}
.text-action:hover, .section-link:hover { color: #fff; gap: 12px; }
.filter-pill { display: inline-flex; align-items: center; min-height: 44px; color: #d5d4e5; border-color: #66617c; background: #171826; border-radius: 3px; }
.filter-pill.is-active { color: #171024; background: #c3a7ff; border-color: #c3a7ff; }
.asset-search { border-color: #78738d; border-radius: 3px; }
.asset-search input { font-size: 1rem; }
.asset-search input::placeholder { color: #c0bfd3; }
.asset-search button { width: 44px; height: 44px; background: #39304e; color: #fff; border-radius: 3px; }
.asset-search:focus-within { outline: 2px solid var(--cyan); outline-offset: 4px; }
.primary-nav > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 36px; }
.contact-option { position: relative; }
.contact-option > a { width: 44px; height: 44px; background: var(--control-surface); border-color: var(--control-border); border-radius: 3px; }
.contact-option > a::after { content: ''; position: absolute; inset: 0; }
.contact-option:focus-within { outline: 2px solid var(--cyan); outline-offset: 4px; }
.contact-option:hover { border-color: #a794ce; }
.contact-option > a:focus-visible { outline: 0; }
.contact-option { grid-template-columns: 57px minmax(0,1fr) 44px; }
.lightbox-close, .lightbox-prev, .lightbox-next { min-width: 44px; min-height: 44px; }

/* The image-space rig shares the background's coordinate system. */
.hero { height: clamp(720px, calc(100svh - 86px), 860px); min-height: 720px; }
.hero-image { background-position: center; animation: none; }
.forge-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .5s; }
.hero.forge-ready .forge-scene { opacity: 1; }
.hero.forge-ready .hero-image { visibility: hidden; }
.hero-gradient { z-index: 0; pointer-events: none; background: linear-gradient(90deg,#080916f5 0%,#080916d9 30%,#08091655 54%,#08091600 73%),linear-gradient(0deg,#0b0b16,transparent 22%); }
.hero-grid-overlay { z-index: 0; pointer-events: none; }
.hero-content { padding-block: 70px 100px; }
.hero h1 { font-size: clamp(58px,6.6vw,100px); max-width: 760px; }
.hero-foot { margin-top: 52px; letter-spacing: .1em; max-width: 550px; flex-wrap: wrap; }
.hero-side-label {
  z-index: 3; top: auto; right: 28px; bottom: 28px; transform: none;
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  color: #faf8ff; background: #101220f2; border: 1px solid #a395bc;
  border-radius: 3px; font-size: .8125rem; line-height: 1.5; letter-spacing: .04em;
}
.hero-side-label:hover { background: #302941; border-color: #d5baff; }
.hero-scroll { display: none; }
.forge-backdrop, .forge-character, .forge-strike-particles { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.forge-character { z-index: 1; }
.forge-strike-particles { z-index: 2; }
.hero.forge-ready .spark-particles { display: none; }
.home-games { padding: 64px 0; background: #111322; border-block: 1px solid var(--line); }
.home-games-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.home-games h2 { font-size: clamp(30px,3.5vw,48px); margin-bottom: 16px; }
.home-games p { margin-bottom: 0; }
.home-games .btn { flex-shrink: 0; }
.end-cta h2 { font-size: clamp(42px,5.5vw,74px); }
.end-cta .cta-orbit { animation: none; }

@media (min-width: 821px) and (max-width: 1100px) {
  .primary-nav { gap: 18px; }
  .header-inner { gap: 16px; }
  .nav-store { padding-inline: 14px; }
  .hero h1 { font-size: 68px; }
  .hero-content > p { max-width: 420px; }
}
@media (max-width: 820px) {
  .hero { height: auto; min-height: 1030px; align-items: flex-start; }
  .hero-content { padding: 64px 0 500px; }
  .hero h1 { font-size: clamp(54px,8.7vw,76px); max-width: 650px; }
  .hero-content > p { max-width: 530px; }
  .hero-foot { margin-top: 32px; }
  .forge-scene { inset: auto -30px 0 auto; width: 1080px; height: 608px; }
  .hero-gradient { background: linear-gradient(180deg,#080916 0%,#080916f5 35%,#08091630 62%,#0b0b16 100%); }
  .hero-side-label { bottom: 20px; right: 24px; }
  .proof-inner span { font-size: .8125rem; }
  .home-games-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .nav-store { display: none; }
  .hero { min-height: 940px; }
  .hero-content { padding: 50px 0 440px; }
  .hero h1 { font-size: clamp(43px,11.5vw,64px); }
  .hero-content > p { font-size: 1rem; line-height: 1.75; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .1em; }
  .hero-actions { margin-top: 26px; }
  .hero-foot { font-size: .75rem; line-height: 1.7; }
  .hero-foot-divider { display: none; }
  .forge-scene { width: 740px; height: 416.47px; right: 0; }
  .hero-gradient { background: linear-gradient(180deg,#080916 0%,#080916f2 44%,#08091622 65%,#0b0b1680 100%); }
  .hero-side-label { right: 19px; bottom: 18px; font-size: .8125rem; }
  .section-heading p { font-size: 1rem; }
  .contact-option { grid-template-columns: 38px minmax(0,1fr) 44px; }
  .cover-status { font-size: .75rem; }
  .asset-bottom { flex-wrap: wrap; gap: 4px 16px; }
  .proof-inner { gap: 16px; }
  .proof-inner span { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .forge-scene { transition: none; }
  .forge-strike-particles { display: none; }
}
