/* ===========================================================
   ELITE COPS & ROBBERS — shared styles
   Palette derived from the in-game loading screen:
   siren blue, criminal red, gold credits, Los Santos night.
   =========================================================== */

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

:root {
  --bg:        #070912;
  --bg-2:      #0a0e1c;
  --panel:     #0d1426;
  --panel-2:   #111a31;
  --line:      rgba(120, 140, 190, 0.14);

  --cop:       #1d6fff;
  --cop-soft:  rgba(29, 111, 255, 0.14);
  --robber:    #e8202c;
  --robber-soft: rgba(232, 32, 44, 0.14);
  --gold:      #f5c518;

  --text:      #e9edf6;
  --muted:     #828ea6;
  --dim:       #58607a;

  --display:   'Oswald', 'Arial Narrow', sans-serif;
  --ui:        'Rajdhani', 'Segoe UI', sans-serif;

  --maxw:      1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* layered atmosphere: faint radial glows + the equalizer-bar texture */
  background-image:
    radial-gradient(1100px 520px at 50% -10%, rgba(29,111,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(232,32,44,0.08), transparent 55%),
    repeating-linear-gradient(90deg,
      rgba(150,170,220,0.020) 0px,
      rgba(150,170,220,0.020) 2px,
      transparent 2px,
      transparent 26px);
  background-attachment: fixed;
}

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

/* ---------- top bar / nav ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 48px);
  background: rgba(7, 9, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.34em;
  font-size: 14px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.brand .c { color: var(--cop); }
.brand .r { color: var(--robber); }
.brand .sep { color: var(--dim); }

.nav { display: flex; gap: 14px; }
.nav a {
  font-family: var(--ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 20px;
  color: var(--muted);
  padding: 10px 26px;
  border-radius: 5px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cop), var(--gold), var(--robber));
}

/* ---------- the signature gradient status bar ---------- */
.statusbar {
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg,
    var(--cop) 0%, #4a7fe0 28%, var(--gold) 55%, #e85a4a 78%, var(--robber) 100%);
  box-shadow: 0 0 18px rgba(245,197,24,0.25);
}

/* ---------- layout shell ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 32px); }

/* ===========================================================
   HOME
   =========================================================== */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 80px;
  position: relative;
}

.eyebrow {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 18px;
  padding-left: 0.5em;
}

