/* WakeDeath Game Studios: studio site (home + one page per game). Dark theme, orange/gold accents. No external fonts or trackers. */
@font-face { font-family: "Cinzel Deco"; src: url("assets/fonts/CinzelDecorative-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --bg: #08090b;
  --bg2: #0f1216;
  --panel: #14181e;
  --line: #232a33;
  --text: #dfe5ea;
  --muted: #8f9ba6;
  --gold: #ffc94d;
  --orange: #ff6b05;
  --red: #5a0800;
  --cyan: #5fd3e6;
  --ember: #f08a2c;
  --head: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Heavy", sans-serif;
  --gothic: "Cinzel Deco", Georgia, serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--head); font-weight: normal; letter-spacing: .03em; line-height: 1.1; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: #fff; text-transform: uppercase; }
.center { text-align: center; }
.lead { color: var(--muted); margin-top: -.4em; }
.small { font-size: .85rem; color: var(--muted); }
.gothic { font-family: var(--gothic); text-transform: none; letter-spacing: .02em; }
.section-title { display: flex; align-items: center; gap: 1.2rem; justify-content: center; text-align: center; }
.section-title::before, .section-title::after { content: ""; flex: 1; max-width: 220px; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 30%, var(--orange)); }
.section-title::after { background: linear-gradient(270deg, transparent, var(--line) 30%, var(--orange)); }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 clamp(1rem, 4vw, 3rem); background: rgba(5, 6, 8, .9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.studio-mark { text-decoration: none; display: grid; grid-template-columns: auto auto; line-height: 1; }
.mark-wake, .mark-death { font-family: var(--head); font-size: 1.6rem; letter-spacing: .04em; }
.mark-wake { color: #fff; }
.mark-death { color: var(--orange); }
.mark-sub { grid-column: 1 / 3; font-size: .58rem; letter-spacing: .42em; color: var(--muted); margin-top: .2rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--text); text-decoration: none; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.nav a:hover, .nav a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--orange)); color: #1a0700 !important; font-family: var(--head); font-size: 1.1rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 6px 24px rgba(255, 107, 5, .3); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255, 107, 5, .5); }
.btn-ghost { background: rgba(0, 0, 0, .35); color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.btn-small { padding: .45rem .95rem; font-size: .9rem; }
.btn-discord { background: #5865f2; color: #fff !important; box-shadow: 0 6px 24px rgba(88, 101, 242, .35); }

/* ---------- hero carousel (home) ---------- */
.carousel { position: relative; height: min(100vh, 900px); min-height: 560px; overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 8s ease-out; }
.slide.active .slide-bg { transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 6, 8, .92) 0%, rgba(5, 6, 8, .6) 38%, rgba(5, 6, 8, .05) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.slide-inner { position: relative; z-index: 2; height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.5rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.slide .eyebrow { text-transform: uppercase; letter-spacing: .35em; font-size: .78rem; color: var(--gold); margin: 0 0 .8rem; }
.slide-logo { width: min(560px, 80vw); margin: 0 0 1rem; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .8)); }
.slide-title { font-family: var(--gothic); font-size: clamp(2.4rem, 6vw, 4.6rem); color: #f7d9a8; margin: 0 0 .6rem; line-height: 1.05; text-shadow: 0 4px 30px rgba(0, 0, 0, .9), 0 0 40px rgba(240, 138, 44, .25); }
.slide .tagline { max-width: 520px; font-size: clamp(1.02rem, 1.8vw, 1.25rem); color: #fff; text-shadow: 0 2px 12px #000; margin: 0 0 1.8rem; }
.slide .status { margin: 1.4rem 0 0; color: var(--muted); font-size: .95rem; letter-spacing: .04em; }
.slide .status strong { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.carousel-ui { position: absolute; z-index: 5; left: 50%; bottom: 2.2rem; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; }
.carousel-ui button { background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .3); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.carousel-ui button:hover { border-color: var(--gold); color: var(--gold); }
.dots { display: flex; gap: .55rem; }
.dots button { width: 34px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); }
.dots button.active { background: var(--orange); }

/* ---------- game page hero ---------- */
.page-hero { position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.page-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(8, 9, 11, .3) 0%, rgba(8, 9, 11, .85) 72%), linear-gradient(180deg, rgba(8, 9, 11, .5) 0%, transparent 40%, var(--bg) 100%); }
.page-hero .hero-inner { position: relative; z-index: 2; padding: 7rem 1.5rem 4rem; max-width: 1000px; }
.page-hero .eyebrow { text-transform: uppercase; letter-spacing: .35em; font-size: .8rem; color: var(--gold); margin: 0; }
.hero-logo { width: min(900px, 92vw); margin: 1.2rem auto 1.4rem; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .7)); }
.page-hero .tagline { font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: #fff; font-style: italic; text-shadow: 0 2px 12px #000; margin: 0 0 2rem; }
.page-hero .actions { justify-content: center; }
.release { margin-top: 1.8rem; color: var(--muted); letter-spacing: .05em; }
.release strong { color: #fff; }
.gothic-hero .slide-title { margin-top: 1rem; }

/* ---------- sections ---------- */
.section { scroll-margin-top: 64px; padding: clamp(4rem, 8vw, 6.5rem) 1.5rem; }
.section-dark { background: var(--bg2); border-block: 1px solid var(--line); }
.wrap { max-width: 1240px; margin: 0 auto; }
.narrow { max-width: 780px; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

/* games grid (home) */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; margin-top: 2.6rem; }
.game-card { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .25s, border-color .25s, box-shadow .25s; }
.game-card:hover { transform: translateY(-5px); border-color: var(--orange); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); color: var(--text); }
.game-card .art { position: relative; aspect-ratio: 920 / 430; overflow: hidden; }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game-card:hover .art img { transform: scale(1.05); }
.game-card .body { padding: 1.2rem 1.4rem 1.5rem; }
.game-card h3 { font-size: 1.8rem; color: #fff; margin: 0 0 .35rem; }
.game-card h3.gothic { font-size: 1.6rem; color: #f7d9a8; }
.game-card p { margin: 0 0 .9rem; color: var(--muted); font-size: .97rem; }
.badge { position: absolute; bottom: .8rem; left: .9rem; z-index: 2; padding: .28rem .7rem; border-radius: 2px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--orange); color: #1a0700; }
.badge.dev { background: #2a1b33; color: #e9c9ff; border: 1px solid #6b3f8a; }
.more { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.news { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.news:hover { border-color: var(--orange); transform: translateY(-3px); color: var(--text); }
.news .art { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.news .art img { width: 100%; height: 100%; object-fit: cover; }
.news .body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.news time { font-size: .76rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.news .tag { color: var(--orange); margin-left: .5rem; }
.news h3 { font-family: var(--body); font-weight: 700; font-size: 1.12rem; letter-spacing: 0; line-height: 1.35; color: #fff; margin: .5rem 0 .6rem; }
.news p { margin: 0 0 1rem; color: var(--muted); font-size: .93rem; flex: 1; }

/* community band */
.band { background: linear-gradient(90deg, rgba(255, 107, 5, .12), rgba(88, 101, 242, .12)), var(--bg2); border-block: 1px solid var(--line); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.band h2 { margin: 0; }
.band p { margin: .3rem 0 0; color: var(--muted); }

/* features / lists */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.features li { display: flex; gap: 1rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--orange); padding: .8rem 1rem; border-radius: 4px; }
.features span { font-family: var(--head); font-size: 1.7rem; color: var(--gold); min-width: 2.2rem; text-align: center; }
.features.ember li { border-left-color: var(--ember); }

/* click-to-load video: nothing is loaded from YouTube until the visitor clicks */
.video-frame { position: relative; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); border-radius: 6px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; width: 100%; cursor: pointer; background: #000 center / cover no-repeat; color: #fff; font: inherit; }
.yt::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); transition: background .2s; }
.yt:hover::before { background: rgba(0, 0, 0, .15); }
.yt .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; background: linear-gradient(180deg, var(--gold), var(--orange)); box-shadow: 0 0 0 6px rgba(0, 0, 0, .35); }
.yt .play::after { content: ""; position: absolute; left: 35px; top: 26px; border-left: 26px solid #1a0700; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.yt .yt-note { position: absolute; left: 0; right: 0; bottom: 0; padding: .55rem 1rem; background: rgba(0, 0, 0, .72); font-size: .78rem; color: #cfd6dc; text-align: center; }
.video-caption { margin-top: .8rem; }

/* socials */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.socials a:hover { border-color: var(--orange); color: #fff; }
.socials svg { width: 22px; height: 22px; fill: #ff0033; }

/* hunters / stages / gallery (Jungle of Titans page) */
.hunter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.hunter { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .2s, border-color .2s; }
.hunter:hover { transform: translateY(-4px); border-color: var(--orange); }
.hunter img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hunter h3 { font-size: 1.7rem; color: var(--gold); margin: .9rem 1rem .1rem; }
.hunter .role { margin: 0 1rem; color: var(--cyan); font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; }
.hunter p:last-child { margin: .5rem 1rem 1.2rem; color: var(--muted); font-size: .95rem; }
.stage-list { counter-reset: st; list-style: none; padding: 0; margin: 2.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: .7rem 1.5rem; }
.stage-list li { counter-increment: st; display: grid; grid-template-columns: 3rem 1fr; column-gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.stage-list li::before { content: counter(st, decimal-leading-zero); grid-row: 1 / 3; font-family: var(--head); font-size: 2rem; color: var(--orange); line-height: 1; }
.stage-list b { color: #fff; font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.gallery a { display: block; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.06); }
.facts { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: .95rem; }
.facts th, .facts td { text-align: left; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.facts th { color: var(--muted); font-weight: 600; width: 38%; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.mail { font-family: var(--head); font-size: clamp(1.4rem, 3.5vw, 2.2rem); letter-spacing: .03em; text-decoration: none; }

/* policy page */
.policy { text-align: left; }
.policy h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: #fff; text-transform: uppercase; }
.policy h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.policy h3 { font-family: var(--body); font-weight: 700; font-size: 1.08rem; letter-spacing: 0; color: #fff; margin: 1.4rem 0 .4rem; }
.policy ul { padding-left: 1.3rem; }
.policy li { margin: .35rem 0; }
.policy .note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--orange); padding: 1rem 1.2rem; border-radius: 4px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #050608; color: var(--muted); font-size: .9rem; padding: 3.2rem 1.5rem 2rem; }
.footer-cols { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer .studio-mark { display: inline-grid; }
.footer h4 { margin: 0 0 .8rem; color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: .35rem 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .legal { max-width: 1240px; margin: 2.4rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 4px; }
.lightbox button { position: absolute; top: 1rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; }

/* silent looping gameplay video behind a hero (self-hosted: no cookies, no third party) */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.bg-video.playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bg-video { display: none; } }
@media (prefers-reduced-motion: reduce) { .slide, .slide-bg, .game-card, .game-card .art img { transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(5, 6, 8, .98); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .9rem; width: 100%; text-align: center; }
  .two-col { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .slide::before { background: linear-gradient(0deg, rgba(5, 6, 8, .95) 0%, rgba(5, 6, 8, .55) 55%, rgba(5, 6, 8, .2) 100%); }
  .slide-inner { justify-content: flex-end; padding-bottom: 6rem; }
}
@media (max-width: 600px) {
  .hunter-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .footer-cols { grid-template-columns: 1fr; }
}
