:root {
  --background: #f5f2ee;
  --foreground: #171719;
  --card: #fffdfa;
  --card-foreground: #171719;
  --popover: #fffdfa;
  --popover-foreground: #171719;
  --primary: #f04b22;
  --primary-foreground: #ffffff;
  --secondary: #eae5df;
  --secondary-foreground: #171719;
  --muted: #eae5df;
  --muted-foreground: #6b6866;
  --accent: #ffb000;
  --accent-foreground: #171719;
  --destructive: #d62020;
  --border: #d7d1ca;
  --input: #d7d1ca;
  --ring: #f04b22;
  --radius: 0.9rem;
  --surface: #fffdfa;
  --surface-strong: #ebe6e0;
  --ink-soft: #5e5b58;
  --orange: #ff9e00;
  --red: #ff342e;
  --deep-red: #d9142e;
  --hero-panel: rgba(255, 253, 250, 0.86);
  --header-panel: rgba(255, 253, 250, 0.82);
  color-scheme: light;
}

html[data-theme="dark"] {
  --background: #0d0e10;
  --foreground: #f4f2ee;
  --card: #15171a;
  --card-foreground: #f4f2ee;
  --popover: #15171a;
  --popover-foreground: #f4f2ee;
  --primary: #ff562f;
  --primary-foreground: #ffffff;
  --secondary: #222428;
  --secondary-foreground: #f4f2ee;
  --muted: #222428;
  --muted-foreground: #a7a5a0;
  --accent: #ffad1f;
  --accent-foreground: #171719;
  --destructive: #ff5555;
  --border: rgba(255, 255, 255, 0.12);
  --input: rgba(255, 255, 255, 0.16);
  --ring: #ff6338;
  --surface: #15171a;
  --surface-strong: #202225;
  --ink-soft: #aaa8a3;
  --hero-panel: rgba(12, 13, 15, 0.79);
  --header-panel: rgba(12, 13, 15, 0.72);
  color-scheme: dark;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --font-sans: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 220ms ease, color 220ms ease;
}

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

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

.shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 820px;
  height: min(100svh, 980px);
  color: var(--foreground);
  isolation: isolate;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: url("assets/hero-sunset.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, var(--hero-panel) 0%, var(--hero-panel) 31%, transparent 62%),
    linear-gradient(180deg, var(--header-panel) 0%, transparent 23%, transparent 72%, rgba(10, 10, 12, 0.68) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  z-index: -2;
  width: min(800px, 65vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 117, 51, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255, 87, 46, 0.05), 0 0 0 180px rgba(255, 158, 0, 0.035);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to right, black, transparent 72%);
}

.site-header {
  height: 94px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--foreground) 18%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 900;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav a {
  position: relative;
  padding-block: 10px;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transition: right 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  right: 0;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--foreground) 16%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--background) 76%, transparent);
  backdrop-filter: blur(14px);
}

.theme-control span {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-switch {
  width: 34px;
  height: 19px;
  background: color-mix(in srgb, var(--foreground) 22%, transparent);
}

.theme-switch[data-state="checked"] {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.header-discord,
.login-button {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 3px 11px 3px 3px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.header-discord {
  border: 1px solid var(--red);
  color: #fff;
  background: linear-gradient(105deg, var(--orange), var(--red));
  box-shadow: 0 9px 24px rgba(233, 53, 34, 0.2);
}

.login-button {
  border: 1px solid color-mix(in srgb, var(--foreground) 34%, transparent);
  color: var(--foreground);
  background: color-mix(in srgb, var(--background) 70%, transparent);
  backdrop-filter: blur(12px);
}

.header-discord:hover,
.header-discord:focus-visible,
.login-button:hover,
.login-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(233, 53, 34, 0.34);
}

.section-rail {
  position: absolute;
  top: 50%;
  right: 22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: translateY(-50%);
}

.section-rail i {
  width: 2px;
  height: 116px;
  background: linear-gradient(180deg, var(--orange), var(--red), var(--deep-red));
}

.hero-content {
  height: calc(100% - 194px);
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-copy {
  max-width: 680px;
  padding: 54px 0 64px;
}

.eyebrow,
.kicker {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: color-mix(in srgb, var(--foreground) 74%, transparent);
}

.eyebrow span {
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.hero h1 {
  margin: 24px 0 26px;
  font-size: clamp(4rem, 8vw, 7.9rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  font-weight: 950;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(95deg, var(--orange), var(--red) 56%, #ff174a);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 42px rgba(255, 62, 42, 0.2);
}

.hero-copy > p {
  max-width: 530px;
  margin: 0;
  color: color-mix(in srgb, var(--foreground) 72%, transparent);
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 4px 14px 4px 4px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(105deg, var(--orange), var(--red) 58%, var(--deep-red));
  box-shadow: 0 13px 30px rgba(233, 53, 34, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 17px 36px rgba(233, 53, 34, 0.4);
}

.button-secondary {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--foreground) 24%, transparent);
  background: color-mix(in srgb, var(--background) 74%, transparent);
  backdrop-filter: blur(12px);
}

.hero-mark {
  align-self: flex-end;
  margin-bottom: 82px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-mark > span {
  font-size: clamp(4rem, 8vw, 8.5rem);
  line-height: 0.78;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -0.12em;
  text-shadow: 0 9px 42px rgba(0, 0, 0, 0.4);
}

.hero-mark > div {
  padding-left: 15px;
  border-left: 2px solid var(--red);
  display: flex;
  flex-direction: column;
}

.hero-mark small {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
}

.hero-mark strong {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.hero-footer {
  position: absolute;
  inset: auto 0 0;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-footer p {
  margin: 0;
}

.hero-footer > a,
.signal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4b2f;
  box-shadow: 0 0 0 7px rgba(255, 75, 47, 0.17);
  animation: pulse 2.2s ease-in-out infinite;
}

.city-section {
  padding-block: 130px 116px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 70px;
}

.kicker {
  width: fit-content;
  margin: 0 0 22px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--red) 60%, transparent);
  border-radius: 999px;
  color: var(--red);
  background: color-mix(in srgb, var(--red) 7%, transparent);
}

.section-heading h2,
.community-copy h2 {
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  font-weight: 950;
}

.section-heading h2 span {
  color: transparent;
  background: linear-gradient(90deg, var(--orange), var(--red) 62%, var(--deep-red));
  background-clip: text;
  -webkit-background-clip: text;
}

.section-intro {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.75;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 68px;
}

.experience-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent);
  background: #111216;
  isolation: isolate;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.experience-card:nth-child(2) {
  min-height: 520px;
}

.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(22, 18, 16, 0.2);
}

.experience-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.experience-card:hover img {
  transform: scale(1.035);
}

.experience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.06) 28%, rgba(8, 9, 11, 0.9) 100%);
}

