/* McDev.TV — ausgelagert aus sprites/index.html (05.08.2026), 31 KB.
   Gleicher Grund wie beim Skript: seitenspezifische Regeln, die sich
   selten ändern, gehören in eine zwischenspeicherbare Datei statt in
   jede einzelne Auslieferung des HTML. */
  .cookie-banner{
    position: fixed; left:16px; right:16px; bottom:16px; z-index:200;
    max-width: 640px; margin: 0 auto;
    background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 18px; display:flex; align-items:center; gap:14px; flex-wrap:wrap;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  }
  .cookie-banner p{ margin:0; font-size:12.5px; color:var(--text-dim); line-height:1.5; flex:1; min-width:200px; }
  .cookie-banner a{ color: var(--cyan); }
  .cookie-banner button{
    font-size:12.5px; font-weight:700; color:var(--auf-gruen);
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    border:none; border-radius:10px; padding:9px 16px; cursor:pointer; white-space:nowrap;
  }

  html, body{
    margin: 0;
    padding: 0;
    background: var(--bg);
    min-height: 100%;
  }

  :root{
    /* Farben und Schriften kommen jetzt aus /assets/theme.css.
       Hier stand bis 08/2026 eine Kopie derselben Liste — auf 14 Seiten.
       Eine Design-Änderung musste dadurch 14-mal gemacht werden, und das
       helle Thema hätte die lokalen Werte nie überschreiben können. */
  }

  *{ box-sizing: border-box; }

  .sprite-app{
    position: relative;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100%;
    padding: 28px 20px 60px;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    overflow: clip; /* kein Scroll-Container -> kein zweiter Scrollbalken */
  }

  .sprite-app::before,
  .sprite-app::after{
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
  }
  .sprite-app::before{
    width: 480px; height: 480px;
    top: -220px; left: -140px;
    background: radial-gradient(circle, rgba(124,252,110,0.28), transparent 70%);
  }
  .sprite-app::after{
    width: 420px; height: 420px;
    bottom: -180px; right: -120px;
    background: radial-gradient(circle, rgba(61,220,132,0.22), transparent 70%);
  }

  .sprite-app .wrap{ position: relative; z-index: 1; }

  .sprite-app .bg-grid{
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(124,252,110,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(124,252,110,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 85%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 85%);
    pointer-events: none;
    z-index: 0;
  }
  .sprite-app .bg-glow-mid{
    position: absolute;
    left: 50%;
    width: 620px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(124,252,110,0.10), transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
  }

  .sprite-app *:focus-visible{
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
  }

  .wrap{ max-width: 1320px; margin: 0 auto; }

  /* ---------- Header ---------- */
  .header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }

  .home-link{
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-faint);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color .15s ease;
  }
  .home-link:hover{ color: var(--cyan); }

  .heading h1{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
  }
  .heading h1 .neo{
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(124,252,110,0.75), 0 0 22px rgba(124,252,110,0.45), 0 0 40px rgba(124,252,110,0.25);
  }
  .heading p{
    margin: 0;
    color: var(--text-dim);
    font-size: 14.5px;
    max-width: 46ch;
    line-height: 1.5;
  }

  .username-field{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    transition: border-color .15s ease;
  }
  .username-field:focus-within{ border-color: var(--cyan); }
  .username-field svg{ width: 15px; height: 15px; color: var(--text-faint); flex-shrink: 0; }
  .username-field input{
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    width: 170px;
  }
  .username-field input::placeholder{ color: var(--text-faint); font-weight: 500; }

  /* Signature element: glowing progress dial */
  .dial-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .account-row{
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .account-btn{
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--auf-gruen);
    background: var(--cyan);
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .account-btn:hover{ filter: brightness(1.08); transform: translateY(-1px); }
  .account-btn.logged-in{
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--cyan);
  }

  .auth-overlay{
    position: fixed;
    inset: 0;
    background: rgba(6,8,16,0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
  }
  .auth-overlay.open{ display: flex; }
  .auth-modal{
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 24px;
    width: 100%;
    max-width: 360px;
    position: relative;
  }
  .auth-close{
    position: absolute;
    top: 14px; right: 14px;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-dim);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .auth-close:hover{ color: var(--text); border-color: var(--cyan); }
  .auth-title{ font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0 0 16px; }
  .auth-tabs{ display: flex; gap: 4px; margin-bottom: 18px; background: var(--bg); border-radius: 10px; padding: 3px; }
  .auth-tab{
    flex: 1;
    font-size: 12.5px; font-weight: 700;
    color: var(--text-faint);
    background: transparent; border: none;
    border-radius: 8px; padding: 8px;
    cursor: pointer;
  }
  .auth-tab.active{ background: var(--bg-card-hover); color: var(--cyan); }
  .auth-form{ display: none; flex-direction: column; gap: 10px; }
  .auth-form.active{ display: flex; }
  .auth-form input{
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 13.5px;
    outline: none;
  }
  .auth-form input:focus{ border-color: var(--cyan); }
  .auth-submit{
    margin-top: 4px;
    font-family: var(--font-body);
    font-size: 13.5px; font-weight: 700;
    color: var(--auf-gruen);
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    border: none; border-radius: 10px;
    padding: 11px; cursor: pointer;
  }
  .auth-submit:hover{ filter: brightness(1.06); }
  .auth-link{
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
    background: none; border: none;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 2px;
  }
  .auth-link:hover{ color: var(--cyan); }
  .auth-msg{
    font-size: 12px;
    line-height: 1.5;
    padding: 9px 11px;
    border-radius: 8px;
    display: none;
  }
  .auth-msg.show{ display: block; }
  .auth-msg.error{ background: rgba(239,127,127,0.14); color: #ef8a8a; border: 1px solid rgba(239,127,127,0.35); }
  .auth-msg.success{ background: rgba(124,252,110,0.14); color: var(--cyan); border: 1px solid rgba(124,252,110,0.35); }

  .account-avatar-row{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
  .account-avatar{
    width:56px; height:56px; border-radius:16px; flex-shrink:0;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    display:flex; align-items:center; justify-content:center;
    font-family: var(--font-display); font-weight:800; font-size:22px; color:var(--auf-gruen);
    overflow:hidden;
  }
  .account-avatar img{ width:100%; height:100%; object-fit:cover; }
  .account-avatar-upload{
    font-size:12px; font-weight:700; color:var(--cyan);
    background: var(--bg); border:1px solid var(--line); border-radius:8px;
    padding:8px 12px; cursor:pointer;
  }
  .account-avatar-upload:hover{ border-color: var(--cyan); }
  .account-field-label{ display:block; font-size:11.5px; color:var(--text-faint); margin:10px 0 4px; }
  .account-input{
    width:100%; background: var(--bg); border:1px solid var(--line); border-radius:10px;
    padding:9px 11px; color:var(--text); font-family:var(--font-body); font-size:13.5px; outline:none;
    resize: vertical; margin-bottom:4px;
  }
  .account-input:focus{ border-color: var(--cyan); }
  .account-msg{ font-size:12px; padding:8px 10px; border-radius:8px; margin:6px 0; display:none; }
  .account-msg.show{ display:block; }
  .account-msg.error{ background: rgba(239,127,127,0.14); color:#ef8a8a; border:1px solid rgba(239,127,127,0.35); }
  .account-msg.success{ background: rgba(124,252,110,0.14); color: var(--cyan); border:1px solid rgba(124,252,110,0.35); }
  .account-divider{ height:1px; background: var(--line); margin:16px 0; }
  .account-row-item{ display:flex; align-items:center; justify-content:space-between; font-size:13.5px; color:var(--text); }
  .account-row-item input{ width:18px; height:18px; accent-color: var(--cyan); cursor:pointer; }
  .account-danger-zone{ margin-top:18px; }
  .account-danger-toggle{
    font-size:12px; color: var(--text-faint); background:none; border:none;
    text-decoration:underline; cursor:pointer; padding:0;
  }
  .account-danger-toggle:hover{ color:#ef8a8a; }
  .account-danger-text{ font-size:11.5px; color:var(--text-dim); line-height:1.5; margin:10px 0 8px; }
  .account-danger-btn{
    width:100%; font-weight:700; font-size:13px; color:#fff;
    background: linear-gradient(135deg, #ef7f7f, #c94f4f);
    border:none; border-radius:10px; padding:10px; cursor:pointer; margin-top:6px;
  }

  .lang-switch{
    display: flex;
    gap: 3px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
  }
  .lang-btn{
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--text-faint);
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 4px 9px;
    cursor: pointer;
    transition: all .15s ease;
  }
  .lang-btn:hover{ color: var(--text); }
  .lang-btn.active{
    background: var(--cyan);
    color: var(--auf-gruen);
  }

  .dial{
    position: relative;
    width: 108px;
    height: 108px;
    flex-shrink: 0;
  }
  .dial svg{ width: 100%; height: 100%; transform: rotate(-90deg); }
  .dial-track{ fill: none; stroke: var(--line); stroke-width: 8; }
  .dial-fill{
    fill: none;
    stroke: url(#dialGrad);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(.4,0,.2,1);
    filter: drop-shadow(0 0 6px rgba(124,252,110,0.55));
  }
  .dial-label{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .dial-label .pct{
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
  }
  .dial-label .frac{
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-faint);
    margin-top: 1px;
  }

  /* ---------- Toolbar ---------- */
  .toolbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
  }

  .filters{ display: flex; gap: 6px; }
  .filter-btn{
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all .15s ease;
  }
  .filter-btn:hover{ color: var(--text); }
  .filter-btn.active{
    background: var(--bg-card);
    border-color: var(--line);
    color: var(--cyan);
  }

  .actions{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .btn{
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .15s ease;
  }
  .btn:hover{ background: var(--bg-card-hover); border-color: #3a4070; }
  .btn.primary{
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: #0a0c16;
    border: none;
  }
  .btn.primary:hover{ filter: brightness(1.08); }
  .btn svg{ width: 15px; height: 15px; }

  .domain-eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--cyan);
    background: rgba(124,252,110,0.1);
    border: 1px solid rgba(124,252,110,0.35);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 10px;
  }
  .domain-dot{
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(124,252,110,0.9);
  }

  .header-progress{ margin: 16px 0 18px; max-width: 520px; }
  .header-progress-track{
    width: 100%; height: 26px; border-radius: 999px;
    background: var(--bg-card); border: 1px solid var(--line);
    overflow: hidden;
  }
  .header-progress-fill{
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--gold));
    border-radius: 999px;
    transition: width .8s cubic-bezier(.4,0,.2,1);
  }
  .header-progress-numbers{
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dim);
  }
  .header-progress-numbers span:last-child{ color: var(--cyan); font-weight: 800; }

  .promo-strip{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .promo-chip{
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 200px;
    text-decoration: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 700;
    transition: all .15s ease;
    position: relative;
    overflow: hidden;
  }
  .promo-chip:hover{ transform: translateY(-2px); }
  .promo-chip svg{ width: 22px; height: 22px; flex-shrink: 0; }
  .promo-chip-eyebrow{
    display: block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .85;
  }
  .promo-chip-main{ display: block; font-family: var(--font-display); font-size: 14.5px; }
  .promo-chip-main strong{ font-family: var(--font-mono); letter-spacing: .03em; }
  .promo-chip-cta{
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(6,17,10,0.25);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
  }
  .promo-chip-code{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: var(--auf-gruen);
    box-shadow: 0 14px 34px -14px rgba(124,252,110,0.7);
  }
  .promo-chip-code .promo-chip-cta{ margin-left: 0; margin-top: 2px; }
  .promo-chip-discord{
    background: var(--bg-card);
    border: 1px solid rgba(88,101,242,0.5);
    color: var(--text);
    box-shadow: 0 14px 30px -18px rgba(88,101,242,0.5);
  }
  .promo-chip-discord svg{ color: #5865F2; }
  .promo-chip-discord:hover{ border-color: #5865F2; }
  .promo-chip-twitch{
    background: var(--bg-card);
    border: 1px solid rgba(145,70,255,0.5);
    color: var(--text);
    box-shadow: 0 14px 30px -18px rgba(145,70,255,0.5);
  }
  .promo-chip-twitch svg{ color: #9146FF; }
  .promo-chip-twitch:hover{ border-color: #9146FF; }
  @media (max-width: 640px){
    .promo-chip{ min-width: 100%; }
  }

  .code-banner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(90deg, rgba(124,252,110,0.16), rgba(61,220,132,0.06));
    border: 1px solid rgba(124,252,110,0.45);
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 12px;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
    box-shadow: 0 0 24px -12px rgba(124,252,110,0.5);
  }
  .code-banner:hover{
    border-color: var(--cyan);
    background: linear-gradient(90deg, rgba(124,252,110,0.24), rgba(61,220,132,0.09));
    transform: translateY(-1px);
  }
  .code-banner-text{ display: flex; flex-direction: column; gap: 2px; }
  .code-banner-eyebrow{
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--cyan);
  }
  .code-banner-code{ font-size: 14.5px; font-weight: 600; }
  .code-banner-code strong{
    display: inline-block;
    color: var(--auf-gruen);
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    font-family: var(--font-mono);
    font-weight: 800;
    letter-spacing: .03em;
    padding: 2px 9px;
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(124,252,110,0.65);
    margin-left: 2px;
  }
  .code-copy{
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--auf-gruen);
    background: var(--cyan);
    border-radius: 999px;
    padding: 6px 12px;
    flex-shrink: 0;
  }

  .discord-banner{
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(88,101,242,0.16), rgba(88,101,242,0.06));
    border: 1px solid rgba(88,101,242,0.4);
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13.5px;
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
  }
  .discord-banner:hover{
    border-color: #5865F2;
    background: linear-gradient(90deg, rgba(88,101,242,0.24), rgba(88,101,242,0.08));
    transform: translateY(-1px);
  }
  .discord-banner svg:first-child{ width: 20px; height: 20px; color: #5865F2; flex-shrink: 0; }
  .discord-banner span{ flex: 1; }
  .discord-banner .arrow{ width: 16px; height: 16px; opacity: .7; flex-shrink: 0; }

  .export-btn{
    width: 100%;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    padding: 15px 20px;
    border-radius: 14px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: var(--auf-gruen);
    border: none;
    box-shadow: 0 0 0 1px rgba(124,252,110,0.3), 0 10px 30px -10px rgba(124,252,110,0.55);
    letter-spacing: .01em;
  }
  .export-btn:hover{
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px rgba(124,252,110,0.45), 0 14px 36px -10px rgba(124,252,110,0.7);
    transform: translateY(-1px);
  }
  .export-btn svg{ width: 18px; height: 18px; }

  .save-note{
    font-size: 12px;
    color: var(--text-faint);
    margin: -10px 2px 18px;
  }

  /* ---------- Categories ---------- */
  #categories{
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 40px;
  }
  @media (min-width: 900px){
    #categories{ grid-template-columns: 1fr 1fr; }
  }
  .category{ margin-bottom: 30px; min-width: 0; }
  .cat-head{
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
  }
  .cat-icon{ width: 26px; height: 26px; opacity: .9; }
  .cat-head h2{
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    margin: 0;
  }
  .cat-count{
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-faint);
  }
  /* Weg zur Gattungs-Unterseite. Grün = Funktion (anklickbar), nach ganz
     rechts geschoben, damit er die Überschrift nicht bedrängt. */
  .cat-info{
    margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; letter-spacing: .3px;
    color: var(--cyan); text-decoration: none; white-space: nowrap;
    border: 1px solid rgba(124,252,110,.32); border-radius: 999px;
    padding: 4px 11px 4px 9px; transition: background .15s ease, border-color .15s ease;
  }
  .cat-info svg{ width: 14px; height: 14px; }
  .cat-info:hover, .cat-info:focus-visible{
    background: rgba(124,252,110,.13); border-color: var(--cyan);
  }
  @media (max-width: 520px){
    .cat-info span{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    .cat-info{ padding: 5px 8px; }
  }

  .item-row{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .chip{
    position: relative;
    width: 156px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
    user-select: none;
  }
  .chip:hover{ transform: translateY(-2px); border-color: #3a4070; background: var(--bg-card-hover); }
  .chip.owned{ border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
  .chip.hidden{ display: none; }

  .badge{
    width: 96px;
    height: 96px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: .55;
    filter: grayscale(0.6);
    transition: opacity .15s ease, filter .15s ease;
  }
  .chip.owned .badge{ opacity: 1; filter: none; }
  .badge svg{ width: 42px; height: 42px; }

  .release-tag{
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 7px;
    border-radius: 999px;
    margin-top: 2px;
  }
  .release-tag.released{ color: var(--text-faint); background: transparent; }
  .release-tag.unreleased{ color: #ff6ec7; background: rgba(255,110,199,0.14); border: 1px solid rgba(255,110,199,0.4); }
  .chip.unreleased{ border-color: rgba(255,110,199,0.4); }
  .chip.locked{ cursor: not-allowed; }
  .chip.locked:hover{ transform: none; background: var(--bg-card); border-color: rgba(255,110,199,0.4); }
  .chip.unreleased .badge{ box-shadow: 0 0 0 1px rgba(255,110,199,0.3); }
  .chip.unreleased.owned{ border-color: #ff6ec7; box-shadow: 0 0 0 1px #ff6ec7 inset; }

  .tier-normal{ background: #2a2e4d; }
  .tier-gold{ background: linear-gradient(135deg,#7a5a12,#f2c14e); }
  .tier-gummi{ background: linear-gradient(135deg,#7a1f4a,#ef7fa8); }
  .tier-galaxy{ background: linear-gradient(135deg,#3a1e6b,#a98cf0); }
  .tier-holo{ background: linear-gradient(135deg,#0e5f2e,#7CFC6E); }
  .tier-gem{ background: linear-gradient(135deg,#0e6b4f,#3fe0a0); }
  .tier-cube{ background: linear-gradient(135deg,#3b1466,#a45cf0); }
  .tier-quack{ background: linear-gradient(135deg,#7a5a12,#ffe066); }

  .badge.has-image{
    background: #0d1210;
    border: 1px solid var(--line);
    padding: 5px;
  }
  .badge.has-image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .chip-label{
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.25;
  }
  .chip.owned .chip-label{ color: var(--text); }

  .tier-tag{
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-faint);
  }

  .check{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .chip.owned .check{ background: var(--cyan); border-color: var(--cyan); }
  .check svg{ width: 13px; height: 13px; opacity: 0; }
  .chip.owned .check svg{ opacity: 1; }

  /* Meister-Krone (Level 5) */
  .crown-btn{
    position: absolute;
    top: 8px; left: 8px;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10,12,22,0.55);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    color: #565d87;
    transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
    z-index: 2;
  }
  .crown-btn svg{ width: 14px; height: 14px; }
  .crown-btn:hover{ color: #f2c14e; border-color: rgba(242,193,78,0.5); }
  .chip.mastered .crown-btn{
    color: #f2c14e;
    background: rgba(242,193,78,0.16);
    border-color: rgba(242,193,78,0.65);
    box-shadow: 0 0 10px -2px rgba(242,193,78,0.7);
  }

  /* ---------- Rangliste ---------- */
  .lb-panel{
    background: var(--bg-card); border:1px solid var(--line); border-radius:16px;
    padding: 20px 20px 14px; margin-top: 26px; position:relative; overflow:hidden;
  }
  .lb-panel::before{
    content:''; position:absolute; top:0; left:0; right:0; height:2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), transparent);
  }
  .lb-head{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
  .lb-head h2{ font-family: var(--font-display); font-size:17px; font-weight:800; margin:0; color: var(--gold); }
  .lb-sub{ font-size:11.5px; color:var(--text-faint); }
  .lb-table{ width:100%; border-collapse:collapse; }
  .lb-table th{
    font-family: var(--font-mono); font-size:10px; font-weight:700; text-transform:uppercase;
    letter-spacing:.06em; color:var(--text-faint); text-align:left; padding:6px 8px;
    border-bottom:1px solid var(--line);
  }
  .lb-table td{ font-size:13px; padding:9px 8px; border-bottom:1px solid rgba(34,50,38,0.5); }
  .lb-table tr:last-child td{ border-bottom:none; }
  .lb-rank{ font-family: var(--font-mono); font-weight:700; color:var(--text-faint); }
  .lb-row-1 .lb-rank{ color:#f2c14e; }
  .lb-row-2 .lb-rank{ color:#c8cbe0; }
  .lb-row-3 .lb-rank{ color:#d29b6c; }
  .lb-name{ font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:180px; }
  .lb-num{ text-align:right; font-family: var(--font-mono); color:var(--cyan); font-weight:700; }
  .lb-num.gold{ color:var(--gold); }
  .lb-note{ font-size:11px; color:var(--text-faint); margin-top:10px; }
  .lb-me{ background: rgba(124,252,110,0.06); }

  .empty-state{
    text-align: center;
    padding: 50px 20px;
    color: var(--text-faint);
    font-size: 14px;
  }

  .social-row{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .social-row a{
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    background: var(--bg-card);
    border: 1px solid var(--line);
    transition: all .15s ease;
  }
  .social-row a:hover{ color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
  .social-row svg{ width: 18px; height: 18px; }

  .social-row a.social-featured{
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9146FF, #6a2fd0);
    border-color: #9146FF;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(145,70,255,0.5), 0 0 22px -4px rgba(145,70,255,0.85);
    position: relative;
  }
  .social-row a.social-featured svg{ width: 24px; height: 24px; }
  .social-row a.social-featured:hover{
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px) scale(1.04);
  }
  .social-row a.social-featured::after{
    content: 'LIVE';
    position: absolute;
    top: -9px;
    right: -8px;
    background: var(--cyan);
    color: var(--auf-gruen);
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 2px 5px;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(124,252,110,0.7);
  }

  .footer-note{
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--text-faint);
    text-align: center;
    line-height: 1.6;
  }

  @media (max-width: 560px){
    .header{ flex-direction: column; align-items: flex-start; }
    /* Ohne diese Zeile behalten die Flex-Kinder ihre Wunschbreite (~371 px)
       und ragen auf schmalen Handys rechts aus dem Bild. */
    .header > *{ width: 100%; min-width: 0; max-width: 100%; }
    .header h1{ font-size: clamp(26px, 8.5vw, 38px); overflow-wrap: break-word; }
    .dial-wrap{ align-self: center; }
    .toolbar{ flex-direction: column; align-items: stretch; }
    .actions{ justify-content: flex-end; }
    /* Sprachumschalter darf umbrechen statt am Rand abgeschnitten zu werden */
    .lang-switch{ flex-wrap: wrap; justify-content: center; }
    .lang-btn{ padding: 8px 12px; font-size: 12px; }
    /* Eingabefeld und Knöpfe auf Daumengröße */
    .username-field{ display: flex; width: 100%; padding: 10px 12px; }
    /* flex-shrink:0 — sonst quetscht die Zeile den Login-Knopf zu "L…" zusammen */
    .mcdev-account-btn{ min-height: 40px; flex-shrink: 0; }
    .actions, .account-row{ flex-wrap: wrap; row-gap: 10px; }
    .account-btn{ min-height: 40px; padding-left: 18px; padding-right: 18px; }
  }

  @media (prefers-reduced-motion: reduce){
    .chip, .dial-fill{ transition: none; }
  }

/* ── „Sammlung sichern" ────────────────────────────────────────────────
   Erscheint ab acht Haken für nicht angemeldete Besucher, einmal
   weggeklickt bleibt er weg. Bewusst KEIN Pop-up und kein Overlay: Der
   Kasten steht in der Seite und blockiert nichts — wer weiterklicken will,
   klickt weiter. Grün ist hier richtig, weil es eine Funktion anbietet. */
.sicher-hinweis{display:flex;flex-wrap:wrap;align-items:center;gap:14px;
  background:var(--bg-card2);border:1px solid var(--gruen);border-radius:16px;
  padding:14px 16px;margin:0 0 16px}
.sicher-hinweis .sh-txt{flex:1;min-width:240px;font-size:13px;line-height:1.55;color:var(--text-dim)}
.sicher-hinweis .sh-txt b{display:block;font-family:var(--font-head);font-size:14.5px;
  font-weight:800;color:var(--text);margin-bottom:3px}
.sicher-hinweis .sh-btns{display:flex;gap:8px;flex-shrink:0}
.sicher-hinweis button{font-family:var(--font-head);font-weight:800;font-size:13px;
  border-radius:999px;padding:9px 16px;cursor:pointer;border:1px solid transparent}
.sicher-hinweis .sh-ja{background:var(--gruen);color:#06110a}
.sicher-hinweis .sh-ja:hover{filter:brightness(1.08)}
.sicher-hinweis .sh-nein{background:transparent;color:var(--text-faint);border-color:var(--line2)}
.sicher-hinweis .sh-nein:hover{color:var(--text-dim);border-color:var(--line-hell)}
@media (max-width:520px){
  .sicher-hinweis{flex-direction:column;align-items:stretch}
  .sicher-hinweis .sh-btns{justify-content:flex-end}
}

/* v139.82 — additive Generationsauswahl. */
.generation-filter{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0 16px}.generation-filter>span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-faint);font-weight:800}.generation-btn{border:1px solid var(--line);background:var(--bg-card);color:var(--text-dim);border-radius:999px;padding:7px 10px;font:700 12px/1 var(--font-body);cursor:pointer}.generation-btn.active{border-color:var(--cyan);color:var(--cyan);background:color-mix(in srgb,var(--cyan) 8%,var(--bg-card))}.generation-btn:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}

/* v140.5: bestätigte neue Season-Familie, Varianten noch nicht verifiziert. */
.item-row-launch-preview{display:block}
.launch-preview-card{display:flex;flex-direction:column;gap:4px;border:1px dashed var(--line-hell);border-radius:14px;padding:13px 14px;background:var(--bg-card2);color:var(--text-dim);max-width:620px}
.launch-preview-card strong{font-family:var(--font-head);font-size:13px;color:var(--cyan)}
.launch-preview-card span{font-size:12px;line-height:1.5;color:var(--text-faint)}
.category-launch-preview .cat-count{color:var(--text-faint)}


/* v140.9: Schummelmeister-Badge */
.tier-schummelmeister{border-color:rgba(34,197,94,.55);background:radial-gradient(circle at 30% 30%, rgba(134,239,172,.34), rgba(21,128,61,.20) 52%, rgba(24,24,27,.96));box-shadow:0 8px 24px rgba(21,128,61,.35);}


/* ======================================================================
   v140.15 — McDev Collection Board
   ----------------------------------------------------------------------
   Bewusst eigene visuelle Grammatik: Familie = "Channel", Variante =
   "Token". Funktion, DOM-IDs, Collection-Keys und Klicklogik bleiben
   unverändert; nur die Präsentation wird eigenständiger.
   ====================================================================== */
#categories{
  gap:22px 24px;
  align-items:start;
}
.category{
  position:relative;
  margin-bottom:0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:22px 6px 22px 6px;
  background:
    linear-gradient(145deg,rgba(167,139,250,.075),transparent 38%),
    linear-gradient(180deg,var(--bg-card2),rgba(8,10,20,.72));
  box-shadow:0 16px 38px -30px rgba(0,0,0,.9);
  overflow:hidden;
}
.category::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--violett),var(--gruen) 58%,transparent 92%);
  opacity:.72;
}
.cat-head{
  align-items:center;
  gap:10px;
  margin:0 0 13px;
  padding:0 0 11px;
  border-bottom:1px solid var(--line2);
}
.cat-icon{
  width:34px;height:34px;
  padding:6px;
  border-radius:11px 3px 11px 3px;
  background:var(--violett-schimmer);
  border:1px solid rgba(167,139,250,.24);
}
.cat-titleblock{min-width:0;display:flex;flex-direction:column;gap:2px;}
.cat-index{
  font-family:var(--font-mono);
  font-size:8.5px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-faint);
  white-space:nowrap;
}
.cat-head h2{font-size:18px;font-weight:750;line-height:1.08;}
.cat-count{
  margin-left:auto;
  color:var(--gruen);
  font-size:11px;
  font-weight:700;
  background:var(--gruen-schimmer);
  border:1px solid rgba(124,252,110,.22);
  border-radius:999px;
  padding:4px 8px;
}
.cat-info{margin-left:0;border-radius:9px 3px 9px 3px;padding:5px 8px;}
.item-row{
  display:grid;
  /* v140.17: auto-fill behaelt ungenutzte Spalten. Dadurch wird eine
     Familie mit nur einer Variante nicht mehr auf die komplette Kartenbreite
     aufgeblasen (z. B. Ironmouse), waehrend Mehrfachfamilien unveraendert
     dicht umbrechen. */
  grid-template-columns:repeat(auto-fill,minmax(126px,1fr));
  gap:10px;
}
.chip{
  --tier-accent:var(--violett);
  width:auto;
  min-width:0;
  min-height:184px;
  padding:10px 10px 11px;
  gap:6px;
  align-items:stretch;
  border-radius:18px 5px 18px 5px;
  background:linear-gradient(160deg,rgba(22,26,46,.97),rgba(11,14,27,.98));
  overflow:hidden;
  box-shadow:0 11px 24px -24px rgba(0,0,0,.9);
}
.chip::before{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:var(--tier-accent);
  opacity:.74;
  transition:opacity .15s ease,box-shadow .15s ease;
}
.chip:hover{transform:translateY(-2px);border-color:var(--line-hell);}
.chip.owned{
  border-color:rgba(124,252,110,.52);
  box-shadow:0 0 0 1px rgba(124,252,110,.18) inset,0 14px 30px -24px rgba(124,252,110,.55);
}
.chip.owned::before{opacity:1;box-shadow:0 0 14px var(--tier-accent);}
.chip[data-tier="normal"]{--tier-accent:#8990b8;}
.chip[data-tier="gold"]{--tier-accent:#f2c14e;}
.chip[data-tier="gummi"]{--tier-accent:#ff6ec7;}
.chip[data-tier="galaxy"]{--tier-accent:#a78bfa;}
.chip[data-tier="holo"]{--tier-accent:#7CFC6E;}
.chip[data-tier="gem"]{--tier-accent:#3fe0a0;}
.chip[data-tier="cube"]{--tier-accent:#b66cff;}
.chip[data-tier="quack"]{--tier-accent:#ffe066;}
.chip[data-tier="schummelmeister"]{--tier-accent:#22c55e;}
.badge,
.badge.has-image{
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  border-radius:14px 3px 14px 3px;
  background:
    linear-gradient(145deg,rgba(167,139,250,.09),rgba(124,252,110,.035)),
    #0c101b;
  border:1px solid var(--line2);
  padding:7px;
  overflow:hidden;
}
.badge.has-image img{width:100%;height:100%;object-fit:contain;}
.chip-label{
  order:3;
  text-align:left;
  font-family:var(--font-mono);
  font-size:9px;
  font-weight:700;
  letter-spacing:.045em;
  text-transform:uppercase;
  color:var(--text-faint);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tier-tag{
  order:4;
  display:flex;
  align-items:center;
  gap:6px;
  text-align:left;
  font-family:var(--font-head);
  font-size:13px;
  font-weight:750;
  letter-spacing:0;
  text-transform:none;
  color:var(--text);
  padding-right:30px;
}
.tier-tag::before{
  content:'';
  width:6px;height:6px;border-radius:50%;
  background:var(--tier-accent);
  box-shadow:0 0 8px color-mix(in srgb,var(--tier-accent) 65%,transparent);
  flex:0 0 auto;
}
.release-tag{order:5;align-self:flex-start;margin-top:1px;padding-left:0;}
.check{
  top:auto;
  bottom:10px;
  right:9px;
  width:26px;
  height:20px;
  border-radius:999px;
  background:rgba(8,10,20,.78);
  backdrop-filter:blur(4px);
}
.chip.owned .check{background:var(--gruen);border-color:var(--gruen);}
.crown-btn{
  top:17px;left:16px;
  width:27px;height:27px;
  border-radius:999px;
  background:rgba(8,10,20,.72);
  backdrop-filter:blur(5px);
}
@media(max-width:560px){
  .category{padding:13px;border-radius:18px 5px 18px 5px;}
  .item-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .chip{min-height:0;padding:8px;}
  .cat-head{gap:8px;}
  .cat-count{margin-left:auto;}
}
@media(max-width:365px){.item-row{grid-template-columns:1fr;}}

/* ── v140.21: Login/Sprachwahl in der Hauptnavigation ─────────────────
   Die Knoten kommen unverändert aus dem Checklisten-Kopf (seite-sprites.js
   hängt sie um). Hier nur die kompakte Darstellung in der Kopfzeile bzw.
   in der Menü-Schublade. */
.mcdev-topnav .account-btn--nav{
  font-size: 12px;
  padding: 6px 13px;
  max-width: 130px;
  margin-right: 4px;
}
.mcdev-topnav .lang-switch--nav{
  margin-right: 6px;
  padding: 2px;
}
.mcdev-topnav .lang-switch--nav .lang-btn{
  font-size: 10px;
  padding: 4px 7px;
}
.tn-drawer .lang-switch{
  margin: 10px 14px;
  justify-content: center;
}
