:root {
  color-scheme: dark;
  --bg: #050d1a;
  --bg-deep: #030812;
  --surface: rgba(9, 22, 41, 0.84);
  --surface-strong: rgba(11, 28, 52, 0.92);
  --surface-soft: rgba(7, 18, 34, 0.74);
  --ink: #eef6ff;
  --ink-soft: #c7dcf0;
  --dim: #8eb2d1;
  --blue: #6be0ff;
  --blue-mid: #38a8e8;
  --blue-deep: #163d63;
  --line: rgba(86, 178, 234, 0.23);
  --line-strong: rgba(107, 224, 255, 0.44);
  --gold: #f5cf6b;
  --gold-soft: rgba(245, 207, 107, 0.36);
  --font-display: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display", "Avenir Next", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI Variable Text", "Inter", "SF Pro Text", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;
  --shadow-bay: 0 22px 54px rgba(1, 6, 15, 0.56), inset 0 1px 0 rgba(138, 228, 255, 0.14);
  --shadow-frame: 0 18px 40px rgba(1, 6, 15, 0.52);
  --radius-bay: 14px;
  --radius-chip: 6px;
}

html {
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 68% 52% at 78% 8%, rgba(22, 84, 138, 0.34) 0%, rgba(11, 38, 70, 0.14) 48%, transparent 76%),
    radial-gradient(ellipse 58% 46% at 14% 84%, rgba(16, 62, 108, 0.24) 0%, transparent 70%),
    linear-gradient(180deg, #061020 0%, #050d1a 52%, #040a15 100%);
  background-size: auto;
  background-position: 0 0;
  background-attachment: fixed;
  color: var(--ink);
  font: 400 16px/1.68 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Pixel-locked static circuit board grid aligned 1:1 with assets/grid-flow.js (32px / 128px @ +0.5px) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle 2.2px at 64px 64px, rgba(122, 228, 255, 0.26) 0 1.25px, rgba(107, 224, 255, 0.08) 1.35px 2.2px, transparent 2.4px),
    linear-gradient(90deg, rgba(84, 206, 255, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(84, 206, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 174, 238, 0.065) 1px, transparent 1px),
    linear-gradient(rgba(64, 174, 238, 0.065) 1px, transparent 1px);
  background-size:
    128px 128px,
    128px 128px,
    128px 128px,
    32px 32px,
    32px 32px;
  background-position:
    -63.5px -63.5px,
    0 0,
    0 0,
    0 0,
    0 0;
}

/* Subtle edge vignette over both static grid and canvas pulses, behind .wrap */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 84% 78% at 50% 42%, transparent 52%, rgba(2, 7, 16, 0.56) 100%);
}

.grid-flow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.grid-flow[hidden] {
  display: none;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 36px 0;
}

a {
  color: var(--blue);
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection {
  background: rgba(107, 224, 255, 0.28);
  color: #ffffff;
}

/* Typography */
h1,
h2,
h3,
.studio-name {
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 5.4vw, 4.35rem);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.03em;
  margin: 16px 0 22px;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(3, 9, 20, 0.72);
}

h1 small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.54em;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -0.015em;
  line-height: 1.16;
  margin-top: 10px;
}

h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}

p {
  margin: 0 0 20px;
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  line-height: 1.66;
  color: var(--ink-soft);
  max-width: 34em;
}

.eyebrow,
.section-number {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-number {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.section-number::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--blue);
  box-shadow: 0 0 10px rgba(107, 224, 255, 0.48);
  flex: none;
}

.diamond {
  color: var(--gold);
  font-size: 1.35em;
  vertical-align: -0.06em;
  margin-right: 10px;
  text-shadow: 0 0 12px rgba(245, 207, 107, 0.38);
}

.subtle {
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Header & Navigation */
header.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(11, 27, 50, 0.88) 0%, rgba(7, 18, 35, 0.84) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(1, 6, 16, 0.45), inset 0 1px 0 rgba(138, 228, 255, 0.14);
  backdrop-filter: blur(8px);
}

header.site-header::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0 18px, var(--blue) 18px 100%);
  border-radius: 2px;
  pointer-events: none;
}

.studio {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}

