/* Matquest spilsider. Samme afdæmpede tråd som forsiden: næsten sort, diskrete guldlinjer, logo og hero bærer stilen. Desktop, bred container. */
:root {
  --void: #0A090C;
  --dust: #121116;
  --panel: #1A181F;
  --panel-hover: #24212B;
  --text: #F5F0E6;
  --muted: #D4CBB8;
  --gold: #D4B46A;
  --gold-hover: #E0C57A;
  --gold-line: rgba(212, 180, 106, 0.45);
  --gold-line-strong: rgba(212, 180, 106, 0.68);
  --heading-glow: 0 0 18px rgba(212, 180, 106, 0.30);
  --card-glow: 0 0 28px rgba(212, 180, 106, 0.18), inset 0 1px 0 rgba(240, 220, 160, 0.12);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", "Helvetica Neue", sans-serif;
  --content: 1600px;
  --gutter: 48px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 42% at 50% 26%, rgba(198, 164, 90, 0.07) 0%, transparent 58%),
    linear-gradient(180deg, #0E0D11 0%, #0A090C 55%, #08070A 100%);
}
.atmosphere-grain {
  position: absolute;
  inset: 0;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' seed='7' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  background-size: 256px 256px;
}
.atmosphere-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 95% 85% at 50% 36%, transparent 62%, rgba(6, 5, 8, 0.55) 100%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page > main { flex: 1 1 auto; }

.top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content);
  padding: 22px var(--gutter) 0;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 66px; width: auto; }
.top-right { display: flex; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--gold-line-strong);
  padding: 6px 16px 7px;
  font-size: 14px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-play {
  background: var(--gold);
  color: #1A140C;
  font-size: 20px;
  padding: 12px 32px 13px;
  min-width: 200px;
}
.btn-play:hover { background: var(--gold-hover); }
.btn-play:disabled {
  opacity: 0.80;
  cursor: not-allowed;
  background: var(--gold);
}

.stage { position: relative; width: 100%; height: 700px; margin: 0 auto; overflow: hidden; }
.stage-overview { height: 42vh; min-height: 320px; max-height: 480px; }
.stage-art { position: absolute; inset: 0; z-index: 0; }
.stage-art .scene { width: 100%; height: 100%; max-width: none; }
.stage-copy {
  position: absolute;
  z-index: 2;
  left: 50%; top: 50%; transform: translate(-50%, -46%); width: 760px; text-align: center;
}
.stage-copy-overview { width: 860px; transform: translate(-50%, -40%); }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  justify-content: center;
}
.pill {
  display: inline-flex; align-items: center;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px 4px;
  border-radius: 999px;
  border: 1px solid var(--gold-line-strong);
}
.stage-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  color: var(--text);
  text-shadow: var(--heading-glow);
}
.stage-copy-overview h1 { font-size: 64px; margin-bottom: 12px; }
.accent-word { display: block; color: var(--gold); }
.lead {
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  max-width: 24em;
  margin: 0 auto 28px;
  line-height: 1.45;
}
.stage-copy-overview .lead { margin-bottom: 0; max-width: 36em; }
.hero-actions { display: flex; justify-content: center; }
.hero-hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  min-height: 1.4em;
}

.games { width: 100%; max-width: var(--content); margin: 0 auto; padding: 8px var(--gutter) 72px; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 240px;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--gold-line-strong);
  border-radius: 12px;
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.game-card-featured::before {
  content: "";
  position: absolute;
  inset: auto -20% 40% -20%;
  height: 180px;
  background: radial-gradient(ellipse at 50% 0%, rgba(198, 164, 90, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
a.game-card:hover {
  border-color: var(--gold-hover);
  background: var(--panel-hover);
  box-shadow: var(--card-glow);
}
a.game-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.game-card .pill { margin-bottom: 18px; }
.game-card h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  color: var(--text);
  position: relative;
  text-shadow: var(--heading-glow);
}
.game-card p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: auto;
  position: relative;
}
.game-card.is-placeholder {
  opacity: 0.80;
  pointer-events: none;
  cursor: default;
  border-style: dashed;
}

.how { width: 100%; max-width: var(--content); margin: 0 auto; padding: 8px var(--gutter) 48px; }
.how-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-item {
  background: var(--panel);
  border: 1px solid var(--gold-line-strong);
  border-radius: 12px;
  padding: 28px 22px 24px;
}
.how-item h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  color: var(--text);
  text-shadow: var(--heading-glow);
}
.how-item p { color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.45; }

