:root{--red:#e52330;--red-dark:#ba1823;--blue:#1f2ade;--blue-dark:#1822b4;--medal-gold:#d6a229;--ink:#18233d;--muted:#5c6680;--line:#dce2ef;--paper:#fff;--bg:#f5f7fc;--radius:22px}
/* Presenter final screen contains only placements. Phones also get the bonus. */
.results-mode .page{max-width:1200px;padding:clamp(20px,5vw,70px) 24px;min-height:100vh;display:grid;align-items:center}
.results-mode .player-grid,.results-mode .presenter-grid{display:block}
.results-mode .game-card{border:0;background:transparent;overflow:visible}
.results-mode .stage{min-height:0;padding:0}
.final-standings{width:100%;max-width:1020px;margin:auto}
.final-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:end;margin-bottom:28px}
.podium-place{background:white;border:1px solid var(--line);border-radius:20px 20px 8px 8px;padding:28px 16px 36px;box-shadow:0 10px 35px #18233d08;min-width:0}
.podium-rank-1{grid-column:2;grid-row:1;border-color:var(--medal-gold);border-top:7px solid var(--medal-gold);padding-top:50px;padding-bottom:76px;background:linear-gradient(180deg,#fffaf0,white)}
.podium-rank-2{grid-column:1;grid-row:1;border-top:7px solid #b7bfc9;padding-bottom:48px}
.podium-rank-3{grid-column:3;grid-row:1;border-top:7px solid #b97542;padding-bottom:28px}
.podium-count-1{grid-template-columns:minmax(0,440px);justify-content:center}
.podium-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.podium-count-1 .podium-place,.podium-count-2 .podium-place{grid-column:auto;grid-row:auto}
.final-player{min-width:0;overflow-wrap:anywhere}
.podium-player{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:8px}
.podium-player+.podium-player{margin-top:24px;border-top:1px solid var(--line);padding-top:24px}
.final-rank{display:flex;align-items:center;justify-content:center;gap:12px;font-size:26px;font-weight:850;font-variant-numeric:tabular-nums}
.final-medal{font-size:48px;line-height:1.15}
.final-name{font-size:clamp(18px,2.3vw,29px);line-height:1.25;max-width:100%}
.final-score{font-size:clamp(24px,3.5vw,42px);font-weight:850;color:var(--red);font-variant-numeric:tabular-nums}
.final-list{padding:0;margin:0;list-style:none;display:grid;gap:10px}
.final-list .final-player{display:grid;grid-template-columns:55px minmax(0,1fr) auto;gap:18px;align-items:center;background:white;padding:16px 22px;border:1px solid var(--line);border-radius:12px}
.final-list .final-rank{font-size:22px;color:var(--muted)}
.final-list .final-name{font-size:20px}
.final-list .final-score{font-size:26px}
.final-me{outline:2px solid var(--blue);outline-offset:4px;border-radius:10px}
@media(max-width:600px){.results-mode .page{padding:28px 14px}.final-podium{gap:8px;margin-bottom:18px}.podium-place{padding:18px 5px 22px;border-radius:14px 14px 6px 6px}.podium-rank-1{padding-top:32px;padding-bottom:52px}.podium-rank-2{padding-bottom:32px}.podium-rank-3{padding-bottom:18px}.podium-player{padding:4px;gap:10px}.final-rank{font-size:18px;gap:4px;flex-wrap:wrap}.final-medal{font-size:34px}.final-name{font-size:16px}.final-score{font-size:23px}.final-list .final-player{grid-template-columns:28px minmax(0,1fr) auto;gap:12px;padding:14px}.final-list .final-name{font-size:17px}.final-list .final-score{font-size:22px}}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a{color:var(--red)}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,audio:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;border-top:5px solid var(--red);border-bottom:1px solid var(--line);background:white;gap:20px}.brand{font-size:22px;font-weight:800;letter-spacing:-.7px;text-decoration:none;color:var(--ink);display:flex;align-items:center;gap:12px}.brand-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:var(--red);color:white;font-size:20px;letter-spacing:-2px}.brand-dot{font-size:12px;color:var(--blue);margin-left:0}.top-label,.eyebrow{font-size:13px;font-weight:750;letter-spacing:1.6px;color:var(--red)}.top-label{color:var(--muted)}.text-link{border:0;padding:5px 0;background:none;text-decoration:none;font-size:14px;font-weight:650;color:var(--muted)}.text-link:hover{color:var(--red)}
.page{max-width:1320px;margin:auto;padding:44px 36px 28px}.entry-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:80px;align-items:center;min-height:calc(100vh - 235px);max-width:1100px;margin:auto}.intro h1{font-size:clamp(60px,7vw,102px);line-height:1.02;letter-spacing:-6px;margin:24px 0 26px;color:var(--red);font-weight:850}.intro .or{font-size:.55em;font-style:italic;font-family:Georgia,serif;font-weight:400;letter-spacing:-2px;color:var(--muted)}.human-word{color:var(--blue)}.intro-copy{font-size:23px;line-height:1.5;color:var(--ink);margin:0 0 28px}.rule-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.rule-pills span{font-size:13px;padding:7px 12px;background:white;border:1px solid var(--line);border-radius:20px;white-space:nowrap}.small{font-size:14px;color:var(--muted);line-height:1.55}.entry-card{padding:34px 36px;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 35px #18233d05;border-top:5px solid var(--red)}.card-topline{display:flex;align-items:center;justify-content:space-between;gap:16px}.step-mark{font-size:14px;color:var(--blue);border:1px solid #cdd5ff;border-radius:50%;width:34px;height:34px;display:grid;place-items:center}.entry-card h2{font-size:26px;line-height:1.25;letter-spacing:-.8px;margin:20px 0 26px}.entry-card label{display:block;font-size:14px;font-weight:650;margin:20px 0 8px}input:not([type=range]){display:block;width:100%;padding:14px 16px;border:1px solid #ccd5e7;border-radius:10px;background:#fcfbfc;color:var(--ink);min-width:0}input::placeholder{color:#94868b}.code-input{text-transform:uppercase;font-size:25px!important;font-weight:750;letter-spacing:6px}.primary,.secondary{border-radius:10px;padding:13px 22px;font-weight:750;font-size:15px;min-height:48px}.primary{border:1px solid var(--red);background:var(--red);color:white}.primary:hover:not(:disabled){background:var(--red-dark)}.secondary{background:white;border:1px solid #ccd5e7;color:var(--ink)}.secondary:hover{border-color:var(--red);color:var(--red)}.wide{width:100%;margin-top:26px}.entry-card>.small{margin:20px 0 0}.duration-label{display:flex;align-items:center;justify-content:space-between}.duration-label output{margin-top:20px;color:var(--red);font-size:14px;font-weight:700}input[type=range]{width:100%;accent-color:var(--red);margin:8px 0 5px;min-height:32px}
.game-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.room-title{font-size:34px;letter-spacing:-1px;line-height:1.25;margin:8px 0 0}.score-tray{display:flex;gap:28px;padding:15px 24px;background:white;border:1px solid var(--line);border-radius:14px}.score-tray>div{display:flex;flex-direction:column;min-width:58px}.score-tray span{font-size:13px;color:var(--muted)}.score-tray strong{font-size:28px;font-weight:800;color:var(--red)}.round-progress{display:flex;gap:6px;margin:0 0 24px}.round-progress span{height:5px;flex:1;background:#e0e6f3;border-radius:3px}.round-progress span.done{background:var(--blue)}.round-progress span.active{background:var(--red)}.player-grid{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:24px}.presenter-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px}.game-card,.side-card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.round-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:70px;gap:12px;padding:16px 24px;border-bottom:1px solid var(--line);font-size:14px;font-weight:650;color:var(--muted)}.toolbar-right{display:flex;align-items:center;gap:16px}.clock{display:flex;gap:5px;align-items:baseline;color:var(--red);font-weight:800}.clock>span:first-child{font-size:32px;font-variant-numeric:tabular-nums;line-height:1}.clock-unit{font-size:13px}.timer-track{height:4px;background:#e7ebff}.timer-track>div{height:100%;width:100%;background:var(--blue);transition:width .12s linear}.stage{padding:32px;min-height:310px;display:flex;flex-direction:column;justify-content:center}.stage .kind{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--blue);font-weight:800;margin-bottom:12px}.stage h2{font-size:26px;line-height:1.3;letter-spacing:-.7px;margin:0 0 24px}.stage .waiting{padding:24px 8px;text-align:center}.waiting .waiting-icon{display:inline-grid;place-items:center;width:70px;height:70px;border:1px solid #d0d8ff;background:#f0f3ff;color:var(--blue);border-radius:20px;font-size:32px;margin-bottom:24px}.waiting h2{font-size:30px;margin-bottom:12px}.waiting p{max-width:430px;margin:0 auto;color:var(--muted)}.code-block{font:clamp(14px,1.3vw,18px)/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;padding:24px;border:1px solid #eadde0;border-left:4px solid var(--red);border-radius:12px;background:#fbf9fa;color:#422d35;margin:0;tab-size:4}.text-content{font-size:clamp(18px,1.6vw,22px);white-space:normal;line-height:1.35;margin:0;border-left:4px solid var(--blue);padding-left:22px}.vote-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:0 32px}.answer{min-height:86px;border-radius:13px;font-size:24px;font-weight:800;display:flex;justify-content:center;align-items:center;gap:12px}.answer.ai{background:var(--red);border:2px solid var(--red);color:white}.answer.human{background:#f0f3ff;border:2px solid var(--blue);color:#1822b4}.answer.selected{outline:4px solid var(--blue);outline-offset:3px;opacity:1}.answer-symbol{font-size:23px;font-weight:400}.vote-status{padding:0 26px;font-size:14px;text-align:center;color:var(--muted);min-height:22px;margin:20px 0 24px}.side-card{padding:24px;align-self:start}.side-card h2{font-size:18px;margin:0}.gold-badge{display:grid;place-items:center;width:34px;height:34px;background:#eef1ff;color:#1822b4;border:1px solid #cdd5ff;border-radius:10px;font-size:20px}.leaderboard{max-height:500px;overflow-y:auto}.leader-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;align-items:center;padding:13px 0;border-bottom:1px solid #f0ebed}.leader-row.me{background:#f0f3ff;border-radius:9px;padding-left:8px;padding-right:8px}.rank{color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums}.nickname{font-size:15px;font-weight:650;overflow-wrap:anywhere}.leader-streak{font-size:12px;color:#1822b4;display:block;font-weight:500}.leader-score{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}.empty-board{font-size:14px;color:var(--muted);padding:20px 0}.scoring-note{padding-top:14px;margin-bottom:0}.reveal{margin:0 32px 28px;padding:22px;border-radius:14px;background:#f0f3ff;border:1px solid #cdd5ff}.reveal h3{margin:0 0 9px;font-size:21px;color:#1822b4}.reveal p{margin:8px 0;font-size:15px}.reveal .source{font-size:13px;color:#5c6680}.result-note{color:var(--red)!important;font-weight:750}.vote-counts{font-size:14px;font-weight:650;margin-top:14px}.join-box{display:flex;align-items:center;gap:18px}.join-box>span{font-size:12px;letter-spacing:1.5px;color:var(--muted)}.join-box strong{font-size:30px;font-weight:800;letter-spacing:4px;color:var(--red)}.share-url{font-size:14px;padding:12px 16px;background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:22px;overflow-wrap:anywhere}.share-url span{color:var(--muted)}.host-controls{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:22px 32px;border-top:1px solid var(--line)}.notice{background:#fff0ed;color:#951e28;border:1px solid #efc5ca;padding:14px 20px;border-radius:10px;position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:5;max-width:min(550px,90vw);box-shadow:0 8px 25px #18233d12}.connection{font-size:13px;color:var(--muted);margin:16px 0 0;min-height:20px}.results-score{font-size:50px;font-weight:850;color:var(--red);margin:14px 0}.final-note{margin-top:20px!important;font-size:15px}footer{max-width:1320px;margin:auto;padding:20px 36px 28px;display:flex;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted)}
@media(min-width:1600px){.page{max-width:1540px}.presenter-grid{grid-template-columns:minmax(0,1fr) 360px}.presenter-page .stage{min-height:420px}.presenter-page .code-block{font-size:22px}.presenter-page .text-content{font-size:27px}}
@media(max-width:1000px){.entry-grid{gap:36px}.player-grid,.presenter-grid{grid-template-columns:minmax(0,1fr) 260px}.page{padding:32px 22px}.stage{padding:26px}.join-box{gap:10px;flex-wrap:wrap;justify-content:flex-end}.join-box>span{display:none}.join-box strong{font-size:24px}.top-label{display:none}}
@media(max-width:760px){.topbar{height:72px;padding:0 20px}.brand{font-size:18px;gap:8px}.brand-icon{width:32px;height:32px;font-size:17px}.page{padding:26px 18px}.entry-grid{grid-template-columns:1fr;gap:24px;min-height:0}.intro h1{font-size:64px;letter-spacing:-4px;margin:12px 0 18px;line-height:1}.intro h1 br{display:none}.intro .or{letter-spacing:-2px}.intro-copy{font-size:18px;margin-bottom:18px}.intro-copy br{display:none}.rule-pills{margin-bottom:0}.intro>.small{display:none}.entry-card{padding:24px}.entry-card h2{font-size:23px;margin:14px 0 18px}.player-grid,.presenter-grid{grid-template-columns:1fr;gap:18px}.game-heading{align-items:flex-start;flex-wrap:wrap;gap:14px}.room-title{font-size:28px}.score-tray{width:100%;justify-content:space-between;padding:12px 18px}.score-tray strong{font-size:24px}.stage{padding:24px;min-height:260px}.stage h2{font-size:22px;margin-bottom:18px}.vote-controls{padding:0 24px;gap:12px}.answer{min-height:82px;font-size:23px}.reveal{margin:0 24px 24px;padding:18px}.round-toolbar{padding:14px 20px}.host-controls{padding:20px 24px;flex-wrap:wrap}.host-controls .primary{width:100%}.join-box{justify-content:flex-start}.join-box strong{font-size:26px}.share-url{font-size:13px}.leaderboard{max-height:360px}.code-block{font-size:14px;padding:18px}.round-progress{gap:4px}footer{padding:12px 20px 24px}.eyebrow{font-size:12px}.toolbar-right{gap:10px}.clock>span:first-child{font-size:26px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.game-heading>div:first-child{min-width:0}.room-title{overflow-wrap:anywhere}.game-heading>div:first-child{flex:1}.score-tray,.join-box{flex-shrink:0}
@media(max-width:760px){.game-heading>div:first-child{flex-basis:100%}.score-tray,.join-box{max-width:100%}}
.qr-panel{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--line);text-align:center}.qr-panel h2{font-size:18px;margin:0 0 12px}.join-qr{display:block;width:232px;height:232px;max-width:100%;margin:0 auto;background:white;object-fit:contain;image-rendering:pixelated}.qr-panel .small{margin:10px 0 0}.qr-panel .qr-help{font-size:13px;margin:4px 0 0}
@media(max-width:1000px){.join-qr{width:210px;height:210px}}

.content-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}.content-meta .kind{margin:0}.difficulty{display:inline-block;border:1px solid #cdd5ff;border-radius:999px;padding:4px 10px;background:#f0f3ff;color:#1822b4;font-size:12px;font-weight:750;letter-spacing:.02em}.question-context{color:var(--muted);font-size:15px;line-height:1.55;margin:-6px 0 18px}.reveal-subtitle{font-size:14px;margin:18px 0 6px;color:var(--red-dark)}.discussion-prompt{padding:12px 14px;background:#f0f3ff;border-left:3px solid var(--blue);border-radius:6px;font-weight:600}

/* Presenter: QR-only lobby, then centered full-width content. */
.presenter-grid{display:block}
.qr-lobby{display:flex;flex-direction:column;align-items:center;gap:12px;padding:28px 20px;text-align:center}
.qr-lobby .join-qr{width:min(460px,70vw,52vh);height:auto;max-width:none;margin:0;image-rendering:pixelated;border-radius:0}
.lobby-code{font-size:32px;letter-spacing:5px;color:var(--red)}
.qr-lobby p{margin:0}
.presenter-lobby .host-controls,.presenter-playing .host-controls{justify-content:center}
.presenter-lobby .page,.presenter-playing .page{max-width:1660px;padding:20px 28px}
.presenter-playing .topbar{height:60px}
.presenter-playing .game-heading{display:none}
.presenter-playing .round-progress{margin-bottom:10px}
.presenter-playing .stage{align-items:center;text-align:center;min-height:55vh;padding:24px}
.presenter-playing .text-content{max-width:1120px;font-size:clamp(19px,1.7vw,25px);line-height:1.35;text-align:left;border-left:0;padding:0}
.presenter-playing .reveal{text-align:center;margin:0 24px 16px;padding:10px}
.presenter-playing .reveal h3{margin:0;font-size:32px}
.presenter-playing .host-controls{padding:14px}
.bonus-link{display:block;width:fit-content;margin:40px auto 0;text-decoration:none;text-align:center}
.bonus-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:28px;text-align:center}
.bonus-page h1{max-width:900px;font-size:clamp(32px,5vw,68px);line-height:1.2;margin:0}
.bonus-page .vote-controls{width:min(620px,100%);padding:0}
.bonus-page #bonus-reveal{font-size:64px;color:var(--red);margin:0}
.player-bonus{margin:40px auto 0;padding:28px 18px;background:white;border:1px solid var(--line);border-radius:18px;text-align:center;max-width:680px}
.player-bonus h2{font-size:clamp(22px,3vw,32px);line-height:1.3;margin:0 0 24px}
.player-bonus .vote-controls{padding:0}
.player-bonus .bonus-reveal{font-size:48px;font-weight:800;color:var(--red);margin:0}
.build-workflow{width:100%;max-width:760px;margin:24px auto 0;text-align:left;line-height:1.55}
.build-workflow .workflow-heading{font-size:24px;line-height:1.25;color:var(--red);margin:0 0 8px}
.build-workflow .workflow-caption,.build-workflow .workflow-note{font-size:13px;color:var(--muted);margin:0 0 20px}
.workflow-steps{margin:0;padding:0 0 0 28px;display:grid;gap:14px}
.workflow-step{padding:14px 16px;background:#f0f3ff;border:1px solid var(--line);border-radius:12px}
.workflow-step::marker{color:var(--blue);font-weight:800}
.workflow-step h4{font-size:16px;margin:0 0 6px;color:var(--ink)}
.workflow-step p{font-size:14px;margin:0;overflow-wrap:anywhere}
.build-workflow .workflow-loop{font-size:14px;font-weight:700;color:var(--red);margin:20px 0 12px;overflow-wrap:anywhere}
.build-workflow .workflow-note{margin-bottom:0}
.bonus-page .build-workflow{background:white;border:1px solid var(--line);border-radius:18px;padding:24px;margin:0}
@media(max-width:760px){.presenter-lobby .page,.presenter-playing .page{padding:16px 12px}.presenter-playing .stage{padding:18px}.presenter-playing .text-content{font-size:20px}.bonus-link{font-size:16px}}

/* Compact paragraphs retain the complete question wording. */
.stage.text-stage{min-height:0}
.text-paragraph{white-space:pre-line;margin:0}
.text-paragraph+.text-paragraph{margin-top:.45em}
.photo-credit{white-space:pre-line;font-size:16px;line-height:1.35;margin:10px 0 4px;color:var(--ink)}
.photo-source{font-size:14px}
.final-podium{position:relative}
.confetti-layer{position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:5}
.confetti-piece{position:absolute;width:8px;height:13px;border:1px solid #d6a22988;border-radius:1px;opacity:0;animation:podium-confetti 3.8s ease-out forwards}
@keyframes podium-confetti{0%{opacity:1;transform:translate(0,0) rotate(0deg)}30%{opacity:1;transform:translate(var(--dx),var(--rise)) rotate(180deg)}100%{opacity:0;transform:translate(var(--dx),450px) rotate(var(--spin))}}
@media(prefers-reduced-motion:reduce){.confetti-layer{display:none}}

/* Only configured HUMAN text sources are shown, after the server reveal. */
.text-sources { margin-top: .65rem; font-size: .85rem; line-height: 1.4; }
.text-sources p { margin: 0 0 .25rem; font-weight: 700; }
.text-source { display: block; width: fit-content; margin: .15rem auto; color: inherit; overflow-wrap: anywhere; }

/* Original supplied logos: no recoloring, stretching or external downloads. */
.brand-logos{display:flex;align-items:center;justify-content:center;gap:18px;flex-shrink:0}
.brand-logos img{display:block;object-fit:contain;height:48px;width:auto;max-width:190px}
.brand-logos .logo-totalenergies{height:52px;max-width:110px}
.topbar .top-label{display:none}
.question-heading{width:100%;max-width:1120px;margin:0 auto 18px;text-align:center}
.stage .question-title{font-size:clamp(22px,2.5vw,36px);line-height:1.2;margin:0 0 8px;color:var(--ink)}
.question-intro{max-width:900px;margin:0 auto;color:var(--muted);font-size:clamp(14px,1.25vw,18px);line-height:1.4}
.presenter-playing .stage{min-height:0;justify-content:flex-start}
.presenter-playing .brand-logos img{height:36px}
.presenter-playing .brand-logos .logo-totalenergies{height:42px}
.bonus-page .brand-logos{margin-bottom:8px}
@media(max-width:760px){.topbar{height:auto;min-height:92px;display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 18px}.topbar .brand-logos{grid-column:1/-1;grid-row:2;gap:18px}.topbar .brand-logos img{height:30px;max-width:130px}.topbar .brand-logos .logo-totalenergies{height:34px;max-width:84px}.presenter-playing .topbar{height:auto}.question-heading{margin-bottom:14px}.stage .question-title{font-size:22px;margin-bottom:7px}.question-intro{font-size:14px}.bonus-page .brand-logos{gap:18px}.bonus-page .brand-logos img{height:38px}.bonus-page .brand-logos .logo-totalenergies{height:44px}}

/* Opening branding replaces the old title. Natural dimensions keep every logo edge visible. */
.brand-intro{display:flex;align-items:center;justify-content:center;min-width:0;overflow:visible}
.brand-intro .brand-logos-hero{display:flex;flex-direction:column;gap:42px;width:100%;padding:24px 12px;flex-shrink:1;overflow:visible}
.brand-intro .brand-logos-hero img{display:block;height:auto;max-height:none;max-width:100%;object-fit:contain;flex-shrink:0}
.brand-intro .brand-logos-hero .logo-logiclever{width:min(100%,480px);height:auto;max-width:100%}
.brand-intro .brand-logos-hero .logo-totalenergies{width:min(100%,280px);height:auto;max-width:100%}
.topbar .brand-logos .logo-logiclever{width:165px;height:auto;max-height:64px;object-fit:contain}
@media(max-width:760px){.brand-intro .brand-logos-hero{gap:22px;padding:18px 12px}.brand-intro .brand-logos-hero .logo-logiclever{width:min(100%,350px)}.brand-intro .brand-logos-hero .logo-totalenergies{width:min(100%,180px)}.topbar .brand-logos .logo-logiclever{width:125px;height:auto;max-height:48px}}

/* Blend the complete white-backed wordmark into its surrounding surface. */
.logo-logiclever{mix-blend-mode:multiply}


/* Phone team composition uses the lobby, with no question visible before start. */
.player-team-lobby .player-grid{grid-template-columns:minmax(0,1fr);max-width:760px;margin:auto}
.player-team-lobby .score-tray,.player-team-lobby .round-progress,.player-team-lobby .round-toolbar,
.player-team-lobby .side-card,.player-team-lobby .stage{display:none}
.team-lobby{padding:clamp(18px,4vw,32px);text-align:left}
.team-lobby h2{margin:8px 0 12px;font-size:clamp(24px,5vw,34px)}
.team-player{font-weight:700;color:var(--blue);overflow-wrap:anywhere}
.team-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}
.team-choices button{min-height:52px;border:2px solid var(--line);white-space:normal}
.team-choices button.active{border-color:var(--blue);background:#eef0ff;color:var(--blue)}
.team-create-form{margin:20px 0 28px;max-width:520px}
.team-create-form .primary{margin-top:14px}
.team-directory h3{font-size:18px;margin:24px 0 12px}
.team-list{display:grid;gap:14px}
.team-card{padding:18px;border:1px solid var(--line);border-radius:14px;background:white;min-width:0}
.team-card.my-team{border:2px solid var(--blue);background:#f3f5ff}
.team-card-title{font-size:17px;line-height:1.4;margin:0 0 12px;overflow-wrap:anywhere}
.team-members{padding-left:22px;margin:0 0 14px;line-height:1.65;overflow-wrap:anywhere}
.team-join{min-height:44px;width:100%;margin-top:2px}
.team-selected{font-size:13px;font-weight:700;color:var(--blue)}
.teams-empty{font-size:15px;line-height:1.5;color:var(--muted)}
.team-lock-note{margin:24px 0 0;line-height:1.5}
.team-badge{font-size:13px;font-weight:700;color:var(--blue);margin:8px 0 0;overflow-wrap:anywhere}
@media(max-width:480px){.team-choices{grid-template-columns:1fr}.team-lobby{padding:18px 12px}.team-card{padding:16px}}

/* Team discovery: distinctive, readable crews instead of plain roster text. */
.team-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:16px}
.team-card{display:flex;flex-direction:column;gap:12px;border:1px solid #d9def4;background:linear-gradient(145deg,#fff 65%,#f4f6ff);box-shadow:0 8px 22px rgba(28,40,101,.07);transition:border-color .15s,transform .15s}
.team-card:hover{border-color:#8796df;transform:translateY(-2px)}
.team-card-header{display:flex;align-items:center;gap:12px;min-width:0}
.team-card-details{min-width:0;overflow-wrap:anywhere}
.team-card-title{margin:0 0 4px;font-size:17px}
.team-card-meta{margin:0;font-size:12px;color:#59617d;line-height:1.45}
.team-members-label{font-size:11px;font-weight:800;letter-spacing:.12em;color:#6270a4;margin:4px 0 0}
.team-members{padding:0;display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:0 0 6px}
.team-members li{border-radius:100px;padding:5px 10px;background:#edf0fc;color:#26336c;font-size:13px;max-width:100%;overflow-wrap:anywhere}
.team-members li.team-captain{background:#dce5ff;font-weight:750}
.team-members li.team-captain::before{content:'★ ';color:#ad751c}
.team-join{margin-top:auto}
.team-selected{margin-top:auto}
