  :root {
    --bg-deep: #101114;
    --bg-card: #1f222b;
    --bg-card-hover: #30333d;
    --accent-red: #ff3a3a;
    --accent-green: #3aff5b;
    --accent-blue: #3aafff;
    --accent-orange: #a8714c;
    --text-primary: #e8eaf0;
    --text-secondary: #8892a8;
    --text-dim: #555b72;
    --border-subtle: #2c3142;
    --nerf-red: #ff4444;
    --buff-green: #44ff88;
    --glow-red: 0 0 20px rgba(255, 58, 58, 0.3);
    --glow-green: 0 0 20px rgba(43, 255, 110, 0.3);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'IBM Plex Sans Condensed';
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Animated background grain */
  body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
  }

  /* Scanline effect */
  body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
  }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
  }

  /* ─── HEADER ─── */
  .header {
    padding: 80px 0 0px;
    text-align: center;
    position: relative;
  }

  .version-tag {
    display: inline-block;
    font-family: 'IBM Plex Sans Condensed';
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-red);
    border: 1px solid rgba(255, 58, 58, 0.3);
    padding: 6px 20px;
    margin-bottom: 24px;
    position: relative;
    animation: pulse-border 3s ease-in-out infinite;
  }

  @keyframes pulse-border {
    0%, 100% { border-color: rgba(255, 58, 58, 0.3); }
    50% { border-color: rgba(255, 58, 58, 0.7); }
  }

  .header h1 {
    font-family: 'Sofia Sans Condensed';
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 8px;
    background-clip: text;
  }

  .header .subtitle {
    font-family: 'Sofia Sans Condensed';
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 6px;
    text-transform: uppercase;
  }

  /* ─── SECTION HEADERS ─── */
  .section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 64px 0 12px;
  }

  .section-header h2 {
    font-family: 'Sofia Sans Condensed';
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    white-space: nowrap;
  }

  .section-header .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-subtle), transparent);
  }

  .section-intro {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 800px;
  }

  /* ─── WEAPON CARDS ─── */
  .weapon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    margin-bottom: 32px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, transform 0.2s ease;
  }

  .weapon-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
  }

  .weapon-card.nerf { border-left: 3px solid var(--nerf-red); }
  .weapon-card.buff { border-left: 3px solid var(--buff-green); }
  .weapon-card.mixed { border-left: 3px solid var(--accent-orange); }

  .weapon-card-top {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 200px;
  }

  @media (max-width: 700px) {
    .weapon-card-top {
      grid-template-columns: 1fr;
    }
  }

  .weapon-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
  }

  .weapon-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse at center, rgba(58, 175, 255, 0.04) 0%, transparent 70%);
  }

  .weapon-image-wrap img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
  }

  .weapon-card:hover .weapon-image-wrap img {
    transform: scale(1.05);
  }

  .weapon-info {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .weapon-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }

  .weapon-type {
    font-family: 'IBM Plex Sans Condensed';
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  .rarity-badge {
    font-family: 'IBM Plex Sans Condensed';
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 1px;
  }

  .rarity-common { color: var(--rarity-common); border: 1px solid rgba(156, 163, 175, 0.3); }
  .rarity-rare { color: var(--rarity-rare); border: 1px solid rgba(99, 102, 241, 0.3); }
  .rarity-legendary { color: var(--rarity-legendary); border: 1px solid rgba(245, 158, 11, 0.3); }

  .change-badge {
    font-family: 'IBM Plex Sans Condensed';
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 1px;
  }

  .badge-nerf { color: var(--nerf-red); border: 1px solid rgba(255, 68, 68, 0.3); }
  .badge-buff { color: var(--buff-green); border: 1px solid rgba(68, 255, 136, 0.3); }
  .badge-mixed { color: var(--accent-orange); border: 1px solid rgba(255, 138, 43, 0.3); }

  .weapon-name {
    font-family: 'Sofia Sans Condensed';
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .weapon-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    opacity: 0.8;
  }

  /* ─── CHANGES LIST ─── */
  .changes-section {
    padding: 0 32px 28px;
  }

  .dev-note {
    background: rgba(58, 175, 255, 0.04);
    border-left: 2px solid rgba(58, 175, 255, 0.2);
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 0 2px 2px 0;
  }

  .dev-note-label {
    font-family: 'IBM Plex Sans Condensed';
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 8px;
  }

  .dev-note p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
  }

  .changes-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .change-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    gap: 16px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
  }

  .change-row:hover {
    border-color: var(--border-subtle);
  }

  .change-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
  }

  .change-values {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Sans Condensed';
    font-size: 14px;
    white-space: nowrap;
  }

  .val-old {
    color: var(--text-dim);
    text-decoration: line-through;
  }

  .arrow {
    color: var(--text-dim);
    font-size: 12px;
  }

  .val-new.nerf { color: var(--nerf-red); text-shadow: var(--glow-red); }
  .val-new.buff { color: var(--buff-green); text-shadow: var(--glow-green); }

  .change-row.is-nerf { border-left: 2px solid rgba(255, 68, 68, 0.15); }
  .change-row.is-buff { border-left: 2px solid rgba(68, 255, 136, 0.15); }

  /* ─── ITEM SECTION ─── */
  .item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
  }  
  
  .item-grid-custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    gap: 16px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
  }

  .item-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 4px;
    padding: 20px 24px;
    transition: border-color 0.3s;
  }

  .item-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
  }

  .item-name {
    font-family: 'Sofia Sans Condensed';
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }

  .item-changes {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .item-change {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
  }

  .item-change::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--text-dim);
  }

  .item-change .val-up { color: var(--nerf-red); font-family: 'IBM Plex Sans Condensed'; font-size: 12px; }
  .item-change .val-down { color: var(--buff-green); font-family: 'IBM Plex Sans Condensed'; font-size: 12px; }
  .item-change .val-new-craft { color: var(--accent-blue); font-family: 'IBM Plex Sans Condensed'; font-size: 12px; }

  /* ─── MISC ─── */
  .energy-clip-note {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent-blue);
    padding: 16px 24px;
    margin-bottom: 40px;
    border-radius: 2px;
  }

  .energy-clip-note p {
    color: var(--text-secondary);
    font-size: 14px;
  }

  .energy-clip-note strong {
    color: var(--accent-blue);
  }

  /* ─── FOOTER ─── */
  .footer {
    text-align: center;
    padding: 60px 0 40px;
    color: var(--text-dim);
    font-family: 'IBM Plex Sans Condensed';
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
  }

  .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  }

  /* ─── ANIMATIONS ─── */
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .weapon-card, .item-card, .energy-clip-note {
    animation: fade-up 0.6s ease-out both;
  }

  .weapon-card:nth-child(1) { animation-delay: 0.1s; }
  .weapon-card:nth-child(2) { animation-delay: 0.2s; }
  .weapon-card:nth-child(3) { animation-delay: 0.3s; }
  .weapon-card:nth-child(4) { animation-delay: 0.4s; }
  .weapon-card:nth-child(5) { animation-delay: 0.5s; }

  a:link, a:visited {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);

    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: 2px;
    text-align: center;

    text-decoration: none;
    display: inline-block;
    font-size: 18px;    

    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, transform 0.2s ease;
  }

  a:hover, a:active {
    background-color: rgba(75, 136, 177, 0.2);
  }

  /* ─── INDEX: PATCH LIST ─── */
  .patch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
  }

  .patch-grid-custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .patch-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    gap: 16px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
  }

  .patch-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 4px;
    padding: 20px 24px;
    transition: border-color 0.3s;
    animation: fade-up 0.6s ease-out both;
  }

  .patch-card:hover {
    background-color: rgba(75, 136, 177, 0.2);
  }

  .patch-name {
    font-family: 'Sofia Sans Condensed';
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .patch-release {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'IBM Plex Sans Condensed';
    font-size: 14px;
  }

  .note {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent-blue);
    padding: 16px 24px;
    border-radius: 2px;
  }

  .note p {
    color: var(--text-secondary);
    font-size: 14px;
  }

  .note strong {
    color: var(--accent-blue);
  }
