#touch{position:fixed;left:0;right:0;bottom:0;z-index:6;display:grid;grid-template-columns:auto 1fr 1fr auto;grid-template-areas:"brake cl cr power";align-items:end;gap:10px;padding:0 max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;font-family:inherit}#touch[hidden]{display:none}#touch>*{pointer-events:auto;touch-action:none}#touch .pedal{position:relative;width:clamp(92px,15vmin,132px);height:clamp(150px,30vmin,230px);border-radius:16px 16px 12px 12px;overflow:hidden;border:2px solid rgba(255,255,255,.28);box-shadow:0 6px 18px #00000073,inset 0 0 0 3px #00000059;background:repeating-linear-gradient(0deg,#ffffff12 0 5px,#0000 5px 13px),#23242a}#touch .pedal span{position:absolute;left:0;right:0;bottom:12px;text-align:center;font-size:13px;font-weight:800;letter-spacing:2px;color:#f3ecd8;text-shadow:0 1px 2px #000;pointer-events:none}#touch .pedal .fill{position:absolute;left:0;right:0;bottom:0;height:0%;pointer-events:none;transition:height 40ms linear}#touch .pedal.power .fill{background:linear-gradient(0deg,#5fc878bf,#5fc87859)}#touch .pedal.brake .fill{background:linear-gradient(0deg,#ffa046cc,#ffa04659)}#touch .pedal.down{border-color:#fff;transform:translateY(2px)}#touch .pedal:after{content:"";position:absolute;right:6px;top:8%;bottom:8%;width:6px;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(255,255,255,.4) 0 1px,transparent 1px 10%)}#touch .cluster{display:flex;flex-wrap:wrap-reverse;gap:10px;align-items:flex-end;align-content:flex-start;max-width:300px}#touch .pedal.brake{grid-area:brake}#touch .pedal.power{grid-area:power}#touch .cluster.left{grid-area:cl}#touch .cluster.right{grid-area:cr}#touch .cluster.left{justify-content:flex-start}#touch .cluster.right{justify-content:flex-start;justify-self:end;flex-direction:row-reverse}#touch .tb{width:clamp(64px,10.5vmin,86px);height:clamp(64px,10.5vmin,86px);border-radius:50%;font:inherit;font-size:11.5px;font-weight:800;letter-spacing:.8px;line-height:1.15;color:#f3ecd8;background:#121218b8;border:2px solid rgba(255,255,255,.3);box-shadow:0 4px 12px #0006;padding:0;-webkit-tap-highlight-color:transparent}#touch .tb.small{width:clamp(52px,8.4vmin,68px);height:clamp(52px,8.4vmin,68px);font-size:10px;opacity:.92}#touch .tb.gong{background:#966e1ec7;border-color:#e9bd62;width:clamp(76px,12.5vmin,100px);height:clamp(76px,12.5vmin,100px);font-size:13px}#touch .tb.emerg{background:#961616d1;border-color:#ff8a80}#touch .tb.down{background:#f3ecd8;color:#15151a;transform:scale(.95)}#touch .tb.emerg.down{background:#ff5a5a;color:#fff}#touch .context{position:fixed;left:50%;bottom:calc(max(12px,env(safe-area-inset-bottom)) + clamp(150px,30vmin,230px) + 14px);transform:translate(-50%);display:flex;gap:10px;pointer-events:none}#touch .tc{pointer-events:auto;touch-action:none;font:inherit;font-size:14px;font-weight:700;color:#15151a;background:#e9bd62;border:0;border-radius:22px;padding:11px 20px;box-shadow:0 4px 14px #00000073}#touch .tc[hidden]{display:none}#touch .tc.down{background:#fff}body.touch-mode #help{display:none}body.touch-mode #minimap{bottom:auto;top:92px;right:14px;width:150px;height:178px}body.touch-mode #app,body.touch-mode canvas{touch-action:none}body.touch-mode{overscroll-behavior:none;-webkit-user-select:none;user-select:none}@media(max-width:900px){#touch .cluster{max-width:200px}}@media(max-width:620px){#touch{grid-template-columns:1fr 1fr;grid-template-areas:"cl cr" "brake power"}#touch .pedal.power{justify-self:end}}@media(max-width:760px){#touch .cluster{max-width:190px;gap:7px}body.touch-mode #minimap{display:none}body.touch-mode #swpanel{min-width:0;width:calc(100vw - 28px);font-size:12px}}@media(max-width:900px){body.touch-mode #topmsgs{width:min(520px,62vw);top:10px}body.touch-mode #toast{font-size:13px}body.touch-mode #swpanel{font-size:12px;min-width:0}body.touch-mode #brief{bottom:auto;top:34vh;font-size:13px;width:min(560px,80vw)}}
