/* WKGaming RP - shared site theme (index.php + rules.html)
   Colours are lifted from the server's WKRP logo.png and bg.png: night navy, electric blue,
   chrome white, with a warm orange kept for the store and punishment callouts. */

:root {
  --bg: #04070f;
  --bg-2: #07101f;
  --panel: #0a1429;
  --panel-2: #0e1b36;
  --line: rgba(110, 180, 255, .14);
  --line-strong: rgba(58, 134, 255, .45);
  --text: #eaf2ff;
  --muted: #93a3c3;
  --dim: #5d6c8a;
  --cyan: #3a86ff;
  --blue: #1f5eff;
  --orange: #ff8a3c;
  --green: #2ee6a0;
  --red: #ff4d5e;
  --discord: #5865f2;
  --radius: 14px;
  --wrap: 1200px;
  --head: 'Oxanium', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--cyan); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: .01em; }

.kicker {
  display: inline-block;
  font: 600 13px var(--head);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.nav.solid, .nav.open {
  background: rgba(4, 7, 15, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font: 700 19px var(--head);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img { height: 54px; width: auto; filter: drop-shadow(0 0 12px rgba(58, 134, 255, .45)); }
.brand b { color: var(--cyan); }
.nav-links { display: flex; gap: 28px; margin-right: auto; }
.nav-links a {
  position: relative;
  padding: 6px 0;
  font: 600 14px var(--head);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(10, 20, 41, .6);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* live status pill */
.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 20, 41, .65);
  font: 600 13px var(--head);
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.status.online i { background: var(--green); animation: pulse 2s infinite; }
.status.offline i { background: var(--red); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 160, .6); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(46, 230, 160, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border: 0;
  font: 700 15px var(--head);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .2s, filter .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn-sm { padding: 11px 20px; font-size: 13px; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.btn-primary { background: linear-gradient(135deg, #4d94ff, var(--blue)); color: #fff; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-store { background: linear-gradient(135deg, #ffb066, var(--orange)); color: #1c0b00; }
.btn-ghost { background: rgba(58, 134, 255, .08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  min-height: 420px;
  background: url('bg.png') center 35% / cover no-repeat;
}
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 15, .7) 0%, rgba(4, 7, 15, 0) 16%, rgba(4, 7, 15, 0) 55%, rgba(4, 7, 15, .85) 82%, var(--bg) 100%);
}
.hero-panel {
  position: relative;
  margin-top: clamp(-240px, -12vw, -60px);
  text-align: center;
}
.hero-panel h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .85);
}
.hero-panel h1 span { color: var(--cyan); text-shadow: 0 0 30px rgba(58, 134, 255, .55); }
.hero-panel .lead { max-width: 660px; margin: 0 auto 30px; color: #c3d0e8; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.server-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.7fr;
  margin: 44px auto 0;
  max-width: 980px;
  text-align: left;
  background: linear-gradient(180deg, rgba(14, 27, 54, .92), rgba(10, 20, 41, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(58, 134, 255, .05);
}
.server-card > div { padding: 22px 26px; min-width: 0; }
.server-card > div + div { border-left: 1px solid var(--line); }
.server-card small {
  display: block; margin-bottom: 6px;
  font: 600 12px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.server-card strong { font: 700 24px var(--head); letter-spacing: .03em; }
.server-card .status { padding: 0; border: 0; background: none; font-size: 24px; color: var(--text); gap: 12px; }
.server-card .status i { width: 10px; height: 10px; }
.meter { height: 4px; margin-top: 12px; border-radius: 4px; background: rgba(110, 180, 255, .12); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px var(--cyan); transition: width .8s ease; }
.connect-row { display: flex; align-items: center; gap: 10px; }
.connect-row code {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: 1px dashed var(--line-strong); border-radius: 8px;
  background: rgba(4, 7, 15, .6);
  font: 500 15px Consolas, 'Courier New', monospace;
  color: var(--cyan);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy-btn {
  padding: 10px 16px;
  border: 0; border-radius: 8px;
  background: rgba(58, 134, 255, .14);
  color: var(--text);
  font: 700 13px var(--head); letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.copy-btn:hover { background: rgba(58, 134, 255, .28); }
.copy-btn.copied { background: var(--green); color: #02140c; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section.alt {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(42, 108, 255, .14), transparent 70%),
    linear-gradient(rgba(110, 180, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(110, 180, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 700px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { margin-top: 8px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; text-transform: uppercase; }
.section-head h2 span { color: var(--cyan); }
.section-head p { margin-top: 12px; color: var(--muted); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  position: relative;
  padding: 30px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.card::before {
  content: "";
  position: absolute; left: 24px; right: 24px; top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.card p { color: var(--muted); font-size: 15px; }
.card a.inline { color: var(--cyan); font-weight: 600; }
.card a.inline:hover { text-decoration: underline; }
.icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(58, 134, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(58, 134, 255, .28);
  color: var(--cyan);
}
.icon svg { width: 27px; height: 27px; }
.step-num {
  margin-bottom: 14px;
  font: 800 52px/1 var(--head);
  color: transparent;
  -webkit-text-stroke: 1px rgba(58, 134, 255, .6);
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  display: flex; align-items: center; gap: 40px;
  padding: 50px 56px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 7, 15, .96) 0%, rgba(4, 7, 15, .82) 55%, rgba(4, 7, 15, .5) 100%),
    url('bg.png') center 40% / cover no-repeat;
}
.cta img { width: 300px; flex: none; filter: drop-shadow(0 0 26px rgba(58, 134, 255, .5)); }
.cta h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; text-transform: uppercase; }
.cta h2 span { color: var(--cyan); }
.cta p { margin: 10px 0 24px; max-width: 560px; color: #c3d0e8; }
.cta .hero-actions { justify-content: flex-start; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 34px; background: #03050b; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer .brand img { height: 70px; }
.footer-blurb { max-width: 340px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.footer-cols h4 { margin-bottom: 14px; font: 700 13px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.footer-cols a { display: block; margin-bottom: 9px; color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim); font-size: 13px;
}

/* ---------- Rules page ---------- */
.page-head {
  position: relative;
  padding: 170px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(4, 7, 15, .55) 0%, rgba(4, 7, 15, .75) 60%, var(--bg) 100%),
    url('bg.png') center 42% / cover no-repeat;
}
.page-head h1 { margin-top: 8px; font-size: clamp(36px, 6vw, 64px); font-weight: 800; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); }
.page-head h1 span { color: var(--cyan); }
.page-head p { max-width: 620px; margin: 12px auto 0; color: #c3d0e8; }

.rules { display: grid; grid-template-columns: 290px 1fr; gap: 36px; padding-block: 56px 110px; }
.toc {
  position: sticky; top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc h2 { margin-bottom: 14px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.toc input {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(4, 7, 15, .6);
  color: var(--text);
  font: 14px var(--body);
  outline: none;
}
.toc input:focus { border-color: var(--line-strong); }
.toc ul { list-style: none; }
.toc a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  transition: color .2s, background .2s, border-color .2s;
}
.toc a:hover { color: var(--text); background: rgba(58, 134, 255, .06); }
.toc a.active { color: var(--text); border-color: var(--cyan); background: rgba(58, 134, 255, .1); }

section.rule {
  margin-bottom: 26px;
  padding: 38px 40px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
section.rule h2 {
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 25px; font-weight: 700;
}
section.rule h3 { margin: 30px 0 8px; font-size: 18px; color: var(--cyan); letter-spacing: .03em; }
section.rule p, section.rule li { color: #c6d1e6; font-size: 15px; }
section.rule p + p { margin-top: 12px; }
section.rule ul { margin: 12px 0 14px; padding-left: 22px; }
section.rule li { margin-bottom: 4px; }
section.rule li::marker { color: var(--cyan); }
section.rule strong { color: var(--text); }
.punishment {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(255, 138, 60, .08);
  border: 1px solid rgba(255, 138, 60, .22);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  color: #ffd9bd;
  font-size: 14.5px;
}
.rules-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .status.online i { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .nav-links {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px 24px 18px;
    background: rgba(4, 7, 15, .97);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-inner { gap: 16px; }
  .nav-cta { margin-left: auto; }

  .server-card { grid-template-columns: 1fr 1fr; }
  .server-card .connect { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }

  .rules { grid-template-columns: 1fr; }
  .toc { position: relative; top: 0; max-height: none; }
  .toc ul { columns: 2; column-gap: 16px; }
  .toc li { break-inside: avoid; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .brand span { display: none; }
  .nav .status { display: none; }
  .hero-art { aspect-ratio: 4 / 3; min-height: 300px; background-size: auto 100%; background-position: center; }
  .hero-panel { margin-top: -50px; }
  .hero-panel .lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .server-card { grid-template-columns: 1fr; }
  .server-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 76px 0; }
  .card { padding: 24px; }
  .cta { flex-direction: column; text-align: center; padding: 36px 22px; gap: 22px; }
  .cta img { width: 220px; }
  .cta .hero-actions { justify-content: center; }
  .footer-cols { gap: 36px; }
  .page-head { padding: 130px 0 50px; }
  .toc ul { columns: 1; }
  section.rule { padding: 26px 20px; }
}