.studio img {
  box-sizing: content-box;
  width: 48px;
  height: 48px;
  padding: 4px;
  image-rendering: pixelated;
  background: linear-gradient(145deg, #07162b 0%, #040d1b 100%);
  border: 1px solid rgba(107, 224, 255, 0.34);
  border-radius: 8px;
  box-shadow: inset 0 0 14px rgba(56, 168, 232, 0.16), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.studio:hover img {
  border-color: rgba(107, 224, 255, 0.62);
  box-shadow: inset 0 0 16px rgba(107, 224, 255, 0.22), 0 0 18px rgba(56, 168, 232, 0.2);
}

.studio .studio-name {
  font-size: 1.24rem;
  letter-spacing: 0.015em;
  color: var(--ink);
}

.studio span {
  color: var(--blue);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-chip);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(56, 168, 232, 0.12);
  border-color: rgba(107, 224, 255, 0.28);
}

.site-nav a[aria-current="page"] {
  color: #f4fbff;
  background: linear-gradient(180deg, rgba(35, 114, 174, 0.34) 0%, rgba(16, 59, 102, 0.42) 100%);
  border-color: rgba(107, 224, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(168, 238, 255, 0.22);
}

.site-nav a[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 8px rgba(245, 207, 107, 0.55);
}

/* Home Intro */
.home-intro {
  position: relative;
  padding: clamp(46px, 6.2vw, 72px) 0 clamp(36px, 4.8vw, 54px);
  padding-left: clamp(20px, 2.8vw, 30px);
  max-width: 820px;
}

.home-intro::before {
  content: "";
  position: absolute;
  top: clamp(48px, 6.4vw, 74px);
  bottom: clamp(40px, 5vw, 58px);
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0 16px, var(--blue) 16px 56%, rgba(107, 224, 255, 0.12) 100%);
  border-radius: 2px;
}

.home-intro .eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(107, 224, 255, 0.28);
  border-radius: 4px;
  background: rgba(10, 29, 54, 0.72);
  color: #9ae9ff;
}

.home-intro h1 {
  font-size: clamp(2.85rem, 6.4vw, 4.75rem);
  letter-spacing: -0.035em;
  margin: 18px 0 20px;
}

@supports (-webkit-background-clip: text) {
  .home-intro h1 {
    background: linear-gradient(180deg, #f8fcff 34%, #a8e4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }
}

.home-intro .lead {
  max-width: 40em;
  font-size: clamp(1.08rem, 1.6vw, 1.26rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Shared Spotlight / Featured Modules */
.featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
  padding: clamp(28px, 4.4vw, 50px);
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-bay);
  background:
    radial-gradient(ellipse 75% 80% at 100% 0%, rgba(44, 134, 206, 0.15) 0%, transparent 64%),
    linear-gradient(155deg, rgba(11, 27, 50, 0.9) 0%, rgba(7, 19, 36, 0.88) 100%);
  box-shadow: var(--shadow-bay);
  overflow: hidden;
}

.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(107, 224, 255, 0.72) 0%, rgba(56, 168, 232, 0.28) 44%, transparent 82%);
  pointer-events: none;
}

.featured h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  letter-spacing: -0.025em;
  margin: 6px 0 16px;
}

