:root {
    color-scheme: dark;
    --bg: #080b13;
    --panel: rgba(9, 15, 27, .94);
    --cyan: #5eeaff;
    --blue: #5a83ff;
    --pink: #ff678e;
    --white: #f3f7ff;
    --muted: #939bb1;
    --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    --display: 'Arial Narrow', 'Roboto Condensed', 'Franklin Gothic Medium', sans-serif;
    --body: 'Avenir Next', Avenir, 'Segoe UI', Arial, sans-serif
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0
}

body {
    background: radial-gradient(ellipse at 50% -20%, #202a3c, #0c1220 50%, var(--bg) 82%);
    color: var(--white);
    font-family: var(--body);
    overflow: hidden
}

.shell {
    height: 100%;
    max-width: 1600px;
    margin: auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column
}

.topbar {
    height: 68px;
    flex: 0 0 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cad8ff17;
    z-index: 5
}

.brand {
    font: 700 18px var(--display);
    letter-spacing: .14em;
    color: #e9efff;
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none
}

.brand b {
    color: var(--cyan);
    font-weight: 600
}

.brand-mark {
    width: 29px;
    height: 29px;
    border: 1px solid #5eeaff9c;
    display: grid;
    place-items: center;
    color: var(--cyan);
    clip-path: polygon(15% 0, 85% 0, 100% 22%, 87% 100%, 13% 100%, 0 22%)
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 15px
}

.player-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    color: #c4cde0
}

.avatar {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #36556b, #292750);
    border: 1px solid #53e8ff65;
    border-radius: 50%;
    color: var(--cyan);
    font: 700 14px var(--display)
}

.avatar-image {
    display: block;
    object-fit: cover;
    color: transparent
}

.avatar[hidden],
.profile-photo-wrap img[hidden] {
    display: none
}

.online-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #66ffb0;
    box-shadow: 0 0 8px #66ffb0
}

.icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #343b50;
    background: #121a29;
    color: #a7aec7;
    border-radius: 50%;
    font-size: 17px;
    cursor: pointer
}

.game-frame {
    position: relative;
    flex: 1;
    min-height: 0;
    margin: 16px 0 8px;
    border: 1px solid #74849c66;
    border-radius: 4px;
    overflow: hidden;
    background: #101821;
    box-shadow: 0 12px 65px #0009, 0 0 25px #576fff0b
}

canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .1;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, #d1e8ff 4px)
}

.screen {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(5, 9, 17, .89), rgba(6, 11, 20, .66) 48%, rgba(5, 10, 18, .15))
}

.screen[hidden],
.hud[hidden],
.touch-controls[hidden],
.toast[hidden] {
    display: none
}

.start-screen {
    justify-content: flex-start;
    background: linear-gradient(90deg, rgba(5, 9, 17, .91), rgba(6, 10, 17, .82) 39%, rgba(6, 10, 17, .12) 100%)
}

.screen-content {
    margin-left: 7%;
    width: min(530px, 53%);
    position: relative;
    z-index: 2
}

.eyebrow {
    font: 9px var(--mono);
    letter-spacing: .19em;
    color: #a4b4c5;
    display: flex;
    align-items: center;
    gap: 9px
}

.eyebrow i {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan)
}

h1,
h2,
p {
    margin: 0
}

h1 {
    font: 800 clamp(72px, 8.2vw, 116px)/.78 var(--display);
    letter-spacing: .045em;
    margin: 22px 0 18px;
    text-shadow: 0 0 34px #586fff29
}

h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--cyan);
    text-shadow: 0 0 26px #53e8ff33
}

.tagline {
    font-size: 12px;
    color: #c5cee0
}

.tagline em {
    font-style: normal;
    color: #fff
}

.start-meta {
    display: flex;
    gap: 26px;
    margin: 25px 0 12px;
    font: 8px var(--mono);
    letter-spacing: .12em;
    color: #98a3b7
}

