/* Matquest forside. Afdæmpet fantasy: 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 { height: 100%; 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 55% 50% at 50% 28%, rgba(198, 164, 90, 0.06) 0%, transparent 58%),
    linear-gradient(180deg, #0E0D11 0%, #0A090C 55%, #08070A 100%);
}
.atmosphere .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.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;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  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); }

.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);
}

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

.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 16px var(--gutter) 24px;
}
.hero-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0 28px;
}
.hero-brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(920px, 100%);
  height: 78%;
  background: radial-gradient(ellipse 58% 55% at 50% 48%,
    rgba(212, 180, 106, 0.10) 0%,
    rgba(120, 70, 36, 0.04) 38%,
    transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-logo {
  position: relative;
  z-index: 1;
  width: min(840px, 78vh, 100%);
  height: auto;
}
.hero-tagline { position: relative; z-index: 1; }
.hero-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--muted);
  text-align: center;
  max-width: 28em;
  margin: 12px 0 0;
  line-height: 1.45;
}
.how {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spil-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2.35 / 1;
  min-height: 300px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.spil-card-media,
.spil-card-media picture,
.spil-card-media img,
.spil-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.spil-card-media img {
  object-fit: cover;
  object-position: center 44%;
  max-width: none;
  transform: scale(1.28);
  transform-origin: center 42%;
}
.spil-card-shade {
  background:
    linear-gradient(180deg, rgba(8, 7, 10, 0.42) 0%, transparent 24%, transparent 55%, rgba(8, 7, 10, 0.72) 100%),
    linear-gradient(105deg, rgba(8, 7, 10, 0.94) 0%, rgba(8, 7, 10, 0.84) 32%, rgba(8, 7, 10, 0.40) 55%, rgba(8, 7, 10, 0.18) 100%);
  pointer-events: none;
}
.spil-card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding: 36px 44px;
  max-width: 28em;
}
.spil-card-kicker {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.spil-card h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text);
  line-height: 1.15;
  text-shadow: var(--heading-glow);
}
.spil-card p {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 8px 0 22px;
  max-width: 22em;
}
.btn-cta {
  background: var(--gold);
  color: #1A140C;
  border-color: transparent;
  font-size: 16px;
  font-weight: 800;
  padding: 10px 22px;
  min-height: 44px;
}
.spil-card:hover { border-color: var(--gold-hover); box-shadow: var(--card-glow); }
.spil-card:hover .btn-cta { background: var(--gold-hover); }
.spil-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.how-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin: 0;
}
.how-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 0;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--gold-line-strong);
  border-radius: 14px;
  padding: 18px 18px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.how-item:hover { border-color: var(--gold-line-strong); }
.how-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.how-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid var(--gold-line-strong);
  border-radius: 10px;
}
.how-icon svg { width: 20px; height: 20px; display: block; }
.how-body { flex: 1; min-width: 0; width: 100%; }
.how-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.how-item h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text);
  line-height: 1.25;
  text-shadow: var(--heading-glow);
}
.how-item p { color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.4; margin-top: 6px; }
.how-item p strong { color: var(--text); font-weight: 700; }
.how-title-row .pill { margin-left: auto; flex-shrink: 0; }

.foot {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px var(--gutter) 32px;
  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; }

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

/* Markering: ikke i brug endnu — dimmet, uden kryds */
.ikke-i-brug { cursor: not-allowed; opacity: .80; }
.how-item.ikke-i-brug:hover { border-color: var(--gold-line-strong); box-shadow: none; }

@media (max-width: 1279px) {
  :root { --gutter: 28px; }
  .top {
    padding-top: 16px;
  }
  .btn-ghost {
    min-height: 44px;
    padding: 10px 16px;
  }
  .hero { padding: 4px var(--gutter) 24px; }
  .hero-brand { padding: 8px 0 22px; }
  .hero-logo { width: min(720px, 100%); }
  .pill { white-space: nowrap; }
  .spil-card {
    aspect-ratio: 2.1 / 1;
    min-height: 260px;
  }
  .spil-card-copy { padding: 28px 28px; }
  .spil-card h2 { font-size: 32px; }
  .foot { padding: 18px var(--gutter) 28px; }
}

