:root {
  color-scheme: dark;
  --rna-ink: #eef8ff;
  --rna-muted: #91aabd;
  --rna-night: #030914;
  --rna-panel: #071a2d;
  --rna-panel-2: #0b253d;
  --rna-blue: #2d8bc8;
  --rna-line: rgba(117, 184, 228, .32);
  --rna-orange: #ef7a2f;
  --rna-orange-soft: #ffd0ae;
  --rna-green: #75d3a4;
  --rna-radius: 16px;
  --rna-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --rna-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--rna-night);
}

body.rna-page {
  min-height: 100vh;
  margin: 0;
  color: var(--rna-ink);
  background:
    radial-gradient(circle at 76% 4%, rgba(45, 139, 200, .17), transparent 32rem),
    radial-gradient(circle at 8% 75%, rgba(239, 122, 47, .08), transparent 30rem),
    linear-gradient(180deg, #06101f 0%, #020812 100%);
  font-family: var(--rna-sans);
}

body.rna-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(130, 190, 230, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 190, 230, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

a { color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

.rna-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #07111f;
  background: #fff;
  font-weight: 800;
  transform: translateY(-150%);
}

.rna-skip-link:focus { transform: translateY(0); }

.rna-topbar,
.rna-footer,
.rna-main {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.rna-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
  border-bottom: 1px solid var(--rna-line);
}

.rna-wordmark {
  display: inline-grid;
  gap: 2px;
  text-decoration: none;
}

.rna-wordmark strong,
.rna-eyebrow,
.rna-game-number,
.rna-status,
.rna-build,
.rna-classified strong {
  font-family: var(--rna-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rna-wordmark strong { font-size: 15px; }
.rna-wordmark span { color: var(--rna-muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

.rna-return {
  color: #c9e3f4;
  font-family: var(--rna-mono);
  font-size: 12px;
  text-decoration: none;
}

.rna-return:hover { color: #fff; }

.rna-main { padding: clamp(54px, 8vw, 105px) 0 80px; }

.rna-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr);
  align-items: end;
  gap: 42px;
  margin-bottom: clamp(42px, 7vw, 78px);
}

.rna-eyebrow {
  margin: 0 0 17px;
  color: var(--rna-orange-soft);
  font-size: 12px;
}

.rna-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--rna-mono);
  font-size: clamp(48px, 10vw, 118px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .82;
}

.rna-hero h1 span {
  display: block;
  margin-left: .95em;
  color: transparent;
  -webkit-text-stroke: 1px #78b9e1;
}

.rna-hero-copy {
  margin: 0;
  color: #b9cfdd;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.rna-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.rna-section-heading h2 {
  margin: 0;
  font-family: var(--rna-mono);
  font-size: 13px;
  letter-spacing: .14em;
}

.rna-build { color: var(--rna-muted); font-size: 10px; }

.rna-cabinet {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
  overflow: hidden;
  border: 1px solid rgba(87, 161, 210, .55);
  border-radius: var(--rna-radius);
  background: linear-gradient(145deg, rgba(12, 39, 64, .96), rgba(4, 16, 29, .96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.rna-key-art {
  position: relative;
  display: block;
  min-height: 440px;
  overflow: hidden;
  border-right: 1px solid var(--rna-line);
  background:
    radial-gradient(circle at 50% 78%, rgba(239, 122, 47, .2), transparent 16%),
    radial-gradient(circle at 50% 15%, rgba(45, 139, 200, .35), transparent 42%),
    repeating-linear-gradient(0deg, rgba(140, 210, 255, .035) 0 1px, transparent 1px 5px),
    #061426;
}

.rna-key-art::after {
  position: absolute;
  inset: 0;
  border: 18px solid rgba(4, 14, 25, .34);
  content: "";
  pointer-events: none;
}

.rna-key-art img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease, filter .25s ease;
}

.rna-key-art:hover img { transform: scale(1.012); filter: brightness(1.08); }

.rna-key-art-fallback img { display: none; }

.rna-key-art-fallback::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  border: 3px solid #de4042;
  border-radius: 48% 52% 55% 45%;
  color: #e8f6ff;
  content: "RI\A 001";
  font: 900 clamp(28px, 5vw, 68px)/.9 var(--rna-mono);
  letter-spacing: -.08em;
  text-align: center;
  white-space: pre;
  transform: translate(-50%, -50%) rotate(-5deg);
}

.rna-cabinet-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.rna-game-number {
  margin: 0 0 12px;
  color: var(--rna-orange-soft);
  font-size: 12px;
}

.rna-cabinet h2 {
  margin: 0;
  font-family: var(--rna-mono);
  font-size: clamp(35px, 5vw, 62px);
  letter-spacing: -.06em;
  line-height: .92;
}

.rna-game-subtitle { margin: 16px 0 25px; color: #b8d1e0; line-height: 1.45; }

.rna-game-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
  padding: 18px 0;
  border-block: 1px solid var(--rna-line);
  font-family: var(--rna-mono);
  font-size: 11px;
  line-height: 1.4;
}

.rna-game-facts dt { color: var(--rna-muted); text-transform: uppercase; }
.rna-game-facts dd { margin: 0; color: #e4f4fd; text-transform: uppercase; }

.rna-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }

.rna-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--rna-orange);
  border-radius: 8px;
  color: #06101c;
  background: var(--rna-orange);
  font: 900 12px var(--rna-mono);
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
}

.rna-button-secondary { border-color: var(--rna-line); color: #d8edf9; background: rgba(9, 34, 56, .82); }
.rna-button:hover { filter: brightness(1.12); }

.rna-button:focus-visible,
.rna-return:focus-visible,
.rna-wordmark:focus-visible,
.rna-key-art:focus-visible,
.rna-footer a:focus-visible,
.rna-boot button:focus-visible {
  outline: 3px solid #ffd0ae;
  outline-offset: 4px;
}

.rna-game-details {
  margin-top: 18px;
  padding: 14px;
  border-left: 2px solid var(--rna-orange);
  color: #bad0dd;
  background: rgba(4, 14, 25, .46);
  font-size: 13px;
  line-height: 1.55;
}

.rna-game-details p { margin: 0; }
.rna-game-details p + p { margin-top: 9px; }

.rna-future {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.rna-classified {
  min-height: 82px;
  padding: 17px;
  border: 1px dashed rgba(117, 184, 228, .19);
  border-radius: 11px;
  color: rgba(176, 204, 221, .55);
  background: rgba(8, 26, 44, .34);
}

.rna-classified strong { display: block; font-size: 10px; }
.rna-classified span { display: block; margin-top: 5px; font: 11px var(--rna-mono); letter-spacing: .08em; }

.rna-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--rna-line);
  color: var(--rna-muted);
  font: 11px var(--rna-mono);
}

.rna-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.rna-footer a { text-decoration: none; }
.rna-footer a:hover { color: #fff; }

.rna-boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #020711;
}

.rna-boot[hidden] { display: none; }

.rna-boot-inner {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--rna-line);
  border-radius: 10px;
  background: #061426;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .55);
}

.rna-boot pre {
  min-height: 128px;
  margin: 0;
  color: #ccecff;
  font: 12px/1.7 var(--rna-mono);
  letter-spacing: .08em;
  white-space: pre-wrap;
}

.rna-boot button {
  margin-top: 14px;
  padding: 8px 10px;
  border: 1px solid var(--rna-line);
  border-radius: 6px;
  color: #d7effd;
  background: transparent;
  font: 10px var(--rna-mono);
  cursor: pointer;
}

@media (max-width: 820px) {
  .rna-topbar, .rna-footer, .rna-main { width: min(100% - 28px, 1180px); }
  .rna-hero { grid-template-columns: 1fr; gap: 20px; }
  .rna-hero h1 span { margin-left: .5em; }
  .rna-hero-copy { max-width: 38rem; }
  .rna-cabinet { grid-template-columns: 1fr; }
  .rna-key-art { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--rna-line); }
  .rna-key-art img { min-height: 0; }
}

@media (max-width: 520px) {
  .rna-topbar { min-height: 66px; }
  .rna-wordmark span { display: none; }
  .rna-return { font-size: 10px; }
  .rna-main { padding-top: 44px; }
  .rna-hero h1 { font-size: clamp(52px, 20vw, 82px); }
  .rna-cabinet-copy { padding: 25px 20px 28px; }
  .rna-game-facts { grid-template-columns: 1fr; gap: 2px; }
  .rna-game-facts dd + dt { margin-top: 8px; }
  .rna-card-actions, .rna-button { width: 100%; }
  .rna-future { grid-template-columns: 1fr; }
  .rna-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
