@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IBMPlexSerif-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
}

:root {
  --ink: #0a0710;
  --paper: #f6f1ea;
  --muted: #c3b6d4;
  --quiet: #a898be;
  --line: rgba(246, 241, 234, 0.14);
  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --violet-hot: #d4c4ff;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 640px at 10% -12%, rgba(124, 58, 237, 0.34), transparent 58%),
    radial-gradient(780px 520px at 108% -6%, rgba(49, 16, 92, 0.7), transparent 52%),
    linear-gradient(180deg, #161022 0%, #0a0710 46%, #08060c 100%);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(214, 196, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 196, 255, 0.055) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 16% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 16% 0%, #000 0%, transparent 70%);
}

.frame {
  position: fixed;
  z-index: 2;
  inset: 14px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.frame::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--violet);
  transform-origin: left center;
  animation: load-bar 0.9s cubic-bezier(0.16, 0.84, 0.32, 1) both;
  pointer-events: none;
}

@keyframes load-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 40px 32px;
}

main {
  flex: 1;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 4;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--violet-hot);
  outline-offset: 3px;
}

::selection {
  background: var(--violet-deep);
  color: var(--paper);
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--paper);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.mark-icon {
  width: 2.05rem;
  height: 2.05rem;
  display: block;
  flex: none;
}

.mark-gem {
  transform-box: fill-box;
  transform-origin: center;
  animation: mark-spin 4.8s linear infinite;
}

@keyframes mark-spin {
  to {
    transform: rotate(360deg);
  }
}

.mast-note,
.mast nav a {
  margin: 0;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mast nav a {
  margin-left: 1.35rem;
  color: var(--muted);
  text-decoration: none;
}

.mast nav a:hover,
.mast nav a[aria-current="page"] {
  color: var(--paper);
}

.mast nav a.nav-button {
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line);
  color: var(--paper);
  line-height: 1.2;
}

.mast nav a.nav-button:hover,
.mast nav a.nav-button[aria-current="page"] {
  border-color: var(--violet);
  background: rgba(124, 58, 237, 0.16);
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 0.7fr);
  column-gap: 3rem;
  align-items: end;
  padding: 4.4rem 0 3.2rem;
}

.kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin: 0 0 1.35rem;
  color: var(--violet-hot);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gem {
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.75rem;
  background: var(--violet);
  transform: rotate(45deg);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 7vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-wrap: balance;
}

.wordmark {
  font-size: clamp(4.7rem, 13.5vw, 9.2rem);
  letter-spacing: -0.048em;
  line-height: 0.84;
}

.hero h1:not(.wordmark) {
  grid-column: 1 / -1;
  max-width: 11ch;
}

.statement {
  margin: 0 0 0.55rem;
  max-width: 14ch;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.statement a {
  color: var(--paper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.statement a:hover {
  color: var(--violet-hot);
}

.band {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0;
  padding-top: 0.35rem;
  color: var(--violet-hot);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.prose p {
  max-width: 40rem;
  margin: 0 0 1rem;
  font-size: 1.22rem;
  line-height: 1.55;
}

.prose p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.platform-list li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.4rem 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.platform-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.num {
  padding-top: 0.28rem;
  color: var(--violet-hot);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.platform-list p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0.4rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.82rem;
}

.colophon p {
  margin: 0;
}

.app-hero {
  padding-bottom: 1.15rem;
}

.app-tag {
  grid-column: 1 / -1;
  margin: 0.9rem 0 0;
  color: var(--quiet);
  font-size: 1rem;
  line-height: 1.4;
}

.game-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 18.5rem));
  gap: 1.25rem;
  margin: 0;
  padding: 1.6rem 0 0.4rem;
  border-top: 1px solid var(--line);
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  height: 100%;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(246, 241, 234, 0.03);
  color: inherit;
  text-decoration: none;
}

.game-card:hover {
  border-color: rgba(212, 196, 255, 0.5);
  background: rgba(124, 58, 237, 0.1);
}

.game-icon {
  position: relative;
  display: block;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.16), rgba(246, 241, 234, 0.03));
}

.game-icon-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
  line-height: 1.4;
}

.game-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h2.game-name {
  margin: 0;
  padding: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
}

.game-tag {
  margin: 0.35rem 0 0;
  color: var(--quiet);
  font-size: 0.92rem;
  line-height: 1.4;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
  border-bottom: 1px solid var(--line);
}

.tabs a {
  margin: 0 0 -1px;
  padding: 0.75rem 0 0.65rem;
  border-bottom: 2px solid transparent;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.tabs a:hover,
.tabs a[aria-current="page"] {
  color: var(--paper);
}

.tabs a[aria-current="page"] {
  border-bottom-color: var(--violet);
}

.sheet {
  max-width: 40rem;
  padding-top: 1.7rem;
}

.info-box p,
.doc-list {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  line-height: 1.6;
}

.info-box .updated {
  margin: 0 0 1rem;
  color: var(--quiet);
  font-size: 0.92rem;
}

.info-box .lead {
  font-size: 1.18rem;
  line-height: 1.55;
}

.info-box h2 {
  margin: 1.85rem 0 0.45rem;
}

.info-box {
  padding: 1.15rem 1.2rem 0.35rem;
  border: 1px solid var(--line);
  background: rgba(246, 241, 234, 0.03);
}

.info-box h2:first-child {
  margin-top: 0;
}

.doc-list {
  padding: 0 0 0 1.2rem;
}

.doc-list li {
  margin: 0 0 0.65rem;
}

.doc-list li:last-child {
  margin-bottom: 0;
}

.info-box strong {
  font-weight: 600;
}

.contact-box {
  display: grid;
  gap: 0.35rem;
  max-width: 24rem;
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(246, 241, 234, 0.03);
}

.contact-label {
  margin: 0;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-box a {
  color: var(--paper);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.contact-box a:hover {
  color: var(--violet-hot);
}

@media (max-width: 800px) {
  .frame {
    inset: 8px;
  }

  .page {
    padding: 22px 20px 24px;
  }

  .mast {
    align-items: flex-start;
  }

  .mast nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
  }

  .mast nav a {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    row-gap: 1.15rem;
    padding: 2.6rem 0 2rem;
  }

  .kicker {
    margin-bottom: 0.2rem;
  }

  .statement {
    max-width: 16ch;
  }

  .band,
  .facts {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .prose p {
    font-size: 1.08rem;
  }
}

@media (max-width: 420px) {
  .mast {
    flex-direction: column;
  }

  .mast nav {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame::before {
    animation: none;
    transform: scaleX(1);
  }

  .mark-gem {
    animation: none;
  }
}

@media print {
  :root {
    --paper: #16120f;
    --muted: #333;
    --quiet: #333;
    --violet-hot: #3b1d6e;
    --line: #ccc;
  }

  body {
    background: #fff;
    background-image: none;
  }

  body::before,
  .frame {
    display: none;
  }

  .mark-gem {
    animation: none;
  }

  a {
    color: #16120f;
  }
}
