/* ==========================================================================
   Leonsoft Game Studio — website styles
   Palette and type are taken from the official brand assets (lion emblem).
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("../fonts/exo2-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors */
  --ink: #0B0B10;
  --ink-2: #111118;
  --ink-3: #18181F;
  --bone: #F4F1EA;
  --gold: #F2B440;
  --honey: #FDDF94;
  --amber: #B8661A;
  --ember: #FF5A1F;
  --rust: #A73C0F;

  /* Text + lines on dark */
  --muted: rgba(244, 241, 234, .70);
  --faint: rgba(244, 241, 234, .48);
  --line: rgba(244, 241, 234, .09);
  --line-strong: rgba(244, 241, 234, .2);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }

a { color: inherit; }

p { margin: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; }

ul, ol { margin: 0; padding: 0; }

dl, dd { margin: 0; }

button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  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-link {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-radius: 6px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Placeholder content: replace the text and remove the <span class="ph"> wrapper */
.ph {
  color: var(--honey);
  background: rgba(242, 180, 64, .08);
  border: 1px dashed rgba(242, 180, 64, .55);
  border-radius: 4px;
  padding: 0 .25em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font: 700 .74rem/1 var(--font-body);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
}
.eyebrow__num { color: var(--faint); letter-spacing: .1em; }

.display,
.section-title,
.hero__title,
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
}

.section-title { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem); }

.lead {
  font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem);
  color: var(--muted);
  max-width: 54ch;
}

.text-gold {
  background: linear-gradient(180deg, var(--honey) 0%, var(--gold) 48%, #D8631C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose { display: grid; gap: 1.1rem; max-width: 68ch; color: rgba(244, 241, 234, .82); }
.prose strong { color: var(--bone); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--gold);
  --btn-edge: var(--gold);
  --btn-fg: var(--ink);
  --cut: 10px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 50px;
  padding: 0 1.7em;
  border: 0;
  background: none;
  color: var(--btn-fg);
  font: 800 .78rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease-out), color .2s;
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  transition: background .2s;
}
.btn::before {
  inset: 0;
  background: var(--btn-edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn::after {
  inset: 1.5px;
  background: var(--btn-bg);
  clip-path: polygon(calc(var(--cut) - .6px) 0, 100% 0, 100% calc(100% - var(--cut) + .6px), calc(100% - var(--cut) + .6px) 100%, 0 100%, 0 calc(var(--cut) - .6px));
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 4px; border-radius: 2px; }

.btn--primary:hover { --btn-bg: var(--honey); --btn-edge: var(--honey); }

.btn--ghost {
  --btn-bg: #0F0F15;
  --btn-edge: var(--line-strong);
  --btn-fg: var(--bone);
}
.btn--ghost:hover { --btn-edge: var(--gold); --btn-fg: var(--gold); }

.btn--sm { min-height: 40px; padding: 0 1.25em; --cut: 8px; font-size: .72rem; }

.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn small { font-weight: 600; letter-spacing: .06em; opacity: .7; text-transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.is-copied { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.site-header.is-scrolled,
.nav-open .site-header {
  background: rgba(11, 11, 16, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand { position: relative; z-index: 2; display: block; flex: none; }
.brand img { height: 44px; width: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.4rem);
  list-style: none;
}

.site-nav a:not(.btn) {
  position: relative;
  display: block;
  padding: .5rem 0;
  color: var(--muted);
  font: 700 .76rem/1 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] { color: var(--bone); }
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  background: var(--bone);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.nav-toggle__bar { top: 17px; }
.nav-toggle__bar + .nav-toggle__bar { top: 25px; }
.nav-open .nav-toggle__bar { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle__bar + .nav-toggle__bar { top: 21px; transform: rotate(-45deg); }

@media (max-width: 859px) {
  :root { --header-h: 68px; }
  .brand img { height: 38px; }
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background:
      radial-gradient(circle at 50% 30%, rgba(242, 180, 64, .14), transparent 55%),
      url("../img/facets.svg") center / cover,
      var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility 0s .35s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transition: opacity .35s; }
  /* backdrop-filter would turn the header into the containing block of the fixed overlay */
  .nav-open .site-header {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .nav-open { overflow: hidden; }

  .site-nav ul { flex-direction: column; gap: 1.6rem; text-align: center; }
  .site-nav a:not(.btn) {
    font: 800 2.6rem/1 var(--font-display);
    letter-spacing: .02em;
    color: var(--bone);
  }
  .site-nav .btn { margin-top: 1rem; }
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2.5rem) 0 5.5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 74% 46%, rgba(242, 180, 64, .20), rgba(184, 102, 26, .08) 28%, transparent 56%),
    radial-gradient(ellipse 80% 50% at 50% 115%, rgba(167, 60, 15, .28), transparent 70%),
    var(--ink);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/facets.svg") center / cover;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 65% 45%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 80% at 65% 45%, #000 25%, transparent 85%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--ink));
}

.hero__embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
}

.hero__copy { display: grid; justify-items: start; gap: 1.6rem; }

.hero__title { font-size: clamp(3.2rem, 1.5rem + 6.6vw, 7.6rem); }
.hero__title .line { display: block; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .5rem; }

.hero__visual {
  position: relative;
  order: -1;
  justify-self: center;
  width: min(66vw, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero__halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 180, 64, .34), rgba(216, 99, 28, .12) 45%, transparent 70%);
  filter: blur(24px);
  animation: breathe 7s ease-in-out infinite;
}

.hero__ring {
  position: absolute;
  inset: -7%;
  width: 114%;
  height: 114%;
  max-width: none;
  overflow: visible;
  fill: none;
  animation: spin 80s linear infinite;
}
.hero__ring circle { stroke: rgba(242, 180, 64, .26); stroke-width: .25; }
.hero__ring circle + circle { stroke: rgba(242, 180, 64, .5); stroke-width: .6; stroke-dasharray: .6 3.2; }

.emblem {
  position: relative;
  width: 88%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55));
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out);
}
.emblem path { transform-box: fill-box; transform-origin: center; }

