:root {
  --bg: #020817;
  --panel: rgba(3, 13, 31, .84);
  --panel-soft: rgba(8, 24, 52, .72);
  --line: rgba(48, 112, 255, .32);
  --blue: #2670ff;
  --blue-bright: #54a0ff;
  --text: #f6f9ff;
  --muted: #9fb0ca;
  --green: #45dda7;
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { overflow-x: hidden; background: #020817; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.page-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 20;
  box-shadow: inset 0 0 150px rgba(0, 22, 58, .42);
}

.site-header {
  position: fixed; z-index: 50; top: 18px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); height: 68px; padding: 0 14px 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(67, 127, 255, .25); border-radius: 18px;
  background: rgba(2, 9, 22, .68); backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(0,0,0,.24);
}

.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: .15em; }
.brand img { width: 54px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 11px rgba(38,112,255,.34)); }
.brand span, .footer-brand span { font-size: 14px; }
.brand b, .footer-brand b { color: #fff; }
.brand span { color: var(--blue-bright); }

nav { display: flex; align-items: center; gap: 4px; }
nav a { position: relative; padding: 12px 16px; border-radius: 11px; color: #aab8ce; font-size: 14px; font-weight: 700; transition: .2s ease; }
nav a:hover, nav a.active { color: #fff; background: rgba(33, 88, 193, .16); }
nav a.active::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.nav-toggle { display: none; border: 0; background: none; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; }

.hero { min-height: 100svh; position: relative; display: grid; place-items: center; padding: 122px 32px 76px; overflow: hidden; }
.hero-backdrop { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(1,7,18,.97) 0%, rgba(1,9,23,.83) 39%, rgba(2,9,23,.54) 68%, rgba(1,6,16,.84) 100%), linear-gradient(180deg, rgba(0,0,0,.12), #020817 98%), url("assets/los-santos-night.jpg"); background-size: cover; background-position: center; transform: scale(1.015); }
.hero-backdrop::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(71,128,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(71,128,255,.1) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, #000, transparent 78%); }
.hero-grid { position: relative; z-index: 2; width: min(1160px, 100%); display: grid; grid-template-columns: 1.22fr .78fr; align-items: center; gap: clamp(48px, 8vw, 108px); }
.hero-emblem { width: 136px; height: 136px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid rgba(78,137,255,.23); border-radius: 50%; background: radial-gradient(circle, rgba(36,99,225,.12), rgba(1,7,18,.04) 68%); box-shadow: 0 0 80px rgba(25, 92, 226, .14); }
.hero-emblem img { width: 108px; height: 92px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(38,112,255,.45)); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #bdc9da; font-size: 12px; font-weight: 850; letter-spacing: .25em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); box-shadow: 0 0 10px rgba(38,112,255,.7); }
h1 { margin: 0; color: #fff; font-size: clamp(64px, 8vw, 124px); line-height: .86; letter-spacing: -.07em; font-weight: 950; }
h1 span { color: var(--blue-bright); }
.lead { margin: 28px 0 0; color: #b9c5d8; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; }
.lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.button { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid rgba(67,126,255,.38); border-radius: 13px; font-size: 14px; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, #1957e1, #2670ff); box-shadow: 0 14px 34px rgba(20,76,208,.24); }
.button.primary:hover { box-shadow: 0 18px 40px rgba(20,76,208,.38); }
.button.secondary { color: #cbd6e8; background: rgba(7,21,45,.66); }
.button.secondary:hover { background: rgba(14,39,80,.75); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { padding: 8px 11px; border: 1px solid rgba(88,134,226,.24); border-radius: 9px; background: rgba(4,14,32,.48); color: #9fb0ca; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.portal-card { position: relative; padding: 30px; border: 1px solid rgba(65,126,255,.38); border-radius: 24px; background: linear-gradient(145deg, rgba(8,24,54,.84), rgba(1,9,23,.90)); backdrop-filter: blur(18px); box-shadow: var(--shadow); overflow: hidden; }
.portal-card::before { content: ""; position: absolute; left: 0; top: 28px; width: 3px; height: 74px; background: var(--blue); box-shadow: 0 0 20px rgba(38,112,255,.75); }
.card-kicker { color: var(--blue-bright); font-size: 11px; font-weight: 900; letter-spacing: .25em; text-transform: uppercase; }
.portal-card h2 { margin: 9px 0 24px; font-size: 30px; letter-spacing: -.035em; }
.portal-link { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; min-height: 70px; margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(56,105,200,.18); border-radius: 14px; background: rgba(3,13,31,.62); transition: .2s ease; }
.portal-link:hover { transform: translateX(4px); border-color: rgba(72,133,255,.5); background: rgba(9,30,67,.76); }
.portal-link .step { color: var(--blue-bright); font-size: 12px; font-weight: 900; }
.portal-link b, .portal-link small { display: block; }
.portal-link b { font-size: 15px; }
.portal-link small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.portal-link i { color: var(--blue-bright); font-style: normal; font-size: 20px; }
.portal-note { display: flex; align-items: center; gap: 9px; margin-top: 20px; padding: 12px 14px; color: #9fb0ca; font-size: 12px; }
.portal-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 24px; width: 28px; height: 46px; border: 1px solid rgba(104,143,218,.36); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: var(--blue-bright); animation: scroll 1.8s ease infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }

.rules-section { position: relative; padding: 110px max(24px, calc((100vw - 1160px) / 2)); background: radial-gradient(circle at 72% 28%, rgba(27,89,218,.09), transparent 31%), #020817; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading .eyebrow { position: absolute; margin-bottom: 88px; }
.section-heading h2, .arrival-copy h2 { margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: 1; letter-spacing: -.055em; }
.section-heading p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.draft-badge { padding: 8px 11px; border: 1px solid rgba(244,181,60,.32); border-radius: 9px; color: #f4c360; background: rgba(100,69,11,.16); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.rules-shell { min-height: 620px; display: grid; grid-template-columns: 290px 1fr; border: 1px solid rgba(50,111,232,.3); border-radius: 24px; background: rgba(2,10,25,.84); box-shadow: var(--shadow); overflow: hidden; }
.rule-sidebar { padding: 24px; border-right: 1px solid rgba(50,111,232,.2); background: rgba(4,16,37,.72); }
.search { height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(69,127,239,.27); border-radius: 12px; background: rgba(1,8,20,.78); }
.search:focus-within { border-color: rgba(73,136,255,.72); box-shadow: 0 0 0 3px rgba(38,112,255,.1); }
.search svg { width: 18px; height: 18px; fill: none; stroke: #7f95b6; stroke-width: 1.8; }
.search input { width: 100%; border: 0; outline: 0; color: #fff; background: transparent; font-size: 14px; }
.search input::placeholder { color: #687c9b; }
.rule-categories { display: grid; gap: 7px; margin-top: 18px; }
.category-button { width: 100%; min-height: 52px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid transparent; border-radius: 11px; color: #91a4c1; background: transparent; cursor: pointer; font-size: 14px; font-weight: 750; text-align: left; transition: .18s ease; }
.category-button span:last-child { color: #5f7394; font-size: 11px; }
.category-button:hover { color: #fff; background: rgba(25,64,130,.18); }
.category-button.active { color: #fff; border-color: rgba(58,123,255,.45); background: linear-gradient(90deg, rgba(24,77,183,.46), rgba(12,38,83,.36)); box-shadow: inset 3px 0 0 var(--blue); }
.category-button.active span:last-child { color: #8fb4ff; }
.sidebar-note { margin: 30px 4px 0; padding-top: 18px; border-top: 1px solid rgba(57,99,177,.17); color: #7486a2; font-size: 12px; line-height: 1.6; }
.rule-content { padding: 31px 34px 38px; }
.rule-content-head { min-height: 62px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid rgba(59,111,210,.2); }
.rule-content-head > div { display: flex; align-items: center; gap: 14px; }
.rule-content-head #activeRuleIndex { color: var(--blue-bright); font-size: 13px; font-weight: 900; }
.rule-content-head h3 { margin: 0; font-size: 25px; }
.rule-content-head > span:last-child { padding: 7px 10px; border-radius: 8px; background: rgba(33,83,173,.15); color: #88a4cf; font-size: 11px; font-weight: 800; }
.rule-list { display: grid; gap: 10px; padding-top: 20px; }
.rule-item { position: relative; overflow: hidden; border: 1px solid rgba(54,105,200,.18); border-radius: 14px; background: rgba(5,17,39,.58); }
.rule-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--blue); opacity: .75; }
.rule-question { width: 100%; min-height: 68px; padding: 15px 18px 15px 22px; display: grid; grid-template-columns: 40px 1fr 24px; align-items: center; gap: 10px; border: 0; color: #fff; background: transparent; cursor: pointer; text-align: left; }
.rule-number { color: #5e8ff5; font-size: 12px; font-weight: 900; }
.rule-question b { font-size: 15px; }
.rule-question i { color: #7892bb; font-size: 20px; font-style: normal; transition: transform .2s ease; }
.rule-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.rule-answer > div { overflow: hidden; }
.rule-answer p { margin: 0; padding: 0 58px 20px 72px; color: #a6b5cb; font-size: 15px; line-height: 1.7; }
.rule-item.open { border-color: rgba(68,130,255,.42); background: rgba(8,26,57,.68); }
.rule-item.open .rule-answer { grid-template-rows: 1fr; }
.rule-item.open .rule-question i { transform: rotate(45deg); }
.rule-empty { min-height: 340px; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.rule-empty strong { color: #fff; font-size: 20px; }
.rule-empty span { margin-top: 8px; }

.arrival-section { padding: 120px max(24px, calc((100vw - 1160px) / 2)); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 110px); align-items: center; background: linear-gradient(180deg, #020817, #041022); }
.arrival-copy > p:not(.eyebrow) { max-width: 530px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.arrival-steps { padding: 0; margin: 0; display: grid; gap: 12px; list-style: none; }
.arrival-steps li { min-height: 104px; padding: 21px 22px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 16px; border: 1px solid rgba(55,111,218,.24); border-radius: 16px; background: linear-gradient(120deg, rgba(9,29,63,.74), rgba(4,14,33,.7)); }
.arrival-steps > li > span { color: var(--blue-bright); font-size: 13px; font-weight: 900; }
.arrival-steps b { font-size: 17px; }
.arrival-steps p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

footer { padding: 46px max(24px, calc((100vw - 1160px) / 2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 25px; border-top: 1px solid rgba(49,102,203,.21); background: #020712; }
.footer-brand img { width: 44px; height: 38px; object-fit: contain; }
footer > p { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 18px; color: #b9c6d9; font-size: 13px; font-weight: 700; }
.footer-links a:hover { color: #fff; }
footer small { grid-column: 1 / -1; color: #566983; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { top: 10px; }
  .nav-toggle { display: block; }
  nav { position: absolute; top: 76px; left: 0; right: 0; padding: 10px; display: none; flex-direction: column; align-items: stretch; border: 1px solid rgba(67,127,255,.25); border-radius: 15px; background: rgba(2,9,22,.96); }
  nav.open { display: flex; }
  nav a { text-align: center; }
  .hero { padding-inline: 22px; }
  .hero-grid, .arrival-section { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 50px; }
  .portal-card { max-width: 580px; }
  .rules-shell { grid-template-columns: 1fr; }
  .rule-sidebar { border-right: 0; border-bottom: 1px solid rgba(50,111,232,.2); }
  .rule-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-note { display: none; }
  footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .site-header { height: 62px; width: calc(100% - 20px); }
  .brand img { width: 46px; height: 38px; }
  .hero { min-height: auto; padding: 116px 18px 78px; }
  .hero-emblem { width: 100px; height: 100px; margin-bottom: 22px; }
  .hero-emblem img { width: 82px; height: 70px; }
  h1 { font-size: clamp(50px, 16.5vw, 66px); letter-spacing: -.075em; }
  .button { width: 100%; }
  .portal-card { padding: 24px 18px; }
  .rules-section, .arrival-section { padding: 86px 14px; }
  .section-heading { align-items: flex-end; }
  .section-heading .eyebrow { margin-bottom: 78px; }
  .section-heading p:not(.eyebrow) { font-size: 14px; }
  .rules-shell { border-radius: 18px; }
  .rule-sidebar, .rule-content { padding: 18px; }
  .rule-categories { grid-template-columns: 1fr; }
  .rule-content-head { align-items: center; }
  .rule-question { grid-template-columns: 34px 1fr 20px; padding-left: 15px; }
  .rule-answer p { padding: 0 20px 18px 59px; }
  .arrival-section { gap: 34px; }
  footer { padding: 38px 20px; }
}

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