/* Kopfleiste auf allen Seiten: Navigation, freie Engine-Plaetze, Spendenknopf,
   angemeldetes Konto. Farben kommen aus der jeweiligen Seite. */
.sitebar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0}
.sitebar nav,.sitebar .side{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0}
.sitebar .side{margin-left:auto}
.sitebar .pill{
  color:var(--paper);text-decoration:none;padding:5px 11px;border-radius:999px;
  border:1px solid rgba(255,255,255,.18);font-size:.93rem;display:inline-flex;align-items:center;gap:6px;
}
.sitebar .pill:hover{background:rgba(255,255,255,.08)}
.sitebar .pill[aria-current="page"]{background:var(--paper);color:var(--leaf-deep);font-weight:700}
.sitebar .count{background:var(--tomato);color:#fff;border-radius:999px;font:700 .72rem/1 system-ui,sans-serif;padding:3px 7px}
.sitebar .slots{font:.82rem system-ui,sans-serif;color:var(--muted);white-space:nowrap}
.sitebar .slots.full{color:#ffb4b4;font-weight:700}
.sitebar [hidden]{display:none !important}
/* Hinweis des Betreibers und die Links unten auf jeder Seite */
.site-notice{align-self:stretch;background:#f5d042;color:#16130f;font:600 .95rem/1.45 system-ui,sans-serif;text-align:center;
  padding:9px 16px;margin:0 0 12px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}
.site-notice[hidden]{display:none}
/* Der Weg zur Info-Seite eines trainierten Spiels: nicht zu uebersehen */
.info-button{display:flex;align-items:center;gap:14px;margin:0 0 12px;padding:14px 18px;border:2px solid var(--gold);
  border-radius:14px;background:rgba(245,208,66,.14);color:var(--paper);text-decoration:none;font-family:system-ui,sans-serif}
.info-button:hover{background:rgba(245,208,66,.26)}
.info-button[hidden]{display:none}
.info-button .mark{flex:none;width:46px;height:46px;border-radius:50%;background:var(--gold);color:#16130f;
  font:italic 800 1.8rem/46px Georgia,serif;text-align:center}
.info-button strong{display:block;font-size:1.3rem;line-height:1.25}
.info-button small{display:block;margin-top:2px;color:var(--muted);font-size:.92rem;line-height:1.35}
.legal-links{width:100%;display:flex;justify-content:center;gap:18px;padding:22px 16px 14px;
  font:.85rem system-ui,sans-serif}
.legal-links a{color:var(--muted);text-underline-offset:3px}
/* wann eine Partie gegen den Computer verfaellt */
.expiry{margin:0;font:.9rem/1.45 system-ui,sans-serif;color:var(--muted)}
.expiry.soon{color:#fff;background:var(--tomato);border-radius:8px;padding:8px 12px;font-weight:700}
.expiry[hidden]{display:none}
.coffee{
  display:inline-flex;align-items:center;gap:6px;text-decoration:none;white-space:nowrap;
  background:#ffdd00;color:#1a1613;border-radius:999px;padding:6px 13px;font:700 .88rem system-ui,sans-serif;
}
.coffee:hover{filter:brightness(1.08)}
.coffee svg{width:18px;height:18px;fill:none;stroke:#1a1613;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Das eigene Konto mit Elo: gut sichtbar */
.sitebar .pill.account{
  background:#f5d042;border-color:#f5d042;color:#16130f;font-weight:800;font-size:1.08rem;
  padding:6px 7px 6px 16px;gap:10px;box-shadow:0 2px 12px rgba(245,208,66,.35);
}
.sitebar .pill.account:hover{background:#ffdf3d}
.sitebar .pill.account[aria-current="page"]{background:#f5d042;color:#16130f;outline:3px solid #fff}
.sitebar .account .elo{background:#16130f;color:#f5d042;border-radius:999px;padding:4px 11px;font:800 .95rem system-ui,sans-serif}
.sitebar .account:has(.elo[hidden]){padding-right:16px}

/* Sprachauswahl in der Kopfleiste */
.sitebar .language{display:inline-flex;align-items:center;gap:5px;font:.9rem system-ui,sans-serif}
.sitebar .language select{
  background:#1c2b21;color:#f4f1e8;border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:4px 8px;font:inherit;cursor:pointer;
}

/* ---------------- Levy-Modus (levy.js) ---------------- */
.levy-mute{
  background:transparent;border:1px solid rgba(255,255,255,.28);border-radius:999px;color:#f4f1e8;
  padding:4px 10px;cursor:pointer;font:.9rem system-ui,sans-serif;
}
.levy-captions{
  position:fixed;left:50%;bottom:54px;transform:translateX(-50%);z-index:60;pointer-events:none;
  display:flex;flex-direction:column;align-items:center;gap:8px;width:min(94vw,680px);
}
.levy-caption{
  background:#f5d042;color:#16130f;border:3px solid #16130f;border-radius:12px;padding:10px 18px;text-align:center;
  font:800 1.15rem/1.3 system-ui,sans-serif;box-shadow:0 10px 30px rgba(0,0,0,.5);
  animation:levyPop .35s cubic-bezier(.2,1.5,.4,1) both;
}
.levy-caption.big{font-size:clamp(1.7rem,6vw,2.8rem);background:#e5383b;color:#fff;letter-spacing:.02em}
@keyframes levyPop{from{opacity:0;transform:scale(.4) rotate(-5deg)}to{opacity:1;transform:none}}

.levy-overlay{
  position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:16px;
  background:rgba(8,12,10,.78);
}
.levy-overlay .box{
  background:#f4f1e8;color:#16130f;border-radius:14px;padding:22px 24px;max-width:520px;width:100%;text-align:center;
  box-shadow:0 18px 60px rgba(0,0,0,.6);animation:levyPop .4s cubic-bezier(.2,1.5,.4,1) both;
}
.levy-overlay h2{margin:0 0 10px;color:#b4161c;font-size:clamp(1.5rem,5vw,2.1rem);line-height:1.15}
.levy-overlay p{margin:0 0 14px;font:600 1.08rem/1.45 system-ui,sans-serif}
.levy-overlay .small{font:400 .92rem/1.45 system-ui,sans-serif;color:#4a463f}
.levy-overlay .actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.levy-overlay button,.levy-overlay a.go{
  border:0;border-radius:8px;padding:10px 18px;cursor:pointer;font:700 1rem system-ui,sans-serif;text-decoration:none;
  background:#16130f;color:#f4f1e8;
}
.levy-overlay a.go{background:#ffdd00;color:#16130f}
.levy-note{
  margin:26px auto 0;max-width:70ch;text-align:center;color:#a9b8a3;font:.8rem/1.45 system-ui,sans-serif;
}
@media (prefers-reduced-motion:reduce){.levy-caption,.levy-overlay .box{animation:none}}

/* Sterne zum Bewerten (Site.ratingBox) */
.rating-box{display:flex;flex-direction:column;gap:4px}
.rating-box .stars{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.rating-box .stars button{
  background:none;border:0;padding:2px 3px;cursor:pointer;font-size:1.7rem;line-height:1;color:rgba(255,255,255,.28);
}
.rating-box .stars button.on{color:#f5d042}
.rating-box .stars button:hover:not(:disabled){transform:scale(1.15)}
.rating-box .stars button:disabled{cursor:default}
.rating-box .stars .btn{margin-left:8px;font-size:.82rem;line-height:1.3;color:var(--paper)}
.rating-box .why{margin:0;font:.86rem/1.45 system-ui,sans-serif;color:var(--muted)}
.score{font-weight:700;white-space:nowrap}