/* World Revival Flagship Spotlight */
.revival-teaser {
  margin-bottom: 28px;
  border-color: rgba(107, 224, 255, 0.38);
  background:
    linear-gradient(90deg, rgba(107, 224, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(107, 224, 255, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse 68% 85% at 86% 48%, rgba(30, 132, 186, 0.3) 0%, rgba(14, 58, 98, 0.14) 50%, transparent 76%),
    linear-gradient(132deg, rgba(12, 31, 58, 0.94) 0%, rgba(7, 27, 46, 0.92) 58%, rgba(8, 38, 60, 0.9) 100%);
  background-size: 24px 24px, 24px 24px, auto, auto;
  box-shadow:
    0 26px 64px rgba(1, 7, 18, 0.62),
    0 0 0 1px rgba(107, 224, 255, 0.08),
    inset 0 1px 0 rgba(164, 238, 255, 0.2);
}

.revival-teaser::before {
  background: linear-gradient(90deg, var(--gold) 0 42px, var(--blue) 42px 46%, rgba(107, 224, 255, 0.14) 84%, transparent 100%);
}

.revival-teaser .section-number {
  color: #a9efff;
}

.revival-teaser .section-number::before {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(245, 207, 107, 0.56);
}

.revival-teaser h1,
.revival-teaser h2 {
  margin: 8px 0 18px;
}

.revival-teaser h1 {
  font-size: clamp(2.65rem, 6.2vw, 4.8rem);
}

.revival-teaser h1 small {
  font-size: 0.64em;
  color: #8ee7ff;
}

.revival-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

.detail-hero {
  margin-top: 32px;
  margin-bottom: 28px;
}

.detail-hero .action-demo {
  margin-top: 10px;
}

/* Server Delver Home Spotlight */
.featured:not(.revival-teaser) {
  border-color: rgba(92, 174, 236, 0.3);
  background:
    radial-gradient(ellipse 64% 72% at 88% 50%, rgba(36, 98, 172, 0.22) 0%, transparent 72%),
    linear-gradient(148deg, rgba(10, 24, 46, 0.92) 0%, rgba(7, 18, 36, 0.9) 100%);
}

/* Datakin 06 Core Grid Emblem */
.grid-emblem {
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 276px);
  aspect-ratio: 1;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(107, 224, 255, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(107, 224, 255, 0.16) 1px, transparent 1px),
    radial-gradient(circle, rgba(56, 182, 240, 0.24) 0%, rgba(16, 68, 114, 0.12) 48%, transparent 72%);
  background-size: 16px 16px, 16px 16px, 100% 100%;
  background-position: 0 0, 0 0, center;
  mask-image: radial-gradient(circle, #000 44%, rgba(0, 0, 0, 0.6) 64%, transparent 78%);
}

.grid-emblem::before,
.grid-emblem::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: rgba(107, 224, 255, 0.28);
}

.grid-emblem::before {
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
}

.grid-emblem::after {
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
}

.grid-emblem span {
  position: absolute;
  aspect-ratio: 1;
  width: 60%;
  transform: rotate(45deg);
  border: 1px solid rgba(107, 224, 255, 0.56);
  border-radius: 10%;
  box-shadow: 0 0 24px rgba(56, 180, 245, 0.18), inset 0 0 22px rgba(56, 180, 245, 0.14);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.grid-emblem span:nth-child(2) {
  width: 44%;
  border-color: rgba(145, 238, 255, 0.8);
  background: rgba(18, 66, 108, 0.28);
}

.grid-emblem span:nth-child(3) {
  width: 28%;
  background: linear-gradient(135deg, #2b83ad 0%, #15456c 100%);
  border-color: rgba(180, 244, 255, 0.92);
  border-top-color: rgba(245, 207, 107, 0.9);
  border-left-color: rgba(245, 207, 107, 0.9);
  box-shadow: 0 0 24px rgba(107, 224, 255, 0.3), inset 0 0 14px rgba(200, 248, 255, 0.2);
}

.grid-emblem b {
  position: relative;
  z-index: 1;
  font: 700 clamp(1.3rem, 3.2vw, 2.05rem) / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #f8fcff;
  text-shadow: 0 2px 10px rgba(4, 16, 30, 0.72);
}

@media (hover: hover) and (pointer: fine) {
  .revival-teaser:hover .grid-emblem span:nth-child(1) {
    transform: rotate(51deg);
    border-color: rgba(132, 234, 255, 0.76);
  }
  .revival-teaser:hover .grid-emblem span:nth-child(2) {
    transform: rotate(41deg);
  }
  .revival-teaser:hover .grid-emblem span:nth-child(3) {
    box-shadow: 0 0 28px rgba(107, 224, 255, 0.42), inset 0 0 16px rgba(210, 248, 255, 0.26);
  }
}

/* Interactive Buttons & Links */
.action-demo,
.actions a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid #b4f1ff;
  border-radius: 8px;
  background: linear-gradient(180deg, #b3f1ff 0%, #70daf8 100%);
  color: #041828;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(26, 152, 214, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.action-demo:hover,
.actions a.primary:hover {
  background: linear-gradient(180deg, #d3f7ff 0%, #92e6ff 100%);
  border-color: #e4fbff;
  box-shadow: 0 14px 32px rgba(48, 186, 242, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.page-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  border-bottom: 1.5px solid rgba(107, 224, 255, 0.65);
  color: #b4efff;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, gap 0.18s ease;
}

.page-link:hover {
  color: #ffffff;
  border-color: var(--gold);
  gap: 11px;
}

/* Byte Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  margin: 0 7px 7px 0;
  border: 1px solid rgba(107, 224, 255, 0.3);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(16, 42, 74, 0.88) 0%, rgba(10, 28, 52, 0.92) 100%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #bde8ff;
  box-shadow: inset 0 1px 0 rgba(168, 236, 255, 0.12);
}

/* Cover Art & Showcase Frames */
.feature-art {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 332px;
  justify-self: center;
  padding: 9px;
  border: 1px solid rgba(107, 224, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(9, 25, 46, 0.95) 0%, rgba(4, 12, 24, 0.96) 100%);
  box-shadow: var(--shadow-frame), inset 0 1px 0 rgba(154, 232, 255, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-art:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 224, 255, 0.62);
  box-shadow: 0 24px 48px rgba(1, 8, 20, 0.64), 0 0 24px rgba(56, 174, 236, 0.16);
}

.feature-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(92, 168, 220, 0.32);
  border-radius: 6px;
}

/* News Feed */
.news {
  padding: 46px 0 58px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.news > h2 {
  margin-bottom: 26px;
}

.news-layout {
  position: relative;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 24px 42px;
  padding: clamp(22px, 3.2vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-bay);
  background: var(--surface-soft);
  box-shadow: 0 16px 40px rgba(1, 6, 15, 0.42), inset 0 1px 0 rgba(132, 224, 255, 0.1);
}

.launch-news {
  margin-bottom: 22px;
  padding-bottom: clamp(24px, 3.4vw, 36px);
  border-color: rgba(107, 224, 255, 0.34);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(36, 134, 198, 0.18) 0%, transparent 66%),
    var(--surface);
  box-shadow: var(--shadow-bay);
}

.launch-news::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0 28px, var(--blue) 28px 100%);
  border-radius: 0 3px 3px 0;
}

.news-date {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(107, 224, 255, 0.24);
  border-radius: 6px;
  background: rgba(6, 18, 34, 0.78);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #9be8ff;
  font-variant-numeric: tabular-nums;
}

.news article {
  max-width: 68ch;
}

.news article h3 {
  font-size: clamp(1.38rem, 2.2vw, 1.72rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}

.news-body {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.news-body p {
  margin-bottom: 18px;
}

.news-body p:last-child {
  margin-bottom: 0;
}

.news-body .action-demo {
  margin-top: 6px;
}

/* Server Delver Hero & Hardware Monitor */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4.8vw, 56px);
  align-items: center;
  padding: clamp(38px, 5vw, 58px) 0 clamp(32px, 4.2vw, 48px);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
}

.hero h1 {
  margin: 16px 0 20px;
}

.hero .lead {
  margin-bottom: 22px;
}

.screen {
  position: relative;
  padding: 13px;
  border: 1px solid rgba(107, 224, 255, 0.36);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(13, 32, 58, 0.96) 0%, rgba(6, 16, 31, 0.96) 100%);
  box-shadow: 0 28px 66px rgba(0, 6, 16, 0.68), inset 0 1px 0 rgba(164, 236, 255, 0.2);
}

.screen::before {
  content: "";
  display: block;
  height: 3px;
  width: 78px;
  background: linear-gradient(90deg, var(--gold) 0 26px, var(--blue) 26px 100%);
  position: absolute;
  top: -2px;
  left: 24px;
  border-radius: 2px;
}

.screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  display: block;
  image-rendering: pixelated;
  background: #040a14;
  border: 1px solid rgba(72, 152, 206, 0.35);
  border-radius: 5px;
}

.screenbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 2px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.screenbar button {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  min-height: 32px;
  border: 1px solid rgba(107, 224, 255, 0.34);
  border-radius: 5px;
  color: #d9f3ff;
  background: linear-gradient(180deg, rgba(19, 50, 84, 0.92) 0%, rgba(12, 32, 58, 0.94) 100%);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.screenbar button:hover {
  background: rgba(31, 86, 138, 0.9);
  border-color: rgba(132, 232, 255, 0.65);
  color: #ffffff;
}

/* Modular Circuit Panels for Detail Pages */
.itch-download,
.about,
.content,
.credits {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-bay);
  background: var(--surface);
  box-shadow: var(--shadow-bay);
  margin-top: 24px;
  padding: clamp(24px, 3.6vw, 40px);
}

.itch-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: center;
  border-color: rgba(107, 224, 255, 0.34);
  background:
    radial-gradient(ellipse 55% 110% at 100% 50%, rgba(36, 136, 206, 0.2) 0%, transparent 70%),
    var(--surface-strong);
}

