/* Westwind Games — Klassiker-Basis. Farben nur über Tokens; Spiele dürfen --akzent überschreiben. */
:root {
  --kl-bg: #0b1426;
  --kl-bg2: #13203a;
  --kl-flaeche: #1b2c4c;
  --kl-flaeche2: #24395f;
  --kl-linie: rgba(255, 255, 255, .1);
  --kl-text: #eef3fc;
  --kl-text2: #9fb1cf;
  --akzent: #4f8cff;
  --akzent2: #38e1c6;
  --kl-gold: #ffd54a;
  --kl-gut: #39d98a;
  --kl-schlecht: #ff6b6b;
  --kl-radius: 14px;
  --kl-schatten: 0 6px 18px rgba(0, 0, 0, .35);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --kl-bg: #eef2f9; --kl-bg2: #ffffff; --kl-flaeche: #ffffff; --kl-flaeche2: #e3e9f5;
    --kl-linie: rgba(0, 0, 0, .1); --kl-text: #15223a; --kl-text2: #5b6a85; --kl-schatten: 0 4px 14px rgba(20, 40, 80, .15);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--kl-bg); color: var(--kl-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
body { display: flex; flex-direction: column; min-height: 100vh; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }

.kl-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px;
  background: var(--kl-bg2); border-bottom: 1px solid var(--kl-linie); position: sticky; top: 0; z-index: 5; }
.kl-titel { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl-kopf-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.kl-knopf { border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 800; font-size: 15px; cursor: pointer;
  background: var(--kl-flaeche2); color: var(--kl-text); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); transition: transform .06s; }
.kl-knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.kl-knopf.haupt { background: linear-gradient(var(--akzent), color-mix(in srgb, var(--akzent) 75%, #000)); color: #fff; }
.kl-knopf.klein { padding: 7px 11px; font-size: 14px; border-radius: 10px; }
.kl-knopf:disabled { opacity: .45; cursor: default; }

.kl-leiste { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 12px; color: var(--kl-text2); font-size: 14px; font-weight: 700; }
.kl-leiste b { color: var(--kl-text); }

.kl-schleier { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; animation: kl-ein .2s; }
@keyframes kl-ein { from { opacity: 0; } }
.kl-fenster { background: var(--kl-bg2); color: var(--kl-text); border-radius: 18px; padding: 20px; width: 100%; max-width: 380px; text-align: center;
  box-shadow: var(--kl-schatten); border: 1px solid var(--kl-linie); animation: kl-auf .25s cubic-bezier(.2, 1.4, .5, 1); }
@keyframes kl-auf { from { transform: scale(.85); opacity: 0; } }
.kl-fenster h2 { margin: 0 0 8px; font-size: 20px; }
.kl-fenster-text { color: var(--kl-text2); font-size: 15px; line-height: 1.5; margin-bottom: 14px; text-align: left; }
.kl-fenster-text b { color: var(--kl-text); }
.kl-knoepfe { display: flex; flex-direction: column; gap: 8px; }

.kl-meldung { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 10px); background: var(--kl-flaeche2); color: var(--kl-text);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--kl-schatten); opacity: 0; transition: .25s; pointer-events: none; z-index: 60; max-width: 92%; text-align: center; }
.kl-meldung.an { opacity: 1; transform: translate(-50%, 0); }
.kl-konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }
@media (prefers-reduced-motion: reduce) { .kl-schleier, .kl-fenster { animation: none; } }
