:root {
  color-scheme: dark;
  --bg: #0c0c0f;
  --bg-soft: #161116;
  --surface: rgba(28, 28, 34, 0.86);
  --surface-strong: rgba(35, 35, 42, 0.92);
  --surface-plain: #19191f;
  --text: #f8f4f4;
  --muted: #a9a1a4;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #ef4444;
  --accent-deep: #991b1b;
  --accent-soft: rgba(239, 68, 68, 0.15);
  --green: #22c55e;
  --amber: #f59e0b;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  --radius: 22px;
  --radius-control: 16px;
  --radius-compact: 12px;
  --radius-pill: 999px;
  --content-width: 1180px;
  --topbar-width: 1320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f2f0;
  --bg-soft: #efe6e3;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --surface-plain: #ffffff;
  --text: #191315;
  --muted: #6e6265;
  --line: rgba(80, 35, 35, 0.14);
  --accent: #dc2626;
  --accent-deep: #7f1d1d;
  --accent-soft: rgba(220, 38, 38, 0.12);
  --green: #16a34a;
  --amber: #b86b00;
  --shadow: 0 9px 22px rgba(80, 35, 35, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(ellipse 95rem 48rem at 18% -12rem, rgba(239, 68, 68, 0.2), transparent 72%),
    radial-gradient(ellipse 78rem 44rem at 86% -10rem, rgba(245, 158, 11, 0.12), transparent 74%),
    radial-gradient(ellipse 85rem 58rem at 50% 115%, rgba(239, 68, 68, 0.08), transparent 72%),
    linear-gradient(145deg, var(--bg), var(--bg-soft));
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: transparent;
}

button {
  color: inherit;
  font: inherit;
  appearance: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  .page {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: min(var(--topbar-width), calc(100% - 28px));
  min-height: 84px;
  margin: 14px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.glass-panel {
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  position: absolute;
  inset: -18px;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 36%);
  background-size: 100% 100%;
}

.glass-panel > *,
.topbar > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
  padding: 6px 8px;
  border-radius: var(--radius-control);
  color: inherit;
  justify-self: start;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  border-radius: var(--radius-control);
  background:
    linear-gradient(145deg, rgba(239, 68, 68, 0.96), rgba(153, 27, 27, 0.9)),
    var(--accent);
  color: white;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 7px 16px rgba(239, 68, 68, 0.2);
}

.brand-mark img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand strong,
.brand small,
.nav-item strong,
.nav-item small {
  display: block;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand > span:not(.brand-mark),
.nav-item > span:not(.nav-icon) {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.brand small,
.nav-item small,
.metric span,
.command-row small,
.timeline small,
.wiki-link span,
p {
  color: var(--muted);
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  justify-self: center;
}

.nav-item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 194px;
  min-width: 194px;
  max-width: 194px;
  min-height: 62px;
  max-height: 62px;
  padding: 8px 14px 8px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.nav-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
  border-color: color-mix(in srgb, var(--project-color, var(--accent)) 30%, var(--line));
  background: color-mix(in srgb, var(--project-color, var(--accent)) 8%, var(--surface-strong));
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--project-color, var(--accent)) 7%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.nav-item > *,
.subnav button > *,
.wiki-link > * {
  position: relative;
  z-index: 1;
}

.nav-icon,
.action-icon {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  border-radius: var(--radius-compact);
  background: color-mix(in srgb, var(--project-color, var(--accent)) 12%, var(--surface-plain));
  color: var(--project-color, var(--accent));
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.nav-icon {
  overflow: hidden;
}

.action-icon {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
}

.nav-icon img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.nav-item[data-section="discord"] .nav-icon img {
  width: 88%;
  max-width: 88%;
  height: 88%;
  max-height: 88%;
  object-fit: contain;
}

.theme-button {
  display: grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  justify-self: end;
  line-height: 0;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.theme-button span,
.theme-button svg {
  display: block;
}

.theme-button span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.theme-button svg {
  width: 22px;
  height: 22px;
  transform: translateZ(0);
}

.theme-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
}

.theme-fade {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: opacity;
}

:root.theme-switching *:not(.theme-fade),
:root.theme-switching *:not(.theme-fade)::before,
:root.theme-switching *:not(.theme-fade)::after {
  transition: none !important;
}

.theme-fade.to-light {
  background:
    radial-gradient(ellipse 95rem 48rem at 18% -12rem, rgba(220, 38, 38, 0.14), transparent 72%),
    radial-gradient(ellipse 78rem 44rem at 86% -10rem, rgba(184, 107, 0, 0.1), transparent 74%),
    linear-gradient(145deg, #f6f2f0, #efe6e3);
}

.theme-fade.to-dark {
  background:
    radial-gradient(ellipse 95rem 48rem at 18% -12rem, rgba(239, 68, 68, 0.2), transparent 72%),
    radial-gradient(ellipse 78rem 44rem at 86% -10rem, rgba(245, 158, 11, 0.12), transparent 74%),
    linear-gradient(145deg, #0c0c0f, #161116);
}

.theme-fade.active {
  opacity: 0.92;
}

.theme-fade.done {
  opacity: 0;
}

.workspace {
  width: min(var(--content-width), calc(100% - 28px));
  margin: 0 auto;
}

.page-stage {
  padding: 26px 0 54px;
}

.page {
  display: grid;
  gap: 18px;
  animation: page-in 170ms ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy,
.panel,
.metric,
.command-row,
.shot-tile,
.visual-board,
.subnav {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 338px;
  padding: clamp(24px, 4vw, 38px);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 13px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 14%, transparent);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(35px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: 22px;
  letter-spacing: 0;
}

h3 {
  font-size: 16px;
}

p {
  line-height: 1.65;
}

.hero-copy p {
  max-width: 700px;
  margin-top: 18px;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 8px 18px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-button {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  color: color-mix(in srgb, var(--accent) 22%, var(--text));
  font-weight: 800;
}

.secondary-button {
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-strong));
}

.visual-board {
  position: relative;
  min-height: 338px;
  background:
    radial-gradient(circle at 25% 20%, rgba(239, 68, 68, 0.18), transparent 20rem),
    var(--surface);
}

.mock-window {
  position: absolute;
  inset: 26px;
  display: grid;
  grid-template-rows: 44px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(15, 15, 19, 0.42);
}

:root[data-theme="light"] .mock-window {
  background: rgba(255, 255, 255, 0.48);
}

.mock-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.mock-title span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.mock-title span:nth-child(2) {
  background: var(--amber);
}

.mock-title span:nth-child(3) {
  background: var(--green);
}

.mock-content {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 16px;
}

.mock-rail,
.mock-main,
.mock-card {
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .mock-rail,
:root[data-theme="light"] .mock-main,
:root[data-theme="light"] .mock-card {
  background: rgba(153, 27, 27, 0.08);
}

.mock-main {
  display: grid;
  grid-template-rows: 68px repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
}

.mock-card {
  opacity: 0.9;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 14px;
}

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

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

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

.project-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-align: left;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--project-color) 38%, var(--line));
  background: color-mix(in srgb, var(--project-color) 8%, var(--surface));
}

.project-card-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--project-color) 16%, var(--surface-plain));
  color: var(--project-color);
  font-weight: 900;
}

