@font-face {
  font-family: Jakarta;
  src: url('/media/sans.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url('/media/display.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --sans: Jakarta, 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Menlo, Consolas, monospace;
  --bg-void: #07080c;
  --bg-obsidian: #0b0d14;
  --bg-carbon: #10131d;
  --bg-card: #151926;
  --bg-card-hover: #1b2132;
  --ink: #f4f6fb;
  --soft: #b8c1d4;
  --quiet: #838ea6;
  --line: rgb(255 255 255 / 9%);
  --line-strong: rgb(255 255 255 / 19%);
  --cyan: #26bbff;
  --cyan-ink: #04111d;
  --cyan-dim: rgb(38 187 255 / 15%);
  --blue: #4f8cff;
  --gold: #e8c786;
  --gold-ink: #171105;
  --gold-dim: rgb(232 199 134 / 15%);
  --emerald: #34d399;
  --house-gold-light: #e8c786;
  --bright-line: rgb(232 199 134 / 52%);
  --gutter: max(calc((100% - 1340px) / 2), clamp(20px, 4.5vw, 72px));
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg-void);
}

html[lang='ko'] {
  word-break: keep-all;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--ink);
  font: 400 1rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
pre,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

code,
pre {
  font-family: var(--mono);
}

:is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection {
  background: rgb(38 187 255 / 32%);
  color: #fff;
}

.wrap {
  margin-inline: var(--gutter);
}

.skip {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  z-index: 100;
  background: var(--cyan);
  color: var(--cyan-ink);
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}
.skip:focus {
  transform: translateY(0);
}

/* Sticky Unreal-style Glass Header */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(7 8 12 / 84%);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.mast-inner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--sans);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--ink);
  transition: color 0.16s ease;
}

.brand:hover .brand-text {
  color: var(--cyan);
}

.desk-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-right: auto;
}

.desk-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--soft);
  padding: 23px 0;
  transition: color 0.16s ease;
}

.desk-nav a:hover,
.desk-nav a[aria-current='page'] {
  color: var(--ink);
}

.desk-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
}

.mast-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.language-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--soft);
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 3%);
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    border-color 0.16s ease,
    color 0.16s ease;
}

.language-link:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.mobile-nav {
  display: none;
  position: relative;
  flex-shrink: 0;
}

.mobile-nav summary {
  list-style: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  white-space: nowrap;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav[open] nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 4px;
  box-shadow: 0 24px 48px rgb(0 0 0 / 65%);
}

.mobile-nav nav a {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--soft);
}

.mobile-nav nav a:hover,
.mobile-nav nav a[aria-current='page'] {
  background: rgb(255 255 255 / 7%);
  color: var(--ink);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn--lg {
  padding: 13px 22px;
  font-size: 0.95rem;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.84rem;
}

.btn--cyan {
  background: var(--cyan);
  color: var(--cyan-ink);
  box-shadow: 0 0 28px rgb(38 187 255 / 22%);
}

.btn--cyan:hover {
  background: #57cbff;
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 0 26px rgb(232 199 134 / 18%);
}

.btn--gold:hover {
  background: #f2d79e;
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgb(255 255 255 / 5%);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 32%);
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}

.inline-cta:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Eyebrows & Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 0.72rem/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.eyebrow--gold {
  color: var(--gold);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.pulse-dot--blue {
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.pulse-dot--gold {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* AAA Hero Stage */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 96px) 0 clamp(44px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.1) contrast(1.06);
}

.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 36%, rgb(38 187 255 / 14%), transparent 46%),
    linear-gradient(95deg, #07080c 12%, rgb(7 8 12 / 88%) 52%, rgb(7 8 12 / 68%) 100%),
    linear-gradient(180deg, rgb(7 8 12 / 40%) 0%, transparent 35%, #07080c 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 3.5%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 3.5%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(15 19 30 / 82%);
  border: 1px solid rgb(38 187 255 / 34%);
  font: 700 0.7rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  color: #bfeaff;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.15rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--soft);
  max-width: 58ch;
  margin-bottom: 28px;
}

.hero-actions {
  margin-bottom: 16px;
}

.compliance-line {
  font-size: 0.8rem;
  color: var(--quiet);
  letter-spacing: 0.02em;
}

.hero-showcase {
  background: rgb(12 15 24 / 90%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 28px 72px rgb(0 0 0 / 68%),
    0 0 0 1px rgb(38 187 255 / 10%);
}

.hero-window-bar,
.viewport-hud-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #0c0f18;
  border-bottom: 1px solid var(--line);
  font: 600 0.72rem/1.2 var(--mono);
}

.hud-chip {
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hud-chip--cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgb(38 187 255 / 32%);
}

.hud-meta {
  color: var(--quiet);
  margin-right: auto;
}

.hud-expand {
  color: var(--cyan);
  font-weight: 600;
}

.hero-shot-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-shot-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font: 500 0.74rem/1.3 var(--mono);
  color: var(--soft);
  background: #0c0f18;
  border-top: 1px solid var(--line);
}