@media (max-width: 899px) {
  .how-list { grid-template-columns: 1fr; }
  .how-item { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; }
  .how-icon { flex: 0 0 44px; width: 44px; height: 44px; }
  .how-icon svg { width: 22px; height: 22px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .logo-img { height: 54px; }
  .hero-logo { width: min(450px, 100%); }
  .hero-brand { padding: 2px 0 16px; }
  .hero-tagline { font-size: 15px; margin-top: 10px; }
  .how { gap: 14px; }
  .how-list { grid-template-columns: 1fr; }
  .spil-card {
    aspect-ratio: 16 / 13;
    min-height: 280px;
  }
  .spil-card-media img {
    object-position: center 58%;
    transform-origin: center 58%;
    transform: scale(1.4);
  }
  .spil-card-shade {
    background:
      linear-gradient(180deg, rgba(8, 7, 10, 0.45) 0%, rgba(8, 7, 10, 0.15) 26%, rgba(8, 7, 10, 0.50) 52%, rgba(8, 7, 10, 0.94) 100%);
  }
  .spil-card-copy {
    justify-content: flex-end;
    padding: 20px 20px 22px;
    max-width: none;
  }
  .spil-card h2 { font-size: 28px; }
  .spil-card p { font-size: 16px; margin: 6px 0 16px; }
  .how-item { flex-direction: row; align-items: center; gap: 14px; padding: 14px 14px; min-height: 88px; }
  .how-icon { flex: 0 0 52px; width: 52px; height: 52px; }
  .how-icon svg { width: 26px; height: 26px; }
  .how-title-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 8px;
  }
  .how-title-row .pill { margin-left: 0; white-space: nowrap; }
  .how-item h2 { font-size: 18px; }
  .how-item p { font-size: 14px; margin-top: 4px; }
  .foot { padding: 16px var(--gutter) 24px; }
}

/* Desktop: everything in one viewport (header, logo, cards, footer). Mobile may scroll. */
@media (min-width: 900px) {
  .page {
    height: 100vh;
    min-height: 100vh;
  }
  .top {
    flex: 0 0 auto;
    padding-top: clamp(6px, 1.4vh, 16px);
  }
  .logo-img { height: clamp(42px, 5.8vh, 60px); }
  .hero {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: center;
    padding: clamp(4px, 1vh, 14px) var(--gutter) clamp(6px, 1.2vh, 16px);
  }
  .hero-brand { padding: 0 0 clamp(6px, 1.5vh, 16px); }
  .hero-logo {
    width: clamp(360px, 60vh, 700px);
  }
  .hero-tagline {
    font-size: clamp(14px, 1.7vh, 17px);
    margin-top: clamp(6px, 1vh, 12px);
  }
  .how { gap: clamp(8px, 1.4vh, 16px); }
  .spil-card {
    aspect-ratio: auto;
    height: clamp(150px, 24vh, 260px);
    min-height: 0;
  }
  .spil-card-copy {
    padding: clamp(14px, 2.4vh, 36px) clamp(20px, 3vw, 44px);
  }
  .spil-card h2 { font-size: clamp(22px, 3.2vh, 36px); }
  .spil-card p {
    font-size: clamp(14px, 1.8vh, 18px);
    margin: clamp(4px, 0.7vh, 8px) 0 clamp(10px, 1.8vh, 22px);
  }
  .how-item {
    padding: clamp(10px, 1.5vh, 18px) clamp(12px, 1.4vw, 18px);
  }
  .how-item h2 { font-size: clamp(15px, 1.7vh, 18px); }
  .how-item p { font-size: clamp(12px, 1.35vh, 14px); }
  .how-icon {
    flex-basis: clamp(32px, 3.8vh, 40px);
    width: clamp(32px, 3.8vh, 40px);
    height: clamp(32px, 3.8vh, 40px);
  }
  .how-icon svg {
    width: clamp(16px, 1.9vh, 20px);
    height: clamp(16px, 1.9vh, 20px);
  }
  .foot {
    flex: 0 0 auto;
    padding: clamp(8px, 1.3vh, 16px) var(--gutter) clamp(10px, 2vh, 24px);
  }
  .foot-brand { font-size: clamp(18px, 2.2vh, 24px); }
}