.project-card-icon img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.project-card[data-jump-section="discord"] .project-card-icon img {
  width: 88%;
  max-width: 88%;
  height: 88%;
  max-height: 88%;
  object-fit: contain;
}

.project-card strong,
.project-card small {
  display: block;
  line-height: 1.18;
}

.project-card small {
  color: var(--muted);
  margin-top: 3px;
}

.project-card-arrow {
  color: var(--muted);
  font-size: 24px;
}

.games-showcase {
  --project-color: var(--amber);
}

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

.game-card {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--project-color) 14%, transparent), transparent 58%),
    rgba(255, 255, 255, 0.045);
  color: inherit;
  text-align: left;
  box-shadow: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.game-card.featured {
  min-height: 250px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--project-color) 22%, transparent), transparent 62%),
    var(--surface);
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--project-color) 42%, var(--line));
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--project-color) 18%, var(--surface-plain));
  color: var(--project-color);
  font-weight: 900;
}

.game-status {
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--project-color) 14%, transparent);
  color: color-mix(in srgb, var(--project-color) 82%, var(--text));
  font-size: 12px;
  font-weight: 800;
}

.game-card strong,
.game-card small {
  display: block;
  line-height: 1.18;
}

.game-card strong {
  font-size: 22px;
}

.game-card small {
  max-width: 42ch;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.alias-preview {
  display: grid;
  grid-template-columns: minmax(150px, 0.46fr) minmax(0, 1fr);
  gap: 12px;
}

.alias-word,
.alias-rules,
.reward-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.055);
}

.alias-word {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 16px;
  text-align: center;
}

.alias-word small {
  color: var(--muted);
  font-weight: 700;
}

.alias-word strong {
  font-size: 32px;
}

.alias-rules {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 14px;
}

.alias-rules span,
.reward-list div {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius-compact);
  background: rgba(255, 255, 255, 0.045);
}

.reward-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.reward-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-list span {
  color: var(--muted);
  text-align: right;
}

