*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --orange: #ff4500;
    --yellow: #ffd000;
    --dark: #0a0a0a;
    --glass: rgba(10, 10, 10, 0.55);
  }

  html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    background: #000;
    color: #fff;
    cursor: crosshair;
  }

  /* ── VIDEO BG ── */
  #bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.38) saturate(1.2);
  }

  /* fallback gradient when video unavailable */
  #bg-fallback {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
      radial-gradient(ellipse 80% 60% at 20% 50%, rgba(255,69,0,0.25) 0%, transparent 60%),
      radial-gradient(ellipse 70% 80% at 80% 30%, rgba(255,208,0,0.1) 0%, transparent 55%),
      linear-gradient(135deg, #0a0a0a 0%, #111 50%, #0d0d0d 100%);
  }

  /* animated smoke lines */
  #bg-fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 120px,
      rgba(255,69,0,0.03) 120px,
      rgba(255,69,0,0.03) 121px
    );
  }

  /* ── OVERLAY ── */
  .overlay {
    position: fixed;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 30%, transparent 65%, rgba(0,0,0,0.9) 100%),
      linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 40%);
    z-index: 1;
  }

  /* ── LAYOUT ── */
  .site {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2rem 0;
  }

  /* ── HEADER ── */
  header {
    text-align: center;
    animation: fadeDown 0.9s ease both;
  }

  .logo-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.35rem;
  }

  h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    background: linear-gradient(160deg, #fff 30%, var(--yellow) 65%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
  }

  .tagline {
    margin-top: 0.6rem;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
  }

  /* ── SERVER BUTTONS ── */
  .servers {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 1s 0.3s ease both;
  }

  .srv-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 220px;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  .srv-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
  }

  .srv-btn:hover { transform: translateY(-6px) scale(1.03); }
  .srv-btn:hover::before { opacity: 0.18; }
  .srv-btn:hover { border-color: var(--accent); }

  /* accent flash on hover */
  .srv-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    z-index: 0;
  }
  .srv-btn:hover::after { left: 130%; }

  .srv-btn .icon {
    position: relative;
    z-index: 1;
    font-size: 3.2rem;
    margin-bottom: 0.7rem;
    filter: drop-shadow(0 0 12px var(--accent));
    transition: filter 0.3s ease, transform 0.3s ease;
  }
  .srv-btn:hover .icon {
    filter: drop-shadow(0 0 22px var(--accent));
    transform: scale(1.15);
  }

  .srv-btn .label {
    position: relative;
    z-index: 1;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    letter-spacing: 0.1em;
    color: #fff;
  }

  .srv-btn .sublabel {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 0.15rem;
    opacity: 0.85;
  }

  /* corner accent */
  .srv-btn .corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    z-index: 1;
  }
  .srv-btn .corner::before, .srv-btn .corner::after {
    content: '';
    position: absolute;
    background: var(--accent);
  }
  .srv-btn .corner::before { width: 100%; height: 2px; top: 0; right: 0; }
  .srv-btn .corner::after  { width: 2px; height: 100%; top: 0; right: 0; }

  .btn-cruise  { --accent: #00c9ff; }
  .btn-drift   { --accent: var(--orange); }
  .btn-race    { --accent: var(--yellow); }

  /* pulse ring on hover */
  .srv-btn .ring {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent);
    opacity: 0;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transition: opacity 0.3s, transform 0.3s;
    transform: scale(0.97);
  }
  .srv-btn:hover .ring { opacity: 0.6; transform: scale(1); }

  /* live dot */
  .live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3dff6e;
    margin-right: 5px;
    box-shadow: 0 0 6px #3dff6e;
    animation: blink 1.6s infinite;
  }

  /* ── FOOTER ── */
  footer {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    animation: fadeUp 1s 0.6s ease both;
  }

  .footer-main {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.5rem;
  }

  .admin-link {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.18);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.25s;
  }
  .admin-link:hover { color: var(--orange); }

  /* ── MODAL ── */
  .modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 100;
    align-items: center;
    justify-content: center;
  }
  .modal-bg.open { display: flex; }

  .modal {
    background: #111;
    border: 1px solid rgba(255,69,0,0.4);
    padding: 2.5rem 2.8rem;
    width: 340px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    animation: fadeUp 0.35s ease;
  }

  .modal h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-bottom: 1.5rem;
  }

  .modal label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.35rem;
  }

  .modal input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    outline: none;
    margin-bottom: 1.1rem;
    transition: border-color 0.2s;
  }
  .modal input:focus { border-color: var(--orange); }

  .modal-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
  }

  .modal button {
    flex: 1;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    padding: 0.55rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .modal button:hover { opacity: 0.82; }
  .btn-login { background: var(--orange); color: #fff; }
  .btn-cancel { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }

  .modal-error {
    font-size: 0.75rem;
    color: #ff4444;
    margin-top: -0.5rem;
    margin-bottom: 0.6rem;
    display: none;
  }

  /* ── KEYFRAMES ── */
  @keyframes fadeDown { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:none; } }
  @keyframes fadeUp   { from { opacity:0; transform:translateY(30px); }  to { opacity:1; transform:none; } }
  @keyframes blink    { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

  /* smoke particle */
  .smoke {
    position: fixed;
    bottom: -60px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
    animation: smokeDrift linear infinite;
    pointer-events: none;
    z-index: 1;
  }
  @keyframes smokeDrift {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    15%  { opacity: 1; }
    80%  { opacity: 0.4; }
    100% { transform: translateY(-110vh) scale(3.5); opacity: 0; }
  }

  @media (max-width: 768px) {
  .site {
    padding: 2rem 1rem 0;
    justify-content: space-evenly;
  }

  h1 {
    font-size: 3.5rem;
  }

  .tagline {
    font-size: 0.8rem;
  }

  .servers {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }

  .srv-btn {
    width: 85vw;
    max-width: 320px;
    height: 110px;
    flex-direction: row;
    gap: 1.2rem;
    padding: 0 2rem;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  }

  .srv-btn .icon {
    font-size: 2.2rem;
    margin-bottom: 0;
  }

  .srv-btn .label {
    font-size: 1.6rem;
  }

  footer {
    padding: 0.8rem 1rem 1rem;
  }
}

@media (max-width: 400px) {
  h1 { font-size: 2.8rem; }
  .srv-btn { width: 92vw; }
}