.highway-game{display:grid;gap:6px;max-width:1280px;margin:auto;color:#f1f6fc}
.highway-clock{display:flex;align-items:center;justify-content:center;gap:10px;min-height:32px}
.highway-clock time,.highway-banner:not(:empty){border-radius:8px;padding:4px 11px;background:#1f354e;color:#f6fafb;font-weight:800;line-height:1.15}
.highway-clock time{min-width:57px;text-align:center;font-size:19px;font-variant-numeric:tabular-nums}
.highway-clock time.is-urgent{background:#9e3b46}
.highway-banner{font-size:14px}
.highway-views{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
 height:clamp(340px,calc(100dvh - 220px),730px);
}
.highway-views.is-solo{grid-template-columns:minmax(0,1fr)}
.highway-view{
 --driver:#9bdbff;--driver-dark:#173d61;--driver-border:#bbe6ff88;
 position:relative;isolation:isolate;min-width:0;min-height:0;overflow:hidden;
 border:1px solid #ffffff34;border-radius:16px;background:#21394c;
}
.highway-view.highway-thief{--driver:#ffcd9f;--driver-dark:#672c38;--driver-border:#ffdec18c}
.highway-view canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
.highway-view.has-impact{box-shadow:inset 0 0 0 2px #f2907d}
.highway-view.has-impact::after{content:"";position:absolute;inset:0;background:#e45c342a;pointer-events:none}
.highway-hud{
 position:absolute;z-index:1;top:8px;left:8px;right:8px;
 display:flex;align-items:center;justify-content:space-between;gap:6px;
 pointer-events:none;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;
}
.highway-hud>span{display:flex;align-items:center;min-width:0;padding:5px 7px;border-radius:8px;background:#131f35de;white-space:nowrap;line-height:1.14}
.highway-hud .highway-identity{gap:6px;background:var(--driver-dark);color:var(--driver)}
.highway-identity>span{overflow:hidden;text-overflow:ellipsis;color:#f5f4ee}
.highway-hud .highway-distance{flex:none}
.highway-hud .highway-speed{flex:none;gap:3px;font-size:15px;font-weight:800}
.highway-speed small{font-size:11px;font-weight:550}
.highway-stick{
 position:absolute;z-index:2;bottom:12px;left:12px;display:grid;place-items:center;
 width:clamp(82px,22vmin,120px);aspect-ratio:1;border:2px solid var(--driver-border);border-radius:50%;
 background:#122337ab;box-shadow:inset 0 0 0 6px #10192c48,0 4px 12px #11192d48;
 touch-action:none;cursor:grab;
}
.highway-stick>span{
 width:37%;aspect-ratio:1;border:2px solid #fff9;border-radius:50%;
 background:var(--driver);box-shadow:0 3px 8px #11192dbf;
 transform:translate(var(--stick-x,0),var(--stick-y,0));pointer-events:none;
}
.highway-boost{position:absolute;z-index:2;right:11px;bottom:12px;display:grid;gap:5px;width:clamp(74px,20vmin,108px)}
.highway-charge{height:8px;padding:1px;border-radius:6px;border:1px solid #f3fbff8f;background:#172746e8}
.highway-charge>span{display:block;width:var(--nitro-fill,100%);height:100%;border-radius:4px;background:linear-gradient(90deg,#76aafa,#bcf1f4)}
.highway-nitro{
 width:100%;min-height:46px;padding:5px 8px;border:2px solid var(--driver-border);border-radius:11px;
 background:var(--driver-dark);color:#fff;font:inherit;font-weight:850;font-size:15px;touch-action:none;cursor:pointer;
}
.highway-nitro[aria-pressed=true]{color:#122739;background:var(--driver);box-shadow:0 0 13px #9ee2ff90}
.highway-nitro[aria-disabled=true]{opacity:.64}
.highway-nitro:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(orientation:portrait){
 .highway-views:not(.is-solo){grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px),(max-height:560px) and (orientation:landscape){
 .play-shell:has(.highway-game){padding:4px max(5px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left))}
 .play-shell:has(.highway-game) .play-top{min-height:44px;margin:0 3px 1px;gap:4px}
 .play-shell:has(.highway-game) .play-title{text-align:left;min-width:0}
 .play-shell:has(.highway-game) .play-title h1{font-size:clamp(16px,4vw,20px);line-height:1.2}
 .play-shell:has(.highway-game) .play-top-actions{gap:0}
 .play-shell:has(.highway-game) .play-top-actions .icon-btn{width:44px;height:44px}
 .play-shell:has(.highway-game) :is(.play-brand,.play-title>p,.match-strip,.round-footer>span){display:none}
 .arena.shared:has(.highway-game) .player-panel{border:0;box-shadow:none;background:transparent}
 .arena.shared:has(.highway-game) .game-content{min-height:0;padding:0}
 .play-shell:has(.highway-game) .round-footer{margin:2px 0 0;min-height:34px}
 .play-shell:has(.highway-game) .round-footer button{min-height:34px;padding:5px 10px}
 .highway-game{gap:3px}
 .highway-clock{min-height:29px}
 .highway-clock time{font-size:17px}
 .highway-views{height:max(210px,calc(100dvh - 124px - env(safe-area-inset-bottom)));gap:5px}
 .highway-view{border-radius:12px}
 .highway-hud{top:6px;left:6px;right:6px}
 .highway-stick{bottom:8px;left:8px}
 .highway-boost{bottom:8px;right:8px}
}
@media(max-width:760px) and (orientation:portrait){
 .highway-views:not(.is-solo){min-height:360px}
}
@media(max-width:355px){
 .highway-hud{font-size:12px}
 .highway-hud>span{padding-inline:5px}
}

.highway-game{max-width:1390px}
.highway-stick{display:none}
@media(pointer:coarse),(hover:none) and (any-pointer:coarse){
 .highway-stick{display:grid}
}
@media(min-width:761px) and (min-height:561px){
 .highway-views{height:clamp(360px,calc(var(--round-space) - 39px),850px)}
 .highway-views.is-solo{height:clamp(360px,calc(var(--round-space) - 24px),850px)}
}
