:root {
      --red-deep: #771a1a;
      --gold: #990f0f;
      --gold-light: #740000;
      --red: #221616;
      --red-bright: #5f0505;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }

    html, body {
      height: 100%; overflow: hidden;
      font-family: 'Barlow', sans-serif;
    }

    body {
      background-color: var(--red-deep);
      background-image:
        url('assets/images/miniature.png'),
        url('/assets/images/miniature.png');
      background-position: center, center;
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    /* Dark overlay with green tint */
    .overlay {
      position: fixed; inset: 0; z-index: 0;
      background:
        radial-gradient(ellipse 80% 70% at 50% 50%, rgba(223, 0, 0, 0.45) 0%, rgba(110, 100, 100, 0.92) 100%);
    }

    /* Scanlines */
    .scanlines {
      position: fixed; inset: 0; z-index: 1;
      background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px
      );
      pointer-events: none;
    }

    /* Grid pattern */
    .grid-bg {
      position: fixed; inset: 0; z-index: 0;
      background-image:
        linear-gradient(rgba(192,0,0,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192,0,0,0.12) 1px, transparent 1px);
      background-size: 60px 60px;
    }

    /* Corner decorations */
    .corner {
      position: fixed; z-index: 2; width: 60px; height: 60px;
      pointer-events: none;
    }
    .corner-tl { top: 32px; left: 32px;
      border-top: 2px solid rgba(228, 45, 45, 0.65);
      border-left: 2px solid rgb(255, 0, 0);
    }
    .corner-tr { top: 32px; right: 32px;
      border-top: 2px solid rgb(255, 0, 0);
      border-right: 2px solid rgba(192,0,0,0.65);
    }
    .corner-bl { bottom: 32px; left: 32px;
      border-bottom: 2px solid rgba(192,0,0,0.65);
      border-left: 2px solid rgba(192,0,0,0.65);
    }
    .corner-br { bottom: 32px; right: 32px;
      border-bottom: 2px solid rgba(192,0,0,0.65);
      border-right: 2px solid rgba(192,0,0,0.65);
    }

    /* Center content */
    .center-content {
      position: relative; z-index: 3;
      display: flex; flex-direction: column;
      align-items: center; gap: 0;
      opacity: 0;
    }

    .logo-wrap {
      margin-bottom: 32px;
    }
    .logo-wrap img {
      width: 100px; height: 100px;
      border-radius: 16px;
      border: 2px solid rgba(192,0,0,0.55);
      box-shadow: 0 0 40px rgba(192,0,0,0.35), 0 8px 32px rgba(0,0,0,0.6);
      display: block; margin: 0 auto;
    }

    .server-name {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 13px; font-weight: 700; letter-spacing: 6px;
      text-transform: uppercase; color: rgba(255,26,26,0.85);
      margin-bottom: 16px; text-align: center;
    }

    .enter-btn {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(72px, 12vw, 140px);
      letter-spacing: 10px;
      color: #ffffff;
      text-shadow: 0 0 40px rgba(192,0,0,0.45), 0 2px 20px rgba(0,0,0,0.8);
      background: none; border: none;
      cursor: none !important;
      transition: color 0.25s, text-shadow 0.25s, transform 0.15s;
      user-select: none; display: block;
      line-height: 1;
    }
    .enter-btn:hover {
      color: var(--gold);
      text-shadow: 0 0 80px rgba(192,0,0,0.55), 0 0 40px rgba(255,26,26,0.35);
      transform: scale(1.03);
    }

    .enter-sub {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 13px; letter-spacing: 4px;
      text-transform: uppercase;
      color: rgba(255,255,255,0.3);
      margin-top: 16px; text-align: center;
    }
    .enter-sub span { color: rgba(255,77,77,0.85); }

    /* Status bar */
    .status-bar {
      position: fixed; bottom: 48px; left: 50%;
      transform: translateX(-50%);
      z-index: 3; display: flex; align-items: center; gap: 32px;
      opacity: 0;
    }
    .status-item {
      display: flex; align-items: center; gap: 8px;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
      color: rgba(255,255,255,0.35);
    }
    .status-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 8px #4ade80;
      animation: blink 2s ease-in-out infinite;
    }
    @keyframes blink {
      0%,100% { opacity:1; } 50% { opacity:0.3; }
    }
    .status-sep { color: rgba(192,0,0,0.45); font-size: 20px; }

    /* Crosshair */
    #crosshair {
      position: fixed; pointer-events: none; z-index: 9999;
      width: 36px; height: 36px;
      transform: translate(-50%,-50%);
      transition: transform 0.04s ease;
    }
    #crosshair svg { width: 100%; height: 100%; }
    #crosshair.shoot { transform: translate(-50%,-50%) scale(1.4); }

    /* Bullet hole */
    .bullet-hole {
      position: fixed; pointer-events: none; z-index: 8000;
      width: 26px; height: 26px;
      transform: translate(-50%,-50%);
      animation: holeFade 1.1s ease-out forwards;
    }
    @keyframes holeFade {
      0% { opacity:1; transform:translate(-50%,-50%) scale(0.2); }
      20% { transform:translate(-50%,-50%) scale(1.1); opacity:1; }
      30% { transform:translate(-50%,-50%) scale(1); }
      100% { opacity:0; transform:translate(-50%,-50%) scale(1); }
    }

    /* Flash */
    .flash {
      position: fixed; pointer-events: none; z-index: 9000;
      width: 50px; height: 50px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,26,26,0.95) 0%, rgba(192,0,0,0.45) 50%, transparent 70%);
      transform: translate(-50%,-50%);
      animation: flashOut 0.1s ease-out forwards;
    }
    @keyframes flashOut {
      0% { opacity:1; transform:translate(-50%,-50%) scale(0.4); }
      100% { opacity:0; transform:translate(-50%,-50%) scale(1.2); }
    }

    /* Transition screen */
    .transition-out {
      position: fixed; inset: 0; z-index: 10000;
      background: var(--red-deep);
      opacity: 0; pointer-events: none;
    }

    @media (max-width: 700px), (pointer: coarse) {
      * { cursor: auto !important; }
      body { padding: 24px; background-attachment: scroll; }
      .center-content { width: min(100%, 360px); }
      .logo-wrap { margin-bottom: 24px; }
      .logo-wrap img { width: 82px; height: 82px; }
      .server-name {
        font-size: 11px;
        letter-spacing: 3px;
        line-height: 1.4;
      }
      .enter-btn {
        font-size: clamp(54px, 18vw, 86px);
        letter-spacing: 5px;
      }
      .enter-sub {
        font-size: 11px;
        letter-spacing: 2px;
        line-height: 1.5;
      }
      .status-bar {
        bottom: 22px;
        width: calc(100% - 40px);
        flex-direction: column;
        gap: 7px;
        text-align: center;
      }
      .status-item {
        justify-content: center;
        font-size: 10px;
        letter-spacing: 1.5px;
      }
      .status-sep { display: none; }
      .corner {
        width: 34px;
        height: 34px;
      }
      .corner-tl { top: 16px; left: 16px; }
      .corner-tr { top: 16px; right: 16px; }
      .corner-bl { bottom: 16px; left: 16px; }
      .corner-br { bottom: 16px; right: 16px; }
      #crosshair { display: none; }
    }