.start-meta b {
    color: var(--cyan);
    font-weight: 500;
    margin-left: 5px
}

.primary-btn,
.secondary-btn {
    height: 45px;
    border: 0;
    cursor: pointer;
    font: 600 9px var(--mono);
    letter-spacing: .12em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none
}

.primary-btn {
    width: 224px;
    padding: 0 16px;
    color: #09121d;
    background: linear-gradient(100deg, #72f0ff, #a2dcff);
    box-shadow: 0 0 25px #53e8ff35;
    transition: transform .18s, filter .18s
}

.primary-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12)
}

.primary-btn b {
    font-size: 17px
}

.wide {
    width: 100%
}

.menu-links {
    display: flex;
    gap: 18px;
    margin: 17px 0 13px
}

.menu-links button,
.account-actions button {
    border: 0;
    padding: 0;
    background: none;
    color: #aebad0;
    font: 8px var(--mono);
    letter-spacing: .09em;
    cursor: pointer
}

.menu-links button:hover,
.account-actions button:hover {
    color: var(--cyan)
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px
}

.account-actions span {
    font: 7px var(--mono);
    color: #6d7890;
    letter-spacing: .08em
}

.account-actions span:before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 6px;
    border-radius: 50%;
    background: #59ebba
}

.control-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #818da4;
    font: 7px var(--mono);
    letter-spacing: .08em
}

kbd {
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    border: 1px solid #56647a;
    border-radius: 2px;
    display: grid;
    place-items: center;
    font: 9px var(--mono);
    color: #d0d9ea
}

.showroom-label {
    position: absolute;
    right: 25px;
    bottom: 19px;
    font: 8px var(--mono);
    letter-spacing: .12em;
    color: #bcc8d8
}

.showroom-label i {
    display: inline-block;
    width: 16px;
    height: 1px;
    background: var(--cyan);
    vertical-align: middle;
    margin-right: 7px
}

.showroom-label b {
    color: #66748d;
    font-weight: 400;
    padding-left: 13px
}

.hud {
    position: absolute;
    inset: 0 26px auto;
    z-index: 2;
    pointer-events: none
}

.hud-top {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding-top: 18px
}

.hud-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 91px
}

.hud-stat span,
.wanted-line,
.police-tail,
.ability-bars>div>span {
    font: 8px var(--mono);
    letter-spacing: .14em;
    color: #bac5d5
}

.hud-stat strong {
    font: 600 22px var(--display);
    text-shadow: 0 0 15px #c7efff35
}

.hud-stat strong small {
    font: 9px var(--mono);
    color: #a7b4c7
}

.hud-stat.right {
    margin-left: auto;
    text-align: right
}

.wanted {
    width: min(290px, 34vw);
    margin: 1px auto 0
}

.wanted-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px
}

.wanted-line b {
    color: #85f5d3;
    font-weight: 500
}

.pursuit-track,
.ability-bars i {
    height: 5px;
    background: #dbeaff20;
    border: 1px solid #e5f3ff20;
    display: block;
    overflow: hidden
}