.emblem__eyes { opacity: .75; }
.js .emblem__eyes { opacity: 0; transition: opacity 1.2s ease; }
.js .emblem.is-awake .emblem__eyes { opacity: 1; animation: eye-glow 3.6s ease-in-out 1.2s infinite; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  display: grid;
  justify-items: center;
  gap: .6rem;
  color: var(--faint);
  font: 700 .64rem/1 var(--font-body);
  letter-spacing: .34em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  animation: scroll-line 2.4s var(--ease-out) infinite;
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .hero__visual { order: 0; width: min(100%, 500px); }
}

@media (max-width: 959px) {
  .hero { text-align: left; }
  .hero__scroll { display: none; }
}

/* ---------- Marquee band ---------- */

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 2.25rem 0;
  margin: -2.25rem 0;
}
.marquee__band {
  width: 110%;
  margin-left: -5%;
  padding: 1rem 0;
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-1.6deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
  font: 800 clamp(1.3rem, 1rem + 1vw, 1.9rem)/1 var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__group img { width: 26px; height: 26px; }

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(5rem, 3.5rem + 6vw, 9rem) 0;
}
.section--tight { padding-top: 0; }

.section-head {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

/* ---------- Game card ---------- */

.game {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 60%);
}

.game__art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 300px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 55%, rgba(242, 180, 64, .26), transparent 58%),
    linear-gradient(140deg, #22160C, #0B0B10 70%);
}
.game__art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/facets.svg") center / cover;
  transition: transform 1.2s var(--ease-out);
}
.game__art::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .8);
}
.game__art-emblem {
  width: 34%;
  height: auto;
  opacity: .22;
  filter: drop-shadow(0 0 40px rgba(242, 180, 64, .5));
  transition: transform 1.2s var(--ease-out), opacity .6s;
}
/* Real key art: <img class="game__art-cover" src="assets/img/your-key-art.jpg" alt="…"> inside .game__art */
.game__art-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.game:hover .game__art-cover { transform: scale(1.04); }
.game:hover .game__art::before { transform: scale(1.06) rotate(1deg); }
.game:hover .game__art-emblem { transform: scale(1.06); opacity: .3; }

