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

    :root {
      --primary:    #3C1D6C;
      --primary-80: rgba(60,29,108,0.80);
      --primary-15: rgba(60,29,108,0.15);
      --primary-08: rgba(60,29,108,0.08);
      --accent-y:   #C5D301;
      --accent-y2:  #ECD600;
      --accent-g:   #2FAC66;
      --accent-c:   #00A2AE;
      --accent-p:   #7964AA;
      --vital-gold: #EFA102;
      --vital-from: #ECD600;
      --vital-mid:  #C1D45E;
      --vital-to:   #7256A0;
      --bg:         #F7F5FC;
      --surface:    #ffffff;
      --text:       rgba(0,0,0,0.84);
      --muted:      rgba(0,0,0,0.50);
      --border:     rgba(60,29,108,0.10);
      --radius:     22px;
      --card-radius: 24px;
    }

    html { scroll-behavior: smooth; }
    body {
      font-family: 'Space Grotesk', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
    }

    /* ═══════════════════════════════════════
       HEADER
    ═══════════════════════════════════════ */
    header {
      background: var(--primary);
      padding: 0 40px;
      height: 72px;
      display: flex;
      align-items: center;
      gap: 18px;
      position: sticky;
      top: 0;
      z-index: 100;
      overflow: hidden;
    }

    .neural-bg {
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.16;
      overflow: hidden;
    }
    .neural-bg svg { width: 100%; height: 100%; }

    .wordmark {
      display: flex;
      align-items: baseline;
      gap: 0;
      position: relative;
      z-index: 1;
    }
    .wordmark .smart { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
    .wordmark .floor { font-size: 22px; font-weight: 400; color: rgba(255,255,255,0.72); }

    .header-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.22); position: relative; z-index: 1; }

    .header-section {
      font-size: 14px;
      font-weight: 500;
      color: rgba(255,255,255,0.65);
      position: relative;
      z-index: 1;
    }

    .header-badge {
      margin-left: auto;
      background: var(--accent-y);
      color: #000;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      padding: 5px 14px;
      border-radius: 50px;
      position: relative;
      z-index: 1;
    }
    .back-link {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: rgba(255,255,255,0.68);
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
      padding: 6px 12px;
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,0.18);
      transition: color 0.15s, background 0.15s, border-color 0.15s;
      white-space: nowrap;
    }
    .back-link:hover {
      color: #fff;
      background: rgba(255,255,255,0.1);
      border-color: rgba(255,255,255,0.38);
    }

    /* ═══════════════════════════════════════
       HERO BANNER
    ═══════════════════════════════════════ */
    .hero {
      background: linear-gradient(135deg, #3C1D6C 0%, #5a3490 40%, #7256A0 100%);
      padding: 56px 40px 52px;
      position: relative;
      overflow: hidden;
    }
    .hero-neural {
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.12;
    }
    .hero-neural svg { width: 100%; height: 100%; }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(236,214,0,0.18);
      border: 1px solid rgba(236,214,0,0.35);
      color: var(--vital-from);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 50px;
      margin-bottom: 20px;
      position: relative;
      z-index: 1;
    }

    .hero h1 {
      font-size: clamp(32px, 5vw, 56px);
      font-weight: 700;
      letter-spacing: -2px;
      line-height: 1.0;
      color: #fff;
      position: relative;
      z-index: 1;
    }
    .hero h1 em {
      font-style: normal;
      background: linear-gradient(90deg, var(--vital-from), var(--vital-mid));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-sub {
      margin-top: 14px;
      font-size: 17px;
      color: rgba(255,255,255,0.72);
      max-width: 560px;
      line-height: 1.55;
      position: relative;
      z-index: 1;
    }

    .hero-stats {
      display: flex;
      gap: 28px;
      margin-top: 36px;
      flex-wrap: wrap;
      position: relative;
      z-index: 1;
    }
    .hero-stat {
      display: flex;
      flex-direction: column;
    }
    .hero-stat .num {
      font-size: 36px;
      font-weight: 700;
      letter-spacing: -2px;
      color: #fff;
      line-height: 1;
    }
    .hero-stat .num em {
      font-style: normal;
      color: var(--accent-y);
    }
    .hero-stat .lbl {
      font-size: 12px;
      font-weight: 600;
      color: rgba(255,255,255,0.55);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-top: 4px;
    }

    /* ═══════════════════════════════════════
       FILTER SECTION
    ═══════════════════════════════════════ */
    .filter-section {
      padding: 32px 40px 0;
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
    }

    .filter-group {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-bottom: 24px;
    }

    .filter-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 1.2px;
    }

    .filter-chips {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .chip {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border-radius: 50px;
      border: 2px solid var(--border);
      background: var(--surface);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s;
      user-select: none;
    }
    .chip:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--primary-08);
    }
    .chip.active {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
      box-shadow: 0 3px 12px rgba(60,29,108,0.30);
    }
    .chip .chip-icon {
      font-size: 18px;
      line-height: 1;
    }

    /* Device chips have colored indicators */
    .chip[data-type="puzzle"].active { background: var(--accent-c); border-color: var(--accent-c); box-shadow: 0 3px 12px rgba(0,162,174,0.30); }
    .chip[data-type="mobile"].active  { background: #7256A0; border-color: #7256A0; box-shadow: 0 3px 12px rgba(114,86,160,0.30); }
    .chip[data-type="table"].active   { background: var(--primary); border-color: var(--primary); box-shadow: 0 3px 12px rgba(60,29,108,0.30); }
    .chip[data-cat="bewegung"].active   { background: var(--accent-g); border-color: var(--accent-g); box-shadow: 0 3px 12px rgba(47,172,102,0.30); }
    .chip[data-cat="gedaechtnis"].active { background: var(--vital-gold); border-color: var(--vital-gold); color: #000; box-shadow: 0 3px 12px rgba(239,161,2,0.30); }
    .chip[data-cat="neu"].active { background: #E53935; border-color: #E53935; box-shadow: 0 3px 12px rgba(229,57,53,0.30); }

    .filter-divider {
      height: 1px;
      background: var(--border);
      margin: 8px 0 28px;
    }

    /* ═══════════════════════════════════════
       RESULTS META
    ═══════════════════════════════════════ */
    .results-meta {
      padding: 0 40px;
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    .results-count {
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
    }
    .results-count strong {
      color: var(--primary);
      font-size: 15px;
    }

    /* ═══════════════════════════════════════
       GAME GRID
    ═══════════════════════════════════════ */
    .games-section {
      padding: 16px 40px 60px;
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
    }

    .games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
    }

    /* ─── GAME CARD ─── */
    .game-card {
      background: var(--surface);
      border-radius: var(--card-radius);
      border: 1px solid var(--border);
      padding: 28px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
      position: relative;
      overflow: hidden;
    }
    .game-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--card-accent, var(--accent-y)), transparent);
      border-radius: var(--card-radius) var(--card-radius) 0 0;
    }
    .game-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(60,29,108,0.12);
      border-color: rgba(60,29,108,0.18);
    }
    .game-card.hidden { display: none; }

    .card-top {
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }

    .card-emoji {
      width: 72px;
      height: 72px;
      border-radius: 18px;
      background: var(--primary-08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 38px;
      flex-shrink: 0;
      border: 1px solid var(--border);
    }

    .card-head {
      flex: 1;
      min-width: 0;
    }
    .card-title {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.5px;
      color: var(--primary);
      line-height: 1.15;
    }
    .card-title em {
      font-style: normal;
      color: var(--accent-y);
    }
    .card-desc {
      margin-top: 6px;
      font-size: 14px;
      color: var(--muted);
      line-height: 1.5;
    }

    .card-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 50px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.3px;
    }
    .badge-bewegung   { background: rgba(47,172,102,0.12); color: #1e8a50; }
    .badge-gedaechtnis { background: rgba(239,161,2,0.12); color: #b07200; }
    .badge-sprache    { background: rgba(0,162,174,0.12); color: #007a85; }
    .badge-neu        { background: rgba(229,57,53,0.12); color: #b71c1c; }

    .badge-puzzle { background: rgba(0,162,174,0.10); color: #007a85; }
    .badge-mobile { background: rgba(114,86,160,0.10); color: #5a3490; }
    .badge-table  { background: rgba(60,29,108,0.10); color: var(--primary); }

    .card-footer {
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .card-difficulty {
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .diff-dots {
      display: flex;
      gap: 3px;
    }
    .diff-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--border);
    }
    .diff-dot.filled { background: var(--vital-gold); }

    .btn-play {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 50px;
      border: none;
      background: var(--accent-y);
      color: #000;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
      box-shadow: 0 3px 12px rgba(197,211,1,0.40);
      white-space: nowrap;
    }
    .btn-play:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(197,211,1,0.55);
      background: #d4e200;
    }
    .btn-play:active { transform: translateY(0); }
    .btn-play svg { width: 16px; height: 16px; }

    /* ═══════════════════════════════════════
       EMPTY STATE
    ═══════════════════════════════════════ */
    .empty-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 60px 20px;
      display: none;
    }
    .empty-state.show { display: block; }
    .empty-emoji { font-size: 64px; margin-bottom: 16px; }
    .empty-title { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
    .empty-sub { font-size: 15px; color: var(--muted); }
    .btn-reset {
      margin-top: 20px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 50px;
      border: 2px solid var(--primary);
      background: transparent;
      color: var(--primary);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s;
    }
    .btn-reset:hover { background: var(--primary); color: #fff; }

    /* ═══════════════════════════════════════
       DEVICE GUIDE
    ═══════════════════════════════════════ */
    .device-guide {
      background: var(--primary);
      padding: 40px;
      position: relative;
      overflow: hidden;
    }
    .device-guide-neural {
      position: absolute;
      inset: 0;
      opacity: 0.10;
      pointer-events: none;
    }
    .device-guide h2 {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 20px;
      position: relative;
      z-index: 1;
    }
    .device-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 16px;
      position: relative;
      z-index: 1;
    }
    .device-card {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 18px;
      padding: 22px 24px;
    }
    .device-card-icon {
      font-size: 36px;
      margin-bottom: 12px;
    }
    .device-card h3 {
      font-size: 16px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 6px;
    }
    .device-card p {
      font-size: 13px;
      color: rgba(255,255,255,0.65);
      line-height: 1.5;
    }
    .device-card .device-tag {
      display: inline-block;
      margin-top: 12px;
      padding: 4px 10px;
      border-radius: 50px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    /* ═══════════════════════════════════════
       FOOTER
    ═══════════════════════════════════════ */
    footer {
      text-align: center;
      padding: 22px 24px;
      font-size: 12px;
      color: var(--muted);
      border-top: 1px solid var(--border);
      background: var(--surface);
    }
    footer .brand { color: var(--primary); font-weight: 700; }
    footer a { color: rgba(60,29,108,0.7); text-decoration: none; }
    footer a:hover { text-decoration: underline; }

    /* ═══════════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════════ */
    @media (max-width: 768px) {
      header { padding: 0 20px; height: 64px; }
      .hero { padding: 40px 20px 36px; }
      .filter-section, .games-section, .results-meta { padding-left: 20px; padding-right: 20px; }
      .device-guide { padding: 32px 20px; }
      .hero h1 { font-size: 32px; }
      .hero-stats { gap: 20px; }
    }
    @media (max-width: 480px) {
      .games-grid { grid-template-columns: 1fr; }
      .chip { font-size: 13px; padding: 9px 16px; }
      .card-emoji { width: 60px; height: 60px; font-size: 32px; }
    }
