/* Card Slay promotional site. Palette mirrors the game: near-black ground
   (#0b0d12 also matches the matte baked into the animated header mp4s),
   ember/gold accents, Press Start 2P display face. */

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/media/art/press-start-2p-latin-400.woff2') format('woff2');
}

:root {
  --bg: #0b0d12;
  --bg-deep: #07070a;
  --panel: #12141b;
  --panel-2: #171a23;
  --ink: #e8e2d2;
  --muted: #a89f8c;
  --gold: #f2b152;
  --gold-bright: #f8c670;
  --ember: #ea580c;
  --red: #d94c30;
  --cyan: #67e8f9;
  --line: rgba(178, 108, 45, 0.28);
  --line-soft: rgba(178, 108, 45, 0.16);
  --pixel: 'Press Start 2P', 'PingFang SC', 'Microsoft YaHei', monospace;
  --body: ui-sans-serif, system-ui, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }

.container { width: min(1060px, 92vw); margin: 0 auto; }
.narrow { width: min(760px, 92vw); margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 10, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.brand {
  flex: none;
  font-family: var(--pixel);
  font-size: 15px;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(234, 88, 12, 0.5), 0 2px 0 rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}
.brand:hover { color: var(--gold-bright); }

.site-nav { display: flex; gap: 22px; margin-left: 8px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.02em;
  opacity: 0.85;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { opacity: 1; color: var(--gold-bright); border-bottom-color: var(--ember); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* language menu */
.lang-menu { position: relative; }
.lang-menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { color: var(--ink); border-color: var(--line); }
.lang-menu .globe { width: 15px; height: 15px; fill: currentColor; }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 170px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
.lang-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
}
.lang-menu li a:hover { background: var(--panel-2); color: var(--gold-bright); }
.lang-menu li a[aria-current='true'] { color: var(--gold); background: rgba(242, 177, 82, 0.08); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #1a0d05;
  background: linear-gradient(180deg, var(--gold-bright), var(--ember) 130%);
  border-color: rgba(255, 231, 168, 0.5);
  box-shadow: 0 0 22px rgba(234, 88, 12, 0.35), inset 0 1px 0 rgba(255, 239, 194, 0.6);
}
.btn-primary:hover {
  color: #1a0d05;
  filter: brightness(1.07);
  box-shadow: 0 0 30px rgba(234, 88, 12, 0.55), inset 0 1px 0 rgba(255, 239, 194, 0.6);
}

.btn-ghost {
  color: var(--gold);
  background: rgba(11, 13, 18, 0.55);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--gold-bright); border-color: var(--gold); }

.btn-small { font-size: 11px; padding: 10px 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 10%, transparent 40%, rgba(7, 7, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.35), rgba(7, 7, 10, 0.1) 35%, rgba(11, 13, 18, 0.94) 88%, var(--bg));
}
.hero-content {
  position: relative;
  width: min(860px, 92vw);
  margin: 0 auto;
  text-align: center;
  padding: 24vh 0 72px;
}
.hero-wordmark { width: min(560px, 82vw); margin: 0 auto 26px; }
.hero h1 {
  font-family: var(--pixel);
  font-size: clamp(15px, 2.5vw, 22px);
  line-height: 1.75;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(234, 88, 12, 0.45), 0 2px 0 rgba(0, 0, 0, 0.8);
  margin: 0 0 18px;
}
.hero .sub {
  color: var(--ink);
  opacity: 0.92;
  font-size: clamp(15px, 1.8vw, 18px);
  max-width: 640px;
  margin: 0 auto 34px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .platforms {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.section-title {
  font-family: var(--pixel);
  font-size: clamp(16px, 2.4vw, 24px);
  line-height: 1.7;
  color: var(--gold);
  text-align: center;
  margin: 0 0 40px;
  text-shadow: 0 0 18px rgba(234, 88, 12, 0.35);
}

/* animated store header banners */
.banner { margin: 64px auto 8px; width: min(720px, 92vw); }
.banner video { width: 100%; }
.banner:first-child { margin-top: 0; }

/* statements (the bold intro / closing lines from the store copy) */
.statement {
  font-family: var(--pixel);
  font-size: clamp(14px, 2vw, 19px);
  line-height: 2;
  text-align: center;
  color: var(--gold-bright);
  width: min(820px, 92vw);
  margin: 0 auto;
  text-shadow: 0 0 20px rgba(234, 88, 12, 0.35);
}

.about p {
  width: min(760px, 92vw);
  margin: 26px auto;
  color: var(--ink);
}
.about p strong, .about li strong { color: var(--gold-bright); font-weight: 600; }

.loop-frame {
  width: min(900px, 92vw);
  margin: 34px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(234, 88, 12, 0.07);
}
.loop-frame.square { width: min(620px, 92vw); }
.loop-frame video { width: 100%; }

.about ul {
  width: min(760px, 92vw);
  margin: 26px auto;
  padding: 22px 26px;
  list-style: none;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.about ul li {
  padding: 7px 0 7px 28px;
  position: relative;
  color: var(--ink);
}
.about ul li::before {
  content: '\2666'; /* diamond suit */
  position: absolute;
  left: 2px;
  color: var(--red);
  text-shadow: 0 0 8px rgba(217, 76, 48, 0.5);
}
.about ul li:nth-child(2n)::before { content: '\2660'; color: var(--cyan); text-shadow: 0 0 8px rgba(103, 232, 249, 0.4); }

.about h2 {
  font-family: var(--pixel);
  font-size: clamp(15px, 2.2vw, 22px);
  color: var(--gold);
  text-align: center;
  margin: 70px auto 10px;
  text-shadow: 0 0 18px rgba(234, 88, 12, 0.35);
}

/* ---------- trailer ---------- */

.trailer-frame {
  width: min(960px, 92vw);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 60px rgba(234, 88, 12, 0.1);
}
.trailer-frame video { width: 100%; aspect-ratio: 16 / 9; }

/* ---------- screenshots ---------- */

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4vw 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ember) var(--bg-deep);
}
.shots::-webkit-scrollbar { height: 10px; }
.shots::-webkit-scrollbar-track { background: var(--bg-deep); }
.shots::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--gold), var(--ember)); border-radius: 5px; }
.shots button {
  flex: 0 0 min(560px, 78vw);
  scroll-snap-align: center;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-deep);
  cursor: zoom-in;
  transition: border-color 120ms ease, transform 160ms ease;
}
.shots button:hover { border-color: var(--gold); transform: translateY(-3px); }
.shots img { width: 100%; }