.game__tag {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  padding: .5em .8em;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(11, 11, 16, .6);
  color: var(--muted);
  font: 700 .66rem/1 var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.game__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3rem;
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem);
}
.game__title {
  font: 800 clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem)/.92 var(--font-display);
  text-transform: uppercase;
}
.game__body > p { color: var(--muted); max-width: 46ch; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .6em 1em;
  border: 1px solid rgba(242, 180, 64, .35);
  border-radius: 999px;
  color: var(--gold);
  font: 700 .68rem/1 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.chip__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(255, 90, 31, .7);
  animation: pulse 2.2s infinite;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.meta-list dt {
  margin-bottom: .35rem;
  color: var(--faint);
  font: 700 .66rem/1.2 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.meta-list dd { font-weight: 700; }

@media (min-width: 900px) {
  .game { grid-template-columns: 1.2fr 1fr; }
  .game__art { aspect-ratio: auto; min-height: 460px; }
}

/* ---------- Studio ---------- */

.section--studio {
  background:
    radial-gradient(ellipse 55% 45% at 8% 38%, rgba(242, 180, 64, .07), transparent 70%),
    linear-gradient(var(--ink), #0E0E14 50%, var(--ink));
}

.studio {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.studio .section-head { margin-bottom: 0; }
.studio__copy { display: grid; gap: 1.1rem; color: var(--muted); font-size: 1.06rem; align-content: end; }

@media (min-width: 900px) {
  .studio { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: end; }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  list-style: none;
}

.pillar {
  position: relative;
  display: grid;
  gap: .9rem;
  align-content: start;
  padding: 2rem 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--ink-3), var(--ink-2));
  transition: border-color .4s, transform .5s var(--ease-out);
}
.pillar::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 180, 64, .16), transparent 70%);
  opacity: 0;
  transition: opacity .5s;
}
.pillar:hover { border-color: rgba(242, 180, 64, .35); transform: translateY(-4px); }
.pillar:hover::after { opacity: 1; }
.pillar__icon { width: 52px; height: 52px; margin-bottom: .4rem; }
.pillar__num {
  position: absolute;
  top: 1.5rem; right: 1.6rem;
  color: var(--faint);
  font: 800 1rem/1 var(--font-display);
  letter-spacing: .1em;
}
.pillar h3 { font: 800 1.9rem/1 var(--font-display); text-transform: uppercase; }
.pillar p { color: var(--muted); }

/* ---------- Press call-to-action ---------- */

.press-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(242, 180, 64, .24);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 85% 50%, rgba(242, 180, 64, .2), transparent 55%),
    linear-gradient(120deg, #18120C, #0F0F15 60%);
}
.press-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/facets.svg") center / cover;
  opacity: .8;
}
.press-cta__copy { display: grid; justify-items: start; gap: 1.2rem; }
.press-cta__copy .btn-row { margin-top: .5rem; }

.press-cta__stack {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
  aspect-ratio: 1.15;
}
.stack-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, .14);
  border-radius: 10px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .55);
  transition: transform .8s var(--ease-out);
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card--banner { left: 0; top: 14%; width: 78%; aspect-ratio: 16 / 9; transform: rotate(-7deg); }
.stack-card--emblem {
  right: 0; top: 0;
  width: 42%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--bone);
  transform: rotate(8deg);
}
.stack-card--emblem img { width: 72%; height: auto; object-fit: contain; }
.stack-card--colors {
  right: 6%; bottom: 0;
  width: 58%;
  height: 22%;
  display: flex;
  transform: rotate(-2deg);
}
.stack-card--colors span { flex: 1; }
.press-cta:hover .stack-card--banner { transform: rotate(-10deg) translate(-4%, -2%); }
.press-cta:hover .stack-card--emblem { transform: rotate(12deg) translate(4%, -4%); }
.press-cta:hover .stack-card--colors { transform: rotate(1deg) translate(2%, 4%); }

@media (min-width: 900px) {
  .press-cta { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
}

/* ---------- Contact ---------- */

.contact {
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(216, 99, 28, .18), transparent 70%);
}
.contact__inner { display: grid; justify-items: center; gap: 1.4rem; }
.contact .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.contact__title {
  font: 800 clamp(3.6rem, 2rem + 8vw, 9rem)/.88 var(--font-display);
  text-transform: uppercase;
}
.contact .lead { margin-inline: auto; }

.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: .6rem;
}
.mail-link {
  position: relative;
  font: 700 clamp(1.4rem, .9rem + 2.4vw, 2.6rem)/1.2 var(--font-display);
  letter-spacing: .02em;
  color: var(--gold);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.mail-link:hover::after { transform: scaleX(1); }

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1rem;
  list-style: none;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .7em 1.1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font: 700 .74rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.social:hover { color: var(--gold); border-color: var(--gold); }
.social svg { width: .9em; height: .9em; }
.social.ph { border-style: dashed; padding: .7em 1.1em; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #08080C;
  color: var(--muted);
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand { display: grid; gap: 1.1rem; justify-items: start; max-width: 34ch; }
.footer-brand img { height: 52px; width: auto; }
.footer-h {
  margin-bottom: 1rem;
  color: var(--bone);
  font: 700 .72rem/1 var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: .55rem; list-style: none; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: .84rem;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Press kit page
   ========================================================================== */

.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)) 0 clamp(3rem, 2rem + 3vw, 5rem);
  overflow: hidden;
}
.page-hero .hero__bg {
  background:
    radial-gradient(circle at 82% 30%, rgba(242, 180, 64, .18), transparent 45%),
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(167, 60, 15, .22), transparent 70%),
    var(--ink);
}
.page-hero__inner { display: grid; justify-items: start; gap: 1.4rem; }
.page-hero__emblem {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--max)) / 2));
  top: 50%;
  z-index: -1;
  width: clamp(220px, 30vw, 420px);
  opacity: .14;
  transform: translateY(-38%) rotate(-8deg);
}
.page-title { font-size: clamp(4rem, 2.4rem + 7vw, 9rem); }
.page-hero .lead { max-width: 58ch; }
.page-hero__meta { color: var(--faint); font-size: .86rem; }

