/* Illustrated gold/cloud frames, with content kept inside the image's inner rim. */
@media(min-width:761px){.entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 10px;align-content:start}.entry .section-title{grid-column:1/-1}.entry>label{grid-column:1;grid-row:2}.entry>input{grid-column:1;grid-row:3}.entry .character{grid-column:2;grid-row:2/4}.entry .buttons,.entry #notice{grid-column:1/-1}}
body{grid-template-rows:128px minmax(0,1fr) 29px}.top{padding:5px 25px;border-bottom:2px solid #bea66b;background:radial-gradient(ellipse at center,#255368,#0a2438 70%)}.title{width:450px;height:124px;filter:drop-shadow(0 4px 10px #00101e99)}.brand img{width:170px;height:65px}.brand span{font-size:14px}.top-actions label{font-size:14px}.top-actions button{font-size:15px;padding:12px 18px}main{grid-template-columns:minmax(0,1fr) 342px;gap:16px;padding-top:15px}.arena{border:solid transparent;border-width:10px;border-image:url('assets/ui-hud.webp') 90 105 65 105 stretch;border-radius:0;box-shadow:0 8px 30px #0004}.hud{top:15px;left:18px;gap:6px}.hud>div{min-width:130px;min-height:112px;padding:2px 9px;border:solid transparent;border-width:28px 22px 20px;border-image:url('assets/ui-hud.webp') 100 105 65 105 fill stretch;background:none;border-radius:0;box-shadow:none;text-align:center}.hud>div:first-child{min-width:220px}.hud small{font-size:14px;letter-spacing:0;margin-bottom:6px;color:#dbeeee}.hud strong{font-size:35px;color:#fff0ad;white-space:nowrap}.hud>div:first-child strong{font-size:37px}.journey{top:25px;right:23px}.journey span:first-child{font-size:17px}.journey span:last-child{font-size:12px;margin-top:7px}.panel{border:solid transparent;border-width:60px 28px 26px;border-image:url('assets/ui-panel.webp') 110 60 45 60 fill stretch;border-radius:0;padding:0 1px;background:none;box-shadow:none}.section-title>span{font-size:10px;letter-spacing:2px}.section-title h2{font-size:25px;margin:6px 0 13px}.entry>label{font-size:14px;margin:7px 0}.entry>input{font-size:17px;padding:11px 12px}.character{margin-top:10px;padding:7px 12px;gap:14px}.character img{width:60px;height:72px}.character b{font-size:23px}.character small{font-size:12px}.character em{font-size:12px}.buttons button{font-size:15px;padding:10px 12px}#notice{font-size:12px;line-height:1.5;margin-top:11px;min-height:30px}.reset-info{font-size:12px;line-height:1.65}#countdown{font-size:13px;margin:9px 0;padding:8px 9px}.ranking h2{margin-bottom:8px}#ranks li{min-height:75px;gap:8px;padding:12px 0}#ranks .rank-no{font-size:20px;width:25px}#ranks img{width:35px;height:47px}#ranks .who b{font-size:16px}#ranks .who small{font-size:12px;margin-top:5px}#ranks strong{font-size:15px}#ranks li.empty{font-size:14px}#refresh{font-size:13px;padding:9px;margin-top:8px}.bottom{left:13px;right:13px;bottom:12px;border:solid transparent;border-width:15px 42px;border-image:url('assets/ui-controls.webp') 35 105 35 105 fill stretch;border-radius:0;padding:9px 2px;background:none;box-shadow:none;gap:16px;min-height:98px}.bottom>div:first-child b{font-size:16px;margin-bottom:8px}.bottom>div:first-child span{font-size:12px;line-height:1.5}.power{width:240px;grid-template-columns:1fr 46px;gap:7px 10px}.power>span{font-size:10px;letter-spacing:2px}.power>div{height:17px}.power b{font-size:17px}#jumpButton{font-size:15px;padding:14px 20px}.fly-message{font-size:38px}.overlay{isolation:isolate;background:#102c3b33;backdrop-filter:none;gap:0}.overlay::before{content:'';position:absolute;z-index:-1;width:min(700px,86%);height:min(610px,90%);background:url('assets/ui-dialog.webp') center/100% 100% no-repeat;filter:drop-shadow(0 12px 25px #1239)}.overlay>img{width:min(465px,62%);max-height:31%;margin-top:12px}.overlay h1{font-size:30px;margin:16px 0 12px}.overlay p{font-size:17px;margin:0 0 25px}.overlay .large{font-size:22px;padding:17px 38px}.overlay>small{font-size:13px;margin:17px 0 0;max-width:70%;line-height:1.6}.top .brand,.top-actions{position:relative;z-index:2}dialog{border:solid transparent;border-width:48px 38px 38px;border-image:url('assets/ui-dialog.webp') 85 80 75 80 fill stretch;background:none;border-radius:0;padding:0 13px 7px;box-shadow:none}.dialog-head h2{font-size:28px}.dialog-head button{font-size:14px}#characterGrid button{font-size:14px;padding:8px 5px}#characterGrid img{height:84px}#result{width:min(710px,94vw);border:solid transparent;border-width:48px 38px 38px;border-image:url('assets/ui-dialog.webp') 85 80 75 80 fill stretch;background:none;padding:0 18px 7px}.result-content{padding:0 5px}.eyebrow{font-size:12px;letter-spacing:3px}.trophy{width:135px;height:125px;margin:15px auto 7px}.result-content h2{font-size:29px;margin:12px 0}#resultDistance{font-size:56px;margin:16px 0}#resultPerson{font-size:20px;margin:11px 0}#resultDetail{font-size:16px}.result-status{font-size:14px;line-height:1.7;min-height:36px;margin:16px 0}.result-content button{font-size:17px;padding:13px}#saveRetry{font-size:14px}.result-content .buttons{margin:16px 0 5px}footer{font-size:11px}
@media(max-height:850px) and (min-width:761px){body{grid-template-rows:108px minmax(0,1fr) 25px}.title{height:104px;width:390px}.top{padding-top:1px}.entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 10px;border-width:45px 24px 20px;align-content:start}.entry .section-title{grid-column:1/-1}.entry .section-title h2{margin:3px 0 4px;font-size:23px}.entry .section-title>span{font-size:9px}.entry>label{grid-column:1;grid-row:2;margin:2px 0;font-size:13px}.entry>input{grid-column:1;grid-row:3;min-width:0;font-size:15px;padding:10px 8px;align-self:start}.entry .character{grid-column:2;grid-row:2/4;margin:0;padding:5px;gap:5px}.entry .character img{height:64px;width:37px}.entry .character small,.entry .character em{display:none}.entry .character b{font-size:20px;white-space:normal}.entry .buttons{grid-column:1/-1;margin:4px 0 0}.entry #notice{grid-column:1/-1;margin:3px 0 0;min-height:18px;font-size:11px}.ranking{border-width:48px 25px 21px}.ranking .section-title h2{font-size:23px;margin-top:2px}.ranking .section-title>span{display:none}.hud>div{min-height:98px;border-width:24px 20px 17px}.hud strong,.hud>div:first-child strong{font-size:30px}.hud small{font-size:12px}.bottom{min-height:86px;padding-top:6px;padding-bottom:6px}.bottom>div:first-child b{font-size:14px}.bottom>div:first-child span{font-size:11px}.overlay::before{height:94%;width:min(650px,87%)}.overlay>img{max-height:29%}.overlay h1{font-size:26px;margin:10px 0}.overlay p{font-size:15px;margin-bottom:18px}.overlay .large{font-size:19px;padding:13px 32px}.overlay>small{font-size:11px;margin-top:12px}.trophy{height:87px;margin:8px auto}.result-content h2{font-size:25px;margin:8px 0}#resultDistance{font-size:45px;margin:10px 0}#resultPerson{font-size:17px}#resultDetail{font-size:14px}.result-status{font-size:12px;margin:10px 0}.result-content button{font-size:15px;padding:10px}}
@media(min-width:761px) and (max-width:1250px){main{grid-template-columns:minmax(0,1fr) 310px}.title{width:350px}.brand img{width:130px}.brand span{display:none}.top-actions label{font-size:12px}.top-actions input{width:65px}.hud>div{min-width:98px;padding-left:5px;padding-right:5px}.hud>div:first-child{min-width:180px}.hud strong,.hud>div:first-child strong{font-size:28px}.journey{top:125px}.bottom>div:first-child span{display:none}.bottom>div:first-child b{font-size:13px}.power{width:160px}.bottom{gap:10px;border-left-width:30px;border-right-width:30px}#jumpButton{padding:11px 12px;font-size:13px}}
@media(max-width:760px){body{grid-template-rows:86px minmax(0,1fr) 22px}.top{padding:2px 10px}.brand img{width:90px;height:45px}.brand span{display:none}.title{height:82px;width:225px}.top-actions label{display:none}.top-actions button{font-size:11px;padding:8px}.top-actions{z-index:3}main{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 221px;padding:6px 8px 0;gap:7px}.arena{border-width:6px}.panel{border-width:32px 16px 16px;padding:0}.section-title>span{display:none}.section-title h2,.ranking h2{font-size:17px;margin:0 0 6px}.entry>label{display:none}.entry>input{font-size:13px;padding:7px}.character{padding:4px 7px;gap:6px;margin:6px 0 0}.character img{height:40px;width:32px}.character b{font-size:15px}.character small,.character em{display:none}.buttons{gap:5px;margin-top:7px}.buttons button{font-size:11px;padding:7px}#notice{display:none}.reset-info{font-size:9px;line-height:1.5}#countdown{font-size:10px;margin:5px 0;padding:4px}#ranks li{min-height:43px;padding:6px 0;gap:4px}#ranks .rank-no{font-size:14px;width:15px}#ranks img{display:none}#ranks .who b,#ranks strong{font-size:11px}#ranks .who small{font-size:9px;margin-top:3px}#refresh{display:none}.hud{left:5px;top:4px;gap:1px}.hud>div{min-width:55px;min-height:62px;padding:0 3px;border-width:17px 9px 12px}.hud>div:first-child{min-width:116px}.hud small{font-size:9px;margin-bottom:3px}.hud strong,.hud>div:first-child strong{font-size:18px}.journey{display:none}.bottom{left:3px;right:3px;bottom:5px;min-height:66px;gap:8px;border-width:10px 23px;padding:4px}.bottom>div:first-child{display:none}.power{width:auto;flex:1;grid-template-columns:1fr 33px;gap:4px 6px}.power>span{font-size:8px}.power>div{height:12px}.power b{font-size:13px}#jumpButton{font-size:11px!important;padding:9px!important}.overlay{padding:8px}.overlay::before{width:96%;height:94%}.overlay>img{width:67%;max-height:26%;margin-top:0}.overlay h1{font-size:18px;margin:9px 0 7px}.overlay p{font-size:12px;margin-bottom:12px}.overlay .large{font-size:14px;padding:10px 20px}.overlay>small{font-size:9px;margin-top:9px;max-width:80%}.fly-message{font-size:23px}dialog,#result{border-width:33px 20px 26px;padding:0 7px 5px;max-height:92vh}.dialog-head h2{font-size:21px}.dialog-head button{font-size:11px}#characterGrid{gap:7px}#characterGrid button{font-size:11px}#characterGrid img{height:54px}.trophy{height:80px;width:90px;margin:6px auto}.result-content h2{font-size:21px;margin:8px 0}#resultDistance{font-size:38px;margin:12px 0}#resultPerson{font-size:16px}#resultDetail{font-size:12px}.result-status{font-size:11px;line-height:1.6}.result-content button{font-size:13px;padding:9px}.eyebrow{font-size:9px}footer{font-size:8px}}

@media(min-width:761px){.entry{border-width:50px 26px 22px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 10px;align-content:start}.entry .section-title{grid-column:1/-1}.entry .section-title>span{display:none}.entry .section-title h2{font-size:25px;line-height:1.2;margin:0 0 5px}.entry>label{grid-column:1;grid-row:2;margin:2px 0;font-size:14px}.entry>input{grid-column:1;grid-row:3;font-size:16px;padding:10px 8px;min-width:0;align-self:start}.entry .character{grid-column:2;grid-row:2/4;margin:0;padding:5px;gap:6px}.entry .character img{height:66px;width:42px}.entry .character small,.entry .character em{display:none}.entry .character b{font-size:21px;white-space:normal}.entry .buttons{grid-column:1/-1;margin:5px 0 0}.entry .buttons button{font-size:14px;padding:10px 7px}.entry #notice{grid-column:1/-1;font-size:12px;line-height:1.5;min-height:18px;margin:5px 0 0}.ranking{border-top-width:50px}.ranking .section-title>span{display:none}.ranking .section-title h2{font-size:25px;margin:0 0 8px}}

/* Reserve the control deck so the start dialog never sits underneath it. */
.title{top:2px}.overlay{bottom:112px}.overlay::before{height:min(530px,94%)}dialog{overflow:auto}@media(max-height:800px) and (min-width:761px){#refresh{display:none}#ranks{min-height:76px}.ranking .reset-info{font-size:11px}}@media(max-width:760px){.overlay{bottom:76px}.overlay::before{height:96%}.overlay>img{max-height:29%}.overlay h1{font-size:16px;margin:7px 0 5px}.overlay p{font-size:11px;margin-bottom:9px}.overlay .large{font-size:13px;padding:9px 18px}.overlay>small{font-size:8px;margin-top:7px}}

.arena.danger{box-shadow:0 0 0 2px #c74d73,0 0 24px #a62c5e66}.arena.danger .hud>div:nth-child(2) strong{color:#ff9cae}.hud>div:nth-child(2){min-width:160px}.hud>div:nth-child(2) strong{font-size:29px}@media(max-width:760px){.hud>div:nth-child(2){min-width:83px}.hud>div:nth-child(2) strong{font-size:15px}}

@media(max-width:760px){.ranking .section-title h2{font-size:14px;letter-spacing:-.7px;white-space:nowrap}#ranks li.empty{font-size:10px;line-height:1.5;min-height:38px;padding:5px 0}.top .brand img{width:65px}#countdown{white-space:nowrap;font-size:9px;letter-spacing:-.2px}}