.experience-overlay {
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 34px;
  color: #fff;
}

.experience-overlay > span {
  align-self: flex-start;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(10, 11, 13, 0.42);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  backdrop-filter: blur(10px);
}

.experience-card h3 {
  margin: 0 0 13px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
  text-transform: uppercase;
}

.experience-card p {
  margin: 0;
  max-width: 470px;
  color: rgba(255, 255, 255, 0.76);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.decision-strip {
  display: grid;
  grid-template-columns: auto minmax(220px, 0.75fr) minmax(300px, 1fr);
  align-items: center;
  gap: 32px;
  margin-top: 18px;
  padding: 30px 34px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
}

.decision-strip > span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.decision-strip h3 {
  margin: 0;
  font-size: 1.7rem;
  text-transform: uppercase;
}

.decision-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

.story-tags {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.story-tags span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.manifesto {
  min-height: 450px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  margin-bottom: 120px;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background: #111216;
}

.manifesto-art {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 44px;
  background:
    linear-gradient(120deg, rgba(255, 165, 0, 0.08), rgba(255, 51, 45, 0.25)),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255, 255, 255, 0.045) 80px 81px);
}

.manifesto-art strong {
  position: relative;
  z-index: 2;
  font-size: clamp(4.6rem, 11vw, 10rem);
  line-height: 0.72;
  letter-spacing: -0.1em;
  font-weight: 950;
}

.sun-disc {
  position: absolute;
  top: -31%;
  right: -7%;
  width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--orange), var(--red) 70%);
  box-shadow: 0 0 90px rgba(255, 74, 39, 0.36);
}

.horizon-line {
  position: absolute;
  right: 0;
  bottom: 39%;
  width: 72%;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
}

.manifesto-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px;
  background: linear-gradient(145deg, #ff9c00, #fa3f28 58%, #d90d31);
}

