/* ============================================================
   Outclassed - shared site chrome
   Body base, root tokens, nav, footer, buttons, breakpoints.
   Imported by every page. Page-specific styles live inline.
   ============================================================ */

:root {
  --gold-hi: #f4dc88;
  --gold:    #d4af55;
  --gold-lo: #8a6a18;
  --bone:    #f3e9c8;
  --bone-mute: #a89878;
  --ink-dk:  #060300;
  --paper-dk: #14090a;
  --paper:    #1a0e08;
  --steam:    #1b2838;
  --steam-hi: #66c0f4;
  --max:      1160px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: 72px; }
body {
  background:
    radial-gradient(ellipse at 50% 0%, #2a1d10 0%, var(--ink-dk) 65%),
    url('assets/pattern.webp');
  background-size: auto, 320px;
  background-blend-mode: normal, multiply;
  color: var(--bone);
  font-family: var(--ff-body);
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----- NAV ----- */
#site-nav { min-height: 64px; }
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(6,3,0,.92), rgba(6,3,0,.7));
  box-shadow: inset 0 -1px 0 var(--gold-lo);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px;
  align-items: center; padding: 14px 24px;
}
.nav .brand {
  font-family: var(--ff-display); font-weight: 900;
  font-size: 22px; letter-spacing: .14em;
  color: var(--gold-hi);
  text-shadow: 0 1px 0 var(--gold-lo), 0 2px 0 #4a3008;
  text-decoration: none;
}
.nav .links { display: flex; gap: 22px; justify-content: center; }
.nav .links a {
  font-family: var(--ff-ui); font-size: 13px; letter-spacing: .22em;
  color: var(--bone-mute); text-transform: uppercase; text-decoration: none;
  transition: color .12s;
}
.nav .links a:hover { color: var(--gold-hi); text-decoration: none; }
.nav .links a.is-active { color: var(--gold-hi); }
.nav .cta-wish {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(180deg, var(--steam-hi) 0%, #2a5a8a 100%);
  color: #fff; font-family: var(--ff-ui); font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none;
  box-shadow:
    inset 0 0 0 1px #0d2238,
    inset 0 1px 0 rgba(255,255,255,.25),
    0 2px 6px rgba(0,0,0,.4);
  border-radius: 2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.nav .cta-wish:hover { filter: brightness(1.1); text-decoration: none; }

/* ----- ABOUT BLOCK (shared, above footer) ----- */
.about-game {
  border-top: 1px solid rgba(212,175,85,.18);
  margin-top: 72px;
  padding: 40px 24px 36px;
  background: linear-gradient(180deg, rgba(20,12,8,.35), rgba(10,6,4,.55));
}
.about-game-inner {
  max-width: 860px; margin: 0 auto;
}
.about-game h5 {
  font-family: var(--ff-ui); font-size: 12px; letter-spacing: .28em;
  color: var(--gold); text-transform: uppercase; margin: 0 0 14px;
}
.about-game p {
  font-family: var(--ff-body); font-size: 15px; line-height: 1.7;
  color: var(--bone-mute); margin: 0 0 12px;
}
.about-game p:last-of-type { margin-bottom: 0; }
.about-game p.updated {
  font-family: var(--ff-ui); font-size: 11px; letter-spacing: .22em;
  color: var(--bone-mute); text-transform: uppercase; opacity: .65;
  margin-top: 18px;
}

/* ----- FOOTER ----- */
.foot {
  border-top: 1px solid var(--gold-lo);
  margin-top: 0;
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(6,3,0,.7), var(--ink-dk));
}
.foot-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px;
  align-items: start;
}
.foot-brand .name {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-display); font-weight: 900; font-size: 22px;
  letter-spacing: .14em; color: var(--gold-hi);
  text-shadow: 0 1px 0 var(--gold-lo), 0 2px 0 #4a3008;
  margin-bottom: 8px;
}
.foot-brand .name img {
  width: 40px; height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.55));
}
.foot-brand p {
  font-family: var(--ff-body); font-size: 14px; color: var(--bone-mute);
  margin: 0 0 14px; max-width: 280px; line-height: 1.55;
}
.foot-col h5 {
  font-family: var(--ff-ui); font-size: 12px; letter-spacing: .24em;
  color: var(--gold); text-transform: uppercase; margin: 4px 0 12px;
}
.foot-col a {
  display: block; font-family: var(--ff-body); font-size: 14.5px;
  color: var(--bone-mute); text-decoration: none; margin-bottom: 6px;
}
.foot-col a:hover { color: var(--gold-hi); text-decoration: none; }
.copy {
  max-width: var(--max); margin: 28px auto 0;
  padding: 18px 24px 0;
  border-top: 1px dashed rgba(244,220,136,.12);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-ui); font-size: 11.5px; letter-spacing: .2em;
  color: var(--bone-mute); text-transform: uppercase;
}

/* ----- BUTTONS (used in footer + home hero) ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-family: var(--ff-ui); font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase;
  border: 0; cursor: pointer; text-decoration: none;
  border-radius: 2px;
  transition: filter .12s, transform .08s;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn-gold {
  background: linear-gradient(180deg, #f4dc88 0%, #d4af55 50%, #6a4818 100%);
  color: #1a0e05;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 0 0 2px #6a4818,
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -2px 0 rgba(0,0,0,.3),
    0 4px 0 #2a1808, 0 6px 18px rgba(0,0,0,.6);
}
/* Footer wishlist button is intentionally smaller than hero buttons. */
.foot-brand .btn { padding: 10px 18px; font-size: 12px; }

