@import url("https://fonts.googleapis.com/css2?family=Saira:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0c110a;
  --bg-soft: #10170d;
  --panel: #131c10;
  --panel-strong: #182314;
  --panel-light: #1d2919;
  --text: #f3f7ef;
  --muted: #9ca895;
  --muted-strong: #c0c9ba;
  --accent: #b5ef35;
  --accent-strong: #9bd51f;
  --accent-dark: #243710;
  --line: rgba(181, 239, 53, 0.17);
  --line-soft: rgba(234, 243, 228, 0.1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  --max: 1240px;
  --wide: 1480px;
  --radius: 18px;
  --radius-small: 11px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: "Saira", "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 16%, rgba(181, 239, 53, 0.055), transparent 24rem),
    var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a[href^="/galeria"] {
  display: none !important;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

::selection {
  color: #10170d;
  background: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.wrap {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(calc(100% - 48px), var(--wide));
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  padding: 22px 0;
}

.site-header.is-solid {
  background: none;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  min-height: 62px;
  padding: 0;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  justify-self: start;
  gap: 11px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-name {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.brand-version {
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 24px;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  color: #b7c0b1;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: transparent;
}

.nav-link::after {
  position: absolute;
  bottom: 3px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 170ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.header-action {
  display: inline-flex;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #dce3d7;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #151d13;
  font-size: 0.72rem;
  font-weight: 600;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-action svg,
.mobile-nav-external svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-action:hover {
  color: #10170d;
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-1px);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 12, 7, 0.97) 0%, rgba(8, 12, 7, 0.72) 48%, rgba(8, 12, 7, 0.24) 76%),
    linear-gradient(0deg, var(--bg) 0%, transparent 34%),
    url("/assets/los-santos/los-santos-sunset.webp") center 47% / cover;
}

.hero::after {
  position: absolute;
  right: -9rem;
  bottom: -10rem;
  width: 38rem;
  height: 38rem;
  content: "";
  border: 1px solid rgba(181, 239, 53, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(181, 239, 53, 0.025),
    0 0 0 9rem rgba(181, 239, 53, 0.018);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 900px;
  padding: 170px 0 130px;
  align-items: center;
}

.hero-copy {
  max-width: 790px;
}

.hero-copy::before {
  display: none;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.hero-title,
.section-title,
.page-title,
.community h2,
.role-modal h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-title {
  max-width: 820px;
  font-size: clamp(4rem, 7.2vw, 7.3rem);
}

.hero-title span {
  display: block;
  color: var(--accent);
}

.hero-lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: #c2cabd;
  font-size: 1.06rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 170ms ease, color 170ms ease, border-color 170ms ease, background 170ms ease;
}

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

.button-primary,
.button-light {
  color: #11170e;
  border-color: var(--accent);
  background: var(--accent);
}

.button-primary:hover,
.button-light:hover {
  border-color: #c7ff47;
  background: #c7ff47;
}

.button-secondary {
  color: #dce3d7;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(17, 24, 14, 0.86);
}

.button-secondary:hover {
  border-color: rgba(181, 239, 53, 0.35);
  background: var(--panel-strong);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 42px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #8f9a89;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-scroll span {
  color: var(--accent);
}

.section {
  padding: 116px 0;
}

.section-heading {
  display: flex;
  margin-bottom: 48px;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-title {
  max-width: 820px;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
}

.section-intro {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.section-heading .section-intro {
  max-width: 460px;
  margin: 0 0 4px;
}

.mechanics-section {
  position: relative;
  background: var(--bg);
}

.mechanics-heading::before {
  align-self: start;
  width: 10px;
  height: 10px;
  margin-top: 12px;
  content: "";
  flex: 0 0 10px;
  border-radius: 3px;
  background: var(--accent);
}

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

.role-card {
  position: relative;
  display: grid;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, background 180ms ease;
}

.role-card::after {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(181, 239, 53, 0.09);
}

.role-card:hover {
  border-color: rgba(181, 239, 53, 0.32);
  background: var(--panel-strong);
  transform: translateY(-5px);
}

.role-card figure {
  height: 230px;
  margin: 0;
  overflow: hidden;
  background: #0b0f09;
}

.role-card figure::after {
  position: absolute;
  inset: 0;
  content: "";
}

.role-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: transform 430ms cubic-bezier(0.22, 1, 0.36, 1), filter 200ms ease;
}

.role-card:hover img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.035);
}

.role-copy {
  padding: 24px 24px 25px;
}

.role-copy h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.role-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.role-copy span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.role-modal {
  width: min(calc(100% - 36px), 680px);
  padding: 0;
  overflow: visible;
  color: var(--text);
  border: 1px solid rgba(181, 239, 53, 0.2);
  border-radius: 20px;
  background: #11180e;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.48);
}

.role-modal[open] {
  animation: modal-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.role-modal[open].is-closing {
  animation: modal-out 180ms ease both;
}

.role-modal::backdrop {
  background: rgba(4, 7, 3, 0.78);
  backdrop-filter: blur(5px);
}

.role-modal-inner {
  position: relative;
  padding: 38px;
}

.role-modal-close {
  position: absolute;
  top: 19px;
  right: 19px;
  display: inline-flex;
  padding: 8px 10px;
  align-items: center;
  gap: 8px;
  color: #aeb8a8;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
}

.role-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.role-modal-close i {
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
}

.role-modal-close i::before,
.role-modal-close i::after {
  position: absolute;
  top: 6px;
  left: 0;
  width: 13px;
  height: 1px;
  content: "";
  background: currentColor;
}

.role-modal-close i::before {
  transform: rotate(45deg);
}

.role-modal-close i::after {
  transform: rotate(-45deg);
}

.role-modal-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role-modal h3 {
  max-width: 520px;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.role-modal-body {
  margin-top: 27px;
}

.role-modal-body > p,
.role-choice-panel > p {
  margin: 0;
  color: #afb9aa;
  font-size: 0.95rem;
  line-height: 1.75;
}

.role-choice-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px;
  border-radius: 12px;
  background: #0c120a;
}

.role-choice {
  min-height: 48px;
  padding: 8px 13px;
  color: #95a08f;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
}

.role-choice.is-active {
  color: #11170e;
  background: var(--accent);
}

.role-choice-panel.is-leaving {
  animation: panel-out 150ms ease both;
}

.role-choice-panel.is-entering {
  animation: panel-in 220ms ease both;
}

.role-modal-link {
  margin-top: 22px;
}

.how-section {
  background:
    linear-gradient(125deg, rgba(181, 239, 53, 0.05), transparent 44%),
    #10170d;
}

.steps-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  position: relative;
  min-height: 285px;
  padding: 74px 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(14, 21, 12, 0.75);
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.step-card:hover {
  border-color: rgba(181, 239, 53, 0.28);
  background: var(--panel);
  transform: translateY(-3px);
}

.step-number {
  position: absolute;
  top: 20px;
  left: 21px;
  display: inline-flex;
  width: 36px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: #11170e;
  border-radius: 8px;
  background: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
}

.step-card h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.step-card p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.62;
}

.step-card a,
.text-link {
  display: inline-flex;
  margin-top: 15px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
}

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

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(440px, 1fr);
  gap: clamp(50px, 9vw, 130px);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--panel);
  transition: border-color 170ms ease, background 170ms ease;
}

.faq[open] {
  border-color: rgba(181, 239, 53, 0.25);
  background: var(--panel-strong);
}

.faq summary {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 14px;
  padding: 19px 20px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

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

.faq summary > span {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
}

.faq summary strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.faq summary i {
  color: var(--accent);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  transition: transform 170ms ease;
}

.faq[open] summary i {
  transform: rotate(45deg);
}

.faq > p {
  max-width: 590px;
  margin: -2px 24px 21px 69px;
  color: var(--muted);
  font-size: 0.9rem;
}

.community-section {
  padding-top: 30px;
  background: var(--bg);
}

.community {
  position: relative;
  display: flex;
  min-height: 520px;
  padding: clamp(36px, 7vw, 82px);
  overflow: hidden;
  align-items: end;
  border: 1px solid rgba(181, 239, 53, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(9, 13, 7, 0.96), rgba(9, 13, 7, 0.5)),
    url("/assets/los-santos/nightlife.webp") center / cover;
  box-shadow: var(--shadow);
}

.community::before {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 3px;
  background: var(--accent);
}

.community h2 {
  position: relative;
  max-width: 800px;
  font-size: clamp(3rem, 6vw, 6.4rem);
}

.community p {
  position: relative;
  max-width: 540px;
  margin: 23px 0 28px;
  color: #b9c3b4;
}

.community .button {
  position: relative;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 610px;
  padding: 170px 0 75px;
  align-items: end;
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 11, 6, 0.97), rgba(7, 11, 6, 0.56) 62%, rgba(7, 11, 6, 0.2)),
    linear-gradient(0deg, var(--bg-soft), transparent 48%);
}

.page-hero-rules {
  background-image: url("/assets/vision-one/rules-header.jpg");
  background-position: center 58%;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-inner::before {
  display: none;
}

.page-title {
  max-width: 960px;
  font-size: clamp(3.7rem, 8vw, 7.7rem);
}

.page-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #bfc8ba;
  font-size: 1rem;
  line-height: 1.72;
}

.rules-page-section {
  background:
    radial-gradient(circle at 5% 8%, rgba(181, 239, 53, 0.05), transparent 25rem),
    var(--bg-soft);
}

.rules-layout {
  display: grid;
  gap: 46px;
}

.rules-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.62fr);
  gap: clamp(36px, 6vw, 90px);
  padding: 28px;
  align-items: end;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.rules-intro h2 {
  margin: 0 0 13px;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
}

.rules-intro > p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rules-intro > .text-link {
  margin-top: 15px;
}

.rules-search {
  display: grid;
  gap: 8px;
}

.rules-search span {
  color: #cbd3c5;
  font-size: 0.75rem;
  font-weight: 650;
}

.rules-search input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  outline: none;
  background: #0d130b;
  font-size: 0.88rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.rules-search input::placeholder {
  color: #6f796a;
}

.rules-search input:focus {
  border-color: rgba(181, 239, 53, 0.55);
  background: #10170d;
}

.rules-workspace {
  display: grid;
  grid-template-columns: 290px minmax(0, 920px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  justify-content: center;
}

.rules-outline {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: #0f160d;
  scrollbar-color: rgba(181, 239, 53, 0.36) transparent;
  scrollbar-width: thin;
}

.rules-outline::-webkit-scrollbar {
  width: 5px;
}

.rules-outline::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(181, 239, 53, 0.36);
}

.rules-outline-title {
  display: flex;
  min-height: 47px;
  padding: 0 13px;
  align-items: center;
  gap: 10px;
  color: #10170d;
  border-radius: 10px;
  background: var(--accent);
  font-size: 0.78rem;
}

.rules-outline-title > span {
  font-size: 1rem;
}

.rules-outline nav {
  display: grid;
  gap: 3px;
  padding: 9px 2px 2px;
}

.rules-outline-group > a {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  min-height: 39px;
  padding: 8px 9px;
  align-items: center;
  color: #bec7b8;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 150ms ease, background 150ms ease;
}

.rules-outline-group > a:hover {
  color: var(--text);
  background: rgba(181, 239, 53, 0.075);
}

.rules-outline-group > a span {
  color: var(--accent);
  font-size: 0.63rem;
  font-weight: 700;
}

.rules-outline-items {
  display: grid;
  margin: 1px 0 6px 36px;
}

.rules-outline-items a {
  padding: 5px 7px;
  overflow: hidden;
  color: #7e8978;
  border-radius: 7px;
  font-size: 0.68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rules-outline-items a:hover {
  color: #cbd4c5;
  background: rgba(255, 255, 255, 0.035);
}

.rules-document {
  min-width: 0;
}

.rules-count {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 6px 9px;
  color: var(--accent);
  border-radius: 7px;
  background: rgba(181, 239, 53, 0.07);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rules-list {
  display: grid;
  gap: 16px;
}

.rule-group {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  scroll-margin-top: 20px;
}

.rule-group-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 22px;
  align-items: center;
}

.rule-group-number {
  display: inline-flex;
  width: 42px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #11170e;
  border-radius: 8px;
  background: var(--accent);
  font-size: 0.69rem;
  font-weight: 800;
}

.rule-group-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.rule-group-content {
  display: grid;
  gap: 12px;
  padding-left: 60px;
}

.rule-group-intro {
  margin: 0 0 4px;
  color: #c8d0c2;
  font-size: 0.94rem;
  line-height: 1.75;
}

.rule-item {
  padding: 17px 18px;
  border-radius: 11px;
  background: #10170d;
  scroll-margin-top: 20px;
}

.rule-item h3 {
  margin: 0;
  color: #eef4ea;
  font-size: 1rem;
  font-weight: 700;
}

.rule-item p {
  max-width: 850px;
  margin: 6px 0 0;
  color: #aeb8a8;
  font-size: 0.92rem;
  line-height: 1.78;
  white-space: pre-line;
}

.rule-item:not(:has(h3)) p {
  margin-top: 0;
}

.rules-empty {
  padding: 36px 0;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  color: var(--text);
  background: #090d08;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.55fr 0.55fr;
  gap: 50px;
  padding: 62px 0 40px;
}

.footer-brand {
  max-width: 500px;
}

.footer-brand p {
  max-width: 440px;
  margin: 18px 0 0;
  color: #899483;
  font-size: 0.84rem;
}

.footer-col strong {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: max-content;
  margin: 8px 0;
  color: #929d8d;
  font-size: 0.82rem;
}

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

.footer-bottom {
  display: flex;
  padding: 20px 0 26px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #65705f;
  border-top: 1px solid var(--line-soft);
  font-size: 0.65rem;
}

.footer-legal {
  max-width: 720px;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

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

@keyframes panel-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (max-width: 1050px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav summary {
    padding: 10px 13px;
    color: #d9e0d4;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    cursor: pointer;
    list-style: none;
    font-size: 0.7rem;
    font-weight: 700;
  }

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

  .mobile-nav-panel {
    position: absolute;
    top: 50px;
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 40px));
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: #10170d;
    box-shadow: var(--shadow);
  }

  .mobile-nav-panel a {
    padding: 11px;
    color: #bac4b4;
    border-radius: 8px;
    font-size: 0.76rem;
  }

  .mobile-nav-panel a:hover {
    color: var(--text);
    background: rgba(181, 239, 53, 0.075);
  }

  .mobile-nav-external {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

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

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

  .rules-toolbar {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .rules-workspace {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rules-outline {
    position: static;
    max-height: none;
  }

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

  .rules-outline-items {
    display: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 26px), var(--max));
  }

  .site-header {
    padding: 11px 0;
  }

  .header-inner {
    min-height: 58px;
    padding: 0;
  }

  .brand-logo {
    width: 43px;
    height: 43px;
  }

  .brand-name {
    font-size: 0.76rem;
  }

  .brand-version {
    font-size: 0.51rem;
  }

  .hero,
  .hero-inner {
    min-height: 790px;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(8, 12, 7, 0.94), rgba(8, 12, 7, 0.48)),
      linear-gradient(0deg, var(--bg) 0%, transparent 48%),
      url("/assets/los-santos/los-santos-sunset.webp") center / cover;
  }

  .hero-inner {
    padding: 140px 0 95px;
    align-items: end;
  }

  .hero-title {
    font-size: clamp(3.45rem, 17vw, 5.4rem);
  }

  .hero-lead {
    font-size: 0.96rem;
  }

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

  .hero-scroll {
    bottom: 21px;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
  }

  .section-heading .section-intro {
    margin: 0;
  }

  .section-title {
    font-size: clamp(2.7rem, 13vw, 4.15rem);
  }

  .mechanics-heading::before {
    display: none;
  }

  .roles-grid,
  .steps-roadmap {
    grid-template-columns: 1fr;
  }

  .role-card figure {
    height: 270px;
  }

  .role-modal-inner {
    padding: 32px 22px 24px;
  }

  .role-modal-close span {
    display: none;
  }

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

  .step-card {
    min-height: 0;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq summary {
    grid-template-columns: 30px 1fr auto;
    gap: 9px;
    padding: 17px 16px;
  }

  .faq > p {
    margin: -2px 18px 18px 55px;
  }

  .community {
    min-height: 570px;
    padding: 30px 22px;
    border-radius: 17px;
    background:
      linear-gradient(0deg, rgba(8, 12, 7, 0.97), rgba(8, 12, 7, 0.42)),
      url("/assets/los-santos/nightlife.webp") 57% center / cover;
  }

  .community h2 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .page-hero {
    min-height: 560px;
    padding: 140px 0 60px;
  }

  .page-title {
    font-size: clamp(3.4rem, 16vw, 5.5rem);
  }

  .rules-toolbar,
  .rule-group {
    padding: 20px;
    border-radius: 14px;
  }

  .rule-group-header {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 18px;
  }

  .rule-group-number {
    width: 38px;
    height: 31px;
  }

  .rule-group-content {
    padding-left: 0;
  }

  .rule-item {
    padding: 15px;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    display: grid;
  }
}

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

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