/* Original clean sports menu. Shared palette; no borrowed brand assets. */
:root{--ink:#173e48;--muted:#557079;--cyan:#087f87;--coral:#087f87;--blue:#087f87;--mint:#d9f4a3;--line:#dbe7e8;--surface:#f2f8f8;--yellow:#d9f4a3;color:var(--ink)}
html{scroll-behavior:smooth;scroll-padding-top:24px}body{background:var(--surface);background-image:none}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #087f87;outline-offset:4px}button{font-weight:700}button:not(:disabled):active{transform:translateY(1px)}
.topbar{height:76px;padding:0 32px;gap:38px;background:#fff;border:0;box-shadow:none}.brand{color:var(--ink);gap:10px}.brand svg{width:39px;height:35px;color:var(--cyan)}.brand strong{font-size:23px;font-style:normal;letter-spacing:-1.1px}.main-nav{display:flex;gap:22px;align-items:center;margin-left:20px}.main-nav a,.main-nav button{display:flex;align-items:center;gap:8px;text-decoration:none;font-size:14px;font-weight:700;color:#627b82;background:none;padding:9px 0}.main-nav span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#edf3f3;font-size:12px}.main-nav [aria-current=step]{color:var(--cyan)}.main-nav [aria-current=step] span{background:var(--cyan);color:#fff}.header-actions{gap:8px}.header-actions button{min-width:84px;min-height:42px;padding:9px 14px;border:1px solid var(--line);border-radius:22px;font-size:12px;color:#365b64;background:#fff;box-shadow:none}.header-actions button:hover{background:#f2f8f8}.network{font-size:12px;color:#417566;margin:0}.network:before{width:6px;height:6px}
.lobby{display:grid;grid-template-columns:minmax(360px,.92fr) minmax(0,1.65fr);grid-template-rows:minmax(0,1fr) 28px;grid-template-areas:'selection spotlight' 'footer footer';gap:18px 26px;height:calc(100svh - 76px);min-height:620px;max-width:1720px;padding:24px 32px 16px;margin:auto}
.selection{grid-area:selection;display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:none;margin:0}.selection-heading{min-height:0;display:block;padding:0 0 20px}.selection-heading .eyebrow{font-size:12px;font-weight:600;color:#627b82;margin:0 0 5px;letter-spacing:0}.selection-heading h2{font-size:27px;letter-spacing:-1px;margin:0;font-style:normal;color:var(--ink)}.sport-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(80px,1fr));gap:12px;flex:1;min-height:0}.sport-card{position:relative;background:#f3f7f7;border:2px solid transparent;border-radius:16px;box-shadow:none;padding:0;min-height:86px;overflow:hidden;transition:background .16s,border-color .16s,transform .16s}.sport-card:after,.sport-card:last-child:before{display:none}.sport-card:hover{background:#eaf4f3;border-color:#a2cccc;box-shadow:none;transform:translateY(-2px)}.sport-card[aria-pressed=true]{border-color:var(--cyan);background:#e1f3ee;box-shadow:none;transform:none}.sport-card[aria-pressed=true] .sport-name{color:#075f65}.sport-equipment{position:absolute;inset:8px 10% auto;width:80%;height:calc(100% - 46px);filter:none;object-fit:contain;transition:transform .16s}.sport-card:hover .sport-equipment{transform:translateY(-2px)}.sport-name{position:absolute;bottom:12px;left:2px;right:2px;font-size:16px;line-height:1.3;color:#284f5a;font-weight:700;letter-spacing:-.6px;white-space:nowrap}.selection-tick{top:6px;left:6px;width:18px;height:18px;border-radius:50%;background:var(--cyan);box-shadow:none}.selection-tick svg{width:11px;height:11px}.sport-card:last-child{grid-column:auto}.sport-card:last-child .sport-equipment{inset:4px 10% auto;width:80%;height:calc(100% - 34px)}.sport-card:last-child .sport-name{left:2px;right:2px;bottom:11px;font-size:13px;text-align:center}.selection-hint{display:flex;justify-content:center;align-items:center;gap:7px;font-size:11px;color:#667d83;margin:17px 0 0}.selection-hint kbd{font:inherit;padding:3px 7px;background:#f3f7f7;border:1px solid var(--line);border-radius:5px}.selection-hint>span{margin:0 3px}
.spotlight{grid-area:spotlight;position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;height:auto;margin:0;background:none;isolation:isolate}.spotlight:before,.spotlight:after{display:none}.hero-stage{position:relative;inset:auto;flex:1;width:100%;min-height:220px;margin:0;border-radius:24px;background:transparent;pointer-events:none}.preview-label{position:absolute;top:20px;left:20px;border:1px solid #ffffffa0;border-radius:20px;background:#fff;padding:7px 12px;color:#395f68;font-size:11px;font-weight:600;pointer-events:none}.hero-copy{position:relative;padding:22px 4px 0;display:block;z-index:1;align-self:stretch;min-width:0}.hero-meta{display:flex;align-items:center;gap:8px;margin:0 0 9px;color:#456b73;font-size:12px}.hero-meta span{background:#e3efef;border-radius:16px;padding:4px 10px}.hero-meta span+span:before{display:none}.selected-sport{position:static;padding:0;text-align:left}.selected-sport h1{display:block;font-size:clamp(34px,3vw,48px);line-height:1.2;letter-spacing:-1.8px;font-weight:800;font-style:normal;color:var(--ink);padding:0;margin:0 0 10px;background:none;box-shadow:none;transform:none}.selected-sport p{font-size:14px;font-weight:500;line-height:1.7;color:#4a6972;max-width:none;min-height:48px;margin:0;word-break:keep-all}.hero-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:18px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:13px 20px;font-size:16px;font-weight:700;line-height:1.4;border:2px solid transparent;border-radius:28px;box-shadow:none;transition:background .16s,transform .16s}.primary{background:var(--cyan);border-color:var(--cyan);color:#fff}.primary:not(:disabled):hover{background:#076970;border-color:#076970;box-shadow:none}.secondary{background:#fff;border-color:#c9dede;color:#1c6068}.secondary:not(:disabled):hover{background:#e7f3f2;border-color:#a8cccc;box-shadow:none}.primary:disabled,.secondary:disabled{background:#e6eded;border-color:#e6eded;color:#62777d;box-shadow:none}.hero-cta{gap:16px;min-width:0;width:100%;text-decoration:none}.hero-cta svg,.hero-pagination svg,.icon-button svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.hero-pagination{position:absolute;right:4px;bottom:167px;margin:0;display:flex;align-items:center;gap:10px}.hero-pagination button{width:38px;height:38px;display:grid;place-items:center;border:1px solid #c8dcdc;background:#fff;border-radius:50%;color:#315e67;box-shadow:none}.hero-pagination button:hover{background:#e0efed}.hero-pagination span{font-size:11px;color:#52717a;font-weight:700;letter-spacing:1px;min-width:55px;text-align:center}.sport-arrival .selected-sport{animation:menu-arrival .22s ease-out}.hero-stage[data-loading=true]:after,.hero-stage[data-loading=error]:after{background:#edf5f5;color:#3c636b;border-radius:24px;font-size:14px}
.lobby-footer{grid-area:footer;display:flex;align-items:center;justify-content:space-between;padding:0 5px;margin:0;border:0;color:#5e767d;font-size:11px;gap:20px}.lobby-footer .network{font-size:11px}
/* Connection is a real dialog: a clear next step, not another block on the lobby. */
.join-panel{position:fixed;inset:0;width:min(680px,calc(100vw - 32px));max-height:calc(100svh - 40px);overflow:auto;margin:auto;padding:28px 30px 20px;display:block;background:#fff;border:0;border-radius:24px;box-shadow:0 16px 64px #173e4826;color:var(--ink)}.join-panel:not([open]){display:none}.join-panel::backdrop,#help-dialog::backdrop{background:#183d485c;backdrop-filter:none}.setup-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{color:#54757c;font-size:12px;font-weight:600;letter-spacing:0}.setup-top h2{font-size:28px;letter-spacing:-1px;line-height:1.3;margin:4px 0 0}.icon-button{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#45666e}.icon-button:hover{background:#f0f6f6}.setup-sport{display:flex;align-items:center;gap:14px;background:#f0f6f5;border-radius:12px;padding:12px 16px;margin:22px 0;color:#456d74;font-size:13px}.setup-sport strong{margin-left:auto;color:#145b65;font-size:16px}.setup-connect{display:grid;grid-template-columns:156px minmax(0,1fr);gap:25px;align-items:center;padding:0 6px 22px;border-bottom:1px solid var(--line)}.qr-box{width:156px;height:156px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#fff}.qr-box img{width:144px;height:144px;object-fit:contain}.qr-box>span{font-size:12px}.join-heading h3{font-size:17px;letter-spacing:-.5px;margin:0 0 6px}.join-heading p{font-size:13px;line-height:1.7;color:#557079;margin:0 0 12px}.room-code{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:8px 0}.room-code>span{font-size:12px;color:#607c83}.room-code strong{font-size:27px;font-variant-numeric:tabular-nums;letter-spacing:4px;color:#194b58}#copy-link{min-height:40px;padding:7px 13px;border:1px solid #c9dede;border-radius:20px;background:#fff;color:#1c6068;font-size:12px}.roster-heading{display:flex;align-items:center;justify-content:space-between;margin:21px 0 14px}.roster-heading h3{font-size:15px;margin:0}.roster-heading>span{font-size:12px;color:#557079}.player-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0}.player-slot{padding:12px 4px;background:#f3f7f7;border:1px solid #edf2f2;border-radius:14px;gap:6px}.player-badge{width:32px;height:32px;background:#e3ecec;border:0;color:#587079;font-size:13px;box-shadow:none}.player-slot.connected{background:#eff8f4;border-color:#cce4db}.player-slot.ready{border-color:#99cdbc}.player-slot.ready .player-badge{background:var(--mint);color:#254b39}.player-name{font-size:12px;font-weight:700;color:#345862;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-status{font-size:10px;color:#607c83}.safety-note{font-size:12px;color:#526f76;text-align:center;margin:18px 0}.start-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.start-actions .primary,.start-actions .secondary{width:100%;min-height:54px;font-size:15px}.setup-help{display:block;min-height:38px;margin:12px auto 0;padding:8px 12px;color:#50757d;background:none;font-size:12px;text-decoration:underline;text-underline-offset:3px}
/* In play: small information surfaces, fewer competing boxes. */
.playing .topbar{height:62px;background:#fff}.playing .main-nav{display:none}.playing .brand strong{font-size:21px}.playing .brand svg{width:33px;height:30px}.game-hud{top:62px;background:none}.match-top{left:26px;right:26px;top:20px;gap:12px}.match-title,.clock,.match-top button{background:#fff;border:0;border-radius:18px;box-shadow:0 2px 10px #193e480d}.match-title{padding:12px 18px;min-width:142px}.match-title small{font-size:10px;color:#5b7880;letter-spacing:0}.match-title h2{font-size:25px;font-style:normal;letter-spacing:-1px;color:var(--ink);margin-top:3px}.clock{padding:10px 20px;min-width:95px}.clock span{font-size:10px;color:#5b7880}.clock strong{font-size:30px;font-style:normal;font-variant-numeric:tabular-nums;color:#174b57}.match-top button{min-width:108px;min-height:44px;padding:10px 18px;color:#315f69;font-size:13px;border:1px solid #e0ebeb;border-radius:24px}.game-guide{left:26px;top:120px;max-width:310px;padding:13px 16px;background:#fff;border:0;border-radius:16px;box-shadow:none}.game-guide #game-message{font-size:16px;font-weight:700;line-height:1.5;color:#224f59}.game-guide #game-detail{font-size:12px;color:#55747c;line-height:1.6;margin-top:5px}.game-guide .match-badge{background:#e9f3f2;border:0;border-radius:7px;color:#266971;font-size:11px;padding:4px 8px}.game-guide .meter-track{height:8px;background:#e6eeee;border:0}.meter-track i{background:var(--cyan)}.scoreboard{gap:10px;max-width:880px}.score-card{border:1px solid #e1eaea;border-radius:16px;background:#fff;box-shadow:none;padding:11px 16px}.score-card strong{font-size:29px;font-style:normal;color:#194b57}.score-card.turn{border-color:#087f87;box-shadow:0 0 0 2px #087f87}.score-card.leading:after{border-radius:8px;background:#d9f4a3;color:#254b39}.score-name{font-size:13px}.practice-bar{border:1px solid #d9e7e7;border-radius:30px;background:#fff;padding:6px 6px 6px 18px;box-shadow:none;gap:13px}.practice-bar span{font-size:12px;color:#4f7079}.practice-bar button{background:var(--cyan);border-radius:25px;padding:12px 22px;min-height:44px;font-size:14px;box-shadow:none}.practice-bar kbd{background:#ffffff26;color:#fff;font-size:11px;border:0}.event-pop{border:0;border-radius:22px;font-size:24px;box-shadow:0 4px 16px #193e4817;transform:none}.focus-caption,.wind-gauge,.slowmo-tag{border-radius:16px;font-size:12px}.duel-board{position:absolute;top:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:16px;min-width:290px;padding:14px 22px;background:#fff;color:#173e48;border:0;border-radius:20px;box-shadow:none;font-weight:700}.duel-board[hidden]{display:none}.duel-board strong{font-size:35px;line-height:1;font-variant-numeric:tabular-nums}.duel-board i{font-size:18px;font-style:normal;color:#6b858c}.duel-board span{font-size:12px;max-width:94px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tennis-duel #scoreboard{display:none}.tennis-duel .focus-caption{top:102px}.tennis-duel .skill-meter{display:none}.tennis-duel .clock{position:absolute;top:83px;right:0;min-width:74px;padding:7px 12px;display:flex;align-items:center;gap:9px;border-radius:16px}.tennis-duel .clock span{font-size:9px}.tennis-duel .clock strong{font-size:22px}
.modal{background:#163c4859}.dialog{background:#fff;border:0;border-radius:24px;box-shadow:0 16px 60px #183e4826;padding:30px;max-height:calc(100svh - 32px);overflow:auto}.dialog h2{font-size:29px;font-style:normal;letter-spacing:-1px;color:var(--ink);margin:9px 0 12px}.dialog .eyebrow{font-size:12px;color:#55777f}.dialog>p:not(.eyebrow){font-size:14px;line-height:1.7;color:#4b6b74}.result-row{border:1px solid #e4eded;border-radius:14px;background:#f4f8f8;padding:12px 15px}.result-row:first-child{background:#eff8dd;border:1px solid #ccdfab}.result-row .rank{font-size:20px;font-style:normal}.result-row strong{font-size:28px;font-style:normal}.result-actions,.pause-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:22px}.result-actions button,.pause-actions button{width:100%;min-height:52px;font-size:15px}.pause-actions button{margin:0}.celebrating .game-guide,.celebrating .match-top,.celebrating .scoreboard,.celebrating .practice-bar,.celebrating .duel-board{visibility:hidden}.celebrating #result-modal{padding-right:5vw}.toast{border:0;border-radius:25px;background:#214f59;color:#fff;box-shadow:0 5px 18px #173e4820;padding:13px 22px;font-size:13px}
#help-dialog{padding:28px;border:0;border-radius:24px;width:min(550px,calc(100vw - 32px));color:var(--ink);background:#fff;box-shadow:0 16px 60px #173e4826;max-height:calc(100svh - 32px);overflow:auto}.help-top{display:flex;align-items:center;justify-content:space-between}.help-top .eyebrow{margin:0}.help-top button{background:#f0f6f6;padding:10px 15px;border-radius:22px;font-size:13px;min-height:42px}#help-title{font-size:28px;letter-spacing:-1px;margin:16px 0 25px}.help-steps{padding:0;margin:0;list-style:none;display:grid;gap:24px}.help-steps li{display:flex;gap:17px}.help-steps li>span{color:var(--cyan);font-size:20px;line-height:1.4;font-weight:800}.help-steps h3{margin:0 0 5px;font-size:16px}.help-steps p{font-size:13px;color:#52747c;margin:0;line-height:1.8;word-break:keep-all}.help-safety{font-size:12px;line-height:1.8;padding:15px;margin:25px 0 0;background:#f0f6f6;border-radius:12px;color:#4c6e76}
@keyframes menu-arrival{from{transform:translateY(5px)}to{transform:translateY(0)}}
@media(min-width:1700px){.lobby{padding:28px 40px 20px;gap:22px 32px}.selection{padding:28px}.sport-grid{gap:14px}.sport-name{font-size:15px}.sport-card:last-child .sport-name{font-size:15px}.hero-copy{padding-top:26px}.selected-sport h1{font-size:48px}.selected-sport p{font-size:16px}}
@media(max-height:780px) and (min-width:1001px){.lobby{min-height:560px;padding-top:18px;gap:12px 22px}.selection{padding:20px}.selection-heading{padding-bottom:16px}.selection-heading h2{font-size:24px}.sport-grid{gap:8px;grid-template-rows:repeat(4,minmax(76px,1fr))}.sport-card{min-height:76px}.sport-name{font-size:12px}.sport-card:last-child .sport-name{font-size:12px}.hero-copy{padding-top:16px}.hero-meta{margin-bottom:7px}.selected-sport h1{font-size:35px;margin-bottom:7px}.selected-sport p{font-size:13px;min-height:44px}.hero-actions{margin-top:12px}.hero-pagination{bottom:148px}.primary,.secondary{min-height:50px;font-size:15px}}
@media(max-width:1150px){.topbar{padding:0 24px;gap:20px}.main-nav{gap:15px;margin-left:0}.main-nav a,.main-nav button{font-size:12px}.header-actions button{min-width:72px;padding:9px 10px;font-size:11px}.lobby{padding-left:24px;padding-right:24px;grid-template-columns:minmax(340px,1fr) minmax(0,1.4fr);gap:18px}.selection{padding:20px}.sport-name{font-size:11px}.sport-card:last-child .sport-name{font-size:11px}.hero-pagination{bottom:172px;gap:6px}.hero-pagination button{width:34px;height:34px}.hero-pagination span{min-width:47px}.selected-sport h1{font-size:36px}.hero-actions{gap:9px}.hero-actions button{font-size:14px;padding:12px 10px}.hero-cta{gap:7px}}
@media(max-width:1000px){.topbar{height:70px;padding:0 20px}.brand strong{font-size:21px}.brand svg{width:32px}.main-nav{display:none}.lobby{height:auto;min-height:0;padding:20px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;grid-template-areas:'selection' 'spotlight' 'footer';gap:20px;max-width:800px}.selection{padding:22px}.selection-heading{display:flex;padding-bottom:18px}.selection-heading h2{font-size:25px}.sport-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:100px;gap:10px}.sport-card{min-height:0}.sport-name,.sport-card:last-child .sport-name{font-size:13px}.selection-hint{display:none}.hero-stage{height:350px;flex:auto;min-height:0}.hero-copy{padding:20px 2px 0}.selected-sport h1{font-size:40px}.selected-sport p{font-size:14px;min-height:0;max-width:520px}.hero-pagination{top:370px;bottom:auto}.hero-actions{margin-top:18px;gap:12px}.hero-actions button{font-size:16px}.lobby-footer{flex-wrap:wrap;font-size:11px;gap:10px}.game-guide{max-width:36vw;left:18px;top:110px}.match-top{left:18px;right:18px}.duel-board{min-width:250px;padding:14px;gap:12px}.duel-board strong{font-size:30px}.duel-board span{max-width:73px;font-size:11px}.match-title{padding:11px 14px;min-width:114px}.match-title h2{font-size:23px}.practice-bar>span:last-child{display:none}}
@media(max-width:580px){.topbar{height:64px;padding:0 14px;gap:10px}.brand strong{font-size:19px;letter-spacing:-1px}.brand svg{width:27px;height:30px}.header-actions{gap:5px}.header-actions button{min-width:44px;min-height:38px;padding:7px 9px;font-size:10px}.header-actions #fullscreen{display:none}.lobby{padding:14px;gap:18px}.selection{padding:18px 14px;border-radius:20px}.selection-heading{padding:0 4px 15px}.selection-heading .eyebrow{font-size:11px}.selection-heading h2{font-size:23px}.sport-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:95px;gap:8px}.sport-card{border-radius:13px}.sport-name,.sport-card:last-child .sport-name{font-size:12px;bottom:10px}.sport-equipment,.sport-card:last-child .sport-equipment{height:calc(100% - 31px)}.hero-stage{height:270px;border-radius:20px}.preview-label{top:12px;left:12px;font-size:10px;padding:6px 10px}.hero-copy{padding-top:17px}.hero-meta{font-size:11px;gap:6px}.selected-sport h1{font-size:35px;margin-top:7px}.selected-sport p{font-size:13px;line-height:1.8;min-height:46px}.hero-pagination{top:287px;right:2px;gap:5px}.hero-pagination button{width:32px;height:32px}.hero-pagination span{font-size:10px;min-width:43px;letter-spacing:0}.hero-actions{gap:9px;margin-top:14px}.hero-actions button{font-size:14px;padding:12px 9px;min-height:52px}.hero-cta svg{width:16px}.lobby-footer{padding:2px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}.join-panel{padding:22px 18px 16px;border-radius:22px;max-height:calc(100svh - 24px)}.setup-top h2{font-size:24px}.setup-sport{margin:18px 0;padding:11px 13px}.setup-connect{grid-template-columns:114px minmax(0,1fr);gap:14px;padding:0 0 18px}.qr-box{width:114px;height:114px;padding:4px;border-radius:11px}.qr-box img{width:104px;height:104px}.join-heading h3{font-size:14px;line-height:1.5}.join-heading p{font-size:12px;margin-bottom:8px}.room-code{gap:7px}.room-code>span{font-size:10px}.room-code strong{font-size:22px;letter-spacing:3px}#copy-link{font-size:11px;min-height:38px;padding:6px 10px}.player-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.player-slot{display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:18px 17px;padding:11px 12px;gap:2px 9px;text-align:left}.player-badge{grid-row:1/3}.player-name{font-size:12px}.player-status{font-size:10px}.start-actions{gap:8px}.start-actions button{font-size:13px;padding:12px 6px;min-height:52px}.safety-note{font-size:11px;margin:16px 0}.playing .topbar{height:56px}.playing .brand strong{font-size:18px}.playing .brand svg{width:27px}.game-hud{top:56px}.match-top{left:12px;right:12px;top:12px}.match-title{padding:9px 12px;min-width:104px;border-radius:15px}.match-title h2{font-size:21px}.match-title small{font-size:9px}.match-top button{min-width:88px;min-height:41px;font-size:11px;padding:9px 13px}.clock{min-width:72px;padding:8px 12px}.clock strong{font-size:26px}.duel-board{top:88px;min-width:230px;gap:12px;padding:12px 16px;border-radius:17px}.duel-board strong{font-size:29px}.duel-board span{font-size:11px}.tennis-duel .clock{position:static;display:block;padding:6px 10px;min-width:63px;border-radius:15px}.tennis-duel .clock strong{font-size:23px}.tennis-duel .clock span{font-size:8px}.tennis-duel .focus-caption{top:150px}.game-guide{left:12px;top:100px;max-width:calc(100vw - 24px);padding:10px 13px;border-radius:13px}.tennis-duel .game-guide{top:157px;max-width:250px}.game-guide #game-message{font-size:13px}.game-guide #game-detail{font-size:10px}.game-guide .match-badge{font-size:9px}.practice-bar{padding:5px;gap:7px}.practice-bar span{font-size:9px;padding-left:7px}.practice-bar button{font-size:12px;padding:10px 15px;min-height:42px}.practice-bar kbd{font-size:9px}.score-card{padding:8px;gap:6px}.score-name{font-size:10px}.score-card strong{font-size:25px}.scoreboard{gap:7px}.dialog{padding:24px 20px;border-radius:22px}.dialog h2{font-size:25px}.result-actions,.pause-actions{gap:9px}.result-actions button,.pause-actions button{font-size:13px;min-height:50px;padding:11px 8px}.celebrating #result-modal{padding:14px}#help-dialog{padding:24px 20px}#help-title{font-size:25px}.help-steps{gap:20px}.help-steps p{font-size:12px}}
@media(orientation:landscape) and (max-height:540px){.playing .topbar{height:48px}.playing .game-hud{top:48px}.match-top{top:12px}.match-title{padding:7px 12px}.match-title h2{font-size:20px}.clock{padding:6px 13px}.clock strong{font-size:23px}.duel-board{top:12px;padding:11px 15px;min-width:240px}.game-guide{top:91px;max-width:28vw;padding:8px 11px}.game-guide #game-detail{display:none}.tennis-duel .game-guide{top:91px}.tennis-duel .clock{position:absolute;top:70px;right:0;display:flex}.tennis-duel .focus-caption{top:77px}.celebrating #result-modal{place-items:center end;padding:12px}.celebrating #result-modal .dialog{width:min(400px,48vw);padding:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.sport-arrival .selected-sport{animation:none}.sport-card,.sport-equipment,.primary,.secondary{transition:none}.sport-card:hover,.sport-card:hover .sport-equipment{transform:none}}
.join-heading p{word-break:keep-all}

/* Badminton: reference-standard screen layout (original styling, no borrowed artwork). */
.badminton-ref .match-title,.badminton-ref .clock,.badminton-ref .game-guide,.badminton-ref #duel-board,.badminton-ref #practice-bar,.badminton-ref #scoreboard,.badminton-ref #event-pop,.badminton-ref #focus-caption,.badminton-ref #round-cue{display:none!important}
.badminton-ref .match-top{justify-content:flex-end;pointer-events:none}
.bm-overlay{position:absolute;inset:0;pointer-events:none;font-family:inherit;z-index:3}
/* Scoreboard (corners, player chips, clock, score card, centre band): styles/sport-hud.css. */
.bm-corner,.bm-banner,.bm-band{position:absolute}
.bm-timing{position:absolute;transform:translate(-50%,-50%);white-space:nowrap}
.bm-tag{position:absolute;transform:translate(-50%,-140%)}
@keyframes bm-bump{0%{transform:scale(1)}40%{transform:scale(1.28)}100%{transform:scale(1)}}
@keyframes bm-pop{0%{transform:translate(-50%,-30%) scale(.6)}20%{transform:translate(-50%,-50%) scale(1.08)}35%{transform:translate(-50%,-50%) scale(1)}100%{transform:translate(-50%,-85%) scale(1)}}
@media (prefers-reduced-motion:reduce){.bm-banner.show,.bm-band.show,.bm-timing.pop,.bm-tab{animation:none!important}}
/* Shared sport overlay (same reference layout as badminton, adapted per sport). The in-match guide (control row, gauge,
   status pill, judgement words) lives in styles/sport-hud.css. */
.sport-ref .clock{display:none!important}
.sp-board,.sp-clock{position:absolute}
.sp-trail{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.sp-trail polyline{fill:none;stroke:#fff;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 6px #8ff3ff)}
.sp-trail.fade polyline{animation:sp-trail .26s ease-out forwards}@keyframes sp-trail{to{stroke-width:0}}

.sport-ref .game-hud,.sport-ref #world{user-select:none;-webkit-user-select:none;touch-action:none}
.sport-overlay .bm-tag.pop{animation:sp-tag .28s cubic-bezier(.3,1.6,.5,1)}
@keyframes sp-tag{from{transform:translate(-50%,-140%) scale(.6)}to{transform:translate(-50%,-140%) scale(1)}}
@media (prefers-reduced-motion:reduce){.sport-overlay .bm-tag.pop{transition:none;animation:none}}
/* 결과 화면 경기 기록 */
.result-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;margin:14px 0 0;padding:0}
.result-stats>div{background:#f4f6f8;border:1px solid #e3e7ec;border-radius:12px;padding:10px 8px;text-align:center}
.result-stats dt{font-size:13px;color:#5b6573;margin:0 0 4px}
.result-stats dd{margin:0;font-size:20px;font-weight:800;color:#18202b}
/* 경기 카운트다운: 기울임 없이 시계와 같은 흰 원 + 남색 숫자 */
body.sport-ref .countdown{top:44%;transform:translate(-50%,-50%);font-style:normal;-webkit-text-stroke:0;text-shadow:none;width:150px;height:150px;border-radius:50%;background:#fff;color:#16324a;font-size:88px;font-weight:900;display:flex;align-items:center;justify-content:center;border:0;box-shadow:0 8px 0 rgba(22,50,74,.16);font-variant-numeric:tabular-nums}
body.sport-ref .countdown[hidden]{display:none}
/* 세로 화면은 경기장 위쪽에 정보, 아래쪽에 조작을 분리한다. */
@media (max-width:700px) and (orientation:portrait){
 .result-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* 바람이 있는 종목에서는 중앙 시계 아래에 별도로 표시한다. */
.sport-ref .wind-gauge{top:78px;bottom:auto;padding:5px 12px;box-shadow:0 2px 0 #c8d5da;font-size:13px}
@media (max-width:700px) and (orientation:portrait){
 .sport-ref .wind-gauge{top:190px;bottom:auto;font-size:12px}
 .sport-ref:has(.sp-board) .wind-gauge{top:250px}
}

/* Split screen (people on both sides): divider, per-view name chips, and the side card shown during the countdown. */
.split-view{position:absolute;inset:0;pointer-events:none;z-index:2}.split-view[hidden]{display:none}
.split-divider{position:absolute;background:#16283a}
.split-label{position:absolute;display:flex;gap:6px;white-space:nowrap}.split-label[data-align=right]{transform:translateX(-100%)}.split-label[hidden]{display:none}
.split-label span,.team-side span{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:999px;background:#fff;color:#16324a;font-size:14px;font-weight:800;box-shadow:0 3px 0 rgba(15,35,55,.18)}
.split-label i,.team-side i{width:12px;height:12px;border-radius:50%;flex:none}
.team-intro{position:absolute;left:50%;top:calc(44% + 104px);transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:20px;background:#fff;box-shadow:0 5px 0 rgba(15,35,55,.2);z-index:6;max-width:calc(100vw - 24px)}.team-intro[hidden]{display:none}
.team-intro b{font-size:18px;font-weight:900;color:#16324a}.team-side{display:flex;flex-wrap:wrap;align-items:center;gap:6px;justify-content:center}
.team-side small{flex-basis:100%;text-align:center;font-size:14px;font-weight:800;color:#2f86cf}.team-side[data-side="1"] small{color:#d6524e}
.team-side span{background:#f1f6f6;box-shadow:none}
@media (max-width:700px){.split-label span{height:26px;padding:0 9px;font-size:14px}.team-intro{gap:8px;padding:10px}.team-side span{height:28px;padding:0 9px}}
@media (max-width:700px) and (orientation:portrait){.team-intro{flex-direction:column}}
/* Split screen HUD: stacked layout moves the far side's score corner to the lower view. The guide row and gauge of each view are laid out in styles/sport-hud.css. */
.bm-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:6px;vertical-align:baseline}
body .sport-overlay.sp-split-v .bm-right{top:calc(50% + 10px)}
/* Pause and result panels (2026-11-11): the same white plate, flat shadow and bold navy type as the in-match guide.
   A player is a small colour dot; the winner's row is the dark one; numbers are big. */
.modal{background:rgba(22,50,74,.42)}
.celebrating #result-modal{background:none}
.modal .dialog{width:min(480px,94vw);padding:30px 32px 32px;border-radius:28px;box-shadow:0 8px 0 rgba(22,50,74,.16);color:#16324a}
.modal .dialog .eyebrow{margin:0;font-size:15px;font-weight:800;color:#5d7186}
.modal .dialog h2{margin:4px 0 8px;font-size:36px;font-weight:900;line-height:1.25;letter-spacing:-.03em;color:#16324a}
.modal .dialog>p:not(.eyebrow){margin:0 0 20px;font-size:17px;font-weight:700;line-height:1.5;color:#44596c;word-break:keep-all}
.modal .dialog .secondary{border-color:#d5dfe6;color:#16324a}
.modal .result-dialog{width:min(520px,94vw)}
#results{display:grid;gap:8px}
#results .result-row{display:flex;align-items:center;gap:12px;height:58px;margin:0;padding:0 20px 0 14px;border:0;border-radius:16px;background:#f1f5f7;color:#16324a}
#results .result-row.top{background:#16324a;color:#fff}
#results .rank{flex:none;width:44px;font-size:24px;font-weight:900;line-height:1;color:#5d7186;text-align:center;white-space:nowrap}
#results .rank::after{content:'위';margin-left:1px;font-size:15px}
#results .result-row.top .rank{color:#fff}
#results .player-badge{flex:none;width:16px;height:16px;border:0;border-radius:50%;background:var(--player-color);box-shadow:none;font-size:0}
#results .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:20px;font-weight:900}
#results .result-row strong{flex:none;font-size:32px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
#results .result-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 0;padding:0}
#results .result-stats>div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:0 16px;border:0;border-radius:14px;background:#f1f5f7;text-align:left}
#results .result-stats>div:last-child:nth-child(odd){grid-column:1/-1}
#results .result-stats dt{margin:0;font-size:15px;font-weight:700;color:#5d7186;white-space:nowrap}
#results .result-stats dd{margin:0;font-size:19px;font-weight:900;color:#16324a;white-space:nowrap}
/* While the result is up, the panel is the scoreboard: the in-match plates step aside. */
body:has(#result-modal:not([hidden])) .sport-overlay .bm-corner,body:has(#result-modal:not([hidden])) .sport-overlay .sp-board{display:none}
@media(max-width:580px){.modal .dialog{padding:22px 18px 20px;border-radius:24px}.modal .dialog h2{font-size:30px}.modal .dialog>p:not(.eyebrow){font-size:16px;margin-bottom:16px}.modal .result-actions button,.modal .pause-actions button{min-height:54px;font-size:17px}#results .result-row{height:52px;padding:0 16px 0 10px}#results .name{font-size:18px}#results .result-row strong{font-size:28px}#results .result-stats>div{padding:0 12px}}
@media(orientation:landscape) and (max-height:620px){.modal .dialog{padding:18px 22px 20px}.modal .dialog h2{font-size:28px;margin-bottom:4px}.modal .dialog>p:not(.eyebrow){font-size:15px;margin-bottom:12px}#results{gap:6px}#results .result-row{height:46px}#results .result-row strong{font-size:26px}#results .result-stats>div{min-height:40px}.modal .result-actions,.modal .pause-actions{margin-top:14px}.modal .result-actions button,.modal .pause-actions button{min-height:50px}}
.toast{font-size:15px;font-weight:800;border-radius:999px;background:#16324a;box-shadow:0 4px 0 rgba(22,50,74,.16)}
#help-dialog::backdrop{background:rgba(22,50,74,.42)}
/* Living-room screen (1080p and up): the dialogs grow with the match HUD (which is 1.5x there), so the QR and the names read from the sofa. */
@media(min-width:1700px) and (min-height:950px){#help-dialog,.modal .dialog{zoom:1.4}}
/* Help (2026-11-11): how to start and how to play today, in the same plate. Pictures are the phone-move art of the in-match guide. */
#help-dialog{width:min(820px,calc(100vw - 32px));padding:28px 32px;border-radius:28px;box-shadow:0 8px 0 rgba(22,50,74,.16);color:#16324a}
#help-dialog .help-top{align-items:center}
#help-dialog #help-title{margin:0;font-size:34px;font-weight:900;line-height:1.25;letter-spacing:-.03em}
#help-dialog .help-top button{min-height:44px;padding:8px 20px;border:2px solid #d5dfe6;border-radius:999px;background:#fff;color:#16324a;font-size:16px;font-weight:900}
#help-dialog .help-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;margin-top:20px}
#help-dialog h3{margin:0 0 12px;font-size:16px;font-weight:800;color:#5d7186}
#help-dialog .help-steps,#help-dialog .help-moves{display:grid;gap:10px;margin:0;padding:0;list-style:none}
#help-dialog .help-steps li,#help-dialog .help-moves li{display:flex;align-items:center;gap:14px;min-height:76px;padding:8px 16px;border-radius:18px;background:#f1f5f7}
#help-dialog .help-steps li>span{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:#16324a;color:#fff;font-size:18px;font-weight:900;line-height:1}
#help-dialog .help-moves img{flex:none;width:64px;height:64px;object-fit:contain}
#help-dialog h4{margin:0 0 2px;font-size:19px;font-weight:900;line-height:1.3;color:#16324a}
#help-dialog li p{margin:0;font-size:15px;font-weight:600;line-height:1.5;color:#44596c;word-break:keep-all}
#help-dialog .help-notes{display:grid;gap:6px;margin:20px 0 0;padding:0 0 0 20px;font-size:15px;font-weight:600;line-height:1.6;color:#44596c;word-break:keep-all}
@media(max-width:700px){#help-dialog{padding:20px 16px}#help-dialog #help-title{font-size:28px}#help-dialog .help-cols{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:16px}#help-dialog .help-steps li,#help-dialog .help-moves li{min-height:64px;padding:8px 12px;gap:12px}#help-dialog h4{font-size:17px}#help-dialog .help-moves img{width:52px;height:52px}}