.pursuit-track i {
    display: block;
    width: 10%;
    height: 100%;
    background: linear-gradient(90deg, #ffd565, #ff9858, #ff4979);
    box-shadow: 0 0 12px #ff5e7f;
    transition: width .2s
}

.police-tail {
    font-size: 7px;
    margin-top: 5px;
    color: #8393aa
}

.pause-btn {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    background: #111a2ad9;
    border: 1px solid #97adc355;
    color: var(--cyan);
    border-radius: 50%;
    cursor: pointer
}

.ability-bars {
    position: absolute;
    left: 0;
    top: 78px;
    display: flex;
    gap: 12px
}

.ability-bars>div {
    width: 145px
}

.ability-bars>div>span {
    font-size: 7px
}

.ability-bars b {
    float: right;
    font: 8px var(--mono);
    color: #ecf7ff
}

.ability-bars i {
    height: 4px;
    margin-top: 5px
}

.ability-bars u {
    display: block;
    height: 100%;
    width: 30%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    text-decoration: none
}

.altitude u {
    background: #9e8dff
}

.screen .panel {
    width: min(430px, 90%);
    max-height: 94%;
    overflow: auto;
    margin: auto;
    padding: 34px 38px;
    background: linear-gradient(145deg, rgba(17, 25, 39, .97), rgba(7, 13, 24, .97));
    border: 1px solid #869ab258;
    box-shadow: 0 20px 70px #000b, 0 0 40px #677dff0c;
    backdrop-filter: blur(13px);
    position: relative
}

.panel h2 {
    font: 700 43px/.94 var(--display);
    letter-spacing: .02em;
    margin: 15px 0 10px
}

.panel h2 span {
    color: var(--cyan)
}

.panel>p {
    font-size: 10px;
    color: #a4afc2;
    margin-bottom: 20px
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start
}

.close-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: 1px solid #414d60;
    color: #c8d4e3;
    font-size: 21px;
    cursor: pointer
}

.pause-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 18px
}

.pause-grid button,
.upgrade button {
    height: 37px;
    background: #192338;
    border: 1px solid #34465c;
    color: #c9d7e7;
    font: 8px var(--mono);
    letter-spacing: .06em;
    cursor: pointer
}

.pause-grid button:hover {
    border-color: var(--cyan);
    color: var(--cyan)
}

.screen .wide-panel {
    width: min(720px, 94%);
    padding: 29px 34px
}

.wide-panel .panel-head h2 {
    margin-bottom: 20px
}

.garage-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px
}

.car-preview {
    position: relative;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: radial-gradient(ellipse at 50% 66%, #c8eaff20, transparent 52%), linear-gradient(#111c29, #080f18);
    border: 1px solid #52627b66;
    overflow: hidden
}

.car-preview:before {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 55px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 20px var(--cyan)
}

.car-preview:after {
    content: '';
    display: none
}

.garage-car {
    position: absolute;
    left: 5%;
    top: 12%;
    width: 90%;
    height: 67%;
    object-fit: contain;
    filter: drop-shadow(0 7px 12px #67eaff55);
    animation: garage-float 3s ease-in-out infinite
}

@keyframes garage-float {
    50% {
        transform: translateY(-5px)
    }
}

.car-preview>span {
    font: 700 15px var(--display);
    letter-spacing: .12em;
    z-index: 1
}

.car-preview>small {
    font: 7px var(--mono);
    letter-spacing: .12em;
    color: #91a1b5;
    margin-top: 4px;
    z-index: 1
}

.swatches {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    z-index: 1
}

.swatches button {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid #ffffff55;
    background: var(--swatch);
    cursor: pointer
}

.swatches button.selected {
    outline: 1px solid var(--cyan);
    outline-offset: 2px
}

.small-label {
    font: 7px var(--mono) !important;
    letter-spacing: .16em;
    color: #8e9db1 !important;
    margin: 2px 0 8px !important
}

.car-choices {
    display: flex;
    gap: 7px;
    margin-bottom: 15px
}

.car-choice {
    flex: 1;
    min-width: 0;
    padding: 9px 7px;
    background: #111b2b;
    border: 1px solid #35445a;
    color: #cbd8e6;
    text-align: left;
    cursor: pointer
}

.car-choice.active {
    border-color: #52def4
}

.car-choice b,
.car-choice small {
    display: block
}

.car-choice b {
    font: 700 10px var(--display)
}

.car-choice small {
    font: 6px var(--mono);
    color: #8999ae;
    margin-top: 5px
}

.upgrade {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 8px;
    margin: 7px 0;
    padding: 9px;
    background: #121d2d;
    border: 1px solid #28384b;
    font: 8px var(--mono)
}

.upgrade>b {
    color: var(--cyan);
    font-weight: 400
}

.upgrade button {
    grid-column: 1/-1;
    height: 25px;
    font-size: 7px;
    text-align: left;
    padding: 0 8px
}

.upgrade i {
    color: #8feaff;
    font-style: normal
}

.garage-hint {
    font-size: 8px !important;
    color: #7f8ea3 !important;
    line-height: 1.5;
    margin: 10px 0 0 !important
}

.wide-panel>.primary-btn {
    margin-top: 18px
}

.mission-list {
    display: grid;
    gap: 8px
}

.mission-card {
    display: grid;
    grid-template-columns: 37px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    background: #111b2b;
    border: 1px solid #2d3d51
}

.mission-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #23334a;
    color: var(--cyan);
    font-size: 17px
}

.mission-card b {
    display: block;
    font-size: 9px
}

.mission-card small {
    font: 7px var(--mono);
    color: #8292a7
}

.mission-progress {
    text-align: right;
    font: 8px var(--mono);
    color: #bfeeff
}

.mission-card i {
    display: block;
    height: 3px;
    background: #dbeaff20;
    margin-top: 5px
}

.mission-card i u {
    display: block;
    height: 100%;
    background: var(--cyan);
    text-decoration: none
}

.achievement-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0;
    padding: 11px;
    background: #111b2b;
    border: 1px solid #2d3d51
}

