/* MAGGA — collection landing. Visual identity: Plazir-15 Fan Codex (domed utopia / directed abundance). */
/* Signature typeface: JetBrains Mono NL Nerd Font Mono */
@font-face {
  font-family: "JetBrainsMonoNL Nerd Font Mono";
  src: url("assets/fonts/JetBrainsMonoNLNerdFontMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrainsMonoNL Nerd Font Mono";
  src: url("assets/fonts/JetBrainsMonoNLNerdFontMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrainsMonoNL Nerd Font Mono";
  src: url("assets/fonts/JetBrainsMonoNLNerdFontMono-Bold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070d10;
  --bg-deep: #05090b;
  --surface: #0f191e;
  --surface-2: #152228;
  --ink: #e8f0f2;
  --muted: #9aafb6;
  --faint: #6d838c;
  --chrome: #c5d5dc;
  --chrome-bright: #eaf3f6;
  --leaf: #6baa88;
  --leaf-glow: color-mix(in oklab, #6baa88 28%, transparent);
  --teal: #5aa8a0;
  --border: color-mix(in oklab, #e8f0f2 12%, transparent);
  --border-strong: color-mix(in oklab, #e8f0f2 22%, transparent);
  --focus: #9ee0d4;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 20px 50px color-mix(in oklab, #000 40%, transparent);
  --font: "JetBrainsMonoNL Nerd Font Mono", "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 110% 70% at 50% -15%, color-mix(in oklab, var(--teal) 14%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, color-mix(in oklab, #3f6f58 12%, transparent), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, #0a1418 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: color-mix(in oklab, var(--leaf) 40%, transparent);
  color: var(--ink);
}

.site-header, main { max-width: 1360px; margin: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 88px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
}
.brand svg { flex: none; border-radius: 8px; }

.header-note, .eyebrow, .collection-line, .availability, .features, .game-list > p, .preview figcaption, .preview-number {
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .12em;
}

.header-note { color: var(--faint); }

.header-link {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
  padding: 13px 0;
  color: var(--muted);
  transition: color .15s var(--ease);
}
.header-link:hover { color: var(--ink); }
.header-link span { margin-left: 12px; color: var(--leaf); }

main { padding: 0 42px; }

/* Intro */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 48px;
  padding: 70px 0 66px;
}

.eyebrow {
  color: var(--leaf);
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 24px;
}

h1 {
  position: relative;
  margin: 0;
  font-weight: 600;
  font-size: clamp(3.25rem, 8vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.03em;
}
h1 em { color: var(--leaf); font-style: normal; }

.asterisk {
  display: inline-block;
  color: var(--leaf);
  font-size: .47em;
  vertical-align: top;
  margin: 6px 0 0 14px;
  letter-spacing: 0;
}

.intro-copy > p {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.intro-copy > span {
  display: block;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

/* Editions */
.collection-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--faint);
  text-transform: uppercase;
}
.collection-line h2 { font: inherit; margin: 0; color: var(--leaf); }

.edition-card {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  backdrop-filter: blur(12px);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.edition-card:hover {
  border-color: color-mix(in oklab, var(--leaf) 45%, transparent);
  transform: translateY(-3px);
  box-shadow: var(--shadow), 0 0 2rem var(--leaf-glow);
}

.preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1.3fr 1fr;
  gap: 4px;
  padding: 12px;
  background: var(--bg-deep);
  height: 480px;
  min-height: 0;
}
.preview figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-width: 0;
  min-height: 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.preview-main { grid-column: 1 / -1; }
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.preview-main img { object-position: 50% 37%; }
.preview-small img { object-position: center; }
.edition-card:hover .preview img { transform: scale(1.025); }
.preview figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 12px 10px;
  background: linear-gradient(transparent, color-mix(in oklab, var(--bg-deep) 92%, transparent));
  font-size: 9px;
  color: var(--chrome);
  letter-spacing: .1em;
}
.preview-number {
  position: absolute;
  left: 24px;
  top: 24px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.edition-body {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.availability {
  margin: 0 0 13px;
  color: var(--leaf);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.availability > span {
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  box-shadow: 0 0 0.8rem var(--leaf);
}

.edition-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.edition-heading h3 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.edition-arrow { font-size: 32px; color: var(--leaf); transition: transform .2s var(--ease); }
.edition-card:hover .edition-arrow { transform: translate(3px, -3px); }

#codex-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 18px 0;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 9px;
  letter-spacing: .08em;
}
.features li {
  padding: 6px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--leaf);
}

.game-list {
  width: 100%;
  margin: 22px 0 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.game-list > p { font-size: 9px; color: var(--faint); margin: 0 0 10px; }
.game-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 7px 16px;
  color: var(--chrome);
  font-size: 11px;
  line-height: 1.5;
}

/* Entry buttons — one consistent component across every edition card. */
.card-actions {
  display: flex;
  gap: 10px;
  align-self: stretch;
  margin-top: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn > span { font-size: 16px; line-height: 1; transition: transform .15s var(--ease); }
.btn:hover > span { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  flex: 1;
  background: linear-gradient(180deg, var(--chrome-bright), #cfe0e7);
  color: var(--bg);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffffff, var(--chrome-bright));
  box-shadow: 0 8px 22px color-mix(in oklab, #000 45%, transparent), 0 0 1.2rem var(--leaf-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  color: var(--leaf);
  border-color: color-mix(in oklab, var(--leaf) 55%, transparent);
  background: color-mix(in oklab, var(--leaf) 8%, transparent);
}

/* v2 teaser strip */
.v2-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  padding: 30px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 90% 120% at 110% 50%, color-mix(in oklab, var(--teal) 10%, transparent), transparent 60%),
    color-mix(in oklab, var(--surface) 78%, transparent);
}
.v2-teaser .eyebrow { margin-bottom: 14px; }
.v2-teaser h2 {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -.02em;
}
.v2-teaser p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 62ch;
}
.v2-link { flex: none; }

/* DLC shelf */
#dlc { margin-top: 56px; }
.dlc-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 68ch;
}
.dlc-card {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.dlc-card:hover {
  border-color: color-mix(in oklab, #e0a050 45%, transparent);
  box-shadow: var(--shadow);
}
.dlc-body { padding: 30px 34px; }
.dlc-body .edition-heading h3 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.dlc-x { color: var(--leaf); font-size: .6em; vertical-align: middle; margin: 0 .15em; }
.availability-soon { color: #e0a050; }
.availability-soon > span { background: #e0a050; box-shadow: 0 0 .8rem #e0a050; }
.dlc-desc {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.dlc-card .features li { color: #e0a050; }
.dlc-card.dlc-live { border-style: solid; border-color: var(--border); margin-bottom: 18px; }
.dlc-card.dlc-live:hover { border-color: color-mix(in oklab, var(--leaf) 45%, transparent); box-shadow: var(--shadow), 0 0 2rem var(--leaf-glow); }
.dlc-card.dlc-live .features li { color: var(--leaf); }
.dlc-actions { margin-top: 22px; flex-wrap: wrap; }

.collection-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 22px 0 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.7;
  color: var(--faint);
}
footer a { color: var(--muted); transition: color .15s var(--ease); }
footer a:hover { color: var(--leaf); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--chrome-bright);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 1060px) {
  .intro { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
  h1 { font-size: 4.25rem; }
  .asterisk { display: none; }
  .edition-body { padding: 28px; }
  .edition-heading h3 { font-size: 3rem; }
  .preview { grid-template-rows: 1fr 1fr; height: 500px; }
  .game-list ul { font-size: 10px; }
  .header-note { font-size: 9px; }
}

@media (max-width: 800px) {
  .site-header { padding: 0 24px; height: 76px; }
  .header-note { display: none; }
  main { padding: 0 24px; }
  .intro { display: block; padding: 46px 0 38px; }
  h1 { font-size: clamp(3rem, 10.5vw, 4.5rem); }
  .asterisk { display: inline-block; }
  .intro-copy { max-width: 490px; margin-top: 30px; }
  .intro-copy > p { font-size: 1.15rem; }
  .intro-copy > span { font-size: 12px; }
  .edition-card { grid-template-columns: 1fr; }
  .preview { min-height: 0; height: 380px; grid-template-rows: 1.2fr 1fr; }
  .edition-body { padding: 28px; }
  .edition-heading h3 { font-size: 3rem; }
  .game-list ul { font-size: 11px; }
  .game-list { margin-bottom: 24px; }
  .collection-line { font-size: 10px; }
  .collection-note { max-width: 450px; }
  .v2-teaser { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 40px; }
  .v2-link { align-self: stretch; }
  #dlc { margin-top: 40px; }
  footer { margin-top: 32px; }
}

@media (max-width: 420px) {
  .site-header { padding: 0 18px; height: 68px; }
  .brand { font-size: 13px; }
  .brand svg { width: 28px; height: 28px; }
  .header-link { font-size: 11px; }
  main { padding: 0 18px; }
  .intro { padding: 36px 0 30px; }
  .eyebrow { font-size: 9px; margin-bottom: 20px; }
  h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .asterisk { margin-left: 8px; font-size: .4em; }
  .intro-copy { margin-top: 25px; }
  .intro-copy > p { font-size: 1.05rem; }
  .collection-line { font-size: 8px; gap: 10px; letter-spacing: .07em; padding: 18px 0; }
  .preview { height: 292px; padding: 8px; gap: 3px; }
  .preview-number { left: 18px; top: 18px; font-size: 9px; }
  .preview figcaption { font-size: 8px; padding-left: 8px; }
  .edition-body { padding: 22px 20px; }
  .edition-heading h3 { font-size: 2.6rem; }
  .game-list ul { font-size: 10px; gap: 8px 10px; }
  .features { font-size: 8px; gap: 6px; }
  .features li { padding: 6px; }
  .btn { font-size: 10px; padding: 14px 12px; gap: 8px; }
  .card-actions { flex-direction: column; }
  .btn-primary { flex: none; }
  .v2-teaser { padding: 24px 20px; }
  .dlc-body { padding: 22px 20px; }
  .collection-note { font-size: 11px; }
  footer { flex-direction: column; gap: 10px; padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