/* ----- COOKIE CONSENT BANNER ----- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 100; max-width: 720px; margin: 0 auto;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(20,9,10,.97), rgba(6,3,0,.97));
  box-shadow:
    inset 0 0 0 1px rgba(244,220,136,.3),
    inset 0 0 0 2px #000,
    0 20px 60px rgba(0,0,0,.7);
  border-radius: 4px;
  display: none;
  color: var(--bone);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.consent.is-visible { display: block; }
.consent > p {
  font-family: var(--ff-body); font-size: 13.5px; line-height: 1.55;
  margin: 0 0 14px; color: var(--bone-mute);
}
.consent p a {
  color: var(--gold-hi);
  border-bottom: 1px dashed rgba(244,220,136,.4);
  text-decoration: none;
}
.consent p a:hover { border-bottom-color: var(--gold-hi); text-decoration: none; }

.consent-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition:
    max-height .35s cubic-bezier(.22, .61, .36, 1),
    opacity .25s ease,
    margin .35s cubic-bezier(.22, .61, .36, 1);
  border-top: 1px solid transparent;
}
.consent.is-expanded .consent-detail {
  max-height: 420px;
  opacity: 1;
  margin: 0 0 14px;
  padding-top: 12px;
  border-top-color: rgba(244,220,136,.15);
}
.consent-detail h4 {
  font-family: var(--ff-ui); font-size: 10px; letter-spacing: .26em;
  color: var(--gold); text-transform: uppercase;
  margin: 12px 0 4px;
}
.consent-detail h4:first-child { margin-top: 0; }
.consent-detail p {
  font-family: var(--ff-body); font-size: 13px;
  color: var(--bone); line-height: 1.55;
  margin: 0 0 6px;
}
.consent-detail p:last-child { margin-bottom: 0; }

.consent-toggle::after {
  content: '▾';
  display: inline-block;
  margin-left: 4px;
  transition: transform .25s ease;
  transform: translateY(-1px);
}
.consent.is-expanded .consent-toggle::after {
  transform: translateY(-1px) rotate(180deg);
}

.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent-btn {
  padding: 9px 18px;
  font-family: var(--ff-ui); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  border: 0; cursor: pointer; border-radius: 2px;
  transition: filter .12s, transform .08s;
}
.consent-btn:hover { filter: brightness(1.12); }
.consent-btn:active { transform: translateY(1px); }
.consent-btn.is-decline {
  background: linear-gradient(180deg, #2a1808 0%, #14090a 100%);
  color: var(--bone-mute);
  box-shadow: inset 0 0 0 1px var(--gold-lo);
}
.consent-btn.is-accept {
  background: linear-gradient(180deg, #f4dc88 0%, #d4af55 50%, #6a4818 100%);
  color: #1a0e05;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 0 0 2px #6a4818,
    inset 0 1px 0 rgba(255,255,255,.6),
    0 2px 0 #2a1808;
}

/* ----- RESPONSIVE (chrome only) ----- */
@media (max-width: 768px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .nav .links { display: none; }
}
@media (max-width: 540px) {
  .foot-inner { grid-template-columns: 1fr; }
  .copy { flex-direction: column; gap: 8px; text-align: center; }
}

/* ----- STEAM "COMING SOON" MODAL ----- */
.steam-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(6,3,0,.78);
  backdrop-filter: blur(4px);
}
.steam-modal.is-visible { display: flex; }
.steam-modal-card {
  position: relative;
  max-width: 460px; width: 100%;
  padding: 34px 32px 30px;
  background: linear-gradient(180deg, rgba(20,9,10,.98), rgba(6,3,0,.98));
  box-shadow:
    inset 0 0 0 1px rgba(244,220,136,.3),
    inset 0 0 0 2px #000,
    0 30px 80px rgba(0,0,0,.7);
  border-radius: 4px;
  text-align: center;
}
.steam-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; cursor: pointer;
  color: var(--bone-mute); font-size: 26px; line-height: 1;
  transition: color .12s;
}
.steam-modal-close:hover { color: var(--gold-hi); }
.steam-modal-eyebrow {
  font-family: var(--ff-ui); font-size: 11px; letter-spacing: .28em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 10px;
}
.steam-modal-card h3 {
  font-family: var(--ff-display); font-weight: 900; font-size: 24px;
  letter-spacing: .04em; color: var(--gold-hi);
  text-shadow: 0 1px 0 var(--gold-lo), 0 2px 0 #4a3008;
  margin: 0 0 16px;
}
.steam-modal-card p {
  font-family: var(--ff-body); font-size: 14.5px; line-height: 1.6;
  color: var(--bone-mute); margin: 0 0 14px;
}
.steam-modal-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 22px;
}
/* Pin a compact size so the two buttons sit side-by-side even on pages
   that define a larger local .btn (e.g. the homepage hero buttons). */
.steam-modal-actions .btn {
  padding: 11px 18px; font-size: 12px; letter-spacing: .16em;
}
.btn-discord {
  background: linear-gradient(180deg, #5865f2 0%, #3a45b8 100%);
  color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 6px rgba(0,0,0,.4);
}
.btn-reddit {
  background: linear-gradient(180deg, #ff4500 0%, #c43500 100%);
  color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 6px rgba(0,0,0,.4);
}
@media (max-width: 420px) {
  .steam-modal-actions { flex-direction: column; }
  .steam-modal-actions .btn { justify-content: center; }
}
