:root {
  --bg: #16181c;
  --bg-alt: #1e2126;
  --panel: #262a31;
  --line: #3a3f48;
  --text: #eef0f3;
  --muted: #a3a9b4;
  --orange: #f07a1e;
  --orange-hi: #ff9a45;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; letter-spacing: 0.01em; line-height: 1.15; }
h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 1rem; }
.center { text-align: center; }
.sub { color: var(--muted); }
.kicker {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .25em; color: var(--orange);
  margin: 0 0 .5rem; font-size: .95rem;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px;
  background: rgba(22, 24, 28, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--orange);
}
.logo img { height: 40px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.nav nav, .nav-links { display: flex; align-items: center; gap: 22px; }
.nav nav a { white-space: nowrap; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.nav-links a:hover { color: var(--text); }
.menu-only { display: none; }

/* Menu button (narrow screens) */
.menu-toggle {
  display: none; width: 40px; height: 36px; padding: 0; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] { border-color: var(--orange); }

@media (max-width: 1100px) {
  .menu-toggle { display: grid; }
  .nav nav { gap: 12px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 2px solid var(--orange);
    box-shadow: 0 12px 24px rgba(0,0,0,.4);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); font-size: 1.2rem; }
}
@media (max-width: 560px) {
  .store-page .nav-cta { display: none; }
  .store-page .menu-only { display: block; color: var(--orange); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: #1a0d00 !important;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); background: var(--orange-hi); box-shadow: 0 8px 24px rgba(240,122,30,.35); }
.btn-ghost { background: rgba(0,0,0,.35); color: var(--orange) !important; }
.btn-ghost:hover { background: rgba(0,0,0,.55); }
.btn-small { padding: 6px 16px; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  min-height: min(calc(100vh - 66px), 56.25vw + 160px);
  display: flex; align-items: flex-end;
  background: #0d0f12 url("images/hero.jpg") left top / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(13,15,18,.85) 78%, var(--bg) 100%);
}
.hero-bottom { position: relative; z-index: 1; width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px 56px; }
.eyebrow {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  color: var(--orange); text-transform: uppercase; letter-spacing: .22em; margin: 0 0 .4rem;
}
.tagline { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 560px; margin: 0 0 1.4rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* About */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.two-col p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }
.stat-card {
  display: grid; gap: 18px;
  background: var(--panel); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); border-top: 4px solid var(--orange);
}
.stat { display: flex; align-items: baseline; gap: 16px; }
.stat strong { font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 2rem; color: var(--orange); min-width: 90px; }
.stat span { color: var(--muted); font-weight: 600; }

/* Loop */
.loop {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  counter-reset: step;
}
.loop li {
  position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px;
}
.loop li:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; right: -15px; width: 16px; height: 4px;
  background: var(--orange); border-radius: 2px;
}
.loop span { font-family: "Alfa Slab One", serif; color: var(--orange); font-size: 1.4rem; }
.loop h3 { margin: .3rem 0 .3rem; font-size: 1.25rem; }
.loop p { margin: 0; color: var(--muted); font-size: .95rem; }
.loop-note { margin-top: 28px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 40px; }
.feature {
  background: var(--panel); border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--line); border-left: 4px solid var(--orange);
  transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--orange); }
.feature h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.feature p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.shot {
  display: block; text-decoration: none;
  background: var(--panel); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
}
.shot.wide { grid-column: 1 / -1; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.03); }
.shot span {
  display: block; position: relative; background: var(--panel);
  padding: 10px 14px; border-top: 3px solid var(--orange);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none;
  place-items: center; background: rgba(0,0,0,.9); padding: 16px; cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; border-radius: 6px; }