.itch-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0 20px, var(--blue) 20px 100%);
}

.itch-download h2 {
  margin-bottom: 6px;
}

.itch-download .subtle {
  margin-bottom: 0;
}

.about {
  padding: clamp(26px, 3.8vw, 42px);
}

.about-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 46px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.revival-about {
  margin-top: 0;
  margin-bottom: 36px;
}

.revival-about .copy {
  max-width: 66ch;
  font-size: 16.8px;
  line-height: 1.74;
  color: var(--ink-soft);
}

.demo-state {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 13px 18px;
  border: 1px solid rgba(107, 224, 255, 0.3);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(16, 44, 74, 0.9) 0%, rgba(10, 29, 52, 0.84) 100%);
  color: #eaf6ff;
  font-size: 14.5px;
  font-weight: 550;
}

/* Creator & Controls Grid */
.content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px 56px;
}

.copy {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.cover {
  margin: 28px 0 0;
  max-width: 390px;
  padding: 9px;
  border: 1px solid rgba(107, 224, 255, 0.28);
  border-radius: 12px;
  background: rgba(4, 12, 24, 0.88);
  box-shadow: var(--shadow-frame);
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(90, 166, 218, 0.3);
  border-radius: 6px;
}

.cover figcaption {
  font-size: 12.5px;
  color: var(--dim);
  padding: 10px 4px 2px;
}

.cover b {
  color: var(--ink);
  font-weight: 600;
}

/* Hardware Keycap Control Table */
dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

dl div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(86, 178, 234, 0.16);
  border-radius: 8px;
  background: rgba(6, 17, 33, 0.72);
}

