@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(./embedded/font-1.woff2) format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(./embedded/font-2.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url(./embedded/font-3.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url(./embedded/font-4.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url(./embedded/font-5.woff2) format("woff2"); }
/* Schriften: Pixelify Sans und Nunito (beide SIL Open Font License 1.1) */
:root {
  --bg: #1d2333;
  --panel: #232b40;
  --panel-rand: #8fa3c9;
  --panel-dunkel: #161c2b;
  --text: #f4f7ff;
  --leise: #a9b6cf;
  --gold: #ffcf4a;
  --gold-hell: #ffe79a;
  --gold-dunkel: #b07d10;
  --gruen: #63e07a;
  --blau: #3d8bff;
  --blau-dunkel: #2459b8;
  --rot: #ff6b5e;
  --knopf: #2a3450;
  --knopf-rand: #9fb2d6;
  --sa-oben: env(safe-area-inset-top, 0px);
  --sa-unten: env(safe-area-inset-bottom, 0px);
  --sa-links: env(safe-area-inset-left, 0px);
  --sa-rechts: env(safe-area-inset-right, 0px);
  --k: 12px;
  --spalte: 260px;
  --leiste-oben: 76px;
  --leiste-unten: 104px;
  --pixel: "Pixelify Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
/* Das Spiel hat bewusst einen eigenen, festen Look (Maschine im Pixel-Stil); Hell/Dunkel des Systems ändert nichts */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #1d2333; --text: #f4f7ff; } }
:root[data-theme="dark"] { --bg: #1d2333; --text: #f4f7ff; }

/* touch-action: manipulation – auf dem iPad zoomt Doppeltippen nicht mehr (Darius, 17.10.2026), Wischen in Listen und
   Zoomen mit zwei Fingern gehen weiter. Die Leinwand selbst hat touch-action: none (siehe #leinwand). */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--pixel); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-font-smoothing: antialiased; }
#app { position: fixed; inset: 0; }
#leinwand { position: absolute; left: 0; top: 0; touch-action: none; display: block; }
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
/* Zahlen in klarer Schrift (die Pixel-Schrift macht aus 5 fast ein S) */
#geld, #dia, #balken-text, #zeit-zeile, .kauf .preis, .kauf .txt small, .schild, #energie-zahl, .lv-knopf b, .kaufw { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 800; }

/* ---------- Bedienfelder im Pixel-Stil ---------- */
.panel { position: absolute; z-index: 5; }
#info { display: flex; align-items: flex-start; gap: 10px; }
.rund { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; padding: 0; background: var(--knopf); border: 3px solid var(--knopf-rand); border-radius: 10px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35); }
.rund svg { width: 24px; height: 24px; }
.level-box { flex: 1 1 auto; min-width: 0; text-align: center; padding-top: 2px; }
#level-name { font-weight: 700; font-size: 17px; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 6px; text-shadow: 0 2px 0 #0b1020; }
#level-name svg { width: 18px; height: 18px; }
.balken { position: relative; height: 22px; margin: 5px auto 0; max-width: 340px; border-radius: 6px; background: var(--panel-dunkel); border: 3px solid #e9f0ff; overflow: hidden; }
#balken-fuell { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(90deg, #ffcf4a 0 10px, #ffbf20 10px 12px); transition: width 0.25s steps(8); }
#balken-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; font-variant-numeric: tabular-nums; }
#zeit-zeile { display: flex; justify-content: center; gap: 14px; margin-top: 4px; font-size: 13px; color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 0 #0b1020; }
.sterne-ziel { color: var(--gold); }
.sterne-ziel i { color: #59627a; font-style: normal; }
.geld-box { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#geld, #dia { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: var(--panel); border: 3px solid var(--panel-rand); border-radius: 10px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
#geld { font-size: 19px; color: #fff; }
#geld::before { content: "₪"; color: var(--gold); font-family: system-ui, sans-serif; font-weight: 800; }
#dia { font-size: 15px; color: #cdefff; }
.i-dia { width: 16px; height: 16px; }
#tresor { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--panel); border: 3px solid var(--panel-rand); border-radius: 10px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 800; font-size: 14px; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
#tresor[hidden] { display: none; }
.i-tresor { width: 15px; height: 15px; }
#bonus { font-size: 12px; font-weight: 700; color: var(--gruen); white-space: nowrap; text-shadow: 0 1px 0 #0b1020; }
#bonus:empty { display: none; }

#shop { display: flex; gap: 8px; align-items: stretch; }
.kauf { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 9px; background: var(--knopf); border: 3px solid var(--knopf-rand); border-radius: 12px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35), 0 3px 0 rgba(0, 0, 0, 0.35); text-align: left; }
.kauf:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); }
.kauf .ico { width: 32px; height: 32px; flex: 0 0 32px; color: var(--gold); display: grid; place-items: center; }
.kauf .ico svg { width: 28px; height: 28px; }
.kauf .txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.kauf .txt b { font-size: 15px; font-weight: 700; }
.kauf .txt small { font-size: 12px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kauf .preis { flex: 0 0 auto; padding: 5px 9px; border-radius: 8px; background: var(--gold); border: 2px solid #7a5410; color: #2a1c02; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.kauf .preis::before { content: "₪ "; font-family: system-ui, sans-serif; font-weight: 800; }
.kauf.max .preis::before { content: ""; }
.kauf.zuteuer .preis { background: #4a536a; border-color: #2c3346; color: #b8c1d4; }
.kauf.max .preis { background: #24543a; border-color: #173826; color: var(--gruen); }
.kauf.aus { opacity: 0.55; }
#energie { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--leise); padding: 0 4px; border: none; background: none; }
#energie .muenzknopf { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff2b0, #ffcf4a 45%, #b07d10); border: 3px solid #6b4a08; color: #2a1c02; font-size: 22px; font-weight: 700; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4); }
#energie.leer .muenzknopf { filter: grayscale(0.7) brightness(0.8); color: #c0392b; }

/* A) Leisten oben und unten (Handy, iPad hochkant) */
.lay-oben #info { left: calc(8px + var(--sa-links)); right: calc(8px + var(--sa-rechts)); top: calc(8px + var(--sa-oben)); height: calc(var(--leiste-oben) - 10px); }
.lay-oben #shop { left: calc(8px + var(--sa-links)); right: calc(8px + var(--sa-rechts)); bottom: calc(8px + var(--sa-unten)); height: calc(var(--leiste-unten) - 14px); }
.lay-oben #shop .kauf { flex: 1 1 0; }
.lay-oben #shop .kauf.klein { flex: 0.6 1 0; }
@media (max-width: 560px) {
  .lay-oben .kauf { flex-direction: column; align-items: stretch; justify-content: center; gap: 3px; padding: 5px 6px; }
  .lay-oben .kauf .ico { display: none; }
  .lay-oben .kauf .txt { align-items: center; text-align: center; }
  .lay-oben .kauf .txt b { font-size: 13px; }
  .lay-oben .kauf .txt small { font-size: 11px; }
  .lay-oben .kauf .preis { padding: 4px 5px; font-size: 13px; text-align: center; }
  #energie .muenzknopf { width: 48px; height: 48px; font-size: 19px; }
  #energie span { display: none; }
  #geld { font-size: 16px; }
  .balken { max-width: 200px; }
}
/* B) Spalten links und rechts (iPad quer, Computer) */
.lay-seite #info { left: calc(14px + var(--sa-links)); top: calc(14px + var(--sa-oben)); width: var(--spalte); flex-direction: column; align-items: stretch; gap: 14px; }
.lay-seite .level-box { text-align: left; }
.lay-seite .balken { margin-left: 0; height: 28px; }
.lay-seite #level-name { font-size: 22px; }
.lay-seite #zeit-zeile { justify-content: flex-start; flex-direction: column; gap: 3px; font-size: 15px; }
.lay-seite .geld-box { align-items: flex-start; }
.lay-seite #geld { font-size: 26px; }
.lay-seite #bonus { font-size: 15px; }
.lay-seite #shop { right: calc(14px + var(--sa-rechts)); top: calc(14px + var(--sa-oben)); width: var(--spalte); flex-direction: column; }
.lay-seite .kauf { padding: 12px 11px; }
.lay-seite .kauf .txt b { font-size: 17px; }
.lay-seite .kauf .txt small { font-size: 13px; white-space: normal; }
.lay-seite .kauf .ico { width: 38px; height: 38px; flex-basis: 38px; }
.lay-seite #energie { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 14px; padding: 6px 2px; }

/* ---------- Preisschilder an den Ablagen ---------- */
#schilder { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.schild { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 8px;
  background: #3d4558; border: 2px solid #c9d3e6; color: #fff; font-weight: 700; font-size: clamp(11px, calc(var(--k) * 0.85), 16px); white-space: nowrap; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 2px 0 rgba(0, 0, 0, 0.35); }
.schild .p::before { content: "₪"; color: var(--gold); margin-right: 4px; font-family: system-ui, sans-serif; font-weight: 800; }
.schild .lv { display: grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: 50%; background: #f19a1b; border: 2px solid #7a4a05; color: #fff; font-size: 0.78em; }
.schild .pf { color: var(--gruen); font-size: 0.8em; }
.schild.kaufen { background: var(--blau); border-color: #cfe2ff; padding-left: 8px; }
.schild.kaufen .neu { font-size: 0.85em; }
.schild.zuteuer { filter: saturate(0.4) brightness(0.8); }
.schild.max { background: #24543a; border-color: #8fe0a8; }

/* Tipp-Hinweis als Sprechblase an der goldenen Extra-Münze – oben stieß er an die Anzeige, unten verdeckte er den Auffang
   (Darius' iPhone-Video, 16.10.) */
#tipp-hinweis { position: absolute; z-index: 6; pointer-events: none; width: max-content; max-width: 210px; padding: 7px 10px; border-radius: 10px; border: 3px solid var(--panel-rand); background: var(--panel); color: #d8ecff; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); transition: opacity 0.6s; animation: wippen 2.4s ease-in-out infinite; }
#tipp-hinweis::after { content: ""; position: absolute; width: 12px; height: 12px; background: var(--panel); border: 0 solid var(--panel-rand); transform: rotate(45deg); }
.lay-oben #tipp-hinweis { right: 0; bottom: calc(100% + 12px); }
.lay-oben #tipp-hinweis::after { right: 24px; bottom: -9px; border-right-width: 3px; border-bottom-width: 3px; }
.lay-seite #tipp-hinweis { left: 0; top: calc(100% + 12px); }
.lay-seite #tipp-hinweis::after { left: 22px; top: -9px; border-left-width: 3px; border-top-width: 3px; }
#tipp-hinweis.weg { opacity: 0; animation: none; }
@keyframes wippen { 50% { transform: translateY(-3px); } }
/* „Rohr voll“ oben in der Maschine (Lage kommt aus dem Layout) */
#rohr-voll { position: absolute; left: 50%; top: calc(var(--maschine-oben, 90px) + 10px); transform: translateX(-50%); z-index: 6; pointer-events: none; padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: opacity 0.6s; border: 3px solid #ff8a7a; background: #5a1d18; color: #ffd9d2; opacity: 0; }
#rohr-voll.an { opacity: 1; }

/* ---------- Fenster ---------- */
.overlay { position: absolute; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: calc(16px + var(--sa-oben)) 16px calc(16px + var(--sa-unten)); background: rgba(12, 16, 28, 0.62); }
.overlay.offen { display: flex; animation: einblenden 0.15s steps(3); }
#ov-geschafft { background: rgba(12, 16, 28, 0.4); }
.karte { width: min(520px, 100%); max-height: 100%; overflow-y: auto; padding: 22px 20px; background: var(--panel); border: 4px solid var(--panel-rand); border-radius: 14px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.3), 0 8px 0 rgba(0, 0, 0, 0.35); text-align: center; animation: aufploppen 0.2s steps(4); }
.karte.breit { width: min(760px, 100%); }
.karte h2 { margin: 2px 0 10px; font-size: 26px; font-weight: 700; letter-spacing: 0.02em; }
.unter { color: var(--leise); margin: 6px 0 14px; line-height: 1.45; font-family: system-ui, -apple-system, sans-serif; }
.fuss { color: #7b87a0; font-size: 12px; margin: 16px 0 0; line-height: 1.4; font-family: system-ui, -apple-system, sans-serif; }
.gross { display: block; width: 100%; padding: 13px 16px; margin: 8px 0; border-radius: 12px; background: var(--knopf); border: 3px solid var(--knopf-rand); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35); font-size: 18px; font-weight: 700; }
.gross:active { transform: translateY(2px); }
.gross.haupt { background: var(--gold); border-color: #7a5410; color: #2a1c02; font-size: 20px; }
.gross.bald { opacity: 0.45; cursor: default; }
.gross svg { width: 16px; height: 16px; vertical-align: -2px; }
.reihe { display: flex; gap: 10px; }
.reihe .gross { flex: 1 1 0; }
.leise { background: none; border: none; color: var(--leise); padding: 10px; font-size: 16px; text-decoration: underline; }
.titel { font-size: clamp(44px, 11vw, 68px); font-weight: 700; line-height: 1.0; letter-spacing: 0.03em; margin-top: 2px; color: var(--gold); text-shadow: 0 4px 0 #8a5a08, 0 8px 0 rgba(0, 0, 0, 0.35); }
.titel span { display: block; }
.titel { cursor: pointer; }
.dev-credit { display: none; text-align: center; color: var(--gold); font: 700 13px system-ui, -apple-system, sans-serif; margin: 4px 0 0; letter-spacing: 0.04em; }
.dev-credit.an { display: block; animation: devrein 0.4s ease; }
@keyframes devrein { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.muenzreihe { display: flex; justify-content: center; gap: 8px; margin: 10px 0 14px; min-height: 44px; }
.muenzreihe .mz { width: 40px; height: 40px; animation: huepfen 1.6s steps(6) infinite; }
.levelgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.lv-knopf { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--knopf); border: 3px solid var(--knopf-rand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px; }
.lv-knopf b { font-size: 20px; }
.lv-knopf .st { display: flex; gap: 1px; }
.lv-knopf .st i { width: 13px; height: 13px; display: block; fill: #4a536a; }
.lv-knopf .st i.an { fill: var(--gold); }
.lv-knopf .st svg { width: 13px; height: 13px; display: block; }
.lv-knopf.zu { opacity: 0.45; cursor: default; }
.lv-knopf.zu .st svg { width: 14px; height: 14px; color: var(--leise); }
.lv-knopf.boss { border-color: var(--gold); }
.lv-knopf .kr { position: absolute; top: -10px; width: 20px; height: 20px; }
.lv-knopf .kr svg { width: 20px; height: 20px; }
.lv-knopf.jetzt { background: var(--blau-dunkel); }
.werkliste { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.werk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--panel-dunkel); border: 2px solid #3a4560; }
.werk > div { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.werk small { color: var(--leise); font-family: system-ui, -apple-system, sans-serif; }
.werk .punkte { display: flex; gap: 3px; }
.werk .punkte i { width: 9px; height: 9px; display: block; background: #3a4560; border-radius: 2px; }
.werk .punkte i.an { background: var(--gold); }
/* Preis in Diamanten: dunkler Knopf, damit das hellblaue Diamant-Symbol zu sehen ist (vorher war der Knopf genauso
   hellblau wie der Diamant – übrig blieben nur ein paar Striche, Darius: „Was soll das für eine Währung sein?“) */
.kaufw { flex: 0 0 auto; padding: 8px 13px; border-radius: 10px; border: 2px solid #7fd7ff; background: #123049; color: #e8f8ff; font-weight: 700; display: flex; align-items: center; gap: 6px; font-size: 17px; }
.kaufw .i-dia { width: 20px; height: 20px; }
.kaufw.zuteuer { background: #4a536a; border-color: #2c3346; color: #b8c1d4; }
.kaufw:disabled { background: #24543a; border-color: #173826; color: var(--gruen); }
.grosse-sterne { display: flex; justify-content: center; gap: 10px; margin: 10px 0; }
.grosse-sterne i { width: 64px; height: 64px; display: block; fill: #3a4256; transform: scale(0.4); opacity: 0; animation: sternPop 0.4s steps(4) forwards; }
.grosse-sterne i.an { fill: var(--gold); }
.grosse-sterne svg { width: 64px; height: 64px; }
.plus { color: #cdefff; }
.neu-marke { display: inline-block; margin: 0 0 6px; padding: 4px 12px; border-radius: 8px; background: var(--blau); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.lader { width: 46px; height: 46px; margin: 4px auto 12px; border-radius: 50%; border: 5px solid rgba(255, 207, 74, 0.25); border-top-color: var(--gold); animation: drehen 0.9s steps(8) infinite; }
.wackeln { animation: wackeln 0.3s steps(6); }
.puls { animation: puls 0.3s steps(3); }
@keyframes wackeln { 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
@keyframes puls { 50% { scale: 1.08; filter: brightness(1.25); } }
@keyframes einblenden { from { opacity: 0; } }
@keyframes aufploppen { from { transform: scale(0.9); } }
@keyframes sternPop { to { transform: scale(1); opacity: 1; } }
@keyframes huepfen { 50% { transform: translateY(-6px); } }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01s !important; } }

/* ---------- Online: Anmelden, Bestenliste, Duell ---------- */
.feld { display: block; width: 100%; box-sizing: border-box; margin: 8px 0; padding: 12px 14px; border-radius: 12px; border: 3px solid var(--knopf-rand); background: #0d1119; color: #fff; font: 600 17px system-ui, -apple-system, sans-serif; }
.feld:focus { outline: none; border-color: var(--gold); }
.feld.code { text-align: center; font: 700 26px "Pixelify Sans", system-ui, sans-serif; letter-spacing: 0.3em; text-transform: uppercase; margin: 0; }
.gross.google { background: #fff; color: #1f1f1f; border-color: #c9ced8; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: system-ui, -apple-system, sans-serif; }
.g-ico { width: 22px !important; height: 22px !important; }
.trenner { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; color: var(--leise); font: 13px system-ui, -apple-system, sans-serif; }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 2px; background: var(--knopf-rand); opacity: 0.6; }
.fehler { min-height: 1.2em; margin: 6px 0; color: #ff9b8a; font: 600 14px system-ui, -apple-system, sans-serif; }
.konto-zeile { margin: 14px 0 0; color: var(--leise); font: 14px system-ui, -apple-system, sans-serif; }
.konto-zeile b { color: #fff; }
.leise.klein { font-size: 14px; padding: 4px; }
.code-zeile { display: flex; gap: 10px; align-items: stretch; }
.code-zeile .feld { flex: 1 1 0; }
.code-zeile .gross { flex: 0 0 auto; width: auto; margin: 0; }
.raumcode { margin: 6px auto 4px; padding: 10px 18px; display: inline-block; border-radius: 14px; background: #0d1119; border: 3px dashed var(--gold); color: var(--gold); font: 700 46px "Pixelify Sans", system-ui, sans-serif; letter-spacing: 0.25em; }
.d-status { font: 17px system-ui, -apple-system, sans-serif; margin: 10px 0; }
.countdown { font: 700 96px "Pixelify Sans", system-ui, sans-serif; color: var(--gold); margin: 6px 0; }
.duell-ergebnis { display: flex; gap: 12px; margin: 12px 0; }
.duell-ergebnis > div { flex: 1 1 0; padding: 12px; border-radius: 12px; background: #0d1119; border: 3px solid var(--knopf-rand); display: flex; flex-direction: column; gap: 6px; }
.duell-ergebnis > div.vorne { border-color: var(--gold); }
.duell-ergebnis span { font: 700 22px "Pixelify Sans", system-ui, sans-serif; color: var(--gold); }
.besten { text-align: left; max-height: 52vh; overflow-y: auto; margin: 6px 0 10px; }
.b-zeile { display: grid; grid-template-columns: 2.2em 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font: 15px system-ui, -apple-system, sans-serif; }
.b-zeile:nth-child(odd) { background: rgba(255, 255, 255, 0.04); }
.b-zeile.ich { background: rgba(246, 196, 83, 0.18); outline: 2px solid rgba(246, 196, 83, 0.6); }
.b-platz { font-weight: 800; color: var(--gold); text-align: right; }
.b-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-lv { color: var(--leise); font-size: 13px; }
.b-p { font-weight: 800; }
#level-name svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
/* ---------- Bestenliste je Level, Weiterspielen nach dem Ziel (Darius, 17.10.2026) ---------- */
#zeit-text { display: contents; }
.level-box #zeit-zeile { flex-wrap: wrap; row-gap: 4px; }   /* schmal (Handy): „Level 2 ▶“ rutscht in eine eigene Zeile */
#knopf-naechstes { margin: -2px 0 0; padding: 3px 11px; min-height: 26px; border-radius: 99px; border: 2px solid #7a5410; background: var(--gold); color: #2a1c02;
  font: 800 13px system-ui, -apple-system, "Segoe UI", sans-serif; text-shadow: none; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
#knopf-naechstes[hidden] { display: none; }
#knopf-naechstes:active { transform: translateY(1px); }
.lay-seite #knopf-naechstes { align-self: flex-start; font-size: 15px; padding: 5px 14px; }
.balken.ziel #balken-fuell { background: repeating-linear-gradient(90deg, #63e07a 0 10px, #4cc765 10px 12px); }
.haken-ziel { color: var(--gruen); }
.lb-kopf { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 2px 0 12px; font-size: 20px; }
.lb-kopf .rund:disabled { opacity: 0.35; cursor: default; }
.lb-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.lb-spalten section { min-width: 0; }
.lb-spalten h3 { margin: 0; font-size: 17px; }
.lb-was { margin: 2px 0 6px; font: 13px system-ui, -apple-system, sans-serif; color: var(--leise); }
.besten.lb { max-height: 40vh; margin: 0; }
.lb-zeile { grid-template-columns: 2.2em minmax(0, 1fr) auto; }
.lb-mini { max-width: 420px; margin: 0 auto 4px; text-align: left; }
.lb-mini .klein-titel { margin: 2px 0 4px; text-align: center; }
.lb-mini .leise { display: block; margin: 2px auto 0; }
.unter.klein { font-size: 14px; margin: 6px 0 10px; }
@media (max-width: 560px) { .lb-spalten { grid-template-columns: 1fr; gap: 10px; } .besten.lb { max-height: 26vh; } }
.im-duell .balken { background: #2b5fd9; }
.im-duell #balken-fuell { background: var(--gold); }
#gegner-box { position: absolute; z-index: 6; display: none; padding: 4px; border-radius: 10px; background: rgba(11, 15, 24, 0.85); border: 2px solid #2b5fd9; pointer-events: none; }
#gegner-box.an { display: block; }
#gegner-box.klein { opacity: 0.92; }
#gegner-titel { font: 700 12px system-ui, -apple-system, sans-serif; color: #cfe0ff; text-align: center; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gegner-leinwand { display: block; border-radius: 6px; }
.gross:disabled { opacity: 0.45; cursor: default; }

/* Hinweis, wenn ein Fehler das Spiel anhält (statt still einzufrieren) */
#fehler-hinweis { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 9999; width: min(520px, calc(100vw - 32px)); box-sizing: border-box; padding: 14px 16px; border-radius: 14px; border: 3px solid #ff8a7a; background: #2a1215; color: #ffe9e5; font: 15px/1.4 system-ui, -apple-system, sans-serif; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
#fehler-hinweis span { font-size: 12px; opacity: 0.8; word-break: break-word; }
#fehler-hinweis .gross { margin: 4px 0 0; }

/* ======================================================================================================
   Designs (Darius, 17.10.2026): „Fabrik“ ist alles oben. Neon, Hell und Gold nach seinen Vorlagen – runde Schrift
   (Nunito), weiche Karten, Knöpfe als Spalte rechts (lay-rechts, im Querformat lay-seite).
   ====================================================================================================== */
body[data-design="neon"] { --bg: #0b0c0f; --panel: #1a1d24; --panel-rand: #343a45; --panel-dunkel: #121418; --text: #f3f5f8; --leise: #a3abb8;
  --gold: #ffbf3c; --gold-hell: #ffe2a0; --knopf: #1d2129; --knopf-rand: #3a414d; --akzent: #ff8a1e; --blau: #ff8a1e; --blau-dunkel: #6b3a10; }
body[data-design="hell"] { --bg: #e4ebf4; --panel: #ffffff; --panel-rand: #d3dde9; --panel-dunkel: #eef3f9; --text: #1d2a3b; --leise: #5f6f86;
  --gold: #ffc531; --gold-hell: #ffe08a; --knopf: #f4f7fb; --knopf-rand: #d3dde9; --akzent: #2b74e8; --blau: #2b74e8; --blau-dunkel: #cfe0fa; --gruen: #12a35c; color-scheme: light; }
body[data-design="gold"] { --bg: #0a0b18; --panel: #1b1e3c; --panel-rand: #c9a44c; --panel-dunkel: #12142b; --text: #f7f1e3; --leise: #bdb6a3;
  --gold: #efc35a; --gold-hell: #fff0b8; --knopf: #1d2042; --knopf-rand: #8a7436; --akzent: #efc35a; --blau: #c9a44c; --blau-dunkel: #3a3260; }

.design-neu { --pixel: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; }
.design-neu, .design-neu button { font-weight: 800; }
.design-neu #geld, .design-neu #dia, .design-neu #balken-text, .design-neu #zeit-zeile, .design-neu .kauf .preis, .design-neu .kauf .txt small,
.design-neu .schild, .design-neu #energie-zahl, .design-neu .lv-knopf b, .design-neu .kaufw { font-family: "Nunito", system-ui, sans-serif; font-weight: 900; }
.design-neu .feld.code, .design-neu .raumcode, .design-neu .countdown, .design-neu .duell-ergebnis span { font-family: "Nunito", system-ui, sans-serif; font-weight: 900; }
.design-neu .overlay.offen { animation: einblenden 0.18s ease-out; }
.design-neu .karte { border-width: 2px; border-radius: 22px; animation: aufploppen 0.2s ease-out; }
.design-neu .karte h2 { font-weight: 900; letter-spacing: 0; }
.design-neu .gross { border-width: 2px; border-radius: 14px; }
.design-neu .rund { border-width: 2px; border-radius: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.design-neu #geld, .design-neu #dia { border-width: 2px; border-radius: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); }
.design-neu .balken { border-width: 2px; border-radius: 10px; }
.design-neu #balken-fuell { background: linear-gradient(180deg, #ffd56a, #f4a81c); transition: width 0.3s ease; }
.design-neu #level-name { font-weight: 900; letter-spacing: 0; }
.design-neu .kauf { border-width: 2px; border-radius: 18px; }
.design-neu .kauf:active { transform: translateY(1px) scale(0.98); }
.design-neu .kauf .preis { border-radius: 10px; }
.design-neu .schild { border-width: 2px; border-radius: 10px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); }
.design-neu .lv-knopf { border-width: 2px; border-radius: 14px; }
.design-neu #tipp-hinweis { border-width: 2px; border-radius: 14px; }
.design-neu .titel { font-weight: 900; letter-spacing: 0; }
.design-neu #energie .muenzknopf { border-width: 2px; font-weight: 900; }

/* Neon: dunkle Karten mit oranger Leuchtkante links, dunkle Preis-Pillen */
body[data-design="neon"] .overlay { background: rgba(4, 5, 7, 0.72); }
body[data-design="neon"] .karte { background: linear-gradient(180deg, #1c2027, #14161b); box-shadow: 0 0 0 1px rgba(255, 138, 30, 0.12), 0 22px 44px rgba(0, 0, 0, 0.6); }
body[data-design="neon"] .kauf { background: linear-gradient(180deg, #1f232b, #15181e); box-shadow: inset 4px 0 0 var(--akzent), 0 6px 14px rgba(0, 0, 0, 0.45); }
body[data-design="neon"] .kauf .ico { color: var(--akzent); filter: drop-shadow(0 0 4px rgba(255, 138, 30, 0.6)); }
body[data-design="neon"] .kauf .preis { background: #252a33; border: 2px solid #4a5260; color: #f3f5f8; box-shadow: none; }
body[data-design="neon"] .kauf .preis::before { color: var(--gold); }
body[data-design="neon"] .kauf.zuteuer .preis { background: #1b1e24; border-color: #2d323b; color: #7d8592; }
body[data-design="neon"] .rund { background: #1d2129; border-color: #3a414d; }
body[data-design="neon"] #geld, body[data-design="neon"] #dia { background: #171a20; border-color: #343a45; }
body[data-design="neon"] .balken { background: #0f1114; border-color: #3a414d; }
body[data-design="neon"] .schild { background: #171a20; border-color: #4a5260; }
body[data-design="neon"] .schild.kaufen { background: #3a2410; border-color: var(--akzent); }
body[data-design="neon"] .gross { background: #1f232b; border-color: #3a414d; }
body[data-design="neon"] .gross.haupt, body[data-design="gold"] .gross.haupt, body[data-design="hell"] .gross.haupt { background: linear-gradient(180deg, #ffd25e, #f4a81c); border-color: #b67a08; color: #2a1c02; }
body[data-design="neon"] .feld { background: #0f1114; }

/* Hell: weiße Karten, blaue Symbole und Preise, dunkle Schrift */
body[data-design="hell"] .overlay { background: rgba(28, 52, 92, 0.38); }
body[data-design="hell"] .karte { background: #ffffff; color: var(--text); box-shadow: 0 22px 48px rgba(28, 52, 92, 0.28); }
body[data-design="hell"] .kauf { background: #ffffff; color: var(--text); box-shadow: 0 6px 16px rgba(40, 70, 120, 0.16); }
body[data-design="hell"] .kauf .ico { color: var(--akzent); }
body[data-design="hell"] .kauf .preis { background: var(--akzent); border: none; color: #fff; box-shadow: none; }
body[data-design="hell"] .kauf .preis::before { color: #fff; }
body[data-design="hell"] .kauf.zuteuer .preis { background: #b7c4d6; color: #fff; }
body[data-design="hell"] .kauf.max .preis { background: #d8f4e6; color: #12a35c; }
body[data-design="hell"] .rund { background: var(--akzent); border-color: var(--akzent); color: #fff; }
body[data-design="hell"] #geld, body[data-design="hell"] #dia { background: #ffffff; border-color: #d3dde9; color: var(--text); box-shadow: 0 4px 12px rgba(40, 70, 120, 0.14); }
body[data-design="hell"] #dia { color: #2a5d9e; }
body[data-design="hell"] #level-name, body[data-design="hell"] #zeit-zeile, body[data-design="hell"] #bonus { text-shadow: none; color: var(--text); }
body[data-design="hell"] #zeit-zeile { color: #4d5d73; }
body[data-design="hell"] #bonus { color: var(--gruen); }
body[data-design="hell"] .balken { background: #21406e; border-color: #21406e; }
body[data-design="hell"] .schild { background: #1f5fc4; border-color: #a9c8f5; color: #fff; }
body[data-design="hell"] .schild .p::before { color: #ffd45a; }
body[data-design="hell"] .gross { background: #f2f6fb; border-color: #d3dde9; color: var(--text); }
body[data-design="hell"] .leise, body[data-design="hell"] .unter, body[data-design="hell"] .fuss, body[data-design="hell"] .konto-zeile { color: #5f6f86; }
body[data-design="hell"] .konto-zeile b { color: var(--text); }
body[data-design="hell"] .feld { background: #f4f7fb; border-color: #c9d5e5; color: var(--text); }
body[data-design="hell"] #tipp-hinweis { background: #ffffff; color: var(--text); }
body[data-design="hell"] #tipp-hinweis::after { background: #ffffff; }
body[data-design="hell"] .lv-knopf .st i { fill: #c5d0de; }
body[data-design="hell"] .b-zeile:nth-child(odd) { background: rgba(28, 52, 92, 0.05); }
body[data-design="hell"] .raumcode, body[data-design="hell"] .duell-ergebnis > div { background: #f4f7fb; }
body[data-design="hell"] .raumcode, body[data-design="hell"] .titel { color: #e0a20a; }
body[data-design="hell"] .werk { background: #f4f7fb; border-color: #d3dde9; }
body[data-design="hell"] .kaufw { background: #1f5fc4; border-color: #1f5fc4; color: #fff; }
body[data-design="hell"] #gegner-box { background: rgba(255, 255, 255, 0.94); }
body[data-design="hell"] #gegner-titel { color: var(--text); }
body[data-design="hell"] .lv-knopf.jetzt { background: #dbe8fb; }

/* Gold: nachtblaue Karten mit goldenem Rand, goldene Preise */
body[data-design="gold"] .overlay { background: rgba(4, 5, 14, 0.72); }
body[data-design="gold"] .karte { background: linear-gradient(180deg, #20234a, #15172f); box-shadow: inset 0 0 0 1px rgba(255, 230, 160, 0.12), 0 22px 44px rgba(0, 0, 0, 0.6); }
body[data-design="gold"] .kauf { background: linear-gradient(180deg, #23264d, #171a36); box-shadow: inset 0 0 0 1px rgba(239, 195, 90, 0.22), 0 6px 16px rgba(0, 0, 0, 0.5); }
body[data-design="gold"] .kauf .ico { color: var(--gold); filter: drop-shadow(0 0 4px rgba(239, 195, 90, 0.45)); }
body[data-design="gold"] .kauf .preis { background: linear-gradient(180deg, #f7d683, #d6a138); border: 1px solid #7a5a12; color: #2a1c02; }
body[data-design="gold"] .kauf.zuteuer .preis { background: #3a3d5e; border-color: #2a2c48; color: #a9a8bb; }
body[data-design="gold"] .rund { background: #1d2042; border-color: var(--panel-rand); color: var(--gold); }
body[data-design="gold"] #geld, body[data-design="gold"] #dia { background: #12142b; border-color: var(--panel-rand); }
body[data-design="gold"] .balken { background: #0e1024; border-color: var(--panel-rand); }
body[data-design="gold"] .schild { background: #12142b; border-color: var(--panel-rand); }
body[data-design="gold"] .schild.kaufen { background: #3a3260; border-color: var(--gold); }
body[data-design="gold"] .gross { background: #1d2042; border-color: var(--knopf-rand); }
body[data-design="gold"] .feld { background: #0e1024; border-color: var(--knopf-rand); }

/* C) neue Designs hochkant: Anzeige oben links, Knöpfe als Spalte rechts (wie in Darius' Vorlagen) */
.lay-rechts #info { left: calc(8px + var(--sa-links)); right: calc(var(--spalte) + 18px + var(--sa-rechts)); top: calc(8px + var(--sa-oben)); height: calc(var(--leiste-oben) - 10px); }
.lay-rechts #shop { right: calc(8px + var(--sa-rechts)); top: calc(8px + var(--sa-oben)); width: var(--spalte); flex-direction: column; gap: 10px; }
.lay-rechts .kauf { flex-direction: column; align-items: stretch; justify-content: center; gap: 5px; padding: 12px 8px 10px; text-align: center; }
.lay-rechts .kauf .ico { width: 36px; height: 36px; flex: 0 0 36px; align-self: center; }
.lay-rechts .kauf .ico svg { width: 32px; height: 32px; }
.lay-rechts .kauf .txt { align-items: center; text-align: center; }
.lay-rechts .kauf .txt b { font-size: 17px; }
.lay-rechts .kauf .txt small { font-size: 13px; white-space: normal; }
.lay-rechts .kauf .preis { text-align: center; }
.lay-rechts #energie, .design-neu.lay-seite #energie { flex-direction: column; gap: 6px; padding: 14px 8px 12px; border-radius: 18px; background: linear-gradient(180deg, #ffd25e, #f2a514); border: 2px solid #b67a08; color: #3a2600; font-size: 15px; font-weight: 900; line-height: 1.15; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
.lay-rechts #energie .muenzknopf, .design-neu.lay-seite #energie .muenzknopf { width: 54px; height: 54px; border-color: #9a6406; background: radial-gradient(circle at 35% 30%, #fff6c8, #ffd04f 48%, #c8870c); }
body[data-design="hell"].lay-rechts #energie { box-shadow: 0 8px 18px rgba(40, 70, 120, 0.25); }
.lay-rechts #energie.leer, .design-neu.lay-seite #energie.leer { filter: saturate(0.5) brightness(0.85); }
.lay-rechts #tipp-hinweis { left: 0; right: 0; top: calc(100% + 12px); bottom: auto; width: auto; max-width: none; }
.lay-rechts #tipp-hinweis::after { left: calc(50% - 6px); top: -8px; border-left-width: 2px; border-top-width: 2px; }
@media (max-width: 560px) {
  .lay-rechts #shop { gap: 7px; }
  .lay-rechts .kauf { padding: 8px 5px 7px; gap: 3px; border-radius: 14px; }
  .lay-rechts .kauf .ico { width: 26px; height: 26px; flex-basis: 26px; }
  .lay-rechts .kauf .ico svg { width: 24px; height: 24px; }
  .lay-rechts .kauf .txt b { font-size: 13px; }
  .lay-rechts .kauf .txt small { font-size: 10.5px; }
  .lay-rechts .kauf .preis { font-size: 12px; padding: 4px 3px; }
  .lay-rechts #energie { font-size: 12px; padding: 9px 4px 8px; }
  .lay-rechts #energie .muenzknopf { width: 42px; height: 42px; font-size: 18px; }
  .lay-rechts #info { gap: 6px; }
  .lay-rechts .geld-box { gap: 4px; }
  .lay-rechts #geld { font-size: 15px; padding: 4px 8px; }
  .lay-rechts #dia { font-size: 13px; padding: 3px 8px; }
  .lay-rechts #tresor { font-size: 12px; padding: 3px 8px; }
  .lay-rechts .balken { max-width: 170px; }
  .lay-rechts #zeit-zeile { gap: 8px; }
  .lay-rechts .rund { width: 42px; height: 42px; flex-basis: 42px; }
}

/* Design-Wahl im Pause-Menü */
.klein-titel { margin: 14px 0 6px; font-size: 15px; font-weight: 700; color: var(--leise); }
.design-wahl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 8px; }
.d-knopf { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px 9px; border-radius: 12px; background: var(--knopf); border: 3px solid var(--knopf-rand); color: var(--text); font-size: 14px; font-weight: 700; }
.d-knopf.an { border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.d-farbe { width: 46px; height: 32px; border-radius: 9px; border: 3px solid; display: grid; place-items: center; }
.d-farbe i { width: 18px; height: 6px; border-radius: 3px; display: block; }

/* Tresor (18.10.2026) wie die Diamanten-Anzeige, je Design */
.design-neu #tresor { border-width: 2px; border-radius: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); }
body[data-design="neon"] #tresor { background: #171a20; border-color: #343a45; }
body[data-design="hell"] #tresor { background: #ffffff; border-color: #d3dde9; color: #a8740e; box-shadow: 0 4px 12px rgba(40, 70, 120, 0.14); }
body[data-design="gold"] #tresor { background: #12142b; border-color: var(--panel-rand); }

.unter .i-tresor { width: 14px; height: 14px; vertical-align: -2px; }

/* Gesperrt bis Level X (18.10.2026): statt des Preises „ab Level 20“, Knopf etwas blasser */
#shop .kauf.gesperrt .preis { background: #3a4152; border-color: #262c3a; color: #cfd6e3; font-size: 11.5px; box-shadow: none; }
#shop .kauf.gesperrt .preis::before { content: ""; }
#shop .kauf.gesperrt .ico, #shop .kauf.gesperrt .txt { opacity: 0.62; }
body[data-design="neon"] #shop .kauf.gesperrt .preis { background: #1b1e24; border-color: #2d323b; color: #9aa2ae; }
body[data-design="hell"] #shop .kauf.gesperrt .preis { background: #e6ecf4; border: none; color: #5d6f8a; }
body[data-design="gold"] #shop .kauf.gesperrt .preis { background: #2c2f52; border-color: #2a2c48; color: #c4bfd8; }
.neu-frei { color: var(--gruen); font-weight: 800; }
body[data-design="hell"] .neu-frei { color: #12a35c; }

/* Pflanzen rund um die Maschine (18.10.2026, Neon und Gold): hinten neben der Maschine, vorne nur auf dem Rahmen */
#deko-hinten, #deko-vorne { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#deko-hinten { z-index: 0; }
#leinwand { z-index: 1; }
#deko-vorne { z-index: 3; }
.pflanze { position: absolute; display: block; max-width: none; opacity: 0; transition: opacity 0.5s; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.pflanze.da { opacity: 1; }

/* Level-Form (18.10.2026): Auswahl im Menü, breite Level in der Levelwahl markiert */
.form-wahl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 4px; }
.f-knopf { padding: 9px 4px; border-radius: 10px; background: var(--knopf); border: 3px solid var(--knopf-rand); color: var(--text); font-size: 13px; font-weight: 700; }
.f-knopf.an { border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.lv-knopf.breit { position: relative; }
.lv-knopf.breit::after { content: "breit"; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); font-size: 9px; font-weight: 800; letter-spacing: 0.04em; color: var(--gold); opacity: 0.9; }
@media (max-width: 420px) { .f-knopf { font-size: 11.5px; padding: 8px 2px; } }

/* Mehrspieler (18.10.2026): Modus-Wahl, Spieler im Raum, Karten der Mitspieler im Spiel, Rangliste */
.modus-wahl { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 2px; }
.modus-knopf { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; margin: 0; padding: 10px 14px; }
.modus-knopf b { font-size: 1.05em; }
.modus-knopf small { font: 600 12px system-ui, -apple-system, sans-serif; opacity: 0.75; white-space: normal; }
.spieler-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 4px; }
.sp-zeile { padding: 7px 10px; border-radius: 10px; background: #0d1119; border: 2px solid var(--knopf-rand); font: 700 14px system-ui, -apple-system, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-zeile.frei { opacity: 0.45; font-weight: 500; border-style: dashed; }
.sp-zeile.ich { border-color: var(--gold); }
#mitspieler-box { position: absolute; z-index: 6; display: none; padding: 6px 6px 4px; border-radius: 10px; background: rgba(11, 15, 24, 0.88); border: 2px solid #2b5fd9; font: 600 13px system-ui, -apple-system, sans-serif; color: #e8eefc; pointer-events: none; }
#mitspieler-box.an { display: block; }
#mitspieler-box.ueber { opacity: 0.94; }
.ms-kopf { font-weight: 800; font-size: 12px; color: #cfe0ff; text-align: center; margin: 0 0 4px; white-space: nowrap; }
.ms-zeile { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 6px; min-height: 26px; }
.ms-zeile.ich { background: rgba(255, 210, 74, 0.16); }
.ms-zeile.raus { opacity: 0.45; }
.ms-platz { width: 1.6em; text-align: right; opacity: 0.8; }
.ms-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-p { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms-hilfe { pointer-events: auto; flex: 0 0 auto; width: 30px; height: 26px; padding: 0; border-radius: 8px; border: 2px solid #2b5fd9; background: #17223a; font-size: 15px; line-height: 1; cursor: pointer; }
.ms-hilfe:active { transform: scale(0.94); }
.rangliste { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.rang-zeile { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #0d1119; border: 3px solid var(--knopf-rand); font: 700 15px system-ui, -apple-system, sans-serif; }
.rang-zeile.erster { border-color: var(--gold); }
.rang-zeile.ich { background: #1d2333; }
.rang-platz { width: 1.8em; opacity: 0.8; }
.rang-name { flex: 1 1 auto; text-align: left; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rang-p { white-space: nowrap; font-variant-numeric: tabular-nums; }
body[data-design="hell"] #mitspieler-box { background: rgba(255, 255, 255, 0.95); color: var(--text); }
body[data-design="hell"] .ms-kopf { color: var(--text); }
body[data-design="hell"] .ms-hilfe { background: #eef3ff; }
body[data-design="hell"] .sp-zeile, body[data-design="hell"] .rang-zeile { background: #f3f6fb; }
body[data-design="hell"] .rang-zeile.ich { background: #e5ecfa; }
#mitspieler-box.klein { padding: 4px 4px 2px; font-size: 11px; }
#mitspieler-box.klein .ms-kopf { font-size: 10.5px; margin-bottom: 2px; }
#mitspieler-box.klein .ms-zeile { min-height: 19px; padding: 0 3px; gap: 4px; }
#mitspieler-box.klein .ms-hilfe { width: 24px; height: 19px; font-size: 12px; }
#mitspieler-box.ueber { opacity: 0.9; }
/* Geräte-Kette (21.10.2026): Abschnitts-Nummer je Gerät in der Lobby */
.sp-abschnitt { display: block; font: 700 10px system-ui, -apple-system, sans-serif; color: var(--gold); opacity: 0.85; margin-bottom: 1px; }
.kd { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 12px 0 8px; }
.kd.stapel { flex-direction: column; }
.kd.reihe { flex-direction: row; flex-wrap: wrap; }
.kd-box { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 80px; padding: 8px 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.kd-box.ich { border-color: var(--gold); background: rgba(240,190,70,0.16); }
.kd-box b { font: 800 18px system-ui, -apple-system, sans-serif; color: var(--gold); line-height: 1; }
.kd-box span { font: 600 12px system-ui, -apple-system, sans-serif; }
.kd-box em { font-style: normal; font: 700 15px system-ui, -apple-system, sans-serif; color: var(--gold); opacity: 0.9; }
.kd-move { display: flex; gap: 6px; margin-top: 4px; }
.kd-mv { width: 30px; height: 30px; border-radius: 9px; border: 2px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: inherit; font: 700 15px system-ui, -apple-system, sans-serif; cursor: pointer; line-height: 1; }
.kd-mv:disabled { opacity: 0.3; cursor: default; }
.kasse-wahl { display: flex; gap: 8px; justify-content: center; margin: 10px 0 4px; }
.kasse-knopf { flex: 1; max-width: 160px; padding: 9px 10px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: inherit; font: 700 13px system-ui, -apple-system, sans-serif; cursor: pointer; }
.kasse-knopf.an { border-color: var(--gold); background: rgba(240,190,70,0.18); }
.tr-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.tr-p { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: inherit; font: 700 15px system-ui, -apple-system, sans-serif; cursor: pointer; }
.tr-p small { font: 600 12px system-ui, -apple-system, sans-serif; opacity: 0.8; }
.tr-p.an { border-color: var(--gold); background: rgba(240,190,70,0.18); }
.tr-verify { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.05); }
.tr-vtext { text-align: left; font: 600 14px system-ui, -apple-system, sans-serif; line-height: 1.3; }
.tr-finger { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--gold); background: rgba(240,190,70,0.12); color: var(--gold); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: all 0.25s; }
.tr-finger svg { width: 32px; height: 32px; }
.tr-finger.ok { background: #2ecc71; border-color: #2ecc71; color: #fff; transform: scale(1.08); }


/* loading text in the right language from the very first moment */
html[lang="en"] .cdf-de, html[lang="de"] .cdf-en { display: none; }
/* CrazyGames edition: no online features */
#p-besten, #g-besten, #s-besten, #s-duell, .gross.bald, #g-liste { display: none !important; }
html[lang="en"] .lv-knopf.breit::after { content: "wide"; }
#s-sprache { min-width: 0; }
/* first visit: pulsing tap marker on the machine */
#cdf-tap { position: fixed; z-index: 30; width: 0; height: 0; pointer-events: none; }
#cdf-tap i { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; box-sizing: border-box; border-radius: 50%;
  border: 4px solid rgba(255, 214, 90, .95); box-shadow: 0 0 18px rgba(255, 190, 60, .6); animation: cdfRing 1.4s ease-out infinite; }
#cdf-tap i + i { animation-delay: .7s; }
#cdf-tap b { position: absolute; left: -90px; width: 180px; top: 52px; text-align: center; font: 900 26px "Nunito", system-ui, sans-serif;
  color: #ffd84f; -webkit-text-stroke: 1.5px #5a3a04; paint-order: stroke fill; text-shadow: 0 3px 0 #5a3a04, 0 6px 10px rgba(0,0,0,.5);
  animation: cdfBob 1.4s ease-in-out infinite; }
@keyframes cdfRing { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes cdfBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* welcome back: daily bonus streak */
.cdf-serie { display: flex; justify-content: center; gap: 6px; margin: 4px 0 8px; }
.cdf-serie i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800;
  font-size: 14px; background: rgba(255,255,255,.08); color: var(--leise); border: 2px solid rgba(255,255,255,.18); }
.cdf-serie i.da { background: #2f6b43; color: #fff; border-color: #5fd38a; }
.cdf-serie i.heute { background: linear-gradient(180deg, #ffe27a, #f2a514); color: #3a2600; border-color: #b67a08; transform: scale(1.18); }
.cdf-plus { color: #8dffbd; }
.cdf-tag { margin-top: 12px; }
.cdf-morgen { color: #ffd86b; font-weight: 700; }
/* Full Launch ads: blocking layer while an ad is requested / shown (text only after a moment, so a quick "no ad"
   does not flash), and the video mark on rewarded buttons */
#cdf-werbung { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; }
#cdf-werbung.an { display: flex; animation: cdfWerbAn .25s .35s both; }
#cdf-werbung b { opacity: 0; animation: cdfWerbText .25s .35s both; font: 800 20px "Nunito", system-ui, sans-serif; color: #fff;
  background: rgba(20, 14, 4, .9); padding: 14px 22px; border-radius: 14px; border: 2px solid rgba(255, 214, 90, .6); }
@keyframes cdfWerbAn { from { background: rgba(0,0,0,0); } to { background: rgba(0,0,0,.55); } }
@keyframes cdfWerbText { to { opacity: 1; } }
.cdf-video::before { content: "\25B6\FE0E"; display: inline-grid; place-items: center; width: 1.5em; height: 1.15em; margin-right: .45em;
  border-radius: .3em; background: #e8443a; color: #fff; font-size: .8em; vertical-align: .08em; }
.cdf-bonus { margin: 2px 0 0; }
#cdf-2x-info:empty { display: none; }
/* several new parts in one card */
.cdf-neu + .cdf-neu { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
/* start menu: level shape only in the pause menu (less to read before playing) */
#ov-start .klein-titel, #ov-start .form-wahl { display: none; }
/* landscape with the button column on the right: always fits the height */
@media (orientation: landscape) and (max-height: 640px) {
  .lay-rechts #shop { gap: 8px; }
  .lay-rechts .kauf { padding: 8px 6px 8px; gap: 3px; border-radius: 14px; }
  .lay-rechts .kauf .ico { width: 26px; height: 26px; flex-basis: 26px; }
  .lay-rechts .kauf .ico svg { width: 24px; height: 24px; }
  .lay-rechts .kauf .txt b { font-size: 14px; }
  .lay-rechts .kauf .txt small { font-size: 11px; }
  .lay-rechts .kauf .preis { font-size: 12px; padding: 4px 3px; }
  .lay-rechts #energie { font-size: 12px; padding: 8px 4px 8px; gap: 4px; }
  .lay-rechts #energie .muenzknopf { width: 44px; height: 44px; font-size: 19px; }
}
@media (orientation: landscape) and (max-height: 480px) {
  .lay-rechts #shop { gap: 6px; }
  .lay-rechts .kauf { padding: 6px 5px 6px; gap: 2px; }
  .lay-rechts .kauf .ico { display: none; }
  .lay-rechts .kauf .txt b { font-size: 13px; }
  .lay-rechts .kauf .txt small { font-size: 10.5px; }
  .lay-rechts #energie { flex-direction: row; justify-content: center; gap: 8px; padding: 6px 4px; }
  .lay-rechts #energie .muenzknopf { width: 38px; height: 38px; font-size: 17px; }
}
/* Pixelify Sans only ships up to 700: no faux bold, so the "C" keeps its opening */
html, body, button, input { font-synthesis-weight: none; }
/* title "COIN DROP FACTORY": chunky readable font instead of the pixel font */
.titel, .titel span { font-family: "Nunito", system-ui, sans-serif !important; font-weight: 900 !important; color: #ffcf3a !important;
  -webkit-text-stroke: 2px #6b4505; paint-order: stroke fill; letter-spacing: 0 !important; line-height: 1.02 !important;
  text-shadow: 0 5px 0 #6b4505, 0 10px 12px rgba(0,0,0,.45) !important; }

/* v9: nicer scrollbars in the menus */
.karte, .levelgitter, .werkliste { scrollbar-width: thin; scrollbar-color: rgba(255, 210, 94, .75) rgba(0, 0, 0, .18); }
.karte::-webkit-scrollbar, .levelgitter::-webkit-scrollbar, .werkliste::-webkit-scrollbar { width: 10px; }
.karte::-webkit-scrollbar-track, .levelgitter::-webkit-scrollbar-track, .werkliste::-webkit-scrollbar-track { background: rgba(0, 0, 0, .18); border-radius: 10px; margin: 14px 0; }
.karte::-webkit-scrollbar-thumb, .levelgitter::-webkit-scrollbar-thumb, .werkliste::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffd25e, #c98a14); border-radius: 10px; border: 2px solid rgba(0, 0, 0, .25); }
.karte::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffe08a, #e0a12a); }
.karte { overscroll-behavior: contain; --cdf-kbg: var(--panel); }
body[data-design="gold"] .karte { --cdf-kbg: #15172f; }
body[data-design="neon"] .karte { --cdf-kbg: #14161b; }
body[data-design="hell"] .karte { --cdf-kbg: #ffffff; }
/* v9: "Back" stays docked at the bottom of long menus */
#lw-zurueck, #w-zurueck, #lb-zurueck { position: sticky; bottom: -22px; z-index: 3; margin-bottom: 0;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 -14px 14px -4px var(--cdf-kbg), 0 14px 0 10px var(--cdf-kbg); }
body[data-design="gold"] #lw-zurueck, body[data-design="gold"] #w-zurueck, body[data-design="gold"] #lb-zurueck { background-color: #242852; }
/* v9: coin bomb (rewarded) */
.geld-box { position: relative; }
#cdf-bombe { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; font: 800 14px "Nunito", system-ui, sans-serif; color: #2a1c02;
  background: linear-gradient(180deg, #ffd25e, #f2a514); border: 2px solid #b67a08; border-radius: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); cursor: pointer; white-space: nowrap; }
#cdf-bombe[hidden] { display: none; }
#cdf-bombe:disabled { filter: saturate(.35) brightness(.8); cursor: default; }
#cdf-bombe.cdf-video::before { margin-right: .3em; }
#cdf-bombe:not(.cdf-video) { color: #f4e2b0; background: rgba(18, 20, 43, .9); border-color: var(--panel-rand); }
.lay-oben #cdf-bombe { position: absolute; right: calc(100% + 6px); bottom: 0; font-size: 13px; padding: 4px 9px; }
.lay-rechts #cdf-bombe { font-size: 12px; padding: 3px 8px; }
#cdf-bombe-info { position: fixed; z-index: 30; left: 50%; top: 18%; transform: translateX(-50%); pointer-events: none; font: 800 20px "Nunito", system-ui, sans-serif;
  color: #fff; background: rgba(20, 14, 4, .88); border: 2px solid rgba(255, 214, 90, .6); padding: 10px 18px; border-radius: 14px; opacity: 0; transition: opacity .3s; }
#cdf-bombe-info.an { opacity: 1; }
