    /* ═══════════════════════════════════════════════
       CSS CUSTOM PROPERTIES
       ═══════════════════════════════════════════════ */
    :root {
      --bg-deep: #08080f;
      --bg-surface: #0e0e1a;
      --bg-card: rgba(255, 255, 255, 0.03);
      --bg-card-hover: rgba(255, 255, 255, 0.06);
      --bg-glass: rgba(255, 255, 255, 0.05);
      --bg-glass-strong: rgba(255, 255, 255, 0.08);
      --border-subtle: rgba(255, 255, 255, 0.06);
      --border-glass: rgba(255, 255, 255, 0.1);
      --border-accent: rgba(138, 92, 246, 0.3);

      --text-primary: #f0f0f5;
      --text-secondary: rgba(240, 240, 245, 0.55);
      --text-tertiary: rgba(240, 240, 245, 0.35);

      --accent-violet: #8b5cf6;
      --accent-violet-dim: rgba(139, 92, 246, 0.15);
      --accent-fuchsia: #d946ef;
      --accent-cyan: #22d3ee;
      --accent-blue: #3b82f6;
      --accent-rose: #f43f5e;

      --status-graveyard: #6b7280;
      --status-wip: #eab308;
      --status-pending: #f59e0b;
      --status-ranked: #3b82f6;
      --status-approved: #22c55e;
      --status-qualified: #14b8a6;
      --status-loved: #ec4899;

      --diff-easy: #22c55e;
      --diff-normal: #3b82f6;
      --diff-hard: #eab308;
      --diff-insane: #f97316;
      --diff-expert: #ef4444;
      --diff-extra: #a855f7;
      --diff-overdose: #1e1e2e;

      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-xl: 28px;

      --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
      --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.08);

      --font-display: 'Outfit', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;

      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
      --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* ═══════════════════════════════════════════════
       RESET & BASE
       ═══════════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: var(--font-display);
      background: var(--bg-deep);
      color: var(--text-primary);
      min-height: 100vh;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    /* ═══════════════════════════════════════════════
       AMBIENT BACKGROUND
       ═══════════════════════════════════════════════ */
    .ambient-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .ambient-bg .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(120px);
      opacity: 0.12;
      animation: orbFloat 25s ease-in-out infinite;
    }

    .ambient-bg .orb:nth-child(1) {
      width: 600px; height: 600px;
      background: var(--accent-violet);
      top: -15%; left: -10%;
      animation-delay: 0s;
    }
    .ambient-bg .orb:nth-child(2) {
      width: 500px; height: 500px;
      background: var(--accent-fuchsia);
      bottom: -20%; right: -10%;
      animation-delay: -8s;
    }
    .ambient-bg .orb:nth-child(3) {
      width: 400px; height: 400px;
      background: var(--accent-cyan);
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      animation-delay: -16s;
      opacity: 0.06;
    }

    @keyframes orbFloat {
      0%, 100% { transform: translate(0, 0) scale(1); }
      25% { transform: translate(40px, -30px) scale(1.05); }
      50% { transform: translate(-20px, 40px) scale(0.95); }
      75% { transform: translate(30px, 20px) scale(1.02); }
    }

    /* Grain overlay */
    .ambient-bg::after {
      content: '';
      position: absolute;
      inset: 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");
      background-repeat: repeat;
      opacity: 0.4;
      pointer-events: none;
    }

    /* ═══════════════════════════════════════════════
       LAYOUT SHELL
       ═══════════════════════════════════════════════ */
    .shell {
      position: relative;
      z-index: 1;
      max-width: 1360px;
      margin: 0 auto;
      padding: 2rem 1.5rem 4rem;
    }

    /* ═══════════════════════════════════════════════
       HEADER
       ═══════════════════════════════════════════════ */
    .site-header {
      text-align: center;
      padding: 3rem 0 2.5rem;
      animation: fadeUp 0.8s var(--ease-out) both;
    }

    .logo-mark {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 0.75rem;
    }

    .logo-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--accent-violet), var(--accent-fuchsia));
      display: grid;
      place-items: center;
      font-size: 1.3rem;
      font-weight: 800;
      color: #fff;
      box-shadow: 0 0 24px rgba(139, 92, 246, 0.3);
    }

    .logo-text {
      font-size: 1.6rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .site-header p {
      color: var(--text-tertiary);
      font-size: 0.95rem;
      font-weight: 400;
      letter-spacing: 0.02em;
    }

    /* ═══════════════════════════════════════════════
       SEARCH BAR
       ═══════════════════════════════════════════════ */
    .search-container {
      animation: fadeUp 0.8s var(--ease-out) 0.1s both;
      position: relative;
      z-index: 100;
    }

    .search-bar {
      display: flex;
      align-items: stretch;
      gap: 0;
      background: var(--bg-glass);
      border: 1px solid var(--border-glass);
      border-radius: var(--radius-lg);
      overflow: visible;
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    .search-bar:focus-within {
      border-color: var(--border-accent);
      box-shadow: var(--shadow-glow), 0 0 0 1px rgba(139, 92, 246, 0.1);
    }

    .search-input-wrap {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 1.25rem;
    }

    .search-icon {
      color: var(--text-tertiary);
      font-size: 1.1rem;
      flex-shrink: 0;
    }

    .search-input-wrap input {
      flex: 1;
      background: none;
      border: none;
      outline: none;
      color: var(--text-primary);
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 400;
      padding: 1rem 0;
      min-width: 0;
    }

    .search-input-wrap input::placeholder {
      color: var(--text-tertiary);
    }

    .search-divider {
      width: 1px;
      background: var(--border-glass);
      margin: 12px 0;
    }

    .search-filters {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px;
    }

    /* Custom Dropdown */
    .custom-dropdown {
      position: relative;
      user-select: none;
    }

    .custom-dropdown-trigger {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg-glass);
      border: 1px solid transparent;
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      font-family: var(--font-display);
      font-size: 0.85rem;
      font-weight: 500;
      padding: 0.55rem 0.75rem;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .custom-dropdown-trigger:hover {
      background: var(--bg-glass-strong);
      color: var(--text-primary);
    }

    .custom-dropdown.open .custom-dropdown-trigger {
      border-color: var(--border-accent);
      color: var(--text-primary);
    }

    .custom-dropdown-trigger .dd-arrow {
      width: 10px;
      height: 10px;
      flex-shrink: 0;
      transition: transform 0.2s var(--ease-out);
    }

    .custom-dropdown.open .dd-arrow {
      transform: rotate(180deg);
    }

    .custom-dropdown-menu {
      display: none;
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      min-width: 100%;
      background: #16162a;
      border: 1px solid var(--border-glass);
      border-radius: var(--radius-sm);
      padding: 4px;
      z-index: 9999;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
      max-height: 260px;
      overflow-y: auto;
    }

    .custom-dropdown.open .custom-dropdown-menu {
      display: block;
      animation: ddFadeIn 0.15s var(--ease-out);
    }

    @keyframes ddFadeIn {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .custom-dropdown-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0.5rem 0.7rem;
      border-radius: 6px;
      font-size: 0.84rem;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.12s;
      white-space: nowrap;
    }

    .custom-dropdown-item:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-primary);
    }

    .custom-dropdown-item.selected {
      background: var(--accent-violet-dim);
      color: var(--accent-violet);
    }

    .custom-dropdown-item .check-mark {
      width: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .custom-dropdown-item .check-mark svg {
      display: none;
    }

    .custom-dropdown-item.selected .check-mark svg {
      display: block;
    }

    /* Dropdown scrollbar */
    .custom-dropdown-menu::-webkit-scrollbar { width: 4px; }
    .custom-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
    .custom-dropdown-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

    /* Hidden native select (for form compat) */
    .custom-dropdown select { display: none; }

    .search-submit {
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--accent-violet), var(--accent-fuchsia));
      border: none;
      color: #fff;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 0.9rem;
      padding: 0 1.5rem;
      cursor: pointer;
      border-radius: 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0;
      transition: filter 0.2s, transform 0.15s;
      gap: 8px;
      white-space: nowrap;
    }

    .search-submit:hover {
      filter: brightness(1.15);
    }

    .search-submit:active {
      transform: scale(0.97);
    }

    /* Mobile search */
    @media (max-width: 768px) {
      .search-bar {
        flex-direction: column;
        border-radius: var(--radius-md);
      }
      .search-divider { width: auto; height: 1px; margin: 0 12px; }
      .search-filters { flex-wrap: wrap; padding: 8px; }
      .search-submit {
        border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);
        padding: 0.85rem;
      }
    }

    /* ═══════════════════════════════════════════════
       RESULTS COUNT / STATUS
       ═══════════════════════════════════════════════ */
    .results-status {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 2rem;
      margin-bottom: 1rem;
      padding: 0 0.25rem;
      animation: fadeUp 0.8s var(--ease-out) 0.2s both;
    }

    .results-status span {
      font-size: 0.85rem;
      color: var(--text-tertiary);
      font-weight: 500;
    }

    .view-toggle {
      display: flex;
      gap: 4px;
      background: var(--bg-glass);
      border-radius: var(--radius-sm);
      padding: 3px;
    }

    .view-toggle button {
      background: none;
      border: none;
      color: var(--text-tertiary);
      padding: 6px 10px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.85rem;
      transition: all 0.2s;
    }

    .view-toggle button.active {
      background: var(--bg-glass-strong);
      color: var(--text-primary);
    }

    /* ═══════════════════════════════════════════════
       RESULTS GRID
       ═══════════════════════════════════════════════ */
    #results {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
      gap: 1rem;
    }

    @media (max-width: 440px) {
      #results { grid-template-columns: 1fr; }
    }

    /* ═══════════════════════════════════════════════
       MAP CARD
       ═══════════════════════════════════════════════ */
    .map-card {
      position: relative;
      border-radius: var(--radius-md);
      overflow: hidden;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      display: flex;
      flex-direction: column;
      min-height: 270px;
      transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
      animation: cardIn 0.5s var(--ease-out) both;
    }

    .map-card:hover {
      transform: translateY(-3px);
      border-color: var(--border-glass);
      box-shadow: var(--shadow-card);
    }

    .map-card.overlay-open {
      z-index: 999 !important;
      overflow: visible !important;
    }

    /* BG image area */
    .card-cover {
      position: relative;
      height: 140px;
      background-size: cover;
      background-position: center;
      flex-shrink: 0;
    }

    .card-cover::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, var(--bg-surface) 0%, transparent 60%);
    }

    /* Lazy loading */
    .lazy-cover {
      opacity: 0;
      transition: opacity 0.5s var(--ease-out);
    }
    .lazy-cover.loaded { opacity: 1; }

    /* Card body */
    .card-body {
      padding: 0.9rem 1.1rem 1rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      position: relative;
      z-index: 2;
    }

    .card-meta {
      margin-top: -2rem;
      position: relative;
      z-index: 3;
    }

    .card-title {
      font-size: 1rem;
      font-weight: 700;
      line-height: 1.35;
      letter-spacing: -0.01em;
      color: var(--text-primary);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .card-subtitle {
      font-size: 0.8rem;
      color: var(--text-secondary);
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .card-subtitle .creator {
      color: var(--accent-cyan);
      font-weight: 600;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 2px 8px;
      border-radius: 100px;
      background: rgba(255,255,255,0.06);
    }

    .status-pill::before {
      content: '';
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: currentColor;
    }

    /* ═══════════════════════════════════════════════
       DIFFICULTY BADGES
       ═══════════════════════════════════════════════ */
    .diff-row {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      align-items: center;
    }

    .diff-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 500;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.04);
      white-space: nowrap;
      transition: background 0.2s;
    }

    .diff-badge:hover { background: rgba(255,255,255,0.1); }

    .diff-badge .star {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      opacity: 0.7;
    }

    .mode-icon {
      width: 14px;
      height: 14px;
      object-fit: contain;
      image-rendering: -webkit-crisp-edges;
      opacity: 0.85;
    }

    /* Diff colors — left accent bar style */
    .diff-easy       { border-left: 2px solid var(--diff-easy); }
    .diff-normal     { border-left: 2px solid var(--diff-normal); }
    .diff-hard       { border-left: 2px solid var(--diff-hard); }
    .diff-insane     { border-left: 2px solid var(--diff-insane); }
    .diff-expert     { border-left: 2px solid var(--diff-expert); }
    .diff-extra      { border-left: 2px solid var(--diff-extra); }
    .diff-overdose   { border-left: 2px solid #888; }

    /* More badge */
    .diff-more {
      background: rgba(139, 92, 246, 0.15);
      border-color: rgba(139, 92, 246, 0.25);
      color: var(--accent-violet);
      font-weight: 600;
      cursor: pointer;
      position: relative;
      z-index: 10;
    }
    .diff-more:hover { background: rgba(139, 92, 246, 0.25); }

    /* Overlay */
    .diff-hover-overlay {
      display: none;
      position: absolute;
      z-index: 9999 !important;
      background: rgba(14, 14, 26, 0.96);
      backdrop-filter: blur(20px);
      border-radius: var(--radius-sm);
      padding: 8px;
      width: 250px;
      max-height: 280px;
      overflow-y: auto;
      border: 1px solid var(--border-glass);
      box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    }

    .diff-hover-overlay.open { display: block; }
    .diff-hover-overlay.left { right: 0; left: auto; }

    .overlay-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 3px;
      padding: 5px 8px;
      border-radius: 6px;
      font-size: 0.78rem;
      font-weight: 500;
      background: rgba(255,255,255,0.04);
      border-left: 2px solid transparent;
    }

    /* Overlay scrollbar */
    .diff-hover-overlay::-webkit-scrollbar { width: 4px; }
    .diff-hover-overlay::-webkit-scrollbar-track { background: transparent; }
    .diff-hover-overlay::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

    /* ═══════════════════════════════════════════════
       CARD ACTIONS
       ═══════════════════════════════════════════════ */
    .card-actions {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: auto;
      padding-top: 0.5rem;
    }

    .card-actions .act-btn {
      flex: 1;
      min-width: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      padding: 0.5rem 0.65rem;
      border: 1px solid var(--border-glass);
      border-radius: var(--radius-sm);
      background: var(--bg-glass);
      color: var(--text-secondary);
      font-family: var(--font-display);
      font-size: 0.78rem;
      font-weight: 500;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .card-actions .act-btn:hover {
      background: var(--bg-glass-strong);
      color: var(--text-primary);
      border-color: rgba(255,255,255,0.15);
    }

    .act-btn.primary-action {
      background: linear-gradient(135deg, var(--accent-violet), var(--accent-fuchsia));
      border-color: transparent;
      color: #fff;
      font-weight: 600;
    }
    .act-btn.primary-action:hover {
      filter: brightness(1.1);
      color: #fff;
    }

    .act-btn.playing {
      border-color: var(--accent-violet);
      color: var(--accent-violet);
    }

    .act-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

    audio { display: none; }

    /* ═══════════════════════════════════════════════
       LOAD MORE
       ═══════════════════════════════════════════════ */
    .load-more-wrap {
      display: flex;
      justify-content: center;
      margin-top: 2rem;
    }

    #loadMore {
      display: none;
      padding: 0.75rem 2.5rem;
      border-radius: var(--radius-lg);
      background: var(--bg-glass);
      border: 1px solid var(--border-glass);
      color: var(--text-secondary);
      font-family: var(--font-display);
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s;
    }

    #loadMore:hover {
      background: var(--bg-glass-strong);
      border-color: var(--border-accent);
      color: var(--text-primary);
    }

    /* ═══════════════════════════════════════════════
       EMPTY STATE
       ═══════════════════════════════════════════════ */
    .empty-state {
      text-align: center;
      padding: 4rem 2rem;
      color: var(--text-tertiary);
    }

    .empty-state svg { margin-bottom: 1rem; opacity: 0.3; }

    .empty-state h3 {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 0.35rem;
    }

    .empty-state p { font-size: 0.9rem; }

    /* ═══════════════════════════════════════════════
       SKELETON LOADING
       ═══════════════════════════════════════════════ */
    .skeleton-card {
      border-radius: var(--radius-md);
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      overflow: hidden;
      min-height: 270px;
    }

    .skeleton-cover {
      height: 140px;
      background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.8s infinite;
    }

    .skeleton-body { padding: 1rem; }

    .skeleton-line {
      height: 12px;
      border-radius: 6px;
      background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.8s infinite;
      margin-bottom: 10px;
    }
    .skeleton-line.w60 { width: 60%; }
    .skeleton-line.w40 { width: 40%; }
    .skeleton-line.w80 { width: 80%; }

    @keyframes shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* ═══════════════════════════════════════════════
       ANIMATIONS
       ═══════════════════════════════════════════════ */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes cardIn {
      from { opacity: 0; transform: translateY(20px) scale(0.97); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* ═══════════════════════════════════════════════
       SCROLLBAR
       ═══════════════════════════════════════════════ */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

    /* ═══════════════════════════════════════════════
       FOOTER
       ═══════════════════════════════════════════════ */
    .site-footer {
      text-align: center;
      padding: 3rem 0 1rem;
      color: var(--text-tertiary);
      font-size: 0.8rem;
    }

    .site-footer a {
      color: var(--accent-violet);
      text-decoration: none;
    }