@font-face { font-family: "Bebas Neue"; src: url("assets/fonts/BebasNeue-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/ChakraPetch-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/ChakraPetch-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0b0716;
  --night: #140c26;
  --panel: #1c1233;
  --line: #3a2a5e;
  --text: #ece7f7;
  --soft: #b3a8cf;
  --magenta: #ff2fd0;
  --cyan: #2fe6ff;
  --gold: #ffd23f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 18px/1.6 "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
strong { font-weight: 600; color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--gold); color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }
.fine { color: var(--soft); font-size: 15px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px max(20px, calc((100% - 1120px) / 2));
  background: rgba(11, 7, 22, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar-name { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 26px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .04em; }
.bar-name img { width: 32px; height: 32px; border-radius: 7px; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--soft); text-decoration: none; font-size: 16px; font-weight: 600; }
.bar nav a:hover { color: #fff; }

/* Buttons: the slanted slab from the game's END TURN button */
.btn {
  display: inline-block;
  padding: 13px 30px 11px;
  background: var(--magenta);
  color: #14041a;
  font: 26px/1 "Bebas Neue", Impact, sans-serif;
  letter-spacing: .05em;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform .12s, background .12s;
}
.btn:hover { background: #ff6ade; transform: translateY(-2px); }
.btn-ghost { background: var(--panel); color: #fff; box-shadow: inset 0 0 0 2px var(--cyan); clip-path: none; }
.btn-ghost:hover { background: #2a1c4d; }
.btn-small { font-size: 20px; padding: 9px 20px 7px; }

/* Hero */
.hero { position: relative; background: var(--ink); }
.hero-art img { width: 100%; max-height: 62vh; object-fit: cover; object-position: 60% 20%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,7,22,0) 35%, rgba(11,7,22,.75) 62%, var(--ink) 80%);
  pointer-events: none;
}
.hero-art { display: block; position: relative; }
.hero-body {
  position: relative; z-index: 1;
  margin-top: clamp(-230px, -17vw, -90px);
  padding: 0 20px 56px;
  text-align: center;
}
.hero h1 { margin: 0 auto; width: min(620px, 88vw); }
.tag {
  display: inline-block; margin: 0 0 6px;
  padding: 5px 14px 3px;
  background: var(--gold); color: #14041a;
  font: 20px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .08em;
  transform: rotate(-2deg);
}
.pitch { max-width: 34em; margin: 14px auto 26px; font-size: 21px; line-height: 1.45; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero .fine { margin: 20px 0 0; }

/* Section titles */
.head {
  margin: 0 0 28px;
  font: clamp(40px, 6vw, 64px)/.95 "Bebas Neue", Impact, sans-serif;
  letter-spacing: .02em; text-align: center; color: #fff;
  text-shadow: 3px 3px 0 #000, 0 0 22px rgba(255, 47, 208, .55);
}
.head em { font-style: normal; color: var(--cyan); }

section.wrap, .alpha { padding-block: 56px; }
.frame {
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px #000, 0 18px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 47, 208, .12);
}
.frame video, .frame img { width: 100%; }
.trailer .fine { text-align: center; margin-top: 14px; }

/* Feature sections: a banner, then words beside moving pictures */
.feature { padding-block: 36px; }
.banner { width: 100%; margin-bottom: 26px; }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: center; }
.flip .copy { order: 2; }
.flip .split { grid-template-columns: 6fr 5fr; }
.lead { font-size: 22px; line-height: 1.45; color: #fff; }
.lead.center { max-width: 36em; margin-bottom: 36px; }
.copy p { margin: 0 0 16px; }
.copy ul { list-style: none; margin: 0; padding: 0; }
.copy li { position: relative; padding-left: 30px; margin-bottom: 16px; }
.copy li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 16px; height: 10px; background: var(--magenta);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

/* Screenshots */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.shots li:nth-child(-n+2) { grid-column: span 2; }
.shots a { display: block; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .12s, transform .12s; }
.shots a:hover { border-color: var(--cyan); transform: translateY(-2px); }
.shots img { width: 100%; }

/* Alpha */
.alpha { background: var(--night) url("assets/img/city.jpg") center / cover; border-block: 1px solid var(--line); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cards li { display: flex; flex-direction: column; align-items: flex-start; background: rgba(20, 12, 38, .92); border: 2px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; padding: 24px; }
.cards h3 { margin: 0 0 8px; font: 34px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .03em; color: #fff; }
.cards p { margin: 0 0 22px; color: var(--soft); flex: 1; }

/* Footer */
.foot { padding: 44px 0 56px; text-align: center; color: var(--soft); font-size: 15px; }
.foot img { width: 220px; margin: 0 auto 20px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 20px; }
.foot nav a { color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; }
.foot nav a:hover { color: var(--cyan); }
.foot p { margin: 6px 0; }
.foot p a { color: var(--soft); }

/* Screenshot viewer */
.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.viewer::backdrop { background: rgba(5, 3, 12, .92); }
.viewer img { max-width: 96vw; max-height: 90vh; border: 2px solid var(--line); border-radius: 8px; }
.viewer button { position: fixed; background: var(--panel); color: #fff; border: 2px solid var(--cyan); border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.viewer button:hover { background: #2a1c4d; }
.v-close { top: 16px; right: 16px; }
.v-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.v-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .bar nav { display: none; }
  .bar .btn-small { margin-left: auto; }
  .split, .flip .split { grid-template-columns: 1fr; gap: 22px; }
  .flip .copy { order: 0; }
  .hero-art img { max-height: 46vh; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots li:nth-child(-n+2) { grid-column: span 2; }
  section.wrap, .alpha { padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shots a { transition: none; }
}