/* Download */
.download { background: linear-gradient(160deg, #2a1608 0%, var(--bg) 55%); border-top: 2px solid var(--orange); }
.download .btn-big { margin-top: .6rem; }
.download p a:not(.btn) { color: var(--orange); }
.buy-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 1.4rem; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius);
}
.buy-card .btn-big { margin: 0; }
.price-tag { display: block; font-family: "Alfa Slab One", serif; font-size: 2.4rem; line-height: 1; }
.price-note { display: block; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.redeem { margin-top: 1.4rem; }
.redeem label {
  display: block; margin-bottom: 8px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.redeem-row { display: flex; gap: 10px; flex-wrap: wrap; }
.redeem input {
  flex: 1; min-width: 220px;
  padding: 12px 14px; border-radius: 6px; border: 2px solid var(--line);
  background: var(--panel); color: var(--text);
  font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
}
.redeem input::placeholder { text-transform: none; letter-spacing: .04em; }
.redeem input:focus { outline: none; border-color: var(--orange); }
.redeem-msg { min-height: 1.5em; margin: 8px 0 0; font-size: .95rem; color: var(--muted); }
.redeem-msg.error { color: #ff7a7a; }
.redeem-ok {
  margin-top: 1.4rem; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #9be33a; border-radius: var(--radius);
}
.redeem-ok[hidden], .redeem[hidden] { display: none; }
.redeem-ok p:first-child { margin-top: 0; }
.redeem-ok .fine { font-size: .85rem; margin-bottom: 0; }
.btn-big { padding: 16px 34px; font-size: 1.45rem; }
.btn-big small { display: block; font-size: .8rem; letter-spacing: .12em; opacity: .75; }
.specs h3 { margin: 0; font-size: 1.3rem; }
.specs dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.specs dt { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.specs dd { margin: 0; color: var(--muted); }

/* Discord */
.discord { background: var(--bg-alt); border-top: 1px solid var(--line); }
.discord-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.discord-icon {
  width: 88px; height: 88px; border-radius: 22px;
  display: grid; place-items: center;
  background: #5865f2; color: #fff;
  box-shadow: 0 10px 30px rgba(88,101,242,.35);
}
.discord-text h2 { margin-bottom: .5rem; }
.discord-text p:not(.kicker) { color: var(--muted); margin: 0; max-width: 620px; }

/* Footer */
.footer { text-align: center; padding: 36px 16px; color: var(--muted); border-top: 1px solid var(--line); }
.footer p { margin: .4rem 0; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--orange); }

/* ===== DLC store ===== */
.nav nav a[aria-current="page"] { color: var(--orange); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { display: block; width: 100%; text-align: center; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  background: var(--orange); color: #1a0d00; border: 2px solid var(--orange);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.cart-btn:hover { background: var(--orange-hi); }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  display: inline-grid; place-items: center;
  background: #1a0d00; color: var(--orange); font-size: .85rem;
}

.store-hero { padding: 72px 0 24px; background: linear-gradient(180deg, #2a1608 0%, var(--bg) 100%); }
.store-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .5rem; }
.store-hero .sub { max-width: 620px; font-size: 1.08rem; }
.test-banner {
  margin-top: 20px; display: inline-block;
  padding: 10px 16px; border-radius: 6px;
  background: rgba(240,122,30,.12); border: 1px dashed var(--orange);
}
.test-banner[hidden] { display: none; }
.store-section { padding-top: 32px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter {
  padding: 8px 16px; border-radius: 6px; cursor: pointer;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.filter:hover { color: var(--text); }
.filter.active { color: var(--orange); border-color: var(--orange); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.product {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.product:hover { transform: translateY(-3px); border-color: var(--orange); }
.product.owned { border-color: rgba(155,227,58,.5); }
.product-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product.coming-soon .product-img img { filter: saturate(.55) brightness(.8); }
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px; border-radius: 4px;
  background: var(--orange); color: #1a0d00;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.badge-soon { background: rgba(22,24,28,.9); color: var(--text); border: 1px solid var(--line); }
.badge-owned { background: #9be33a; }
.product-body { padding: 20px 20px 8px; flex: 1; }
.product-body h3 { margin: 0 0 .4rem; font-size: 1.5rem; }
.product-body p { color: var(--muted); margin: 0 0 .8rem; }
.product-body ul { margin: 0 0 .8rem; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.product-body li::marker { color: var(--orange); }
.product-body .fine { font-size: .85rem; margin: 0; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-top: 1px solid var(--line);
}
.price { font-family: "Alfa Slab One", serif; font-size: 1.5rem; }
.product.owned .price { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.1rem; color: #9be33a; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

.how-dlc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-dlc h3 { margin: 0 0 .3rem; font-size: 1.3rem; color: var(--orange); }
.how-dlc p { margin: 0; color: var(--muted); }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
.drawer-backdrop[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(400px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg-alt); border-left: 2px solid var(--orange);
  transform: translateX(100%); transition: transform .25s ease, visibility .25s;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.5rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.icon-btn { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; padding: 4px 8px; }
.icon-btn:hover { color: var(--text); }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; }
.cart-item span { display: block; color: var(--muted); font-size: .85rem; }
.cart-item-end { text-align: right; }
.cart-item-end span { color: var(--text); font-weight: 700; font-size: 1rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.link-btn:hover { color: var(--orange); }
.empty-cart { color: var(--muted); text-align: center; padding: 40px 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.total-row strong { font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 1.5rem; }

/* Checkout modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.7); }
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(480px, 100%);
  background: var(--bg-alt); border: 1px solid var(--line); border-top: 4px solid var(--orange);
  border-radius: var(--radius); padding: 28px;
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.modal-card h2 { margin: 0 0 1rem; font-size: 1.7rem; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.summary { list-style: none; padding: 0; margin: 0 0 12px; }
.summary li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
#checkout-form { display: grid; gap: 10px; margin-top: 20px; }
#checkout-form label { font-weight: 600; font-size: .95rem; }
#checkout-form input {
  padding: 12px 14px; border-radius: 6px; border: 2px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 1rem;
}
#checkout-form input:focus { outline: none; border-color: var(--orange); }
.test-note { margin: 0; color: var(--orange); font-size: .9rem; }
.test-note[hidden] { display: none; }
.downloads { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 10px; }
.downloads li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--panel); border-radius: 6px; border-left: 3px solid #9be33a;
}
.downloads small { display: block; color: var(--muted); }

@media (max-width: 960px) {
  .loop { grid-template-columns: 1fr 1fr; }
  .loop li::after { display: none; }
}
@media (max-width: 760px) {
  .nav { padding: 8px 16px; }
  .logo img { height: 34px; }
  .products, .how-dlc { grid-template-columns: 1fr; }
  .discord-card { grid-template-columns: 1fr; gap: 18px; }
  .discord-icon { width: 64px; height: 64px; border-radius: 16px; }
  .hero { min-height: 0; padding-top: 52vw; background-size: 160% auto; background-position: 0 0; }
  .hero-bottom { padding: 0 16px 40px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .loop { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
