.play-shell:has(.grand-prix-game) {max-width:none;padding-inline:clamp(5px,1.3vw,20px);}
.play-shell:has(.grand-prix-game) :is(.match-strip,.round-footer>span) {display:none;}
.play-shell:has(.grand-prix-game) #round-content>.arena.shared {width:100%;margin-inline:auto;max-width:none;}
.play-shell:has(.grand-prix-game) :is(.player-panel,.game-content) {margin:0;padding:0;border:0;box-shadow:none;background:none;min-height:0;}
.grand-prix-game {
  --gp-ink:#f7f4e3;--gp-ui:#182e42ee;--gp-line:#bed8d66e;
  width:100%;color:var(--gp-ink);user-select:none;-webkit-user-select:none;
}
.gp-top {
  display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:36px;margin-bottom:5px;
  border:1px solid #b7c8c8;border-radius:10px;padding:4px 11px;background:#edf2ed;color:#274859;
  font-size:clamp(.78rem,2.4vw,1.02rem);
}
.gp-clock {color:#624a20;font-weight:840;font-variant-numeric:tabular-nums;}
.gp-views {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;height:clamp(400px,calc(100dvh - 117px),1160px);}
.gp-views.is-solo {grid-template-columns:minmax(0,1fr);}
.gp-seat {position:relative;min-width:0;min-height:0;}
.grand-prix-game[data-table-view=face] .gp-views {height:var(--table-stage-height);touch-action:none;}
.gp-view[data-view-rotation="180"] {transform:rotate(180deg);}
.gp-view {
  position:relative;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;isolation:isolate;
  border:1px solid #315368;border-radius:clamp(10px,1.6vw,19px);background:#507c9e;
}
.gp-scene {position:absolute;inset:0;width:100%;height:100%;touch-action:none;}
.gp-hud {
  position:absolute;display:flex;align-items:start;gap:4px;inset:clamp(5px,1.3vw,14px) clamp(5px,1.1vw,12px) auto;
  pointer-events:none;font-size:clamp(.69rem,2vw,1rem);font-variant-numeric:tabular-nums;
}
.gp-hud>* {
  max-width:32%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.16;
  padding:6px 7px;border-radius:8px;background:var(--gp-ui);border:1px solid var(--gp-line);box-shadow:0 3px 9px #132b3a32;
}
.gp-name {font-weight:770;color:var(--gp-car);}
.gp-hud .gp-place {color:#f2d794;}
.gp-hud .gp-speed {margin-left:auto;max-width:none;color:#f5f7df;}
.gp-speed small {font-size:.64em;color:#d2e7e0;}
.gp-map {
  position:absolute;right:clamp(6px,1.2vw,13px);top:clamp(46px,6.8vw,62px);width:clamp(71px,12vw,114px);height:auto;
  background:#182e427f;border:1px solid #c9e1d978;border-radius:9px;pointer-events:none;
}
.gp-signal {
  position:absolute;top:30%;left:50%;translate:-50% -50%;pointer-events:none;
  border:1px solid #ffe4a8a4;border-radius:clamp(9px,2vw,16px);background:#25364ce9;color:#ffdf9a;
  padding:4px .62em;box-shadow:0 7px 23px #18283a61;white-space:nowrap;font-size:clamp(1.34rem,5vw,3rem);
}
.gp-signal[hidden] {display:none;}
.gp-status {
  position:absolute;left:50%;top:43%;translate:-50% 0;margin:0;padding:5px 10px;max-width:90%;width:max-content;
  text-align:center;line-height:1.16;border-radius:7px;background:#24394ceb;color:#fff4d2;
  pointer-events:none;font-size:clamp(.68rem,2vw,.92rem);font-weight:760;
}
.gp-status:empty {display:none;}
.is-boosting .gp-status {background:#735229e8;color:#fff4cb;}
.is-off-road .gp-status {background:#783b3be8;}
.gp-stick {
  display:none;position:absolute;left:clamp(6px,1.4vw,17px);bottom:clamp(6px,1.6vw,17px);
  width:clamp(62px,13vw,106px);aspect-ratio:1;border:2px solid #c5e1e2a2;border-radius:50%;
  background:radial-gradient(circle,#244a6184,#143146d1);box-shadow:inset 0 0 0 6px #b8d5d623;
  touch-action:none;
}
.gp-stick span {
  position:absolute;top:50%;left:50%;width:36%;aspect-ratio:1;
  transform:translate(calc(-50% + var(--stick-x,0px)),calc(-50% + var(--stick-y,0px)));
  border-radius:50%;border:2px solid #e8fafa;background:var(--gp-car);box-shadow:0 3px 8px #081e2f80;pointer-events:none;
}
.gp-boost {position:absolute;right:clamp(6px,1.4vw,17px);bottom:clamp(6px,1.6vw,17px);display:grid;grid-template-columns:repeat(2,minmax(0,auto));gap:4px;}
.gp-drift,.gp-item {
  min-width:clamp(62px,13vw,85px);min-height:44px;padding:4px 8px;display:flex;align-items:center;justify-content:center;gap:4px;
  border-radius:9px;background:#17394dec;color:#fff4e3;border:2px solid #90c1c4a0;
  font:inherit;font-weight:835;font-size:clamp(.72rem,2.5vw,.99rem);touch-action:none;
}
.gp-drift[aria-pressed=true] {border-color:#f5d894;background:#654826;color:#fff8dc;}
.gp-drift:disabled {opacity:.55;}
.gp-drift:focus-visible {outline:2px solid white;outline-offset:1px;}
.gp-drift kbd,.gp-item kbd {padding:2px 3px;border:1px solid #d5efdc61;font:inherit;font-size:.57em;border-radius:4px;pointer-events:none;}
.gp-charge {grid-column:1/-1;height:7px;overflow:hidden;border:1px solid #d5eee990;background:#173044;border-radius:5px;}
.gp-charge>span {display:block;width:var(--gp-charge,0%);height:100%;background:#c9e6d8;}
.gp-charge[data-tier=cyan]>span {background:#74f3ee;}
.gp-charge[data-tier=violet]>span {background:#e492ff;}
.gp-charge[data-tier=gold]>span {background:#ffd450;box-shadow:0 0 11px #ffd450;}
.gp-item {min-width:clamp(65px,14vw,105px);background:#493f7f;border-color:#dcbbf4;color:#fff4d8;}
.gp-item:disabled {background:#213449cc;border-color:#bbcad463;color:#e3e3ed;}
.gp-item[data-active=rocket] {background:#9e4b59;border-color:#ffbf7e;}
.gp-item[data-active=bubble] {background:#176c78;border-color:#8cfff3;}
.gp-item[data-active=pulse] {background:#67428e;border-color:#efbaff;}
.gp-item[data-active=oil] {background:#35384e;border-color:#bec3f8;}
.gp-item[data-active=lightning] {background:#7d541e;border-color:#ffe386;}
.gp-item>span {font-size:1.04em;color:#ffe1a1;}
.gp-item:focus-visible {outline:2px solid #fff;outline-offset:1px;}
.gp-view.is-done .gp-stick {visibility:hidden;}
@media (any-pointer:coarse),(max-width:760px) {
  .gp-stick {display:block;}
  .gp-drift kbd,.gp-item kbd {display:none;}
}
@media (orientation:portrait) and (max-width:1050px) {
  .gp-views {height:clamp(368px,calc(100dvh - 107px),1000px);grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr));}
  .gp-views.is-solo {grid-template-rows:1fr;}
  .gp-map {top:38px;}
}
@media (max-height:510px) and (orientation:landscape) {
  .gp-views {height:max(224px,calc(100dvh - 84px));}
  .gp-top {min-height:25px;padding-block:2px;}
  .gp-map {top:36px;width:62px;}
  .gp-stick {width:53px;}
}

@media (orientation:portrait) {
  .grand-prix-game[data-table-view=face] .gp-views {grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));}
}
@media (orientation:landscape) {
  .grand-prix-game[data-table-view=face] .gp-seat {container-type:size;}
  .grand-prix-game[data-table-view=face] .gp-view {
    position:absolute;left:50%;top:50%;width:100cqh;height:100cqw;
    transform:translate(-50%,-50%) rotate(var(--gp-view-rotation));
  }
  .grand-prix-game[data-table-view=face] .gp-stick {left:6px;bottom:6px;width:50px;}
  .grand-prix-game[data-table-view=face] .gp-boost {
    right:6px;bottom:6px;width:min(150px,calc(100% - 64px));grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .grand-prix-game[data-table-view=face] :is(.gp-item,.gp-drift) {min-width:0;padding:4px 3px;font-size:.71rem;}
  .grand-prix-game[data-table-view=face] .gp-hud {inset:5px 6px auto;gap:3px;font-size:.71rem;}
  .grand-prix-game[data-table-view=face] .gp-hud>* {padding:4px 5px;}
  .grand-prix-game[data-table-view=face] .gp-map {top:34px;}
}
