/* SPIELWERK – Level 3 „Das Pixelversum“ (seit 0.9.0) */
.pv-modal .pv-intro { margin-bottom: 12px; }
.pv-zaehler { font-family: monospace; color: #5fb8ff; font-size: .95em; margin-bottom: 6px; }
.pv-frage { font-size: 1.15em; line-height: 1.45; margin: 6px 0 14px; padding: 12px 16px; border-radius: 12px; background: #5fb8ff18; border: 1px solid #5fb8ff55; }
.pv-optionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pv-opt { text-align: left; line-height: 1.35; white-space: normal; }
.pv-opt.ok { background: #5ad07a; color: #10241a; border-color: #5ad07a; }
.pv-opt.nein { opacity: .45; text-decoration: line-through; }
.pv-fb { min-height: 2.6em; margin-top: 14px; line-height: 1.5; }
.pv-fb .btn { margin-top: 10px; }
.pv-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pv-karte { background: #1a1440; color: var(--txt); border: 2px solid #5fb8ff66; border-radius: 12px; padding: 12px 14px; text-align: left; line-height: 1.4; cursor: pointer; font: inherit; }
.pv-karte:hover:not(:disabled) { border-color: #5fb8ff; transform: translateY(-2px); }
.pv-karte.ok { background: #5ad07a22; border-color: #5ad07a; opacity: .7; cursor: default; }
.pv-leiste { display: flex; gap: 8px; min-height: 40px; margin-bottom: 12px; padding: 6px 10px; border-radius: 10px; background: #0a0820; border: 1px dashed #5fb8ff66; align-items: center; }
.pv-jahr { font-family: monospace; font-weight: bold; background: #ff9f43; color: #1a0a1a; border-radius: 6px; padding: 4px 10px; }
#pv-pong { display: block; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 10px; border: 3px solid #ff9f43; background: #0a0a14; image-rendering: pixelated; outline: none; }
#pv-pongplus { text-align: center; margin-top: 8px; }
.pv-letter .pv-bst { width: 110px; height: 110px; margin: 6px auto 14px; display: grid; place-items: center; font-family: monospace; font-weight: bold; font-size: 70px; color: #1a1030; background: var(--c); border-radius: 14px; box-shadow: 0 0 40px var(--c); animation: glowP 2.5s ease-in-out infinite; }
.pv-zitter { animation: pvZitter 2.8s steps(1) infinite; }
@keyframes pvZitter { 0%, 86%, 100% { transform: translate(0, 0); } 88% { transform: translate(-4px, 1px); } 90% { transform: translate(3px, -2px); } 92% { transform: translate(-2px, 0); } 94% { transform: translate(2px, 2px); } }
.pv-farbwechsel { animation: pvFarbe 9s linear infinite; }
@keyframes pvFarbe { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
.hs.pv-planet svg { animation: floatY 6s ease-in-out infinite; transform-box: fill-box; overflow: visible; }
.hs.pv-planet:nth-of-type(2n) svg { animation-delay: -2s; }
.hs.pv-tuer svg { filter: drop-shadow(0 0 14px #5fb8ff); }
@media (prefers-reduced-motion: reduce) { .pv-zitter, .pv-farbwechsel, .hs.pv-planet svg { animation: none; } }

/* Spielestraße (0.9.1) */
.sp-brett { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0; }
.sp-feld { display: grid; place-items: center; height: 44px; border-radius: 10px; background: #2a2040; border: 2px solid #5a4a7a; font-family: monospace; font-weight: bold; }
.sp-feld.ereignis { background: #4a3a1a; border-color: #f5b83a; }
.sp-feld.ziel { background: #1a4a2a; border-color: #5ad07a; font-size: 1.3em; }
.sp-feld.hier { background: #f5b83a; color: #1a1030; border-color: #fff; box-shadow: 0 0 16px #f5b83a; transform: scale(1.08); }

/* Kinderspielfest: Pöppel-Wettlauf (0.9.1) */
.kf-bahn { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; align-items: center; margin: 10px 0; }
.kf-spur { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; }
.kf-spur span { height: 34px; border-radius: 8px; background: #2a2040; border: 2px solid #5a4a7a; display: grid; place-items: center; }
.kf-spur span.hier { background: #ff8fc8; border-color: #fff; box-shadow: 0 0 12px #ff8fc8; }
#kf-b span.hier { background: #5fb8ff; box-shadow: 0 0 12px #5fb8ff; }
.hs.sa-dunkel svg { filter: drop-shadow(0 0 6px #ffe0a0aa); }

/* Teil 3: Datensturm, Sternenkarte, Urkunde (seit 0.9.2) */
.versprechen .pv-opt.on { background: #5ad07a33; border-color: #5ad07a; box-shadow: 0 0 0 2px #5ad07a inset; }
.versprechen .pv-opt.on::before { content: '✔ '; color: #5ad07a; }
.sk-karte { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.sk-karte h4 { grid-column: 1 / -1; margin: 10px 0 0; color: var(--gold, #e7bd62); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.sk-ziel { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--c); background: #14102a; color: #fff; font: inherit; cursor: pointer; text-align: left; }
.sk-ziel i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--c) 40%, #101830); flex: none; }
.sk-ziel.ok { background: #1e2a1e; }
.sk-ziel:disabled { opacity: .4; cursor: default; }
.sk-ziel:not(:disabled):hover, .sk-ziel:focus-visible { background: #2a2050; }
.pv-urkunde { text-align: center; padding: 22px 26px; border: 6px double #e7bd62; border-radius: 14px; background: linear-gradient(#fffaf0, #f4e9d0); color: #3a2a1a; }
.pv-urkunde small { letter-spacing: .3em; text-transform: uppercase; color: #8a6a3a; }
.pv-urkunde h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 42px); margin: 8px 0; color: #5a2a8a; }
.pv-urkunde h3 { font-family: monospace; font-size: clamp(22px, 3.4vw, 36px); letter-spacing: .2em; margin: 6px 0 10px; color: #2f8a5a; }
.pv-urkunde ul { text-align: left; display: inline-block; margin: 4px auto 8px; }
.pv-unterschrift { font-size: 13px; color: #7a5a3a; font-style: italic; }
/* skitter-Minispiel (seit 0.9.2) */
.sk-wrap canvas { width: 100%; max-width: 720px; height: auto; display: block; border-radius: 10px; touch-action: none; cursor: grab; }
.sk-info { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.sk-info span[style] { border-left: 6px solid var(--c); padding-left: 6px; }
.pv-karte.wackeln { animation: kinoZittern .12s linear 4; border-color: #e8485a; }

/* Neue Rätselarten im Pixelversum (seit 0.9.3) */
.wz-zeitung, .bf-svg { width: 100%; max-width: 640px; display: block; margin: 8px auto; border-radius: 10px; }
.wz-feld, .bf-treffer, .bf-daneben { cursor: pointer; }
.wz-feld:hover { fill: #ffd23a22; }
.wz-feld.gefunden, .bf-treffer.gefunden { fill: #e8485a22; stroke: #e8485a; stroke-width: 4; }
.wz-stand, .bf-stand, .bl-stand, .mel-stand { text-align: center; font-weight: bold; }
.bf-bild { max-width: 520px; margin: 0 auto; }
.sch-liste { display: grid; gap: 8px; }
.sch-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: #1e1838; }
.sch-schalter { width: 64px; height: 34px; border-radius: 17px; border: 0; background: #5a5a6a; position: relative; cursor: pointer; flex: none; }
.sch-schalter i { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .2s; }
.sch-schalter.an { background: #5ad07a; } .sch-schalter.an i { left: 34px; }
.bl-feld { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 10px; }
.bl-blase { width: 150px; height: 150px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 30% 30%, #ffffffaa, #9ad0ff55 40%, #5fb8ff33); color: #fff; font: inherit; font-size: 14px; padding: 18px; cursor: pointer; animation: kinoSchweben 3.4s ease-in-out infinite; animation-delay: var(--d); text-shadow: 0 1px 3px #000; }
.bl-blase.plopp { animation: blPlopp .4s ease-out forwards; pointer-events: none; }
.bl-blase.wackeln { animation: kinoZittern .12s linear 4; border-color: #e8485a; }
@keyframes blPlopp { to { transform: scale(1.4); opacity: 0; } }
.fp-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.fp-karte { position: relative; padding: 14px 10px 26px; border-radius: 12px; border: 3px solid #5a5a7a; background: #1e1838; color: #fff; font: inherit; cursor: pointer; min-height: 90px; }
.fp-karte.gut { border-color: #5ad07a; background: #1e3a2a; } .fp-karte.gut i::after { content: '💚 Fairplay'; }
.fp-karte.foul { border-color: #e8485a; background: #3a1e2a; } .fp-karte.foul i::after { content: '🟥 Foul'; }
.fp-karte i { position: absolute; bottom: 4px; left: 0; right: 0; font-style: normal; font-size: 13px; }
.rb-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.rb-brett { width: 100%; max-width: 420px; background: #2a3a3a; border-radius: 12px; }
#rb-feld { flex: 1 1 300px; }
.rb-steuer { flex: 1 1 240px; display: grid; gap: 10px; }
.rb-tasten, .rb-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-tasten .btn { font-size: 24px; min-width: 56px; }
.rb-prog { min-height: 54px; padding: 8px; border-radius: 10px; background: #0a1a2a; font-size: 24px; letter-spacing: 2px; word-break: break-all; }
.ki-chat { display: grid; gap: 8px; }
.ki-zeile { display: grid; gap: 4px; }
.ki-f { justify-self: end; background: #3f8de8; color: #fff; padding: 6px 12px; border-radius: 14px 14px 2px 14px; }
.ki-a { justify-self: start; text-align: left; background: #1e3a2a; color: #fff; border: 2px solid #5ad07a; padding: 8px 12px; border-radius: 14px 14px 14px 2px; font: inherit; cursor: pointer; }
.ki-a.markiert { border-color: #e8485a; background: #3a1e2a; } .ki-a.markiert::after { content: '  ❌ falsch?'; color: #ff8fa0; }
.mel-tasten { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 10px 0; }
.mel-taste { width: 120px; height: 120px; border-radius: 50%; border: 6px solid var(--c); background: #1e1838; color: #fff; font: inherit; font-weight: bold; cursor: pointer; transition: transform .1s, background .1s; }
.mel-taste.an { background: var(--c); transform: scale(1.12); color: #1a1a2a; }
.ar-ding svg { filter: drop-shadow(0 0 8px #a993f0); }
body.reduce-motion .bl-blase { animation: none; }
/* Flip 7 und Krakel-Orakel in Björns Spielebar (seit 0.9.3) */
.f7-stand { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; padding: 6px; border-radius: 10px; background: #1e1838; }
.f7-hand { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 110px; margin: 10px 0; }
.f7-karte { width: 64px; height: 92px; border-radius: 10px; background: #fff; color: hsl(var(--h), 60%, 38%); border: 3px solid hsl(var(--h), 60%, 45%); display: grid; place-items: center; font: bold 34px Arial, sans-serif; box-shadow: 0 4px 10px #0006; animation: kinoWachsen .35s ease-out; }
.f7-karte.bust { border-color: #e8485a; background: #ffe0e4; animation: kinoZittern .12s linear 4; }
.f7-info { text-align: center; min-height: 1.4em; }
.f7-knoepfe { display: flex; gap: 10px; justify-content: center; }
.ko-runde { text-align: center; margin-bottom: 6px; }
.ko-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.ko-tafel { width: 300px; max-width: 80vw; border-radius: 12px; box-shadow: 0 4px 14px #0008; }
.ko-strich { stroke-dasharray: 600; stroke-dashoffset: 600; animation: koMalen 2.2s ease-out forwards; }
@keyframes koMalen { to { stroke-dashoffset: 0; } }
.ko-opts { display: grid; gap: 8px; min-width: 180px; }
.ko-opt.richtig { background: #2f8a5a; border-color: #5ad07a; } .ko-opt.falsch { background: #8a2a3a; border-color: #e8485a; }
body.reduce-motion .ko-strich { animation: none; stroke-dashoffset: 0; }
