.c3-touch-layer{position:fixed;inset:0;z-index:15;display:none;pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;font-family:var(--c3-head,'Arial Narrow',sans-serif)}
body.c3-touch-race .c3-touch-layer{display:block}
.c3-touch-layer button,.c3-t-steer{pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent}
.c3-touch-layer button{display:grid;place-items:center;margin:0;padding:0;border:2px solid #ffffff40;background:#05070a8c;color:#eef2f6;font:800 14px/1.05 var(--c3-head,'Arial Narrow',sans-serif);letter-spacing:.08em;text-transform:uppercase;text-align:center;backdrop-filter:blur(3px);box-shadow:0 6px 18px #0007;cursor:pointer}
.c3-touch-layer button.c3-t-on{background:linear-gradient(180deg,var(--c3-accent-2,#ffb12a),var(--c3-accent,#ff7a1a));border-color:#ffd2ad;color:#1a0c02;transform:scale(.97)}

.c3-t-steer{position:absolute;left:0;bottom:0;width:44vw;height:62vh;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;padding:0 0 calc(18px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left))}
.c3-t-steer span{font:700 11px/1 var(--c3-head,'Arial Narrow',sans-serif);letter-spacing:.24em;text-transform:uppercase;color:#ffffff8c;text-shadow:0 1px 3px #000}
.c3-t-track{position:relative;width:min(240px,34vw);height:58px;border-radius:999px;background:#05070a8c;border:2px solid #ffffff40;box-shadow:inset 0 0 0 6px #ffffff08,0 6px 18px #0007;backdrop-filter:blur(3px)}
.c3-t-track::before,.c3-t-track::after{content:'';position:absolute;top:50%;width:10px;height:10px;border-top:3px solid #ffffff70;border-left:3px solid #ffffff70;transform:translateY(-50%) rotate(-45deg)}
.c3-t-track::before{left:16px}
.c3-t-track::after{right:16px;transform:translateY(-50%) rotate(135deg)}
.c3-t-knob{position:absolute;left:calc(50% - 26px);top:1px;width:52px;height:52px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#cfd6dd);box-shadow:0 4px 12px #000a;transition:transform .05s linear}
.c3-t-steer.c3-t-on .c3-t-track{border-color:var(--c3-accent,#ff7a1a)}
.c3-t-steer.c3-t-on .c3-t-knob{background:radial-gradient(circle at 35% 30%,#ffd2ad,var(--c3-accent,#ff7a1a))}

.c3-t-pedals{position:absolute;right:calc(14px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;gap:10px;align-items:end}
.c3-t-gas{grid-column:2;grid-row:1/3;width:96px;height:min(168px,40vh);clip-path:polygon(14% 0,100% 0,100% 100%,0 100%,0 10%)}
.c3-t-brake{grid-column:1;grid-row:2;width:92px;height:min(108px,28vh)}
.c3-t-hb{grid-column:1;grid-row:1;width:92px;height:min(54px,14vh);font-size:12px!important}
.c3-t-gears{display:none;position:absolute;right:0;bottom:calc(100% + 10px);gap:8px}
.c3-t-manual .c3-t-gears{display:flex}
.c3-t-gears button{width:56px;height:46px;font-size:24px}

.c3-t-actions{position:absolute;top:calc(8px + env(safe-area-inset-top));right:calc(10px + env(safe-area-inset-right));display:flex;gap:8px}
.c3-t-actions button{width:46px;height:38px;font-size:13px;border-radius:6px}

.c3-t-rotate{display:none;position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);padding:12px 18px;background:#05070ad9;border:1px solid #ffffff30;color:#eef2f6;font:700 15px/1.2 var(--c3-head,'Arial Narrow',sans-serif);letter-spacing:.1em;text-transform:uppercase;text-align:center}
@media (orientation:portrait){body.c3-touch-race .c3-t-rotate{display:block}}

body.c3-touch-race .controls,body.c3-touch-race #minimap,body.c3-touch-race .hud.top,body.c3-touch-race #raceContextBoard,body.c3-touch-race #proximityRadar,body.c3-touch-race #tireHeat,body.c3-touch-race #damageState,body.c3-touch-race .personal-lap-details,body.c3-touch-race .online-lap-details{display:none!important}
body.c3-touch-race .hud.speed{top:auto!important;right:auto!important;left:50%!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:auto!important;height:auto!important;min-width:0!important;margin:0!important;padding:5px 12px!important;display:flex!important;align-items:center;gap:10px;transform:translateX(-50%)!important;background:#05070aa6!important;border:1px solid #ffffff2e!important;border-radius:8px!important;box-shadow:none!important;pointer-events:none}
body.c3-touch-race .hud.speed>:is(#rpmStrip,#tachometer,#tachNeedle,.dial-center,.vehicle-gauge-label){display:none!important}
body.c3-touch-race .hud.speed>div:not([id]):not([class]){display:flex;align-items:baseline;gap:4px}
body.c3-touch-race .hud.speed :is(.num,.unit,.gear){position:static!important;inset:auto!important;margin:0!important;transform:none!important}
body.c3-touch-race .hud.speed .num{font-size:30px!important;letter-spacing:-1px!important;line-height:1!important}
body.c3-touch-race .hud.speed .unit{font-size:10px!important}
body.c3-touch-race .hud.speed .gear{font-size:20px!important;min-width:26px!important;padding:1px 4px}
body.c3-touch-race .race-hud.race-times{transform:scale(.68);transform-origin:top left}
body.c3-touch-race #racePlace{transform:scale(.8);transform-origin:top right}
body.c3-touch .c3-app kbd{display:none}
body.c3-touch .c3-prompts span:not(.c3-version){display:none}