.back-link {
  width: 100%; max-width: var(--content);
  margin: 0 auto 28px;
  padding: 0 var(--gutter);
  font-size: 15px;
  font-weight: 600;
}
.back-link a { color: var(--muted); }
.back-link a:hover { color: var(--gold); }

.foot {
  width: 100%; max-width: var(--content); margin: 0 auto; padding: 22px var(--gutter) 48px;
  border-top: 1px solid var(--gold-line);
}
.foot-brand { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 0.02em; }
.foot-copy { margin-top: 2px; color: var(--muted); font-size: 15px; font-weight: 600; }


.about, .gallery-wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 8px var(--gutter) 48px;
}
.pitch {
  max-width: 42em;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 28px;
}
.facts-heading, .gallery-heading {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0 0 16px;
  text-shadow: var(--heading-glow);
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 1100px;
}
.facts li {
  background: var(--panel);
  border: 1px solid var(--gold-line-strong);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.facts strong {
  color: var(--text);
  font-weight: 800;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.gallery > li { min-width: 0; }
.gallery-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid var(--gold-line-strong);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  grid-column: span 2;
}
.gallery-item:hover {
  border-color: var(--gold-hover);
  background: var(--panel-hover);
  box-shadow: var(--card-glow);
}
.gallery-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gallery-item picture, .gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gallery-caption {
  display: block;
  padding: 10px 14px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.gallery > li:nth-child(4) { grid-column: 2 / span 2; }
.gallery > li:nth-child(5) { grid-column: 4 / span 2; }

body.lightbox-open { overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 8, 0.86);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1100px) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 12px 16px;
  width: min(1100px, 100%);
}
.lightbox-figure {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--gold-line-strong);
  border-radius: 12px;
  overflow: hidden;
}
.lightbox-image {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #0A090C;
}
.lightbox-caption {
  padding: 10px 16px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.lightbox-close {
  position: absolute;
  top: -8px;
  right: 52px;
  z-index: 2;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gold-line-strong);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
}
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lightbox-nav {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gold-line-strong);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }

@media (prefers-reduced-motion: reduce) {
  .btn, .game-card, .gallery-item { transition: none; }
}

/* Markering: ikke i brug endnu — dimmet, uden kryds */
.ikke-i-brug { cursor: not-allowed; opacity: .80; }

@media (max-width: 1279px) {
  :root { --gutter: 28px; }
  .top {
    position: relative;
    left: auto;
    transform: none;
    padding-top: 16px;
    width: 100%;
  }
  .btn-ghost {
    min-height: 44px;
    padding: 10px 16px;
  }
  .stage { height: 480px; }
  .stage-overview { height: 280px; min-height: 240px; max-height: none; }
  .stage-copy,
  .stage-copy-overview {
    width: auto;
    max-width: 36rem;
    padding: 0 24px;
  }
  .pill { white-space: nowrap; }
  .kicker { flex-wrap: wrap; }
  .stage-copy h1 { font-size: 56px; }
  .stage-copy-overview h1 { font-size: 52px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 180px; }
  .how-list { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery > li,
  .gallery > li:nth-child(4),
  .gallery > li:nth-child(5) { grid-column: auto; }
  .lightbox-dialog {
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
  }
  .lightbox-close { right: 48px; top: 0; }
  .back-link a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .logo-img { height: 54px; }
  .stage,
  .stage-overview {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .stage-copy,
  .stage-copy-overview {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 16px 20px 28px;
  }
  .kicker {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .stage-copy h1 { font-size: 42px; }
  .stage-copy-overview h1 { font-size: 40px; }
  .lead { font-size: 16px; }
  .btn-play {
    min-height: 44px;
    font-size: 17px;
    min-width: 200px;
    width: auto;
    white-space: nowrap;
  }
  .pitch { font-size: 16px; }
  .facts li { font-size: 15px; }
  .gallery {
    grid-template-columns: 1fr;
  }
  .lightbox {
    padding: 16px 12px;
  }
  .lightbox-dialog {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
  }
  .lightbox-figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .lightbox-next { grid-column: 2; grid-row: 2; justify-self: end; }
  .lightbox-close {
    position: static;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    min-height: 44px;
  }
  .lightbox-image { max-height: calc(100vh - 200px); }
}