.hero-shot-foot a {
  color: var(--cyan);
  flex-shrink: 0;
}

/* Telemetry Strip */
.telemetry-strip {
  position: relative;
  z-index: 1;
  margin-top: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgb(14 17 27 / 86%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}

.telemetry-item {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.telemetry-item:last-child {
  border-right: 0;
}

.telemetry-val {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.telemetry-val strong {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 780;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.telemetry-val span {
  font: 700 0.76rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.telemetry-item p {
  font-size: 0.85rem;
  color: var(--quiet);
}

/* Sections */
.section {
  padding: clamp(64px, 8vw, 116px) 0;
  border-bottom: 1px solid var(--line);
}

.section--obsidian {
  background: var(--bg-obsidian);
}

.section--carbon {
  background: var(--bg-carbon);
}

.section--gold-tint {
  background:
    radial-gradient(circle at 85% 12%, rgb(232 199 134 / 8%), transparent 45%), var(--bg-obsidian);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: end;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

.section-title {
  font-size: clamp(1.85rem, 3.3vw, 2.85rem);
  font-weight: 740;
}

.section-intro {
  color: var(--soft);
  font-size: 1.02rem;
}

.section-intro-stack {
  display: grid;
  gap: 16px;
}

/* Bento & Pillar Grids */
.bento-grid {
  display: grid;
  gap: 18px;
}

.bento-grid--4col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bento-grid--2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.pillar-card,
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.pillar-card {
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cyan);
}

.pillar-card--blue::before {
  background: var(--blue);
}
.pillar-card--gold::before {
  background: var(--gold);
}
.pillar-card--emerald::before {
  background: var(--emerald);
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.pillar-tag,
.card-kicker {
  font: 700 0.7rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.pillar-card--gold .pillar-tag {
  color: var(--gold);
}
.pillar-card--emerald .pillar-tag {
  color: var(--emerald);
}

.pillar-card h3,
.bento-card h3 {
  font-size: 1.26rem;
  font-weight: 700;
}

.pillar-card p,
.card-body {
  font-size: 0.94rem;
  color: var(--soft);
  flex-grow: 1;
}

.pillar-cta {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  margin-top: 6px;
}

.card-telemetry {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font: 600 0.76rem/1.4 var(--mono);
  color: #9be0ff;
}

.step-chip {
  align-self: flex-start;
  font: 700 0.72rem/1 var(--mono);
  padding: 5px 8px;
  border-radius: 4px;
  background: rgb(79 140 255 / 16%);
  color: #9ec0ff;
}

/* Interactive Engine Viewport Stage */
.viewport-showcase {
  background: #0a0c13;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgb(0 0 0 / 50%);
}

.viewport-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #0d1019;
}

.viewport-tab {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 14px 14px;
  text-align: left;
  display: grid;
  gap: 4px;
  color: var(--quiet);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.viewport-tab:last-child {
  border-right: 0;
}

.viewport-tab:hover {
  background: rgb(255 255 255 / 4%);
  color: var(--ink);
}

.viewport-tab.is-active {
  background: rgb(38 187 255 / 11%);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.tab-index {
  font: 700 0.68rem/1 var(--mono);
  color: var(--cyan);
}

.tab-label {
  font-size: 0.83rem;
  font-weight: 620;
  line-height: 1.25;
}

.viewport-img-link img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  background: #06070b;
}

#stage-panel-physics .viewport-img-link img {
  object-fit: contain;
  padding: 28px 16px;
  background: #090c14;
}

.viewport-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: #0d1019;
  border-top: 1px solid var(--line);
}

.viewport-caption p {
  color: var(--soft);
  font-size: 0.92rem;
  max-width: 78ch;
}

/* 6-Layer Architecture Grid */
.arch-block {
  margin-top: 44px;
  padding: 30px;
  background: #0e111b;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.arch-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}

.arch-header h3 {
  font-size: 1.35rem;
}

.arch-header p {
  font-size: 0.88rem;
  color: var(--quiet);
  font-family: var(--mono);
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.arch-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.arch-num {
  font: 700 0.7rem/1 var(--mono);
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.arch-badge {
  font: 600 0.68rem/1 var(--mono);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(52 211 153 / 13%);
  color: #6ee7b7;
}

.arch-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.arch-card p {
  font-size: 0.88rem;
  color: var(--soft);
}

/* IDE Code Workbench */
.ide-shell {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  background: #090b11;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgb(0 0 0 / 55%);
}

.ide-sidebar {
  background: #0d1019;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.ide-tab {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  display: grid;
  gap: 4px;
  color: var(--soft);
  transition: background-color 0.15s ease;
}

.ide-tab:hover {
  background: rgb(255 255 255 / 4%);
}

.ide-tab.is-active {
  background: rgb(38 187 255 / 11%);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.ide-tab-badge {
  font: 700 0.66rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.ide-tab-title {
  font-size: 0.93rem;
}

.ide-tab-file {
  font: 500 0.74rem/1.2 var(--mono);
  color: var(--quiet);
}

.ide-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #0d1019;
  border-bottom: 1px solid var(--line);
  font: 600 0.76rem/1.2 var(--mono);
}

.ide-dots {
  display: inline-flex;
  gap: 6px;
}

.ide-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
}

.ide-filename {
  color: var(--ink);
}

.ide-target {
  color: var(--quiet);
  margin-left: auto;
}

.copy-btn {
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgb(255 255 255 / 6%);
  font: 600 0.74rem/1.2 var(--mono);
  color: var(--ink);
}

.copy-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.ide-summary {
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--soft);
  background: #0b0e16;
  border-bottom: 1px solid var(--line);
}

.ide-code {
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.62;
  color: #e2e8f0;
}

.code-line {
  display: inline;
}

.tok-kw {
  color: #5ccfe6;
  font-weight: 600;
}

.tok-str {
  color: #ffd580;
}

.tok-typ {
  color: #d4bfff;
}

.tok-num {
  color: #85e89d;
}

.tok-com {
  color: #6b7a94;
}

/* Studio Editor Showcase */
.studio-showcase {
  margin-bottom: 24px;
}

.pill-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--soft);
  transition: all 0.15s ease;
}

.pill-tab:hover {
  color: var(--ink);
  border-color: rgb(255 255 255 / 32%);
}

.pill-tab.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--cyan-ink);
}

.pill-tab--gold.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
}

.studio-figure {
  background: #0a0c13;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgb(0 0 0 / 58%);
}

.studio-frame-link img {
  width: 100%;
}

/* Yozakura Game Showcase */
.table-controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.table-controls-bar .pill-tablist {
  margin-bottom: 0;
}

.device-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: #0d1018;
  border: 1px solid var(--line-strong);
}

.device-btn {
  border: 0;
  background: transparent;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--quiet);
}

