  /* ============================= BASE ============================= */
  :root {
    --bg: #f5f5f7;
    --card: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e2e8f0;
    --red: #ef4444;
    --red-deep: #dc2626;
    --orange: #f97316;
    --amber: #f59e0b;
    --emerald: #10b981;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: "Instrument Sans", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  h1, h2, h3, .display { font-family: "Space Grotesk", sans-serif; }

  .pixel {
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  ::selection { background: rgba(239, 68, 68, 0.25); }

  ::-webkit-scrollbar { width: 9px; }
  ::-webkit-scrollbar-track { background: #eef1f5; }
  ::-webkit-scrollbar-thumb { background: #c3ccd8; border-radius: 99px; border: 2px solid #eef1f5; }
  ::-webkit-scrollbar-thumb:hover { background: #9aa7b8; }

  /* ============================= SCROLL PROGRESS ============================= */
  #scrollProgress {
    position: fixed;
    top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--red), var(--orange));
    z-index: 90;
    border-radius: 0 99px 99px 0;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
  }

  /* ============================= LOADER ============================= */
  #loader {
    position: fixed; inset: 0;
    background: #f4f5f7;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  #loader.done {
    animation: loaderOut 0.4s var(--ease) forwards;
    pointer-events: none;
  }
  @keyframes loaderOut {
    to { opacity: 0; }
  }

  .loader-glow-a {
    position: absolute;
    top: -18%; left: 50%; transform: translateX(-50%);
    width: 460px; height: 460px;
    border-radius: 50%;
    filter: blur(70px);
    background: radial-gradient(circle, rgba(252,165,165,0.4), rgba(254,215,170,0.22), transparent 70%);
  }

  .loader-inner { position: relative; z-index: 2; width: min(280px, 80vw); text-align: center; }

  .loader-logo {
    width: 60px; height: 60px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    animation: logoIn 0.5s var(--ease) both;
  }
  .loader-logo svg { width: 28px; height: 28px; color: var(--red); }
  .loader-logo img { width: 100%; height: 100%; object-fit: contain; }
  @keyframes logoIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  .loader-kicker { color: var(--ink); margin-bottom: 22px; font-size: 10px; }

  .loader-bar-wrap { margin: 0 auto; }
  .loader-bar { height: 3px; background: #e3e7ee; border-radius: 99px; overflow: hidden; }
  #loaderFill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--red), var(--orange));
    border-radius: 99px;
  }
  #loaderPhase { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--faint); }

  /* ============================= PAGE ENTRANCE ============================= */
  .entry { opacity: 0; transform: translateY(26px); }
  body.ready .entry {
    animation: rise 0.85s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 95ms);
  }
  @keyframes rise { to { opacity: 1; transform: none; } }

  /* ============================= SCROLL REVEAL ============================= */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(5px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .reveal.in { opacity: 1; transform: none; filter: blur(0); }

  /* ============================= AMBIENT BACKGROUND ============================= */
  .bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .bg-glow {
    position: absolute; border-radius: 50%; filter: blur(90px);
  }
  .bg-glow-top {
    top: -240px; left: 50%; transform: translateX(-50%);
    width: 820px; height: 520px;
    background: radial-gradient(ellipse, rgba(254,202,202,0.75), rgba(254,215,170,0.45) 45%, transparent 72%);
  }
  .bg-glow-blue {
    bottom: -260px; right: -180px;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(191,219,254,0.6), transparent 70%);
    animation: drift 12s ease-in-out infinite;
  }
  .bg-glow-rose {
    top: 42%; left: -160px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(254,205,211,0.55), transparent 70%);
    animation: drift 9s ease-in-out infinite reverse;
  }
  @keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(34px, -26px); }
  }

  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

  /* ============================= NAV ============================= */
  .nav-slot {
    padding: 20px 24px 0;
    position: sticky;
    top: 14px;
    z-index: 70;
    transition: top 0.25s var(--ease);
  }
  .nav {
    max-width: 1040px; margin: 0 auto;
    min-height: 68px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(226,232,240,0.95);
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(15,23,42,0.09);
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px;
    gap: 14px;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  }
  .nav-slot.scrolled .nav {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 14px 34px rgba(15,23,42,0.14);
  }
  .nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
  .nav-logo {
    width: 40px; height: 40px; flex: none;
    display: flex; align-items: center; justify-content: center;
  }
  .nav-logo svg { width: 26px; height: 26px; color: var(--red); }
  .nav-logo img { width: 100%; height: 100%; object-fit: contain; }
  .nav-name { font-family: "Space Grotesk"; font-weight: 700; font-size: 17px; letter-spacing: -0.03em; line-height: 1; }
  .nav-sub { font-size: 9px; color: var(--faint); margin-top: 4px; }

  .nav-tabs {
    display: flex; gap: 4px;
    background: #f1f4f8;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 4px;
  }
  .nav-tabs a {
    text-decoration: none;
    font-size: 13px; font-weight: 600;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 99px;
    transition: all 0.22s var(--ease);
  }
  .nav-tabs a:hover { color: var(--ink); background: #fff; box-shadow: 0 4px 10px rgba(15,23,42,0.07); }
  .nav-tabs a.active { background: var(--ink); color: #fff; box-shadow: 0 6px 14px rgba(15,23,42,0.25); }

  .nav-right { display: flex; align-items: center; gap: 10px; flex: none; }

  .theme-toggle {
    width: 38px; height: 38px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f1f4f8;
    border: 1px solid var(--line);
    color: #475569;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
  }
  .theme-toggle:hover { color: var(--ink); background: #fff; border-color: #cbd5e1; transform: translateY(-1px); }
  .theme-toggle:active { transform: scale(0.92); }
  .theme-toggle svg { transition: transform 0.35s var(--ease); }
  .theme-toggle:hover svg { transform: rotate(24deg); }

  .nav-status {
    display: flex; align-items: center; gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 99px;
    padding: 8px 14px;
    font-size: 12px; font-weight: 700; color: #047857;
    flex: none;
  }
  .dot { position: relative; width: 8px; height: 8px; flex: none; }
  .dot::after {
    content: ""; position: absolute; inset: 0;
    border-radius: 50%; background: var(--emerald);
    animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
  .dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--emerald); z-index: 1; }
  @keyframes ping {
    0% { transform: scale(1); opacity: 0.7; }
    80%, 100% { transform: scale(2.6); opacity: 0; }
  }

  /* ============================= TICKER ============================= */
  .ticker {
    max-width: 1040px; margin: 14px auto 0;
    border: 1px dashed #f3b4b4;
    background: rgba(255,255,255,0.7);
    border-radius: 99px;
    overflow: hidden;
    padding: 9px 0;
    display: flex;
  }
  .ticker-track {
    display: flex; gap: 44px; white-space: nowrap;
    animation: ticker 30s linear infinite;
    width: max-content;
  }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(-50%); } }
  .ticker-item { font-size: 12px; font-weight: 600; color: var(--muted); }
  .ticker-item b { color: var(--ink); }
  .ticker-item .x { color: var(--red); font-weight: 800; }
  .ticker-item .sep { color: #f0c8c8; margin-left: 44px; }

  /* ============================= HERO ============================= */
  .hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
    align-items: center;
    padding: 64px 0 44px;
  }

  .hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--red-deep); background: #fff; border: 1px solid #fecaca; border-radius: 99px; padding: 8px 14px; box-shadow: 0 8px 18px rgba(239,68,68,0.08); }
  .hero-kicker .pixel { color: var(--red-deep); }
  .kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulseDot 1.8s ease-in-out infinite; }
  @keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.45); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(44px, 6.4vw, 76px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.98;
  }
  .hl {
    background: linear-gradient(180deg, transparent 62%, rgba(239,68,68,0.28) 62%);
    padding: 0 2px;
  }
  .hero p.lead {
    margin-top: 20px;
    max-width: 480px;
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--muted);
    font-weight: 500;
  }

  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: "Instrument Sans"; font-size: 14px; font-weight: 700;
    padding: 13px 24px; border-radius: 99px;
    text-decoration: none; cursor: pointer; border: none;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s;
  }
  .btn:active { transform: scale(0.96); }
  .btn-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 28px rgba(15,23,42,0.28); }
  .btn-dark:hover { transform: translateY(-2px); box-shadow: 0 20px 36px rgba(15,23,42,0.34); }
  .btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 18px rgba(15,23,42,0.06); }
  .btn-ghost:hover { transform: translateY(-2px); border-color: #cbd5e1; }

  .hero-mini { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
  .hero-mini .stat { display: flex; align-items: baseline; gap: 7px; }
  .hero-mini .stat b { font-family: "Space Grotesk"; font-size: 22px; letter-spacing: -0.03em; }
  .hero-mini .stat span { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
  .hero-mini .divi { width: 1px; height: 26px; background: var(--line); }

  /* skin preview card */
  .skin-stage { position: relative; }
  .skin-card {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #f6f8fb 60%, #eef2f7 100%);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(15,23,42,0.14);
    padding: 26px 26px 30px;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    will-change: transform;
  }
  .skin-card-top { display: flex; justify-content: space-between; align-items: center; }
  .skin-card-top .pixel { color: var(--faint); }
  .rec { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--red-deep); }
  .rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulseDot 1.4s ease-in-out infinite; }

  .pedestal {
    margin: 18px auto 6px;
    width: 190px; height: 190px;
    display: flex; align-items: flex-end; justify-content: center;
    position: relative;
  }
  .pedestal::before {
    content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
    width: 130px; height: 26px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(15,23,42,0.22), transparent 70%);
    filter: blur(3px);
  }
  .pedestal img {
    position: relative;
    width: 172px; height: 172px; object-fit: contain;
    filter: drop-shadow(0 18px 18px rgba(15,23,42,0.25));
    animation: hover 4.2s ease-in-out infinite;
    user-select: none;
  }
  @keyframes hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
  }
  .skin-name { font-family: "Space Grotesk"; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
  .skin-uuid { font-family: monospace; font-size: 11px; color: var(--faint); margin-top: 5px; }
  .skin-badges { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
  .badge-perm { background: #fef2f2; border: 1px solid #fecaca; color: var(--red-deep); font-size: 11.5px; font-weight: 800; padding: 6px 13px; border-radius: 99px; }
  .badge-uuid { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 11.5px; font-weight: 800; padding: 6px 13px; border-radius: 99px; }

  .float-chip {
    position: absolute;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(15,23,42,0.13);
    padding: 10px 14px;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    animation: chipFloat 5s ease-in-out infinite;
  }
  .float-chip .ok { color: var(--emerald); }
  .float-chip.warn { color: var(--red-deep); }
  .chip-a { top: 44px; left: -34px; }
  .chip-b { bottom: 56px; right: -30px; animation-delay: 1.4s; }
  @keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  /* ============================= STATS BAND ============================= */
  .stats-band {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(15,23,42,0.07);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
  }
  .stats-cell { padding: 28px 30px; position: relative; }
  .stats-cell + .stats-cell::before {
    content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
    width: 1px; background: var(--line);
  }
  .stats-cell .pixel { color: var(--faint); display: block; margin-bottom: 12px; }
  .stats-num { font-family: "Space Grotesk"; font-size: 44px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
  .stats-num.c-red { color: var(--red); }
  .stats-num.c-orange { color: var(--orange); }
  .stats-num.c-blue { color: #3b82f6; }
  .stats-desc { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }

  /* ============================= BLACKLIST ============================= */
  .section { padding: 58px 0 8px; }
  .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
  .section-head h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; }
  .section-head .sub { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
  .count-pill {
    background: #fff; border: 1px solid var(--line); border-radius: 99px;
    padding: 9px 18px; font-size: 13px; font-weight: 700; color: var(--muted);
    box-shadow: 0 8px 18px rgba(15,23,42,0.06);
  }
  .count-pill b { color: var(--ink); }

  .board {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 26px 60px rgba(15,23,42,0.08);
    overflow: hidden;
  }

  .board-head, .ban-row {
    display: grid;
    grid-template-columns: 96px 1.2fr 1.5fr 0.85fr 0.9fr 0.7fr;
    gap: 20px;
    align-items: center;
    padding: 16px 26px;
  }
  .board-head {
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    padding-top: 14px; padding-bottom: 14px;
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.13em;
    color: var(--faint);
  }
  .board-head .ta-c { text-align: center; }
  .board-head .ta-r { text-align: right; }

  .ban-row {
    padding-top: 18px; padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .ban-row:last-child { border-bottom: none; }
  #banRows.is-loading { opacity: 0.5; transition: opacity 0.15s ease; pointer-events: none; }
  .ban-row:hover { background: #f8fafc; transform: translateX(3px); }

  .bust-box {
    display: flex; align-items: flex-end; justify-content: center;
    height: 96px; width: 78px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f1f5f9 0%, #fbfcfe 100%);
    border: 1px solid #e6ebf2;
    box-shadow: inset 0 -8px 14px rgba(15,23,42,0.05), 0 8px 16px rgba(15,23,42,0.06);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }
  .ban-row:hover .bust-box { transform: translateY(-4px) scale(1.05); box-shadow: inset 0 -8px 14px rgba(15,23,42,0.05), 0 16px 26px rgba(15,23,42,0.12); }
  .bust-box img, .bust-box .bust-fallback {
    width: 84px; height: 84px; object-fit: contain;
    filter: drop-shadow(0 9px 10px rgba(15,23,42,0.25));
    margin-bottom: -2px;
    user-select: none;
  }
  .bust-fallback {
    display: flex; align-items: center; justify-content: center;
    font-family: "Space Grotesk"; font-weight: 700; font-size: 30px; color: var(--faint);
    background: linear-gradient(135deg, #eef2f7, #e2e8f0);
    border-radius: 14px;
  }

  .player-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; transition: color 0.2s; }
  .ban-row:hover .player-name { color: var(--red-deep); }
  .player-uuid { font-family: monospace; font-size: 11px; color: var(--faint); margin-top: 4px; }

  .cell-reason { font-size: 13.5px; font-weight: 600; color: var(--muted); line-height: 1.5; }
  .cell-mod { font-size: 13.5px; font-weight: 700; color: #334155; }
  .cell-date { font-size: 13.5px; font-weight: 700; color: #334155; }
  .cell-date .until { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; color: var(--orange); }
  .cell-date .forever { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; color: var(--faint); }

  .type-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 7px 14px; border-radius: 99px; justify-self: end; }
  .type-perm { background: #fef2f2; border: 1px solid #fecaca; color: var(--red-deep); }
  .type-temp { background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; }

  /* ============================= ABOUT ============================= */
  .about-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 26px 60px rgba(15,23,42,0.08);
    padding: 44px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
  }
  .about-card h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; }
  .about-card .desc { margin-top: 16px; font-size: 15.5px; line-height: 1.8; color: var(--muted); font-weight: 500; }
  .platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .platforms span {
    font-size: 12px; font-weight: 700; color: var(--muted);
    background: #f1f5f9; border: 1px solid var(--line);
    border-radius: 99px; padding: 7px 14px;
    transition: all 0.22s var(--ease);
  }
  .platforms span:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

  .steps { display: grid; gap: 12px; }
  .step {
    display: flex; align-items: center; gap: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 15px 18px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  }
  .step:hover { transform: translateX(6px); border-color: #fecaca; box-shadow: 0 12px 24px rgba(239,68,68,0.08); }
  .step-num {
    flex: none; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line);
    border-radius: 13px;
    font-family: "Space Grotesk"; font-weight: 700; font-size: 14px; color: var(--red-deep);
    box-shadow: 0 6px 12px rgba(15,23,42,0.06);
  }
  .step-txt { font-size: 14px; font-weight: 700; color: #334155; }

  /* ============================= FOOTER ============================= */
  footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,0.7);
    padding: 26px 0;
  }
  .footer-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--muted); }
  .footer-brand { display: flex; align-items: center; gap: 10px; }
  .footer-logo { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
  .footer-logo svg { width: 14px; height: 14px; color: var(--red); }
  .footer-logo img { width: 100%; height: 100%; object-fit: contain; }

  /* ============================= RESPONSIVE ============================= */
  @media (max-width: 940px) {
    .hero { grid-template-columns: 1fr; padding-top: 44px; }
    .skin-stage { max-width: 430px; margin: 0 auto; width: 100%; }
    .chip-a { left: -8px; }
    .chip-b { right: -8px; }
    .stats-band { grid-template-columns: 1fr 1fr; }
    .stats-cell:nth-child(3)::before { display: none; }
    .stats-cell + .stats-cell::before { display: none; }
    .stats-cell { border-top: 1px solid #f1f5f9; }
    .stats-cell:nth-child(-n+2) { border-top: none; }
    .stats-cell:nth-child(even) { border-left: 1px solid #f1f5f9; }
    .about-card { grid-template-columns: 1fr; padding: 30px; }
  }

  @media (max-width: 760px) {
    .nav-tabs { display: none; }
    .board-head { display: none; }
    .ban-row {
      grid-template-columns: 78px 1fr;
      grid-template-areas:
        "bust player"
        "bust reason"
        "meta meta";
      row-gap: 10px;
      padding: 20px;
    }
    .ban-row .bust-box { grid-area: bust; width: 72px; height: 88px; }
    .ban-row .bust-box img, .ban-row .bust-box .bust-fallback { width: 72px; height: 72px; }
    .ban-row .cell-player { grid-area: player; }
    .ban-row .cell-reason { grid-area: reason; }
    .ban-row .cell-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
    .type-badge { justify-self: start; }
  }
  @media (min-width: 761px) {
    .ban-row .cell-meta { display: contents; }
  }

/* ============================= DODATKI: POBIERANIE ============================= */
.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 20px 46px rgba(15,23,42,0.06);
}
.dl-btn-box {
  display: flex; align-items: center; gap: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  flex-wrap: wrap;
}
.dl-icon {
  flex: none; width: 52px; height: 52px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f87171, var(--red-deep));
  color: #fff;
  box-shadow: 0 10px 22px rgba(239,68,68,0.28);
}
.dl-info { flex: 1; min-width: 160px; }
.dl-title { font-family: "Space Grotesk"; font-weight: 700; font-size: 17px; }
.dl-sub { margin-top: 3px; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.dl-btn { flex: none; }

@media (max-width: 480px) {
  .dl-btn-box { flex-direction: column; align-items: stretch; text-align: center; }
  .dl-icon { margin: 0 auto; }
  .dl-btn { justify-content: center; }
}

/* ============================= DODATKI: FORMULARZ ZGŁOSZEŃ ============================= */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 20px 46px rgba(15,23,42,0.06);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.01em; }
.field label .opt { font-weight: 500; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.form-note { font-size: 12.5px; color: var(--faint); }
/* honeypot - ukryte pole antyspamowe, niewidoczne dla ludzi */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

.alert { border-radius: 14px; padding: 14px 18px; font-size: 14px; font-weight: 600; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.rules-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  margin-bottom: 26px;
}
.rules-card h3 { font-size: 18px; margin-bottom: 12px; }
.rules-card ul { list-style: none; display: grid; gap: 10px; }
.rules-card li { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.rules-card li b { color: var(--ink); }
.rules-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--muted);
}

.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 99px; }
.st-new { background: #eff6ff; color: #1d4ed8; }
.st-progress { background: #fffbeb; color: #b45309; }
.st-accepted { background: #ecfdf5; color: #047857; }
.st-rejected { background: #fef2f2; color: #b91c1c; }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
}

/* ============================= MODAL SZCZEGÓŁÓW GRACZA (STRONA PUBLICZNA) ============================= */
.pmodal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px;
  animation: pmodalFade 0.18s var(--ease);
}
@keyframes pmodalFade { from { opacity: 0; } to { opacity: 1; } }
.pmodal-box {
  width: 100%; max-width: 460px; background: var(--card); border-radius: 26px;
  padding: 30px; box-shadow: 0 40px 90px rgba(15,23,42,0.35);
  max-height: 90vh; overflow-y: auto; position: relative;
  animation: pmodalUp 0.22s var(--ease);
}
@keyframes pmodalUp { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.pmodal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.pmodal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pmodal-close svg { width: 15px; height: 15px; }

.pmodal-render {
  width: 100%; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 50% 20%, #fef2f2, var(--bg));
  border-radius: 20px; padding: 22px 0 0; min-height: 240px; overflow: hidden;
}
.pmodal-render img { height: 240px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 18px 20px rgba(15,23,42,0.18)); }
.pmodal-render .bust-fallback { width: 120px; height: 120px; font-size: 44px; margin-bottom: 20px; }

.pmodal-name { font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; text-align: center; margin-top: 18px; }
.pmodal-uuid { font-family: monospace; font-size: 11.5px; color: var(--faint); text-align: center; margin-top: 4px; word-break: break-all; }

.pmodal-badge { display: flex; justify-content: center; margin-top: 14px; }

.pmodal-reason {
  margin-top: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
}
.pmodal-reason .k { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.pmodal-reason .v { font-size: 14.5px; color: var(--ink); line-height: 1.5; }

.pmodal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pmodal-meta .item { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pmodal-meta .k { font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.pmodal-meta .v { font-size: 13.5px; font-weight: 700; color: var(--ink); }

@media (max-width: 480px) {
  .pmodal-box { padding: 22px; }
  .pmodal-meta { grid-template-columns: 1fr; }
}

/* ============================= CIEMNY MOTYW ============================= */
/* Przełączane atrybutem data-theme="dark" na <html> (patrz includes/header.php + assets/js/main.js).
   Nadpisuje zmienne bazowe + najważniejsze twardo zakodowane jasne tła, żeby cała
   strona publiczna (Start / Rejestr / Zgłoszenia / Pobierz) dało się przełączyć na ciemno. */
html[data-theme="dark"] {
  --bg: #0b0e14;
  --card: #131722;
  --ink: #e8ecf4;
  --muted: #97a1b4;
  --faint: #6b7688;
  --line: #232a38;
}

html[data-theme="dark"] .theme-toggle { background: #1a2030; border-color: var(--line); color: #cbd5e1; }
html[data-theme="dark"] .theme-toggle:hover { background: #202738; color: var(--ink); border-color: #333c50; }
html[data-theme="dark"] .nav-logo img,
html[data-theme="dark"] .loader-logo img,
html[data-theme="dark"] .footer-logo img { filter: invert(1); }

html[data-theme="dark"] ::-webkit-scrollbar-track { background: #10141d; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a3142; border-color: #10141d; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3a4356; }

html[data-theme="dark"] #loader { background: #0b0e14; }

html[data-theme="dark"] .bg-glow-top { background: radial-gradient(ellipse, rgba(239,68,68,0.16), rgba(249,115,22,0.08) 45%, transparent 72%); }
html[data-theme="dark"] .bg-glow-blue { background: radial-gradient(circle, rgba(59,130,246,0.14), transparent 70%); }
html[data-theme="dark"] .bg-glow-rose { background: radial-gradient(circle, rgba(244,63,94,0.12), transparent 70%); }

html[data-theme="dark"] .nav { background: rgba(19,23,34,0.86); border-color: rgba(35,42,56,0.9); box-shadow: 0 18px 44px rgba(0,0,0,0.35); }
html[data-theme="dark"] .nav-slot.scrolled .nav { background: rgba(19,23,34,0.96); }
html[data-theme="dark"] .nav-tabs { background: #171c28; }
html[data-theme="dark"] .nav-tabs a:hover { background: #232a38; color: var(--ink); box-shadow: none; }
html[data-theme="dark"] .nav-tabs a.active { background: var(--ink); color: #0b0e14; }
html[data-theme="dark"] .nav-status { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.35); color: #34d399; }

html[data-theme="dark"] .ticker { background: rgba(19,23,34,0.7); border-color: #3a2020; }
html[data-theme="dark"] .ticker-item .sep { color: #3a2020; }

html[data-theme="dark"] .hero-kicker { background: #171c28; border-color: rgba(239,68,68,0.28); }
html[data-theme="dark"] .btn-ghost { background: #171c28; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .btn-dark { background: #e8ecf4; color: #0b0e14; }

html[data-theme="dark"] .skin-card { background: linear-gradient(165deg, #171c28 0%, #12151e 60%, #0e1119 100%); }
html[data-theme="dark"] .pedestal::before { background: radial-gradient(ellipse, rgba(0,0,0,0.5), transparent 70%); }
html[data-theme="dark"] .float-chip { background: #171c28; box-shadow: 0 16px 34px rgba(0,0,0,0.4); }

html[data-theme="dark"] .count-pill { background: #171c28; }
html[data-theme="dark"] .board { background: rgba(19,23,34,0.85); }
html[data-theme="dark"] .board-head { background: #10141d; }
html[data-theme="dark"] .ban-row { border-bottom-color: #1b202b; }
html[data-theme="dark"] .ban-row:hover { background: #171c28; }
html[data-theme="dark"] .bust-box { background: linear-gradient(180deg, #1b202b 0%, #12151e 100%); border-color: #232a38; }
html[data-theme="dark"] .bust-fallback { background: linear-gradient(135deg, #232a38, #171c28); }
html[data-theme="dark"] .cell-mod, html[data-theme="dark"] .cell-date { color: #c3cad9; }

html[data-theme="dark"] .about-card { background: var(--card); }
html[data-theme="dark"] .step { background: #171c28; border-color: #1f2532; }
html[data-theme="dark"] .step-num { background: #10141d; border-color: var(--line); }
html[data-theme="dark"] .step-txt { color: #c3cad9; }
html[data-theme="dark"] .platforms span { background: #171c28; }

html[data-theme="dark"] footer { background: rgba(19,23,34,0.6); border-top-color: var(--line); }

html[data-theme="dark"] .form-card { background: var(--card); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea {
  background: #10141d; border-color: var(--line); color: var(--ink);
}
html[data-theme="dark"] .rules-card { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .rules-num { background: #0b0e14; }

html[data-theme="dark"] .alert-ok { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); }
html[data-theme="dark"] .alert-err { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
html[data-theme="dark"] .alert-info { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); }

html[data-theme="dark"] .pmodal-box { background: var(--card); }
html[data-theme="dark"] .pmodal-render { background: radial-gradient(circle at 50% 20%, #1b1418, var(--bg)); }
html[data-theme="dark"] .pmodal-close { background: var(--bg); border-color: var(--line); }
html[data-theme="dark"] .pmodal-reason, html[data-theme="dark"] .pmodal-meta .item { background: var(--bg); border-color: var(--line); }

/* Strona pobierania (download.php) */
html[data-theme="dark"] .dl-card { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .dl-btn-box { background: #10141d; border-color: var(--line); }
