:root {
  --ink: #0b0b0a;
  --ink-soft: #11110f;
  --graphite: #191917;
  --graphite-light: #23221f;
  --paper: #eee8dc;
  --muted: #aaa59a;
  --gold: #c6a56d;
  --gold-bright: #e0c18c;
  --sage: #91a58a;
  --brick: #b66657;
  --line: rgba(238, 232, 220, 0.14);
  --line-strong: rgba(198, 165, 109, 0.42);
  --display: "Arial Narrow", "Franklin Gothic Condensed", Impact, sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
  --max: 1240px;
  --header-h: 74px;
  --space-section: 92px;
  --space-section-mobile: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("assets/logo-ig-roleplay.png");
  background-position: 115% 115%;
  background-repeat: no-repeat;
  background-size: min(58vw, 850px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 10, 0.96);
}

.nav-shell {
  width: min(calc(100% - 40px), 1380px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 178px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-copy {
  margin-left: 11px;
  display: grid;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--gold);
  font-family: var(--body);
  font-size: 9px;
  font-weight: 700;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 8px;
  color: #c6c1b7;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--gold);
}

.site-nav .nav-discord {
  margin-left: 6px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
}

.site-nav .nav-discord:hover {
  background: var(--gold);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 160ms ease;
}

.menu-toggle::after {
  margin-top: 6px;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-3.5px) rotate(-45deg);
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(54px, 7vw, 96px);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 66px);
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.lede {
  max-width: 760px;
  color: #cbc5ba;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.button-secondary {
  background: rgba(11, 11, 10, 0.55);
  color: var(--paper);
}

.button-secondary:hover {
  background: var(--paper);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-weight: 700;
  border-bottom: 1px solid rgba(198, 165, 109, 0.5);
}

