/* Bubble Shooter — eigene Styles (Farben nur über Tokens) */
:root {
  --akzent: #a46bff; --akzent2: #38e1c6;
  --b0: #ff5a6e; --b1: #ffcc3d; --b2: #3fd97f; --b3: #3fa2ff; --b4: #b07cff; --b5: #ff7ad9;
  --feld-oben: #16244a; --feld-unten: #0d1630; --decke: #2c3f6b; --linie-tod: rgba(255, 107, 107, .55);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --feld-oben: #dfe8fb; --feld-unten: #f6f8fe; --decke: #9fb0d6; --linie-tod: rgba(220, 60, 60, .5); }
}
html, body { height: 100%; overflow: hidden; }
#spiel { flex: 1; display: flex; flex-direction: column; align-items: center; min-height: 0; position: relative; padding: 0 6px 6px; }
#infos { padding: 4px 8px; width: 100%; max-width: 480px; justify-content: space-between; gap: 8px; flex: none; }
#i-modus { color: var(--akzent); }
#buehne { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
#cv { display: block; border-radius: 14px; box-shadow: var(--kl-schatten); touch-action: none; cursor: crosshair; }

#werkzeuge { width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: none; padding-top: 4px; }
.wz { border: 0; background: none; color: var(--kl-text2); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; border-radius: 10px; }
.wz span { font-size: 22px; line-height: 1.1; color: var(--kl-text); }
.wz:hover { background: var(--kl-flaeche2); }
.wz:active { transform: translateY(1px); }
.wz:disabled { opacity: .4; cursor: default; background: none; }

#menue { position: absolute; inset: 0; background: var(--kl-bg); z-index: 10;
  display: flex; justify-content: center; overflow-y: auto; padding: 14px 12px; animation: kl-ein .2s; }
#menue[hidden] { display: none; }
.m-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.m-titel { font-size: 24px; font-weight: 900; text-align: center; margin: 4px 0; }
.m-modi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-modus { border: 1px solid var(--kl-linie); background: var(--kl-flaeche); color: var(--kl-text); border-radius: var(--kl-radius);
  padding: 12px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; box-shadow: var(--kl-schatten); }
.m-modus span { font-size: 26px; }
.m-modus b { font-size: 16px; }
.m-modus small { color: var(--kl-text2); font-size: 12px; font-weight: 700; }
.m-modus:active { transform: translateY(1px); }
.m-ueber { font-weight: 800; font-size: 16px; margin-top: 4px; }
.m-ueber small { color: var(--kl-text2); font-weight: 700; margin-left: 6px; }
#m-level { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; padding-bottom: 10px; }
.lv { aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--kl-flaeche2); color: var(--kl-text); font: inherit; font-weight: 900;
  font-size: 17px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.lv small { font-size: 10px; letter-spacing: -1px; color: var(--kl-gold); min-height: 12px; }
.lv.offen { background: linear-gradient(var(--akzent), color-mix(in srgb, var(--akzent) 70%, #000)); color: #fff; }
.lv.zu { opacity: .45; cursor: default; }
.lv:not(.zu):active { transform: translateY(1px); }