.title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-size: clamp(48px, 11vw, 130px);
  margin: 0;
  text-shadow: 0 0 60px rgba(0,0,0,0.6);
}
.title .w { color: #ffffff; }
.title .c { color: var(--cop);    text-shadow: 0 0 42px rgba(29,111,255,0.45); }
.title .r { color: var(--robber); text-shadow: 0 0 42px rgba(232,32,44,0.45); }
.title .amp { color: #ffffff; font-weight: 500; }

.tagline {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: clamp(12px, 1.7vw, 16px);
  color: var(--muted);
  margin: 22px 0 0;
}

/* connect card */
.connect {
  margin-top: 52px;
  width: min(560px, 100%);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.connect .statusbar { border-radius: 0; }
.connect-body { padding: 26px 28px 28px; }
.connect-label {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 14px;
}
.ip-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.ip {
  flex: 1;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 4vw, 26px);
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  user-select: all;
  white-space: nowrap;
  overflow-x: auto;
}
.copy-btn {
  font-family: var(--ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: #07101f;
  background: var(--gold);
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  transition: transform .1s ease, filter .15s ease;
}
.copy-btn:hover { filter: brightness(1.08); }
.copy-btn:active { transform: translateY(1px); }
.copy-btn.done { background: var(--cop); color: #fff; }
.connect-hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--dim);
}
.connect-hint code {
  font-family: var(--display);
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  padding: 1px 7px;
  border-radius: 4px;
}

.home-cta {
  margin-top: 30px;
}
.home-cta a {
  font-family: var(--ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 12px 26px;
  border-radius: 6px;
  transition: color .15s ease, border-color .15s ease;
}
.home-cta a:hover { color: var(--text); border-color: rgba(245,197,24,0.5); }

/* ===========================================================
   HELP / GUIDE
   =========================================================== */
.page-head {
  text-align: center;
  padding: 64px 20px 40px;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(36px, 7vw, 68px);
  margin: 0;
}
.page-head h1 .c { color: var(--cop); }
.page-head h1 .r { color: var(--robber); }
.page-head p {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 0;
}

/* in-page section nav */
.guide-nav {
  position: sticky;
  top: 64px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px clamp(18px,5vw,32px);
  background: rgba(7,9,18,0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.guide-nav a {
  font-family: var(--ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: all .15s ease;
}
.guide-nav a:hover { color: var(--text); border-color: rgba(245,197,24,0.5); }

.section {
  padding: 56px 0 24px;
  scroll-margin-top: 130px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(26px, 5vw, 40px);
  margin: 0;
}
.tag {
  font-family: var(--ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 4px;
}
.tag.cop    { color: var(--cop);    background: var(--cop-soft);    border: 1px solid rgba(29,111,255,0.35); }
.tag.robber { color: var(--robber); background: var(--robber-soft); border: 1px solid rgba(232,32,44,0.35); }
.tag.neutral{ color: var(--gold);   background: rgba(245,197,24,0.12); border: 1px solid rgba(245,197,24,0.3); }

.section > .statusbar { margin: 4px 0 28px; opacity: 0.8; }
.section.cop    > .statusbar { background: linear-gradient(90deg, var(--cop), rgba(29,111,255,0.1)); box-shadow:none; }
.section.robber > .statusbar { background: linear-gradient(90deg, var(--robber), rgba(232,32,44,0.1)); box-shadow:none; }

/* card grid */
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
}
.card h3 {
  font-family: var(--ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--gold);
  margin: 0 0 14px;
}
.card.cop h3    { color: var(--cop); }
.card.robber h3 { color: var(--robber); }

/* definition rows / keybinds */
.rows { display: grid; gap: 9px; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}
.row:last-child { border-bottom: none; padding-bottom: 0; }
.row .k { color: var(--muted); }
.row .v { color: var(--text); font-weight: 600; text-align: right; }

kbd {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 2px 10px;
  min-width: 28px;
  display: inline-block;
  text-align: center;
}

/* bullet list */
ul.clean { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.clean li { position: relative; padding-left: 22px; color: var(--text); }
ul.clean li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--gold);
}
ul.clean.cop li::before    { background: var(--cop); }
ul.clean.robber li::before { background: var(--robber); }
ul.clean li b { color: #fff; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 16px;
  min-width: 320px;
}
thead th {
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--muted);
  padding: 13px 18px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
thead th:last-child { text-align: right; }
tbody td { padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.025); }
td.cost { text-align: right; white-space: nowrap; }

.chip {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: rgba(245,197,24,0.10);
  border: 1px solid rgba(245,197,24,0.28);
  border-radius: 999px;
  padding: 2px 12px;
  display: inline-block;
}
.chip.free { color: #6fd58a; background: rgba(111,213,138,0.10); border-color: rgba(111,213,138,0.28); }
.cash { color: #6fd58a; font-weight: 600; }

/* tip / callout */
.tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(245,197,24,0.06);
  border: 1px solid rgba(245,197,24,0.25);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 18px;
}
.tip .badge {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: #07101f;
  background: var(--gold);
  border-radius: 4px;
  padding: 4px 9px;
  flex-shrink: 0;
}
.tip p { margin: 0; color: var(--text); }

.subhead {
  font-family: var(--ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
  margin: 34px 0 14px;
}

/* footer */
.foot {
  margin-top: 70px;
  padding: 30px clamp(18px,5vw,32px);
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--dim);
}
.foot b { color: var(--muted); font-weight: 600; }
.foot kbd { letter-spacing: 0; }

.foot .discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 11px 22px;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.foot .discord svg { width: 22px; height: 22px; fill: currentColor; }
.foot .discord:hover { color: #fff; background: #5865f2; border-color: #5865f2; }

/* ---------- a11y / motion ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar { flex-direction: column; gap: 12px; align-items: stretch; }
  .nav { justify-content: center; }
  .ip-row { flex-direction: column; }
  .copy-btn { padding: 12px; }
}