.breadcrumb {
  display: flex;
  gap: .6rem;
  color: var(--faint);
  font: 700 .72rem/1 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  list-style: none;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-right: .6rem; color: var(--faint); }

.pk {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(4rem, 3rem + 4vw, 7rem);
}

.pk-aside { display: grid; gap: 1.5rem; align-content: start; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--ink-3), var(--ink-2));
}

.factsheet { padding: 1.75rem; }
.factsheet h2 {
  margin-bottom: 1.4rem;
  font: 800 1.9rem/1 var(--font-display);
  text-transform: uppercase;
}
.factsheet dl { display: grid; gap: 1.05rem; }
.factsheet dt {
  margin-bottom: .25rem;
  color: var(--faint);
  font: 700 .66rem/1.2 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.factsheet dd { font-weight: 600; overflow-wrap: anywhere; }
.factsheet dd a { color: var(--gold); text-decoration: none; }
.factsheet dd a:hover { text-decoration: underline; }
.factsheet .btn { width: 100%; margin-top: 1.6rem; }

.toc { display: none; }
.toc h2 {
  margin-bottom: .8rem;
  color: var(--faint);
  font: 700 .68rem/1 var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.toc ul { list-style: none; }
.toc a {
  display: block;
  padding: .42rem 0 .42rem 1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--bone); }
.toc a[aria-current="location"] { color: var(--gold); border-left-color: var(--gold); }

@media (min-width: 1024px) {
  .pk { grid-template-columns: 300px minmax(0, 1fr); gap: 4rem; align-items: start; }
  .pk-aside { align-self: stretch; }
  .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); display: block; padding: 0 .25rem; }
}

.pk-main { min-width: 0; }

.pk-section {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2.5rem, 2rem + 2vw, 3.75rem) 0;
  border-top: 1px solid var(--line);
}
.pk-section:first-child { padding-top: 0; border-top: 0; }
.pk-section > h2 {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font: 800 clamp(2rem, 1.6rem + 1.6vw, 2.9rem)/1 var(--font-display);
  text-transform: uppercase;
}
.pk-section > h2 span {
  color: var(--gold);
  font-size: .5em;
  letter-spacing: .1em;
}
.pk-section > .lead { margin-top: -.5rem; font-size: 1rem; }
.pk-sub {
  margin-top: .75rem;
  color: var(--bone);
  font: 700 .74rem/1 var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* Project row inside press kit */
.project {
  display: grid;
  overflow: hidden;
}
.project .game__art { min-height: 220px; aspect-ratio: 16 / 9; }
.project__body { display: grid; justify-items: start; gap: 1rem; padding: 1.75rem; }
.project__body h3 { font: 800 2.2rem/1 var(--font-display); text-transform: uppercase; }
.project__body p { color: var(--muted); }
@media (min-width: 760px) {
  .project { grid-template-columns: 1fr 1.2fr; }
  .project .game__art { aspect-ratio: auto; }
}

/* Video placeholder */
.video-slot {
  position: relative;
  display: grid;
  place-items: center;
  gap: 1rem;
  aspect-ratio: 16 / 9;
  padding: 2rem;
  overflow: hidden;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 180, 64, .1), transparent 60%),
    url("../img/facets.svg") center / cover,
    var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.video-slot__play {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin-inline: auto;
  border: 1.5px solid rgba(242, 180, 64, .6);
  border-radius: 50%;
  color: var(--gold);
}
.video-slot__play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Asset downloads */
.assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.assets--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.asset {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color .3s, transform .4s var(--ease-out);
}
.asset:hover { border-color: rgba(242, 180, 64, .35); transform: translateY(-3px); }

