/* static/spuk/spuk-einbettung.css – Woijd Spuk eingebettet in eine fremde Seite (WordPress).
   Alles unter .woid-spuk, nichts am html/body – die Homepage bleibt, was sie ist. Die Vollseiten-
   Hülle des Hubs (spuk.css) wird hier nicht geladen. Pfade relativ zur CSS-Datei. */
@font-face { font-family: 'Creepster'; src: url('schrift/Creepster-Regular.ttf') format('truetype'); font-display: swap; }
.woid-spuk { --ws-nacht: #0b1220; --ws-nacht2: #16243a; --ws-creme: #f3e9d2; --ws-gold: #d9a24a; --ws-kuerbis: #e8762b; --ws-schaum: #bfe3ef; --ws-holz2: #5e3c1a;
  position: relative; width: 100%; max-width: 480px; aspect-ratio: 9 / 15; max-height: min(78vh, 720px); min-height: 360px; margin: 0 auto; background: var(--ws-nacht); color: var(--ws-creme);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.4; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  touch-action: none; -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
.woid-spuk *, .woid-spuk *::before, .woid-spuk *::after { box-sizing: border-box; }
.woid-spuk.ws-voll { position: fixed; inset: 0; z-index: 2147483001; max-width: none; max-height: none; aspect-ratio: auto; border-radius: 0; margin: 0; }
html.woid-spuk-voll, html.woid-spuk-voll body { overflow: hidden; }
/* Hinter dem Vollbild liegt eine eigene dunkle Fläche (von der Hülle angelegt) – sonst blitzt am
   Rechner die Seite durch, und fremde Einblendungen sitzen über dem Spiel. */
.woid-spuk-hintergrund { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 0%, #17253c, #0b1220 70%); z-index: 2147483000; }

/* Am Handy hat die Fläche die Größe des Kastens (max-height oben in svh, damit die Adressleiste
   nicht hineinrechnet). Ältere Browser ohne svh behalten den vh-Wert darüber. */
@supports (height: 1svh) { .woid-spuk { max-height: min(78svh, 720px); } }

/* Am Rechner: so breit wie der Inhaltsbereich statt Handyformat – die kleine Fläche war zu leicht
   zu treffen, das echte Vollbild zu weitläufig (Michael, 23.09.2026). Vollbild ist hier deshalb
   auch kein Randlos, sondern derselbe Kasten etwas größer auf dunklem Grund. */
@media (min-width: 900px) {
  .woid-spuk { max-width: min(100%, 880px); aspect-ratio: 16 / 10; max-height: min(74vh, 620px); min-height: 420px; }
  .woid-spuk.ws-voll { inset: 0; margin: auto; width: min(1100px, 92vw); height: min(86vh, 760px); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.55); }
}

/* Fremde Einblendungen (Trusted-Shops-Siegel, Chat-Blase) liegen fest über der Seite und damit
   auch über dem Spielfeld. Auf der Spielseite sind sie weg – wie lange, sagt die Plugin-Einstellung
   „Fremde Einblendungen" (ganze Seite / nur während einer Nacht / nie). Unbekannte holt zusätzlich
   die Hülle (`stoererSammeln`); hier stehen die des Hauses. */
html.woid-spuk-frei #bschi-chat-btn,
html.woid-spuk-frei #bschi-chat-backdrop,
html.woid-spuk-frei [id^="trustbadge"],
html.woid-spuk-frei [class^="trustbadge"],
html.woid-spuk-frei #trustedShopsCheckout { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.woid-spuk button { font: inherit; }
.woid-spuk .ws-screen { position: absolute; inset: 0; display: none; }
.woid-spuk .ws-screen.an { display: block; }
.woid-spuk .ws-btn { display: inline-block; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.35); background: linear-gradient(#a8743d, #6e4620); color: var(--ws-creme); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; box-shadow: 0 3px 0 #3d2610, 0 6px 14px rgba(0,0,0,0.35); line-height: 1.2; }
.woid-spuk .ws-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #3d2610; }
.woid-spuk .ws-btn-haupt { background: linear-gradient(#f0913c, var(--ws-kuerbis)); color: #2a1408; border-color: #8a4416; }
.woid-spuk .ws-btn-leise { background: rgba(255,255,255,0.08); box-shadow: none; border-color: rgba(255,255,255,0.15); }
.woid-spuk .ws-btn:disabled { opacity: 0.55; cursor: default; }
.woid-spuk .ws-mini { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.woid-spuk .ws-mini.aktiv { border-color: var(--ws-gold); color: var(--ws-gold); }
.woid-spuk .ws-reihe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.woid-spuk .ws-klein { font-size: 13px; opacity: 0.8; margin: 8px 0 0; }
.woid-spuk .ws-leiste { position: absolute; right: 8px; top: 8px; z-index: 30; display: flex; gap: 6px; }
/* Im Spiel wandert sie in die untere Knopfreihe: oben stehen Punkte, Uhr und die Hinweise, und
   die kollidierten mit „Ton an“/„Vollbild“ (Michael, 23.09.2026). Unten rechts liegt die Laterne,
   deshalb links neben der Pause. */
.woid-spuk .ws-leiste.im-spiel { position: static; }
.woid-spuk .ws-h1, .woid-spuk .ws-rang, .woid-spuk .ws-zahl, .woid-spuk h3 { font-family: 'Creepster', 'Impact', system-ui, sans-serif; font-weight: 400; letter-spacing: 0.04em; }

/* Titel */
.woid-spuk .ws-titel { background: radial-gradient(ellipse at 70% 12%, #2a3a55, var(--ws-nacht) 60%); overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.woid-spuk .ws-titel-inhalt { padding: 48px 18px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.woid-spuk .ws-titel small { letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; opacity: 0.75; }
.woid-spuk .ws-h1 { margin: 0; font-size: clamp(44px, 13vw, 64px); line-height: 1; color: var(--ws-kuerbis); text-shadow: 0 3px 0 #3d1a08, 0 0 28px rgba(232,118,43,0.45); }
.woid-spuk .ws-zeile2 { margin: 0; font-size: 14px; opacity: 0.85; max-width: 360px; }
.woid-spuk .ws-knoepfe { display: flex; flex-direction: column; gap: 10px; width: min(320px, 100%); }
.woid-spuk .ws-knoepfe .ws-btn { width: 100%; }
.woid-spuk .ws-wesen { display: grid; grid-template-columns: 1fr; gap: 6px; width: min(360px, 100%); font-size: 13px; text-align: left; }
.woid-spuk .ws-wesen div { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,0.22); border-radius: 10px; padding: 6px 10px; }
.woid-spuk .ws-wesen canvas { width: 40px; height: 40px; flex: none; }
.woid-spuk .ws-titel-fehler { color: #f0a090; }
.woid-spuk .ws-credits { opacity: 0.55; font-size: 11px; }

/* Spiel */
.woid-spuk .ws-spiel { background: var(--ws-nacht); }
.woid-spuk .ws-hud { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-weight: 700; font-size: 16px; z-index: 2; pointer-events: none; }
.woid-spuk .ws-uhr { font-size: 13px; opacity: 0.85; font-weight: 600; }
.woid-spuk .ws-rest { font-size: 13px; opacity: 0.8; font-weight: 500; }
.woid-spuk .ws-kombo { color: var(--ws-schaum); font-size: 13px; margin-left: 8px; }
.woid-spuk .ws-kombo.hoch { color: var(--ws-kuerbis); }
.woid-spuk .ws-nacht { position: absolute; left: 12px; right: 12px; top: 44px; height: 4px; background: rgba(255,255,255,0.12); border-radius: 2px; z-index: 2; pointer-events: none; }
.woid-spuk .ws-nacht i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ws-gold), var(--ws-kuerbis)); border-radius: 2px; }
.woid-spuk .ws-leinwand { position: absolute; left: 0; top: 48px; display: block; cursor: crosshair; }
.woid-spuk .ws-hinweis { position: absolute; left: 0; right: 0; top: 60px; text-align: center; font-size: 13px; opacity: 0.8; pointer-events: none; z-index: 2; padding: 0 12px; }
.woid-spuk .ws-meldung { position: absolute; left: 0; right: 0; top: 56px; display: flex; justify-content: center; padding: 0 12px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s; }
.woid-spuk .ws-meldung span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 340px; font-size: 13px; line-height: 1.3; color: var(--ws-creme); background: rgba(22,36,58,0.92); border: 1px solid rgba(217,162,74,0.35); border-radius: 10px; padding: 4px 10px; max-width: 100%; }
.woid-spuk .ws-meldung.da { opacity: 1; }
.woid-spuk .ws-hud-knoepfe { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; gap: 6px; align-items: center; }
.woid-spuk .ws-hud-knoepfe .ws-btn { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.woid-spuk .ws-hud-knoepfe .ws-mini { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.woid-spuk .ws-bereit { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 3; pointer-events: none; }
.woid-spuk .ws-bereit.da { display: flex; }
.woid-spuk .ws-zahl { font-size: clamp(64px, 20vw, 110px); color: var(--ws-kuerbis); text-shadow: 0 4px 0 #3d1a08, 0 0 30px rgba(232,118,43,0.5); }
.woid-spuk .ws-pause { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); z-index: 4; }
.woid-spuk .ws-pause.da { display: flex; }

/* Ergebnis und Bestenliste */
.woid-spuk .ws-frage p { margin: 0 0 6px; font-size: 14px; }
.woid-spuk .ws-ende, .woid-spuk .ws-liste, .woid-spuk .ws-frage { display: none; align-items: center; justify-content: center; background: rgba(11,18,32,0.92); padding: 50px 12px 12px; overflow-y: auto; touch-action: pan-y; }
.woid-spuk .ws-ende.an, .woid-spuk .ws-liste.an, .woid-spuk .ws-frage.an { display: flex; }
.woid-spuk .ws-karte { background: rgba(22,36,58,0.96); border: 1px solid rgba(217,162,74,0.35); border-radius: 16px; padding: 18px 16px; max-width: 400px; width: 100%; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,0.45); max-height: 100%; overflow: auto; }
.woid-spuk h3 { margin: 0 0 8px; font-size: 22px; color: var(--ws-kuerbis); }
.woid-spuk .ws-rang { text-align: center; font-size: 28px; color: var(--ws-kuerbis); margin: 4px 0 8px; }
.woid-spuk .ws-ergebnis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 10px 0; }
.woid-spuk .ws-ergebnis div { background: rgba(0,0,0,0.22); border-radius: 10px; padding: 8px 10px; }
.woid-spuk .ws-ergebnis b { display: block; font-size: 20px; color: var(--ws-gold); }
.woid-spuk .ws-ergebnis small { opacity: 0.75; font-size: 12px; }
.woid-spuk .ws-code { margin: 10px 0; padding: 12px; border-radius: 12px; background: rgba(232,118,43,0.14); border: 1px dashed rgba(232,118,43,0.6); text-align: center; }
.woid-spuk .ws-code b { display: block; font-size: 24px; letter-spacing: 0.12em; color: var(--ws-kuerbis); margin: 4px 0; }
.woid-spuk .ws-code small { display: block; font-size: 12px; opacity: 0.8; margin-top: 6px; }
.woid-spuk .ws-eintrag { margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.woid-spuk .ws-eintrag label { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.woid-spuk .ws-eintrag input[type=text] { font: inherit; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.25); color: var(--ws-creme); }
.woid-spuk .ws-eintrag small { font-size: 11px; opacity: 0.7; }
.woid-spuk .ws-falle { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.woid-spuk .ws-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.woid-spuk .ws-tab { flex: 1; min-height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: var(--ws-creme); cursor: pointer; }
.woid-spuk .ws-tab.an { border-color: var(--ws-gold); color: var(--ws-gold); }
.woid-spuk .ws-rangliste { list-style: none; margin: 8px 0 0; padding: 0; }
.woid-spuk .ws-rangliste li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.woid-spuk .ws-rangliste li.ich { background: rgba(217,162,74,0.18); }
.woid-spuk .ws-rangliste .platz { width: 28px; text-align: right; font-weight: 700; color: var(--ws-gold); }
.woid-spuk .ws-rangliste .name { flex: 1; }
.woid-spuk .ws-rangliste .name small { opacity: 0.6; }
.woid-spuk .ws-rangliste .punkte { font-weight: 700; }
.woid-spuk a { color: var(--ws-gold); }

/* Spielanleitung: drei Karten zum Wischen oder Klicken, jederzeit überspringbar. */
.woid-spuk .ws-hilfe { display: none; align-items: center; justify-content: center; background: rgba(11,18,32,0.96); padding: 50px 12px 12px; }
.woid-spuk .ws-hilfe.an { display: flex; }
.woid-spuk .ws-hilfe .ws-karte { text-align: center; }
.woid-spuk .ws-blatt { display: none; }
.woid-spuk .ws-blatt.an { display: block; }
.woid-spuk .ws-blatt h4 { margin: 2px 0 6px; font-size: 17px; color: var(--ws-gold); }
.woid-spuk .ws-blatt p { margin: 0 0 8px; font-size: 14px; }
.woid-spuk .ws-blatt-bild { display: flex; gap: 8px; justify-content: center; align-items: flex-end; margin: 6px 0 10px; }
.woid-spuk .ws-blatt-bild figure { margin: 0; width: 86px; }
.woid-spuk .ws-blatt-bild canvas { width: 72px; height: 72px; }
.woid-spuk .ws-blatt-bild figure:only-child { width: 150px; }
.woid-spuk .ws-blatt-bild figure:only-child canvas { width: 120px; height: 120px; }
/* Die Wesen in der Anleitung sind anfassbar – sie verhalten sich wie im Spiel */
.woid-spuk .ws-probe { cursor: pointer; touch-action: manipulation; }
.woid-spuk .ws-probe-tipp { margin: 0 0 8px; font-size: 11px; opacity: 0.7; }
.woid-spuk .ws-blatt-bild figcaption { font-size: 11px; opacity: 0.8; line-height: 1.25; }
.woid-spuk .ws-punkte { display: flex; gap: 7px; justify-content: center; margin: 12px 0 2px; }
.woid-spuk .ws-punkte i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.woid-spuk .ws-punkte i.an { background: var(--ws-gold); }
.woid-spuk .ws-hilfe-fuss { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 10px; }

/* Lesbarkeit in fremden Themes: WordPress-Themes färben label, small, input und Absätze nach
   ihrem eigenen Geschmack – auf unserem dunklen Grund wurde das unlesbar (Michael, 23.09.2026:
   „manche Texte sind nicht lesbar"). Innerhalb des Spiels gilt deshalb unsere Farbe. */
.woid-spuk p, .woid-spuk div, .woid-spuk span, .woid-spuk small, .woid-spuk label,
.woid-spuk li, .woid-spuk b, .woid-spuk strong, .woid-spuk figcaption { color: inherit !important; }
.woid-spuk .ws-h1, .woid-spuk h3, .woid-spuk .ws-rang, .woid-spuk .ws-code b { color: var(--ws-kuerbis) !important; }
.woid-spuk .ws-blatt h4 { color: var(--ws-gold) !important; }
.woid-spuk .ws-ergebnis b, .woid-spuk .ws-rangliste .platz { color: var(--ws-gold) !important; }
.woid-spuk .ws-kombo { color: var(--ws-schaum) !important; }
.woid-spuk .ws-kombo.hoch { color: var(--ws-kuerbis) !important; }
.woid-spuk .ws-titel-fehler { color: #f0a090 !important; }
.woid-spuk a { color: var(--ws-gold) !important; }
.woid-spuk .ws-btn { color: var(--ws-creme) !important; }
.woid-spuk .ws-btn-haupt { color: #2a1408 !important; }
.woid-spuk .ws-mini.aktiv, .woid-spuk .ws-tab.an { color: var(--ws-gold) !important; }
.woid-spuk input[type=text] { color: var(--ws-creme) !important; -webkit-text-fill-color: var(--ws-creme); background: rgba(0,0,0,0.25) !important; border: 1px solid rgba(255,255,255,0.2) !important; box-shadow: none !important; }
.woid-spuk input[type=text]::placeholder { color: rgba(243,233,210,0.5); opacity: 1; }

/* Nach dem Finale springt das Ergebnis heraus – und mit ihm der Dank aus der Siederei. */
@keyframes ws-pop-auf { from { transform: scale(0.84); opacity: 0; } 60% { transform: scale(1.03); opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes ws-code-raus { from { transform: scale(0.2) rotate(-10deg); opacity: 0; } 65% { transform: scale(1.14) rotate(3deg); opacity: 1; } to { transform: scale(1) rotate(0); opacity: 1; } }
.woid-spuk .ws-pop { animation: ws-pop-auf .42s cubic-bezier(.2,1.2,.4,1) both; }
.woid-spuk .ws-pop-code { animation: ws-code-raus .5s .32s cubic-bezier(.2,1.4,.4,1) both; }
@media (prefers-reduced-motion: reduce) { .woid-spuk .ws-pop, .woid-spuk .ws-pop-code { animation: none; } }

/* Der Anreiz gehört nach vorn: auf dem Titel, in der Anleitung und – wenn es knapp war – im Ergebnis. */
.woid-spuk .ws-lockruf { margin: 0; font-size: 13px; color: var(--ws-gold) !important; background: rgba(217,162,74,0.12); border: 1px solid rgba(217,162,74,0.35); border-radius: 10px; padding: 7px 12px; max-width: 360px; }
.woid-spuk .ws-lockruf b { color: var(--ws-kuerbis) !important; }
.woid-spuk .ws-fehlt { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px dashed rgba(217,162,74,0.45); text-align: center; font-size: 13px; line-height: 1.45; }
.woid-spuk .ws-fehlt b { color: var(--ws-gold) !important; }

/* Kollege mit persönlichem Link aus dem Gaming Center (spuk-huelle.js:mitarbeiterZeile) */
.woid-spuk .ws-mitarbeiter { margin: 0; font-size: 13px; color: var(--ws-creme) !important; background: rgba(191,227,239,0.10); border: 1px solid rgba(191,227,239,0.30); border-radius: 10px; padding: 7px 12px; max-width: 360px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; }
.woid-spuk .ws-mitarbeiter[hidden] { display: none; }
.woid-spuk .ws-mitarbeiter b { color: var(--ws-schaum) !important; }
.woid-spuk .ws-ma-stand { color: var(--ws-schaum) !important; }
