  :root{
    --bg: #f7f7f5;
    --bg-alt: #ffffff;
    --panel: #ffffff;
    --panel-hover: #f1f1ee;
    --border: #e4e4e0;
    --border-soft: #ececea;
    --text: #17181b;
    --text-dim: #63666e;
    --text-faint: #9b9ea5;
    --accent: #0072e0;
    --accent-bg: #e3f0ff;
    --accent-strong: #0058b0;
    --amber: #b56a12;
    --amber-bg: #fbedd9;
    --tool: #4d5a8f;
    --tool-bg: #e9ecfb;
    --discord: #5865F2;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(20,20,20,0.04), 0 1px 10px rgba(20,20,20,0.03);
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
  }
  html[data-theme="dark"]{
    --bg: #16181f;
    --bg-alt: #1b1e26;
    --panel: #21242e;
    --panel-hover: #292d38;
    --border: #323644;
    --border-soft: #292d38;
    --text: #edeef0;
    --text-dim: #a3a6ad;
    --text-faint: #6c6f77;
    --accent: #4fa0ff;
    --accent-bg: rgba(79,160,255,0.14);
    --accent-strong: #4fa0ff;
    --amber: #f2a93b;
    --amber-bg: rgba(242,169,59,0.12);
    --tool: #9aa4f2;
    --tool-bg: rgba(154,164,242,0.12);
    --shadow: none;
  }
  *, *::before, *::after{
    transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease, box-shadow .35s ease;
  }
  *{ box-sizing: border-box; margin:0; padding:0; }
  html{
    background: var(--bg);
    overflow-y: scroll;
    scrollbar-gutter: stable;
  }
  body{
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    padding: 0 0 80px;
    transition: background-color .35s ease, border-color .35s ease, color .35s ease;
  }
  a{ color: inherit; text-decoration: none; }

  /* ---------- top bar ---------- */
  header{
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    position: sticky; top:0; z-index: 20;
    transition: box-shadow .2s ease, border-color .35s ease, background-color .35s ease, color .35s ease;
  }
  header.scrolled{
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }
  .header-inner{
    max-width: min(1440px, 88vw);
    margin: 0 auto;
    padding: 16px 24px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 24px;
  }
  .logo{
    display:flex;
    align-items:center;
    gap: 9px;
    cursor: pointer;
  }
  .logo-mark{
    width: 34px; height: 34px;
    flex-shrink: 0;
  }
  .logo-mark svg{ width: 100%; height: 100%; display:block; }
  .logo-text{
    display:flex;
    align-items:baseline;
    gap: 1px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.01em;
  }
  .logo-text .domain{ color: var(--text); }
  .logo-text .tld{ color: var(--text-faint); font-weight: 500; }

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

  nav{ display:flex; gap: 22px; font-size: 14px; color: var(--text-dim); margin-right: 8px; }
  nav a:hover{ color: var(--accent); }
  nav a.active{ color: var(--text); font-weight: 600; }

  .icon-btn{
    width: 36px; height: 36px;
    display:flex; align-items:center; justify-content:center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    cursor: pointer;
    color: var(--text-dim);
    transition: background-color .2s ease, color .2s ease, border-color .35s ease, transform .15s ease;
  }
  .icon-btn:hover{ background: var(--panel-hover); color: var(--text); }
  .icon-btn:active{ transform: scale(0.92); }
  .icon-btn svg{ width: 17px; height: 17px; overflow: visible; }
  #theme-icon{
    transition: transform .3s ease, opacity .3s ease;
  }
  #theme-icon.spin{ transform: rotate(90deg) scale(0.4); opacity: 0; }

  .discord-btn{
    display:flex; align-items:center; gap: 8px;
    background: var(--discord);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 0 14px;
    height: 36px;
    border-radius: 8px;
    transition: filter .12s ease, background-color .35s ease, transform .15s ease;
  }
  .discord-btn:hover{ filter: brightness(1.08); }
  .discord-btn:active{ transform: scale(0.96); }
  .discord-btn svg{ width: 17px; height: 17px; flex-shrink:0; }

  /* ---------- hero / search ---------- */
  .hero{
    position: relative;
    max-width: min(1440px, 88vw);
    margin: 0 auto;
    padding: 56px 24px 32px;
    overflow: hidden;
  }

  @keyframes fadeInUp{
    from{ opacity: 0; transform: translateY(14px); }
    to{ opacity: 1; transform: translateY(0); }
  }
  .hero-eyebrow{
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp .5s ease forwards;
  }
  .hero h1{
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp .5s ease forwards .08s;
  }
  .hero h1 .accent{ color: var(--accent); }
  .hero p{
    color: var(--text-dim);
    max-width: 560px;
    font-size: 15px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeInUp .5s ease forwards .16s;
  }

  .stats-row{
    display:flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 28px;
    opacity: 0;
    animation: fadeInUp .5s ease forwards .32s;
  }
  .stat{ display:flex; align-items:baseline; gap: 7px; }
  .stat .num{ font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text); }
  .stat .label{ font-size: 12.5px; color: var(--text-faint); }

  .searchbar{
    display:flex;
    align-items:center;
    gap: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 6px 4px 16px;
    box-shadow: var(--shadow);
    max-width: 560px;
  }
  .searchbar svg{ width: 18px; height: 18px; color: var(--text-faint); flex-shrink:0; }
  .searchbar input{
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    padding: 10px 0;
  }
  .searchbar input::placeholder{ color: var(--text-faint); }

  /* ---------- layout: sidebar + list ---------- */
  .layout{
    display:flex;
    align-items:flex-start;
    gap: 40px;
    max-width: min(1440px, 88vw);
    margin: 0 auto;
    padding: 30px 24px 0;
  }

  .sidebar{
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
  }
  .sidebar-label{
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
  }
  .sidebar-item{
    display:flex;
    align-items:center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    margin-bottom: 2px;
  }
  .sidebar-item svg, .sidebar-item img{ width: 16px; height: 16px; flex-shrink: 0; }
  .sidebar-item:hover:not(.active){ background: var(--panel-hover); color: var(--text); }
  .sidebar-item.active{
    background: var(--accent-bg);
    color: var(--accent-strong);
    font-weight: 600;
  }
  .sidebar-divider{
    height: 1px;
    background: var(--border);
    margin: 16px 0;
  }
  .sidebar-item.executors-item svg{ color: var(--amber); }
  .sidebar-item.executors-item.active{
    background: var(--amber-bg);
    color: var(--amber);
  }

  .content{ flex: 1; min-width: 0; }
  .content-head{
    display:flex;
    align-items:baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
  }
  .content-head h2{
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
  }
  .content-head .count-label{ font-size: 13px; color: var(--text-faint); white-space: nowrap; }

  .item-list{
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .item-row{
    display:flex;
    align-items:center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-soft);
    text-decoration: none;
    opacity: 0;
    animation: fadeInUp .35s ease forwards;
  }
  .item-row:last-child{ border-bottom: none; }
  .item-row:hover{ background: var(--panel-hover); }

  .item-icon{
    width: 42px; height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
    display:flex; align-items:center; justify-content:center;
  }
  .item-icon svg{ width: 20px; height: 20px; color: #fff; }

  .item-main{ flex: 1; min-width: 0; }
  .item-title-row{
    display:flex;
    align-items:center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
  }
  .item-name{ font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
  .item-desc{
    font-size: 13px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .item-meta{
    text-align: right;
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.4;
    flex-shrink: 0;
  }
  .item-meta .game-name{ color: var(--text-dim); font-weight: 500; }

  .item-dl{
    display:flex; align-items:center; gap: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: filter .12s ease;
  }
  .item-dl:hover{ filter: brightness(1.08); }
  .item-dl svg{ width: 14px; height: 14px; }

  .empty-state{
    text-align:center;
    padding: 60px 20px;
    color: var(--text-faint);
    display:none;
  }
  .empty-state.show{ display:block; }
  .empty-state .glyph{ font-size: 28px; margin-bottom: 10px; }
  .empty-state .title{ color: var(--text); font-weight: 600; margin-bottom: 4px; }

  footer{
    max-width: min(1440px, 88vw);
    margin: 60px auto 0;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 12.5px;
    display:flex;
    justify-content: space-between;
  }

  @media (max-width: 768px){
    nav{ display:none; }
    .layout{ flex-direction: column; }
    .sidebar{
      width: 100%;
      position: static;
      display:flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .sidebar-label{ width: 100%; }
    .sidebar-divider{ display: none; }
    .item-row{ flex-wrap: wrap; }
    .item-meta{ display:none; }
  }


  /* ---------- about page ---------- */
  .about-hero{
    position: relative;
    max-width: min(1440px, 88vw);
    margin: 0 auto;
    padding: 56px 24px 8px;
    overflow: hidden;
  }
  .about-hero > *{ position: relative; z-index: 1; }
  .about-hero .hero-eyebrow{ color: var(--accent-strong); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
  .about-hero h1{
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .about-hero h1 .accent{ color: var(--accent); }
  .about-hero p{ color: var(--text-dim); max-width: 640px; font-size: 15px; }

  .about-body{
    max-width: min(1440px, 88vw);
    margin: 0 auto;
    padding: 30px 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }

  .discord-btn-lg{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--discord);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 0 28px;
    height: 52px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 22px;
    transition: filter .12s ease, background-color .35s ease, transform .15s ease;
  }
  .discord-btn-lg:hover{ filter: brightness(1.08); }
  .discord-btn-lg:active{ transform: scale(0.97); }
  .discord-btn-lg svg{ width: 21px; height: 21px; flex-shrink:0; }
  .about-card{
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 22px;
  }
  .about-card .icon{
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--accent-bg);
    color: var(--accent-strong);
    display:flex; align-items:center; justify-content:center;
    margin-bottom: 14px;
  }
  .about-card .icon svg{ width: 18px; height: 18px; }
  .about-card h3{ font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
  .about-card p{ color: var(--text-dim); font-size: 13.5px; }

  .about-section{
    max-width: min(1440px, 88vw);
    margin: 36px auto 0;
    padding: 0 24px;
  }
  .about-section h2{ font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 12px; }
  .about-section p{ color: var(--text-dim); font-size: 14.5px; max-width: 720px; margin-bottom: 12px; }
  .about-section p:last-child{ margin-bottom: 0; }

  @media (max-width: 768px){
    .about-body{ grid-template-columns: 1fr; }
  }
