/* A sunny welcome, clear names, and a classroom-sized tournament bracket. */
[hidden]{display:none!important}
.lobby{position:relative;z-index:1;max-width:1120px;margin:auto;padding:24px 30px 30px;color:#28484b}
.lobby-top{display:flex;align-items:center;justify-content:space-between}
.language-pill{background:#fffdf7;border:1.5px solid #e6d8b8;border-radius:99px;padding:9px 19px;color:#385558;font-weight:900;cursor:pointer;box-shadow:0 3px 0 #eddfbd}
.lobby-hero{display:grid;grid-template-columns:1fr 280px;align-items:center;gap:30px;padding:40px 5px 28px}
.eyebrow{font-size:11px;font-weight:900;letter-spacing:2px;text-transform:uppercase;color:#9a623c}
.lobby-hero h1{font-size:clamp(34px,4.7vw,58px);line-height:1.04;letter-spacing:-2px;max-width:680px;margin:12px 0 16px;color:#26494a;white-space:pre-line}
.lobby-hero p{font-size:16px;line-height:1.6;max-width:630px;color:#626b5e;margin:0}
.lobby-perks{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.lobby-perks span{background:#fffdf4;border:1px solid #e9dcb9;border-radius:99px;padding:6px 12px;font-size:11px;font-weight:800;color:#6c704e}
.lobby-perks span:before{content:'✦';color:#e49d36;margin-right:6px}
.lobby-illustration{position:relative;width:260px;height:238px;display:grid;place-items:center;transform:rotate(6deg)}
.mini-wheel{height:202px;width:202px;border:9px solid #f9ca6e;border-radius:50%;background:repeating-conic-gradient(#83d9c2 0deg 30deg,#ffe09b 30deg 60deg,#ffb8a1 60deg 90deg,#e5d6f7 90deg 120deg);box-shadow:0 9px 0 #e7a74e,0 20px 32px #d69b3b26;display:grid;place-items:center;outline:4px solid #fff8d7;outline-offset:-11px}
.mini-wheel:after{content:'';position:absolute;top:8px;border:14px solid transparent;border-top:28px solid #e58353;filter:drop-shadow(0 2px 0 #fff8d7)}
.mini-wheel>div{height:88px;width:88px;display:grid;place-items:center;background:#fff7dd;border:5px solid #fffdf4;border-radius:50%;box-shadow:0 3px 0 #bba76d55}
.mini-wheel svg{width:47px;height:47px;stroke:#d38d34;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sticker{position:absolute;display:grid;place-items:center;font-weight:900;border:3px solid #fffdf5;border-radius:13px;box-shadow:0 5px 0 #a47d2820;width:49px;height:53px;font-size:30px;z-index:1}
.s1{left:-2px;top:42px;background:#a5e7d3;color:#277d68;transform:rotate(-17deg)}
.s2{right:5px;bottom:35px;background:#ffc4a9;color:#af5737;transform:rotate(13deg)}
.s3{right:12px;top:3px;color:#efa341;background:none;border:0;box-shadow:none;font-size:47px}
.wheel-sticker{position:absolute;bottom:4px;background:#fffdf4;border:2px solid #f5d87d;border-radius:99px;padding:8px 22px;font-size:12px;font-weight:1000;color:#90682a;transform:rotate(-11deg);box-shadow:0 4px 0 #f0c87555}
.lobby-form{background:#fffdf8e8;border:2px solid #efdfbe;border-radius:28px;padding:28px 32px;box-shadow:0 8px 0 #eddabb55,0 20px 70px #b8872b0c}
.lobby-form fieldset{border:0;padding:0;margin:0 0 27px;min-width:0}
.lobby-form legend{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:900;margin-bottom:14px;color:#345456}
.step-dot{display:inline-grid;place-items:center;background:#f6d98f;color:#805820;width:27px;height:27px;border-radius:50%;font-size:13px}
.competition-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.competition-option{display:flex;align-items:center;position:relative;gap:12px;text-align:left;padding:17px 14px;background:#fffefb;border:2px solid #ede1c7;border-radius:17px;color:#536466;cursor:pointer;transition:transform .16s,border-color .16s,background .16s}
.competition-option:hover{transform:translateY(-2px)}
.competition-option[aria-pressed=true]{border-color:#4ba98b;background:#eaf8ef;box-shadow:0 4px 0 #4ba98b18}
.competition-option[data-kind=teams][aria-pressed=true]{background:#fff0e6;border-color:#e6986f;box-shadow:0 4px 0 #e6986f18}
.competition-option[data-kind=tournament][aria-pressed=true]{background:#fff7dc;border-color:#deb34b;box-shadow:0 4px 0 #deb34b18}
.competition-option b{display:block;font-size:16px;font-weight:900;color:#315454;line-height:1.3}
.competition-option small{display:block;font-size:11px;color:#68776a;margin-top:4px;line-height:1.35}
.competition-option i{position:absolute;width:7px;height:7px;border-radius:50%;right:12px;top:10px;background:#4ba98b;opacity:0}
.competition-option[aria-pressed=true] i{opacity:1}
.mode-art{flex:0 0 36px;width:36px;height:40px;display:grid;place-items:center;font-size:34px;line-height:1;color:#d49b3b}
.mode-art svg{width:34px;height:34px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.tournament-options{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:14px;align-items:center;margin:-10px 0 25px;background:#fff6dc;padding:17px;border-radius:16px}
.tournament-options p{font-size:12px;line-height:1.5;color:#826b44;margin:20px 0 0}
.lobby-form label{display:block;min-width:0}
.lobby-form label>span{display:block;font-size:12px;font-weight:800;color:#5b6c61;margin-bottom:7px}
.lobby-form input,.lobby-form select,.lobby-form textarea{font:inherit;width:100%;color:#2b4a4c;background:#fffefa;border:1.5px solid #dfd7c2;border-radius:11px;padding:11px 12px;min-height:45px;box-sizing:border-box;outline:none}
.lobby-form select{font-size:13px;font-weight:800}
.lobby-form input:focus,.lobby-form textarea:focus,.lobby-form select:focus{border-color:#4caa8d;box-shadow:0 0 0 3px #a9dec54d}
.lobby-form input[aria-invalid=true]{border-color:#d76a59;background:#fff1e8}
.lobby-form input::placeholder,.lobby-form textarea::placeholder{color:#8f9c92;font-weight:400}
.entrant-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.entrant-field{position:relative;background:#eff8ef;border:1px solid #d5e9d8;border-radius:15px;padding:17px}
.entrant-field:nth-child(even){background:#fff0e5;border-color:#f1d6bd}
.entrant-field>label>span{font-size:13px;color:#3c6859}
.entrant-field:nth-child(even)>label>span{color:#936143}
.entrant-field .entrant-number{font-size:10px;font-weight:900;letter-spacing:1.5px;color:#7c9d87;margin-bottom:9px}
.entrant-field textarea{margin-top:2px;font-size:13px;min-height:64px;resize:vertical;line-height:1.45}
.entrant-field .roster-label{margin-top:13px}
.entrant-field .roster-label span{font-weight:600;font-size:11px}
.field-note{font-size:12px;line-height:1.55;color:#77816d;margin:0 0 13px}
.rules-fieldset .field-note{margin:12px 0 0}
.lobby-settings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.lobby-start{border-top:1px dashed #e5d7b7;padding-top:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.lobby-start .gold-button{min-width:230px;min-height:54px;justify-content:space-between;padding-inline:25px;border-radius:15px;font-size:15px}
.lobby-error{color:#b84f42;font-size:13px;font-weight:800;margin:0 0 6px}
.lobby-error:empty{display:none}
.lobby-note{font-size:12px;color:#839078;line-height:1.5;margin:0;max-width:420px}
.lobby-footer{text-align:center;color:#99967d;font-size:11px;font-weight:800;letter-spacing:.5px;padding-top:24px}
.lobby-footer>span:first-child{color:#dba54d;margin-right:5px}
.competition-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:9px 14px;background:#fffdf4d9;border:1px solid #e9d7ae;border-radius:13px;min-width:0}
.competition-bar>div{display:flex;align-items:center;gap:12px;min-width:0}
#competitionBadge{font-size:10px;letter-spacing:.8px;text-transform:uppercase;font-weight:900;color:#a77137;white-space:nowrap}
#competitionMatch{font-size:12px;color:#4c6861;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.competition-bar .text-button{font-size:11px;padding:5px 8px;color:#648071;min-height:30px}
.member-line{font-size:12px;font-weight:800;min-height:17px;margin:3px 0 0;overflow-wrap:anywhere}
.player-name{overflow-wrap:anywhere}
.result-actions{flex-wrap:wrap}
#rematchBtn{font-size:12px}
.result-overlay .result-card{max-height:94dvh;overflow:auto}
.bracket-modal{width:min(1080px,94vw);max-width:1080px}
.bracket-modal .modal-head h2{margin:5px 0 0}
.bracket-summary{background:#fff4d4;border:1px solid #edcf88;color:#866231;padding:14px 18px;border-radius:14px;margin-bottom:20px;line-height:1.5;font-weight:800;font-size:14px}
.bracket-grid{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:22px;overflow-x:auto;padding:0 1px 13px}
.bracket-round{min-width:0;display:flex;flex-direction:column}
.bracket-round h3{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:#789280;margin:0 0 13px}
.bracket-games{display:flex;flex:1;flex-direction:column;justify-content:space-around;gap:16px}
.bracket-game{border:1.5px solid #e5ddc8;border-radius:14px;background:#fffdf7;overflow:hidden;position:relative}
.bracket-game.current{border-color:#d1a333;box-shadow:0 0 0 3px #efca6540}
.bracket-game.complete{border-color:#93bfa7}
.bracket-match-label{font-size:9px;text-transform:uppercase;letter-spacing:1px;padding:8px 12px;background:#f7f3e7;color:#8a8b72;font-weight:900;display:flex;justify-content:space-between;gap:8px}
.bracket-game.current .bracket-match-label{background:#fff0bc;color:#92712c}
.bracket-slot{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 13px;font-size:13px;font-weight:800;color:#45655e;min-height:43px}
.bracket-slot+.bracket-slot{border-top:1px solid #eee7d8}
.bracket-slot.pending{color:#a4aa96;font-weight:500;font-size:11px}
.bracket-slot.won{background:#e4f5e7;color:#297451}
.bracket-slot.lost{color:#8a9485}
.bracket-slot span{overflow-wrap:anywhere;min-width:0}
.bracket-slot b{font-size:17px}
.bracket-slot.won b:before{content:'✓ ';font-size:12px}
.answer-flash-good{animation:answer-good .6s ease-out}
@keyframes answer-good{0%,40%{background:#ddf7e7;border-color:#39b970;box-shadow:0 0 0 5px #39b97030}100%{box-shadow:0 0 0 0 #39b97000}}
.player.shake .input-shell{background:#ffe1eb;border-color:#eb4e84}
@media(min-width:801px) and (max-height:800px){.competition-bar{padding:3px 12px;margin-bottom:7px}.competition-bar .text-button{min-height:26px;padding:3px 6px}.member-line{font-size:10px;min-height:14px;margin:1px 0 0}.lobby-hero{padding-block:25px}.lobby-hero h1{font-size:46px}.lobby-illustration{height:200px;transform:scale(.85) rotate(6deg)}.lobby-form{padding:24px 28px}}
@media(max-width:800px){.lobby{padding:18px 20px 25px}.lobby-hero{grid-template-columns:1fr 180px;gap:8px;padding:30px 0 24px}.lobby-hero h1{font-size:38px;letter-spacing:-1px}.lobby-hero p{font-size:14px}.lobby-illustration{width:180px;height:196px;transform:scale(.8) rotate(6deg);transform-origin:center}.lobby-form{padding:23px}.competition-option{padding:15px 10px;gap:8px}.competition-option b{font-size:14px}.mode-art{font-size:27px;flex-basis:29px}.lobby-settings{grid-template-columns:1fr 1fr}.competition-bar{flex-wrap:wrap;gap:4px;margin-bottom:10px}.competition-bar>div{gap:7px}.bracket-grid{grid-auto-columns:minmax(210px,1fr)}.member-line{font-size:11px}.lobby-start .gold-button{min-width:200px}}
@media(max-width:560px){.lobby{padding:17px 15px 25px}.lobby-top .brand b{font-size:17px}.lobby-top .brand span{font-size:8px}.lobby-hero{display:block;padding:30px 5px 23px;position:relative}.lobby-hero h1{font-size:38px;max-width:350px;position:relative;z-index:1}.lobby-hero p{max-width:360px}.lobby-illustration{display:none}.lobby-perks{gap:6px}.lobby-perks span{font-size:9px;padding:6px 9px}.lobby-form{padding:20px 16px;border-radius:22px}.lobby-form legend{font-size:15px;margin-bottom:12px}.competition-options{gap:7px}.competition-option{display:flex;flex-direction:column;justify-content:flex-start;text-align:center;gap:7px;padding:12px 6px}.competition-option b{font-size:12px}.competition-option small{font-size:10px}.mode-art{flex-basis:auto;height:29px;font-size:27px}.mode-art svg{height:28px;width:28px}.competition-option i{right:7px;top:7px;width:5px;height:5px}.entrant-fields{grid-template-columns:1fr;gap:10px}.entrant-field{padding:14px}.entrant-number{display:none}.tournament-options{grid-template-columns:1fr 1fr;padding:12px;gap:9px}.tournament-options p{grid-column:1/-1;margin:0;font-size:11px}.lobby-settings{gap:13px 10px}.lobby-form label>span{font-size:11px;min-height:14px}.lobby-form select{font-size:12px;padding:10px 8px}.lobby-start{display:block;padding-top:18px}.lobby-start .gold-button{width:100%;margin-top:15px}.lobby-note{font-size:11px}.lobby-form fieldset{margin-bottom:23px}.competition-bar{padding:7px 10px}.competition-bar>div:first-child{flex:1 1 100%;justify-content:space-between}.competition-bar>div:last-child{justify-content:space-between;width:100%}#competitionMatch{font-size:10px}.competition-bar .text-button{font-size:10px;padding:1px 0;min-height:25px}.member-line{font-size:10px;line-height:1.3;margin:0 0 4px}.result-actions{flex-direction:column}.result-actions button{width:100%}.bracket-modal .modal-body{padding:17px}.bracket-grid{grid-auto-flow:row;grid-template-columns:1fr;gap:23px;overflow:visible}.bracket-games{gap:11px}.bracket-round h3{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.competition-option{transition:none}.answer-flash-good{animation:none}}