.manifesto-index {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.manifesto-copy p {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.07;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.manifesto-copy strong {
  font-weight: 950;
}

.community-section {
  position: relative;
  overflow: hidden;
  background: var(--surface-strong);
}

.community-section::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% 47%;
  width: 38%;
  background: linear-gradient(180deg, var(--orange), var(--red));
  transform: rotate(16deg);
  opacity: 0.92;
}

.community-inner {
  position: relative;
  z-index: 1;
  min-height: 610px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 100px;
}

.community-logo {
  width: min(470px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 28px 65px rgba(0, 0, 0, 0.28));
}

.community-copy {
  max-width: 640px;
  padding: 75px 0;
}

.community-copy h2 {
  font-size: clamp(3.5rem, 7vw, 7rem);
}

.community-copy > p:not(.kicker) {
  max-width: 500px;
  margin: 26px 0 34px;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

.site-footer {
  min-height: 125px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  justify-self: end;
}

.footer-brand {
  color: var(--foreground);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(255, 75, 47, 0.12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 75, 47, 0.02);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 760px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero-content {
    min-height: 560px;
  }

  .hero-mark {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-intro {
    max-width: 560px;
  }

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

  .experience-card,
  .experience-card:nth-child(2) {
    min-height: 430px;
    margin-top: 0;
  }

  .decision-strip {
    grid-template-columns: auto 0.8fr 1.2fr;
  }

  .experience-overlay {
    min-height: 430px;
  }

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

  .manifesto-copy {
    min-height: 260px;
  }

  .community-inner {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 35px;
  }

  .community-section::after {
    left: 32%;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p:first-of-type {
    display: none;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 32px, 1240px);
  }

  .hero {
    height: 840px;
  }

  .hero-image {
    background-position: 62% center;
  }

  .hero::before {
    background:
      linear-gradient(180deg, var(--header-panel) 0%, var(--hero-panel) 58%, rgba(10, 10, 12, 0.76) 100%);
  }

  .site-header {
    height: 78px;
  }

  .theme-control {
    min-height: 36px;
    padding-inline: 7px;
  }

  .theme-control span {
    display: none;
  }

  .header-discord,
  .login-button {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 0.64rem;
  }

  .section-rail {
    display: none;
  }

  .brand span {
    display: none;
  }

  .hero-content {
    height: calc(100% - 158px);
    min-height: 620px;
    align-items: flex-start;
  }

  .hero-copy {
    padding-top: 115px;
  }

  .hero h1 {
    font-size: clamp(3.65rem, 18vw, 5.5rem);
  }

  .hero-copy > p {
    max-width: 93%;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-footer {
    height: 80px;
  }

  .hero-footer p,
  .hero-footer > a {
    display: none;
  }

  .city-section {
    padding-block: 88px 82px;
  }

  .section-heading h2 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .experience-grid {
    margin-top: 48px;
  }

  .experience-card,
  .experience-card:nth-child(2) {
    min-height: 410px;
  }

  .experience-overlay {
    min-height: 410px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
  }

  .decision-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px;
  }

  .story-tags {
    grid-column: 1;
  }

  .manifesto {
    width: 100%;
    margin-bottom: 0;
  }

  .manifesto-art {
    min-height: 340px;
    padding: 28px 18px;
  }

  .manifesto-copy {
    padding: 32px;
  }

  .community-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 65px;
  }

  .community-logo {
    width: 230px;
    margin-inline: auto;
  }

  .community-copy {
    padding: 0 0 25px;
  }

  .community-copy h2 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .community-section::after {
    inset: auto -30% 60% auto;
    width: 90%;
    height: 180px;
  }

  .site-footer {
    min-height: 110px;
  }

  .site-footer p:last-child {
    font-size: 0.7rem;
  }
}

.site-header nav {
  gap: 25px;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.route-card-grid {
  grid-template-columns: repeat(4, 1fr);
}

.subpage-hero--rules {
  background-image: url("assets/hero-sunset.webp");
  background-position: center 46%;
}

.rule-version {
  width: fit-content;
  margin-top: 30px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(9, 10, 12, 0.34);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rulebook-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: 80px;
  padding-block: 105px 75px;
}

.rulebook-intro h2,
.rulebook-support h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.rulebook-intro > p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

.rulebook-browser {
  padding-bottom: 120px;
}

.rulebook-tools {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.rulebook-tools label {
  grid-column: 1 / -1;
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rule-search {
  height: 58px;
  padding-inline: 18px;
  border-radius: 12px;
  background: var(--background);
  font-family: Arial, sans-serif;
  font-size: 1rem;
}

.rulebook-tools > span {
  min-width: 150px;
  padding-block: 18px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-align: right;
  text-transform: uppercase;
}

.rule-tabs {
  margin-top: 35px;
}

.rule-tabs-list {
  width: 100%;
  height: auto;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 13px;
  scrollbar-width: thin;
}

.rule-tabs-list button {
  min-height: 43px;
  flex: 0 0 auto;
  padding-inline: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rule-tabs-list button[data-state="active"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(105deg, var(--orange), var(--red));
}

.rule-tabs-list button::after {
  display: none;
}

.rule-tabs-content {
  margin-top: 22px;
}

.rule-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rule-category {
  display: grid;
  grid-template-columns: minmax(250px, 0.58fr) minmax(0, 1.42fr);
  gap: 55px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.rule-category > header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.rule-category > header > span {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.rule-category h2 {
  margin: -7px 0 13px;
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.rule-category header p {
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.62;
}

.rule-accordion {
  border-top: 1px solid var(--border);
}

.rule-trigger {
  min-height: 74px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  padding-block: 17px;
  font-size: 1rem;
  text-decoration: none;
}

.rule-trigger:hover {
  text-decoration: none;
}

.rule-trigger > span {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rule-trigger > strong {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rule-content {
  padding: 0 42px 22px 48px;
}

.rule-content p {
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.72;
}

.rulebook-empty {
  padding: 80px 35px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  text-align: center;
}

.rulebook-empty strong {
  display: block;
  font-size: 1.7rem;
  text-transform: uppercase;
}

.rulebook-empty p {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
}

.rulebook-support {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 36px;
  margin-bottom: 120px;
  padding: 50px;
  overflow: hidden;
  border-radius: 25px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(13, 14, 17, 0.95), rgba(13, 14, 17, 0.73)),
    url("assets/community-sunset.webp") center / cover;
}

.rulebook-support > span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  font-size: 1.55rem;
  font-weight: 950;
}

.rulebook-support h2 {
  max-width: 900px;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.rulebook-support > div > p:last-child {
  max-width: 760px;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
  line-height: 1.72;
}

.dashboard-app {
  min-height: 100svh;
  background: color-mix(in srgb, var(--background) 88%, var(--surface-strong));
}

.dashboard-tabs {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.dashboard-brand > div {
  display: flex;
  flex-direction: column;
}

.dashboard-brand strong {
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.dashboard-brand span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-demo-badge {
  margin: 25px 0 30px;
  padding: 6px 10px;
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 45%, var(--border));
  background: color-mix(in srgb, var(--red) 7%, transparent);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-nav {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0;
  background: transparent;
}

.dashboard-nav button {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  gap: 13px;
  padding: 0 13px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-nav button > span {
  color: color-mix(in srgb, var(--ink-soft) 62%, transparent);
  font-size: 0.68rem;
}

.dashboard-nav button[data-state="active"] {
  color: #fff;
  background: linear-gradient(105deg, var(--orange), var(--red));
  box-shadow: 0 12px 25px rgba(232, 57, 30, 0.2);
}

.dashboard-nav button[data-state="active"] > span {
  color: rgba(255, 255, 255, 0.68);
}

.dashboard-sidebar-note {
  margin-top: auto;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--background);
}

.dashboard-sidebar-note strong {
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-sidebar-note p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
}

.dashboard-back {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dashboard-back:hover,
.dashboard-back:focus-visible {
  color: var(--red);
}

.dashboard-main {
  min-width: 0;
}

.dashboard-topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 13px 34px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(15px);
}

.dashboard-topbar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dashboard-topbar > div:first-child span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-topbar > div:first-child strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.dashboard-topbar-actions,
.dashboard-theme {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboard-theme {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
}

.dashboard-theme > span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-topbar button {
  min-height: 38px;
  padding-inline: 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink-soft);
  background: var(--background);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-topbar button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.dashboard-content {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: 40px 38px 70px;
}

.dashboard-panel {
  margin: 0;
}

.dashboard-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.dashboard-title-row h1 {
  margin: 15px 0 10px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.dashboard-title-row > div > p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.live-data-badge {
  background: linear-gradient(105deg, var(--orange), var(--red));
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dashboard-date {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.dashboard-metric {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.dashboard-metric--accent {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, #ff9f00, #f44328 62%, #d31331);
}

.dashboard-metric > span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dashboard-metric > strong {
  margin: auto 0 5px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.dashboard-metric > small {
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
}

.dashboard-metric--accent > small {
  color: rgba(255, 255, 255, 0.74);
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  margin-top: 14px;
}

.dashboard-character-preview {
  position: relative;
  min-height: 405px;
  overflow: hidden;
  border-radius: 20px;
  background: #111216;
}

.dashboard-character-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 12, 0.08), rgba(9, 10, 12, 0.92));
}

.dashboard-character-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-character-overlay {
  position: relative;
  z-index: 2;
  min-height: 405px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px;
  color: #fff;
}

.dashboard-character-overlay > div > span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-character-overlay h2 {
  margin: 8px 0 5px;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.dashboard-character-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
}

.dashboard-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.account-card {
  min-height: 405px;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.account-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.account-card header span,
.dashboard-card-header span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-card h2,
.dashboard-card-header h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.account-number {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--ink-soft);
  background: var(--background);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.budget-progress {
  margin-top: auto;
}

.budget-progress > div,
.development-row > div,
.vehicle-condition > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.budget-progress [data-slot="progress-indicator"],
.development-row [data-slot="progress-indicator"],
.vehicle-condition [data-slot="progress-indicator"] {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.account-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.account-split > div {
  padding: 13px;
  border-radius: 10px;
  background: var(--background);
}

.account-split span,
.account-split strong {
  display: block;
}

.account-split span {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-split strong {
  margin-top: 6px;
}

.dashboard-table-card {
  margin-top: 14px;
  overflow: hidden;
  padding: 26px;
}

.dashboard-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.transactions-table {
  font-family: Arial, sans-serif;
}

.transactions-table th {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.transactions-table td {
  height: 58px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.transactions-table .transaction-purpose {
  color: var(--foreground);
  font-weight: 700;
}

.transactions-table .amount-cell {
  color: var(--foreground);
  font-weight: 800;
  text-align: right;
}

.transactions-table .amount-positive {
  color: #24a35a;
}

.character-status {
  color: #24a35a;
  border-color: color-mix(in srgb, #24a35a 45%, var(--border));
}

.character-detail-grid {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 14px;
}

.character-identity-card {
  min-height: 445px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px;
  text-align: center;
}

.character-avatar {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red) 64%, var(--deep-red));
  box-shadow: 0 18px 40px rgba(232, 57, 30, 0.23);
  font-size: 2.25rem;
  font-weight: 950;
}

.character-identity-card h2 {
  margin: 24px 0 5px;
  font-size: 2rem;
  text-transform: uppercase;
}

.character-identity-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
}

.character-job {
  width: 100%;
  margin-top: auto;
  padding: 18px;
  border-radius: 12px;
  background: var(--background);
}

.character-job span,
.character-job strong,
.character-job small {
  display: block;
}

.character-job span {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.character-job strong {
  margin-top: 8px;
  font-size: 1.3rem;
}

.character-job small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
}

.character-data-card,
.licenses-card,
.development-card {
  padding: 27px;
}

.character-data-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
}

.character-data-card dl > div {
  padding: 21px 10px;
  border-bottom: 1px solid var(--border);
}

.character-data-card dt,
.vehicle-dashboard-card dt {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.character-data-card dd,
.vehicle-dashboard-card dd {
  margin: 8px 0 0;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.character-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.license-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  border-top: 1px solid var(--border);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.development-row {
  margin-top: 22px;
}

.vehicle-banner {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: #111216;
}

.vehicle-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 13, 0.88), rgba(10, 11, 13, 0.2));
}

.vehicle-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-banner > div {
  position: relative;
  z-index: 2;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.vehicle-banner span {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vehicle-banner strong {
  max-width: 700px;
  margin-top: 8px;
  font-size: clamp(2.3rem, 4.5vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.vehicle-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.vehicle-dashboard-card {
  min-height: 365px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.vehicle-dashboard-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vehicle-dashboard-card > header > span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
}

.vehicle-dashboard-card h2 {
  margin: 38px 0 5px;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.vehicle-dashboard-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
}

.vehicle-dashboard-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 0;
}

.vehicle-condition {
  margin-top: auto;
}

.finance-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

.finance-balance-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(125deg, #ff9f00, #f63f29 58%, #d31432);
}

.finance-balance-card > span {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.finance-balance-card > strong {
  margin-top: auto;
  font-size: clamp(3.3rem, 7vw, 7rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.finance-balance-card > p {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
}

.finance-card-number {
  align-self: flex-end;
  margin-top: 20px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.finance-account-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.finance-account-stack .dashboard-metric {
  min-height: 158px;
}

@media (max-width: 1180px) {
  .route-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-tabs {
    grid-template-columns: 225px minmax(0, 1fr);
  }

  .dashboard-sidebar {
    padding-inline: 16px;
  }

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

  .dashboard-overview-grid,
  .finance-hero-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-header nav {
    display: none;
  }

  .rulebook-intro,
  .rule-category {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .rulebook-tools {
    grid-template-columns: 1fr;
  }

  .rulebook-tools > span {
    min-width: 0;
    padding: 4px 0 0;
    text-align: left;
  }

  .dashboard-tabs {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .dashboard-brand img {
    width: 42px;
    height: 42px;
  }

  .dashboard-demo-badge,
  .dashboard-sidebar-note {
    display: none;
  }

  .dashboard-tabs .dashboard-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    overflow-x: auto;
  }

  .dashboard-tabs .dashboard-nav button {
    width: auto;
    min-width: max-content;
  }

  .dashboard-back {
    margin: 0;
  }

  .dashboard-topbar {
    padding-inline: 24px;
  }

  .dashboard-content {
    padding-inline: 24px;
  }

  .character-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .route-card-grid {
    grid-template-columns: 1fr;
  }

  .rulebook-intro {
    padding-block: 82px 58px;
  }

  .rulebook-intro h2,
  .rulebook-support h2 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .rulebook-browser {
    padding-bottom: 82px;
  }

  .rulebook-tools,
  .rule-category {
    padding: 24px;
  }

  .rule-category > header {
    gap: 13px;
  }

  .rule-trigger {
    grid-template-columns: 42px 1fr auto;
  }

  .rule-content {
    padding-left: 42px;
    padding-right: 24px;
  }

  .rulebook-support {
    grid-template-columns: 1fr;
    margin-bottom: 82px;
    padding: 30px;
  }

  .dashboard-sidebar {
    grid-template-columns: 1fr auto;
    gap: 13px;
    padding: 12px 16px;
  }

  .dashboard-brand > div,
  .dashboard-back {
    display: none;
  }

  .dashboard-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .dashboard-nav button {
    min-height: 42px;
    padding-inline: 11px;
    font-size: 0.75rem;
  }

  .dashboard-topbar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .dashboard-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-content {
    padding: 28px 16px 55px;
  }

  .dashboard-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-title-row h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .dashboard-metrics,
  .character-secondary-grid,
  .vehicle-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-metric {
    min-height: 135px;
  }

  .dashboard-character-preview,
  .dashboard-character-overlay,
  .account-card {
    min-height: 365px;
  }

  .dashboard-table-card {
    padding: 20px;
  }

  .character-data-card dl {
    grid-template-columns: 1fr;
  }

  .vehicle-banner,
  .vehicle-banner > div {
    min-height: 270px;
  }

  .finance-balance-card {
    min-height: 290px;
  }

  .finance-balance-card > strong {
    font-size: clamp(3rem, 15vw, 5rem);
  }
}

.rules-v2-page {
  background: var(--background);
}

.rules-v2-hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.96), rgba(8, 9, 11, 0.58) 58%, rgba(8, 9, 11, 0.26)),
    linear-gradient(180deg, rgba(8, 9, 11, 0.05), rgba(8, 9, 11, 0.82)),
    url("assets/hero-sunset.webp") center 54% / cover;
}

.rules-v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.rules-v2-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 13%;
  z-index: -1;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--orange), var(--red), transparent);
  transform: skewX(-18deg);
  box-shadow: 42px 0 0 rgba(255, 75, 40, 0.14), 84px 0 0 rgba(255, 75, 40, 0.07);
}

.rules-v2-ghost {
  position: absolute;
  right: -0.04em;
  bottom: -0.16em;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  font-size: clamp(10rem, 24vw, 25rem);
  font-weight: 950;
  line-height: 0.72;
  letter-spacing: -0.1em;
  text-transform: uppercase;
  user-select: none;
}

.rules-v2-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  align-items: end;
  gap: 70px;
  padding-block: 75px 82px;
}

.rules-v2-hero .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.rules-v2-hero h1 {
  margin: 17px 0 18px;
  font-size: clamp(4.8rem, 10vw, 9.5rem);
  line-height: 0.76;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.rules-v2-hero h1 span {
  color: var(--red);
}

.rules-v2-hero-copy > p:last-child {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.rules-v2-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.rules-v2-stats > div {
  min-height: 102px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.rules-v2-stats > div:last-child {
  border-right: 0;
}

.rules-v2-stats strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rules-v2-stats span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rules-v2-browser {
  position: relative;
  z-index: 3;
  margin-top: -38px;
  padding-bottom: 120px;
}

.rules-v2-command {
  min-height: 94px;
  display: grid;
  grid-template-columns: 210px minmax(250px, 1fr) 110px;
  align-items: center;
  gap: 24px;
  padding: 17px 24px;
  border: 1px solid var(--border);
  border-radius: 15px 15px 0 0;
  background: var(--surface);
  box-shadow: 0 20px 65px rgba(10, 10, 12, 0.14);
}

.rules-v2-command > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rules-v2-command label {
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-v2-command > div > span {
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
}

.rules-v2-search {
  height: 58px;
  padding-inline: 19px;
  border: 0;
  border-radius: 9px;
  background: var(--background);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px var(--border);
}

.rules-v2-command > strong {
  color: var(--red);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: right;
}

.rules-v2-command > strong span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rules-v2-workspace {
  min-height: 750px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  background: var(--surface);
}

.rules-v2-chapters {
  display: flex;
  flex-direction: column;
  padding: 31px 22px 25px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(18, 20, 23, 0.96), rgba(10, 11, 13, 1)),
    url("assets/garage-sunset.webp") center / cover;
}

.rules-v2-chapters-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-inline: 11px;
}

.rules-v2-chapters-title span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rules-v2-chapters-title strong {
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.rules-v2-chapter-list {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  margin-top: 24px;
  padding: 0;
  background: transparent;
}

.rules-v2-chapter-list button {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.54);
  background: transparent;
  text-align: left;
}

.rules-v2-chapter-list button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.rules-v2-chapter-list button[data-state="active"] {
  color: #fff;
  background: linear-gradient(105deg, rgba(255, 157, 0, 0.2), rgba(255, 57, 39, 0.26));
  box-shadow: inset 3px 0 0 var(--red);
}

.rules-v2-chapter-list button > span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
}

.rules-v2-chapter-list button > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.rules-v2-chapter-list button strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.rules-v2-chapter-list button small {
  color: rgba(255, 255, 255, 0.4);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
}

.rules-v2-chapters > p {
  margin: auto 11px 0;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-v2-view {
  min-width: 0;
  padding: 42px 48px 55px;
  background: var(--surface);
}

.rules-v2-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--border);
}

.rules-v2-view-head > span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rules-v2-view-head > strong {
  max-width: 70%;
  overflow: hidden;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rules-v2-content {
  margin: 0;
}

.rules-v2-groups {
  display: flex;
  flex-direction: column;
}

.rules-v2-category {
  padding-top: 42px;
}

.rules-v2-category + .rules-v2-category {
  margin-top: 50px;
  border-top: 1px solid var(--border);
}

.rules-v2-category-header {
  position: relative;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 25px;
}

.rules-v2-category-header > span {
  padding-top: 8px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rules-v2-category-header h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.rules-v2-category-header p {
  max-width: 620px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

.rules-v2-category-header small {
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-v2-rule-list {
  border-top: 1px solid var(--border);
}

.rules-v2-rule {
  position: relative;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 18px;
  padding: 27px 0;
  border-bottom: 1px solid var(--border);
  transition: padding 180ms ease, background-color 180ms ease;
}

.rules-v2-rule::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -48px;
  width: 3px;
  background: linear-gradient(180deg, var(--orange), var(--red));
  transform: scaleY(0);
  transition: transform 180ms ease;
}

.rules-v2-rule:hover {
  padding-left: 12px;
  background: color-mix(in srgb, var(--red) 4%, transparent);
}

.rules-v2-rule:hover::before {
  transform: scaleY(1);
}

.rules-v2-rule > span {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.rules-v2-rule h3 {
  margin: -4px 0 8px;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.rules-v2-rule p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.72;
}

.rules-v2-empty {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rules-v2-empty > span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
}

.rules-v2-empty strong {
  margin-top: 13px;
  font-size: 2.5rem;
  text-transform: uppercase;
}

.rules-v2-empty p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
}

.rules-v2-principles {
  padding-block: 105px;
  color: #fff;
  background: #0d0e10;
}

.rules-v2-section-label {
  margin: 0 0 33px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rules-v2-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.rules-v2-principle-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
}

.rules-v2-principle-grid article:last-child {
  border-right: 0;
}

.rules-v2-principle-grid span {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
}

.rules-v2-principle-grid h2 {
  margin: auto 0 10px;
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.rules-v2-principle-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-family: Arial, sans-serif;
  line-height: 1.55;
}

.rules-v2-support {
  display: grid;
  grid-template-columns: 70px minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 35px;
  margin-block: 110px;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.rules-v2-support-index {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 1.5rem;
  font-weight: 950;
}

.rules-v2-support > div:nth-child(2) > span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rules-v2-support h2 {
  margin: 9px 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.rules-v2-support > p {
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.72;
}

@media (max-width: 1050px) {
  .rules-v2-hero-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .rules-v2-stats {
    max-width: 520px;
  }

  .rules-v2-workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .rules-v2-view {
    padding-inline: 34px;
  }

  .rules-v2-support {
    grid-template-columns: 64px 1fr;
  }

  .rules-v2-support > p {
    grid-column: 2;
  }
}

@media (max-width: 780px) {
  .rules-v2-hero {
    min-height: 520px;
  }

  .rules-v2-hero-content {
    padding-block: 78px 82px;
  }

  .rules-v2-hero h1 {
    font-size: clamp(4.4rem, 18vw, 7rem);
  }

  .rules-v2-browser {
    width: 100%;
    margin-top: 0;
  }

  .rules-v2-command {
    grid-template-columns: 1fr auto;
    border-radius: 0;
  }

  .rules-v2-command > div {
    grid-column: 1 / -1;
  }

  .rules-v2-command > strong {
    min-width: 75px;
  }

  .rules-v2-workspace {
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .rules-v2-chapters {
    padding: 24px 18px 18px;
  }

  .rules-v2-workspace .rules-v2-chapter-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .rules-v2-workspace .rules-v2-chapter-list button {
    width: 190px;
    flex: 0 0 190px;
  }

  .rules-v2-chapters > p {
    display: none;
  }

  .rules-v2-view {
    padding: 35px 24px 45px;
  }

  .rules-v2-category-header,
  .rules-v2-rule {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .rules-v2-category-header small {
    grid-column: 2;
    justify-self: start;
  }

  .rules-v2-principle-grid {
    grid-template-columns: 1fr;
  }

  .rules-v2-principle-grid article {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  }

  .rules-v2-principle-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .rules-v2-hero {
    min-height: 560px;
  }

  .rules-v2-hero-content {
    padding-block: 105px 55px;
  }

  .rules-v2-stats > div {
    min-height: 88px;
    padding-inline: 11px;
  }

  .rules-v2-stats strong {
    font-size: 1.55rem;
  }

  .rules-v2-command {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }

  .rules-v2-command > strong {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }

  .rules-v2-command > strong span {
    display: inline;
  }

  .rules-v2-view {
    padding-inline: 18px;
  }

  .rules-v2-view-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .rules-v2-view-head > strong {
    max-width: 100%;
  }

  .rules-v2-category-header {
    grid-template-columns: 1fr;
  }

  .rules-v2-category-header small {
    grid-column: 1;
  }

  .rules-v2-rule {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .rules-v2-rule h3 {
    font-size: 1.08rem;
  }

  .rules-v2-support {
    grid-template-columns: 1fr;
    margin-block: 80px;
    padding: 28px;
  }

  .rules-v2-support > p {
    grid-column: 1;
  }
}

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

.site-header {
  column-gap: 22px;
}

.header-actions {
  min-width: 0;
  white-space: nowrap;
}

.section-heading > *,
.experience-grid > *,
.decision-strip > *,
.info-hub > *,
.route-card-grid > *,
.manifesto > *,
.community-inner > *,
.steps-grid > *,
.image-content > *,
.faq-section > *,
.role-grid > *,
.prompt-grid > *,
.knowledge-layout > *,
.principle-grid > *,
.glossary-grid > *,
.footer-wrap .site-footer > *,
.dashboard-metrics > *,
.dashboard-overview-grid > *,
.character-detail-grid > *,
.character-secondary-grid > *,
.vehicle-dashboard-grid > *,
.finance-hero-grid > *,
.rules-v2-hero-content > *,
.rules-v2-command > *,
.rules-v2-workspace > *,
.rules-v2-principle-grid > *,
.rules-v2-support > * {
  min-width: 0;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    z-index: 19;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 26px;
    overflow-x: auto;
    border-bottom: 1px solid color-mix(in srgb, var(--foreground) 16%, transparent);
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--red);
  }

  .mobile-nav--hero {
    color: var(--foreground);
    background: color-mix(in srgb, var(--background) 86%, transparent);
    backdrop-filter: blur(14px);
  }

  .mobile-nav--page {
    background: var(--background);
  }

  .hero-content {
    height: calc(100% - 242px);
  }
}

@media (max-width: 1024px) {
  .dashboard-tabs {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: relative;
    top: auto;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .dashboard-brand img {
    width: 42px;
    height: 42px;
  }

  .dashboard-demo-badge,
  .dashboard-sidebar-note {
    display: none;
  }

  .dashboard-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dashboard-nav::-webkit-scrollbar {
    display: none;
  }

  .dashboard-nav button {
    width: auto;
    min-width: max-content;
  }

  .dashboard-back {
    margin: 0;
  }

  .dashboard-topbar {
    padding-inline: 24px;
  }

  .dashboard-content {
    padding-inline: 24px;
  }

  .character-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-content {
    min-height: 0;
  }

  .rules-v2-workspace {
    grid-template-columns: 1fr;
    border-radius: 0 0 18px 18px;
  }

  .rules-v2-chapters {
    padding: 24px 18px 18px;
  }

  .rules-v2-chapter-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .rules-v2-chapter-list::-webkit-scrollbar {
    display: none;
  }

  .rules-v2-chapter-list button {
    width: 190px;
    flex: 0 0 190px;
  }

  .rules-v2-chapters > p {
    display: none;
  }

  .rules-v2-view {
    padding: 35px 30px 48px;
  }
}

@media (max-width: 800px) {
  .community-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 70px;
  }

  .community-logo {
    width: min(290px, 70vw);
    margin-inline: auto;
  }

  .community-copy {
    max-width: 620px;
    padding: 0 0 24px;
  }

  .community-section::after {
    inset: auto -18% 68% auto;
    width: 72%;
    height: 150px;
  }

  .subpage-cta > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .subpage-cta .button {
    width: auto;
  }
}

@media (max-width: 760px) {
  .decision-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .story-tags {
    grid-column: 1;
  }

  .footer-wrap .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-wrap nav {
    margin-block: 10px;
  }

  .footer-meta {
    grid-column: auto;
  }

  .dashboard-sidebar {
    grid-template-columns: 1fr auto;
    gap: 13px;
    padding: 12px 16px;
  }

  .dashboard-brand > div,
  .dashboard-back {
    display: none;
  }

  .dashboard-tabs .dashboard-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .dashboard-tabs .dashboard-nav button {
    min-height: 42px;
    padding-inline: 11px;
    font-size: 0.75rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .mobile-nav {
    width: 100%;
    gap: 22px;
    padding-inline: 14px;
  }

  .hero-content {
    height: calc(100% - 202px);
    min-height: 620px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 100%;
    width: 100%;
  }

  .subpage-hero-content {
    width: min(100% - 32px, 1240px);
  }

  .subpage-hero .button,
  .subpage-cta .button {
    width: 100%;
  }

  .image-content-media {
    min-height: 370px;
  }

  .dashboard-topbar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .dashboard-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-content {
    padding: 28px 16px 55px;
  }

  .dashboard-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-metrics,
  .character-secondary-grid,
  .vehicle-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .character-data-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-discord {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-control {
    padding-inline: 7px;
  }

  .login-button {
    padding-inline: 13px;
  }

  .rules-v2-stats > div {
    min-width: 0;
  }

  .rules-v2-stats strong {
    font-size: 1.4rem;
  }

  .rules-v2-stats span {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }

  .rules-v2-view {
    padding-inline: 16px;
  }

  .rules-v2-workspace .rules-v2-chapter-list button {
    width: 170px;
    flex-basis: 170px;
  }

  .dashboard-theme > span {
    display: none;
  }

  .dashboard-topbar-actions {
    gap: 8px;
  }
}

[hidden] {
  display: none !important;
}

.static-theme-switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.static-theme-switch i {
  width: 15px;
  height: 15px;
  display: block;
  margin-left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease;
}

html[data-theme="dark"] .static-theme-switch i {
  transform: translateX(15px);
}

.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 9px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--primary-foreground);
  background: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.badge-outline {
  color: var(--foreground);
  border-color: var(--border);
  background: transparent;
}

.badge-secondary {
  color: var(--secondary-foreground);
  background: var(--secondary);
}

.progress {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 20%, transparent);
}

.progress > span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

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

.dashboard-nav button,
.rules-v2-chapter-list button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.rules-v2-search {
  width: 100%;
  outline: none;
}

.rules-v2-search:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ring), 0 0 0 3px color-mix(in srgb, var(--ring) 20%, transparent);
}

.static-placeholder {
  cursor: default;
}

.static-export-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: min(360px, calc(100% - 32px));
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 15px 45px rgba(10, 10, 12, 0.16);
  backdrop-filter: blur(14px);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
}

.knowledge-nav button {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.knowledge-nav button:last-child {
  border-bottom: 0;
}

.knowledge-nav button:hover,
.knowledge-nav button:focus-visible {
  color: var(--red);
}

.hero-footer > button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

.site-header nav a[aria-current="page"]::after {
  right: 0;
}

.site-header--page {
  position: relative;
  z-index: 20;
  background: var(--background);
}

.mobile-nav {
  display: none;
}

.info-hub {
  padding: 0 0 120px;
}

.info-hub-heading {
  max-width: 850px;
}

.info-hub-heading h2,
.content-heading h2,
.image-content-copy h2,
.faq-section h2,
.prompt-section h2,
.subpage-cta h2,
.conduct-panel h2,
.notice-panel h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5.8vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.info-hub-heading > p:last-child,
.content-heading > p:last-child {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.75;
}

.route-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 54px;
}

.route-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.route-card:hover,
.route-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--red) 65%, var(--border));
  box-shadow: 0 26px 60px rgba(22, 18, 16, 0.16);
}

.route-card:nth-child(2) {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(155deg, rgba(16, 17, 20, 0.2), rgba(16, 17, 20, 0.94)),
    url("assets/community-sunset.webp") center / cover;
}

.route-card-number {
  margin-bottom: auto;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.route-card:nth-child(2) .route-card-number {
  color: var(--orange);
}

.route-card > p {
  margin: 25px 0 10px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-card:nth-child(2) > p {
  color: var(--orange);
}

.route-card h3 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.route-card > span:not(.route-card-number) {
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

.route-card:nth-child(2) > span:not(.route-card-number) {
  color: rgba(255, 255, 255, 0.74);
}

.route-card strong {
  margin-top: 25px;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-wrap {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-wrap .site-footer {
  min-height: auto;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  align-items: start;
  padding-block: 56px;
  text-transform: none;
  letter-spacing: 0;
}

.footer-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-intro p,
.footer-meta p {
  max-width: 390px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.footer-wrap nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  color: var(--foreground);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-wrap nav a:hover,
.footer-wrap nav a:focus-visible {
  color: var(--red);
}

.footer-meta {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  text-align: right;
}

.footer-wrap .footer-meta p:last-child {
  color: var(--foreground);
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subpage {
  min-height: 100svh;
  background: var(--background);
}

.subpage-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, 0.93) 0%, rgba(10, 11, 13, 0.68) 48%, rgba(10, 11, 13, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 11, 13, 0.08), rgba(10, 11, 13, 0.75));
}

.subpage-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -55% auto;
  z-index: -1;
  width: min(730px, 65vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 113, 41, 0.62);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 72, 38, 0.06), 0 0 0 160px rgba(255, 166, 0, 0.04);
}

.subpage-hero--start {
  background-image: url("assets/garage-sunset.webp");
}

.subpage-hero--welt {
  background-image: url("assets/community-sunset.webp");
  background-position: center 36%;
}

.subpage-hero--wissen {
  background-image: url("assets/hero-sunset.webp");
  background-position: center 58%;
}

.subpage-hero-content {
  padding-block: 105px 82px;
}

.subpage-hero .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.subpage-hero h1 {
  max-width: 930px;
  margin: 22px 0 24px;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.83;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.subpage-hero-content > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.72;
}

.subpage-hero .button {
  margin-top: 32px;
}

.content-section,
.prompt-section {
  padding-block: 120px;
}

.content-heading {
  max-width: 920px;
}

.content-heading--compact h2 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 58px;
}

.step-card,
.role-card,
.prompt-grid article,
.principle-grid article {
  border: 1px solid var(--border);
  background: var(--surface);
}

.step-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 18px;
}

.step-card > span,
.role-card > span,
.prompt-grid article > span,
.principle-grid article > span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.step-card h3,
.role-card h3,
.prompt-grid h3,
.principle-grid h3 {
  margin: auto 0 14px;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.step-card p,
.role-card p,
.prompt-grid p,
.principle-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

.step-card a {
  margin-top: 18px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.image-content {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 76px;
  padding-bottom: 120px;
}

.image-content--reverse .image-content-media {
  order: 2;
}

.image-content-media {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 26px;
  background: #111216;
}

.image-content-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(9, 10, 12, 0.76));
}

.image-content-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-content-media > span {
  position: absolute;
  left: 28px;
  bottom: 25px;
  z-index: 2;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.image-content-copy > p:not(.kicker) {
  margin: 24px 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.75;
}

.image-content-copy blockquote {
  margin: 34px 0 0;
  padding: 24px 0 24px 25px;
  border-left: 3px solid var(--red);
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 27px;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.text-link {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 85px;
  padding-block: 110px;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  cursor: pointer;
  padding: 25px 40px 25px 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.faq-list p {
  max-width: 670px;
  margin: -3px 0 25px;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

.subpage-cta {
  padding-block: 72px;
  color: #fff;
  background: linear-gradient(110deg, #f6a000, #fb4528 58%, #d91331);
}

.subpage-cta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.subpage-cta .kicker {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.subpage-cta h2 {
  font-size: clamp(2.8rem, 5.5vw, 5.7rem);
}

.subpage-cta .button-primary {
  flex: 0 0 auto;
  color: #171719;
  background: #fff;
  box-shadow: 0 13px 30px rgba(63, 10, 10, 0.2);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 58px;
}

.role-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 20px;
}

.role-card h3 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.role-card p {
  max-width: 600px;
}

.role-card .story-tags {
  grid-column: auto;
  margin-top: 28px;
}

.prompt-section {
  border-top: 1px solid var(--border);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 55px;
}

.prompt-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 17px;
}

.prompt-grid h3 {
  margin-top: auto;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 90px;
  padding-block: 120px;
}

.knowledge-nav {
  position: sticky;
  top: 28px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.knowledge-nav span {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.knowledge-nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.knowledge-nav a:last-child {
  border: 0;
}

.knowledge-nav a:hover,
.knowledge-nav a:focus-visible {
  color: var(--red);
}

.knowledge-section {
  margin-top: 105px;
  scroll-margin-top: 30px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 50px;
}

.principle-grid article {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 18px;
}

.principle-grid h3 {
  margin-top: auto;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 48px 0 0;
}

.glossary-grid > div {
  min-height: 180px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.glossary-grid dt {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.glossary-grid dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

.conduct-panel {
  padding: 45px;
  border-radius: 24px;
  color: #fff;
  background: #131518;
}

.conduct-panel > p:not(.kicker) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.7);
  font-family: Arial, sans-serif;
  line-height: 1.75;
}

.conduct-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 32px;
}

.conduct-list span {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 35px;
  border: 1px solid color-mix(in srgb, var(--red) 50%, var(--border));
  border-radius: 20px;
  background: color-mix(in srgb, var(--red) 7%, var(--surface));
}

.notice-panel > span {
  align-self: start;
  padding: 8px 10px;
  color: #fff;
  border-radius: 6px;
  background: var(--red);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notice-panel h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.notice-panel p {
  max-width: 700px;
  margin: 19px 0 25px;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

@media (max-width: 1050px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-content {
    gap: 42px;
  }

  .knowledge-layout {
    gap: 45px;
  }
}

@media (max-width: 900px) {
  .mobile-nav {
    position: relative;
    z-index: 19;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 26px;
    overflow-x: auto;
    border-bottom: 1px solid color-mix(in srgb, var(--foreground) 16%, transparent);
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--red);
  }

  .mobile-nav--hero {
    color: var(--foreground);
    background: color-mix(in srgb, var(--background) 82%, transparent);
    backdrop-filter: blur(14px);
  }

  .mobile-nav--page {
    background: var(--background);
  }

  .hero-content {
    height: calc(100% - 242px);
  }

  .route-card-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 320px;
  }

  .footer-wrap .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta {
    grid-column: 1 / -1;
    justify-self: stretch;
    align-items: flex-start;
    text-align: left;
  }

  .subpage-hero {
    min-height: 590px;
  }

  .image-content,
  .image-content--reverse {
    grid-template-columns: 1fr;
  }

  .image-content--reverse .image-content-media {
    order: 0;
  }

  .image-content-media {
    min-height: 500px;
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .knowledge-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .knowledge-nav span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .mobile-nav {
    width: 100%;
    padding-inline: 16px;
  }

  .hero-content {
    height: calc(100% - 202px);
  }

  .info-hub {
    padding-block: 82px;
  }

  .info-hub-heading h2,
  .content-heading h2,
  .image-content-copy h2,
  .faq-section h2,
  .prompt-section h2,
  .subpage-cta h2 {
    font-size: clamp(2.65rem, 13vw, 4.4rem);
  }

  .route-card {
    min-height: 340px;
    padding: 25px;
  }

  .footer-wrap .site-footer {
    grid-template-columns: 1fr;
    padding-block: 42px;
  }

  .footer-wrap nav {
    margin-block: 10px;
  }

  .subpage-hero {
    min-height: 600px;
  }

  .subpage-hero::before {
    background: linear-gradient(180deg, rgba(9, 10, 12, 0.45), rgba(9, 10, 12, 0.94));
  }

  .subpage-hero-content {
    padding-block: 110px 58px;
  }

  .subpage-hero h1 {
    font-size: clamp(3.5rem, 17vw, 5.4rem);
  }

  .content-section,
  .prompt-section,
  .knowledge-layout {
    padding-block: 82px;
  }

  .steps-grid,
  .role-grid,
  .prompt-grid,
  .principle-grid,
  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 300px;
  }

  .image-content {
    padding-bottom: 82px;
  }

  .image-content-media {
    min-height: 400px;
  }

  .faq-section {
    padding-block: 82px;
  }

  .subpage-cta > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-card {
    min-height: 350px;
  }

  .knowledge-nav {
    grid-template-columns: 1fr;
  }

  .knowledge-nav span {
    grid-column: auto;
  }

  .conduct-panel {
    padding: 29px;
  }

  .conduct-list {
    grid-template-columns: 1fr;
  }

  .notice-panel {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

/* SunsetV visual refinements */

/* The hero grid is no longer needed over the dark header gradient. */
.hero-grid {
  display: none;
}

/* GTA V / Los Santos cityscape behind the manifesto artwork. */
.manifesto-art {
  background:
    linear-gradient(120deg, rgba(255, 165, 0, 0.12), rgba(8, 10, 14, 0.62)),
    url("https://d1lss44hh2trtw.cloudfront.net/assets/editorial/2022/12/gta-5.jpg") center / cover;
}

/* Move the copy into the orange diagonal band. */
.community-copy {
  padding-left: clamp(28px, 4vw, 64px);
}

@media (max-width: 800px) {
  .community-copy {
    padding-left: 0;
  }
}

/* Keep the theme controls present without making them compete with the header. */
.theme-control,
.dashboard-theme {
  gap: 5px;
  min-height: 30px;
  padding: 4px 7px;
  border-color: color-mix(in srgb, var(--foreground) 10%, transparent);
  background: color-mix(in srgb, var(--background) 48%, transparent);
  opacity: 0.7;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.theme-control:hover,
.theme-control:focus-within,
.dashboard-theme:hover,
.dashboard-theme:focus-within {
  opacity: 1;
  border-color: color-mix(in srgb, var(--foreground) 22%, transparent);
}

.theme-control span,
.dashboard-theme > span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.theme-switch {
  width: 26px;
  height: 15px;
  background: color-mix(in srgb, var(--foreground) 16%, transparent);
}

.static-theme-switch i {
  width: 11px;
  height: 11px;
  margin-left: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .static-theme-switch i {
  transform: translateX(11px);
}

/* Keep every step's content aligned from the top of the card. */
.step-card {
  justify-content: flex-start;
}

.step-card h3 {
  margin: 22px 0 14px;
}

@media (min-width: 1051px) {
  .steps-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Align the content of every informational card consistently from the top. */
.route-card-number {
  margin-bottom: 0;
}

.role-card h3,
.prompt-grid h3,
.principle-grid h3 {
  margin: 22px 0 14px;
}

.rules-v2-principle-grid h2 {
  margin: 22px 0 10px;
}
