/* 山地拉力：Pad/中文外壳 */
html,body{height:100%;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#statusbar{background:rgba(30,40,30,.72)!important;box-shadow:none!important}
.mr-bar{display:flex;align-items:center;gap:8px;padding:6px 10px;color:#fff;font:700 16px/1 -apple-system,"PingFang SC","Noto Sans SC",sans-serif}
.mr-b{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:999px;padding:8px 16px;font:inherit;text-decoration:none;cursor:pointer}
.mr-b:active{background:rgba(255,200,80,.6)}
.mr-trackname{margin-left:8px;opacity:.85}
.mr-sp{flex:1}
.mr-drive{display:none}
body.mr-driving .mr-drive{display:inline-block}
.gui-container menu a.btn{font-size:1.25em}
h1.mr-title{font-size:3.4em;letter-spacing:.12em;color:#fff;text-shadow:0 4px 18px #0008,0 2px 0 #2a4;-webkit-text-stroke:0;font-style:normal}
.mr-stat{background:rgba(255,255,255,.75);border-radius:.4em;padding:.5em 1em;text-align:center;list-style:none}
.mr-stat-num{font-size:2em;font-weight:900;color:#264}
.mr-stat-label{opacity:.7}
.mr-tip{background:rgba(255,255,255,.6);border-radius:.4em;padding:.6em 1em;margin-top:.6em;list-style:none;font-size:.7em;line-height:1.6}
.mr-list{max-width:26em;margin:0 auto}
.mr-track{display:flex;align-items:center;gap:.6em;padding:.5em .8em;margin:.35em 0;background:rgba(255,255,255,.8);border-radius:.4em;color:#222;text-decoration:none;font-size:.9em}
.mr-track:active{background:#fec}
.mr-no{width:1.6em;height:1.6em;border-radius:50%;background:#2a6;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
.mr-name{flex:1;font-weight:700}
.mr-stars{color:#e90;letter-spacing:.05em}
.mr-best{min-width:6.5em;text-align:right;opacity:.75;font-size:.85em}
.dialog.racecomplete h1{font-style:normal}
.mr-record{color:#c60;font-weight:900;font-size:1.4em;margin:.2em 0}
.mr-actions{display:flex;gap:.6em;justify-content:center;margin-top:.6em}
.mr-actions button,.mr-actions a{font:700 .9em -apple-system,"PingFang SC",sans-serif;background:#2a6;color:#fff;border:0;border-radius:999px;padding:.5em 1.1em;text-decoration:none;cursor:pointer}
.mr-actions a{background:#467}
.speedo{font-size:1.6em}
/* 触屏驾驶按键 */
#mr-touch{position:fixed;inset:0;pointer-events:none;z-index:50;display:none}
body.mr-driving.mr-touchdev #mr-touch{display:block}
#mr-touch .k{position:absolute;bottom:5vh;width:min(17vh,130px);height:min(17vh,130px);border-radius:50%;background:rgba(255,255,255,.18);border:3px solid rgba(255,255,255,.55);color:#fff;font:900 min(5vh,36px)/1 -apple-system,"PingFang SC",sans-serif;display:flex;align-items:center;justify-content:center;pointer-events:auto;touch-action:none;text-shadow:0 2px 4px #0008}
#mr-touch .k.on{background:rgba(255,200,80,.55)}
#mr-touch .left{left:3vw}#mr-touch .right{left:calc(3vw + min(19vh,145px))}
#mr-touch .gas{right:3vw;width:min(22vh,165px);height:min(22vh,165px);background:rgba(60,200,90,.35)}
#mr-touch .brake{right:calc(3vw + min(24vh,180px));background:rgba(220,70,60,.3)}
#mr-touch .hb{right:calc(3vw + min(6vh,45px));bottom:calc(5vh + min(24vh,180px));width:min(11vh,84px);height:min(11vh,84px);font-size:min(2.6vh,19px)}
