@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(assets/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Shared design system. Layouts fill the viewport; prose keeps a readable measure. */
:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Manrope", var(--font-body);
  --page-gutter: clamp(20px, 4vw, 96px);
  --section-space: clamp(64px, 6vw, 112px);
  --grid-gap: clamp(16px, 1.5vw, 28px);
  --card-padding: clamp(24px, 2vw, 36px);
  --card-radius: 16px;
  --background: #f7f6f3;
  --surface: #ffffff;
  --surface-strong: #eeece7;
  --foreground: #20211f;
  --ink-soft: #62635f;
  --border: #dddfd8;
  --red: #bd431d;
  --ring: #bd431d;
}

html[data-theme="dark"] {
  --background: #101211;
  --surface: #191c1a;
  --surface-strong: #202420;
  --foreground: #f4f5ef;
  --ink-soft: #b4b9b0;
  --border: #333931;
  --red: #ff9b62;
  --ring: #ff9b62;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: var(--font-body); }
button, a, input, select, textarea, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 5px; }
::selection { color: var(--foreground); background: color-mix(in srgb, var(--red) 26%, var(--background)); }

.shell {
  width: calc(100% - var(--page-gutter) * 2);
  max-width: none;
  margin-inline: auto;
}

/* One heading hierarchy for marketing pages, the rulebook and the portal. */
:is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-heading);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