.panel,
.metric {
  padding: 18px;
}

.metric {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 92px;
}

.metric strong {
  font-size: 26px;
  line-height: 1.08;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-header p {
  max-width: 64ch;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 84%, var(--text));
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.command-list {
  display: grid;
  gap: 10px;
}

.command-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  box-shadow: none;
  text-align: left;
  line-height: 1.25;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.command-row strong,
.command-row small {
  line-height: 1.22;
}

.command-row:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.command-row > small:last-child {
  justify-self: end;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.fake-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.fake-input span,
.fake-input strong {
  line-height: 1.2;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.timeline-item::before {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.subnav {
  display: flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  box-shadow: none;
}

.subnav button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.subnav button.active {
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-strong));
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--accent) 7%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 800;
}

.minecraft-tab-content {
  display: grid;
  gap: 18px;
  min-height: 520px;
  will-change: transform, opacity;
}

.minecraft-tab-content.tab-exit-down {
  animation: tab-exit-down 180ms ease both;
}

.minecraft-tab-content.tab-enter-up {
  animation: tab-enter-up 230ms ease both;
}

.minecraft-tab-content.tab-exit-up {
  animation: tab-exit-down 180ms ease both;
}

.minecraft-tab-content.tab-enter-down {
  animation: tab-enter-up 230ms ease both;
}

@keyframes tab-exit-down {
  to {
    opacity: 0;
    transform: translateY(26px);
  }
}

@keyframes tab-enter-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

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

.shot-tile {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 150px;
  padding: 14px;
  box-shadow: none;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(239, 68, 68, 0.11), transparent 55%),
    rgba(255, 255, 255, 0.045);
}

.shot-tile strong,
.shot-tile p {
  position: relative;
  z-index: 1;
}

.shot-tile::before {
  position: absolute;
  inset: 14px 14px auto;
  height: 64px;
  border: 1px dashed color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: var(--radius-control);
  content: "";
  opacity: 0.7;
}

.shot-tile:nth-child(2n) {
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.11), transparent 55%),
    rgba(255, 255, 255, 0.045);
}

.wiki-list {
  display: grid;
  gap: 10px;
}

.wiki-link {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 70px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  text-align: left;
}

.wiki-link strong,
.wiki-link span {
  line-height: 1.18;
}

.wiki-link span {
  max-width: 64ch;
  text-align: left;
}

.wiki-link.active {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-strong));
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--accent) 6%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wiki-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
}

.wiki-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.wiki-article {
  min-height: 520px;
}

.wiki-article-body {
  display: grid;
  gap: 12px;
  max-width: 760px;
  text-align: left;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .brand {
    min-width: 0;
  }

  .nav-list {
    grid-column: 1 / -1;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .nav-item {
    min-width: 140px;
    max-width: 164px;
  }

  .hero,
  .grid-2,
  .grid-3,
  .project-grid,
  .game-grid,
  .wiki-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  :root {
    --radius: 18px;
    --radius-control: 14px;
    --radius-compact: 10px;
  }

  .topbar,
  .workspace {
    width: min(100% - 20px, var(--content-width));
  }

  .topbar {
    top: 10px;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 6px;
    min-height: 66px;
    margin-top: 10px;
    padding: 8px;
  }

  .brand {
    min-width: 0;
    padding: 0;
  }

  .brand > span:not(.brand-mark),
  .nav-item strong,
  .nav-item small {
    display: none;
  }

  .brand-mark {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    border-radius: var(--radius-control);
    font-size: 15px;
  }

  .nav-list {
    grid-column: auto;
    justify-content: center;
    gap: 5px;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-item {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    padding: 0;
    border-radius: var(--radius-control);
  }

  .nav-icon {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    border-radius: inherit;
    background: transparent;
    font-size: 16px;
  }

  .nav-icon img {
    object-fit: cover;
  }

  .theme-button {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    border-radius: var(--radius-control);
  }

  .page-stage {
    padding-top: 18px;
  }

  .minecraft-tab-content {
    min-height: 760px;
  }

  .hero-copy,
  .visual-board {
    min-height: 290px;
  }

  .mock-window {
    inset: 14px;
  }

  .command-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .command-row > small {
    grid-column: 2;
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }

  .alias-preview {
    grid-template-columns: 1fr;
  }

  .game-card,
  .game-card.featured {
    min-height: 180px;
  }

  .reward-list div {
    display: grid;
    align-items: start;
  }

  .reward-list span {
    text-align: left;
  }

  .wiki-link {
    display: grid;
  }

  .wiki-link span {
    max-width: none;
    text-align: left;
  }
}
