:root {
  --bg: #070909;
  --ink: #f3efe5;
  --muted: #a7aaa4;
  --panel: rgba(13, 17, 17, .88);
  --line: rgba(210, 181, 111, .24);
  --gold: #d7b36b;
  --green: #69d58d;
  --cyan: #76d5e8;
  --red: #bd4141;
  --shadow: 0 24px 80px rgba(0, 0, 0, .48);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Bahnschrift", "Agency FB", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(4,6,6,.60), #070909 72%),
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.18) 48%, rgba(0,0,0,.82)),
    url("/assets/tactical-background.png") center top / cover fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: .22;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 9, .82);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; min-width: 210px; }
.brand-logo { width: 240px; height: 64px; display: block; object-fit: contain; object-position: left center; filter: drop-shadow(0 10px 22px rgba(0,0,0,.72)); }
.site-nav { display: flex; gap: 22px; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.session-pill { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 12px; border: 1px solid var(--line); color: var(--muted); background: rgba(0,0,0,.28); }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid var(--line); color: var(--ink); background: rgba(14, 19, 19, .82); transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); border-color: rgba(215,179,107,.62); }
.btn.gold { border-color: rgba(215,179,107,.58); background: linear-gradient(180deg, #aa8842, #60461f); font-weight: 800; }
.btn.ghost { border-color: rgba(118,213,232,.28); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.danger-btn { border-color: rgba(189,65,65,.72); background: #682426; font-weight: 800; }
main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.page-section { scroll-margin-top: 96px; }
.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: end; gap: 34px; padding: 88px 0 58px; position: relative; overflow: hidden; }
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .72; }
.hero-copy, .home-panel { position: relative; z-index: 1; }
.hero-copy { max-width: 900px; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(48px, 7vw, 96px); line-height: .95; }
h2 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 54px); }
h3 { font-size: 24px; }
h4 { margin-bottom: 8px; font-size: 20px; }
.lead { max-width: 680px; color: #d1d0c9; font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.home-panel, .balance-card { padding: 24px; border: 1px solid rgba(215,179,107,.36); background: rgba(6,8,8,.70); box-shadow: var(--shadow); }
.home-panel p { color: var(--muted); line-height: 1.58; }
.section { margin-bottom: 34px; padding: 34px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head span { max-width: 540px; color: var(--muted); line-height: 1.5; }
.package-groups { display: grid; gap: 30px; }
.package-group { display: grid; gap: 16px; }
.group-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(215,179,107,.16); padding-bottom: 12px; }
.group-head span { color: var(--muted); }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.package-card { min-height: 486px; display: grid; align-content: start; gap: 13px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(21,27,27,.96), rgba(8,11,11,.96)); }
.package-card.owned { border-color: rgba(105,213,141,.58); }
.package-art { height: 178px; overflow: hidden; background: #050606; border-bottom: 1px solid var(--line); }
.package-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-meta, .package-card h4, .package-card p, .package-card ul, .package-card button { margin-left: 18px; margin-right: 18px; }
.card-meta { display: flex; justify-content: space-between; color: var(--muted); }
.card-meta strong { color: var(--green); }
.package-card p, .package-card li { color: var(--muted); line-height: 1.45; }
.package-card ul { display: grid; gap: 7px; padding-left: 18px; }
.package-card button { align-self: end; margin-bottom: 18px; }
.profile-summary { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 18px; margin-bottom: 22px; }
.balance-card span { display: block; color: var(--muted); }
.balance-card strong { display: block; margin: 8px 0; color: var(--gold); font-size: 40px; }
.balance-card small { color: var(--muted); line-height: 1.5; }
.quick-actions { display: flex; align-items: stretch; justify-content: flex-end; gap: 12px; }
.quick-actions .btn { min-width: 190px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; }
.active-package { min-height: 360px; display: grid; grid-template-columns: 48% 1fr; border: 1px solid rgba(215,179,107,.36); background: rgba(0,0,0,.28); overflow: hidden; }
.active-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.active-copy { display: grid; align-content: center; padding: 30px; }
.active-copy h3 { color: var(--gold); font-size: 38px; }
.active-copy p { color: var(--muted); line-height: 1.55; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stat-row span { padding: 9px 12px; border: 1px solid var(--line); background: rgba(0,0,0,.30); color: var(--green); font-weight: 800; }
.profile-tools { display: grid; gap: 14px; }
.panel { padding: 20px; border: 1px solid var(--line); background: rgba(9,12,12,.74); }
.panel p { color: var(--muted); line-height: 1.5; }
.panel label, .auth-form label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
input { min-height: 42px; width: 100%; padding: 0 12px; border: 1px solid var(--line); outline: none; color: var(--ink); background: rgba(0,0,0,.42); }
input:focus { border-color: var(--cyan); }
.panel .btn, .auth-form .btn { width: 100%; margin-top: 12px; }
.panel.danger { border-color: rgba(189,65,65,.44); }
.download-section { padding: 0; overflow: hidden; }
.download-hero { min-height: 420px; display: grid; grid-template-columns: minmax(0, 1fr) 42%; position: relative; background: linear-gradient(110deg, rgba(6,8,8,.98), rgba(16,22,22,.78)), url("/assets/tactical-background.png") center / cover; }
#downloadParticles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.download-copy { position: relative; z-index: 1; display: grid; align-content: center; gap: 12px; padding: 42px; }
.download-copy p { max-width: 620px; color: var(--muted); line-height: 1.6; }
.download-copy .btn { width: max-content; }
.download-art { position: relative; overflow: hidden; min-height: 360px; }
.download-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,8,.84), transparent 40%), linear-gradient(180deg, transparent 58%, rgba(0,0,0,.42)); }
.download-art img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.history { display: grid; gap: 10px; }
.history-item { display: flex; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.26); }
.history-item span { color: var(--muted); }
.modal-layer { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.68); backdrop-filter: blur(10px); }
.modal { width: min(620px, 100%); position: relative; padding: 26px; border: 1px solid var(--line); background: #0b1010; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid rgba(189,65,65,.55); color: var(--ink); background: #662326; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.04); }
.tab.is-active { border-color: var(--cyan); box-shadow: inset 0 -3px 0 var(--gold); }
.auth-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.auth-form .btn { margin-top: 0; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; max-width: min(460px, calc(100vw - 44px)); padding: 14px 16px; border: 1px solid var(--cyan); background: #0e1515; opacity: 0; transform: translateY(18px); pointer-events: none; transition: .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.cookie-link { min-height: 36px; padding: 0 12px; color: var(--muted); }
.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 24px;
  background: rgba(0,0,0,.56);
  backdrop-filter: blur(8px);
}
.cookie-panel {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(215,179,107,.42);
  background: linear-gradient(180deg, rgba(12,17,17,.98), rgba(5,8,8,.98));
  box-shadow: var(--shadow);
}
.cookie-copy h2 { margin-bottom: 10px; color: var(--gold); font-size: clamp(28px, 4vw, 46px); }
.cookie-copy p { margin: 0; color: #d1d0c9; line-height: 1.62; }
.cookie-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(210,181,111,.22);
  background: rgba(0,0,0,.28);
  color: var(--ink);
}
.cookie-option input { width: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.cookie-option strong { display: block; margin-bottom: 4px; }
.cookie-option small { display: block; color: var(--muted); line-height: 1.45; }
.cookie-option.locked { opacity: .72; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: end;
  gap: 10px;
}
body.no-particles #sparkCanvas,
body.no-particles #particleCanvas,
body.no-particles #downloadParticles,
body.no-particles #logoSmokeCanvas,
body.no-particles #logoMicroSparkCanvas {
  display: none !important;
}
body.no-media .brand-logo,
body.no-media .hero-logo,
body.no-media .slide,
body.no-media .package-art img,
body.no-media .active-art img,
body.no-media .download-art img {
  visibility: hidden;
}
body.no-media .logo-stage,
body.no-media .package-art,
body.no-media .active-art,
body.no-media .download-art,
body.no-media .slideshow-window {
  background:
    radial-gradient(circle at 50% 38%, rgba(118,213,232,.18), transparent 34%),
    linear-gradient(135deg, rgba(215,179,107,.16), rgba(0,0,0,.82));
}
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr; padding: 16px; }
  .site-nav, .header-actions, .hero-actions, .quick-actions, .section-head, .group-head { flex-wrap: wrap; }
  main { width: min(100% - 28px, 1440px); }
  .hero, .profile-layout, .active-package, .profile-summary, .download-hero { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 52px; }
  .package-grid, .auth-form, .news-list { grid-template-columns: 1fr; }
  .section { padding: 22px; }
  .download-copy { padding: 28px; }
  .download-copy .btn { width: 100%; }
  .quick-actions .btn { min-width: 0; flex: 1; }
  .cookie-panel, .cookie-options { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}

