:root {
  color-scheme: dark;
  --bg: #29292b;
  --surface: #343437;
  --surface-raised: #3a3a3f;
  --surface-muted: #242426;
  --accent: #9cff4b;
  --accent-dark: #35412e;
  --text: #fffdf8;
  --muted: #c2c2c2;
  --line: #505055;
  --page: min(1180px, calc(100% - 48px));
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.site-header {
  width: var(--page);
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: .19em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  grid-template-columns: repeat(3, 6px);
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-mark i {
  width: 6px;
  height: 14px;
  display: block;
  background: var(--accent);
  border-radius: 5px;
  transform: rotate(24deg);
}

.brand-mark i:nth-child(2) {
  height: 19px;
}

.header-actions,
.site-header nav {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 20px;
}

.site-header nav {
  gap: 30px;
  color: var(--muted);
  font-size: .91rem;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--accent);
}

.language-switch {
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

.language-flag {
  position: relative;
  width: 20px;
  height: 13px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .26);
  overflow: hidden;
}

.flag-da {
  background: #c8102e;
}

.flag-da::before,
.flag-da::after {
  content: "";
  position: absolute;
  background: #fff;
}

.flag-da::before {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
}

.flag-da::after {
  top: 5px;
  right: 0;
  left: 0;
  height: 2px;
}

.flag-en {
  background:
    linear-gradient(to right, transparent 45%, #c8102e 45%, #c8102e 55%, transparent 55%),
    linear-gradient(to bottom, transparent 42%, #c8102e 42%, #c8102e 58%, transparent 58%),
    linear-gradient(to right, transparent 36%, #fff 36%, #fff 64%, transparent 64%),
    linear-gradient(to bottom, transparent 29%, #fff 29%, #fff 71%, transparent 71%),
    linear-gradient(33deg, transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%),
    linear-gradient(-33deg, transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%),
    linear-gradient(33deg, transparent 39%, #fff 39%, #fff 61%, transparent 61%),
    linear-gradient(-33deg, transparent 39%, #fff 39%, #fff 61%, transparent 61%),
    #012169;
}

.language-switch:hover {
  color: #151515;
  background: var(--accent);
  border-color: var(--accent);
}

.hero {
  width: var(--page);
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 76px;
  padding: 90px 0 110px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
  letter-spacing: -.035em;
}

h1 {
  max-width: 770px;
  margin-bottom: 30px;
  font-size: clamp(3.5rem, 7.2vw, 6.4rem);
}

h1 span {
  color: var(--accent);
}

h2 {
  font-size: clamp(2.35rem, 4.7vw, 4.15rem);
}

h3 {
  font-size: 1.45rem;
}

.lede {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.65vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}

.release-badge {
  display: inline-flex;
  padding: 10px 15px;
  color: var(--text);
  background: var(--accent-dark);
  border: 1px solid #587247;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
}

.release-badge:hover {
  color: #151515;
  background: var(--accent);
  border-color: var(--accent);
}

.text-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.card-stage {
  position: relative;
  min-height: 500px;
  background: #bfc1c4;
  border: 1px solid #d8d8d5;
  border-radius: 36px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.card-stage::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(41, 41, 43, .24);
  border-radius: 25px;
}

.game-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92%, 456px);
  height: auto;
  display: block;
  transform: translate(-50%, -54%);
  filter: drop-shadow(0 18px 24px rgba(41, 41, 43, .18));
}

.stage-caption {
  position: absolute;
  right: 32px;
  bottom: 24px;
  left: 32px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  color: #3a3a3f;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.game-section {
  padding: 120px max(24px, calc((100% - 1180px) / 2));
  background: var(--surface-muted);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 70px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.feature-grid article {
  padding: 40px 34px 18px 0;
}

.feature-grid article + article {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.feature-number {
  display: block;
  margin-bottom: 64px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
}

.feature-grid p,
.detail-card > p:not(.eyebrow),
.support-section > p:not(.eyebrow) {
  color: var(--muted);
}

.details-section {
  width: var(--page);
  margin: 0 auto;
  padding: 120px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-card {
  min-height: 480px;
  padding: clamp(34px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.modes-card {
  background: var(--surface-raised);
}

.privacy-card {
  background: var(--accent);
  color: #151515;
}

.privacy-card .eyebrow,
.privacy-card .text-link {
  color: #151515;
}

.privacy-card > p:not(.eyebrow) {
  color: #2d3827;
}

.privacy-card .text-link,
.detail-card .text-link {
  margin-top: auto;
}

.tag-list {
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.tag-list li {
  padding: 8px 13px;
  border: 1px solid #66666c;
  border-radius: 999px;
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
}

.support-section {
  padding: 130px max(24px, calc((100% - 940px) / 2));
  background: var(--surface-muted);
  text-align: center;
}

.support-section h2 {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.support-section > p:not(.eyebrow) {
  max-width: 740px;
  margin: 28px auto 0;
}

footer {
  width: var(--page);
  min-height: 250px;
  margin: 0 auto;
  padding: 62px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 40px;
}

footer p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.footer-links {
  display: flex;
  gap: 26px;
  font-size: .88rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.policy-shell {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 130px;
}

.policy-header {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.policy-header h1 {
  margin-bottom: 16px;
  font-size: clamp(3.2rem, 8vw, 6rem);
}

.policy-date {
  margin: 0 0 34px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
}

.policy-header a,
.policy-content a {
  color: var(--accent);
}

.policy-content section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.policy-content h2 {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.policy-content p:last-child {
  margin-bottom: 0;
}

.policy-content li + li {
  margin-top: 10px;
}

.back-link {
  display: inline-block;
  margin-top: 54px;
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.release-history-shell {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 130px;
}

.release-history-header {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.release-history-header h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 6rem);
}

.release-language-policy {
  max-width: 720px;
  margin: 30px 0 0;
  padding: 18px 20px;
  color: var(--muted);
  background: var(--surface-muted);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-size: .94rem;
}

.release-list {
  display: grid;
}

.release-entry {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.release-entry-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.release-version {
  margin: 0 0 6px;
  color: var(--text);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.release-entry time {
  color: var(--muted);
  font-size: .9rem;
}

.release-latest {
  padding: 7px 11px;
  color: #151515;
  background: var(--accent);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 850;
  white-space: nowrap;
}

.release-entry ul {
  margin: 28px 0 0;
  padding-left: 24px;
}

.release-entry li {
  color: var(--muted);
}

.release-entry li + li {
  margin-top: 12px;
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .card-stage {
    width: min(620px, 100%);
  }

  .feature-grid,
  .details-section {
    grid-template-columns: 1fr;
  }

  .feature-grid article + article {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .feature-number {
    margin-bottom: 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 32px);
  }

  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 78px;
  }

  .site-header nav {
    display: none;
    gap: 12px;
    font-size: .82rem;
  }

  .header-actions {
    gap: 0;
  }

  .hero {
    padding: 70px 0 86px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .card-stage {
    min-height: 390px;
    border-radius: 26px;
  }

  .card-stage::before {
    inset: 16px;
  }

  .game-mark {
    width: min(94%, 420px);
    transform: translate(-50%, -56%);
  }

  .stage-caption {
    right: 20px;
    bottom: 18px;
    left: 20px;
    font-size: .6rem;
  }

  .game-section,
  .support-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .details-section {
    padding: 88px 0;
  }

  .detail-card {
    min-height: 430px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .copyright {
    grid-column: 1;
  }

  .policy-shell {
    width: var(--page);
    padding: 72px 0 100px;
  }

  .release-history-shell {
    width: var(--page);
    padding: 72px 0 100px;
  }

  .release-history-header {
    padding-bottom: 48px;
  }

  .release-entry {
    padding: 42px 0;
  }

  .release-entry-heading {
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