.asset__preview {
  display: grid;
  place-items: center;
  height: 190px;
  padding: 1.5rem;
}
.asset__preview img { width: auto; height: auto; max-width: 82%; max-height: 128px; }
.asset__preview--dark { background: radial-gradient(circle at 50% 50%, #1D1A17, var(--ink) 75%); }
.asset__preview--light { background: var(--bone); }
.asset__preview--banner { position: relative; height: auto; aspect-ratio: 16 / 9; padding: 0; background: var(--ink); }
.asset__preview--banner img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }

.asset figcaption {
  display: grid;
  gap: .35rem;
  flex: 1;
  align-content: start;
  padding: 1rem 1.1rem 1.15rem;
  border-top: 1px solid var(--line);
}
.asset__name { font-weight: 800; font-size: .95rem; }
.asset__desc { color: var(--faint); font-size: .8rem; line-height: 1.45; }
.asset__dl { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .55em .85em;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--bone);
  font: 800 .7rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.dl-btn svg { width: 1em; height: 1em; }
.dl-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.dl-btn small { font-weight: 600; letter-spacing: .04em; opacity: .65; text-transform: none; }

/* Color swatches */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 1rem;
}
.swatch {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: border-color .3s, transform .4s var(--ease-out);
}
.swatch:hover { border-color: rgba(242, 180, 64, .4); transform: translateY(-3px); }
.swatch__chip {
  position: relative;
  display: grid;
  place-items: center;
  height: 112px;
  background: var(--c);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06);
}
.swatch__chip::after {
  content: "Copy";
  padding: .45em .8em;
  border-radius: 999px;
  background: rgba(11, 11, 16, .75);
  color: var(--bone);
  font: 700 .66rem/1 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .35s var(--ease-out);
}
.swatch:hover .swatch__chip::after,
.swatch:focus-visible .swatch__chip::after { opacity: 1; transform: none; }
.swatch.is-copied .swatch__chip::after { content: "Copied"; opacity: 1; transform: none; background: var(--bone); color: var(--ink); }
.swatch__info { display: grid; gap: .15rem; padding: .9rem 1rem 1rem; }
.swatch__name { font-weight: 800; font-size: .92rem; }
.swatch__hex { color: var(--gold); font: 700 .82rem/1.3 ui-monospace, "Cascadia Code", Consolas, monospace; }
.swatch__rgb { color: var(--faint); font: 500 .74rem/1.3 ui-monospace, "Cascadia Code", Consolas, monospace; }
.swatch__use { margin-top: .3rem; color: var(--faint); font-size: .76rem; line-height: 1.4; }

/* Usage do / don't */
.usage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 1rem;
}
.usage__item { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.usage__demo {
  display: grid;
  place-items: center;
  height: 140px;
  padding: 1.25rem;
  overflow: hidden;
  background: radial-gradient(circle, #1D1A17, var(--ink) 75%);
}
.usage__demo--light { background: var(--bone); }
.usage__demo img { width: 82%; height: auto; }
.usage__demo--stretch img { transform: scaleX(1.12) scaleY(.7); }
.usage__demo--rotate img { transform: rotate(-14deg); }
.usage__demo--recolor img { filter: hue-rotate(150deg) saturate(1.6); }
.usage__demo--effects img { filter: drop-shadow(4px 4px 0 #FF5A1F) drop-shadow(-4px -4px 0 #2BD4FF) blur(.4px); }
.usage__item figcaption {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .9rem 1rem 1rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  line-height: 1.45;
  color: var(--muted);
}
.usage__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1;
}
.usage__mark--do { background: var(--gold); color: var(--ink); }
.usage__mark--dont { background: var(--ember); color: var(--ink); }

.notice {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(242, 180, 64, .05);
  color: var(--muted);
  font-size: .92rem;
}
.notice a { color: var(--gold); }

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  list-style: none;
}
.member { display: grid; gap: .3rem; justify-items: start; padding: 1.5rem; }
.member__avatar {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin-bottom: .7rem;
  border: 1px solid rgba(242, 180, 64, .4);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2A1A0C, var(--ink));
}
.member__avatar img { width: 62%; height: auto; }
.member__name { font-weight: 800; font-size: 1.05rem; }
.member__role { color: var(--muted); font-size: .9rem; }

/* Contact list */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.contact-card { display: grid; gap: .45rem; align-content: start; padding: 1.4rem 1.5rem; }
.contact-card dt {
  color: var(--faint);
  font: 700 .66rem/1.2 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.contact-card dd { font-weight: 700; overflow-wrap: anywhere; }
.contact-card a { color: var(--gold); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.legal { color: var(--faint); font-size: .86rem; max-width: 70ch; }

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem;
  overflow: hidden;
  text-align: center;
}
.error-page__inner { display: grid; justify-items: center; gap: 1.3rem; max-width: 40rem; }
.error-page__emblem { width: clamp(140px, 22vw, 200px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.error-page__code {
  font: 900 clamp(6rem, 4rem + 10vw, 11rem)/.8 var(--font-display);
  letter-spacing: .02em;
}

/* ==========================================================================
   Game pages (DEWHAVEN)
   ========================================================================== */

.theme-dewhaven { --leaf: #A5D66F; --leaf-soft: rgba(165, 214, 111, .5); }

.chip--leaf { color: #C5E1A5; border-color: rgba(197, 225, 165, .5); }
.chip--leaf .chip__dot { background: #8BC34A; animation-name: pulse-leaf; }

.game-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: min(100svh, 1000px);
  padding: calc(var(--header-h) + 4rem) 0 clamp(3.5rem, 2.5rem + 4vw, 6rem);
  overflow: hidden;
}
.game-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../games/dewhaven/cover.jpg") 20% 50% / cover no-repeat;
  animation: hero-drift 40s ease-in-out infinite alternate;
}
.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 16, .7), transparent 20%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 11, 16, .35) 16%, transparent 38%),
    linear-gradient(90deg, rgba(11, 11, 16, .92) 0%, rgba(11, 11, 16, .72) 30%, rgba(11, 11, 16, 0) 52%);
}
.game-hero__inner { display: grid; justify-items: start; gap: 1.3rem; max-width: 560px; }
.game-hero .breadcrumb { margin-bottom: .4rem; }
.game-logo {
  margin: 0;
  font-family: "Exo 2", var(--font-body);
  font-weight: 900;
  font-size: clamp(3.2rem, 1.2rem + 5.2vw, 6.2rem);
  line-height: .9;
  letter-spacing: .01em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .55);
}
.game-tagline {
  font: 600 clamp(1.3rem, 1rem + 1.2vw, 2rem)/1.2 var(--font-body);
  color: var(--honey);
}
.game-hero .lead { color: rgba(244, 241, 234, .82); }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.pill {
  padding: .55em .95em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 11, 16, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--bone);
  font: 700 .72rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.game-hero__art { display: none; }

