/* Game hub + Bild-Enthüllung. Builds on the quiz look (style.css, niffeln-theme.css, style-playful/pro). */
.game-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px;margin:8px 0 26px}
.game-card{display:flex;flex-direction:column;gap:10px;padding:26px;color:var(--ink);text-decoration:none;transition:transform .15s,border-color .15s}
a.game-card:hover{transform:translateY(-3px);border-color:var(--accent)}
.game-card h2{margin:0}.game-card p{margin:0;color:var(--muted);line-height:1.6;font-size:14px}
.game-icon{display:grid;place-items:center;width:46px;height:46px;font:22px var(--pixel);background:var(--accent);color:#1c0a36;border-radius:0}
.game-go{margin-top:auto;font-weight:700;color:var(--accent)}
.game-card.soon{opacity:.6}.game-card.soon .game-go{color:var(--muted)}
.hub-note{padding:22px 26px;margin-bottom:26px}.hub-note h3{margin-bottom:8px}

.rv-row{display:flex;gap:10px;align-items:center;margin-bottom:6px}.rv-row .channel{flex:1}
#rvChatBox,#rvMode,#rvDuration{margin-bottom:6px}
#rvChatStatus,#rvPinHint{margin:6px 0 14px;line-height:1.5}
.rv-item{align-items:center}
.rv-thumb{width:46px;height:46px;object-fit:cover;border-radius:4px;flex-shrink:0;background:#0003}
.rv-error{color:#ff6b7d;min-height:1.2em;margin:8px 0 0;font-size:13px}
.rv-preview-wrap{margin:12px 0}.rv-preview-wrap img{display:block;max-width:100%;max-height:220px;margin:auto;border-radius:6px}
.danger{color:#ff6b7d}

/* stage */
.rv-stage{align-items:center;text-align:center}
.rv-meta{display:flex;width:100%;justify-content:space-between;align-items:center;font:11px var(--pixel);opacity:.85;min-height:30px}
#rvTimer{font-size:28px}
.rv-track{height:4px;width:100%;background:#ffffff22;margin:10px 0 16px}.rv-track i{display:block;height:100%;width:100%;background:var(--gold,#ffc94d);transition:width .2s linear}
.rv-canvas-wrap{width:100%;display:flex;justify-content:center}
.rv-canvas-wrap canvas{max-width:100%;max-height:min(52vh,440px);width:auto;height:auto;background:#00000055;border-radius:6px;image-rendering:auto;box-shadow:0 0 0 2px #ffffff22}
.rv-answer{font-family:var(--pixel,monospace);font-size:26px;margin:16px 0 0;color:var(--gold,#ffc94d);word-break:break-word}
.rv-top{list-style:none;margin:12px auto 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:14px;text-align:left;min-width:220px}
.rv-top li{display:flex;gap:10px}.rv-top .rank{width:26px;color:var(--gold,#ffc94d)}.rv-top .name{flex:1}
.rv-pin{display:flex;gap:22px;align-items:center;justify-content:center;flex-wrap:wrap;padding:16px;margin-bottom:12px;background:#0003;border-radius:8px;width:100%}
.rv-join-text{display:flex;flex-direction:column;gap:4px;align-items:center}.rv-join-text b{font-size:18px}.rv-join-text strong{font:36px var(--pixel,monospace);letter-spacing:4px;color:var(--gold,#ffc94d)}
.rv-qr{width:150px;height:150px;background:#fff;padding:6px;border-radius:6px}.rv-qr svg{display:block;width:100%;height:100%}
.rv-stage.has-join .rv-canvas-wrap,.rv-stage.has-join .rv-track,.rv-stage.has-join .rv-meta{display:none}
.stage:fullscreen .rv-canvas-wrap canvas{max-height:70vh}
.stage:fullscreen .rv-answer{font-size:clamp(28px,4vw,60px)}
.stage:fullscreen .rv-top{font-size:clamp(16px,2vw,28px)}
.stage:fullscreen .round-controls{position:fixed;bottom:12px;right:12px;opacity:.25;transition:opacity .2s}.stage:fullscreen .round-controls:hover{opacity:1}
#toast{display:none;position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);z-index:50;background:#2d2b28;color:#f4d5a5;border:1px solid #8b724e;box-shadow:0 7px 25px #0003;padding:13px 22px;border-radius:6px;font-size:13px}
.league-tab.active,.period-tabs button.active{border-color:var(--accent)}

/* phone page */
body.gs-page{min-height:100vh;display:flex;flex-direction:column}
.gs{width:min(520px,100%);margin:0 auto;padding:16px;display:flex;flex-direction:column;gap:14px;flex:1}
.gs-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.gs-top .who{font-size:14px}
.gs-card{padding:22px;display:flex;flex-direction:column;gap:12px}
.gs-card.center{align-items:center;text-align:center}
.gs-card h1{font-size:28px;margin:0}
.gs-field{display:flex;flex-direction:column;gap:6px}
.gs-error{color:#ff6b7d;min-height:1.2em;margin:0;font-size:14px}
.gs-hero{font-size:46px}
.gs-timer{font:30px var(--pixel,monospace)}
.gs-bar{height:6px;background:#ffffff22}.gs-bar i{display:block;height:100%;width:100%;background:var(--gold,#ffc94d);transition:width .25s linear}
.gs-guess{display:flex;gap:10px}.gs-guess input{flex:1;font-size:18px}
.gs-tries{font-size:14px;color:var(--muted)}
.gs-top5{list-style:none;padding:0;margin:0;width:100%;display:flex;flex-direction:column;gap:6px;text-align:left}
.gs-top5 li{display:flex;gap:10px}.gs-top5 li.me{color:var(--gold,#ffc94d);font-weight:700}.gs-top5 .rank{width:28px}.gs-top5 .name{flex:1}
.gs-big{font:44px var(--pixel,monospace);color:var(--gold,#ffc94d)}
@media(max-width:700px){.rv-row{flex-wrap:wrap}.rv-pin{flex-direction:column}}

/* draw & guess */
.dr-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.dr-own{width:100%;resize:vertical;font-family:inherit;min-height:90px}
.dr-right{display:flex;flex-direction:column;gap:22px;min-width:0}
.dr-stage .dr-wrap,.dr-wrap{position:relative;width:min(100%,800px);aspect-ratio:4/3;margin:6px auto;background:#fff;border-radius:6px;box-shadow:0 0 0 2px #ffffff22;touch-action:none}
.dr-wrap canvas{position:absolute;inset:0;width:100%;height:100%;display:block;border-radius:6px}
.dr-wrap .draw-overlay{pointer-events:none;touch-action:none;background:transparent}
.dr-wrap .draw-overlay.active{pointer-events:auto;cursor:crosshair}
.dr-hint{font:clamp(18px,3vw,28px) var(--pixel,monospace);letter-spacing:3px;color:var(--gold,#ffc94d);margin:2px 0 6px;word-break:break-word;white-space:pre-wrap}
.dr-who{margin:0 0 2px;font-size:15px;opacity:.9}.dr-who-name{font-weight:700}
.dr-stage.has-join .dr-wrap,.dr-stage.has-join .dr-hint,.dr-stage.has-join .dr-who{display:none}
.dr-stage .dr-tools{width:100%}
.dr-control{padding:20px 22px}
.dr-ctl-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0}
.dr-ctl-row .field-label{margin:0}
.dr-ctl-row .input{flex:1;min-width:150px;max-width:340px}
.dr-choices{display:flex;gap:10px;flex-wrap:wrap}
.dr-choice{font-size:18px;padding:12px 22px}
.dr-word b{font-size:20px;letter-spacing:1px;color:var(--gold,#ffc94d)}
.dr-actions button{flex:0 0 auto}
.dr-preview{width:min(100%,280px);margin-top:6px}.dr-preview canvas{display:block;width:100%;height:auto;aspect-ratio:4/3;background:#fff;border-radius:4px}
.dr-players{margin-top:14px}.dr-person{align-items:center;gap:10px}.dr-person strong{flex:1}.dr-pen{color:var(--gold,#ffc94d)}
/* tool bar (streamer + phone) */
.dp-tools{display:flex;flex-direction:column;gap:6px;margin-top:8px;width:100%}
.dp-row{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center}
.dp-btn{min-width:40px;height:40px;padding:0 8px;background:#ffffff14;color:inherit;border:1px solid #ffffff33;border-radius:6px;cursor:pointer;font:inherit;font-size:18px;display:inline-grid;place-items:center}
.dp-btn.on{border-color:var(--gold,#ffc94d);background:#ffc94d33}
.dp-size i{display:block;background:currentColor;border-radius:50%}
.dp-swatch{width:30px;height:30px;border-radius:50%;border:2px solid #ffffff66;cursor:pointer;padding:0}
.dp-swatch.on{outline:3px solid var(--gold,#ffc94d);outline-offset:1px}
.dp-picker{width:38px;height:32px;padding:0;border:none;background:none;cursor:pointer}
.dp-fillbox{display:flex;gap:5px;align-items:center;font-size:13px;cursor:pointer}
.stage:fullscreen .dr-wrap{width:min(100%,calc((100vh - 300px) * 4 / 3))}
.stage:fullscreen .dr-hint{font-size:clamp(28px,4vw,56px)}
.stage:fullscreen .dr-tools{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);width:auto;max-width:96vw;background:#000a;padding:8px;border-radius:10px;opacity:.5;transition:opacity .2s}
.stage:fullscreen .dr-tools:hover,.stage:fullscreen .dr-tools:focus-within{opacity:1}
/* phone: drawing */
.gs-word{font:clamp(20px,6vw,30px) var(--pixel,monospace);letter-spacing:3px;text-align:center;color:var(--gold,#ffc94d);margin:0;word-break:break-word;white-space:pre-wrap;min-height:1.2em}
.gs-choices{display:flex;flex-direction:column;gap:10px;width:100%}.gs-choices button{font-size:20px;padding:16px}
.gs-card .dr-wrap{width:100%;margin:2px 0}
@media(max-width:700px){.dr-two{grid-template-columns:1fr}.dp-btn{min-width:38px;height:38px}.dp-swatch{width:28px;height:28px}}
/* the quiz "playful" style puts a chat column next to the stage; the game stages have no chat */
html[data-site-style] .rv-page .stage:not(.broadcast){display:flex;flex-direction:column}
.dp-picker{width:30px;height:30px;padding:0;border:2px solid #ffffff66;border-radius:50%;overflow:hidden;background:none;cursor:pointer}
.dp-picker::-webkit-color-swatch-wrapper{padding:0}.dp-picker::-webkit-color-swatch{border:none;border-radius:50%}.dp-picker::-moz-color-swatch{border:none;border-radius:50%}
