@font-face{font-family:Game;src:local('Malgun Gothic')}*{box-sizing:border-box}html,body{margin:0;height:100%;color:#f7f0d7;font-family:Game,'Segoe UI',sans-serif}body{background:#081e25 url('assets/background.webp') center/cover fixed;font-size:14px}body:before{content:'';position:fixed;inset:0;background:#031820bd;z-index:-1}button,input,select,textarea{font:inherit}button{cursor:pointer;color:#f8edcf;background:linear-gradient(#294e54,#15343f);border:1px solid #9b8c58;border-radius:9px;padding:9px 12px;font-weight:700;box-shadow:inset 0 1px #ffffff1b,0 3px 0 #06151b;transition:filter .15s,transform .15s}button:hover{filter:brightness(1.2)}button:active{transform:translateY(2px)}button:disabled{opacity:.4;cursor:default}.primary{background:linear-gradient(135deg,#ffecb0,#c39743);color:#20363b;border-color:#ffe4a0}.brand{color:#bcbfab;text-decoration:none;display:flex;align-items:center;gap:12px}.brand img{width:65px;height:65px;object-fit:contain}.brand span{font-size:12px}header{height:100px;padding:8px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #b49d5a66;background:#071f29c9;position:relative}.title-logo{position:absolute;left:50%;transform:translateX(-50%);width:min(38vw,420px);height:93px;object-fit:contain}.settings{display:flex;align-items:center;gap:15px;z-index:1}.settings label{display:flex;align-items:center;gap:8px;font-size:12px}.settings input{width:75px;accent-color:#e3bc63}main{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px;height:calc(100dvh - 100px);padding:14px 20px 12px;max-width:2200px;margin:auto}.arena{min-width:0;min-height:0;display:flex;flex-direction:column;border:2px solid #b8a368;border-radius:18px;background:#09222c;box-shadow:inset 0 0 0 4px #264c56,0 12px 30px #0006;overflow:hidden}.hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 22px;border-bottom:1px solid #b7a36a88;background:linear-gradient(110deg,#1d4148,#091e2b,#1d4148);flex-shrink:0}.hud small{display:block;font-size:11px;color:#c6cebc;letter-spacing:.06em}.hud strong{display:block;margin-top:4px;font-size:18px}.hud .clock{text-align:center}.clock strong{font-size:27px;letter-spacing:.06em;font-variant-numeric:tabular-nums;color:#ffe0a1}.hud-right{text-align:right}.hud-right button{margin-top:5px;padding:4px 10px;font-size:12px}#viewport{position:relative;min-height:0;flex:1;overflow:hidden;background:#102e36}#game{display:block;width:100%;height:100%;touch-action:none}#veil{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(#061d25b3,#061b24df),url('assets/background.webp') center/cover;backdrop-filter:blur(5px)}.seal{max-width:90%;text-align:center;padding:32px 50px;border:1px solid #bda86b;border-radius:100px 16px;background:linear-gradient(140deg,#163d46dc,#091c2ae8);box-shadow:0 0 0 6px #bba36516,0 0 0 8px #bba36549,0 20px 90px #000a}.compass{font-size:60px;color:#e9c77b;text-shadow:0 0 26px #e9c77b99}.seal h1{font-size:clamp(26px,3vw,47px);line-height:1.35;margin:10px 0 22px}.seal h1 em{font-style:normal;color:#f6d992}.seal p{color:#d4d9c9}.seal-note{font-size:12px;color:#a9bbaf}#countdown{position:absolute;inset:0;background:#0316214d;display:grid;place-items:center;font-size:clamp(140px,24vw,280px);font-weight:1000;color:#ffe4a3;text-shadow:0 7px #6b4c1c,0 14px #08242d,0 0 60px #e4d1949c;-webkit-text-stroke:3px #aa7b35}#countdown[hidden]{display:none}#countdown.pop{animation:countpop .85s ease-out}@keyframes countpop{0%{transform:scale(1.5);opacity:0}25%{opacity:1}100%{transform:scale(.9)}}#notice{position:absolute;top:20px;left:50%;transform:translateX(-50%);background:#082733ed;border:1px solid #d5bb75;border-radius:40px;padding:12px 30px;font-size:19px;font-weight:bold;white-space:nowrap;pointer-events:none}.view-tools{position:absolute;bottom:16px;right:14px;display:flex;align-items:center;gap:7px;background:#061b25c9;border:1px solid #819c8977;border-radius:12px;padding:4px;font-size:10px;color:#b8cfc6}.view-tools button{font-size:18px;padding:3px 11px}.legend{position:absolute;bottom:22px;left:18px;display:flex;align-items:center;gap:7px;font-size:11px;color:#e4d6b2;text-shadow:0 1px 3px #000}.legend i{width:8px;height:8px;border-radius:50%;background:#ffe7a2;box-shadow:0 0 9px #ffcf6b}.legend span{color:#a7c9bf;margin-left:12px}.arena-footer{padding:8px 18px;display:flex;justify-content:space-between;font-size:10px;color:#b5c8bf;flex-shrink:0}.arena-footer b{margin-left:12px;letter-spacing:.1em;font-size:9px;color:#b8a66f}aside{min-height:0;display:flex;flex-direction:column;gap:10px}.panel{position:relative;padding:14px 16px;background:linear-gradient(125deg,#1b3c46ec,#091f2bed);border:1px solid #a3935f;border-radius:13px;box-shadow:inset 0 0 0 3px #b3a36612,0 5px 20px #0003}.panel:before,.panel:after{content:'◆';position:absolute;font-size:8px;color:#d7bf7e;top:-5px}.panel:before{left:20px}.panel:after{right:20px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.panel-title h2{font-size:18px;margin:0}.panel-title>span{font-size:10px;color:#ffe0a1;background:#d6ba6e15;border:1px solid #b5a26c55;padding:3px 6px;border-radius:5px}.hint,.race-options p,.ranking-note{font-size:11px;color:#bed0c2;line-height:1.5}.lobby{display:flex;flex-direction:column;min-height:220px;flex:1.35}.lobby>.hint{margin:0 0 9px}#join{display:flex;gap:6px}input:not([type=range]),textarea,select{color:#f3eedb;background:#081d29;border:1px solid #9b9a6c;border-radius:7px;padding:10px;min-width:0}input::placeholder,textarea::placeholder{color:#99aca9}#nickname{flex:1;width:100px;font-size:12px}#add{padding:8px 13px}details{font-size:11px;color:#c7d2c4;margin:9px 0}details textarea{width:100%;margin:7px 0}.lobby-buttons{display:flex;gap:5px}.lobby-buttons button{font-size:10px;padding:7px 6px;flex:1}#message{font-size:10px;color:#ddcf95;margin:8px 0;min-height:15px}#message.error{color:#ffad9e}#participants{overflow:auto;min-height:0;flex:1;padding-right:3px}.participant{display:flex;align-items:center;gap:7px;border-bottom:1px solid #8fa29a26;min-height:44px}.participant canvas{width:35px;height:39px}.participant .slot{font-size:10px;color:#98b7ae;width:15px}.participant .who{flex:1;min-width:0}.participant b{display:block;overflow:hidden;text-overflow:ellipsis;font-size:13px;white-space:nowrap}.participant small{font-size:10px;color:#a4bdb4}.participant button{border:0;box-shadow:none;background:transparent;padding:2px 5px;color:#9aaea4}.race-options{flex-shrink:0}.race-options select{width:100%;font-size:12px;padding:8px}.race-options p{margin:6px 0 0;font-size:10px}.standings{min-height:125px;flex:.85;display:flex;flex-direction:column}#ranks{overflow:auto;min-height:0;flex:1}.rank{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #9cb5a527;font-size:12px}.rank b{font-size:15px;width:20px;color:#e7cd8b}.rank span{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.rank em{font-size:11px;color:#9cd7c9;font-style:normal}.ranking-note{font-size:9px;margin:8px 0 0}.controls{display:grid;grid-template-columns:1.25fr 1fr;gap:7px;flex-shrink:0}.controls button{font-size:13px;padding:11px 5px}.controls #reset{grid-column:1/-1;padding:5px;font-size:11px}.credit{text-align:center;font-size:10px;margin:0;color:#839b94}dialog{width:min(560px,90%);max-height:95%;overflow:auto;background:radial-gradient(at 50% 20%,#365e59,#0b2737 60%);border:3px solid #ddbd70;border-radius:27px;padding:27px 35px;color:#fff2ce;text-align:center;box-shadow:inset 0 0 0 5px #142f3a,0 0 0 5px #9b814f55,0 30px 100px #000b}dialog::backdrop{background:#02131ed9;backdrop-filter:blur(7px)}dialog small{letter-spacing:.2em;font-size:10px;color:#e0c98b}dialog .close{position:absolute;right:13px;top:12px;font-size:18px;padding:2px 8px}dialog .trophy{font-size:56px;color:#ffdc80;position:absolute;left:50%;top:55px;transform:translateX(-50%);text-shadow:0 0 24px #ffcf69}#winnerPortrait{width:140px;height:140px;margin-top:40px}dialog h2{font-size:34px;margin:0;word-break:break-all}#winnerCharacter{font-size:12px;color:#b9d0be;margin:8px 0 19px}.winner-stats{display:flex;gap:10px;border-top:1px solid #d7bd7955;border-bottom:1px solid #d7bd7955;padding:15px 0;margin:15px 0}.winner-stats>div{flex:1}.winner-stats span{font-size:10px;display:block;color:#b8c9b9}.winner-stats b{font-size:20px;display:block;margin-top:7px}.result-note{font-size:11px;color:#b3c6b8}#again{display:block;width:100%;font-size:17px;margin:20px 0 8px}#viewFinish{font-size:12px;padding:5px 15px}*{scrollbar-width:thin;scrollbar-color:#9f9d70 #102b35}
@media(max-height:800px) and (min-width:901px){header{height:77px}.title-logo{height:75px}.brand img{height:52px;width:52px}main{height:calc(100dvh - 77px);padding-top:9px;gap:10px}.panel{padding:10px 13px}.hud{padding:8px 18px}.race-options p,.lobby>.hint{display:none}.lobby{min-height:190px}.standings{min-height:105px}.credit{display:none}aside{gap:8px}.panel-title h2{font-size:16px}.controls button{padding:9px 5px}.legend{bottom:15px}.view-tools{bottom:8px}}
@media(max-width:1000px){main{grid-template-columns:minmax(0,1fr) 270px;padding:10px;gap:10px}.settings label{display:none}.brand span{display:none}.hud-right small{display:none}.legend span{display:none}.hud{padding:10px 15px}.hud strong{font-size:16px}.clock strong{font-size:23px}}
@media(max-width:700px){html,body{height:auto}header{height:85px;padding:7px 12px}.title-logo{width:55vw;height:80px}.brand img{width:45px;height:45px}.settings button{font-size:10px;padding:7px}main{height:auto;display:flex;flex-direction:column;padding:9px}.arena{height:70dvh;min-height:430px}aside{display:grid;grid-template-columns:1fr 1fr}.lobby{grid-row:span 2;height:340px;min-height:0}.standings{height:200px}.race-options{padding:12px}.controls{grid-column:1/-1}.credit{grid-column:1/-1}.seal{padding:20px}.seal h1{font-size:26px}.seal p{font-size:11px}.view-tools span{display:none}.legend{font-size:9px;left:10px}.arena-footer span:last-child{display:none}}
/* Generated jade-and-gold nine-slice artwork: keeps the ornaments proportional at every panel size. */
.panel{border:1px solid transparent;border-image:url('assets/panel-frame.webp') 140 fill / 20px / 0 stretch;padding:18px 20px;border-radius:0;background:none;box-shadow:0 7px 22px #0004}.panel:before,.panel:after{display:none}.seal{border:1px solid transparent;border-image:url('assets/panel-frame.webp') 140 fill / 32px / 0 stretch;border-radius:0;background:none;padding:36px 48px;box-shadow:0 20px 90px #0008}dialog{border:2px solid transparent;border-image:url('assets/panel-frame.webp') 140 fill / 40px / 0 stretch;border-radius:0;background:#0b2737;padding:32px 38px}.hud{border:1px solid transparent;border-image:url('assets/panel-frame.webp') 140 fill / 15px / 0 stretch;padding:14px 23px}.slot{font-variant-numeric:tabular-nums}.panel .panel-title h2{font-weight:800;text-shadow:0 2px 1px #0006}@media(max-height:800px) and (min-width:901px){.panel{padding:13px 17px;border-image-width:16px}.hud{padding:11px 20px;border-image-width:13px}.race-options .panel-title{margin-bottom:5px}.panel-title h2{font-size:16px}}@media(max-width:700px){.seal{padding:26px}.panel{padding:15px 18px;border-image-width:16px}.hud{padding:12px 16px;border-image-width:12px}}
/* v2: illustrated scene, bespoke lobby, countdown medals, and enlarged branding. */
body{background-image:url('assets/exterior-v2.webp');background-color:#051d25}body:before{background:#0318203d}header{height:148px;background:linear-gradient(#092830ee,#08242d9c);padding:8px 30px;box-shadow:0 3px 25px #00191d99}.brand{flex-direction:column;align-items:center;gap:3px}.brand img{width:clamp(170px,19vw,270px);height:88px;object-fit:contain}.brand span{font-size:12px;letter-spacing:.08em}.title-logo{width:min(46vw,490px);height:146px;filter:drop-shadow(0 4px 7px #00151ac9)}.settings label{font-size:13px}.settings button{font-size:14px}main{height:calc(100dvh - 148px);grid-template-columns:minmax(0,1fr) 340px;padding:16px 22px 14px}.lobby{padding:54px 22px 22px;border-image:none;border:0;border-radius:14px;background: url('assets/lobby-v2.webp') center/100% 100% no-repeat;box-shadow:0 7px 28px #00101866}.lobby .panel-title{margin-bottom:10px}.panel-title h2{font-size:20px}.panel-title>span{font-size:12px}.lobby>.hint{font-size:11px}.participant{min-height:46px}.participant b{font-size:14px}.participant small{font-size:11px}.participant canvas{width:39px;height:43px}#nickname{font-size:14px}#message{font-size:11px;line-height:1.5}.lobby-buttons button{font-size:11px}.seal{width:min(620px,86%);max-width:none;border-image:url('assets/winner-v2.webp') 220 170 160 fill / 66px 38px 40px / 0 stretch;padding:66px 40px 38px}.seal .compass{display:none}.seal h1{font-size:clamp(26px,3vw,46px);margin:15px 0 20px}.seal p{font-size:14px}.seal-note{font-size:13px;color:#e1dcb8}#countdown{background:#061a2499;-webkit-text-stroke:0;text-shadow:none;z-index:4}#countdown img{width:min(55vw,390px);height:min(65vh,390px);object-fit:contain;filter:drop-shadow(0 10px 22px #0009)}dialog{border-image:url('assets/winner-v2.webp') 220 170 160 fill / 75px 45px 45px / 0 stretch;background:none;padding:76px 44px 38px;width:min(620px,92%)}dialog .trophy{display:none}#winnerPortrait{margin-top:10px;width:160px;height:160px}dialog h2{font-size:38px}.winner-stats b{font-size:23px}.controls button{font-size:15px;min-height:44px}.controls #reset{font-size:12px;min-height:28px}.race-options p{font-size:11px}.standings .rank{font-size:14px}.rank em{font-size:12px}.hud strong{font-size:20px}.hud .clock strong{font-size:29px}.arena-footer{font-size:11px}.ranking-note{font-size:10px}.view-tools{font-size:11px}.legend{font-size:12px}.settings button,.controls button{border-image:url('assets/panel-frame.webp') 140 fill / 11px / 0 stretch;border-radius:0}.controls .primary{border-image:none;border:1px solid #e9cd83;border-radius:9px}.settings label{background:#08252aa6;border:1px solid #d5c08466;padding:9px 12px;border-radius:8px}
@media(max-height:850px) and (min-width:901px){header{height:112px}.brand img{width:200px;height:65px}.title-logo{height:112px;width:400px}main{height:calc(100dvh - 112px);padding-top:10px}.lobby{padding:43px 17px 17px;min-height:230px}.lobby>.hint{display:none}.lobby .panel-title{margin-bottom:6px}.lobby-buttons button{font-size:10px}.participant{min-height:42px}.participant canvas{height:38px;width:35px}.standings{min-height:125px}.panel-title h2{font-size:17px}.race-options p{font-size:10px}.controls button{min-height:38px;font-size:13px}.controls #reset{min-height:24px}.hud{padding:11px 20px}.hud strong{font-size:17px}.clock strong{font-size:24px}.arena-footer{font-size:10px}.legend{font-size:10px}}
@media(max-width:1100px){main{grid-template-columns:minmax(0,1fr) 295px;padding-left:10px;padding-right:10px}.brand img{width:175px}.settings{gap:8px}.settings label{display:none}.settings button{font-size:11px}.lobby{padding-left:17px;padding-right:17px}}
@media(max-width:700px){header{height:106px;padding:7px 10px}.brand img{width:100px;height:46px}.brand span{display:none}.title-logo{height:100px;width:48vw}.settings button{font-size:9px;padding:7px}main{height:auto;display:flex;padding:9px}.lobby{height:430px;padding-top:48px;grid-row:span 2;min-height:0}.seal{width:90%;padding:56px 25px 30px;border-image-width:52px 27px 30px}.seal p{font-size:11px}.seal h1{font-size:26px}dialog{padding:65px 30px 32px}.legend{font-size:9px}.standings .rank{font-size:12px}.controls button{font-size:14px}}
/* v3: only the maze routes are concealed; starting characters stay visible. */
#veil{background:none;backdrop-filter:none;pointer-events:none;z-index:2}#veil .seal{width:min(430px,62%);padding:53px 30px 30px;border-image-width:52px 28px 30px;box-shadow:0 15px 50px #0006;background:none}#veil .seal h1{font-size:clamp(23px,2.4vw,35px);margin:10px 0 15px}#veil .seal p{font-size:13px;margin:10px 0}.seal-note{font-size:12px}#countdown{background:#041a2233;pointer-events:none}.view-tools{z-index:3}.legend{z-index:3}.legend span{display:none}.hud-right small{font-size:12px}@media(max-width:700px){#veil .seal{width:74%;padding:45px 20px 25px}#veil .seal h1{font-size:22px}#veil .seal p{font-size:10px}.seal-note{font-size:10px}}
/* v4: eight visible roster cards; race controls no longer consume roster height. */
aside{gap:10px}.lobby{flex:0 0 auto;min-height:0;height:auto;padding:34px 16px 12px}.lobby>.hint{display:none}.lobby .panel-title{margin-bottom:6px;min-height:30px}.lobby .panel-title h2{font-size:19px}.lobby #count{font-size:21px;line-height:1.1;padding:5px 9px;background:linear-gradient(#ffe6a2,#d4a94e);color:#0d3039;border:1px solid #ffedbf;font-weight:900;white-space:nowrap}#join{height:34px}#nickname{font-size:13px;padding:6px 9px}#add{font-size:13px;padding:6px 11px}.lobby details{margin:3px 0;font-size:11px;line-height:16px}.lobby details[open]{position:absolute;left:15px;right:15px;top:111px;z-index:6;background:#0b2e3bf5;border:1px solid #d9bf79;padding:10px;border-radius:8px}.lobby-buttons{gap:5px}.lobby-buttons button{padding:5px 3px;font-size:10px;min-height:26px}.lobby #message{flex:none;min-height:15px;height:15px;line-height:15px;font-size:10px;margin:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#participants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,46px);gap:4px 6px;flex:none;height:196px;min-height:196px;padding:0;overflow:visible}.participant{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:5px;min-height:0;height:46px;padding:3px 14px 3px 4px;background:linear-gradient(120deg,#214d58,#0b2935);border:1px solid #6c9b9580;border-radius:7px;overflow:hidden}.participant canvas{grid-column:1;width:34px;height:38px}.participant .who{grid-column:2;min-width:0;overflow:hidden}.participant b{font-size:13px;line-height:17px;color:#fff4d5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.participant small{display:block;font-size:10px;line-height:13px;color:#b7d6cc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.participant .slot{position:absolute;top:2px;left:3px;width:auto;min-width:13px;font-size:9px;line-height:12px;color:#ffe6a2;background:#092732d9;border-radius:3px;padding:0 2px;z-index:1}.participant button{position:absolute;right:1px;top:1px;line-height:13px;font-size:14px;padding:0 2px;color:#c1d3c7}.participant.empty{border-style:dashed;background:#09263177;opacity:.65}.participant.empty .who{grid-column:1/-1;padding-left:24px}.participant.empty b{font-size:12px;color:#adc3b5}.participant.empty small{font-size:10px}.standings{flex:1 1 110px;min-height:110px}.credit{flex:none}.arena-footer{align-items:center;gap:12px;padding:8px 16px;min-height:56px}.arena-footer>span{font-size:11px;min-width:0}.arena-footer .controls{display:flex;align-items:center;gap:7px;flex-shrink:0}.arena-footer .controls button{font-size:13px;min-height:36px;padding:8px 13px}.arena-footer .controls #reset{font-size:12px;min-height:36px;padding:8px 12px}.settings .map-picker{display:flex;flex-direction:column;align-items:stretch;max-width:170px;gap:3px;padding:5px 10px}.map-picker>span{font-size:10px;color:#e8d399}.map-picker select{font-size:11px;padding:5px 6px;width:100%}
@media(max-height:740px) and (min-width:701px){.lobby{padding-top:29px;padding-bottom:10px}.lobby .panel-title h2{font-size:17px}.lobby #count{font-size:19px}.lobby .panel-title{min-height:27px;margin-bottom:4px}#participants{height:184px;min-height:184px;grid-template-rows:repeat(4,43px)}.participant{height:43px}.participant canvas{height:35px;width:31px}.participant b{font-size:12px}.standings{min-height:90px}.arena-footer{padding:6px 10px;min-height:48px}.arena-footer .controls button{font-size:12px;padding:7px 9px;min-height:32px}.arena-footer .controls #reset{font-size:11px;padding:7px 9px;min-height:32px}}
@media(max-width:1100px){.settings .map-picker{display:flex;max-width:155px}.settings .map-picker select{max-width:135px}.arena-footer>span{max-width:180px;font-size:10px}.arena-footer .controls button{padding:7px 8px;font-size:12px}.arena-footer .controls #reset{padding:7px 8px;font-size:11px}}
@media(max-width:700px){header{height:157px}.settings .map-picker{display:flex;position:absolute;top:109px;left:12px;right:12px;width:calc(100% - 24px);max-width:none;flex-direction:row;align-items:center}.settings .map-picker select{flex:1;max-width:none}aside{display:flex;flex-direction:column}.lobby{height:auto;min-height:0;padding:37px 18px 15px}.standings{height:190px;min-height:190px;flex:none}.arena-footer{flex-wrap:wrap;justify-content:center;gap:5px}.arena-footer>span{max-width:none;text-align:center;width:100%}.arena-footer .controls{justify-content:center;width:100%}.arena-footer .controls button{flex:1}.participant b{font-size:14px}#participants{height:208px;min-height:208px;grid-template-rows:repeat(4,49px)}.participant{height:49px}}
.speed-control{display:flex;align-items:center;gap:8px;flex-shrink:0;font-size:12px;color:#f7e8b6;padding:6px 8px;background:#092d36cc;border:1px solid #b8a26966;border-radius:8px}.speed-control select{font-size:12px;min-width:92px;padding:6px 8px;border-color:#b9a470}.arena-footer{flex-wrap:wrap}.arena-footer>span{flex:1;min-width:130px}.arena-footer .controls{margin-left:auto}@media(max-width:1100px){.speed-control{font-size:11px;gap:4px;padding:4px 6px}.speed-control select{font-size:11px;min-width:80px;padding:5px}.arena-footer{gap:7px}.arena-footer>span{min-width:100px;max-width:none}}@media(max-width:700px){.arena-footer>span{flex-basis:100%;width:100%}.arena-footer .controls{width:auto;flex:1}.speed-control{max-width:145px}}
/* v7: give the roster a larger share of the screen. */
main{grid-template-columns:minmax(0,1fr) clamp(410px,28vw,510px);gap:17px}.lobby{padding:43px 21px 17px}.lobby .panel-title{min-height:36px;margin-bottom:9px}.lobby .panel-title h2{font-size:23px}.lobby #count{font-size:25px;padding:6px 12px}#join{height:40px}#nickname{font-size:16px}#add{font-size:15px}.lobby-buttons button{font-size:12px;min-height:32px}.lobby details{font-size:12px;line-height:18px}.lobby #message{font-size:11px;height:17px;line-height:17px;margin:7px 0}#participants{height:266px;min-height:266px;grid-template-rows:repeat(4,62px);gap:6px 9px}.participant{height:62px;grid-template-columns:47px minmax(0,1fr);gap:9px;padding:5px 20px 5px 7px}.participant canvas{width:47px;height:52px}.participant b{font-size:17px;line-height:23px}.participant small{font-size:12px;line-height:17px}.participant .slot{font-size:11px;line-height:15px;min-width:18px}.participant button{font-size:18px;line-height:18px;right:3px;top:3px}.participant.empty b{font-size:15px}.participant.empty small{font-size:12px}.standings{min-height:130px}.standings .rank{font-size:15px;padding:8px 0}.speed-control{font-size:12px}.speed-control select{font-size:12px}
@media(max-height:850px) and (min-width:701px){main{grid-template-columns:minmax(0,1fr) clamp(390px,28vw,480px)}.lobby{padding:32px 18px 12px}.lobby .panel-title{min-height:30px;margin-bottom:6px}.lobby .panel-title h2{font-size:20px}.lobby #count{font-size:22px}#join{height:34px}#nickname{font-size:14px}#add{font-size:14px}.lobby-buttons button{font-size:11px;min-height:28px}.lobby #message{margin:5px 0}#participants{height:230px;min-height:230px;grid-template-rows:repeat(4,53px);gap:6px 8px}.participant{height:53px;grid-template-columns:40px minmax(0,1fr);gap:7px}.participant canvas{width:40px;height:44px}.participant b{font-size:15px;line-height:20px}.participant small{font-size:11px;line-height:15px}.standings{min-height:105px}}
@media(max-width:1100px) and (min-width:701px){main{grid-template-columns:minmax(0,1fr) 370px;gap:10px}.participant b{font-size:14px}.participant small{font-size:11px}.hud-right small{display:none}.hud{padding-left:14px;padding-right:14px}.hud strong{font-size:15px}}
@media(max-width:700px){main{display:flex;grid-template-columns:none}.lobby{padding:39px 18px 15px}.lobby .panel-title h2{font-size:21px}.lobby #count{font-size:23px}#participants{height:242px;min-height:242px;grid-template-rows:repeat(4,56px);gap:6px}.participant{height:56px;grid-template-columns:39px minmax(0,1fr);gap:6px}.participant canvas{width:39px;height:45px}.participant b{font-size:15px;line-height:20px}.participant small{font-size:11px;line-height:15px}.standings{height:190px}}