@media (min-width: 1600px) {
  .game-hero__inner { max-width: 500px; }
  .game-logo { font-size: 5.4rem; }
}

/* Phones: the artwork sits above the text instead of behind it */
@media (max-width: 700px) {
  .game-hero {
    align-items: start;
    min-height: 0;
    padding-top: calc(var(--header-h) + 1rem);
    background: radial-gradient(ellipse 120% 60% at 50% 0%, rgba(242, 180, 64, .12), transparent 70%), var(--ink);
  }
  .game-hero__bg,
  .game-hero::before { display: none; }
  .game-hero__art {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    margin-bottom: 1.6rem;
    object-fit: cover;
    object-position: 45% 60%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
  }
}

/* About + quick facts */
.about { display: grid; gap: 2.5rem; }
.about__copy { display: grid; gap: 1.1rem; align-content: start; color: var(--muted); font-size: 1.06rem; }
.about__copy .section-title { margin-bottom: .6rem; color: var(--bone); }
.facts { padding: 1.75rem; align-self: start; }
.facts h3 {
  margin-bottom: 1.2rem;
  font: 800 1.6rem/1 var(--font-display);
  text-transform: uppercase;
}
.facts dl { display: grid; gap: .95rem; }
.facts dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-bottom: .95rem; border-bottom: 1px solid var(--line); }
.facts dl div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt {
  padding-top: .2rem;
  color: var(--faint);
  font: 700 .66rem/1.2 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.facts dd { font-weight: 600; }
.tba { color: var(--leaf, var(--gold)); font-weight: 800; letter-spacing: .08em; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
}

/* Feature rows */
.features { display: grid; gap: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.feature { display: grid; gap: 1.75rem; align-items: center; }
.feature__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__body { display: grid; gap: 1rem; justify-items: start; }
.feature__num { color: var(--leaf, var(--gold)); font: 800 .8rem/1 var(--font-body); letter-spacing: .3em; }
.feature__body h3 {
  font-family: "Exo 2", var(--font-body);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem);
  line-height: 1.02;
}
.feature__body p { color: var(--muted); max-width: 50ch; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
  .feature:nth-child(even) .feature__media { order: 2; }
}

/* "And more" grid */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  list-style: none;
}
.mini {
  display: grid;
  gap: .7rem;
  align-content: start;
  padding: 1.6rem 1.5rem;
  transition: border-color .3s, transform .45s var(--ease-out);
}
.mini:hover { border-color: var(--leaf-soft, rgba(242, 180, 64, .35)); transform: translateY(-3px); }
.mini svg {
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(165, 214, 111, .1);
  color: var(--leaf, var(--gold));
}
.mini h3 { font: 800 1.15rem/1.2 "Exo 2", var(--font-body); }
.mini p { color: var(--muted); font-size: .95rem; }

.fine-print { margin-top: 1.6rem; color: var(--faint); font-size: .84rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: .9rem;
  list-style: none;
}
.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery a::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0;
  padding: 1.6rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(11, 11, 16, .85));
  color: var(--bone);
  font-size: .82rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.gallery a:hover img,