:is(.hero h1, .subpage-hero h1, .rules-v2-hero h1) {
  font-size: clamp(2.75rem, 5.3vw, 6.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-transform: none;
  font-weight: 800;
}

:is(.section-heading h2, .community-copy h2, .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, .server-features-heading h2,
.rules-v2-support h2) {
  max-width: 24ch;
  font-size: clamp(2rem, 3.1vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-transform: none;
  font-weight: 700;
}

:is(.experience-card h3, .decision-strip h3, .route-card h3, .step-card h3,
.role-card h3, .prompt-grid h3, .principle-grid h3, .feature-grid h3,
.rules-v2-principle-grid h2, .office-section-label h2, .office-form-heading h3,
.office-empty-state h2) {
  font-size: clamp(1.25rem, 1.6vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-transform: none;
  font-weight: 700;
}

:is(.kicker, .eyebrow, .subpage-cta .kicker) {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker { margin-bottom: 18px; }
.eyebrow span { flex: 0 0 24px; height: 2px; }
p { text-wrap: pretty; }

/* The header and theme switch share a single alignment, including on tablets. */
.site-header { height: 88px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.site-header nav { gap: clamp(20px, 2.2vw, 40px); font-size: 0.875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.site-header nav a { padding-block: 12px; color: var(--ink-soft); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--foreground); }
.brand { font-size: 1.2rem; }
.header-actions, .dashboard-topbar-actions { padding-right: 0; gap: 12px; }
.theme-control, .dashboard-theme {
  position: static;
  inset: auto;
  flex: 0 0 auto;
  order: 3;
  opacity: 1;
  padding: 0;
}
.theme-control .theme-switch, .dashboard-theme .theme-switch {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
:is(.button, .header-discord, .login-button) {
  min-height: 48px;
  padding-inline: 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}
.header-discord, .login-button { min-height: 42px; padding-inline: 20px; }
.header-discord { display: inline-flex; align-items: center; justify-content: center; }
.button-primary, .header-discord, .subpage-cta .button-primary {
  color: #fff;
  border: 1px solid #bc431d;
  background: #bc431d;
  box-shadow: none;
}
:is(.button-primary, .header-discord, .subpage-cta .button-primary):is(:hover, :focus-visible) {
  color: #fff;
  border-color: #9f3516;
  background: #9f3516;
  box-shadow: none;
  transform: translateY(-2px);
}
.button-secondary { background: color-mix(in srgb, var(--background) 60%, transparent); }

/* A viewport-height introduction with enough space for the complete headline. */
.hero { display: flex; flex-direction: column; height: auto; min-height: 100svh; }
.hero-content { flex: 1; height: auto; min-height: 0; padding-block: clamp(64px, 9vh, 120px); }
.hero-copy { width: min(1100px, 70%); max-width: none; padding: 0; }
.hero h1 { margin: 24px 0 28px; }
.hero h1 em { background-image: linear-gradient(100deg, #ffba77, #ff7850); text-shadow: none; }
.hero-copy > p { max-width: 58ch; font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.75; }
.hero-actions { margin-top: 32px; gap: 12px; }
.hero-footer { position: static; min-height: 80px; height: auto; padding-block: 20px; gap: 24px; }
.hero-footer :is(p, button, .signal) { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; }
.hero-footer { color: var(--ink-soft); border-color: var(--border); }
.hero-footer :is(p, button, .signal) { color: inherit; }
.hero::after, .section-rail, .subpage-hero::after, .rules-v2-hero::after { display: none; }
html[data-theme="light"] .hero::before {
  background: linear-gradient(90deg, rgba(247,246,243,.96), rgba(247,246,243,.85) 38%, rgba(247,246,243,.12) 85%), linear-gradient(180deg, rgba(247,246,243,.85), transparent 24%, transparent 74%, rgba(247,246,243,.8));
}
html[data-theme="light"] .hero h1 em { background-image: linear-gradient(100deg, #a34c11, #b93822); }
html[data-theme="dark"] .hero::before {
  background: linear-gradient(90deg, rgba(16,18,17,.91), rgba(16,18,17,.7) 40%, rgba(16,18,17,.08) 85%), linear-gradient(180deg, rgba(16,18,17,.8), transparent 25%, transparent 72%, #101211);
}

/* Balanced grids use the available width without stretching long paragraphs. */
.city-section, .content-section, .prompt-section, .server-features, .knowledge-layout, .faq-section { padding-block: var(--section-space); }
.info-hub { padding-block: 0 var(--section-space); }
.image-content { padding-bottom: var(--section-space); }
.section-heading, .server-features-heading { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 6vw, 100px); }
.section-intro, .server-features-heading > p { max-width: 58ch; font-size: 1rem; }
.section-heading h2 span { color: var(--red); background: none; }
.info-hub-heading, .content-heading { max-width: none; }
.info-hub-heading > p:last-child, .content-heading > p:last-child { max-width: 65ch; margin-top: 24px; }
.experience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; gap: var(--grid-gap); }
.experience-card, .experience-card:nth-child(2) { min-height: clamp(380px, 29vw, 560px); border-radius: var(--card-radius); }
.experience-overlay { align-items: flex-start; flex-direction: column; justify-content: space-between; padding: var(--card-padding); }
.experience-overlay > span { padding: 6px 0; border: 0; background: none; backdrop-filter: none; font-size: .75rem; font-weight: 600; letter-spacing: .1em; }
.experience-card h3 { font-size: clamp(1.75rem, 2.3vw, 2.75rem); }
.experience-card p { max-width: 56ch; color: #e0e2dc; }
.decision-strip { gap: 24px; padding: var(--card-padding); border-radius: var(--card-radius); margin-top: var(--grid-gap); }
.story-tags span { padding: 6px 12px; font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.route-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
:is(.route-card-grid, .feature-grid, .steps-grid, .role-grid, .prompt-grid, .principle-grid, .glossary-grid) { gap: var(--grid-gap); margin-top: 40px; }
:is(.route-card, .step-card, .role-card, .prompt-grid article, .principle-grid article, .feature-grid article, .glossary-grid > div) {
  min-height: 0;
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background: var(--surface);
}
.route-card { min-height: 320px; }
.route-card:nth-child(2) { color: var(--foreground); border-color: var(--border); background: var(--surface); }
.route-card:nth-child(2) .route-card-number, .route-card:nth-child(2) > p { color: var(--red); }
.route-card:nth-child(2) > span:not(.route-card-number) { color: var(--ink-soft); }
.route-card > p { font-size: .75rem; line-height: 1.5; letter-spacing: .03em; font-weight: 600; text-transform: none; }
.route-card h3 { margin: 0 0 16px; }
.route-card strong { padding-top: 28px; margin-top: auto; font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.step-card h3, .role-card h3, .prompt-grid h3, .principle-grid h3, .feature-grid h3 { margin: 28px 0 14px; }
.step-card h3 { font-size: 1.25rem; }
:is(.step-card p, .role-card p, .prompt-grid p, .principle-grid p, .feature-grid p, .route-card > span:not(.route-card-number)) { font-size: .9375rem; line-height: 1.75; }
:is(.step-card > span, .role-card > span, .prompt-grid article > span, .principle-grid article > span, .feature-grid article > span, .route-card-number) { font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
.step-card a { padding-top: 24px; margin-top: auto; font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.role-card .story-tags { padding-top: 24px; margin-top: auto; }
.feature-grid article { min-height: 250px; }
.feature-grid h3 { max-width: 25ch; }
.route-card:hover, .experience-card:hover { transform: translateY(-3px); box-shadow: none; }
.manifesto { grid-template-columns: 1.2fr 1fr; margin-bottom: var(--section-space); border-radius: var(--card-radius); background: url("assets/sunset-bg.png") center / cover; }
.manifesto-art { background: transparent; padding: var(--card-padding); }
.manifesto-art strong { font-family: var(--font-heading); font-size: clamp(3rem, 8vw, 9rem); line-height: 1; letter-spacing: -.06em; }
.manifesto-copy { padding: clamp(28px, 4vw, 64px); }
.manifesto-copy p { max-width: 22ch; font-family: var(--font-heading); font-size: clamp(1.75rem, 2.5vw, 3rem); line-height: 1.3; letter-spacing: -.035em; text-transform: none; }
.community-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); min-height: 540px; gap: 8vw; padding-block: var(--section-space); }
.community-logo { justify-self: center; width: min(320px, 80%); }
html[data-theme="light"] .community-logo { padding: 28px; border-radius: 50%; background: #202420; filter: none; }
.community-copy { max-width: none; padding: 0; }
.community-copy > p:not(.kicker) { max-width: 60ch; font-size: 1rem; }

/* Subpages share the same introduction, spacing and content rhythm. */
.subpage-hero { min-height: clamp(500px, 66svh, 780px); }
.subpage-hero-content { padding-block: 80px; }
.subpage-hero h1 { max-width: min(1100px, 80%); margin-block: 24px; }
.subpage-hero-content > p:not(.eyebrow) { max-width: 65ch; font-size: 1rem; color: #d4d8d0; }
.image-content { gap: clamp(32px, 5vw, 96px); }
.image-content-media { min-height: 520px; border-radius: var(--card-radius); }
.image-content-copy > p:not(.kicker), .check-list { max-width: 65ch; }
.image-content-copy blockquote { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.5; letter-spacing: -.025em; text-transform: none; }
.text-link { font-size: .875rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.faq-section { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 100px); }
.faq-list summary { padding-block: 24px; font-size: 1.0625rem; font-weight: 600; line-height: 1.5; text-transform: none; }
.subpage-cta { padding-block: var(--section-space); }
.subpage-cta h2 { max-width: 25ch; }
.knowledge-layout { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 4vw, 80px); }
.knowledge-nav { border-radius: var(--card-radius); }
.knowledge-nav :is(a, button) { font-size: .875rem; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.knowledge-nav span { font-size: .75rem; font-weight: 600; }
.knowledge-section { margin-top: var(--section-space); }
.glossary-grid dt { font-size: 1.25rem; font-weight: 600; }
.conduct-panel, .notice-panel { padding: var(--card-padding); border-radius: var(--card-radius); }
.conduct-panel h2 { color: #f4f5ef; }

/* The rulebook expands horizontally, with measured text inside each rule. */
.rules-v2-hero { min-height: 490px; }
.rules-v2-hero-content { grid-template-columns: minmax(0, 1fr) minmax(300px, .4fr); gap: 6vw; padding-block: 72px 96px; }
.rules-v2-hero h1 { font-size: clamp(2.75rem, 4.5vw, 5.5rem); max-width: 20ch; }
.rules-v2-hero-copy > p:last-child { max-width: 65ch; }
.rules-v2-stats strong { font-family: var(--font-heading); font-weight: 700; }
.rules-v2-stats span { color: #c5c9c0; font-weight: 500; }
.rules-v2-ghost { opacity: .45; }
.rules-v2-browser { padding-bottom: var(--section-space); }
.rules-v2-command { grid-template-columns: 240px minmax(0, 1fr) 110px; box-shadow: none; }
.rules-v2-command label { font-size: .875rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.rules-v2-search { font-size: 1rem; }
.rules-v2-workspace { grid-template-columns: 290px minmax(0, 1fr); min-height: 640px; border-radius: 0 0 var(--card-radius) var(--card-radius); }
.rules-v2-chapters { padding: 28px 20px; background: #181d18; }
.rules-v2-chapters-title strong { font-family: var(--font-heading); font-size: 1.5rem; text-transform: none; }
.rules-v2-chapters-title span, .rules-v2-chapters > p { color: #adb6a6; font-size: .75rem; font-weight: 500; }
.rules-v2-chapter-list button { color: #d1d8cb; }
.rules-v2-chapter-list button strong { font-size: .875rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; white-space: normal; }
.rules-v2-chapter-list button small { color: #b4bfad; font-size: .75rem; }
.rules-v2-view { padding: clamp(24px, 3vw, 56px); }
.rules-v2-category-header { grid-template-columns: 80px minmax(0, 1fr) auto; }
.rules-v2-category-header h2 { font-size: clamp(1.75rem, 2.5vw, 3rem); line-height: 1.2; letter-spacing: -.035em; text-transform: none; }
.rules-v2-rule { grid-template-columns: 80px minmax(0, 1fr); gap: 18px; }
.rules-v2-rule h3 { font-size: 1.0625rem; line-height: 1.4; text-transform: none; letter-spacing: -.015em; }
.rules-v2-rule p { max-width: 85ch; font-size: .9375rem; line-height: 1.8; }
.rules-v2-rule:hover { padding-left: 0; }
.rules-v2-principles { padding-bottom: 0; }
.rules-v2-principle-grid article { padding: var(--card-padding); }
.rules-v2-support { margin-block: var(--section-space); padding: var(--card-padding); border-radius: var(--card-radius); }
.rules-v2-support h2 { font-size: clamp(1.75rem, 2.5vw, 3rem); }

/* The portal uses all space beside its navigation, at comfortable UI sizes. */
.dashboard-tabs { grid-template-columns: 256px minmax(0, 1fr); }
.dashboard-sidebar { padding: 28px 20px; }
.dashboard-nav button { min-height: 48px; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: .875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.dashboard-nav button[data-state="inactive"] { background: transparent; text-align: left; }
.dashboard-nav button:hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 5%, transparent); }
.dashboard-brand > div { display: flex; flex-direction: column; gap: 2px; }
.dashboard-brand span, .dashboard-demo-badge, .dashboard-back, .dashboard-sidebar-note p { font-size: .75rem; }
.dashboard-topbar { min-height: 80px; padding: 16px clamp(24px, 3vw, 64px); }
.dashboard-topbar > div:first-child span { font-size: .75rem; font-weight: 500; }
.dashboard-topbar > div:first-child strong { font-size: .9375rem; }
.dashboard-topbar button { min-height: 40px; font-size: .8125rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.dashboard-content { width: 100%; max-width: none; padding: clamp(28px, 3vw, 56px) clamp(24px, 3vw, 64px) 64px; }
.dashboard-title-row { margin-bottom: 32px; }
.dashboard-title-row h1 { margin-block: 12px; font-size: clamp(2rem, 3vw, 3.5rem); line-height: 1.2; letter-spacing: -.04em; text-transform: none; }
:is(.dashboard-player-summary, .dashboard-metrics, .dashboard-overview-grid, .character-detail-grid, .character-secondary-grid, .vehicle-dashboard-grid, .finance-hero-grid) { gap: var(--grid-gap); }
.dashboard-player-summary > article, .dashboard-metric { min-height: 154px; padding: 24px; border-radius: var(--card-radius); }
.dashboard-player-summary span, .dashboard-player-summary small, .dashboard-metric > span, .dashboard-metric > small { font-size: .8125rem; line-height: 1.5; font-weight: 500; letter-spacing: 0; text-transform: none; }
.dashboard-player-summary strong { font-size: clamp(1.25rem, 1.8vw, 2rem); line-height: 1.25; overflow-wrap: anywhere; letter-spacing: -.025em; text-transform: none; }
.dashboard-card, .vehicle-dashboard-card, .finance-balance-card { border-radius: var(--card-radius); }
:is(.dashboard-card-header h2, .character-identity-card h2, .vehicle-dashboard-card h2) { font-size: 1.5rem; line-height: 1.3; letter-spacing: -.025em; text-transform: none; }
.dashboard-table-card, .character-data-card, .licenses-card, .development-card, .vehicle-dashboard-card { padding: var(--card-padding); }
.dashboard-table-card, .character-secondary-grid, .vehicle-dashboard-grid { margin-top: var(--grid-gap); }
.dashboard-date, .live-data-badge { font-size: .75rem; font-weight: 500; letter-spacing: .03em; }
.live-data-badge { color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.finance-balance-card { color: #f4f5ef; border: 1px solid #705542; background: radial-gradient(ellipse at top right, #61462d, transparent 75%), #202420; }
.transactions-table :is(th, td) { font-size: .875rem; }
.transactions-table td { height: 58px; }
:is(.dashboard-metric strong, .finance-balance-card > strong, .transactions-table, .account-number) { font-variant-numeric: tabular-nums; }
.office-category-nav button { min-height: 44px; font-size: .8125rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.office-layout { gap: var(--grid-gap); margin-top: 24px; }
.office-catalog, .office-form { padding: var(--card-padding); }
.office-service { padding: 16px; }
.office-service-copy strong { font-size: .875rem; line-height: 1.5; font-weight: 600; white-space: normal; text-transform: none; }
.office-service-copy small { font-size: .8125rem; line-height: 1.5; white-space: normal; }
.office-form-intro, .office-empty-state p { font-size: .9375rem; line-height: 1.7; }
.office-field > span { font-size: .8125rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.office-field :is(input, select, textarea) { min-height: 46px; font-size: 1rem; }
.office-form-footer .button { min-height: 46px; font-size: .875rem; }
.office-form-footer small, .office-form-status { font-size: .8125rem; }
.footer-wrap .site-footer { padding-block: 48px; gap: 40px; }
.footer-wrap nav { gap: 12px; font-size: .875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.footer-intro p, .footer-meta p { font-size: .8125rem; }

@media (min-width: 1800px) {
  .role-grid, .principle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .role-card .story-tags { gap: 6px; }
}

@media (max-width: 1280px) {
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { width: 80%; }
}

@media (max-width: 1120px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header nav { display: none; }
  .mobile-nav { display: flex; min-height: 52px; height: auto; gap: 28px; padding-block: 6px; background: transparent; }
  .mobile-nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: .875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .hero-content { height: auto; }
  .rules-v2-hero-content { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .rules-v2-category-header { grid-template-columns: minmax(0, 1fr) auto; }
  .rules-v2-category-header > span { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .dashboard-tabs { grid-template-columns: minmax(0, 1fr); }
  .dashboard-sidebar { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 20px var(--page-gutter); }
  .dashboard-tabs .dashboard-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; }
  .dashboard-nav button { flex: 0 0 auto; }
  .dashboard-back { display: block; }
  .dashboard-sidebar .dashboard-demo-badge { display: none; }
  .dashboard-brand > div { display: flex; }
  .office-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .section-heading, .server-features-heading, .faq-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section-intro { max-width: 65ch; }
  .hero-copy { width: 90%; }
  .subpage-hero h1 { max-width: 100%; }
  .steps-grid, .feature-grid, .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-card, .experience-card:nth-child(2) { min-height: 440px; }
  .image-content { grid-template-columns: minmax(0, 1fr); }
  .image-content-media { min-height: 420px; }
  .manifesto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto-art { min-height: 340px; }
  .community-inner { min-height: 0; gap: 36px; }
  .knowledge-layout { grid-template-columns: minmax(0, 1fr); }
  .knowledge-nav { position: static; }
  .rules-v2-hero-content { grid-template-columns: minmax(0, 1fr); }
  .rules-v2-stats { max-width: 460px; }
  .rules-v2-workspace { grid-template-columns: minmax(0, 1fr); }
  .rules-v2-chapter-list { overflow-x: auto; }
  .rules-v2-chapter-list button { flex-shrink: 0; }
  .rules-v2-command { grid-template-columns: minmax(0, 1fr) 90px; gap: 16px; }
  .rules-v2-command > div { grid-column: 1; }
  .rules-v2-command > strong { grid-row: 1; grid-column: 2; }
  .rules-v2-command input { grid-column: 1 / -1; }
  .rules-v2-rule { grid-template-columns: 48px minmax(0, 1fr); }
  .footer-wrap .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  :root { --page-gutter: 20px; --card-padding: 24px; }
  .site-header { height: 76px; column-gap: 12px; }
  .brand img { width: 36px; height: 36px; }
  .header-actions { gap: 8px; }
  .header-discord { display: none; }
  .login-button { min-height: 44px; padding-inline: 16px; }
  .mobile-nav { padding-inline: 0; gap: clamp(12px, 3vw, 24px); justify-content: space-between; }
  .hero-content { padding-block: 56px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(2.5rem, 9.5vw, 3.5rem); }
  .hero h1 br { display: none; }
  .hero-copy > p { font-size: 1rem; }
  html[data-theme="dark"] .hero::before { background: linear-gradient(90deg, rgba(16,18,17,.9), rgba(16,18,17,.58)), linear-gradient(0deg, #101211, transparent 80%); }
  html[data-theme="light"] .hero::before { background: linear-gradient(90deg, rgba(247,246,243,.96), rgba(247,246,243,.72)); }
  .hero-actions .button { min-height: 50px; }
  .hero-footer { min-height: 64px; }
  .hero-footer > p { display: none; }
  .hero-footer button { min-height: 44px; }
  .eyebrow { font-size: .6875rem; letter-spacing: .08em; }
  .subpage-hero { min-height: 0; }
  .subpage-hero-content { padding-block: 60px; }
  .subpage-hero h1, .rules-v2-hero h1 { font-size: clamp(2.35rem, 8.5vw, 3.5rem); }
  .experience-grid, .route-card-grid, .steps-grid, .role-grid, .feature-grid,
  .prompt-grid, .principle-grid, .glossary-grid { grid-template-columns: minmax(0, 1fr); }
  .experience-card, .experience-card:nth-child(2) { min-height: 400px; }
  .route-card, .step-card, .role-card, .feature-grid article, .prompt-grid article, .principle-grid article { min-height: 0; }
  .decision-strip { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .decision-strip .story-tags { grid-column: auto; }
  .manifesto { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .manifesto-art { min-height: 260px; }
  .manifesto-copy { gap: 40px; border-left: 0; }
  .community-inner { grid-template-columns: minmax(0, 1fr); }
  .community-logo { width: 160px; justify-self: start; }
  html[data-theme="light"] .community-logo { padding: 16px; }
  .community-copy { padding: 0; }
  .image-content-media { min-height: 320px; }
  .subpage-cta > div { align-items: stretch; }
  .rules-v2-hero-content { padding-block: 60px 80px; }
  .rules-v2-hero h1 { margin-block: 20px; }
  .rules-v2-view { padding: 24px 20px; }
  .rules-v2-rule { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rules-v2-category-header { grid-template-columns: minmax(0, 1fr); }
  .rules-v2-category-header small { grid-column: 1; justify-self: start; }
  .rules-v2-rule::before { display: none; }
  .rules-v2-principle-grid article { padding-inline: 0; }
  .dashboard-content { padding: 28px var(--page-gutter) 56px; }
  .dashboard-topbar { padding-inline: var(--page-gutter); }
  .dashboard-player-summary { grid-template-columns: minmax(0, 1fr); }
  .dashboard-title-row h1 { font-size: 2rem; }
  .dashboard-card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dashboard-card-header h2 { font-size: clamp(1.25rem, 5.5vw, 1.5rem); }
  .office-form-fields { grid-template-columns: minmax(0, 1fr); }
  .office-service { padding: 12px; grid-template-columns: 24px minmax(0, 1fr) 16px; gap: 8px; }
  .office-form-footer .button { width: 100%; }
  .footer-wrap .site-footer { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

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