.achievement-row>div:first-child {
    display: flex;
    gap: 8px;
    align-items: center
}

.achievement-row>div:first-child>span {
    color: #ffdf8a;
    font-size: 21px
}

.achievement-row p {
    font: 8px var(--mono);
    letter-spacing: .08em
}

.achievement-row small {
    color: #8391a7
}

.achievement-icons {
    display: flex;
    gap: 8px;
    color: #556782
}

.achievement-icons .earned {
    color: #ffe083;
    text-shadow: 0 0 10px #ffe08355
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #ffffff15;
    font-size: 10px;
    color: #c2cde0
}

.setting-row input {
    accent-color: #58eaff;
    width: 15px;
    height: 15px
}

.auth-note {
    padding: 13px;
    margin-top: 15px;
    background: #111b2b;
    border: 1px solid #34445b
}

.auth-note b {
    font: 8px var(--mono);
    color: var(--cyan);
    letter-spacing: .1em
}

.auth-note p,
.auth-foot {
    font-size: 8px !important;
    color: #93a1b6 !important;
    line-height: 1.6;
    margin: 8px 0 !important
}

.auth-note button {
    border: 0;
    padding: 0;
    background: none;
    color: #d2e4f4;
    font: 8px var(--mono);
    cursor: pointer
}

.login-link {
    margin-bottom: 10px
}

.auth-foot {
    margin-top: 14px !important
}

.auth-status {
    min-height: 14px;
    margin: 4px 0 10px !important;
    color: #8fa8c1 !important;
    font-size: 9px !important;
    line-height: 1.55
}

.auth-status[data-state=error] {
    color: #ff899e !important
}

.auth-status[data-state=notice] {
    color: #ffd37b !important
}

.login-car-art {
    position: relative;
    height: 93px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -2px 0 6px;
    overflow: hidden
}

.login-car-art:before {
    content: "";
    position: absolute;
    width: 210px;
    height: 58px;
    bottom: -25px;
    border-radius: 50%;
    background: #4acbff38;
    filter: blur(20px)
}

.login-car-art img {
    position: relative;
    width: min(78%, 300px);
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 18px #5edbff45)
}

.startng-login-button {
    margin: 17px 0 9px;
}

.guest-button {
    min-height: 40px
}

.profile-panel {
    width: min(560px, calc(100vw - 32px));
    max-height: min(90vh, 740px);
    overflow: auto
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid #ffffff17
}

.profile-photo-wrap {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #67eaff88;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #27445f, #101927 72%);
    color: #dffaff;
    font: 700 23px var(--display);
    box-shadow: 0 0 18px #49dcff28
}

.profile-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.profile-names {
    min-width: 0
}

.profile-names h3 {
    margin: 0 0 4px;
    color: #eff8ff;
    font: 600 17px var(--display)
}

