body.rooms-page{--red:#e4003a;--font:"DM Sans",sans-serif;}
body.rooms-page{background:#fff!important}.rooms-page main{max-width:1140px!important;margin:0 auto;padding:70px 24px 80px!important;min-height:65vh}.room-eyebrow{font-size:12px;font-weight:800;letter-spacing:.14em;color:var(--red);text-transform:uppercase}.room-hero{text-align:center;max-width:800px;margin:0 auto 40px}.room-hero h1{font-size:clamp(34px,5vw,62px);letter-spacing:-.05em;line-height:1.08;margin:14px 0 20px}.room-hero h1 span{color:var(--red)}.room-hero p{font-size:17px;line-height:1.7;color:#73737d;max-width:570px;margin:auto}.room-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:24px}.room-panel{border:1px solid #eee5e8;border-radius:28px;padding:30px;background:#fff}.room-panel.soft{background:#fff7f8}.room-panel h2{font-size:26px;letter-spacing:-.035em;margin:0 0 12px}.room-panel p{color:#76717a;line-height:1.7}.room-fields{display:grid;gap:16px;margin:24px 0}.room-fields.two{grid-template-columns:1fr 1fr}.rooms-page label{font-size:13px;font-weight:700;display:grid;gap:8px;color:#55515a}.rooms-page input,.rooms-page select{width:100%;box-sizing:border-box;padding:14px 16px;border-radius:14px;border:1px solid #e8e5e8;background:#faf9fa;color:#17171a;font:inherit;min-width:0}.rooms-page input:focus,.rooms-page select:focus{outline:2px solid #e4003a55;outline-offset:2px}.rooms-page button,.rooms-page .room-link{border:1px solid #eee5e8;border-radius:999px;padding:12px 20px;background:white;color:#2b242b;font:700 14px var(--font);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:transform .15s,background .15s}.rooms-page button:hover{background:#fff0f3;transform:translateY(-1px)}.rooms-page button.primary{background:var(--red);color:#fff;border-color:var(--red)}.rooms-page button:disabled{opacity:.5;cursor:default;transform:none}.room-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.room-note{font-size:12px!important;color:#93868d!important;margin:16px 0 0}.room-mark{width:48px;height:48px;padding:12px;border-radius:17px;background:#fce8ed;box-sizing:content-box;margin-bottom:20px}.room-mark svg{width:100%;height:100%;stroke:var(--red)}.room-error{color:#bc1436;line-height:1.5;margin:18px 0;min-height:24px}.room-preview{margin-top:28px}.room-preview details{border-bottom:1px solid #eee;padding:16px 0}.room-preview summary{font-weight:700;cursor:pointer}.room-preview li{padding:4px 0}.room-topline{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:30px}.room-topline h1{font-size:clamp(24px,4vw,38px);letter-spacing:-.04em;margin:6px 0}.room-code{font-size:clamp(40px,8vw,70px);font-weight:800;letter-spacing:.12em;color:var(--red);margin:20px 0;user-select:text!important}.room-lobby{text-align:center;padding:42px 24px;background:#fff7f8;border-radius:28px}.room-players{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:25px 0}.room-player{border:1px solid #eedee3;border-radius:999px;background:#fff;padding:10px 16px;font-size:14px}.room-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#7b7279;font-size:14px;margin-bottom:24px}.room-clock{background:#fff0f3;color:var(--red);border-radius:999px;font-size:22px;font-weight:800;padding:10px 18px;min-width:70px;text-align:center}.room-clock.urgent{color:#a8082b;background:#fcd5de}.room-progress{height:5px;background:#f7edf0;border-radius:9px;overflow:hidden;margin-bottom:28px}.room-progress span{display:block;height:100%;background:var(--red);transition:width .3s linear}.room-question{font-size:clamp(23px,3.4vw,36px);line-height:1.3;letter-spacing:-.035em;margin:0 0 30px;max-width:950px}.room-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rooms-page .room-option{border-radius:20px;padding:20px;text-align:left;justify-content:flex-start;line-height:1.5;min-height:90px;background:#fff8f9;border-color:#efdce3;font-size:16px}.room-option b{display:grid;place-items:center;background:#fce4eb;color:#c51a44;min-width:34px;height:34px;border-radius:11px}.rooms-page .room-option.selected{border:2px solid var(--red);background:#ffe9ef;opacity:1}.rooms-page .room-option.correct{background:#edf8f1;border:2px solid #6aaa85;opacity:1}.rooms-page .room-option.wrong{background:#fce8ec;opacity:1}.room-feedback{padding:22px;border-radius:20px;background:#fff6f8;margin:24px 0;line-height:1.7}.room-ranking{list-style:none;padding:0;margin:20px 0}.room-ranking li{display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid #eee}.room-ranking li:first-child{background:#fff3e9;border-radius:18px}.room-ranking strong{margin-left:auto;color:var(--red)}.room-ranking .mine{font-weight:800}.room-score{font-size:64px;color:var(--red);font-weight:800;letter-spacing:-.05em}.room-session:focus{outline:none}.room-empty{padding:24px;color:#8c8187}.room-lobby .room-actions{justify-content:center}.room-help{text-align:center;margin-top:28px;font-size:13px;color:#8b8288}#room-status{font-size:13px;color:#7a6d75;margin-top:12px}.rooms-page [hidden]{display:none!important}.room-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #eddde4;border-radius:22px;background:#fff7f9;padding:22px;margin:24px 0}.room-banner a{white-space:nowrap}.room-banner h2{font-size:19px;margin:0 0 6px}.room-banner p{margin:0;font-size:14px;color:#80727b}@media(max-width:700px){.rooms-page main{padding:45px 18px 50px!important}.room-grid{grid-template-columns:1fr}.room-panel{padding:24px}.room-fields.two{grid-template-columns:1fr 1fr}.room-topline{align-items:flex-start}.room-topline button{padding:10px}.room-options{grid-template-columns:1fr}.rooms-page .room-option{min-height:72px;padding:16px}.room-banner{flex-direction:column;align-items:flex-start}.room-hero p{font-size:15px}}@media(prefers-reduced-motion:reduce){.rooms-page *{transition:none!important}}

/* Leave room for the fixed shared header on tablets and phones. */
@media(min-width:1001px){body.site-shell.rooms-page{padding-top:64px!important}}

/* Live classroom: generous stage, distinct answer shapes and local motion. */
.rooms-page main{max-width:1280px!important}.room-hero{position:relative;isolation:isolate;padding:22px 0}.room-hero-symbols{position:absolute;inset:0;z-index:-1;pointer-events:none}.room-hero-symbols i{position:absolute;width:26px;height:26px;border-radius:8px;background:#ffe1e9;animation:room-float 5s ease-in-out infinite}.room-hero-symbols i:nth-child(1){left:0;top:20%;transform:rotate(20deg)}.room-hero-symbols i:nth-child(2){right:2%;top:10%;background:#eee7ff;border-radius:50%;animation-delay:-1s}.room-hero-symbols i:nth-child(3){left:6%;bottom:2%;background:#def0eb;border-radius:50%;width:15px;height:15px;animation-delay:-2s}.room-hero-symbols i:nth-child(4){right:0;bottom:2%;background:#ffe8c6;width:18px;height:18px;animation-delay:-3s}.room-panel{box-shadow:0 12px 45px #43152405}.room-panel.soft{background:#fff6f8}.room-session{position:relative;max-width:1160px;margin:auto}.room-playing .land-footer{display:none!important}.room-playing main{min-height:calc(100svh - 100px);padding-top:32px!important;padding-bottom:28px!important}.room-tools{display:flex;gap:8px;align-items:center;flex-shrink:0}.room-tools svg{width:20px;height:20px}.rooms-page .room-tools button{padding:12px;min-height:44px}.rooms-page .room-tools #room-leave{padding:12px 16px}.room-topline{margin-bottom:22px}.room-topline h1{max-width:700px;overflow-wrap:anywhere}.room-lobby{position:relative;overflow:hidden;isolation:isolate;min-height:430px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fff5f7;border:1px solid #f4dfe5}.room-orbit{position:absolute;inset:0;z-index:-1;pointer-events:none}.room-orbit i{position:absolute;border:1px solid #e4003a0b;border-radius:50%;width:650px;height:650px;left:calc(50% - 325px);top:calc(50% - 325px)}.room-orbit i:nth-child(2){transform:scale(.8)}.room-orbit i:nth-child(3){transform:scale(1.2)}.room-code{font-size:clamp(46px,9vw,92px);letter-spacing:.12em;line-height:1.1;margin:16px 0 10px;padding-left:.12em}.room-players{max-width:850px}.room-player{display:inline-flex;gap:9px;align-items:center;padding:7px 16px 7px 7px;animation:room-chip .3s ease both;overflow-wrap:anywhere}.room-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#fce1e8;color:#af1640;font-size:13px}.room-player:nth-child(3n) .room-avatar{background:#eee6ff;color:#7652ae}.room-player:nth-child(3n+2) .room-avatar{background:#dcf0e9;color:#346b5c}.room-session[data-phase=question]>.room-panel,.room-session[data-phase=reveal]>.room-panel{padding:32px 36px}.room-meta{font-weight:600}.room-question{text-align:center;margin:18px auto 34px;max-width:950px;font-size:clamp(25px,3vw,42px)}.room-progress{height:7px}.room-options{gap:16px}.rooms-page .room-option{--answer:#be1744;--answer-bg:#fff0f4;background:var(--answer-bg);color:#241a20;border:2px solid transparent;border-bottom:5px solid color-mix(in srgb,var(--answer) 24%,white);min-height:112px;padding:23px 24px;font-size:18px;gap:16px;transition:transform .18s,background .18s,border-color .18s,opacity .18s;overflow-wrap:anywhere}.rooms-page .room-option:nth-child(2){--answer:#6e4bb3;--answer-bg:#f2ecff}.rooms-page .room-option:nth-child(3){--answer:#267d73;--answer-bg:#eaf6f2}.rooms-page .room-option:nth-child(4){--answer:#a96815;--answer-bg:#fff5e4}.room-option b{background:var(--answer);color:white;min-width:42px;width:42px;height:42px;border-radius:14px;flex-shrink:0}.answer-shape{fill:currentColor;width:20px;height:20px}.room-option>svg{width:24px;height:24px;margin-left:auto;flex-shrink:0}.rooms-page .room-option:hover:not(:disabled){border-color:var(--answer);transform:translateY(-3px);background:var(--answer-bg)}.rooms-page .room-option:disabled{opacity:.7}.rooms-page .room-option.selected{border-color:var(--answer);background:var(--answer-bg);opacity:1;box-shadow:0 0 0 3px color-mix(in srgb,var(--answer) 12%,transparent)}.rooms-page .room-option.correct{border-color:#4d9770;background:#e7f5ec;opacity:1;box-shadow:none}.rooms-page .room-option.wrong{border-color:#ce6779;background:#fce8ec;opacity:.8;box-shadow:none}.room-help{min-height:36px;display:flex;justify-content:center;align-items:center;gap:8px;margin:20px 0}.room-answer-saved{color:#336f57;font-weight:700}.room-help svg{width:22px;height:22px}.room-clock.urgent{animation:room-pulse 1s ease-in-out infinite}.room-feedback{background:#faf6fc;border:1px solid #eee4f3;padding:22px 28px}.room-feedback p{margin:10px 0}.room-session .room-actions{justify-content:center;margin-top:20px}.room-ranking{max-width:760px;margin:24px auto}.room-ranking li{background:#fff;padding:14px 18px;overflow-wrap:anywhere}.room-ranking li>span:first-child{display:grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:#f8f3f5;color:#8c727c}.room-ranking .mine{background:#fff4f7;border-radius:12px}.room-ranking strong{white-space:nowrap}.room-finale{text-align:center;position:relative;overflow:hidden}.room-finale h2{font-size:clamp(28px,4vw,42px);margin:12px 0}.room-trophy{width:64px;height:64px;margin:0 auto 18px;display:grid;place-items:center;background:#fff1d7;color:#ae7a21;border-radius:22px;animation:room-float 4s ease-in-out infinite}.room-trophy svg{width:34px;height:34px}.room-podium{display:flex;align-items:flex-end;justify-content:center;gap:12px;max-width:630px;margin:35px auto}.podium-place{flex:1;min-width:0;max-width:200px;display:flex;flex-direction:column;gap:8px;justify-content:flex-end}.podium-place.place-1{order:2}.podium-place.place-2{order:1}.podium-place.place-3{order:3}.podium-name{font-weight:800;overflow-wrap:anywhere}.podium-place>strong{font-size:13px;color:#8b747e}.podium-step{height:125px;background:#ffe4eb;border-radius:20px 20px 5px 5px;display:grid;place-items:center;animation:room-rise .6s ease both}.place-2 .podium-step{height:95px;background:#eee6fa;animation-delay:.12s}.place-3 .podium-step{height:70px;background:#e1f0ea;animation-delay:.24s}.podium-step b{font-size:36px;color:#a53050}.place-2 .podium-step b{color:#7854a4}.place-3 .podium-step b{color:#548474}.room-finale .room-score{font-size:44px}.room-countdown{position:absolute;inset:0;z-index:20;border-radius:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;background:#fff5f7f7;text-align:center;backdrop-filter:blur(8px);font-weight:700}.room-countdown strong{font-size:130px;line-height:1;color:var(--red);font-variant-numeric:tabular-nums}.room-countdown span{padding:0 20px}.room-enter>.room-panel{animation:room-stage .35s ease both}.room-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:10}.room-confetti i{position:absolute;top:-20px;left:var(--x);width:8px;height:14px;background:var(--color);border-radius:3px;animation:room-confetti 2s var(--delay) ease-in both}.room-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.room-session:fullscreen{background:#fff;padding:28px clamp(18px,5vw,80px);box-sizing:border-box;max-width:none;overflow:auto}.room-session:fullscreen .room-question{font-size:clamp(28px,4vw,50px)}.room-session:fullscreen .room-option{min-height:140px} .rooms-page button:focus-visible,.rooms-page a:focus-visible{outline:3px solid #b38ce5;outline-offset:4px}
@keyframes room-float{50%{translate:0 -8px}}@keyframes room-chip{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@keyframes room-pulse{50%{box-shadow:0 0 0 5px #e4003a0b}}@keyframes room-rise{from{transform:scaleY(.4);transform-origin:bottom;opacity:0}to{transform:scaleY(1);opacity:1}}@keyframes room-stage{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}@keyframes room-confetti{to{top:100%;transform:rotate(var(--turn));opacity:0}}
@media(max-width:700px){.room-playing main{padding:24px 16px!important}.room-topline{flex-wrap:wrap;gap:14px}.room-topline h1{font-size:26px}.room-tools{margin-left:auto}.room-session[data-phase=question]>.room-panel,.room-session[data-phase=reveal]>.room-panel{padding:22px 16px}.room-meta{font-size:12px;gap:8px;flex-wrap:wrap}.room-clock{font-size:19px;min-width:48px;padding:8px}.room-options{grid-template-columns:1fr 1fr;gap:10px}.rooms-page .room-option{flex-direction:column;align-items:flex-start;font-size:14px;min-height:140px;padding:16px 12px;gap:12px}.room-option b{min-width:32px;width:32px;height:32px;border-radius:10px}.room-option>svg{position:absolute;right:10px;top:16px}.room-option{position:relative}.room-question{font-size:24px;text-align:left;margin:10px 0 24px}.room-lobby{padding:32px 16px;min-height:400px}.room-hero-symbols{opacity:.6}.room-finale{padding:24px 16px}.room-podium{gap:8px}.podium-name{font-size:13px}.room-feedback{padding:18px}.room-ranking li{gap:10px;font-size:14px}.room-session:fullscreen{padding:20px 16px}.room-session:fullscreen .room-option{min-height:140px}}
@media(prefers-reduced-motion:reduce){.rooms-page *,.rooms-page *::before,.rooms-page *::after{animation:none!important;transition:none!important}.room-confetti{display:none}}
/* Join first; the organizer form opens only on request. */
.room-grid{display:block;max-width:520px;margin:0 auto}
#room-join-panel{padding:32px;text-align:center;background:#fff;border-color:#f0e2e7}
#room-join-panel .room-mark{margin:0 auto 20px}
#room-join-panel label{text-align:left}
#room-join-panel [name=code]{text-align:center;font-size:28px;letter-spacing:.2em;font-weight:700;background:#fff7f9;min-height:68px}
#room-join-panel #room-join>.primary{width:100%;min-height:48px}
.room-host-entry{border-top:1px solid #f1e9ec;margin-top:24px;padding-top:20px;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#82747c}
.rooms-page #room-open-create{font-size:12px;padding:8px 14px;min-height:36px;background:#fff6f8;color:var(--red);border-color:#f1dce3}
.room-create-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.room-create-heading h2{margin:0}
.rooms-page #room-create-back{padding:8px 14px;font-size:12px}
#room-create-panel:not([hidden]){animation:room-stage .25s ease both}
@media(max-width:600px){#room-join-panel{padding:26px 20px}.room-hero{padding-top:8px}.room-host-entry{gap:10px}}
.room-qr-card{margin:12px auto 24px;text-align:center}
.room-qr-ring{width:244px;height:244px;box-sizing:border-box;border-radius:50%;padding:24px;background:#fff;display:grid;place-items:center;border:2px solid #f3ccd7;outline:6px solid #fff9fb;box-shadow:0 12px 28px #9216330b}
.room-qr-ring svg{display:block;width:100%;height:100%}
.room-qr-card p{font-size:12px;font-weight:600;color:#8b5363;margin:14px 0 0}
@media(max-width:600px){.room-qr-ring{width:224px;height:224px;padding:22px}}
/* The dots themselves now form a circle, not a square inside a round frame. */
.room-qr-ring{width:300px;height:300px;border:0;outline:0;padding:6px;box-shadow:none;background:transparent}
@media(max-width:600px){.room-qr-ring{width:280px;height:280px;padding:6px}}
/* Keep paired controls on the same baseline, regardless of shared button rules. */
.rooms-page .room-actions{align-items:stretch}
.rooms-page .room-actions>:is(button,a.room-link){box-sizing:border-box;margin:0;min-height:48px;line-height:1.3;align-self:stretch;display:inline-flex;align-items:center;justify-content:center;padding:12px 20px}
.rooms-page .room-tools{align-items:center}
.rooms-page .room-tools>button{box-sizing:border-box;margin:0;height:46px;min-height:46px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.rooms-page .room-tools>button:not(#room-leave){width:46px;padding:12px}
.rooms-page .room-tools svg{display:block;flex-shrink:0}
.rooms-page .room-options{align-items:stretch;grid-auto-rows:1fr}
.rooms-page .room-options>.room-option{box-sizing:border-box;margin:0;height:100%;align-self:stretch;line-height:1.5}