.device-btn.is-active {
  background: rgb(255 255 255 / 11%);
  color: var(--ink);
}

.game-stage-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: clamp(22px, 3.5vw, 44px);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: clamp(18px, 2.5vw, 28px);
}

.device-frame {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #07090e;
}

.device-frame--mobile {
  max-width: 310px;
  margin-inline: auto;
  border-radius: 22px;
  border-width: 2px;
}

.gold-pill {
  display: inline-block;
  font: 700 0.7rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--gold-dim);
  color: var(--gold);
  margin-bottom: 14px;
}

.game-stage-info h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  margin-bottom: 14px;
}

.game-stage-info p {
  color: var(--soft);
  font-size: 0.98rem;
  margin-bottom: 22px;
}

.game-stage-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* House Trio */
.house-trio {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.house-art {
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #0b0e16;
  border: 1px solid var(--line);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.house-art--avatars {
  gap: 12px;
  padding: 14px;
}

.house-art--avatars img {
  height: 100%;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
}

.house-art--invite {
  position: relative;
}

.house-art--invite .invite-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.invite-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 24px;
  border-radius: 8px;
  background: rgb(11 14 22 / 86%);
  border: 1px solid var(--bright-line);
}

.invite-card img {
  width: 48px;
  height: 48px;
}

.invite-card span {
  font-size: 0.78rem;
  color: var(--gold);
}

.house-art--poster img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Roadmap Grid */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.roadmap-card--live {
  border-color: rgb(52 211 153 / 38%);
}

.roadmap-card--active {
  border-color: rgb(38 187 255 / 42%);
}

.roadmap-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.roadmap-phase {
  font: 700 0.72rem/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--quiet);
}

