/* project-risen.com placeholder. The splash's warm black + hammered gold, with holyghost.gg Concept C type
   (Cormorant Garamond + DM Sans, gold kickers, hairlines, film grain). Cinzel stands in for the logo's Trajan-style caps. */
:root {
  --bg: #0b0806; --bg2: #14100b; --hg: #120d24; --hg2: #1d1640;
  --gold: #d9b45a; --gold2: #e9c77a; --gold3: #a87a2c; --cream: #f4eedf; --muted: #b3a68c; --lav: #cdc3e0;
  --line: rgba(217, 180, 90, .28);
  --caps: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1120px; --pad: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--cream); font: 400 1rem/1.6 var(--sans); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E"); }
main { flex: 1; }
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--gold); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: linear-gradient(180deg, rgba(11, 8, 6, .85), rgba(11, 8, 6, 0)); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand span { font: 600 1rem/1 var(--caps); letter-spacing: .22em; color: var(--gold2); }
.top-link { color: var(--cream); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .55rem 1rem; border: 1px solid rgba(217, 180, 90, .5); border-radius: 999px; white-space: nowrap; }
.top-link:hover { border-color: var(--gold2); background: rgba(217, 180, 90, .12); }

/* Hero: the real splash, 16:9, never cropped on phones. */
.hero { position: relative; background: #000; }
.splash { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: calc(100svh - 24px); object-fit: cover; object-position: 50% 50%; background: #000; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; pointer-events: none; background: linear-gradient(180deg, rgba(11, 8, 6, 0), var(--bg)); }
.motion-btn { position: absolute; right: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(217, 180, 90, .5); background: rgba(11, 8, 6, .55); color: var(--cream); cursor: pointer; }
.motion-btn svg { width: 18px; height: 18px; }
@media (max-width: 699px) {
  /* Phones: the 16:9 splash is short, so the header sits above it instead of over the wordmark. */
  .site-header { position: static; background: var(--bg); }
  .bar { min-height: 56px; }
  .brand svg { width: 28px; height: 28px; }
  .brand span { font-size: .9rem; }
  .top-link { padding: .45rem .9rem; font-size: .9rem; }
  .motion-btn { width: 34px; height: 34px; right: .5rem; bottom: .5rem; }
  .motion-btn svg { width: 14px; height: 14px; }
}
.motion-btn .i-play,.motion-btn[data-state="paused"] .i-pause { display: none; }
.motion-btn[data-state="paused"] .i-play { display: block; }

/* Intro */
.intro { text-align: center; padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.kicker { margin: 0 0 1rem; font: 500 .8rem/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.intro h1 { margin: 0 auto; max-width: 18em; font: 600 clamp(1.9rem, 5.4vw, 3.4rem)/1.12 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.intro h1 .gold { color: var(--gold2); font-style: italic; }
.rule { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 0 auto 1.6rem; color: var(--gold); }
.rule span { width: 72px; height: 1px; background: linear-gradient(90deg, rgba(217, 180, 90, 0), var(--gold)); }
.rule span:last-child { background: linear-gradient(90deg, var(--gold), rgba(217, 180, 90, 0)); }
.rule svg { width: 14px; height: 14px; }

/* Holy Ghost card: Concept C purple, so the two sites read as a family. */
.game { padding: 0 0 clamp(3rem, 8vw, 5.5rem); }
.game-card { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(ellipse at 75% 30%, var(--hg2) 0%, var(--hg) 70%); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.game-art { display: block; background: #0d0a1c; }
.game-art img { width: 100%; aspect-ratio: 1024 / 814; object-fit: cover; }
.game-copy { padding: clamp(1.5rem, 4vw, 3rem); align-self: center; }
.game-copy h2 { margin: 0 0 .6rem; font: 600 clamp(2.2rem, 6vw, 3.4rem)/1 var(--caps); letter-spacing: .08em; color: var(--gold2); }
.game-copy p { margin: 0 0 1.6rem; color: var(--lav); font-size: clamp(1.02rem, 2vw, 1.15rem); max-width: 30rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .8rem 1.6rem; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: #1a1206; font: 700 1.05rem/1.2 var(--sans); text-decoration: none; transition: background .2s, transform .2s; }
.btn:hover { background: var(--gold2); transform: translateY(-1px); }
.btn svg { width: 1.05em; height: 1.05em; }
@media (min-width: 820px) {
  .game-card { grid-template-columns: 1.1fr 1fr; }
  .game-art img { height: 100%; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #070504; padding: 2.25rem 0 2.75rem; }
.foot { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; }
.foot nav a { color: var(--gold2); text-decoration: none; padding: .35rem 0; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0; color: var(--muted); font-size: .92rem; }

/* 404 */
.notfound { display: grid; place-items: center; text-align: center; padding: 8rem 0 5rem; }
.notfound h1 { margin: 0 0 1rem; font: 600 clamp(2rem, 6vw, 3.2rem)/1.1 var(--serif); }
.notfound p { color: var(--muted); margin: 0 0 1.8rem; }
.site-header.static { position: static; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

.intro .team { max-width: 640px; margin: 22px auto 0; font-size: 17px; line-height: 1.6; color: var(--muted, #cbbf9f); }