.profile-names p {
    overflow-wrap: anywhere;
    margin: 0 0 7px;
    color: #a9bad0;
    font-size: 10px
}

.profile-names small,
.profile-collections>div>small {
    color: #6f8199;
    font: 8px var(--mono);
    letter-spacing: .08em
}

.profile-names code {
    color: #9befff;
    font-size: 8px;
    overflow-wrap: anywhere
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 15px 0
}

.profile-stats>div {
    padding: 11px 9px;
    background: #111b2a;
    border: 1px solid #ffffff12
}

.profile-stats small {
    display: block;
    margin-bottom: 7px;
    color: #8091a9;
    font: 7px var(--mono);
    letter-spacing: .08em
}

.profile-stats strong {
    color: #dffaff;
    font: 600 15px var(--display)
}

.profile-collections {
    display: grid;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid #ffffff17
}

.profile-tags {
    margin-top: 7px;
    color: #b6cee0;
    font-size: 10px;
    line-height: 1.7
}

.profile-status {
    margin: 7px 0 !important
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.profile-actions button,
.profile-actions a {
    flex: 1 1 140px;
    min-height: 38px;
    font-size: 8px
}

.signout-btn {
    border-color: #ff718844 !important;
    color: #ff9cac !important
}

.profile-screen .panel-head h2 {
    margin-bottom: 0
}

.run-results {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-block: 1px solid #ffffff18;
    padding: 16px 0;
    margin: 18px 0
}

.run-results>div {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.run-results small {
    font: 7px var(--mono);
    letter-spacing: .08em;
    color: #8997ac
}

.run-results strong {
    font: 600 22px var(--display)
}

.run-results strong span {
    font: 9px var(--mono);
    color: #a5aec6
}

.new-best {
    color: #6ef8c1;
    font: 8px var(--mono);
    letter-spacing: .1em;
    margin: -6px 0 12px
}

.platform-note {
    font-size: 8px !important;
    color: #9ca9bc !important;
    margin: 0 0 12px !important
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.result-actions .primary-btn,
.result-actions .secondary-btn {
    width: 100%;
    height: 39px
}

.secondary-btn {
    justify-content: center;
    color: #d0d9e7;
    background: #171f31;
    border: 1px solid #53647c
}

.board-panel {
    width: min(500px, 92%) !important;
    padding: 29px 33px !important
}

.board-heading {
    display: flex;
    justify-content: space-between
}

.board-heading h2 {
    margin: 11px 0 16px
}

.board-tabs {
    display: flex;
    gap: 23px;
    border-bottom: 1px solid #fff2;
    font: 7px var(--mono);
    letter-spacing: .1em;
    color: #79889d
}

.board-tabs span {
    padding: 0 0 10px
}

.board-tabs .active {
    border-bottom: 1px solid var(--cyan);
    color: var(--cyan)
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow: auto
}

.leaderboard-list li {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    padding: 11px 3px;
    border-bottom: 1px solid #fff1;
    font-size: 10px
}

.leaderboard-list .rank {
    font: 11px var(--mono);
    color: #8999af
}

.leaderboard-list li:nth-child(-n+3) .rank {
    color: var(--cyan)
}

.leaderboard-list .score {
    font: 11px var(--mono);
    color: #eaf7ff
}

.board-empty {
    display: block !important;
    text-align: center;
    color: #9caabe;
    padding: 25px !important
}

.board-foot {
    font: 8px var(--mono);
    color: #8291a8;
    margin: 13px 0 0 !important
}

.touch-controls {
    position: absolute;
    z-index: 4;
    bottom: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    pointer-events: none
}

.steering,
.mobile-abilities {
    pointer-events: auto;
    display: flex;
    gap: 7px
}

.steering button {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    border: 1px solid #8aefff88;
    color: #e5fcff;
    background: #0b1528d9;
    font-size: 26px;
    touch-action: none
}

.mobile-abilities button {
    height: 42px;
    min-width: 47px;
    padding: 0 7px;
    border: 1px solid #70eaff77;
    background: #0b1528e8;
    color: #c9faff;
    font: 8px var(--mono);
    touch-action: none
}

.mobile-abilities b {
    display: block;
    font: 6px var(--mono);
    color: #91a2b7;
    margin-top: 3px
}

.mobile-abilities button.cooldown {
    opacity: .43;
    border-color: #68748a;
    color: #8390a4
}

.toast {
    position: absolute;
    z-index: 9;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #101a2ddd;
    border: 1px solid #53e8ff66;
    padding: 9px 15px;
    color: #eafaff;
    font: 8px var(--mono);
    white-space: nowrap
}

.toast[hidden] {
    display: none
}

.footer {
    height: 31px;
    flex: 0 0 31px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #778399;
    font: 7px var(--mono);
    letter-spacing: .1em
}

.footer i {
    color: var(--cyan);
    font-style: normal
}

.footer-controls b {
    color: #454e61;
    padding: 0 4px
}

@media(max-width:720px) {
    .shell {
        padding: 0 9px
    }

    .topbar {
        height: 55px;
        flex-basis: 55px
    }

    .brand {
        font-size: 15px;
        gap: 8px
    }

    .brand-mark {
        width: 25px;
        height: 25px
    }

    .player-chip {
        font-size: 9px
    }

    .game-frame {
        margin: 9px 0 6px
    }

    .screen-content {
        margin-left: 6%;
        width: 90%
    }

    h1 {
        font-size: 69px;
        margin: 20px 0 15px
    }

    .showroom-label {
        right: 12px;
        bottom: 80px;
        font-size: 6px
    }

    .start-meta {
        margin: 19px 0 10px;
        gap: 14px;
        font-size: 7px
    }

    .menu-links {
        gap: 12px;
        margin: 13px 0 10px
    }

    .menu-links button {
        font-size: 7px
    }

    .account-actions {
        margin-bottom: 12px
    }

    .control-hint {
        font-size: 6px;
        gap: 4px
    }

    .hud {
        inset: 0 11px auto
    }

    .hud-top {
        padding-top: 12px;
        gap: 8px
    }

    .hud-stat {
        min-width: 60px
    }

    .hud-stat span,
    .wanted-line {
        font-size: 6px
    }

    .hud-stat strong {
        font-size: 18px
    }

    .wanted {
        width: 34vw
    }

    .police-tail {
        font-size: 6px
    }

    .ability-bars {
        top: 62px;
        gap: 7px
    }

    .ability-bars>div {
        width: 95px
    }

    .ability-bars>div>span,
    .ability-bars b {
        font-size: 6px
    }

    .pause-btn {
        width: 28px;
        height: 28px
    }

    .footer {
        height: 24px;
        flex-basis: 24px;
        font-size: 6px
    }

    .footer-controls {
        display: none
    }

    .screen .panel {
        padding: 25px 23px
    }

    .panel h2 {
        font-size: 37px
    }

    .screen .wide-panel {
        padding: 21px 18px
    }

    .garage-content {
        grid-template-columns: 1fr;
        gap: 13px
    }

    .car-preview {
        min-height: 150px
    }

    .garage-car {
        top: 8%;
        height: 70%
    }

    .garage-hint {
        display: none
    }

    .car-choice {
        padding: 7px 5px
    }

    .result-actions {
        grid-template-columns: 1fr
    }

    .result-actions .primary-btn,
    .result-actions .secondary-btn {
        height: 35px
    }

    .pause-grid button {
        font-size: 7px
    }

    .touch-controls {
        bottom: 9px;
        left: 8px;
        right: 8px
    }

    .steering {
        gap: 5px
    }

    .steering button {
        width: 43px;
        height: 43px
    }

    .mobile-abilities {
        gap: 4px
    }

    .mobile-abilities button {
        height: 38px;
        min-width: 39px;
        padding: 0 4px;
        font-size: 7px
    }

    .mobile-abilities b {
        font-size: 5px
    }
}

@media(max-width:520px) {
    .profile-panel {
        padding: 20px 18px;
        max-height: 88vh
    }

    .profile-identity {
        gap: 11px
    }

    .profile-photo-wrap {
        width: 52px;
        height: 52px;
        flex-basis: 52px
    }

    .profile-names h3 {
        font-size: 14px
    }

    .profile-stats {
        gap: 5px
    }

    .profile-stats>div {
        padding: 9px 6px
    }

    .profile-stats small {
        font-size: 6px
    }

    .profile-stats strong {
        font-size: 12px
    }

    .profile-actions {
        display: grid;
        grid-template-columns: 1fr
    }

    .profile-actions button,
    .profile-actions a {
        width: 100%
    }

    .login-screen .panel {
        max-height: 88vh;
        overflow: auto
    }

    .login-car-art {
        height: 76px
    }

}

@media(max-width:420px) {
    .menu-links {
        gap: 8px
    }

    .menu-links button {
        font-size: 6px
    }

    .control-hint {
        max-width: 310px;
        flex-wrap: wrap
    }

    .start-screen {
        background: linear-gradient(90deg, rgba(5, 9, 17, .93), rgba(6, 10, 17, .83) 61%, rgba(6, 10, 17, .48))
    }

    .wanted {
        width: 30vw
    }

    .hud-stat.right {
        min-width: 53px
    }

    .mobile-abilities button {
        min-width: 33px;
        font-size: 6px
    }

    .mobile-abilities b {
        font-size: 5px
    }

    .run-results strong {
        font-size: 19px
    }
}

@media(max-height:630px) and (min-width:721px) {
    .topbar {
        height: 50px;
        flex-basis: 50px
    }

    .game-frame {
        margin: 8px 0 5px
    }

    .footer {
        height: 23px;
        flex-basis: 23px
    }

    .screen-content {
        margin-left: 6%
    }

    h1 {
        font-size: 74px;
        margin: 13px 0
    }

    .start-meta {
        margin: 15px 0 7px
    }

    .menu-links {
        margin: 9px 0
    }

    .account-actions {
        margin-bottom: 8px
    }

    .screen .wide-panel {
        padding: 21px 30px
    }

    .car-preview {
        min-height: 180px
    }
}

.reduced-motion .garage-car {
    animation: none !important
}

@media(prefers-reduced-motion:reduce) {
    .garage-car {
        animation: none !important;
        scroll-behavior: auto
    }
}

.leaderboard-list li.self {
    background: linear-gradient(90deg, #3fe5ff16, transparent);
    color: #b9f7ff
}

.volume-row {
    gap: 12px;
    flex-wrap: wrap
}

.volume-row>span {
    width: 100%;
    display: flex;
    justify-content: space-between
}

.volume-row>span b {
    font: 8px var(--mono);
    color: var(--cyan)
}

.setting-row input[type=range] {
    width: 100%;
    height: 6px;
    margin: 3px 0 1px;
    accent-color: var(--cyan)
}

.steering button.drive-control {
    width: 39px;
    height: 39px;
    margin: auto 0 5px;
    border-radius: 6px;
    font: 700 20px var(--display);
    background: #111a28dd
}

.steering button.gas-control {
    color: #7affd1;
    border-color: #7affd188
}

@media(max-width:720px) {
    .steering button.drive-control {
        width: 34px;
        height: 34px;
        margin-bottom: 4px;
        font-size: 17px
    }

    .steering {
        gap: 4px
    }
}

.speed-stat {
    min-width: 77px
}

.speed-stat strong {
    color: #8defff
}

.speed-stat strong small {
    font-size: 7px;
    text-transform: uppercase
}

@media(max-width:720px) {
    .speed-stat {
        min-width: 56px
    }

    .speed-stat strong {
        font-size: 16px
    }

    .speed-stat strong small {
        display: block
    }
}