.news-panel {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(215,179,107,.30);
  background: rgba(6,8,8,.74);
  box-shadow: var(--shadow);
}
.news-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
}
.news-head span {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.5;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.news-card {
  min-height: 176px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(210,181,111,.22);
  background: linear-gradient(180deg, rgba(20,26,26,.92), rgba(7,10,10,.92));
}
.news-card.pinned {
  border-color: rgba(118,213,232,.45);
  box-shadow: inset 0 3px 0 var(--cyan);
}
.news-card.loading {
  color: var(--muted);
}
.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.news-meta span {
  color: var(--cyan);
  font-weight: 800;
}
.news-card h3 {
  margin: 0;
  font-size: 21px;
  color: var(--gold);
}
.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.logo-stage {
  position: relative;
  width: min(780px, 94vw);
  aspect-ratio: 1672 / 941;
  margin: -30px auto 8px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
#logoSmokeCanvas,
#logoMicroSparkCanvas {
  position: absolute;
  inset: -10% -8%;
  width: 116%;
  height: 120%;
  pointer-events: none;
}
#logoSmokeCanvas {
  z-index: 0;
  opacity: .72;
  mix-blend-mode: screen;
  filter: blur(.2px);
}
#logoMicroSparkCanvas {
  z-index: 2;
  opacity: .88;
  mix-blend-mode: screen;
}
.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,.72));
}.slideshow-panel {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  margin-top: 26px;
}
.slideshow-window {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215,179,107,.36);
  background: #050707;
  box-shadow: var(--shadow);
}
.slideshow-window::after {
  content: "";
  z-index: 1;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.06) 52%, rgba(0,0,0,.36)),
    linear-gradient(180deg, transparent 68%, rgba(0,0,0,.32));
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.18) contrast(1.12) saturate(1.08);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 6s ease;
  z-index: 0;
}
.slide.is-active {
  opacity: 1;
  transform: scale(1.10);
}
.slide-glass {
  position: absolute;
  z-index: 3;
  left: 34px;
  bottom: 34px;
  width: min(560px, calc(100% - 68px));
  padding: 22px;
  border: 1px solid rgba(215,179,107,.30);
  background: rgba(5,8,8,.62);
  backdrop-filter: blur(8px);
}
.slide-glass h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--gold);
  text-transform: uppercase;
}
.slide-glass span {
  color: #d4d2c7;
  line-height: 1.5;
}
.slide-dots {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}
.slide-dots button {
  width: 38px;
  height: 5px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.28);
}
.slide-dots button.is-active {
  background: var(--gold);
  box-shadow: 0 0 18px rgba(215,179,107,.58);
}


#sparkCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .88;
}
.slideshow-window .slide {
  object-fit: cover;
  filter: brightness(1.18) contrast(1.12) saturate(1.08);
  object-position: center center;
}