.status-pill {
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
}

.status-pill--live {
  background: rgb(52 211 153 / 16%);
  color: #6ee7b7;
}

.status-pill--active {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.status-pill--next {
  background: var(--gold-dim);
  color: var(--gold);
}

.status-pill--future {
  background: rgb(255 255 255 / 8%);
  color: var(--soft);
}

.roadmap-card h3 {
  font-size: 1.32rem;
}

.roadmap-lane {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.roadmap-lane h4 {
  font: 700 0.74rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}

.roadmap-lane--engine h4 {
  color: var(--cyan);
}

.roadmap-lane ul {
  padding-left: 18px;
  display: grid;
  gap: 7px;
  font-size: 0.91rem;
  color: var(--soft);
}

/* Subpage Heroes & Spec Tables */
.subhero {
  padding: clamp(54px, 7vw, 92px) 0;
  background:
    radial-gradient(circle at 80% 20%, rgb(38 187 255 / 12%), transparent 48%), var(--bg-obsidian);
  border-bottom: 1px solid var(--line);
}

.subhero--gold {
  background:
    radial-gradient(circle at 80% 20%, rgb(232 199 134 / 12%), transparent 48%), var(--bg-obsidian);
}

.subhero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  max-width: 24ch;
  margin-bottom: 18px;
}

.subhero-lede {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--soft);
  max-width: 66ch;
  margin-bottom: 26px;
}

.spec-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-card);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  font: 700 0.73rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: #0d1019;
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table code {
  font-size: 0.82rem;
  color: #9be0ff;
  background: rgb(38 187 255 / 10%);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Closing Banner */
.closing-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 124px) 0;
  border-bottom: 1px solid var(--line);
}

.closing-bg {
  position: absolute;
  inset: 0;
}

.closing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.closing-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #07080c 15%, rgb(7 8 12 / 82%) 65%, rgb(7 8 12 / 92%) 100%);
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  display: grid;
  gap: 18px;
}

.closing-inner h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}

.closing-body {
  font-size: 1.05rem;
  color: var(--soft);
}

/* Footer */
.footer {
  background: #05060a;
  padding: clamp(52px, 6vw, 80px) 0 42px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-col p {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--quiet);
  max-width: 34ch;
}

.footer-col h3 {
  font: 700 0.74rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  font-size: 0.89rem;
  color: var(--quiet);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--quiet);
}

/* Lightbox Modal */
.lightbox {
  max-width: min(94vw, 1480px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #080a10;
  color: var(--ink);
  box-shadow: 0 32px 90px rgb(0 0 0 / 85%);
}

.lightbox::backdrop {
  background: rgb(3 4 8 / 86%);
  backdrop-filter: blur(8px);
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--soft);
}

.lightbox-close {
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  border-radius: 6px;
  padding: 5px 12px;
  font: 600 0.8rem/1.2 var(--mono);
}

.lightbox-body {
  padding: 12px;
  display: grid;
  place-items: center;
}

.lightbox-body img {
  max-height: calc(92vh - 84px);
  width: auto;
  border-radius: 6px;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .hero-inner,
  .section-head,
  .game-stage-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-grid--4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viewport-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .viewport-tab {
    border-bottom: 1px solid var(--line);
  }

  .arch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ide-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .ide-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    overflow-x: auto;
  }

  .ide-tab {
    min-width: 210px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .ide-tab.is-active {
    box-shadow: inset 0 -3px 0 var(--cyan);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .desk-nav,
  .mast-play-desktop {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .telemetry-strip,
  .bento-grid--4col,
  .bento-grid--2x2,
  .arch-grid,
  .house-trio,
  .roadmap-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .telemetry-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .telemetry-item:last-child {
    border-bottom: 0;
  }

  .viewport-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  .mast-inner {
    height: 62px;
    gap: 10px;
  }

  .brand-text {
    font-size: 1.04rem;
    letter-spacing: 0.12em;
  }

  .mast-actions {
    gap: 8px;
  }

  .language-link,
  .mobile-nav summary {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}