dt {
  flex: none;
  min-width: 92px;
  padding: 4px 10px;
  border: 1px solid rgba(107, 224, 255, 0.34);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(19, 50, 84, 0.92) 0%, rgba(11, 31, 56, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(164, 236, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  color: #a4ecff;
}

dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* Credits Module */
.credits {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.2fr);
  gap: 24px 40px;
  margin-bottom: 36px;
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.credit-grid > div {
  padding: 12px 14px;
  border: 1px solid rgba(86, 178, 234, 0.16);
  border-left: 2px solid rgba(107, 224, 255, 0.44);
  border-radius: 7px;
  background: rgba(6, 17, 33, 0.66);
}

.credit-grid b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 2px;
}

.credit-grid span {
  display: block;
  color: var(--dim);
  font-size: 12.2px;
  line-height: 1.48;
}

/* Footer */
footer {
  position: relative;
  margin-top: 22px;
  padding: 24px 4px 38px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, transparent 100%);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .wrap {
    padding: 16px 24px 0;
  }

  .featured {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .itch-download {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .content {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .credits {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 12px 16px 0;
  }

  header.site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
  }

  .site-nav {
    width: 100%;
    gap: 6px;
  }

  .site-nav a {
    font-size: 13px;
    padding: 7px 10px;
  }

  .home-intro {
    padding: 32px 0 28px 18px;
  }

  .home-intro::before {
    top: 34px;
    bottom: 30px;
  }

  .home-intro h1,
  .hero h1,
  .revival-teaser h1 {
    font-size: clamp(2.2rem, 9.4vw, 3.15rem);
  }

  .home-intro .lead {
    font-size: 17px;
  }

  .featured,
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .featured {
    padding: 24px 20px;
  }

  .featured h2 {
    font-size: clamp(1.6rem, 6.4vw, 2.05rem);
  }

  .feature-art {
    max-width: 270px;
    justify-self: start;
  }

  .grid-emblem {
    display: none;
  }

  .news {
    padding: 34px 0 42px;
  }

  .news-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px 18px;
  }

  .news article h3 {
    font-size: 1.32rem;
  }

  .about,
  .content,
  .credits,
  .itch-download {
    padding: 22px 18px;
    margin-top: 18px;
  }

  .about-copy,
  .credit-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .actions a.primary,
  .action-demo {
    width: 100%;
  }

  .screen {
    padding: 9px;
  }

  .screenbar {
    flex-wrap: wrap;
    font-size: 10px;
  }

  .detail-hero {
    margin-top: 22px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    padding: 20px 2px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid-flow {
    display: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .action-demo:hover,
  .actions a.primary:hover,
  .feature-art:hover {
    transform: none;
  }
}

@media (min-width: 981px) {.itch-download{grid-template-columns:minmax(0,1fr) minmax(0,552px)}}
/* World Revival screenshots, stored locally at their published dimensions. */
.revival-preview-art {
  max-width: 420px;
  width: 100%;
  justify-self: end;
}
.revival-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 26px);
  margin-top: 22px;
}
.revival-gallery-grid figure {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.revival-gallery-grid a {
  display: block;
  aspect-ratio: 8 / 7;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.revival-gallery-grid a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.revival-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
  image-rendering: pixelated;
}
.revival-gallery-grid figcaption {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
@media (max-width: 700px) {
  .revival-gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .revival-preview-art { justify-self: start; }
}
.revival-gameplay video { display: block; width: min(100%, 512px); height: auto; margin: 1rem auto; background: #080d1c; border: 1px solid rgba(113, 188, 255, .32); border-radius: .75rem; image-rendering: pixelated; }
.revival-gameplay #gameplay-caption { max-width: 58ch; margin-inline: auto; }