.text-link::after {
  content: "\2192";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.hero {
  position: relative;
  min-height: calc(82svh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #100f0d url("assets/hero-background.webp") center 56% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 6, 0.96) 0%, rgba(7, 7, 6, 0.72) 48%, rgba(7, 7, 6, 0.08) 82%), linear-gradient(0deg, var(--ink) 0%, transparent 38%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 34px 0 46px;
  transform: translateY(2%);
}

.hero-logo {
  width: clamp(138px, 10vw, 154px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 12px;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
}

.hero h1 span {
  display: block;
  color: var(--gold-bright);
  font-size: 0.5em;
  line-height: 1.08;
}

.hero .lede {
  max-width: 620px;
  margin-bottom: 20px;
}

.hero-status {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 34px;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 22px;
  padding-left: 18px;
  border-left: 2px solid var(--sage);
  font-size: 13px;
}

.hero-status span:nth-child(odd) {
  color: var(--muted);
}

.band {
  padding: var(--space-section) 0;
}

.band-graphite {
  background: var(--graphite);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 54px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.city-state {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.city-state > div {
  min-height: 160px;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
}

.city-state > div:last-child {
  border-right: 0;
}

.city-state strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.city-state small {
  color: var(--muted);
  font-size: 14px;
}

.status-line {
  color: var(--sage);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.pillar {
  position: relative;
  min-height: 330px;
  padding: 36px 32px;
  border-right: 1px solid var(--line);
}

.pillar:last-child {
  border-right: 0;
}

.pillar-index {
  display: block;
  margin-bottom: 80px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
}

.pillar p {
  color: var(--muted);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  counter-increment: step;
  padding: 28px 34px 30px 0;
  border-top: 1px solid var(--line-strong);
}

.step + .step {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 30px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.portal-link {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  transition: background 160ms ease;
}

.portal-link:hover {
  background: rgba(198, 165, 109, 0.08);
}

.portal-link span {
  color: var(--muted);
}

.portal-link strong {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.portal-link strong::after {
  content: "\2197";
  color: var(--gold);
  font-family: var(--body);
  font-size: 24px;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
  background: var(--paper);
  color: var(--ink);
}

.final-cta::after {
  content: "IG";
  position: absolute;
  right: -20px;
  bottom: -76px;
  color: rgba(11, 11, 10, 0.045);
  font-family: var(--display);
  font-size: 300px;
  font-weight: 900;
  line-height: 1;
}

.final-cta .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.final-cta h2 {
  max-width: 800px;
  margin: 0;
}

.page-hero {
  padding: 82px 0 64px;
  background: var(--ink-soft);
}

.page-hero h1 {
  max-width: 1050px;
  margin-bottom: 24px;
  font-size: clamp(52px, 7vw, 92px);
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}

.page-hero-meta strong {
  color: var(--sage);
}

.shop-hero {
  padding: 82px 0 64px;
  background: var(--ink-soft);
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 72px;
}

.shop-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(64px, 8vw, 112px);
}

.shop-hero h1 span {
  color: var(--gold);
}

.shop-hero img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  opacity: 0.82;
}

.shop-status {
  background: var(--gold);
  color: var(--ink);
}

.shop-status .container {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.shop-status strong {
  font-family: var(--display);
  font-size: 17px;
  text-transform: uppercase;
}

.shop-status a {
  margin-left: auto;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto repeat(8, auto) auto;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.vip-card {
  grid-row: 1 / span 12;
  min-height: 0;
  display: grid;
  grid-template-rows: subgrid;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.vip-card-featured {
  background: rgba(198, 165, 109, 0.07);
}

.vip-card-premium {
  box-shadow: inset 0 3px 0 var(--gold);
  background: var(--ink-soft);
}

.vip-level {
  margin: 0;
  color: var(--gold);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.vip-price {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.vip-price-main {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.vip-price-period {
  display: block;
  min-height: 18px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.vip-card h3 {
  align-self: start;
  margin: 0;
  padding: 26px 0 20px;
  font-size: 32px;
}

.vip-features {
  grid-row: span 8;
  display: grid;
  grid-template-rows: subgrid;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vip-features li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.vip-features li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--sage);
  transform: translateY(-50%);
}

.vip-feature-span-two {
  grid-row: span 2;
}

.vip-card .button {
  width: 100%;
  min-height: 48px;
  align-self: end;
  margin-top: 28px;
}

.shop-notes {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
  gap: 80px;
}

.shop-faq {
  margin: 0;
}

.shop-faq div {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.shop-faq dt {
  margin-bottom: 8px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-faq dd {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 10, 0.97);
}

.filter-controls {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.business-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.business-card {
  min-height: 260px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.business-card[hidden] {
  display: none;
}

.business-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.business-card p {
  max-width: 580px;
  color: var(--muted);
}

.business-card footer {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: #c9c4ba;
  font-size: 14px;
}

.status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--sage);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.status-recruiting {
  color: var(--gold-bright);
}

.status-soon {
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 76px;
}

.process-aside {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.process-aside p {
  color: var(--muted);
}

.criteria-list,
.timeline,
.reason-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.criteria-list li,
.reason-list li {
  position: relative;
  padding: 18px 0 18px 30px;
  border-top: 1px solid var(--line);
}

.criteria-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 28px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--sage);
}

.reason-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 29px;
  width: 10px;
  height: 1px;
  background: var(--brick);
}

.timeline {
  counter-reset: timeline;
}

.timeline li {
  counter-increment: timeline;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.timeline li::before {
  content: "0" counter(timeline);
  color: var(--gold);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.timeline p {
  color: var(--muted);
}

.notice {
  padding: 22px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(198, 165, 109, 0.07);
}

.notice-spaced {
  margin-top: 32px;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
}

.empty-state {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.empty-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--graphite);
}

.empty-visual img {
  width: 45%;
  opacity: 0.25;
  filter: grayscale(1);
}

.empty-visual::before,
.empty-visual::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 1px;
  background: var(--line-strong);
  transform: rotate(32deg);
}

.empty-visual::after {
  transform: rotate(-32deg);
}

.empty-copy {
  padding: 54px;
}

.empty-copy p {
  max-width: 520px;
  color: var(--muted);
}

.rule-tools {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 10, 0.98);
}

.rule-tools-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.reading-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--gold);
}

.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-wrap label {
  color: var(--gold);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.rule-search {
  width: min(100%, 560px);
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--graphite);
  color: var(--paper);
}

.rule-search::placeholder {
  color: #817d74;
}

.search-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.mobile-chapters {
  display: none;
}

.rules-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 790px);
  justify-content: space-between;
  gap: 72px;
  padding-top: 54px;
  padding-bottom: 100px;
}

.rules-toc {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 98px);
  max-height: calc(100vh - var(--header-h) - 120px);
  overflow-y: auto;
  padding-right: 18px;
}

.toc-close {
  display: none;
}

.rules-toc strong {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
}

.rules-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.rules-toc li {
  counter-increment: toc;
}

.rules-toc a {
  display: grid;
  grid-template-columns: 27px 1fr;
  padding: 7px 0;
  color: #8f8b83;
  font-size: 12px;
  line-height: 1.25;
}

.rules-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #625f59;
}

.rules-toc a:hover,
.rules-toc a.is-active {
  color: var(--paper);
}

.rules-toc a.is-active::before {
  color: var(--gold);
}

.rule-chapter {
  position: relative;
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
}

.rule-chapter:first-child {
  padding-top: 0;
  border-top: 0;
}

.rule-chapter[hidden] {
  display: none;
}

.chapter-head {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 28px;
}

.chapter-number {
  color: var(--gold);
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.chapter-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.copy-link {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 0;
  cursor: pointer;
}

.copy-link::before {
  content: "\00A7";
  font-size: 20px;
  display: inline-block;
}

.copy-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.copy-link.is-copied::before {
  content: "\2713";
  transform: none;
}

.rule-chapter > p,
.rule-chapter > ul,
.rule-chapter > ol,
.rule-chapter > dl {
  margin-left: 86px;
}

.rule-chapter li + li {
  margin-top: 8px;
}

.rule-box {
  margin: 28px 0 28px 86px;
  padding: 20px 22px;
  border-left: 3px solid var(--brick);
  background: rgba(182, 102, 87, 0.07);
}

.rule-box.note {
  border-color: var(--sage);
  background: rgba(145, 165, 138, 0.07);
}

.rule-box.example {
  border-color: var(--gold);
  background: rgba(198, 165, 109, 0.06);
}

.rule-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brick);
  font-family: var(--display);
  font-size: 15px;
  text-transform: uppercase;
}

.rule-box.note strong {
  color: var(--sage);
}

.rule-box.example strong {
  color: var(--gold);
}

.rule-box p:last-child {
  margin-bottom: 0;
}

.definition-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 22px;
}

.definition-list dt,
.definition-list dd {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.definition-list dt {
  color: var(--gold-bright);
  font-weight: 800;
}

.definition-list dd {
  color: #c4bfb5;
}

.sanction-table {
  width: calc(100% - 86px);
  margin: 26px 0 26px 86px;
  border-collapse: collapse;
  font-size: 15px;
}

.sanction-table th,
.sanction-table td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.sanction-table th {
  color: var(--gold-bright);
  font-family: var(--display);
  text-transform: uppercase;
}

.no-results {
  padding: 40px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--graphite);
  color: var(--paper);
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, background 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--ink);
}

.site-footer {
  padding: 42px 0;
  background: #080807;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-meta {
  margin: 14px 0 0;
  color: #77736c;
  font-size: 13px;
}

.footer-rights {
  max-width: 720px;
  margin: 8px 0 0;
  color: #918c83;
  font-size: 12px;
  line-height: 1.5;
}

.brand img,
.hero-logo,
.shop-hero img,
.empty-visual img,
.footer-brand img {
  user-select: none;
  -webkit-user-drag: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

@media (min-width: 1081px) {
  .vip-card:nth-child(1) {
    grid-column: 1;
  }

  .vip-card:nth-child(2) {
    grid-column: 2;
  }

  .vip-card:nth-child(3) {
    grid-column: 3;
  }
}

@media (max-width: 1080px) {
  .vip-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-width: 0;
    max-width: 100%;
  }

  .vip-card {
    grid-column: 1;
    grid-row: span 12;
    min-width: 0;
    max-width: 100%;
  }

  .vip-features,
  .vip-features li {
    min-width: 0;
    max-width: 100%;
  }

  .site-header {
    position: relative;
    height: auto;
    min-height: var(--header-h);
  }

  .nav-shell {
    min-height: var(--header-h);
    height: auto;
    flex-wrap: wrap;
    padding: 12px 0 16px;
  }

  .site-nav {
    flex: 1 0 100%;
    flex-wrap: wrap;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .site-nav a,
  .site-nav .nav-discord {
    margin: 0;
    padding: 10px 0;
    font-size: 16px;
  }

  .js .site-header {
    position: sticky;
    height: var(--header-h);
    min-height: 0;
  }

  .js .nav-shell {
    min-height: 0;
    height: 100%;
    flex-wrap: nowrap;
    padding: 0;
  }

  .js .menu-toggle {
    display: block;
  }

  .js .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 18px 24px 28px;
    border-bottom: 1px solid var(--line-strong);
    background: var(--ink);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav a,
  .js .site-nav .nav-discord {
    margin: 0;
    padding: 16px 8px;
    border-width: 0 0 1px;
    border-color: var(--line);
    font-size: 18px;
  }

  .js .site-nav .nav-discord {
    color: var(--gold-bright);
  }

  .rules-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  body {
    font-size: 16px;
  }

  .container,
  .hero-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav-shell {
    width: calc(100% - 28px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-copy {
    font-size: 15px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: calc(88svh - var(--header-h));
    background-position: 61% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(7, 7, 6, 0.92) 0%, rgba(7, 7, 6, 0.55) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 45%);
  }

  .hero-inner {
    padding: 22px 0 30px;
    transform: none;
  }

  .hero-logo {
    width: 82px;
    margin-bottom: 8px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero .lede {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 32px);
    margin: -32px auto 12px;
    padding: 10px 0 10px 12px;
    font-size: 11px;
  }

  .button-row .button {
    flex: 1 1 100%;
    min-height: 44px;
    padding: 10px 16px;
  }

  .band {
    padding: var(--space-section-mobile) 0;
  }

  .section-heading,
  .process-grid,
  .empty-state {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .city-state,
  .pillars,
  .steps,
  .portal-grid,
  .business-list,
  .vip-grid,
  .shop-hero-grid,
  .shop-notes {
    grid-template-columns: 1fr;
  }

  .shop-hero {
    padding: 38px 0 30px;
  }

  .shop-hero-grid {
    gap: 18px;
  }

  .shop-hero h1 {
    font-size: clamp(54px, 18vw, 78px);
  }

  .shop-hero img {
    width: 84px;
    max-height: none;
    justify-self: end;
    margin-top: -8px;
  }

  .shop-status + .band {
    padding-top: 48px;
  }

  .shop-status .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .shop-status a {
    margin-left: 0;
  }

  .vip-card {
    min-height: 0;
    grid-template-rows: subgrid;
  }

  .city-state > div,
  .pillar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pillar-index {
    margin-bottom: 36px;
  }

  .step,
  .step + .step {
    padding: 26px 0;
    border-left: 0;
  }

  .portal-link {
    min-height: 180px;
    padding: 26px;
  }

  .final-cta {
    padding: 80px 0;
  }

  .final-cta .container {
    display: grid;
  }

  .page-hero {
    padding: var(--space-section-mobile) 0 54px;
  }

  .page-hero h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .process-aside {
    position: static;
  }

  .business-card header {
    display: block;
  }

  .business-card .status {
    display: inline-block;
    margin-bottom: 20px;
  }

  .timeline li {
    grid-template-columns: 52px 1fr;
  }

  .empty-visual {
    min-height: 290px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .empty-copy {
    padding: 34px 0;
  }

  .rule-tools-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
  }

  .search-wrap {
    flex-basis: 100%;
  }

  .search-wrap label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .rule-search {
    width: 100%;
  }

  .search-count {
    display: none;
  }

  .js .mobile-chapters {
    width: 100%;
    display: block;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: var(--graphite);
    color: var(--paper);
    text-align: left;
    cursor: pointer;
  }

  .rules-layout {
    display: block;
    padding-top: 32px;
  }

  .rules-toc {
    position: static;
    display: block;
    max-height: none;
    margin-bottom: 32px;
    padding: 20px;
    border: 1px solid var(--line-strong);
    background: var(--graphite);
  }

  .js .rules-toc {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    bottom: 12px;
    left: 16px;
    right: 16px;
    z-index: 120;
    display: none;
    max-height: none;
    margin: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }

  .js .rules-toc.is-open {
    display: block;
  }

  .js .toc-close {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
    min-height: 42px;
    display: block;
    margin-bottom: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--display);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
  }

  .has-toc-open {
    overflow: hidden;
  }

  .chapter-head {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }

  .chapter-number {
    font-size: 27px;
  }

  .chapter-head h2 {
    font-size: 30px;
  }

  .copy-link {
    width: 38px;
    height: 38px;
  }

  .rule-chapter > p,
  .rule-chapter > ul,
  .rule-chapter > ol,
  .rule-chapter > dl,
  .rule-box {
    margin-left: 0;
  }

  .definition-list {
    grid-template-columns: 1fr;
  }

  .definition-list dt {
    padding-bottom: 0;
  }

  .definition-list dd {
    padding-top: 5px;
    border-top: 0;
  }

  .sanction-table {
    width: 100%;
    margin-left: 0;
    display: block;
    overflow-x: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
