  :root {
    --bg: #09090b;
    --surface: #121215;
    --surface-hover: #1a1a1f;
    --border: #27272a;
    --text: #fafafa;
    --muted: #a1a1aa;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --cop: #3b82f6;
    --robber: #ef4444;
    --civ: #22c55e;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 70px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%;
  }
  .logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text); text-decoration: none;
  }
  .logo span { color: var(--accent); }

  .nav-links { display: flex; gap: 32px; list-style: none; }
  .nav-links a {
    color: var(--muted); text-decoration: none; font-size: 0.9rem;
    font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--text); }

  .discord-btn {
    background: #5865F2; color: white; padding: 10px 20px;
    border-radius: 6px; text-decoration: none; font-weight: 600;
    font-size: 0.85rem; display: flex; align-items: center; gap: 8px;
    transition: background 0.2s;
  }
  .discord-btn:hover { background: #4752c4; }

  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 100px 5% 60px;
    background: radial-gradient(circle at 50% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
  }
  .live-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(34, 197, 94, 0.1); color: #22c55e;
    padding: 6px 14px; border-radius: 99px; font-size: 0.85rem;
    font-weight: 600; margin-bottom: 24px; border: 1px solid rgba(34, 197, 94, 0.2);
  }
  .live-badge::before {
    content: ''; width: 8px; height: 8px; background: #22c55e;
    border-radius: 50%; box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
  }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

  .hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 700; text-transform: uppercase;
    line-height: 0.95; margin-bottom: 20px; letter-spacing: -1px;
  }
  .hero h1 span { color: var(--accent); }
  .hero p {
    font-size: 1.15rem; color: var(--muted); max-width: 600px;
    margin-bottom: 40px;
  }

  .ip-box {
    display: flex; align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; margin-bottom: 32px;
    max-width: 400px; width: 100%;
  }
  .ip-box input {
    background: transparent; border: none; color: var(--text);
    padding: 16px 20px; font-size: 1rem; width: 100%;
    font-family: 'Inter', monospace; outline: none;
  }
  .ip-box button {
    background: var(--accent); color: white; border: none;
    padding: 16px 24px; font-weight: 600; cursor: pointer;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px;
    transition: background 0.2s; white-space: nowrap;
  }
  .ip-box button:hover { background: var(--accent-hover); }

  .hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
  .btn {
    padding: 14px 28px; border-radius: 6px; text-decoration: none;
    font-weight: 600; font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 0.5px; transition: all 0.2s; display: inline-flex;
    align-items: center; gap: 8px;
  }
  .btn-primary { background: var(--text); color: var(--bg); }
  .btn-primary:hover { background: #e4e4e7; transform: translateY(-2px); }
  .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
  .btn-outline:hover { border-color: var(--text); background: var(--surface); }

  .stats-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: var(--surface); max-width: 1000px; margin: 0 auto;
    border-radius: 8px; overflow: hidden;
  }
  .stat-item {
    padding: 24px; text-align: center;
    border-right: 1px solid var(--border);
  }
  .stat-item:last-child { border-right: none; }
  .stat-num {
    font-family: 'Oswald', sans-serif; font-size: 2rem;
    font-weight: 700; color: var(--text);
  }
  .stat-label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

  section { padding: 100px 5%; }
  .section-header { text-align: center; margin-bottom: 60px; }
  .section-header h2 {
    font-family: 'Oswald', sans-serif; font-size: 2.5rem;
    text-transform: uppercase; font-weight: 700; margin-bottom: 12px;
  }
  .section-header p { color: var(--muted); max-width: 600px; margin: 0 auto; }

  .factions-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px; max-width: 1200px; margin: 0 auto;
  }
  .faction-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 32px; position: relative;
    transition: transform 0.2s, border-color 0.2s;
  }
  .faction-card:hover { transform: translateY(-4px); }
  .faction-card.cops { border-top: 3px solid var(--cop); }
  .faction-card.cops:hover { border-color: var(--cop); }
  .faction-card.robbers { border-top: 3px solid var(--robber); }
  .faction-card.robbers:hover { border-color: var(--robber); }
  .faction-card.civilian { border-top: 3px solid var(--civ); }
  .faction-card.civilian:hover { border-color: var(--civ); }

  .faction-icon {
    width: 48px; height: 48px; border-radius: 8px;
    display: grid; place-items: center; margin-bottom: 20px;
    font-size: 1.5rem;
  }
  .cops .faction-icon { background: rgba(59, 130, 246, 0.1); color: var(--cop); }
  .robbers .faction-icon { background: rgba(239, 68, 68, 0.1); color: var(--robber); }
  .civilian .faction-icon { background: rgba(34, 197, 94, 0.1); color: var(--civ); }

  .faction-card h3 {
    font-family: 'Oswald', sans-serif; font-size: 1.5rem;
    text-transform: uppercase; margin-bottom: 12px;
  }
  .faction-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
  .faction-card ul { list-style: none; }
  .faction-card li {
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 10px;
  }
  .faction-card li:last-child { border-bottom: none; }
  .faction-card li::before { content: '›'; font-weight: bold; font-size: 1.2rem; }
  .cops li::before { color: var(--cop); }
  .robbers li::before { color: var(--robber); }
  .civilian li::before { color: var(--civ); }

  .steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px; max-width: 1000px; margin: 0 auto;
  }
  .step {
    display: flex; gap: 20px; align-items: flex-start;
  }
  .step-num {
    font-family: 'Oswald', sans-serif; font-size: 3rem;
    font-weight: 700; color: var(--border); line-height: 1;
    min-width: 50px;
  }
  .step h4 {
    font-family: 'Oswald', sans-serif; font-size: 1.2rem;
    text-transform: uppercase; margin-bottom: 8px;
  }
  .step p { color: var(--muted); font-size: 0.95rem; }

  .news-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
  .news-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 24px; display: flex;
    justify-content: space-between; align-items: center;
    text-decoration: none; color: var(--text);
    transition: background 0.2s, border-color 0.2s;
  }
  .news-item:hover { background: var(--surface-hover); border-color: var(--accent); }
  .news-date {
    font-size: 0.8rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 4px;
  }
  .news-title { font-family: 'Oswald', sans-serif; font-size: 1.2rem; text-transform: uppercase; }
  .news-arrow { color: var(--muted); font-size: 1.5rem; transition: transform 0.2s; }
  .news-item:hover .news-arrow { transform: translateX(4px); color: var(--accent); }

  footer {
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 60px 5% 30px; text-align: center;
  }
  .footer-links {
    display: flex; justify-content: center; gap: 32px;
    margin-bottom: 32px; flex-wrap: wrap;
  }
  .footer-links a {
    color: var(--muted); text-decoration: none; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--text); }
  .copyright { color: var(--muted); font-size: 0.8rem; }

  @media (max-width: 768px) {
    .nav-links { display: none; }
    .stats-bar { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:last-child { border-bottom: none; }
    .hero h1 { font-size: 3rem; }
    .news-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  }

  .nav-links a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
  .page-hero {
    padding: 150px 5% 70px; text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.10) 0%, transparent 55%);
    border-bottom: 1px solid var(--border);
  }
  .eyebrow { display: inline-block; color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; }
  .page-hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 700; text-transform: uppercase; line-height: 1; margin-bottom: 16px; }
  .page-hero h1 span { color: var(--accent); }
  .page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
  .wrap { max-width: 1100px; margin: 0 auto; }
  .block { margin-bottom: 64px; }
  .block-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
  .block-title h2 { font-family: 'Oswald', sans-serif; font-size: 2rem; text-transform: uppercase; }
  .block-title .bar { width: 6px; height: 34px; border-radius: 3px; }
  .lead { color: var(--muted); margin-bottom: 26px; max-width: 760px; }
  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
  .info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 26px; }
  .info-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.3rem; text-transform: uppercase; margin-bottom: 6px; }
  .info-card .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 99px; margin-bottom: 14px; }
  .tag.open { background: rgba(34, 197, 94, 0.12); color: var(--civ); }
  .tag.white { background: rgba(249, 115, 22, 0.12); color: var(--accent); }
  .info-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
  .info-card ul { list-style: none; }
  .info-card li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--muted); }
  .info-card li:last-child { border-bottom: none; }
  .info-card li b { color: var(--text); font-weight: 600; }
  .ranks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .ranks span { font-size: 0.78rem; padding: 4px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); color: var(--text); }
  .table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 20px; }
  table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
  th { text-align: left; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
  td { padding: 14px 20px; border-bottom: 1px solid var(--border); }
  tr:last-child td { border-bottom: none; }
  td.lvl { font-family: 'Oswald', sans-serif; font-weight: 700; color: var(--accent); width: 90px; }
  .steps { display: flex; flex-direction: column; gap: 16px; }
  .step-card { display: flex; gap: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
  .step-card .num { font-family: 'Oswald', sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; min-width: 56px; }
  .step-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.25rem; text-transform: uppercase; margin-bottom: 6px; }
  .step-card p { color: var(--muted); }
  code.c { background: var(--bg); padding: 2px 7px; border-radius: 4px; color: var(--accent); font-size: 0.9em; }
  .keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
  .key { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; color: var(--muted); font-size: 0.92rem; }
  kbd { font-family: 'Oswald', sans-serif; font-size: 1rem; min-width: 38px; text-align: center; padding: 4px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); border-bottom-width: 3px; color: var(--text); }
  .post { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 30px; margin-bottom: 20px; }
  .post .news-date { margin-bottom: 6px; }
  .post h2 { font-family: 'Oswald', sans-serif; font-size: 1.7rem; text-transform: uppercase; margin-bottom: 12px; }
  .post p { color: var(--muted); margin-bottom: 12px; }
  .post ul { margin: 0 0 12px 20px; color: var(--muted); }
  .post li { margin-bottom: 6px; }
  .post a { color: var(--accent); }
  .center-box { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 140px 5% 80px; }
  .soon { display: inline-block; background: rgba(249, 115, 22, 0.1); color: var(--accent); border: 1px solid rgba(249, 115, 22, 0.3); padding: 6px 16px; border-radius: 99px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 18px; }
  .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
  @media (max-width: 768px) { .step-card { flex-direction: column; gap: 10px; } }
  .pin { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 2px 9px; border-radius: 99px; background: rgba(249, 115, 22, 0.12); color: var(--accent); margin-left: 8px; vertical-align: middle; }
  .post h2 a { color: var(--text); text-decoration: none; }
  .post h2 a:hover { color: var(--accent); }
  .post strong { color: var(--text); }
  .back-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
  .back-link:hover { color: var(--accent); }
  .empty { text-align: center; color: var(--muted); }
