/* Design „Allgemeinwissen – Goldene Bibliothek“. Board-Koordinaten in Prozent von board.webp (1241×619, aus der Board-Vorlage freigestellt).
   Ebenen: #gb-scene (Bibliothek + Globus/Ringe/Banner/Laternen/Efeu/Himmel/Wasser/Boden/Gold-Masken + Sonnenbahnen, Staubmotten) → #playerBoard (Board, Bibliotheks-Teamtafeln darunter) → #gb-front/#gb-fx.
   Layout wie in der Vorlage: Board mittig unter dem Himmelsglobus, die Teamtafeln in einer Reihe darunter. 5 Kategorien: board.webp; 4 Kategorien: board4.webp
   (aus der 4er-Vorlage, fehlende Punktezeile nahtlos ergänzt, gleiche Höhe wie das 5er-Board); sonst Standard-Raster. */
body.jeopardy-page[data-scene-design=bibliothek]{--gb-gold:#e9b44c;--gb-gold-hi:#ffe3a3;--gb-leather:#3a1a12;--gb-ink:#2a1708;--gb-cream:#fff4dc;--gb-ivory:#f8ecd0;
 --gb-disp:"Cinzel","Alegreya",Georgia,serif;--gb-body:"Alegreya Sans","Alegreya",system-ui,sans-serif;background-color:#2a2116!important}
body[data-scene-design=bibliothek] #app{position:relative;z-index:1}
body:not(.jeopardy-page) :is(#gb-scene,#gb-fx,#gb-front){display:none}

/* ---------- Szene ---------- */
#gb-scene{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
#gb-scene>*{position:absolute;inset:0;width:100%;height:100%;max-width:none}
#gb-scene .gb-bg{object-fit:cover;object-position:50% 50%}
#gb-scene .gb-gl{opacity:0;transition:opacity .3s}
#gb-scene .gb-gl.ready{opacity:1}
#gb-scene .gb-dim{background:radial-gradient(120% 90% at 50% 45%,rgba(28,14,8,.42),rgba(14,6,2,.85));opacity:0}
#gb-scene .gb-glow{opacity:0;mix-blend-mode:screen;background:radial-gradient(34% 30% at 50% 10%,rgba(255,206,120,.5),transparent 70%),radial-gradient(60% 40% at 50% 100%,rgba(255,190,100,.22),transparent 70%)}
body[data-scene-design=bibliothek][data-gb-fx=still] #gb-scene :is(.gb-gl,.gb-amb),body[data-scene-design=bibliothek][data-gb-gl=none] #gb-scene .gb-gl{display:none}
#gb-fx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:20500}
#gb-front{position:fixed;inset:0;pointer-events:none;z-index:20550}
#gb-front .gb-title{position:fixed;left:50%;top:44%;transform:translate(-50%,-50%);width:min(92vw,1100px);text-align:center;opacity:0;color:var(--gb-gold-hi,#ffe3a3);text-shadow:0 0 .35em rgba(255,200,100,.8),0 .06em .02em #1a1206}
#gb-front .gb-title b{display:block;font:800 min(7.5vw,6rem)/1 var(--gb-disp,"Cinzel",serif);letter-spacing:.12em;background:linear-gradient(180deg,#fff7dc,#f2c25c 55%,#a8701c);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 .05em .05em rgba(0,0,0,.7))}
#gb-front .gb-title small{display:block;margin-top:.55em;font:600 min(3vw,1.5rem)/1.2 var(--gb-disp,"Cinzel",serif);letter-spacing:.2em;text-transform:uppercase;color:#fff3dc}
#gb-front .gb-title::before{content:"";position:absolute;inset:-38% -6%;z-index:-1;background:radial-gradient(closest-side,rgba(30,14,8,.88),rgba(30,14,8,.5) 62%,transparent)}
#gb-front .gb-pulse{position:fixed;opacity:0;border-radius:.4vw;mix-blend-mode:screen;background:radial-gradient(ellipse at center,rgba(255,226,150,.75),rgba(255,190,80,.35) 55%,transparent 80%);box-shadow:0 0 30px 8px rgba(255,200,90,.45)}
#gb-front .gb-strike{position:fixed;transform:translate(-50%,-50%);opacity:0;border-radius:.4vw;box-shadow:0 0 0 2px rgba(255,226,150,.98),0 0 22px 6px rgba(255,196,90,.7)}
#gb-front .gb-lines{position:fixed;overflow:visible;fill:none;stroke:#f5cc6e;stroke-width:2.4;filter:drop-shadow(0 0 3px rgba(255,200,100,.9))}
#gb-front .gb-lines :is(circle,path){stroke-dasharray:1 1;stroke-dashoffset:1;opacity:0}
#gb-front .gb-lines .d{stroke-width:1.5}
#gb-front .gb-lines{transform-origin:50% 50%}
#gb-front .gb-lines .r{stroke:#e0503e;filter:drop-shadow(0 0 2px rgba(230,70,50,.9))}
#gb-front .gb-lines .k{stroke-width:2.6;fill:rgba(224,80,62,.18)}
#gb-front .gb-astro{position:fixed;overflow:visible;opacity:0;filter:drop-shadow(0 0 4px rgba(255,200,100,.85))}
#gb-front .gb-astro g{transform-origin:100px 100px;transform-box:view-box}
#gb-front .gb-astro .gb-a-draw{fill:none;stroke:#f5cc6e;stroke-width:1.6;stroke-dasharray:1 1;stroke-dashoffset:1}
#gb-front .gb-astro .gb-a-ticks{opacity:0}
#gb-front .gb-astro .gb-a-ticks line{stroke:#f5cc6e;stroke-width:1}
#gb-front .gb-astro .gb-a-planet{fill:#ffe7a8;opacity:0}
#gb-front .gb-astro .gb-a-star{fill:#fff3cf}
#gb-front .gb-astro .gb-a-glow{transform-origin:100px 100px;transform-box:view-box;opacity:.25}
#gb-front .gb-vig{position:fixed;inset:0;opacity:0;background:radial-gradient(75% 70% at 50% 50%,transparent 55%,rgba(24,10,4,.45) 85%,rgba(14,6,2,.65))}
#gb-front .gb-flash{position:fixed;inset:0;opacity:0;mix-blend-mode:screen;background:radial-gradient(30% 34% at 50% 44%,rgba(255,236,180,.85),rgba(255,200,100,.25) 55%,transparent 75%)}
#gb-front .gb-edge{position:fixed;inset:0;opacity:0;box-shadow:inset 0 0 90px 18px rgba(255,206,110,.38),inset 0 0 240px 30px rgba(120,80,20,.25)}
#gb-skip{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:20600;min-height:44px;padding:8px 18px;border:1px solid #e9b44c;border-radius:4px;background:#3a1a12;color:#fff4dc;font:600 15px/1 "Cinzel",serif;letter-spacing:.04em;cursor:pointer}

/* ---------- Bühne (16:9) ---------- */
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view{padding:12px!important;background:none!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view .jeopardy-player-frame{width:min(calc(100vw - 24px),calc((100dvh - 24px) * 16 / 9))!important;max-width:none!important;margin:0 auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view.host-board-scene .jeopardy-player-frame{width:min(calc(100vw - 24px),calc((100dvh - 90px) * 16 / 9))!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view .player-view-topbar,body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view .board-title-plaque{display:none!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard{position:relative!important;display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/9;container-type:inline-size;isolation:isolate;margin:0!important;padding:0!important;grid-template-columns:none!important;transition:opacity 1.2s ease,transform 1.2s ease}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board{position:absolute!important;left:12.919%!important;top:17.003%!important;width:74.222%!important;height:65.781%!important;transform:none!important;display:block!important;padding:0!important;margin:0!important;gap:0!important;border:0!important;border-radius:0!important;background:url(/assets/designs/bibliothek/board.webp) center/100% 100% no-repeat!important;box-shadow:none!important;z-index:2;overflow:visible!important;container-type:inline-size}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>*{position:absolute!important;box-sizing:border-box!important;margin:0!important;min-height:0!important;min-width:0!important;max-width:none!important;aspect-ratio:auto!important;grid-row:auto!important;grid-column:auto!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(1){left:2.095%!important;top:2.585%!important;width:17.889%!important;height:19.063%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(2){left:21.595%!important;top:2.585%!important;width:18.131%!important;height:19.063%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(3){left:40.854%!important;top:2.585%!important;width:18.211%!important;height:19.063%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(4){left:60.193%!important;top:2.585%!important;width:18.372%!important;height:19.063%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(5){left:79.774%!important;top:2.585%!important;width:18.533%!important;height:19.063%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(6){left:2.095%!important;top:23.425%!important;width:17.889%!important;height:13.893%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(7){left:21.595%!important;top:23.425%!important;width:18.131%!important;height:13.893%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(8){left:40.854%!important;top:23.425%!important;width:18.211%!important;height:13.893%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(9){left:60.193%!important;top:23.425%!important;width:18.372%!important;height:13.893%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(10){left:79.774%!important;top:23.425%!important;width:18.533%!important;height:13.893%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(11){left:2.095%!important;top:39.095%!important;width:17.889%!important;height:13.409%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(12){left:21.595%!important;top:39.095%!important;width:18.131%!important;height:13.409%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(13){left:40.854%!important;top:39.095%!important;width:18.211%!important;height:13.409%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(14){left:60.193%!important;top:39.095%!important;width:18.372%!important;height:13.409%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(15){left:79.774%!important;top:39.095%!important;width:18.533%!important;height:13.409%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(16){left:2.095%!important;top:54.443%!important;width:17.889%!important;height:13.570%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(17){left:21.595%!important;top:54.443%!important;width:18.131%!important;height:13.570%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(18){left:40.854%!important;top:54.443%!important;width:18.211%!important;height:13.570%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(19){left:60.193%!important;top:54.443%!important;width:18.372%!important;height:13.570%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(20){left:79.774%!important;top:54.443%!important;width:18.533%!important;height:13.570%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(21){left:2.095%!important;top:69.628%!important;width:17.889%!important;height:13.570%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(22){left:21.595%!important;top:69.628%!important;width:18.131%!important;height:13.570%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(23){left:40.854%!important;top:69.628%!important;width:18.211%!important;height:13.570%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(24){left:60.193%!important;top:69.628%!important;width:18.372%!important;height:13.570%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(25){left:79.774%!important;top:69.628%!important;width:18.533%!important;height:13.570%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(26){left:2.095%!important;top:84.814%!important;width:17.889%!important;height:13.732%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(27){left:21.595%!important;top:84.814%!important;width:18.131%!important;height:13.732%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(28){left:40.854%!important;top:84.814%!important;width:18.211%!important;height:13.732%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(29){left:60.193%!important;top:84.814%!important;width:18.372%!important;height:13.732%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>:nth-child(30){left:79.774%!important;top:84.814%!important;width:18.533%!important;height:13.732%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.cat{display:grid!important;place-items:center!important;text-align:center!important;padding:0 1.3cqw!important;overflow:hidden!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;clip-path:none!important;color:var(--gb-ivory)!important;font:700 1.75cqw/1.1 var(--gb-disp)!important;letter-spacing:.05em;text-transform:uppercase;text-wrap:balance;text-shadow:0 .14cqw .2cqw rgba(0,0,0,.85),0 0 .7cqw rgba(255,200,100,.25)!important;overflow-wrap:normal;hyphens:manual}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.cat:nth-child(5n+1){color:var(--gb-ink)!important;text-shadow:0 .08cqw 0 rgba(255,250,235,.7)!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.cat .category-reveal{position:absolute;top:-1.3cqw;right:.4cqw;font:600 .9cqw/1 Arial,sans-serif;padding:.25cqw .5cqw;min-height:0;text-transform:none}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.tile{display:grid!important;place-items:center!important;padding:0!important;background:transparent!important;border:0!important;border-radius:.6cqw!important;box-shadow:none!important;clip-path:none!important;font:800 3.3cqw/1 var(--gb-disp)!important;letter-spacing:.04em;color:var(--gb-gold-hi)!important;transition:background .25s,box-shadow .25s!important;opacity:1!important;transform:none!important;filter:none!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.tile .point-value{background:linear-gradient(180deg,#fff7dc,#f2c25c 55%,#b07a22);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none!important;filter:drop-shadow(0 .2cqw .18cqw rgba(0,0,0,.85))}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.tile:nth-child(5n+1) .point-value{background:linear-gradient(180deg,#8a5a1c,#5a3510 60%,#3a200a);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 .1cqw 0 rgba(255,248,230,.75))}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>button.tile:not(:disabled):not(.used):is(:hover,:focus-visible){background:radial-gradient(ellipse at center,rgba(255,222,140,.2),transparent 72%)!important;box-shadow:inset 0 0 0 .2cqw rgba(255,224,140,.9),0 0 1.4cqw rgba(255,200,90,.5)!important;outline:none}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>button.tile:not(:disabled):not(.used):active{animation:gb-pick .45s ease-out}
@keyframes gb-pick{40%{background:radial-gradient(ellipse at center,rgba(255,232,160,.5),transparent 75%);box-shadow:inset 0 0 0 .25cqw rgba(255,232,160,1),0 0 2cqw rgba(255,206,100,.8)}}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.tile.used{background:rgba(10,12,24,.62)!important;box-shadow:inset 0 0 1.4cqw rgba(0,0,0,.6)!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.tile.used .point-value,body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.tile.empty{visibility:hidden}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.tile.double-points{animation:gb-dp 2.4s ease-in-out infinite}
@keyframes gb-dp{50%{box-shadow:inset 0 0 0 .2cqw rgba(255,224,140,.95),0 0 1.4cqw rgba(255,200,90,.65)}}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.tile .host-risk-mark{position:absolute;top:8%;right:5%;font:700 .9cqw/1 Arial,sans-serif;padding:.2cqw .4cqw;border-radius:.3cqw}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.tile.gb-marked{box-shadow:inset 0 0 0 .2cqw rgba(255,224,140,.95),0 0 1.6cqw rgba(255,200,90,.65)!important}

/* ---------- Teamtafeln: neue Bibliotheks-Tafel (dunkles Bordeaux-Leder, Goldrahmen mit abgeschrägten Ecken wie das Board, Kompass-Emblem); Name, Mitglieder und Punkte als echter Text ---------- */
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard{position:absolute!important;left:2%!important;top:84.6%!important;right:auto!important;bottom:auto!important;width:96%!important;height:14%!important;max-height:none!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;z-index:4;transform:none!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .player-side-scoreboard-list{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:center!important;gap:1.2%!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;grid-template-columns:none!important;overflow:visible!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score{position:relative!important;flex:0 0 21%!important;width:21%!important;max-width:none!important;height:auto!important;aspect-ratio:1000/360!important;min-height:0!important;max-height:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important;display:block!important;container-type:size;
 background:url(/assets/designs/bibliothek/card.webp) center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;color:var(--gb-cream)!important;text-align:left!important;overflow:visible!important;transition:filter .4s!important;filter:drop-shadow(0 .6cqh 1.2cqh rgba(0,0,0,.45))}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .player-side-scoreboard-list:has(>.score:nth-child(5)) .score{flex-basis:18.6%!important;width:18.6%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .player-side-scoreboard-list:has(>.score:nth-child(6)) .score{flex-basis:15.5%!important;width:15.5%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .player-side-scoreboard-list:has(>.score:nth-child(7)) .score{flex-basis:13.3%!important;width:13.3%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .player-side-scoreboard-list:has(>.score:nth-child(8)) .score{flex-basis:11.6%!important;width:11.6%!important}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score::before{content:attr(data-scene-name);position:absolute;left:7%;top:13%;width:54%;height:33%;display:flex;align-items:center;justify-content:flex-start;font:700 calc(min(20cqh,7.2cqw) * var(--gb-nf,1))/1 var(--gb-disp);letter-spacing:.04em;color:var(--gb-gold-hi);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:0 .06em 0 #1a1206,0 0 .5em rgba(255,200,100,.25)}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score>b{position:absolute!important;left:7%!important;top:56%!important;width:54%!important;height:30%!important;padding:0!important;margin:0!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;align-content:center!important;gap:0 .7em!important;font:500 min(15cqh,5.6cqw)/1.15 var(--gb-body)!important;color:#eadbc0!important;overflow:hidden;text-align:left!important;text-shadow:0 .06em .1em rgba(0,0,0,.7)}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score>b .team-name-member{display:inline!important;width:auto!important;flex:none!important;white-space:nowrap}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score .team-score{position:absolute!important;left:71.6%!important;top:19.4%!important;width:23.6%!important;height:61.2%!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;font:800 min(36cqh,10cqw)/1 var(--gb-disp)!important;color:var(--gb-gold-hi)!important;background:linear-gradient(180deg,#fff7dc,#f2c25c 55%,#b07a22);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none!important;filter:drop-shadow(0 .05em .04em rgba(0,0,0,.8));font-variant-numeric:tabular-nums;letter-spacing:.02em}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score .score-unit{display:none}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score>.gb-emb{position:absolute;left:65.4%;top:44.444%;width:5.2%;height:14.444%;background:url(/assets/designs/bibliothek/emb.webp) center/100% 100% no-repeat;pointer-events:none;z-index:1}
body[data-scene-design=bibliothek][data-gb-fx=live][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score.turn-active>.gb-emb{animation:gb-emb-spin 12s linear infinite;filter:drop-shadow(0 0 .8cqh rgba(255,214,120,.95))}
body[data-scene-design=bibliothek][data-gb-fx=live][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score.gb-up>.gb-emb{animation:gb-emb-up 1.2s cubic-bezier(.2,.7,.2,1)}
@keyframes gb-emb-spin{to{transform:rotate(360deg)}}
@keyframes gb-emb-up{40%{transform:rotate(220deg) scale(1.3);filter:brightness(1.6) drop-shadow(0 0 1.6cqh rgba(255,222,130,1))}to{transform:rotate(360deg) scale(1)}}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score.turn-active{filter:drop-shadow(0 0 1.6cqh rgba(255,206,110,.95)) drop-shadow(0 0 .5cqh rgba(255,236,180,.8))}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score.own-team::after{content:"";position:absolute;inset:9% 3.5%;box-shadow:inset 0 0 0 .7cqh rgba(255,220,130,.55);pointer-events:none}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score.gb-up{animation:gb-up 1.2s ease-out}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score.gb-down{animation:gb-down 1.2s ease-out}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score.gb-lead::after{content:"";position:absolute;inset:6% 2%;pointer-events:none;background:linear-gradient(105deg,transparent 30%,rgba(255,232,160,.55) 48%,rgba(255,250,230,.8) 50%,rgba(255,232,160,.55) 52%,transparent 70%) 0 0/250% 100% no-repeat;mix-blend-mode:screen;animation:gb-lead 1.6s ease-in-out forwards}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score.gb-win{animation:gb-win 1.8s ease-in-out 2}
@keyframes gb-up{25%{filter:brightness(1.22) drop-shadow(0 0 2cqh rgba(255,210,110,.95))}}
@keyframes gb-down{25%{filter:brightness(.85) drop-shadow(0 0 1.6cqh rgba(200,60,50,.8))}}
@keyframes gb-lead{from{background-position:120% 0;opacity:0}20%{opacity:1}to{background-position:-120% 0;opacity:0}}
@keyframes gb-win{50%{filter:brightness(1.15) drop-shadow(0 0 2cqh rgba(255,215,120,.95))}}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view .gb-delta{position:absolute;right:6%;top:-34%;font:800 1.5cqw/1 var(--gb-disp);pointer-events:none;text-shadow:0 .1cqw .2cqw #000;animation:gb-delta 1.4s ease-out forwards}
body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view .gb-delta.up{color:#ffe08a}body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view .gb-delta.down{color:#ff9f94}
@keyframes gb-delta{from{opacity:0;transform:translateY(20%)}20%{opacity:1}to{opacity:0;transform:translateY(-60%)}}
/* Finale: Board elegant ausblenden; Rangliste: Board sanft zurücknehmen */
body.gb-finale-intro[data-scene-design=bibliothek] .jeopardy-player-view #playerBoard,body.gb-finale[data-scene-design=bibliothek] .jeopardy-player-view #playerBoard{opacity:0;transform:scale(.985)}
body.gb-results[data-scene-design=bibliothek] .jeopardy-player-view #playerBoard{opacity:.1;transform:scale(.97)}

/* ---------- Handy / Hochformat / flaches Querformat: Board unverzerrt, Teams darunter in zwei Spalten ---------- */
@media (max-width:760px),(max-aspect-ratio:1/1),(max-height:500px){
 body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view{padding:10px!important}
 body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view .jeopardy-player-frame,body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view.host-board-scene .jeopardy-player-frame{width:100%!important}
 body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard{aspect-ratio:auto;display:flex!important;flex-direction:column;gap:12px;overflow-x:auto;-webkit-overflow-scrolling:touch;container-type:normal;padding-bottom:6px!important}
 body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board{position:relative!important;left:auto!important;top:auto!important;width:min(100%,calc((100dvh - 24px) * 1241 / 619))!important;margin:0 auto!important;height:auto!important;aspect-ratio:1241/619;flex:none;order:1}
 body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.cat{font-size:max(8.5px,2.3cqw)!important;line-height:1.02!important;letter-spacing:0!important;text-transform:none!important;white-space:normal!important;padding:0 2px!important}
 body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.board>.tile{font-size:4.4cqw!important}
 body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard{position:sticky!important;left:0!important;top:auto!important;width:calc(100vw - 20px)!important;height:auto!important;order:2}
 body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .player-side-scoreboard-list,body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .player-side-scoreboard-list:has(>.score:nth-child(5)){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;height:auto!important;max-width:620px!important;margin:0 auto!important}
 body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .score,body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard .player-side-scoreboard-list .score{width:100%!important;height:auto!important;aspect-ratio:1000/360!important;max-height:none!important;flex:none!important;margin:0!important}
 body[data-scene-design=bibliothek][data-scene-fit=on] .jeopardy-player-view .gb-delta{font-size:18px;top:-14px}
}

/* ---------- Finale und Rangliste: dunkles Leder und Gold ---------- */
body[data-scene-design=bibliothek].gb-finale-intro #finale-panel{opacity:0!important;pointer-events:none!important}
body[data-scene-design=bibliothek].gb-finale-intro #app{visibility:visible!important}
body[data-scene-design=bibliothek] #finale-panel{background:rgba(20,8,4,.34)!important;color:var(--gb-cream);transition:opacity .8s ease}
body[data-scene-design=bibliothek] #finale-panel :is(.finale-wrap,.jeopardy-final-host){background:linear-gradient(180deg,rgba(58,26,22,.97),rgba(30,12,10,.98))!important;color:var(--gb-cream)!important;border:3px solid #e9b44c!important;border-radius:6px!important;box-shadow:inset 0 0 0 1px #120604,inset 0 0 0 6px rgba(255,220,130,.2),0 0 0 1px rgba(0,0,0,.6),0 20px 60px rgba(0,0,0,.6)!important}
body[data-scene-design=bibliothek].gb-finale #finale-panel :is(.finale-wrap,.jeopardy-final-host){animation:gb-frame 5s ease-in-out infinite}
@keyframes gb-frame{50%{box-shadow:inset 0 0 0 1px #120604,inset 0 0 0 6px rgba(255,220,130,.4),0 0 34px rgba(255,200,100,.45),0 20px 60px rgba(0,0,0,.6)}}
body[data-scene-design=bibliothek] #finale-panel .finale-wrap>header h1{font-family:var(--gb-disp);letter-spacing:.1em;color:var(--gb-gold-hi)}
body[data-scene-design=bibliothek] #finale-panel .finale-wrap>header p,body[data-scene-design=bibliothek] #finale-panel small{color:#e8d6b8!important}
body[data-scene-design=bibliothek] #finale-panel .finale-question{font-family:var(--gb-body);font-weight:700;background:rgba(24,10,8,.9)!important;border:1px solid rgba(233,180,76,.75)!important;border-left:6px solid #e9b44c!important;color:#fff!important}
body[data-scene-design=bibliothek] #finale-panel .finale-team,body[data-scene-design=bibliothek] #finale-panel .finale-entry{background:rgba(66,32,24,.88)!important;border:1px solid rgba(233,180,76,.5)!important;color:var(--gb-cream)!important}
body[data-scene-design=bibliothek] #finale-panel .finale-team.correct{border-color:#ffd27a!important;box-shadow:0 0 18px rgba(255,200,90,.5)}
body[data-scene-design=bibliothek] #finale-panel .finale-team.wrong{border-color:#e07a6e!important;box-shadow:0 0 16px rgba(200,70,60,.4)}
body[data-scene-design=bibliothek] #finale-panel .finale-solution{background:rgba(90,64,14,.88)!important;border:1px solid var(--gb-gold)!important;color:#fff3e0!important}
body[data-scene-design=bibliothek] #finale-panel .finale-solution b{color:var(--gb-gold-hi)!important}
body[data-scene-design=bibliothek] #finale-panel .finale-solution p{color:#fff3e0!important}
body[data-scene-design=bibliothek] #qol-panel[data-results]{background:linear-gradient(180deg,rgba(58,26,22,.97),rgba(30,12,10,.98));color:var(--gb-cream);border:3px solid #e9b44c;border-radius:6px;box-shadow:inset 0 0 0 1px #120604,inset 0 0 0 6px rgba(255,220,130,.2),0 24px 70px rgba(0,0,0,.6)}
body[data-scene-design=bibliothek] #qol-panel[data-results]::backdrop{background:rgba(20,8,4,.3)}
body[data-scene-design=bibliothek] #qol-panel[data-results] .qol-panel-head h2{font-family:var(--gb-disp);letter-spacing:.08em;color:var(--gb-gold-hi);text-shadow:0 0 14px rgba(255,190,90,.5)}
body[data-scene-design=bibliothek] #qol-panel[data-results] .final-intro,body[data-scene-design=bibliothek] #qol-panel[data-results] .muted{color:#e8d6b8!important}
body[data-scene-design=bibliothek] #qol-panel[data-results] .final-team{position:relative;background:linear-gradient(180deg,rgba(78,36,26,.92),rgba(36,16,12,.94))!important;border:1px solid rgba(233,180,76,.6)!important;border-left:6px solid #e9b44c!important;color:var(--gb-cream)!important}
body[data-scene-design=bibliothek] #qol-panel[data-results] .final-team strong{font-family:var(--gb-disp);color:#fff!important}
body[data-scene-design=bibliothek] #qol-panel[data-results] .final-members span{color:#f3e6cc!important;background:rgba(255,255,255,.08)!important}
body[data-scene-design=bibliothek] #qol-panel[data-results] .final-rank,body[data-scene-design=bibliothek] #qol-panel[data-results] .final-rank small,body[data-scene-design=bibliothek] #qol-panel[data-results] .final-score small{color:var(--gb-gold-hi)!important;opacity:1}
body[data-scene-design=bibliothek] #qol-panel[data-results] .final-score{font-family:var(--gb-disp);color:var(--gb-gold-hi)!important}
body[data-scene-design=bibliothek] #qol-panel[data-results] .final-team.gb-p1{border:2px solid #ffd27a!important;border-left:6px solid #ffd27a!important;background:linear-gradient(90deg,rgba(140,104,20,.6),rgba(58,26,22,.92) 55%)!important;box-shadow:0 0 0 1px rgba(0,0,0,.5),0 0 28px rgba(255,200,90,.55)!important;margin-top:1.6em}
body[data-scene-design=bibliothek] #qol-panel[data-results] .final-team.gb-p2{border-color:rgba(214,222,235,.9)!important;border-left-color:#cfd8e6!important}
body[data-scene-design=bibliothek] #qol-panel[data-results] .final-team.gb-p3{border-color:rgba(205,135,80,.95)!important;border-left-color:#cd8750!important}
body[data-scene-design=bibliothek] #qol-panel[data-results] .final-team .gb-laurel{position:absolute;left:50%;top:-1.55em;width:5.2em;height:2.6em;transform:translate(-50%,0);pointer-events:none;filter:drop-shadow(0 0 6px rgba(255,200,90,.8))}

/* ---------- 4 Kategorien: eigenes Board (board4.webp, 1241×736, aus der gelieferten 4er-Vorlage, eine Punktezeile ergänzt), gleiche Höhe wie das 5er-Board, mittig ---------- */
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board{background-image:url(/assets/designs/bibliothek/board4.webp)!important;left:18.818%!important;width:62.424%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(1){left:2.256%!important;top:2.174%!important;width:22.401%!important;height:16.712%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(2){left:26.753%!important;top:2.174%!important;width:22.562%!important;height:16.712%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(3){left:51.007%!important;top:2.174%!important;width:22.562%!important;height:16.712%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(4){left:75.342%!important;top:2.174%!important;width:22.724%!important;height:16.712%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(5){left:2.256%!important;top:20.652%!important;width:22.401%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(6){left:26.753%!important;top:20.652%!important;width:22.562%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(7){left:51.007%!important;top:20.652%!important;width:22.562%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(8){left:75.342%!important;top:20.652%!important;width:22.724%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(9){left:2.256%!important;top:36.685%!important;width:22.401%!important;height:14.538%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(10){left:26.753%!important;top:36.685%!important;width:22.562%!important;height:14.538%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(11){left:51.007%!important;top:36.685%!important;width:22.562%!important;height:14.538%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(12){left:75.342%!important;top:36.685%!important;width:22.724%!important;height:14.538%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(13){left:2.256%!important;top:52.853%!important;width:22.401%!important;height:14.538%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(14){left:26.753%!important;top:52.853%!important;width:22.562%!important;height:14.538%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(15){left:51.007%!important;top:52.853%!important;width:22.562%!important;height:14.538%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(16){left:75.342%!important;top:52.853%!important;width:22.724%!important;height:14.538%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(17){left:2.256%!important;top:69.022%!important;width:22.401%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(18){left:26.753%!important;top:69.022%!important;width:22.562%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(19){left:51.007%!important;top:69.022%!important;width:22.562%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(20){left:75.342%!important;top:69.022%!important;width:22.724%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(21){left:2.256%!important;top:84.918%!important;width:22.401%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(22){left:26.753%!important;top:84.918%!important;width:22.562%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(23){left:51.007%!important;top:84.918%!important;width:22.562%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>:nth-child(24){left:75.342%!important;top:84.918%!important;width:22.724%!important;height:14.402%!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>.cat{font-size:1.85cqw!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>.cat:nth-child(5n+1){color:var(--gb-ivory)!important;text-shadow:0 .14cqw .2cqw rgba(0,0,0,.85),0 0 .7cqw rgba(255,200,100,.25)!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>.cat:nth-child(4n+1){color:var(--gb-ink)!important;text-shadow:0 .08cqw 0 rgba(255,250,235,.7)!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>.tile{font-size:3.5cqw!important}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>.tile:nth-child(5n+1) .point-value{background:linear-gradient(180deg,#fff7dc,#f2c25c 55%,#b07a22);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 .2cqw .18cqw rgba(0,0,0,.85))}
body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>.tile:nth-child(4n+1) .point-value{background:linear-gradient(180deg,#8a5a1c,#5a3510 60%,#3a200a);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 .1cqw 0 rgba(255,248,230,.75))}
@media (max-width:760px),(max-aspect-ratio:1/1),(max-height:500px){
 body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board{left:auto!important;width:min(100%,calc((100dvh - 24px) * 1241 / 736))!important;aspect-ratio:1241/736}
 body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>.cat{font-size:max(8.5px,2.8cqw)!important}
 body[data-scene-design=bibliothek][data-scene-fit=on][data-scene-cols="4"] .jeopardy-player-view #playerBoard>.board>.tile{font-size:5cqw!important}
}
/* ---------- Ende 4 Kategorien ---------- */
