/* POLQUIZ 3.0 – independent playful quiz UI. Original brand, original answer pictograms. */
:root{--paper:#101629;--card:#1b2641;--ink:#f8f9ff;--forest:#baff72;--forest2:#d0ff9d;--copper:#8bb7ff;--sand:#283653;--line:#34425f;--muted:#b7c2d9;--pale:#273550;--radius:16px;--shadow:0 20px 50px rgba(2,7,22,.24)}
html{scroll-behavior:smooth}body{background:var(--paper);background-image:radial-gradient(ellipse at 75% -12%,rgba(87,85,170,.13),transparent 38%);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}
body, .panel{color:var(--ink)}h1,h2,h3,h4{font-family:inherit;font-weight:800;letter-spacing:-.045em}h1{font-size:clamp(3rem,5.4vw,5.9rem)}h2{font-size:clamp(1.85rem,3.1vw,3.1rem)}h1 em,h2 em{font-family:inherit;font-weight:850;font-style:normal;color:var(--forest)}
input,select,textarea{background:#131d34;color:#fff;border:1px solid #405073;border-radius:10px;accent-color:#baff72}input::placeholder,textarea::placeholder{color:#a5aec3}button,a{ -webkit-tap-highlight-color:transparent }button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #baff72;outline-offset:3px}
.btn{border-radius:11px;font-weight:800;min-height:44px}.btn-primary{background:var(--forest);color:#0d1932}.btn-primary:hover{background:#d1ff9a}.btn-secondary{background:#2a3653;border-color:#435171;color:#fff}.btn-secondary:hover{background:#354363}.btn-quiet{color:var(--ink)}.btn-danger-outline{color:#ffb6b6;border-color:#a46b80}.btn-large{min-height:54px;padding:15px 22px}.icon-button{color:#e7efff;background:#263450;border-color:#445572}.icon-button:hover{background:#374765}.section-kicker,.eyebrow{color:var(--forest);letter-spacing:.12em;font-size:.73rem}.muted{color:var(--muted)}.form-error{color:#ffabb3}.panel,.quiz-card{background:var(--card);border-color:var(--line);box-shadow:none}.toast{background:#baff72;color:#101629;font-weight:800}
/* Header / wordmark */
.site-header{min-height:84px;border-bottom:0;padding:15px 0}.brand{display:block;line-height:1}.brand img{display:block;width:185px;height:auto;max-height:62px;object-fit:contain;object-position:left}.top-nav{gap:22px}.nav-link,.nav-logout,.nav-name{color:#bec9df}.nav-link.active,.nav-link:hover,.nav-logout:hover{color:var(--forest)}.nav-name{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Hero + colorful actual quiz tile preview */
.hero{padding-top:63px;padding-bottom:97px;grid-template-columns:1.04fr .96fr;gap:54px;min-height:540px}.hero-copy{position:relative;z-index:2}.hero h1{font-size:clamp(3rem,5.5vw,6rem);line-height:1.07;margin:22px 0}.hero h1 em{background:linear-gradient(103deg,#baff72 5%,#65e2bb 47%,#8aaeff 93%);background-clip:text;-webkit-background-clip:text;color:transparent}.hero-lead{max-width:530px;color:#bac5da;font-size:1.07rem;line-height:1.77}.eyebrow{display:inline-flex;align-items:center;gap:10px;background:#243550;padding:8px 12px;border-radius:99px;font-size:.67rem}.mini-dot{width:7px;height:7px;border-radius:50%;background:var(--forest);box-shadow:0 0 0 4px #baff7224;display:inline-block;flex-shrink:0}.hero-actions{margin:30px 0 39px}.hero-stats{border:0;display:flex;gap:25px;color:#a7b5d0;font-size:.76rem;letter-spacing:0;font-weight:450;padding:0}.hero-stats span{white-space:nowrap}.hero-stats b{color:var(--forest);margin-right:6px;font-size:.75rem}
.hero-art{background:transparent;min-height:412px;border:0;border-radius:0;padding:18px 15px 23px 8px;display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate}.hero-art:before{display:none}.spark-decoration{position:absolute;right:0;top:-11px;font-size:2.6rem;color:var(--forest);line-height:1}.preview-card{width:min(100%,495px);max-width:none;background:#252f4c;color:#fff;border:1px solid #425075;border-radius:20px;transform:rotate(3deg);padding:22px 22px 16px;box-shadow:0 30px 55px #050b20a6}.preview-top,.preview-bottom{border:0;padding:0;display:flex;justify-content:space-between;align-items:center;color:#b7c5dc}.preview-label{display:flex;align-items:center;gap:6px;background:var(--forest);color:#13213b;font-weight:900;font-size:.65rem;border-radius:16px;padding:6px 11px;letter-spacing:.02em}.preview-label .mini-dot{width:6px;height:6px;background:#243550;box-shadow:none}.preview-time{background:#3e4b6c;color:white;border-radius:9px;padding:7px 12px;font-weight:900;font-size:.91rem;letter-spacing:0}.preview-kicker{font-size:.69rem;color:#b7c7e8;letter-spacing:.12em;margin:25px 0 9px}.preview-question{font-family:inherit;font-weight:800;font-size:clamp(1.1rem,2vw,1.55rem);letter-spacing:-.025em;line-height:1.31;margin-bottom:22px}.preview-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.preview-answers>div{min-height:61px;border:0;border-radius:9px;display:flex;align-items:center;gap:11px;font-size:.83rem;font-weight:850;padding:10px 13px;background:#e85b75;color:white}.preview-answers>div:nth-child(2){background:#4b83df;border:0}.preview-answers>div:nth-child(3){background:#d6a132;border:0}.preview-answers>div:nth-child(4){background:#18a78f;border:0}.preview-answers img{width:22px;height:22px;filter:brightness(0) invert(1)}.preview-answers span{margin-left:auto}.preview-bottom{margin-top:16px;border-top:0;font-size:.66rem;letter-spacing:0}.preview-winner{display:flex;align-items:center;gap:12px;background:#baff72;color:#13213b;padding:11px 18px;border-radius:15px;box-shadow:0 14px 26px #050b2075;position:absolute;bottom:7px;left:-16px;transform:rotate(-5deg);font-size:.85rem;max-width:90%}.preview-winner>span:first-child{font-size:1.6rem}.preview-winner>span:last-child{display:grid;gap:2px}.preview-winner small{font-size:.57rem;letter-spacing:.06em;font-weight:950}
/* Pin banner + benefits */
.join-strip{background:#1c2743;color:var(--ink);border-top:1px solid #2b3856;border-bottom:1px solid #2b3856}.join-inner{padding:48px 0;grid-template-columns:1fr .85fr}.join-inner h2{font-size:clamp(2rem,3.5vw,3.25rem);margin:9px 0 7px}.join-inner h2 em{color:var(--forest)}.join-inner p{color:#b1bdd4}.join-inner .section-kicker{color:var(--forest)}.home-join-form{background:#2d3a58;border:1px solid #425174;box-shadow:0 10px 30px #0d132845;border-radius:12px;padding:7px;color:#fff}.input-row{gap:8px}.input-row input{font-size:1.2rem;letter-spacing:.06em;border:0;background:transparent;color:white;min-height:51px}.input-row input:focus{outline:none}.features{padding:80px 0 99px}.features-heading{max-width:750px;margin-bottom:26px}.features h2{font-size:clamp(2rem,3.3vw,3.6rem)}.feature-grid{gap:17px}.feature{padding:24px 21px;background:#1a2540;border:1px solid #303f62;border-radius:16px}.feature-icon{font-family:inherit;font-style:normal;font-size:1.4rem;display:grid;place-items:center;width:50px;height:50px;background:#2d3b59;border-radius:13px;color:#baff72;margin-bottom:21px}.feature h3{font-family:inherit;font-size:1.12rem;font-weight:850}.feature p{color:#b6c0d6;font-size:.9rem}.site-footer{color:#929fb9}.site-footer strong{font-family:inherit;color:#fff;font-weight:950}.site-footer small{font-size:.59rem}
/* Studio and account management */
.admin-page,.host-page{padding-top:35px}.auth-wrap{margin:26px auto 85px}.auth-wrap h1,.dashboard-head h1{font-size:clamp(2.6rem,4.7vw,4.5rem)}.auth-wrap>p,.dashboard-head p{color:#bcc7d9}.auth-form{padding:29px}.dashboard-head{align-items:end}.studio-nav{border-color:var(--line)}.studio-tab{color:#aebbd4}.studio-tab.active{color:var(--forest);border-bottom-color:var(--forest)}.dashboard-tabs h2,.dialog-top h2,.editor-heading h3{font-family:inherit;font-weight:850}.subtle-count{color:var(--forest)}.quiz-card{min-height:265px;border-radius:16px}.quiz-card-icon{font-family:inherit;font-style:normal;color:var(--forest);font-weight:900}.quiz-card h3{font-family:inherit;font-weight:850}.quiz-card p{color:#b6bfd5}.quiz-card-meta{color:#bbff8b}.quiz-card-actions .btn-secondary{color:#fff}.empty-state{color:#b8c2d4}.history-item,.user-row{background:var(--card);border-color:var(--line);border-radius:11px}.history-item small,.user-row small{color:#a9b7d1}.status-pill{background:#293b56;color:#ceffc3}.status-pill.finished{background:#34405a;color:#d1d8ed}.section-hint{color:var(--muted)}.profile-card{padding:28px}
/* Forms / dialog / editor */
dialog{background:#111a30;color:#fff;border-color:#485775;border-radius:17px}dialog::backdrop{background:#030a1cbf}.dialog-top,.dialog-actions{background:#1c2842;border-color:#3e4b69}.dialog-top h2{font-family:inherit;font-weight:850}.question-block{background:#1d2a43;border-color:#445270;border-radius:13px}.option-edit{background:#293754;border:1px solid #41516e;border-radius:9px}.option-edit-top label{color:#e7edfa}.editor-tools button{color:var(--forest);border-color:#475674}.question-options input{background:#131e36}.question-block-bottom select{background:#17243b}.question-help{color:#bac5d9}.stat-row{border-color:#475570}
/* Host/Beamerscreen */
.play-heading{margin-bottom:24px}.play-heading h1{font-size:clamp(1.8rem,3.2vw,3.1rem);font-weight:950}.host-heading-tools{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.connection{color:#b7c5dc}.connection strong{color:var(--forest)}.live-dot{background:#baff72;box-shadow:0 0 0 4px #baff7233}.host-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.host-main{min-height:570px}.stage-top,.stage-footer{border-color:var(--line);color:#b8c6df}.stage-badge{background:#394a68;color:#e6efff;border-radius:99px}.stage-badge.active{background:var(--forest);color:#14213d}.stage-badge.end{background:#415277;color:#fff}.host-stage{padding:29px}.countdown{font-family:inherit;font-weight:950;font-size:2rem}.countdown.urgent{color:#ff7e91}.qr-panel,.side-board{background:#1b2641;border:1px solid var(--line);border-radius:16px}.qr-box{background:white;border:10px solid white;border-radius:12px;width:196px;height:196px}.side-label,.pin-label{color:#b2bfd8}.big-pin{font-family:inherit;font-size:2.85rem;font-weight:950;color:#baff72;letter-spacing:.12em}.side-board-title h3{font-family:inherit;font-weight:850}.rank-item{border-color:var(--line)}.rank-num{font-size:1.1rem;font-weight:900;font-family:inherit;font-style:normal;color:#bbff7f}.rank-item.is-me{background:#304366;color:#fff}.lobby-symbol,.big-emoji{font-family:inherit;color:var(--forest)}.host-lobby h2,.host-finished h2,.player-wait h2,.player-summary h2{font-family:inherit;font-weight:950}.host-lobby>p,.host-finished>p,.player-wait p,.player-summary p{color:#b4c2d9}.lobby-count{font-family:inherit;color:#baff72;font-weight:850}.nickname-chip{background:#2b3959;color:#fff;border-color:#4a5876;border-radius:99px}.host-question h2,.player-question h2{font-family:inherit;font-weight:950;font-size:clamp(1.45rem,2.4vw,2.35rem)}.question-meta{color:#baff72}.answer-grid{gap:11px}.answer-tile{position:relative;min-height:88px;border:2px solid transparent;border-left:2px solid transparent;border-radius:13px;padding:16px 17px;gap:15px;font-weight:850;font-size:clamp(.9rem,1.3vw,1.04rem);color:white;background:#e85b75;transition:transform .13s,box-shadow .15s,filter .15s;box-shadow:0 5px 0 rgba(0,0,0,.2)}.answer-tile:nth-child(2n){background:#4b83df;border-color:transparent}.answer-tile:nth-child(3n){background:#d6a132;border-color:transparent}.answer-tile:nth-child(4n){background:#18a78f;border-color:transparent}.answer-tile.answer-color-5{background:#7656bd;border-color:transparent}.tile-symbol{color:#fff;min-width:42px;width:42px;height:42px;display:grid;place-items:center;flex-shrink:0}.tile-symbol img{width:37px;height:37px;display:block;filter:brightness(0) invert(1)}.tile-option-label{flex:1;min-width:0}.answer-tile.revealed-correct{opacity:1;border-color:#d5ffa9;box-shadow:0 0 0 3px #baff7270,0 5px 0 rgba(0,0,0,.2)}.answer-tile.revealed-wrong{opacity:.37;filter:grayscale(.3)}.tile-check{color:#fff;font-size:1.4rem;font-weight:950}.answer-tile.interactive{cursor:pointer}.answer-tile.interactive:hover:not(:disabled){background:#e85b75;border-color:#fff;transform:translateY(-3px);box-shadow:0 8px 0 rgba(0,0,0,.19)}.answer-tile.interactive:nth-child(2n):hover:not(:disabled){background:#4b83df}.answer-tile.interactive:nth-child(3n):hover:not(:disabled){background:#d6a132}.answer-tile.interactive:nth-child(4n):hover:not(:disabled){background:#18a78f}.answer-tile.interactive:nth-child(5n):hover:not(:disabled){background:#7656bd}.answer-tile.player-choice{border-color:#fff;box-shadow:0 0 0 3px #baff72,0 5px 0 rgba(0,0,0,.25);filter:brightness(1.08)}.answer-tile.player-choice:hover:not(:disabled){border-color:#fff}.answer-results{gap:10px}.result-row{background:#2a3855;color:#fff;border-radius:10px}.bar-track{background:#17243e}.bar-fill{background:#8bb7ff}.result-row.correct .bar-fill{background:#baff72}.answer-progress{color:#bac4dc}.podium-row{border-color:var(--line)}.answer-note{background:#293a57;color:#edf5ff;border-left-color:#baff72;border-radius:10px}.answer-reveal{color:var(--forest)}.estimate-stat strong{font-family:inherit;color:#baff72;font-weight:950}
/* Player/mobile controls */
.player-info{color:#e1e8f6}.player-join{background:#1b2641}.player-join h1{font-size:clamp(2rem,6vw,3.2rem)}.player-join>p{color:#bdc9df}.player-score{color:var(--forest)}.player-content{min-height:380px}.player-summary .earned{font-family:inherit;font-weight:950;color:var(--forest)}.player-footer{color:#a8b8d2}.timer-track{background:#2d3c5c;border-radius:20px}.timer-fill{background:#baff72;border-radius:20px}.big-emoji{font-style:normal}.answer-submit{margin-top:18px}
/* Fullscreen on presentation display */
:fullscreen{background:#101629}body:has(:fullscreen) .host-main{min-height:600px}
@media (max-width:1040px){.hero{gap:28px}.host-layout{grid-template-columns:minmax(0,1fr) 260px}}
@media (max-width:790px){.hero{grid-template-columns:1fr;padding-top:28px;padding-bottom:75px;gap:26px}.hero-art{max-width:630px;width:100%;margin:auto}.hero-copy{max-width:700px}.join-inner{grid-template-columns:1fr;gap:22px}.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.host-layout{grid-template-columns:1fr}.host-sidebar{display:grid;grid-template-columns:1fr 1fr}.host-heading-tools{margin-top:10px}}
@media (max-width:580px){.site-header{min-height:64px;gap:10px}.brand img{width:135px;max-height:55px}.top-nav{gap:10px}.nav-link,.nav-logout{font-size:.74rem}.container{width:min(1200px,calc(100% - 30px))}.hero{padding-top:22px;padding-bottom:64px;gap:18px}.hero h1{font-size:clamp(2.75rem,10.4vw,4.1rem)}.hero-lead{font-size:1rem}.eyebrow{font-size:.57rem}.hero-stats{gap:9px;font-size:.68rem;flex-wrap:wrap}.hero-stats b{display:inline}.hero-art{min-height:335px;padding:20px 8px 24px}.preview-card{transform:rotate(1deg);padding:17px 14px}.preview-question{font-size:1.17rem}.preview-answers>div{min-height:54px;padding:8px 7px;font-size:.76rem;gap:6px}.preview-answers img{width:18px;height:18px}.preview-winner{bottom:-6px;left:0;font-size:.73rem}.join-inner{padding:39px 0}.home-join-form{padding:6px}.input-row{flex-direction:row}.input-row input{font-size:.96rem;min-height:45px}.input-row .btn{padding:9px 12px;font-size:.82rem}.features{padding:59px 0}.feature-grid{grid-template-columns:1fr}.feature{padding:17px}.feature-icon{margin-bottom:11px}.site-footer{flex-direction:column;align-items:start}.dashboard-head{gap:17px}.quiz-list{grid-template-columns:1fr}.studio-tools{flex-direction:column;align-items:stretch}.studio-tools input{max-width:none}.play-heading{align-items:start;flex-direction:column}.host-heading-tools{width:100%;justify-content:space-between}.host-main{min-height:490px}.host-stage{padding:18px 13px}.answer-grid{grid-template-columns:1fr;gap:8px}.answer-tile{min-height:65px;padding:11px 14px;font-size:.95rem;border-radius:11px}.tile-symbol{min-width:33px;width:33px;height:33px}.tile-symbol img{width:30px;height:30px}.host-sidebar{grid-template-columns:1fr}.player-content{padding:19px 15px}.player-info{flex-wrap:wrap;gap:8px}.player-page{padding-top:28px}.dashboard-tabs h2{font-size:1.5rem}.quiz-card{min-height:230px}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* polQuiz 4: freigeben statt sofort starten, flexible Zeit und änderbare Abgaben */
.host-controls{display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.host-controls .btn{white-space:normal}
.host-ready-panel{margin-top:20px;padding:17px 20px;border:1px solid #68729a;background:#243451;border-radius:14px}
.host-ready-panel p{margin:0 0 12px;line-height:1.6}
.host-ready-panel p:last-child{margin:10px 0 0}
.host-ready-panel label{display:block;font-weight:800;font-size:.88rem;margin-bottom:7px}
.host-ready-panel input{max-width:165px;font-size:1.1rem;font-weight:850;padding:12px}
.host-live-hint{margin-top:16px;color:#c9d7eb;font-size:.85rem}
.player-save-hint{margin:8px 0 17px;color:#cfecba;font-size:.89rem;font-weight:650}
.answer-tile.answer-color-5:hover:not(:disabled){background:#7656bd}
@media (max-width:580px){.host-controls{justify-content:stretch}.host-controls .btn{flex:1 1 150px}.host-ready-panel{padding:13px 15px}}

/* Moderations-Freigabe auch direkt neben der Zeitangabe */
.host-ready-panel{margin-top:12px;padding:14px 17px}
.host-ready-panel .ready-actions{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.host-ready-panel .ready-actions label{flex:0 1 230px;margin:0}
.host-ready-panel .ready-actions input{width:100%;max-width:175px;min-height:42px;padding:9px 12px}
.host-ready-panel .ready-actions .btn{min-height:43px}
.host-ready-panel p{margin-bottom:8px}
.host-stage{padding:22px}
.host-question h2{margin-bottom:18px}
.host-question .answer-tile{min-height:79px}
@media(max-width:580px){.host-ready-panel .ready-actions{align-items:stretch}.host-ready-panel .ready-actions label{flex:1 1 140px}}

/* polQuiz 4.1: sichtbare Auswahl, sofortige Speicherung ohne Bestätigungsbutton */
.answer-tile.interactive{transition:filter .12s,outline-color .12s,transform .12s,box-shadow .12s}
.answer-tile.interactive.player-choice,
.answer-tile.interactive.player-choice:hover:not(:disabled){
  outline:4px solid #f6ffda;outline-offset:-4px;border-color:#14213b;
  box-shadow:0 0 0 4px #baff72,0 8px 0 rgba(0,0,0,.32),inset 0 0 0 2px rgba(255,255,255,.72);
  filter:brightness(1.04);
}
.answer-tile.interactive:not(.player-choice){filter:saturate(.75) brightness(.83)}
.answer-tile.interactive:not(.player-choice):hover:not(:disabled){filter:brightness(1.08)}
.choice-flag{display:none;flex:0 0 auto;white-space:nowrap;padding:7px 10px;border-radius:8px;background:#fff;color:#172341;font-size:.72rem;font-weight:950;letter-spacing:.025em;margin-left:auto}
.answer-tile.player-choice .choice-flag{display:inline-flex;align-items:center;justify-content:center}
.player-save-hint{display:block;padding:10px 13px;border-radius:10px;border:1px solid #546483;background:#283755;color:#e6f0ff;font-weight:800;line-height:1.45;min-height:42px}
.player-save-hint[data-status="saved"]{background:#1c473c;border-color:#91f5ab;color:#efffed}
.player-save-hint[data-status="saving"]{background:#41402b;border-color:#dcc66d;color:#fff7ca}
.player-save-hint[data-status="error"]{background:#562d3c;border-color:#ffb7bd;color:#fff4f5}
.estimate-autosave{display:grid;gap:9px;max-width:550px}
.estimate-autosave label{font-size:1rem;font-weight:850;color:#fff}
.estimate-autosave input{font-size:1.7rem;min-height:65px;font-weight:800}
.estimate-autosave p{margin:2px 0 0;line-height:1.5}
@media(max-width:580px){.answer-tile.interactive{padding:12px 13px}.choice-flag{font-size:.67rem;padding:6px 8px}.answer-tile.interactive.player-choice{outline-width:3px;box-shadow:0 0 0 3px #baff72,0 5px 0 rgba(0,0,0,.3)}}

/* 4.2: 20 distinct participant avatars and mandatory between-question leaderboard */
.avatar-picker{margin:18px 0 19px;padding:14px 12px 13px;border:1px solid #55668b;border-radius:14px;min-width:0}
.avatar-picker legend{font-weight:850;color:#f0f5ff;padding:0 7px;font-size:.93rem}
.avatar-picked{display:inline-block;margin-left:7px;color:#baff72;font-size:.76rem;font-weight:650}
.avatar-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:8px}
.avatar-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative;cursor:pointer;padding:6px 2px;border:2px solid #465675;border-radius:11px;background:#263553;min-width:0;transition:background .14s,box-shadow .14s,border-color .14s}
.avatar-option input{position:absolute;width:1px;height:1px;opacity:0;top:50%;left:50%;pointer-events:none}
.avatar-option img{width:min(100%,65px);height:auto;aspect-ratio:1;display:block;transition:transform .12s}
.avatar-option .avatar-name{color:#dfe8fa;font-size:.66rem;font-weight:750;overflow-wrap:anywhere;text-align:center}
.avatar-option:has(input:checked){border-color:#baff72;background:#355272;box-shadow:0 0 0 2px #baff72}
.avatar-option:has(input:checked) .avatar-visual:after{content:'✓';position:absolute;top:4px;right:5px;background:#baff72;color:#11213a;font-size:.8rem;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;font-weight:950}
.avatar-option:has(input:focus-visible){outline:3px solid white;outline-offset:2px}
.avatar-option:hover{background:#395375}.avatar-option:hover img{transform:scale(1.05)}
.avatar-chip{display:inline-flex!important;align-items:center;gap:6px}.avatar-chip img{width:29px;height:29px;border-radius:50%}
.rank-item{display:flex;align-items:center;gap:10px;min-width:0}.rank-avatar{width:36px;height:36px;object-fit:contain;flex:0 0 36px;border-radius:50%;background:#263653}.rank-name{flex:1;min-width:0;overflow-wrap:anywhere}.rank-score{white-space:nowrap;margin-left:auto}.rank-gain{white-space:nowrap;color:#baff72;font-weight:800;font-size:.8rem}
.player-footer #player-nickname-label{display:inline-flex;align-items:center;gap:7px}.footer-avatar{width:28px;height:28px;vertical-align:middle}
.player-wait-avatar{display:flex;justify-content:center}.player-wait-avatar img{width:100px;height:100px}
.scoreboard-stage{width:100%;max-width:880px;margin:0 auto;text-align:center}
.scoreboard-stage h2{font-size:clamp(1.65rem,3vw,2.6rem);margin:7px 0 9px;color:#fff}
.scoreboard-intro{color:#b8c8e1;font-size:.9rem;margin:0 auto 22px;max-width:530px}
.scoreboard-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 20px}
.scoreboard-top-card{min-width:0;display:flex;align-items:center;flex-direction:column;gap:5px;background:#2c3d5c;border:1px solid #526487;border-radius:16px;padding:15px 9px;position:relative}
.scoreboard-top-card img{width:clamp(56px,7vw,98px);height:auto;aspect-ratio:1}.scoreboard-rank{font-size:1.35rem;color:#baff72}.scoreboard-name{font-weight:950;font-size:.96rem;overflow-wrap:anywhere}.scoreboard-points{font-weight:900;font-size:1.09rem}.scoreboard-gain{font-size:.78rem;color:#baff72;font-weight:850}
.score-place-1{background:#3b4660;border-color:#fbe18b;box-shadow:inset 0 4px 0 #ffcf65}.score-place-2{box-shadow:inset 0 4px 0 #b7c8df}.score-place-3{box-shadow:inset 0 4px 0 #d69d7f}
.scoreboard-all{display:grid;gap:6px;max-height:355px;overflow:auto;text-align:left;padding-right:3px}.scoreboard-all .rank-item{border-radius:9px;padding:8px 10px;background:#263550;border:1px solid #455677}.scoreboard-all .rank-item.is-me{background:#325a6b;border-color:#baff72}
.waiting-note{color:#e3f4ca;text-align:center;border:1px solid #536786;border-radius:10px;background:#253653;padding:12px 15px;margin:17px auto;max-width:580px}
.host-stage:has(.scoreboard-stage){display:block}.host-stage .scoreboard-all{max-height:290px}
.player-content:has(.scoreboard-stage){display:block;max-width:100%}
@media(max-width:580px){.avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.avatar-option img{width:min(100%,57px)}.avatar-option .avatar-name{font-size:.6rem}.scoreboard-top{gap:6px}.scoreboard-top-card{padding:11px 3px;gap:4px;border-radius:11px}.scoreboard-top-card img{width:clamp(46px,13vw,70px)}.scoreboard-name{font-size:.75rem}.scoreboard-points{font-size:.84rem}.scoreboard-rank{font-size:1rem}.scoreboard-intro{font-size:.79rem}.rank-item{gap:6px}.rank-avatar{width:30px;height:30px;flex-basis:30px}.rank-name{font-size:.8rem}.rank-gain{font-size:.7rem}.scoreboard-all .rank-item{padding:7px 5px}}

/* polQuiz 4.3 – Teamspiel, Teameditor und faire Zwischenrangliste */
.mode-config{margin:22px 0 25px;padding:20px;border:1px solid #4e6485;border-radius:13px;background:#202f4b}
.mode-config>label{font-size:1rem;font-weight:900}.mode-config-row{display:flex;align-items:center;gap:16px;margin:18px 0}.mode-config-row label{flex:0 0 180px}.mode-config-row p{flex:1;line-height:1.5;margin:0}
.team-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:13px}.team-editor-row{display:grid;grid-template-columns:1fr 1.8fr .9fr;gap:8px;align-items:end;border:1px solid #3e5375;border-radius:10px;background:#15243e;padding:12px}.team-editor-row strong{align-self:center;color:#baff72}.team-editor-row label{font-size:.75rem;margin:0;min-width:0}.team-editor-row input{min-width:0}
.team-picker{border:1px solid #62739b;border-radius:12px;padding:15px 12px 12px;margin:5px 0 18px}.team-picker legend{font-size:1rem;font-weight:900;color:#e7ffca;padding:0 6px}.team-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.team-choice{position:relative;display:flex;align-items:center;gap:10px;background:#233652;border:2px solid #566786;border-radius:11px;padding:12px 11px;font-weight:750;cursor:pointer;margin:0;min-width:0}.team-choice:has(input:checked){border-color:#baff72;background:#2a503e;box-shadow:0 0 0 2px #baff7277}.team-choice input{width:20px;min-height:20px;height:20px;flex:0 0 20px;accent-color:#baff72;margin:0}.team-choice span{min-width:0}.team-choice strong{display:block;overflow-wrap:anywhere}.team-choice small{display:block;color:#cbd8e9;font-size:.71rem;font-weight:500}.team-choice.is-full{opacity:.56;cursor:not-allowed}.player-team-banner{margin:12px 0!important;background:#263d56;border:1px solid #6c8b7d;border-radius:8px;padding:9px 12px;color:#e9fcd7!important}
.host-teams-panel{padding:18px}.host-teams-panel h3{margin:0 0 8px;font-size:1.17rem}.host-teams-panel>p{margin-bottom:12px}.host-teams-panel h4{font-size:.9rem;margin:20px 0 8px;color:#baff72}.host-team-list{display:grid;gap:10px}.host-team-entry{display:grid;grid-template-columns:20px minmax(0,1fr) 75px;gap:7px;align-items:end;border:1px solid #3e5277;border-radius:10px;padding:10px;background:#15233a}.host-team-entry>strong{align-self:center}.host-team-entry>label{font-size:.72rem;min-width:0;margin:0}.host-team-entry input{min-width:0;width:100%;min-height:35px;padding:6px 7px;font-size:.8rem}.host-team-entry>small{grid-column:2;font-size:.72rem;color:#bcd2df}.host-team-entry>button{grid-column:3;grid-row:2;padding:3px 6px;min-height:32px}.host-team-roster{margin:11px 0 14px}.host-team-roster>strong{color:#e5f7ff;font-size:.84rem}.host-team-roster>strong small{color:#b1bfd7;font-weight:500}.host-team-roster>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.host-player-chip{display:flex;align-items:center;gap:5px;background:#283d58;border:1px solid #506381;border-radius:99px;padding:4px 7px;font-size:.72rem;max-width:100%}.host-player-chip>img{width:23px;height:23px;border-radius:50%}.host-player-chip>button{border:0;background:#692f45;color:#fff;border-radius:50%;width:21px;height:21px;font-size:1rem;line-height:1;padding:0}.host-team-list+button{margin:10px 0}
.team-member-avatars{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;max-width:100%}.team-member{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;max-width:62px;flex:0 1 auto}.team-member img{width:38px!important;height:38px!important;object-fit:contain}.team-member>span{font-size:.64rem;color:#dfe9f8;overflow:hidden;text-overflow:ellipsis;max-width:60px;white-space:nowrap}.team-extra{font-size:.75rem;font-weight:900;color:#baff72}.scoreboard-top-card .team-member-avatars{min-height:70px;gap:3px}.scoreboard-top-card .team-member img{width:clamp(27px,3vw,44px)!important;height:clamp(27px,3vw,44px)!important}.scoreboard-top-card .team-member>span{font-size:.61rem;max-width:54px}.team-rank .team-member>span{display:none}.team-rank .team-member img{width:27px!important;height:27px!important}.team-rank .rank-name{min-width:65px}.team-rank .rank-name small{display:block;color:#bac5d7;font-size:.65rem}
@media(max-width:1050px){.team-edit-grid{grid-template-columns:1fr}.host-teams-panel{padding:15px}}
@media(max-width:580px){.mode-config{padding:13px}.mode-config-row{flex-direction:column;align-items:stretch}.mode-config-row label{flex:auto}.team-editor-row{grid-template-columns:1fr 1fr}.team-editor-row>strong{grid-column:1/-1}.team-choice-grid{grid-template-columns:1fr}.scoreboard-top-card .team-member{max-width:32px}.scoreboard-top-card .team-member img{width:27px!important;height:27px!important}.scoreboard-top-card .team-member>span{display:none}.scoreboard-top-card .team-member-avatars{min-height:40px}.team-rank .team-member img{width:21px!important;height:21px!important}.team-rank .team-member{max-width:21px}}
.team-members-names{font-size:.66rem;line-height:1.3;color:#e8f4ff;overflow-wrap:anywhere;display:block;text-align:center;max-width:100%;padding:0 4px}.scoreboard-top-card:has(.team-member-avatars){gap:5px}.team-rank .rank-name small{white-space:normal;line-height:1.3;overflow-wrap:anywhere}
@media(max-width:580px){.scoreboard-top-card .team-members-names{font-size:.57rem;line-height:1.25}.team-rank .rank-name small{font-size:.62rem}.team-rank .team-member-avatars{max-width:55px}}
/* Zwei Teams nutzen die volle Breite statt des dreispaltigen Solo-Podests. */
.scoreboard-top:has(> .scoreboard-top-card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.scoreboard-top:has(> .scoreboard-top-card:nth-child(1):last-child){grid-template-columns:minmax(0,1fr);max-width:350px;margin-inline:auto}

/* polQuiz 4.4: sichere Wiederaufnahme und klare Anwesenheit */
.rejoin-section{margin-top:18px;padding-top:17px;border-top:1px solid #475c79}
.rejoin-form{display:grid;gap:9px;margin-top:13px;padding:13px;border:1px solid #63799a;background:#1b2e4a;border-radius:12px}
.rejoin-form label{font-weight:850;font-size:.84rem}
.rejoin-form input{width:100%;min-width:0}
.rejoin-form .form-error{margin:0}
.recovery-access{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:13px 0 6px;border:1px solid #4c7593;border-radius:13px;background:#213753;padding:12px 15px}
.recovery-access>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.recovery-access small{color:#c9d7ef;font-size:.7rem}
.recovery-access strong{font-size:clamp(1rem,4vw,1.4rem);letter-spacing:.13em;font-weight:900;color:#d5ff9d;overflow-wrap:anywhere}
.host-presence-panel{padding:15px}.host-presence-panel h3{margin:0 0 9px}.host-presence-panel>div{display:flex;flex-wrap:wrap;gap:7px}
.host-player-chip.is-offline,.nickname-chip.is-offline{opacity:.67;filter:grayscale(.35)}
.presence-tag{white-space:nowrap;border-radius:100px;font-size:.64rem;font-weight:850;padding:3px 6px}
.presence-tag.is-online{background:#255541;color:#c1fac6}.presence-tag.is-away{background:#554750;color:#ffcfbd}
@media(max-width:580px){.recovery-access{flex-direction:column;align-items:stretch}.recovery-access button{width:100%}}

/* 4.5: Eindeutige Teamkonfiguration vor jeder Runde */
.launch-dialog{max-width:900px;width:min(900px,calc(100% - 24px))}
.launch-dialog .dialog-body{max-height:min(70vh,690px);overflow-y:auto}
.launch-quiz-heading{font-size:1.18rem;margin:5px 0 12px;color:#fff}
.launch-mode-panel{border:2px solid #baff72;margin:20px 0 14px}
.launch-preview-note{background:#1e4b3e;border:1px solid #a9f0ae;border-radius:10px;color:#ecffec;padding:12px 16px;font-size:.91rem;font-weight:800}
.join-mode-status{background:#283c5d;border:1px solid #6b90b5;border-radius:10px;padding:12px 14px;font-size:.9rem;font-weight:900;color:#d1fbb8}
.lobby-mode{font-size:.82rem;font-weight:900;letter-spacing:.12em;color:#c0fc8b}
.lobby-teams{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:12px auto}
.lobby-teams span{background:#253852;color:#dff5c8;border:1px solid #51688a;border-radius:9px;padding:7px 10px;font-size:.82rem;font-weight:850}
@media(max-width:580px){.launch-dialog .dialog-body{padding:16px}.launch-dialog .dialog-actions{gap:8px}.launch-dialog .dialog-actions .btn{min-width:0}.launch-mode-panel{padding:13px}}

/* Version 4.6: Teilnehmerdetails und deutlich anklickbare Personen in der rechten Leiste. */
.host-player-select{appearance:none;cursor:pointer;color:#f4f7ff;font:inherit;text-align:left;width:auto;min-height:39px;border:1px solid #657d9d;transition:border-color .15s,background .15s}
.host-player-select:hover,.host-player-select:focus-visible{background:#3e526e;border-color:#c4f58b;outline:2px solid #c4f58b;outline-offset:1px}
.host-player-select>span:last-child{margin-left:auto;color:#d6eeff;font-size:1.15rem}
.host-player-detail{padding:16px;border:1px solid #90b4c8;background:linear-gradient(155deg,#1c304f,#13223b)}
.host-player-detail-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.host-player-detail-top h3{margin:0 0 12px;font-size:1.05rem}
#host-player-detail-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:7px 0 12px}
#host-player-detail-identity>img{width:46px;height:46px;border-radius:50%;flex:0 0 auto}
#host-player-detail-identity>strong{font-size:1.07rem;overflow-wrap:anywhere}
.host-recovery-code{background:#0b1a33;color:#d8ffa1;border:1px solid #87bd86;border-radius:12px;padding:15px 8px;text-align:center;font-size:clamp(1.1rem,2.1vw,1.5rem);font-weight:900;letter-spacing:.12em;overflow-wrap:anywhere;user-select:all}
.host-player-detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
.host-player-detail-actions>.btn{flex:1 1 132px;white-space:normal}
.host-player-detail .icon-button{min-width:30px;min-height:30px}

/* Version 4.7: Kontosperre & Rechtliche Angaben */
.account-locked,.legal-editor{padding:clamp(18px,3vw,35px);max-width:850px;margin-inline:auto}.account-locked{border:2px solid #eea96e;background:#342839;color:#fff}.account-locked h1{font-size:clamp(2rem,4vw,3.4rem);margin:14px 0}.account-locked .muted{color:#e7cee1}.account-locked p{line-height:1.7}.blocked-reason{display:block!important;color:#ffc491!important;margin-top:6px;max-width:550px;overflow-wrap:anywhere}.user-row .user-actions{flex-wrap:wrap}.legal-editor form{display:grid;gap:12px;max-width:600px;margin-top:18px}.legal-editor label{display:block}.legal-page{padding:65px 0 105px;max-width:900px}.legal-page h1{font-size:clamp(2.4rem,5vw,4.5rem);margin:10px 0 32px}.legal-paper{padding:clamp(18px,4vw,42px);line-height:1.75}.legal-paper h2{font-size:1.4rem;margin:32px 0 10px;line-height:1.2}.legal-paper p{overflow-wrap:anywhere}.legal-paper a{text-decoration:underline;color:#83c7e9}.legal-warning{border:2px solid #dba365;background:#3f3339;color:#fff;padding:15px 18px;border-radius:12px;margin-bottom:22px}.legal-footer-links{display:flex!important;gap:15px;flex-wrap:wrap}.legal-footer-links a{font-weight:750;text-decoration:underline}.site-footer{flex-wrap:wrap}

/* polQuiz 4.9 – Medien, Testmodus, Pause und Siegerpodest */
.media-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px;margin:18px 0}
.media-card{display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid rgba(255,255,255,.18);border-radius:15px;background:rgba(255,255,255,.055);min-width:0}
.media-card>img{height:125px;width:100%;object-fit:contain;background:rgba(255,255,255,.1);border-radius:8px}
.media-card strong{overflow-wrap:anywhere}.media-card small{opacity:.8}
.media-upload-button,.media-inline-upload{cursor:pointer}
.media-track{height:9px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden;margin:10px 0 14px}
.media-track>div{height:100%;width:0;background:#39d5aa;transition:width .3s}
.media-editor-control{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 14px;padding:9px 11px;border:1px dashed rgba(255,255,255,.3);border-radius:12px}
.media-editor-control>label:first-child{flex:1 1 175px}.media-editor-control select{max-width:100%}
.media-editor-thumbnail{width:88px;height:66px;object-fit:contain;border-radius:8px;background:#fff}
.media-inline-upload{padding:8px 10px;border-radius:9px;border:1px solid currentColor;font-weight:700;font-size:.85em}
.question-picture{display:block;width:min(100%,620px);max-height:275px;object-fit:contain;margin:12px auto 22px;border-radius:12px;background:rgba(255,255,255,.1)}
.answer-picture{display:block;width:100%;height:110px;object-fit:contain;margin:2px auto 9px;border-radius:9px;background:rgba(255,255,255,.08)}
.preview-test-stage{min-height:280px}.preview-test-stage h2{font-size:clamp(1.5rem,3vw,2.3rem)}
.preview-countdown{font-size:1.1rem;font-weight:800;color:#29dcc6}
.preview-answers-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.preview-answer{min-height:100px;border:2px solid rgba(255,255,255,.2);border-radius:13px;background:#1f345d;color:#fff;font-size:1rem;font-weight:750;cursor:pointer;padding:12px}
.preview-answer img{display:block;max-height:120px;max-width:100%;margin:auto auto 10px;object-fit:contain}
.preview-answer.preview-selected{border:4px solid #d0ff66;background:#20565b}
.preview-answer.preview-correct{box-shadow:inset 0 0 0 4px #d0ff66}
.pause-banner{background:#ffecbb;color:#402c09;padding:12px 15px;border-radius:12px;font-weight:700;margin:14px 0}
.final-podium{display:flex;align-items:flex-end;justify-content:center;gap:12px;margin:25px auto 32px;max-width:760px}
.podium-person{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;animation:podium-rise .6s ease-out backwards}
.podium-person>img{height:76px;width:76px;object-fit:contain}
.podium-person strong{font-size:clamp(.8rem,2vw,1.3rem);overflow-wrap:anywhere}
.podium-person>span{font-size:.9rem}
.podium-column{background:linear-gradient(160deg,#25d7c1,#185f91);color:#fff;font-size:2rem;font-weight:900;width:100%;border-radius:12px 12px 0 0;display:flex;align-items:center;justify-content:center;min-height:120px}
.podium-place-1{order:2;animation-delay:.4s}.podium-place-2{order:1;animation-delay:.2s}.podium-place-3{order:3;animation-delay:.6s}
.podium-place-1 .podium-column{min-height:190px;background:linear-gradient(160deg,#ffcd44,#d79222)}
.podium-place-2 .podium-column{min-height:150px;background:linear-gradient(160deg,#bccce7,#576b94)}
.podium-place-3 .podium-column{min-height:115px;background:linear-gradient(160deg,#d9a26b,#98633f)}
@keyframes podium-rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){.podium-person{animation:none}}
@media(max-width:520px){.preview-answers-grid{grid-template-columns:1fr}.final-podium{gap:5px}.podium-person>img{width:50px;height:50px}.podium-column{font-size:1.3rem}.podium-place-1 .podium-column{min-height:135px}.podium-place-2 .podium-column{min-height:105px}.podium-place-3 .podium-column{min-height:80px}}

/* polQuiz 4.9.1 – Teams zuerst bei QR-Beitritt; keine doppelte Modus-Anweisung. */
.player-join .team-picker{margin:0 0 18px;padding:18px 14px 14px;border:2px solid #829ac2;background:#182d48}
.player-join .team-picker legend{font-size:1.13rem;color:#fff;letter-spacing:.01em}
.player-join .team-choice{min-height:68px}
.player-join .team-choice:has(input:checked){border-color:#baff72;background:#245044;box-shadow:0 0 0 2px #baff7277}
.player-join .team-choice:has(input:checked)::after{content:'✓';display:grid;place-items:center;margin-left:auto;background:#baff72;color:#14273d;font-size:.84rem;font-weight:950;border-radius:50%;width:23px;height:23px;flex-shrink:0}
.player-join .join-auto-note{background:#203d50;border:1px solid #527d86;color:#e0f4ed;border-radius:10px;padding:10px 13px;font-size:.87rem;margin:0 0 15px}
.player-join .player-join-intro>p{color:#bdc9df;margin-bottom:20px}
.player-join #player-pin-field input{margin-bottom:13px}
@media(max-width:580px){.player-join .team-picker{padding:15px 10px 12px}.player-join .team-choice{min-height:62px}}

/* 4.9.2: Beamerfreundliche Vorbereitungsphase ohne Frageninhalt. */
.host-ready-only{width:100%;text-align:center;max-width:780px;margin-inline:auto;}
.host-ready-only h2{font-size:clamp(2rem,4.5vw,3.8rem);line-height:1.18;margin:18px auto 16px;overflow-wrap:anywhere;}
.host-ready-only>.muted{font-size:1.05rem;}
.host-ready-only .host-ready-panel{text-align:left;margin:30px auto 0;max-width:650px;}
.host-ready-only .ready-actions{justify-content:center;}
@media(max-width:580px){.host-ready-only h2{font-size:2rem;}.host-ready-only .host-ready-panel{margin-top:20px;}}

/* polQuiz 4.9.4 – Antwortkacheln passen sich ihrem Inhalt an.
   Auf Beamer und Telefon weder starre Rasterbreiten noch unnötig hohe Felder.
   Mindestgrößen erhalten die Bedienbarkeit auf Touchgeräten. */
.host-question .answer-grid,
.player-question .answer-grid {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:center;
  gap:12px;
}
.host-question .answer-tile,
.player-question .answer-tile {
  box-sizing:border-box;
  flex:0 1 auto;
  width:fit-content;
  min-width:min(100%,180px);
  max-width:100%;
  min-height:60px;
  height:auto;
  padding:11px 15px;
  gap:11px;
}
.host-question .tile-symbol,
.player-question .tile-symbol {min-width:32px;width:32px;height:32px}
.host-question .tile-symbol img,
.player-question .tile-symbol img {width:29px;height:29px}
.host-question .tile-option-label,
.player-question .tile-option-label {
  flex:0 1 auto;
  max-width:min(44ch, 375px);
  white-space:normal;
  overflow-wrap:anywhere;
}
.host-question .answer-picture,
.player-question .answer-picture {
  display:block;
  width:auto;
  max-width:min(100%,220px);
  height:auto;
  max-height:120px;
  object-fit:contain;
  margin:0 0 8px;
}
/* Gleiche kompakte Antwortdarstellung im lokalen Quiz-Testmodus. */
.preview-answers-grid {display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:12px}
.preview-answer {
  box-sizing:border-box;
  flex:0 1 auto;
  width:fit-content;
  min-width:min(100%,170px);
  max-width:100%;
  min-height:60px;
  padding:12px 16px;
  overflow-wrap:anywhere;
  text-align:left;
}
.preview-answer img {width:auto;height:auto;max-width:min(100%,220px);max-height:120px}
/* Auch die Demo auf der Startseite zeigt kompakte Antworten. */
.preview-answers {display:flex;flex-wrap:wrap;justify-content:center;gap:9px}
.preview-answers>div {box-sizing:border-box;flex:0 1 auto;width:fit-content;min-width:min(100%,128px);min-height:49px}
@media(max-width:580px) {
  .host-question .answer-grid,.player-question .answer-grid,.preview-answers-grid {gap:10px}
  .host-question .answer-tile,.player-question .answer-tile {min-height:56px;padding:10px 13px}
}

/* polQuiz 4.9.5 – Die GESAMTE Antwortflaeche richtet sich nach ihrem Inhalt.
   Das alte min-height von 570/490px und das Strecken der linken Grid-Spalte
   auf die Hoehe der rechten Verwaltungsspalte liessen die Moderationsknopfe
   unnoetig weit nach unten rutschen. Einzelne Antwortkacheln bleiben wie sie sind. */
.host-main:has(.host-question) {
  min-height: 0;
  height: auto;
  align-self: start; /* nicht auf die Hoehe der (oft sehr hohen) Seitenleiste strecken */
}
.host-main:has(.host-question) > .host-stage {
  display: block;  /* statt zentrierendem Grid mit auffuellender Hoehe */
  flex: 0 0 auto;  /* keine Resthoehe oberhalb der Steuertasten erzeugen */
  min-height: 0;
}
/* Im Vollbild darf die alte 600px-Mindesthoehe nicht wieder greifen. */
body:has(:fullscreen) .host-main:has(.host-question) {
  min-height: 0;
}
/* Auch beim Teilnehmer keine kuenstliche Hoehe rund um die Antworten. */
.player-content:has(.player-question) {
  min-height: 0;
  display: block;
}
/* Die lokale Testfrage soll ebenfalls nicht unnoetig hoch wirken. */
.preview-test-stage:has(.preview-answers-grid) {
  min-height: 0;
}


/* polQuiz 4.9.6 – content-first layout for ALL game phases.
   The surrounding host card must not inherit the height of the sidebar.
   This applies to lobby, ready, question, paused question, reveal,
   between-question scoreboard and final result, including fullscreen. */
.host-layout {
  align-items: start;
}
.host-main,
body:has(:fullscreen) .host-main {
  min-height: 0;
  height: auto;
  align-self: start;
}
.host-main > .host-stage {
  flex: 0 0 auto;
  display: block;
  min-height: 0;
}
.host-sidebar {
  align-self: start;
  align-content: start;
}
/* At tablet widths the sidebar becomes a two-column grid: a short card
   should not grow to the height of another card in the same grid row. */
.host-sidebar > .panel {
  align-self: start;
  min-height: 0;
}
/* Smartphones: waiting, scoreboard and results grow only with content. */
.player-content {
  min-height: 0;
  display: block;
}
/* Editorial content cards and solo test stage should not reserve blank space. */
.quiz-list { align-items: start; }
.quiz-card { min-height: 0; }
.tab-panel { min-height: 0; }
.preview-test-stage { min-height: 0; }