dialog.lightbox {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--bg-deep);
  max-width: min(1500px, 94vw);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}
dialog.lightbox::backdrop { background: rgba(4, 4, 6, 0.85); }
dialog.lightbox img { width: 100%; cursor: zoom-out; }

/* ---------- final CTA ---------- */

.cta {
  text-align: center;
  padding: 88px 0 96px;
  background:
    radial-gradient(70% 120% at 50% 100%, rgba(234, 88, 12, 0.13), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
}
.cta .section-title { margin-bottom: 28px; }
.cta .platforms { margin-top: 24px; color: var(--muted); font-size: 13.5px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 48px 0 40px;
  font-size: 14.5px;
  color: var(--muted);
}
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
  margin-bottom: 36px;
}
.site-footer h3 {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--gold);
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .fineprint {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
}

/* ---------- legal pages ---------- */

.legal { padding: 64px 0 80px; }
.legal h1 {
  font-family: var(--pixel);
  font-size: clamp(17px, 2.6vw, 26px);
  line-height: 1.7;
  color: var(--gold);
  margin: 0 0 34px;
}
.legal h2 {
  font-family: var(--pixel);
  font-size: 14px;
  line-height: 1.8;
  color: var(--gold-bright);
  margin: 44px 0 12px;
}
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 8px 0; }

/* ---------- press kit ---------- */

.press .dim { color: var(--muted); font-size: 15px; }

.legal-notice {
  color: var(--muted);
  font-size: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--bg-deep);
  padding: 10px 14px;
  margin-bottom: 28px;
}

.download-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 10px; }

.fact-table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.fact-table th, .fact-table td {
  text-align: left;
  vertical-align: top;
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15.5px;
}
.fact-table th { color: var(--gold); font-weight: 600; white-space: nowrap; width: 1%; padding-right: 28px; }
.fact-table td { color: var(--ink); }

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.asset-cell {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
}
.asset-cell:hover { border-color: var(--line); }
.asset-preview {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 50% 40%, rgba(234, 88, 12, 0.06), transparent 70%),
    var(--bg-deep);
}
.asset-preview img, .asset-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
a.asset-preview:hover img { filter: brightness(1.08); }
.asset-cell figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--ink);
}
.asset-cell figcaption em { color: var(--muted); font-style: normal; margin-left: 6px; }
.asset-cell .btn-group { display: flex; gap: 8px; flex: none; }

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-family: var(--pixel);
  font-size: 9.5px;
  line-height: 1;
  color: var(--gold);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(242, 177, 82, 0.06);
  white-space: nowrap;
  transition: transform 100ms ease, filter 100ms ease;
}
.btn-dl:hover {
  color: #1a0d05;
  background: linear-gradient(180deg, var(--gold-bright), var(--ember) 140%);
  border-color: rgba(255, 231, 168, 0.5);
}
.btn-dl:active { transform: translateY(1px); }

.lang-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.lang-switch button {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--muted);
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 9px 12px;
  cursor: pointer;
}
.lang-switch button:hover { color: var(--gold-bright); border-color: var(--line); }
.lang-switch button.active {
  color: #1a0d05;
  background: linear-gradient(180deg, var(--gold-bright), var(--ember) 140%);
  border-color: rgba(255, 231, 168, 0.5);
}

.trailer-list { list-style: none; padding: 0; margin: 18px 0; max-width: 460px; }
.trailer-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .site-nav { display: none; }
  .brand img { height: 36px; }
  .hero-content { padding-top: 18vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