.gallery a:focus-visible img { transform: scale(1.05); }
.gallery a:hover::after,
.gallery a:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .gallery a::after { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 5, 8, .92); }
.lightbox[open] { animation: lb-in .35s var(--ease-out); }
.lightbox figure { margin: 0; display: grid; gap: .9rem; }
.lightbox img {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}
.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  font-weight: 600;
}
.lightbox__count { margin-left: .6rem; color: var(--faint); font-size: .85rem; }
.lightbox__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-width: 44px; height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 17, 24, .9);
  color: var(--bone);
  font: 700 .74rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-btn svg { width: 18px; height: 18px; }

/* Game press block */
.press-grid { display: grid; gap: 1.25rem; }
.press-grid > .card { padding: 1.75rem; }
.press-grid .facts { padding: 1.75rem; }
.copy-block { display: grid; gap: .9rem; align-content: start; }
.copy-block h3,
.asset-list h3 {
  font: 800 1.6rem/1 var(--font-display);
  text-transform: uppercase;
}
.copy-block h4 {
  margin-top: .4rem;
  color: var(--faint);
  font: 700 .66rem/1.2 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.copy-block blockquote {
  margin: 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--leaf, var(--gold));
  border-radius: 6px;
  background: rgba(244, 241, 234, .04);
  color: rgba(244, 241, 234, .85);
  font-size: .95rem;
}
.copy-block .dl-btn { justify-self: start; cursor: pointer; background: none; }
.asset-list { display: grid; gap: 1rem; align-content: start; }
.asset-list ul { display: grid; gap: .75rem; list-style: none; }
.asset-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.asset-list li strong { display: block; font-size: .95rem; }
.asset-list li span { color: var(--faint); font-size: .82rem; }
.asset-list .tba { font-size: .72rem; letter-spacing: .18em; }
@media (min-width: 1000px) {
  .press-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Game card with real art (home page, press kit) */
.game__title--dewhaven { font-family: "Exo 2", var(--font-body); font-weight: 900; letter-spacing: .01em; }
.game__tagline { margin-top: -.6rem; color: var(--honey); font-weight: 700; }
.project__body h3.game__title--dewhaven { font-family: "Exo 2", var(--font-body); font-weight: 900; text-transform: none; }
.game__art--cover { color: inherit; text-decoration: none; }
.game__art--cover::before,
.game__art--cover::after { display: none; }

/* Stacked game cards on the home page */
.games-list { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

/* ==========================================================================
   Game pages (MALAM KETUJUH) — candle light in a dark joglo
   ========================================================================== */

:root { --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif; }

.theme-malam {
  --leaf: #FFA325;
  --leaf-soft: rgba(255, 163, 37, .45);
  --candle: #FFA325;
  --bone-warm: #EDE3CF;
  background: #060507;
}

.game__title--malam,
.project__body h3.game__title--malam {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.game__title--malam { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.3rem); line-height: 1; }

.chip--candle { color: #FFC56E; border-color: rgba(255, 163, 37, .45); }
.chip--candle .chip__dot { background: var(--candle, #FFA325); animation-name: pulse-candle; }

.theme-malam .game-hero__bg {
  background-image: url("../games/malam-ketujuh/hero.jpg");
  background-position: 62% 50%;
  animation-duration: 60s;
}
.theme-malam .game-hero::before {
  background:
    radial-gradient(ellipse 60% 70% at 72% 55%, transparent 30%, rgba(6, 5, 7, .55) 75%),
    linear-gradient(180deg, rgba(6, 5, 7, .75), transparent 22%),
    linear-gradient(0deg, #060507 0%, rgba(6, 5, 7, .4) 18%, transparent 40%),
    linear-gradient(90deg, rgba(6, 5, 7, .95) 0%, rgba(6, 5, 7, .7) 34%, rgba(6, 5, 7, 0) 58%);
}
/* Film grain + slow candle flicker over the hero */
.theme-malam .game-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 61% 38%, rgba(255, 163, 37, .16), transparent 26%);
  animation: candle 5s ease-in-out infinite;
}
.game-logo--malam {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 5vw, 5.8rem);
  line-height: .92;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bone-warm);
  text-shadow: 0 0 32px rgba(255, 163, 37, .18), 0 8px 40px rgba(0, 0, 0, .8);
}
.game-logo--malam span { display: block; }
.game-logo--malam span + span { font-size: 1.18em; }
@media (max-width: 700px) {
  .theme-malam .game-hero { background: radial-gradient(ellipse 120% 60% at 50% 0%, rgba(255, 163, 37, .1), transparent 70%), #060507; }
  .theme-malam .game-hero::after { display: none; }
}
.theme-malam .game-tagline { color: #FFC56E; font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.omen {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--candle);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--bone-warm);
}
.omen small {
  display: block;
  margin-top: .25rem;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: .82rem;
  font-style: normal;
}

.theme-malam .section--studio {
  background:
    radial-gradient(ellipse 55% 45% at 8% 38%, rgba(255, 163, 37, .06), transparent 70%),
    linear-gradient(#060507, #0C0A0C 50%, #060507);
}
.theme-malam .section-title .text-gold,
.theme-malam .contact__title .text-gold { color: var(--candle); }
.theme-malam .about__copy .section-title,
.theme-malam .feature__body h3,
.theme-malam .mini h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: .01em;
}
.theme-malam .mini h3 { font-size: 1.3rem; }
.theme-malam .mini svg { background: rgba(255, 163, 37, .1); }
.theme-malam .feature__media { box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 163, 37, .06); }

/* Trailer: poster first, YouTube loads only after a click */
.trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.trailer__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--bone);
  background: #000 center / cover no-repeat;
  cursor: pointer;
}
.trailer__play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, .15), rgba(0, 0, 0, .65));
  transition: background .4s;
}
.trailer__play:hover::before { background: radial-gradient(circle, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5)); }
.trailer__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  border: 1.5px solid rgba(255, 163, 37, .8);
  border-radius: 50%;
  background: rgba(6, 5, 7, .55);
  color: var(--candle, var(--gold));
  transition: transform .45s var(--ease-out), background .3s;
}
.trailer__icon svg { width: 28px; height: 28px; margin-left: 5px; }
.trailer__play:hover .trailer__icon { transform: scale(1.08); background: rgba(255, 163, 37, .18); }
.trailer__label {
  position: relative;
  font: 700 .74rem/1 var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Controls, requirements, warning */
.info-grid { display: grid; gap: 1.25rem; }
.info-grid > .card { padding: 1.75rem; }
.info-grid h3 {
  margin-bottom: 1.2rem;
  font: 800 1.6rem/1 var(--font-display);
  text-transform: uppercase;
}
.keys { display: grid; gap: .7rem; list-style: none; }
.keys li { display: flex; align-items: center; gap: .9rem; color: var(--muted); font-size: .95rem; }
.keys kbd {
  flex: none;
  min-width: 4.2rem;
  padding: .4em .6em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: rgba(244, 241, 234, .04);
  color: var(--bone);
  font: 700 .74rem/1 var(--font-body);
  letter-spacing: .06em;
  text-align: center;
}
.info-grid h4 {
  margin: 1.3rem 0 .4rem;
  color: var(--faint);
  font: 700 .66rem/1.2 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.info-grid h4:first-of-type { margin-top: 0; }
.info-grid p { color: var(--muted); font-size: .95rem; }
.warning { border-color: rgba(255, 90, 31, .35); background: linear-gradient(160deg, rgba(167, 60, 15, .14), transparent 70%); }
.warning h3 { color: #FF8A5C; }
@media (min-width: 1000px) {
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Download call-to-action */
.play-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) var(--gutter);
  overflow: hidden;
  border: 1px solid rgba(255, 163, 37, .2);
  border-radius: var(--radius);
  text-align: center;
  background: #060507;
}
.play-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(255, 163, 37, .14), transparent 70%),
    linear-gradient(rgba(6, 5, 7, .78), rgba(6, 5, 7, .92)),
    url("../games/malam-ketujuh/hero.jpg") center / cover;
}
.play-cta .lead { max-width: 44ch; margin-inline: auto; }
.play-cta__note { color: var(--faint); font-family: var(--font-serif); font-style: italic; }
.itch-embed { width: 100%; max-width: 552px; height: 167px; border: 0; border-radius: 8px; }

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes breathe {
  0%, 100% { opacity: .75; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes eye-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@keyframes marquee { to { transform: translateX(-50%); } }

@keyframes hero-drift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse-leaf {
  0% { box-shadow: 0 0 0 0 rgba(139, 195, 74, .7); }
  70% { box-shadow: 0 0 0 9px rgba(139, 195, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 195, 74, 0); }
}

@keyframes pulse-candle {
  0% { box-shadow: 0 0 0 0 rgba(255, 163, 37, .7); }
  70% { box-shadow: 0 0 0 9px rgba(255, 163, 37, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 163, 37, 0); }
}

@keyframes candle {
  0%, 100% { opacity: 1; }
  20% { opacity: .8; }
  23% { opacity: .55; }
  26% { opacity: .9; }
  60% { opacity: .75; }
  80% { opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .7); }
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

@keyframes scroll-line {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { transform: none; }
}
