/* ============================================================================
 *  Ивент «ЖАЖДА СКОРОСТИ» — экраны sp*
 *
 *  Источник: Figma «KR | Интерфейсы», кадры 1920×1080. Все размеры, отступы,
 *  цвета и кегли сняты с макета через API (не на глаз) — если дизайнер
 *  поправит кадр, сверять надо с ним, а не с этим файлом.
 *
 *  Шрифт: Halvar Engschrift (500 Medium / 700 Bold) — файлы уже в assets/.
 *  Заголовок «ЖАЖДА СКОРОСТИ» набран шрифтом ASPHALTIC SCRATCH, которого у нас
 *  нет, поэтому он лежит картинкой (assets/speed/sp-title.png).
 *
 *  Координаты в комментариях — от левого верхнего угла кадра (или карточки).
 * ==========================================================================*/

@font-face {
    font-family: "Halvar Engschrift";
    src: url("assets/HalvarEng-Rg.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

.sp-screen {
    --sp-surface: #212228;
    --sp-line: #41434c;
    --sp-a1: #9604fe;
    --sp-a2: #f502fe;
    --sp-modal: #1c1d22;
    --sp-grad: linear-gradient(90deg, #9604fe 0%, #f502fe 100%);

    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    overflow: hidden;
    color: #fff;
    font-family: "Halvar Engschrift", var(--kui-font);
    font-weight: 700;
    /* фон рисует корень KingUI (SP_BACKDROP в ui-speed.js) на весь экран, холст прозрачный */
    background: transparent;
}

.sp-screen * {
    box-sizing: border-box;
}

/* <button> по умолчанию не наследует шрифт и рисует системным Arial —
   без этого все подписи на кнопках выходят на 30–40% шире, чем в макете */
.sp-screen button {
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
}

.sp-abs {
    position: absolute;
}

/* Обводка 4px ВНУТРИ блока (как stroke inside в Figma). Рисуется поверх содержимого,
   поэтому дети позиционируются от внешнего края блока — так же, как в макете. */
.sp-frame {
    position: absolute;
    border-radius: 17px;
}

.sp-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--sp-line);
    border-radius: inherit;
    pointer-events: none;
}

/* ---------- квадратные кнопки шапки: «назад» и «закрыть» (124×124) ---------- */

.sp-sq {
    width: 124px;
    height: 124px;
    top: 46px;
    background: var(--sp-surface);
    padding: 0;
    border: 0;
    cursor: pointer;
}

.sp-sq img {
    position: absolute;
    pointer-events: none;
}

.sp-sq:active {
    filter: brightness(0.85);
}

/* ---------- заголовок ---------- */

.sp-title {
    position: absolute;
    pointer-events: none;
}

/* ---------- меню слева: 5 кнопок 416×118 с шагом 140 ---------- */

.sp-menu-btn {
    left: 46px;
    width: 416px;
    height: 118px;
    background: var(--sp-surface);
    padding: 0;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.sp-menu-btn img {
    position: absolute;
    pointer-events: none;
}

.sp-menu-btn span {
    position: absolute;
    top: 16px;
    height: 85px;
    line-height: 85px;
    font-size: 43.97px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}

.sp-menu-btn:active {
    filter: brightness(0.85);
}

/* ---------- карточка машины 454×678 ---------- */

.sp-card {
    top: 231px;
    width: 454px;
    height: 678px;
    background: var(--sp-surface);
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.15s;
}

.sp-card-tracks {
    position: absolute;
    left: 0;
    top: 0;
    width: 454px;
    height: 678px;
    pointer-events: none;
}

.sp-card-name {
    position: absolute;
    left: 0;
    top: 17px;
    width: 454px;
    height: 85px;
    line-height: 85px;
    text-align: center;
    font-size: 43.97px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 12px;
}

.sp-pill {
    position: absolute;
    background: var(--sp-line);
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

.sp-card .sp-pill {
    left: 50%;
    top: 89px;
    transform: translateX(-50%);
    min-width: 218px;
    height: 41px;
    line-height: 41px;
    padding: 0 32px;
    border-radius: 12px;
    font-size: 17.47px;
}

.sp-card-car {
    position: absolute;
    left: 21px;
    top: 119px;
    width: 412px;
    height: 230px;
    object-fit: contain;
    pointer-events: none;
}

.sp-card-car:not([src]) {
    visibility: hidden;
}

/* выбрана одна — остальные притушены (кадр «выбор машины 2») */
.sp-cards-picked .sp-card:not(.sp-sel) {
    opacity: 0.55;
}

.sp-card.sp-sel::after {
    border-color: var(--sp-a2);
}

/* ---------- характеристики: 4 строки, шаг 83 ---------- */

.sp-stat {
    position: absolute;
    left: 33px;
    width: 389px;
    height: 72px;
}

.sp-stat-label {
    position: absolute;
    left: 0;
    top: 0;
    width: 159px;
    height: 53px;
    display: flex;
    align-items: center;
    font-size: 27.55px;
    line-height: 25px;
    white-space: nowrap;
}

.sp-stat-val {
    position: absolute;
    right: 0;
    top: 11px;
    width: 67px;
    height: 30px;
    line-height: 30px;
    text-align: right;
    font-size: 25.67px;
}

.sp-stat-track {
    position: absolute;
    left: 0;
    top: 52px;
    width: 389px;
    height: 20px;
    border-radius: 10px;
    background: var(--sp-line);
    overflow: hidden;
}

.sp-stat-fill {
    height: 20px;
    border-radius: 10px;
    background: var(--sp-grad);
    transition: width 0.4s ease-out;
}

/* ---------- кнопка «подтвердить выбор» 638×119 ---------- */

.sp-confirm {
    left: 858px;
    top: 930px;
    width: 638px;
    height: 119px;
    background: var(--sp-line);
    color: #fff;
    padding: 0;
    border: 0;
    cursor: pointer;
    border-radius: 17px;
}

.sp-confirm-t,
.sp-confirm-s {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.sp-confirm-t {
    top: 18px;
    height: 49px;
    line-height: 49px;
    font-size: 47.69px;
    font-weight: 700;
}

.sp-confirm-s {
    top: 67px;
    height: 34px;
    line-height: 34px;
    font-size: 28.19px;
    font-weight: 500;
    opacity: 0.7;
}

/* активное состояние = градиент поверх серой подложки */
.sp-confirm.sp-ready,
.sp-btn-ok.sp-ready {
    background-color: var(--sp-line);
    background-image: var(--sp-grad);
}

.sp-confirm:disabled,
.sp-btn-ok:disabled {
    cursor: default;
}

.sp-confirm:not(:disabled):active,
.sp-btn-ok:not(:disabled):active {
    filter: brightness(0.9);
}

/* ---------- модалка «выбрать эту машину?» 785×601 ---------- */

.sp-dim {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    background: rgba(29, 30, 32, 0.8);
    z-index: 20;
}

.sp-modal {
    left: 567px;
    top: 239px;
    width: 785px;
    height: 601px;
    border-radius: 18px;
    background: var(--sp-modal);
    overflow: hidden;
    z-index: 21;
}

.sp-modal::after {
    border-radius: 18px;
}

.sp-modal .sp-sq {
    left: 635px;
    top: 26px;
}

.sp-modal-tracks {
    position: absolute;
    left: 0;
    top: 0;
    width: 785px;
    height: 601px;
    object-fit: cover;
    pointer-events: none;
}

.sp-modal-title {
    position: absolute;
    left: 34px;
    top: 40px;
    width: 509px;
    height: 97px;
    line-height: 97px;
    font-size: 50.6px;
    font-weight: 700;
    white-space: nowrap;
}

.sp-modal-car {
    position: absolute;
    left: 63px;
    top: 191px;
    width: 336px;
    height: 187px;
    object-fit: contain;
    pointer-events: none;
}

.sp-modal-car:not([src]) {
    visibility: hidden;
}

.sp-modal-name {
    position: absolute;
    left: 414px;
    top: 207px;
    width: 308px;
    height: 85px;
    line-height: 85px;
    text-align: center;
    font-size: 43.97px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-modal .sp-pill {
    left: 416px;
    top: 279px;
    width: 304px;
    height: 57px;
    line-height: 57px;
    border-radius: 10px;
    font-size: 24.35px;
}

.sp-btn-ok,
.sp-btn-no {
    top: 450px;
    width: 350px;
    height: 119px;
    padding: 0;
    border: 0;
    color: #fff;
    cursor: pointer;
    border-radius: 17px;
}

.sp-btn-ok {
    left: 34px;
    background: var(--sp-line);
}

.sp-btn-ok .sp-confirm-t {
    top: 19px;
}

.sp-btn-ok .sp-confirm-s {
    top: 68px;
    height: 30px;
    line-height: 30px;
    font-size: 25.15px;
}

.sp-btn-no {
    left: 401px;
    background: var(--sp-surface);
}

.sp-btn-no span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 119px;
    line-height: 119px;
    text-align: center;
    font-size: 47.69px;
    font-weight: 700;
    pointer-events: none;
}

.sp-btn-no:active {
    filter: brightness(0.85);
}

/* ============================================================================
 *  spdialog — диалог с NPC (кадры «диалог NPC 1» и «диалог NPC 2»)
 * ==========================================================================*/

/* За диалогом должен быть виден игровой мир, а не сплошная заливка:
   рамка KingUI красит корень в #0b0d12 инлайном, перебиваем классом. */
.kui-root.sp-clear {
    background: transparent !important;
}

.sp-dialog {
    background: transparent;
}

.sp-dlg-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    pointer-events: none;
}

/* карточка с портретом: 547×818, скругление 21, обводка 4.83 внутри */
.sp-npc {
    width: 547px;
    height: 818px;
    border-radius: 21px;
    background: var(--sp-surface);
    overflow: hidden;
}

.sp-npc::after {
    border-width: 4.83px;
}

.sp-npc img {
    position: absolute;
    left: 138px;
    top: 45px;
    width: 272px;
    height: 714px;
    pointer-events: none;
}

/* панель реплики: заливка 80% */
.sp-dlg-panel {
    position: absolute;
    border-radius: 21px;
    background: rgba(33, 34, 40, 0.8);
}

.sp-dlg-text {
    position: absolute;
    width: 695px;
    font-size: 47.7px;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    overflow: hidden;
    white-space: pre-wrap;
}

.sp-dlg-name {
    position: absolute;
    pointer-events: none;
}

/* имя NPC без картинки (запасной вариант — шрифта ASPHALTIC SCRATCH у нас нет) */
.sp-dlg-name-t {
    position: absolute;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

.sp-dlg-next {
    position: absolute;
    width: 450px;
    height: 119px;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 17px;
    background-color: var(--sp-line);
    background-image: var(--sp-grad);
}

.sp-dlg-next span {
    position: absolute;
    left: 0;
    top: 35px;
    width: 100%;
    height: 49px;
    line-height: 49px;
    text-align: center;
    font-size: 47.69px;
    font-weight: 700;
    pointer-events: none;
}

.sp-dlg-next:active {
    filter: brightness(0.9);
}

/* ============================================================================
 *  sphome — главная ивента: карта этапов + панель главы (кадр «главная 1»)
 * ==========================================================================*/

/* пункт меню «активный» — градиентная заливка без обводки */
.sp-menu-btn.sp-on {
    background-image: var(--sp-grad);
}

.sp-menu-btn.sp-on::after {
    border-color: transparent;
}

/* кнопка «ПРИЗЫ» в шапке: 272×124, градиент */
.sp-prizes {
    left: 1454px;
    top: 46px;
    width: 272px;
    height: 124px;
    border: 0;
    padding: 0;
    border-radius: 17px;
    background-color: var(--sp-line);
    background-image: var(--sp-grad);
    cursor: pointer;
}

.sp-prizes span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 124px;
    line-height: 124px;
    text-align: center;
    font-size: 47.69px;
    font-weight: 700;
    pointer-events: none;
}

.sp-prizes:active {
    filter: brightness(0.9);
}

/* ---------- плитки карты: 395×396, цвет и состояние задаются переменными ---------- */

.sp-tile {
    width: 395px;
    height: 396px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    --tc: #f502fe;
    --tc6: rgba(245, 2, 254, 0.6);
    --tcs: rgba(245, 2, 254, 0.5);
    --ov: 0.3;
}

.sp-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(29, 30, 32, var(--ov));
    pointer-events: none;
}

/* обводка 4.23 внутри + внутренняя тень 30: у плитки под курсором тень на полную */
.sp-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 4.23px solid var(--tc);
    border-radius: 18px;
    box-shadow: inset 0 0 30px var(--tcs);
    pointer-events: none;
    transition: box-shadow 0.15s;
}

.sp-tile:hover::after {
    box-shadow: inset 0 0 30px var(--tc);
}

.sp-tile > * {
    z-index: 2;
}

.sp-tile.sp-lock {
    --ov: 0.8;
}

.sp-tcirc {
    left: 145px;
    top: 146px;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: var(--sp-surface);
}

.sp-tcirc::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--tc);
    border-radius: 50%;
}

.sp-lock .sp-tcirc::after {
    border-color: var(--tc6);
}

.sp-tcirc img {
    position: absolute;
    pointer-events: none;
}

.sp-tcirc-t {
    position: absolute;
    left: 21px;
    top: 56px;
    width: 61px;
    height: 28px;
    text-align: center;
    font-size: 23.9px;
    font-weight: 700;
    line-height: 28px;
    white-space: nowrap;
}

.sp-chip-t {
    top: 287px;
    width: 84px;
    height: 84px;
    border-radius: 17px;
    background: var(--sp-surface);
}

.sp-chip-t::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--tc);
    border-radius: 17px;
}

.sp-chip-t img {
    position: absolute;
    left: 17px;
    top: 16px;
    width: 50px;
    height: 52px;
    pointer-events: none;
}

.sp-glow {
    border-radius: 50%;
    background: var(--tc);
    pointer-events: none;
}

.sp-arrow {
    pointer-events: none;
}

/* ---------- правая панель ---------- */

.sp-hp {
    left: 1314px;
    width: 560px;
    border-radius: 17px;
    background: var(--sp-surface);
}

.sp-hp-name {
    left: 1355px;
    top: 252px;
    width: 477px;
    height: 58px;
    display: flex;
    align-items: center;
    font-size: 54.6px;
    line-height: 26.9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-hp-lab {
    left: 1355px;
    top: 310px;
    width: 159px;
    height: 53px;
    display: flex;
    align-items: center;
    font-size: 27.55px;
    line-height: 25.1px;
}

.sp-hp-pct {
    left: 1765px;
    top: 321px;
    width: 67px;
    height: 30px;
    line-height: 30px;
    text-align: right;
    font-size: 25.67px;
}

.sp-hp-bar {
    left: 1355px;
    top: 362px;
    width: 478px;
    height: 20px;
    border-radius: 10px;
    background: var(--sp-line);
    overflow: hidden;
}

.sp-hp-bar i {
    display: block;
    height: 20px;
    border-radius: 10px;
    background: var(--sp-grad);
    transition: width 0.4s ease-out;
}

/* список целей: нативный скролл (работает и пальцем), полосу рисуем сами */
.sp-hlist {
    left: 1337px;
    top: 446px;
    width: 476px;
    height: 332px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sp-hlist::-webkit-scrollbar {
    display: none;
}

.sp-hlist-in {
    position: relative;
    width: 476px;
}

.sp-goal {
    left: 0;
    width: 476px;
    height: 104px;
    border-radius: 16px;
    background: var(--sp-surface);
}

.sp-goal::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3.66px solid var(--sp-line);
    border-radius: 16px;
    pointer-events: none;
}

.sp-goal.sp-cur::after {
    border-color: var(--sp-a2);
}

.sp-goal.sp-lock {
    background: var(--sp-line);
}

.sp-goal.sp-lock::after {
    display: none;
}

.sp-goal-t {
    position: absolute;
    left: 38px;
    top: 19px;
    width: 332px;
    height: 65px;
    display: flex;
    align-items: center;
    font-size: 28.9px;
    font-weight: 400;
    line-height: normal;
    overflow: hidden;
}

.sp-goal img {
    position: absolute;
    pointer-events: none;
}

.sp-sbar {
    left: 1826px;
    top: 446px;
    width: 15px;
    height: 332px;
    border-radius: 8px;
    background: var(--sp-line);
}

.sp-sbar i {
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    border-radius: 8px;
    background: linear-gradient(180deg, #9604fe 0%, #f502fe 100%);
}

/* награды за главу */
.sp-rw {
    left: 1338px;
    top: 793px;
    width: 513px;
    height: 104px;
    border-radius: 16px;
    background: var(--sp-line);
    overflow: hidden;
}

.sp-rw-tint {
    position: absolute;
    inset: 0;
    background: var(--tc3);
}

.sp-rw-lab {
    position: absolute;
    left: 37px;
    top: 19px;
    width: 116px;
    height: 65px;
    display: flex;
    align-items: center;
    font-size: 28.9px;
    font-weight: 700;
    line-height: normal;
}

.sp-rw-chip {
    position: absolute;
    top: 13px;
    width: 79px;
    height: 79px;
    border-radius: 16px;
    background: rgba(33, 34, 40, 0.8);
}

.sp-rw-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3.74px solid var(--tc);
    border-radius: 16px;
}

.sp-rw-chip img {
    position: absolute;
    left: 23px;
    top: 10px;
    width: 33px;
    height: 35px;
    pointer-events: none;
}

.sp-rw-chip b {
    position: absolute;
    left: 8px;
    top: 48px;
    width: 63px;
    height: 21px;
    line-height: 21px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.sp-start {
    left: 1314px;
    top: 931px;
    width: 560px;
    height: 118px;
    border: 0;
    padding: 0;
    border-radius: 17px;
    background-color: var(--sp-line);
    background-image: var(--sp-grad);
    cursor: pointer;
}

.sp-start.sp-off {
    background-image: none;
    cursor: default;
}

.sp-start span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 118px;
    line-height: 118px;
    text-align: center;
    font-size: 47.69px;
    font-weight: 700;
    pointer-events: none;
}

.sp-start:not(.sp-off):active {
    filter: brightness(0.9);
}

/* ============================================================================
 *  sptasks — задания: вкладки «ежедневные» / «ивентовые» (кадры «задания …»)
 * ==========================================================================*/

/* вкладки в шапке: 309×124, активная — градиент без обводки */
.sp-tab {
    top: 46px;
    width: 309px;
    height: 124px;
    border: 0;
    padding: 0;
    border-radius: 17px;
    background-color: var(--sp-surface);
    cursor: pointer;
}

.sp-tab::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--sp-line);
    border-radius: 17px;
    pointer-events: none;
}

.sp-tab span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 124px;
    line-height: 124px;
    text-align: center;
    font-size: 47.69px;
    font-weight: 700;
    pointer-events: none;
}

.sp-tab.sp-on {
    background-image: var(--sp-grad);
}

.sp-tab.sp-on::after {
    display: none;
}

.sp-tab:active {
    filter: brightness(0.88);
}

/* плашка «обновление через» */
.sp-timer {
    left: 787px;
    top: 46px;
    width: 273px;
    height: 124px;
    border-radius: 17px;
    background: var(--sp-line);
}

.sp-timer-l,
.sp-timer-v {
    position: absolute;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}

.sp-timer-l {
    left: 36px;
    top: 24px;
    width: 200px;
    height: 27px;
    line-height: 27px;
    font-size: 26.5px;
}

.sp-timer-v {
    left: 54px;
    top: 53px;
    width: 165px;
    height: 47px;
    line-height: 47px;
    font-size: 45.3px;
}

/* список карточек: область 1394×818, нативный скролл + своя полоса */
.sp-tlist {
    left: 480px;
    top: 231px;
    width: 1394px;
    height: 818px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sp-tlist::-webkit-scrollbar {
    display: none;
}

.sp-tlist-in {
    position: relative;
}

.sp-task {
    left: 0;
    height: 258px;
    border-radius: 17px;
    background: var(--sp-surface);
    overflow: hidden;
}

.sp-task::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--sp-line);
    border-radius: 17px;
    pointer-events: none;
}

.sp-task-n {
    position: absolute;
    left: 57px;
    top: 45px;
    width: 485px;
    height: 49px;
    line-height: 49px;
    font-size: 47.69px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-task-d {
    position: absolute;
    left: 57px;
    top: 91px;
    height: 82px;
    display: flex;
    align-items: center;
    font-size: 28.2px;
    font-weight: 400;
    line-height: normal;
    opacity: 0.7;
    overflow: hidden;
}

.sp-dots {
    position: absolute;
    left: 57px;
    top: 190px;
    height: 24px;
}

.sp-dot {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sp-line);
}

.sp-dot.sp-full {
    background: var(--sp-grad);
}

/* кнопки справа: прижаты к правому краю карточки с отступом 57 */
.sp-tbtn {
    position: absolute;
    border: 0;
    padding: 0;
    border-radius: 17px;
    background-color: var(--sp-line);
    cursor: pointer;
}

.sp-tbtn span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    font-weight: 700;
    pointer-events: none;
}

.sp-tbtn.sp-go {
    background-image: var(--sp-grad);
}

.sp-tbtn:active:not(.sp-dead) {
    filter: brightness(0.9);
}

.sp-tbtn.sp-dead {
    cursor: default;
}

/* ежедневные: 260×102 — «ЗАБРАТЬ» или плашка награды */
.sp-tbtn.sp-d {
    right: 57px;
    top: 78px;
    width: 260px;
    height: 102px;
}

.sp-tbtn.sp-d span {
    height: 102px;
    line-height: 102px;
    font-size: 39.2px;
}

.sp-reward-d {
    position: absolute;
    right: 57px;
    top: 78px;
    width: 260px;
    height: 102px;
    border-radius: 17px;
    background: var(--sp-surface);
}

.sp-reward-d::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3.74px solid var(--sp-line);
    border-radius: 17px;
}

.sp-reward-d img {
    position: absolute;
    left: 61px;
    top: 26px;
    width: 51px;
    height: 49px;
    pointer-events: none;
}

.sp-reward-d b {
    position: absolute;
    left: 124px;
    top: 26px;
    width: 120px;
    height: 46px;
    line-height: 46px;
    font-size: 39.8px;
    font-weight: 500;
}

/* ивентовые: кнопка 414×82 + плашка награды 414×66 */
.sp-tbtn.sp-e {
    right: 57px;
    top: 53px;
    width: 414px;
    height: 82px;
}

.sp-tbtn.sp-e span {
    height: 82px;
    line-height: 82px;
    font-size: 39.2px;
}

.sp-tbtn.sp-e img {
    position: absolute;
    left: 192px;
    top: 20px;
    width: 31px;
    height: 42px;
    pointer-events: none;
}

.sp-reward-e {
    position: absolute;
    right: 57px;
    top: 148px;
    width: 414px;
    height: 66px;
    border-radius: 17px;
    background: var(--sp-surface);
}

.sp-reward-e::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3.29px solid var(--sp-line);
    border-radius: 17px;
}

.sp-reward-e span {
    position: absolute;
    left: 30px;
    top: 10px;
    width: 354px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-tbar {
    left: 1858px;
    top: 231px;
    width: 16px;
    height: 818px;
    border-radius: 8px;
    background: var(--sp-line);
}

.sp-tbar i {
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    border-radius: 8px;
    background: linear-gradient(180deg, #9604fe 0%, #f502fe 100%);
}

/* ============================================================================
 *  spshop — магазин: три панели с карточками товаров (кадр «магазин»)
 * ==========================================================================*/

.sp-slist {
    left: 480px;
    top: 231px;
    width: 1360px;
    height: 818px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sp-slist::-webkit-scrollbar {
    display: none;
}

.sp-slist-in {
    position: relative;
    width: 1360px;
}

.sp-shp {
    top: 0;
    width: 441px;
    border-radius: 17px;
    background: var(--sp-surface);
}

.sp-shp::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--sp-line);
    border-radius: 17px;
    pointer-events: none;
}

.sp-shp-t {
    position: absolute;
    left: 13px;
    top: 11px;
    width: 412px;
    height: 85px;
    line-height: 85px;
    text-align: center;
    font-size: 43.97px;
    font-weight: 700;
    white-space: nowrap;
}

/* карточка товара 203×203 */
.sp-it {
    width: 203px;
    height: 203px;
    border-radius: 12px;
    background: var(--sp-surface);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.08s;
}

.sp-it:active {
    transform: scale(0.97);
}

.sp-it::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 2.8px solid var(--sp-line);
    border-radius: 12px;
    pointer-events: none;
}

.sp-it-n {
    position: absolute;
    left: 6px;
    top: 22px;
    width: 192px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20.5px;
    font-weight: 700;
    line-height: 1.05;
    overflow: hidden;
}

.sp-it-img {
    position: absolute;
    left: 11px;
    top: 55px;
    width: 179px;
    height: 100px;
    object-fit: contain;
    pointer-events: none;
}

.sp-it-img:not([src]) {
    visibility: hidden;
}

.sp-it-p {
    position: absolute;
    left: 0;
    top: 160px;
    width: 203px;
    height: 43px;
    background: var(--sp-line);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sp-it-p img {
    width: 31px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
}

.sp-it-p span {
    font-size: 24.4px;
    font-weight: 500;
    line-height: 28px;
}

.sp-it-lim {
    position: absolute;
    left: 136px;
    top: 132px;
    width: 67px;
    height: 29px;
}

.sp-it-lim img {
    position: absolute;
    left: 0;
    top: 0;
    width: 67px;
    height: 29px;
    pointer-events: none;
}

.sp-it-lim span {
    position: absolute;
    left: 14px;
    top: 3px;
    width: 39px;
    height: 21px;
    line-height: 21px;
    text-align: center;
    font-size: 19.9px;
    font-weight: 700;
}

/* красная угловая лента «РЕДКОЕ»: угол 71×72, надпись повёрнута на 45° против часовой */
.sp-it-rare {
    position: absolute;
    left: 0;
    top: 0;
    width: 71px;
    height: 72px;
    z-index: 2;
    pointer-events: none;
}

.sp-it-rare img {
    position: absolute;
    left: 0;
    top: 0;
    width: 71px;
    height: 72px;
}

.sp-it-rare span {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 42px;
    height: 42px;
    text-align: center;
    font-size: 13.6px;
    font-weight: 500;
    line-height: 16px;
    transform: rotate(-45deg);
}

/* ============================================================================
 *  spgarage — улучшения машины + окно установки детали
 *  (кадры «улучшения 1/2» и «окно установки 1/2»)
 * ==========================================================================*/

/* панель-гараж (версия 2): интерьер, затемнение 50%, тень на полу, машина */
.sp-gar {
    left: 480px;
    top: 231px;
    width: 816px;
    height: 685px;
    border-radius: 17px;
    background: var(--sp-surface);
    overflow: hidden;
}

.sp-gar-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 816px;
    height: 685px;
    pointer-events: none;
}

.sp-gar-ov {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Figma layer-blur 63 = CSS blur(31.5px) */
.sp-gar-sh {
    position: absolute;
    left: 67px;
    top: 500px;
    width: 684px;
    height: 106px;
    border-radius: 50%;
    background: #000;
    filter: blur(31.5px);
}

.sp-gar-car {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
}

.sp-gar-car:not([src]) {
    visibility: hidden;
}

/* «СОБРАНО 4/6» под гаражом */
.sp-gcol-l {
    left: 480px;
    top: 927px;
    width: 272px;
    height: 91px;
    display: flex;
    align-items: center;
    font-size: 47.1px;
    line-height: 42.8px;
}

.sp-gcol-v {
    left: 1181px;
    top: 946px;
    width: 114px;
    height: 51px;
    line-height: 51px;
    text-align: right;
    font-size: 43.9px;
}

.sp-gbar {
    left: 480px;
    top: 1016px;
    width: 816px;
    height: 33px;
    border-radius: 17px;
    background: var(--sp-line);
    overflow: hidden;
}

.sp-gbar i {
    display: block;
    height: 33px;
    border-radius: 17px;
    background: var(--sp-grad);
    transition: width 0.4s ease-out;
}

.sp-hp-name.sp-c {
    justify-content: center;
}

/* ---------- окно установки ---------- */

.sp-wdim {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    background: rgba(33, 34, 40, 0.8);
    z-index: 30;
}

.sp-win {
    top: 100px;
    height: 879px;
    border-radius: 22px;
    background: var(--sp-surface);
    overflow: hidden;
    z-index: 31;
}

.sp-win::after {
    border-width: 5.19px;
    border-radius: 22px;
}

.sp-win-t {
    position: absolute;
    text-align: center;
    font-size: 57px;
    font-weight: 700;
    line-height: 1.05;
    overflow: hidden;
}

.sp-win-img {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
}

.sp-win-img:not([src]) {
    visibility: hidden;
}

/* выбранный вариант (2 детали на выбор): розовая рамка — как у выбранной машины */
.sp-wopt {
    position: absolute;
    border-radius: 17px;
    cursor: pointer;
}

.sp-wopt.sp-sel::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 4px solid var(--sp-a2);
    border-radius: 21px;
    pointer-events: none;
}

.sp-ws {
    position: absolute;
}

.sp-ws-l {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    font-weight: 700;
    white-space: nowrap;
}

.sp-ws-v {
    position: absolute;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.sp-ws-bar {
    position: absolute;
    left: 0;
    border-radius: 12px;
    background: var(--sp-line);
    overflow: hidden;
}

.sp-ws-bar i {
    display: block;
    height: 100%;
    border-radius: 12px;
    background: var(--sp-grad);
}

.sp-win-go {
    position: absolute;
    border: 0;
    padding: 0;
    height: 118px;
    border-radius: 17px;
    background-color: var(--sp-line);
    background-image: var(--sp-grad);
    cursor: pointer;
}

.sp-win-go span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 118px;
    line-height: 118px;
    text-align: center;
    font-size: 47.69px;
    font-weight: 700;
    pointer-events: none;
}

.sp-win-go:active {
    filter: brightness(0.9);
}

/* ============================================================================
 *  spgames — мини-игры: три вертикальные карточки (кадр «мини-игры»)
 * ==========================================================================*/

.sp-game {
    top: 231px;
    width: 454px;
    height: 818px;
    border-radius: 17px;
    background: var(--sp-surface);
    overflow: hidden;
}

.sp-game::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 4px solid var(--sp-line);
    border-radius: 17px;
    pointer-events: none;
}

.sp-game-art {
    position: absolute;
    left: 0;
    top: 0;
    width: 454px;
    height: 818px;
    object-fit: cover;
    pointer-events: none;
}

/* «стекло» поверх арта: заливка 25% + размытие фона 7 (Figma) = blur(3.5px) */
.sp-game-glass {
    position: absolute;
    inset: 0;
    background: rgba(33, 34, 40, 0.25);
    -webkit-backdrop-filter: blur(3.5px);
    backdrop-filter: blur(3.5px);
}

.sp-game-n {
    position: absolute;
    left: 21px;
    top: 34px;
    width: 412px;
    height: 85px;
    line-height: 85px;
    text-align: center;
    font-size: 43.97px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-game-d {
    position: absolute;
    left: 33px;
    top: 112px;
    width: 389px;
    height: 202px;
    border-radius: 17px;
    background: rgba(33, 34, 40, 0.8);
}

.sp-game-d div {
    position: absolute;
    left: 19px;
    top: 9px;
    width: 350px;
    height: 183px;
    display: flex;
    align-items: center;
    font-size: 28.2px;
    font-weight: 400;
    line-height: normal;
    opacity: 0.7;
    overflow: hidden;
}

.sp-game-ic {
    position: absolute;
    top: 582px;
    width: 69px;
    height: 69px;
    border-radius: 12px;
    background: var(--sp-line);
}

.sp-game-ic img {
    position: absolute;
    pointer-events: none;
}

.sp-game-it {
    position: absolute;
    top: 589px;
    height: 56px;
    font-size: 23.9px;
    font-weight: 500;
    line-height: 28px;
    white-space: nowrap;
}

.sp-game-go {
    position: absolute;
    left: 33px;
    top: 694px;
    width: 389px;
    height: 84px;
    border: 0;
    padding: 0;
    border-radius: 17px;
    background-color: var(--sp-line);
    background-image: var(--sp-grad);
    cursor: pointer;
}

.sp-game-go.sp-off {
    background-image: none;
    cursor: default;
}

.sp-game-go span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 84px;
    line-height: 84px;
    text-align: center;
    font-size: 47.69px;
    font-weight: 700;
    pointer-events: none;
}

.sp-game-go:not(.sp-off):active {
    filter: brightness(0.9);
}

/* ============================================================================
 *  spbet — ставки «Кто первый»: машины, сумма, история (кадр «ставки на гонку»)
 * ==========================================================================*/

.sp-bcar {
    left: 480px;
    width: 812px;
    height: 157px;
    border-radius: 17px;
    background: var(--sp-surface);
    cursor: pointer;
}

.sp-bcar::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4.02px solid var(--sp-line);
    border-radius: 17px;
    pointer-events: none;
}

.sp-bcar.sp-sel::after {
    border-color: var(--sp-a2);
}

.sp-bcar-img {
    position: absolute;
    left: 10px;
    top: 32px;
    width: 163px;
    height: 91px;
    object-fit: contain;
    pointer-events: none;
}

.sp-bcar-img:not([src]) {
    visibility: hidden;
}

.sp-bcar-n {
    position: absolute;
    left: 185px;
    top: 21px;
    width: 321px;
    height: 49px;
    line-height: 49px;
    font-size: 35px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-bcar-l {
    position: absolute;
    top: 77px;
    width: 128px;
    height: 41px;
    display: flex;
    align-items: center;
    font-size: 21.3px;
    font-weight: 700;
    line-height: 19.4px;
}

.sp-bcar-v {
    position: absolute;
    top: 86px;
    width: 52px;
    height: 23px;
    line-height: 23px;
    text-align: right;
    font-size: 19.8px;
    font-weight: 700;
}

.sp-bcar-bar {
    position: absolute;
    top: 117px;
    width: 202px;
    height: 15px;
    border-radius: 8px;
    background: var(--sp-line);
    overflow: hidden;
}

.sp-bcar-bar i {
    display: block;
    height: 15px;
    border-radius: 8px;
    background: var(--sp-grad);
}

.sp-bcar-fee {
    position: absolute;
    left: 625px;
    top: 116px;
    width: 168px;
    height: 19px;
    line-height: 19px;
    text-align: center;
    font-size: 19.5px;
    font-weight: 400;
    opacity: 0.7;
    white-space: nowrap;
}

.sp-bcar-k {
    position: absolute;
    left: 630px;
    top: 31px;
    width: 158px;
    height: 78px;
    border: 0;
    padding: 0;
    border-radius: 17px;
    background-color: var(--sp-line);
    cursor: pointer;
}

.sp-bcar.sp-sel .sp-bcar-k {
    background-image: var(--sp-grad);
}

.sp-bcar-k span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 78px;
    line-height: 78px;
    text-align: center;
    font-size: 39.2px;
    font-weight: 700;
    pointer-events: none;
}

/* ---------- нижний ряд: сумма и быстрые ставки ---------- */

.sp-bamt {
    left: 480px;
    top: 930px;
    width: 372px;
    height: 98px;
    border-radius: 17px;
    background: var(--sp-line);
}

.sp-bamt-v {
    position: absolute;
    left: 0;
    top: 12px;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 47.5px;
    font-weight: 500;
    line-height: 55px;
}

.sp-bamt-v img {
    width: 50px;
    height: 49px;
    object-fit: contain;
}

.sp-bamt-r {
    position: absolute;
    left: 0;
    top: 69px;
    width: 100%;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    opacity: 0.6;
    white-space: nowrap;
}

.sp-bq {
    top: 930px;
    width: 133px;
    height: 98px;
    border: 0;
    padding: 0;
    border-radius: 17px;
    background: var(--sp-a2);
    cursor: pointer;
}

.sp-bq span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 98px;
    line-height: 98px;
    text-align: center;
    font-size: 47.9px;
    font-weight: 500;
    pointer-events: none;
}

.sp-bq:active {
    filter: brightness(0.88);
}

/* ---------- история ---------- */

.sp-hhist {
    left: 1342px;
    top: 350px;
    width: 476px;
    height: 559px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sp-hhist::-webkit-scrollbar {
    display: none;
}

.sp-hrow {
    left: 0;
    width: 476px;
    height: 68px;
    border-radius: 15px;
    background: var(--sp-surface);
    overflow: hidden;
}

.sp-hrow::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3.66px solid var(--sp-line);
    border-radius: 15px;
    pointer-events: none;
}

.sp-hrow-t {
    position: absolute;
    left: 38px;
    top: 12px;
    width: 331px;
    height: 44px;
    line-height: 44px;
    font-size: 28.9px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* коэффициент: белая плашка справа, текст тёмный */
.sp-hrow-k {
    position: absolute;
    left: 384px;
    top: 0;
    width: 92px;
    height: 68px;
    background: #fff;
    color: var(--sp-surface);
    z-index: 1;
}

.sp-hrow-k span {
    position: absolute;
    left: 23px;
    top: 12px;
    width: 47px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 28.9px;
    font-weight: 700;
    white-space: nowrap;
}

.sp-bgo {
    left: 1342px;
    top: 930px;
    width: 504px;
    height: 98px;
    border: 0;
    padding: 0;
    border-radius: 17px;
    background-color: var(--sp-line);
    background-image: var(--sp-grad);
    cursor: pointer;
}

.sp-bgo.sp-off {
    background-image: none;
    cursor: default;
}

.sp-bgo div {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    pointer-events: none;
}

.sp-bgo b {
    font-size: 47.7px;
    font-weight: 700;
    line-height: 49px;
}

.sp-bgo em {
    font-style: normal;
    font-size: 47.9px;
    font-weight: 500;
    line-height: 55px;
}

.sp-bgo img {
    width: 51px;
    height: 49px;
    object-fit: contain;
}

.sp-bgo:not(.sp-off):active {
    filter: brightness(0.9);
}

/* ============================================================================
 *  splobby — лобби гонки: три комнаты (кадр «лобби гонки»)
 *  sprace  — сама гонка: четыре дорожки (кадр «гонка»)
 * ==========================================================================*/

/* ---------- лобби: комната 454×818, как карточка мини-игры ---------- */

.sp-room {
    top: 231px;
    width: 454px;
    height: 818px;
    border-radius: 17px;
    background: var(--sp-surface);
}

.sp-room::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--sp-line);
    border-radius: 17px;
    pointer-events: none;
}

.sp-room-n {
    position: absolute;
    left: 21px;
    top: 34px;
    width: 412px;
    height: 85px;
    line-height: 85px;
    text-align: center;
    font-size: 43.97px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-room-h {
    position: absolute;
    left: 34px;
    top: 167px;
    width: 387px;
    height: 45px;
    line-height: 45px;
    font-size: 30px;
    font-weight: 700;
    white-space: nowrap;
}

.sp-slot {
    position: absolute;
    width: 189px;
    height: 44px;
    border-radius: 12px;
    background: rgba(33, 34, 40, 0.8);
}

.sp-slot.sp-free {
    background: rgba(65, 67, 76, 0.8);
}

.sp-slot span {
    position: absolute;
    left: 15px;
    top: 8px;
    width: 158px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 22.7px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* квадрат 93×93 с иконкой + подпись справа */
.sp-room-ic {
    position: absolute;
    width: 93px;
    height: 93px;
    border-radius: 16px;
    background: var(--sp-line);
}

.sp-room-ic img {
    position: absolute;
    pointer-events: none;
}

.sp-room-t {
    position: absolute;
    font-size: 32px;
    font-weight: 500;
    line-height: 37px;
    white-space: nowrap;
}

.sp-room-bet {
    position: absolute;
    left: 139px;
    top: 415px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 34.9px;
    font-weight: 500;
    line-height: 40px;
}

.sp-room-bet img {
    width: 37px;
    height: 36px;
    object-fit: contain;
}

.sp-room-st {
    position: absolute;
    left: 106px;
    top: 651px;
    width: 241px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    font-size: 29.5px;
    font-weight: 500;
    opacity: 0.7;
    white-space: nowrap;
}

.sp-room-go {
    position: absolute;
    left: 33px;
    top: 694px;
    width: 389px;
    height: 84px;
    border: 0;
    padding: 0;
    border-radius: 17px;
    background-color: var(--sp-line);
    background-image: var(--sp-grad);
    cursor: pointer;
}

.sp-room-go.sp-off {
    background-image: none;
    cursor: default;
}

.sp-room-go span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 84px;
    line-height: 84px;
    text-align: center;
    font-size: 47.69px;
    font-weight: 700;
    pointer-events: none;
}

.sp-room-go:not(.sp-off):active {
    filter: brightness(0.9);
}

/* ---------- гонка ---------- */

.sp-race {
    left: 480px;
    top: 231px;
    width: 1394px;
    height: 818px;
    border-radius: 17px;
    background: var(--sp-surface);
}

.sp-lane {
    left: 28px;
    width: 1338px;
    height: 152px;
    border-radius: 17px;
    background: var(--sp-surface);
    overflow: hidden;
}

.sp-lane::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 4.02px solid var(--sp-line);
    border-radius: 17px;
    pointer-events: none;
}

.sp-lane.sp-me::after {
    border-color: var(--sp-a2);
}

/* плитка с номером: слева скруглена, справа прямая */
.sp-lane-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 119px;
    height: 152px;
    border-radius: 17px 0 0 17px;
    background: var(--sp-line);
}

.sp-lane.sp-me .sp-lane-num {
    background: var(--sp-grad);
}

.sp-lane-num span {
    position: absolute;
    left: 26px;
    top: 30px;
    width: 66px;
    height: 97px;
    line-height: 97px;
    text-align: center;
    font-size: 74.1px;
    font-weight: 700;
}

.sp-dash {
    position: absolute;
    top: 74px;
    width: 40px;
    height: 4px;
    border-radius: 18px;
    background: var(--sp-line);
}

.sp-chk {
    position: absolute;
    width: 19px;
    height: 18px;
    background: #fff;
}

.sp-lane-car {
    position: absolute;
    top: 25px;
    width: 183px;
    height: 102px;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
    transition: left 0.6s linear;
}

.sp-lane-car:not([src]) {
    visibility: hidden;
}

/* переключатель «пропустить заезд» */
.sp-tgl {
    left: 508px;
    top: 944px;
    width: 458px;
    height: 70px;
    cursor: pointer;
}

.sp-tgl-tr {
    position: absolute;
    left: 0;
    top: 0;
    width: 133px;
    height: 70px;
    border-radius: 41px;
    background: var(--sp-surface);
}

.sp-tgl-tr::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--sp-line);
    border-radius: 41px;
}

.sp-tgl-kn {
    position: absolute;
    top: 9px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.15s, opacity 0.15s;
}

.sp-tgl .sp-tgl-kn {
    left: 9px;
    opacity: 0.5;
}

.sp-tgl.sp-on .sp-tgl-kn {
    left: 72px;
    opacity: 1;
}

.sp-tgl-t {
    position: absolute;
    left: 153px;
    top: 12px;
    width: 305px;
    height: 46px;
    line-height: 46px;
    font-size: 40px;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================================================
 *  spbn — баннер ивента на HUD (кадры «баннер ивента 3…6», 309×160)
 *  Не экран KingUI, а виджет поверх игры — как .spbtn («спецпредложение»).
 * ==========================================================================*/

.spbn {
    position: fixed;
    right: 10px;
    top: 34%;
    width: 309px;
    height: 160px;
    cursor: pointer;
    z-index: 8000;
    font-family: "Halvar Engschrift", var(--kui-font);
    color: #fff;
    transform-origin: 100% 0;
}

.spbn:active {
    filter: brightness(1.1);
}

.spbn-hidden {
    display: none !important;
}

.spbn * {
    box-sizing: border-box;
}

.spbn-art {
    position: absolute;
    left: 0;
    top: 16px;
    width: 300px;
    height: 130px;
    border-radius: 10px;
    pointer-events: none;
}

/* плашки: 33 в высоту, скругление 7, обводка 2 внутри */
.spbn-chip {
    position: absolute;
    height: 33px;
    border-radius: 7px;
    background: #212228;
    font-size: 17.7px;
    font-weight: 500;
    line-height: 21px;
    white-space: nowrap;
}

.spbn-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #41434c;
    border-radius: 7px;
    pointer-events: none;
}

.spbn-chip.spbn-grad {
    background: linear-gradient(90deg, #9604fe 0%, #f502fe 100%);
}

.spbn-chip.spbn-grad::after {
    display: none;
}

.spbn-chip img,
.spbn-bar img {
    position: absolute;
    pointer-events: none;
}

.spbn-chip span {
    position: absolute;
    top: 6px;
    height: 21px;
}

.spbn-bar {
    position: absolute;
    left: 44px;
    top: 132px;
    width: 212px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(90deg, #9604fe 0%, #f502fe 100%);
}

.spbn-bar span {
    position: absolute;
    left: 34px;
    top: 5px;
    width: 170px;
    height: 18px;
    line-height: 18px;
    font-size: 15.2px;
    font-weight: 500;
    white-space: nowrap;
}

.spbn-alert {
    position: absolute;
    left: 282px;
    top: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #ff3232;
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.75);
    pointer-events: none;
}

.spbn-alert img {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 4px;
    height: 14px;
}

/* ============================================================================
 *  Призы ивента — оверлей (кадр «призы»)
 * ==========================================================================*/

/* размытие экрана 39 (Figma) = blur(19.5px); заливка 1% белого как в макете */
.sp-pr-blur {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    background: rgba(255, 255, 255, 0.01);
    -webkit-backdrop-filter: blur(19.5px);
    backdrop-filter: blur(19.5px);
    z-index: 30;
}

.sp-prlist {
    left: 46px;
    top: 231px;
    width: 1795px;
    height: 818px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    z-index: 35;
}

.sp-prlist::-webkit-scrollbar {
    display: none;
}

/* карточка приза 290×290, рамка цвета этапа */
.sp-pc {
    width: 290px;
    height: 290px;
    border-radius: 17px;
    background: var(--sp-surface);
    overflow: hidden;
    cursor: pointer;
    --tc: #f502fe;
}

.sp-pc::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--tc);
    border-radius: 17px;
    pointer-events: none;
}

.sp-pc-n {
    position: absolute;
    left: 8px;
    top: 45px;
    width: 274px;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 29.2px;
    font-weight: 700;
    line-height: 1.05;
    overflow: hidden;
}

.sp-pc-img {
    position: absolute;
    left: 17px;
    top: 102px;
    width: 256px;
    height: 143px;
    object-fit: contain;
    pointer-events: none;
}

.sp-pc-img:not([src]) {
    visibility: hidden;
}

/* подсказка «источник»: PNG вместе с тенью 361×151, текст по центру плашки */
.sp-pr-tip {
    position: absolute;
    width: 361px;
    height: 151px;
    z-index: 45;
    pointer-events: none;
}

.sp-pr-tip img {
    position: absolute;
    left: 0;
    top: 0;
    width: 361.5px;
    height: 151.5px;
}

.sp-pr-tip span {
    position: absolute;
    left: 21px;
    top: 37px;
    width: 318px;
    height: 57px;
    line-height: 57px;
    text-align: center;
    font-size: 29.2px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- подтверждение покупки ---------- */

.sp-shopask .sp-pill.sp-shopask-p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 34px;
    font-weight: 700;
}

.sp-shopask-p img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ---------- задания: карточка-переход ---------- */

.sp-task.sp-task-go {
    cursor: pointer;
}

.sp-task.sp-task-go:active {
    filter: brightness(1.12);
}

/* ---------- баланс в шапке (между заголовком и таймером: 760..1420) ---------- */

.sp-bal {
    left: 760px;
    top: 46px;
    width: 660px;
    height: 124px;
    border-radius: 17px;
    background: var(--sp-surface);
    overflow: hidden;
}

.sp-bal::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--sp-line);
    border-radius: inherit;
    pointer-events: none;
}

.sp-bal-c {
    position: absolute;
    left: 0;
    top: 0;
    width: 330px;
    height: 124px;
    text-align: center;
}

.sp-bal-en {
    left: 330px;
}

.sp-bal-en::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 3px;
    height: 80px;
    background: var(--sp-line);
}

.sp-bal-l {
    position: absolute;
    left: 0;
    top: 12px;
    width: 100%;
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
    opacity: 0.7;
}

.sp-bal-v {
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 48px;
    font-weight: 700;
    line-height: 50px;
}

.sp-bal-v img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.sp-bal-s {
    position: absolute;
    left: 0;
    top: 92px;
    width: 100%;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    opacity: 0.7;
    white-space: nowrap;
}

/* ---------- сборка машины в гараже ---------- */

.sp-asm {
    width: 813px;
    height: 454px;
    pointer-events: none;
}

.sp-asm-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 813px;
    height: 454px;
    object-fit: contain;
}

.sp-asm-img:not([src]) {
    visibility: hidden;
}

/* несобранное: серый силуэт */
.sp-asm-ghost {
    filter: grayscale(1) brightness(0.55) contrast(1.05);
    opacity: 0.55;
}

/* собрано целиком - лёгкое свечение */
.sp-asm-full {
    filter: drop-shadow(0 0 18px rgba(245, 2, 254, 0.45));
}

/* только что поставленная деталь вспыхивает */
.sp-asm-new {
    animation: sp-asm-pop 1.2s ease-out 1;
}

@keyframes sp-asm-pop {
    0%   { filter: brightness(2.2) drop-shadow(0 0 26px #f502fe); }
    60%  { filter: brightness(1.3) drop-shadow(0 0 14px #f502fe); }
    100% { filter: none; }
}

/* ---------- переключатель локации в лобби: шестой слот колонки меню (416×118) ---------- */

.sp-loc {
    left: 46px;
    top: 931px;
    width: 416px;
    height: 118px;
    display: flex;
    overflow: hidden;
    background: var(--sp-surface);
}

.sp-loc-btn {
    flex: 1 1 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer;
}

.sp-loc-btn.sp-on {
    background-image: var(--sp-grad);
}

.sp-loc-btn:active {
    filter: brightness(0.85);
}

/* Audit v2: explicit stage rewards, honest race rules, solo entry. */
.sp-rules { left: 480px; top: 190px; width: 1370px; box-sizing: border-box; color: #f2eaf8; font: 22px/1.35 Arial, sans-serif; }
.sp-home-rules { left: 480px; top: 930px; width: 800px; padding: 20px; border: 1px solid rgba(245,2,254,.3); border-radius: 12px; background: rgba(12,9,22,.85); }
.sp-garage-rules { left: 480px; top: 955px; width: 810px; font-size: 24px; }
.sp-shop-rules { top: 168px; width: 900px; font-size: 20px; }
.sp-part-row .sp-goal-t { top: 20px; height: 43px; line-height: 40px; }
.sp-part-hint { position: absolute; left: 20px; top: 68px; width: 370px; color: #c4b7cd; font: 18px/1.2 Arial,sans-serif; }
.sp-option-name { position: absolute; bottom: 8px; left: 5%; width: 90%; padding: 8px; box-sizing: border-box; border-radius: 8px; background: rgba(15,10,25,.9); color: white; text-align: center; font: 24px/1.2 Arial,sans-serif; }
.sp-stat-note { position: absolute; left: 5%; bottom: 10px; width: 90%; color: #c4b7cd; text-align: center; font: 17px/1.25 Arial,sans-serif; }
.sp-solo-start { left: 480px; top: 1000px; width: 1370px; height: 58px; border: 1px solid #ef5af8; border-radius: 12px; color: white; background: #6c1677; font: bold 24px Arial,sans-serif; cursor: pointer; }
.sp-sold-out { opacity: .45; cursor: default; }
.sp-lobby-rules { font-size: 21px; }

.sp-garage-rules { top: 178px; width: 810px; font-size: 19px; line-height: 24px; }
.sp-hp-name.sp-c { font-size: 35px; line-height: 37px; white-space: normal; text-align: center; justify-content: center; }
.sp-solo-start { position: absolute; left: 33px; top: 586px; width: 389px; height: 60px; z-index: 2; font-size: 25px; }
.sp-room-st { left: 22px; width: 410px; font-size: 22px; }

.sp-home-rules { left: 480px; top: 190px; width: 1370px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 22px; }

.sp-records-link { position: absolute; left: 33px; top: 321px; width: 389px; height: 42px; border: 1px solid #6c6775; border-radius: 9px; color: #e1c0e6; background: #2b2431; font: bold 20px Arial,sans-serif; cursor: pointer; }
.sp-records { left: 480px; top: 231px; width: 1394px; height: 818px; box-sizing: border-box; padding: 28px 34px; border: 3px solid #41434c; border-radius: 17px; background: #212228; color: white; }
.sp-records h2 { font-size: 38px; line-height: 46px; margin: 0 0 12px; }
.sp-records p { font: 21px/1.35 Arial,sans-serif; color: #c4b7cd; margin: 0 0 20px; }
.sp-records table { border-collapse: collapse; width: 100%; font: 25px/1.2 Arial,sans-serif; table-layout: fixed; }
.sp-records th, .sp-records td { padding: 12px 16px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid #3e3745; }
.sp-records th { font-size: 18px; color: #c4b7cd; }
.sp-records th:first-child { width: 12%; }
.sp-records th:nth-child(2) { width: 40%; }
.sp-records tbody tr:first-child { color: #f7ca65; background: #302735; }
.sp-records-empty { padding: 80px 30px; color: #c4b7cd; font: 30px/1.4 Arial,sans-serif; text-align: center; }

/* Normal-map story: one journal for objectives, NPC dialogue and navigation. */
.sp-story-link { cursor:pointer; text-align:left; white-space:pre-line; font-weight:700; }
.sp-story-link:hover { border-color:#ed8dff; background:rgba(60,22,76,.95); }
.sp-story { left:480px; top:231px; width:1370px; height:797px; box-sizing:border-box; display:flex; gap:30px; padding:30px; border:1px solid #704876; border-radius:18px; background:rgba(17,12,26,.97); color:#fff; font-family:Arial,sans-serif; }
.sp-story-person { flex:0 0 340px; min-width:0; padding:10px 24px 10px 0; border-right:1px solid #50334f; box-sizing:border-box; }
.sp-story-kicker { color:#df9fe9; font-size:19px; line-height:1.4; letter-spacing:1px; }
.sp-story-portrait { position:relative; height:405px; margin-top:24px; overflow:hidden; border-radius:14px; background:radial-gradient(ellipse at 50% 70%,#66215c,#18101e 72%); }
.sp-story-monogram { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#d49ad6; font-size:95px; font-weight:bold; opacity:.35; }
.sp-story-skin { position:absolute; width:100%; height:100%; object-fit:contain; }
.sp-story-inspection { position:absolute; bottom:40px; left:0; width:100%; text-align:center; font-size:20px; color:#efc9f5; }
.sp-story-person h2 { margin:22px 0 8px; font-size:42px; line-height:1.05; overflow-wrap:anywhere; }
.sp-story-role { font-size:24px; color:#e8cee9; margin:0 0 16px; }
.sp-story-place { font-size:22px; line-height:1.4; color:#c8becf; margin:0; }
.sp-story-main { flex:1; min-width:0; display:flex; flex-direction:column; }
.sp-story-title { font-size:39px; line-height:1.1; margin:12px 0 18px; }
.sp-story-text { font-size:27px; line-height:1.4; color:#f4e8f5; height:227px; flex:0 0 227px; overflow:auto; padding-right:12px; }
.sp-story-steps { list-style:none; padding:0; margin:18px 0; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sp-story-steps li { display:flex; align-items:center; gap:12px; min-height:68px; padding:10px 13px; box-sizing:border-box; border:1px solid #493847; border-radius:10px; font-size:21px; line-height:1.25; color:#b5aab8; }
.sp-story-steps li.current { color:white; background:#482146; border-color:#ca68d3; }
.sp-story-steps li.done { color:#b0edcb; border-color:#38654e; }
.sp-story-number { flex:0 0 22px; font-weight:bold; }
.sp-story-actions { margin-top:auto; display:flex; gap:14px; }
.sp-story-actions button { position:relative; min-height:78px; box-sizing:border-box; padding:14px 20px; border-radius:12px; cursor:pointer; font:bold 22px/1.2 Arial,sans-serif; color:white; }
.sp-story-route { flex:0 0 210px; border:1px solid #b77ab9; background:#2c1b36; }
.sp-story-act { flex:1; border:1px solid #f0b0f5; background:#87318e; }
.sp-story-footnote { margin:14px 0 0; font-size:18px; line-height:1.3; color:#c4b7c9; }

/* Embedded city map. Uses the same 1920x1080 adaptive canvas as the journal. */
.sp-story-tabs { position:absolute; top:-52px; left:0; display:flex; gap:10px; }
.sp-story-tabs button { position:relative; height:42px; padding:0 24px; border:1px solid #805384; border-radius:10px; background:#211528; color:#e7cce9; font:bold 20px Arial,sans-serif; cursor:pointer; }
.sp-story-tabs button.active { background:#77317f; border-color:#edb3f5; color:white; }
.sp-story button:focus-visible { outline:3px solid #fff0b8; outline-offset:4px; }
.sp-story-map-mode { gap:24px; padding:24px; }
.sp-map-area { flex:0 0 650px; min-width:0; }
.sp-map-area > .sp-story-kicker { margin:0 0 14px; }
.sp-story-map { position:relative; width:650px; height:644px; box-sizing:border-box; border:1px solid #7c6387; border-radius:14px; background:#171b21; isolation:isolate; }
.sp-map-base { position:absolute; inset:0; width:100%; height:100%; border-radius:13px; object-fit:fill; pointer-events:none; filter:brightness(.88) saturate(.7); }
.sp-map-pin { position:absolute; width:64px; height:76px; padding:0 0 12px; transform:translate(-50%,-100%); border:0; background:none; color:white; cursor:pointer; z-index:2; font-family:Arial,sans-serif; }
.sp-map-pin::after { content:""; position:absolute; bottom:0; left:28px; border-left:4px solid transparent; border-right:4px solid transparent; border-top:12px solid #d891e7; }
.sp-map-face { position:relative; width:64px; height:64px; border-radius:50%; overflow:hidden; box-sizing:border-box; border:2px solid #d891e7; background:radial-gradient(ellipse at 50% 70%,#772f76,#211628); box-shadow:0 3px 12px #000a; }
.sp-map-face .sp-story-monogram { font-size:23px; opacity:1; color:#f4d2fa; }
.sp-map-face .sp-story-skin { width:100%; height:100%; object-fit:contain; }
.sp-map-pin-name { position:absolute; left:50%; bottom:80px; transform:translateX(-50%); padding:4px 8px; border-radius:6px; background:#1b1325ed; color:white; font:bold 18px/1.2 Arial,sans-serif; white-space:nowrap; pointer-events:none; }
.sp-map-pin.edge .sp-map-pin-name { left:auto; right:0; transform:none; }
.sp-map-pin.objective .sp-map-face { border-color:#ffcd6d; box-shadow:0 0 0 4px #ffcd6d55,0 3px 12px #000a; }
.sp-map-pin.objective::after { border-top-color:#ffcd6d; }
.sp-map-pin.objective .sp-map-pin-name { color:#ffdc93; }
.sp-map-pin.selected { z-index:4; }
.sp-map-pin.selected .sp-map-face { outline:3px solid white; outline-offset:3px; }
.sp-map-pin:hover .sp-map-face { filter:brightness(1.25); }
.sp-map-pin.inspection { width:44px; height:44px; padding:0; transform:translate(-50%,18px); }
.sp-map-pin.inspection .sp-map-face { width:44px; height:44px; border-radius:10px; background:#253741; border-color:#9ac7d8; }
.sp-map-pin.inspection.objective .sp-map-face { border-color:#ffcd6d; }
.sp-map-pin.inspection .sp-story-monogram { font-size:22px; }
.sp-map-pin.inspection::after { top:-18px; bottom:auto; left:21px; height:18px; width:2px; border:0; background:#c4dfeb; }
.sp-map-pin.inspection .sp-map-pin-name { bottom:auto; top:48px; font-size:17px; }
.sp-map-pin.inspection[data-point="5"] .sp-story-monogram { font-size:0; }
.sp-map-pin.inspection[data-point="5"] .sp-story-monogram::after { content:"A"; font-size:22px; }
.sp-map-pin.inspection[data-point="6"] .sp-story-monogram { font-size:0; }
.sp-map-pin.inspection[data-point="6"] .sp-story-monogram::after { content:"B"; font-size:22px; }
.sp-map-player { position:absolute; width:13px; height:13px; transform:translate(-50%,-50%); border:3px solid white; background:#54cbed; border-radius:50%; box-shadow:0 0 0 7px #54cbed44; z-index:1; pointer-events:none; }
.sp-map-legend { margin:14px 0 0; color:#edd4ad; font-size:17px; line-height:1.25; }
.sp-map-location-note { margin:6px 0 0; color:#b1c2d2; font-size:17px; line-height:1.25; }
.sp-map-side { flex:1; min-width:0; display:flex; flex-direction:column; }
.sp-map-card { min-height:230px; display:flex; gap:20px; align-items:center; }
.sp-map-card .sp-story-portrait { flex:0 0 152px; height:218px; margin:0; }
.sp-map-card .sp-story-monogram { font-size:58px; }
.sp-map-card .sp-story-inspection { bottom:22px; font-size:15px; }
.sp-map-card-info { min-width:0; }
.sp-map-status { color:#f6ce80; font-size:17px; letter-spacing:1px; }
.sp-map-card h2 { margin:10px 0; font-size:38px; line-height:1.1; }
.sp-map-card .sp-story-role { font-size:21px; margin-bottom:10px; }
.sp-map-card .sp-story-place { font-size:20px; line-height:1.3; }
.sp-map-distance { margin:10px 0 0; color:#c8b1d7; font-size:20px; }
.sp-map-roster { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.sp-map-person-button { position:relative; border:1px solid #72517a; border-radius:8px; padding:10px 13px; background:#281b32; color:#e5d3ee; font:19px Arial,sans-serif; cursor:pointer; }
.sp-map-person-button.selected { background:#713079; border-color:#e5a2ef; color:white; }
.sp-map-objective { padding:17px 19px; border:1px solid #684471; border-radius:12px; background:#28172f; }
.sp-map-objective .sp-story-kicker { font-size:17px; }
.sp-map-objective h3 { font-size:25px; line-height:1.2; margin:9px 0; }
.sp-map-objective p { font-size:20px; line-height:1.4; margin:0; max-height:112px; overflow:auto; color:#e1d1e6; }
.sp-map-actions { display:flex; flex-direction:column; gap:10px; margin-top:auto; padding-top:18px; }
.sp-map-actions button { position:relative; min-height:60px; box-sizing:border-box; border:1px solid #ba7bca; border-radius:10px; font:bold 21px Arial,sans-serif; color:white; cursor:pointer; }
.sp-map-route { background:#86368e; }
.sp-map-quest { background:#281b32; }
.sp-map-route:disabled { opacity:.4; cursor:default; }
.sp-map-error { position:absolute; top:12px; left:12px; right:12px; padding:12px; font:19px/1.3 Arial,sans-serif; color:#f3d7e7; background:#251829; pointer-events:none; }

.sp-policy-summary { position:absolute; left:46px; top:933px; width:416px; height:90px; padding:12px 14px; border:1px solid #8a628c; border-radius:12px; background:#211826e8; color:#ead5ef; font:bold 18px/1.5 Arial,sans-serif; text-align:left; white-space:pre-line; cursor:pointer; }
.sp-policy-modal { position:absolute; inset:0; background:#08040bd9; z-index:1000; display:flex; align-items:center; justify-content:center; }
.sp-policy-dialog { width:1130px; max-height:930px; padding:28px 36px; box-sizing:border-box; overflow:auto; background:#201426; border:1px solid #bc82c8; border-radius:18px; color:white; font:23px/1.35 Arial,sans-serif; }
.sp-policy-dialog h2 { margin:0 0 20px; font-size:33px; }
.sp-policy-row { border-top:1px solid #513b5a; padding:12px 0; }
.sp-policy-row h3 { margin:0 0 6px; color:#e4a9ef; font-size:23px; }
.sp-policy-row p { margin:0; font-size:21px; line-height:1.4; }
.sp-policy-close { position:relative; display:block; width:100%; margin-top:14px; min-height:64px; border:1px solid #edb4f5; border-radius:10px; background:#81308a; color:white; font:bold 23px Arial,sans-serif; cursor:pointer; }
.sp-menu-btn:disabled { opacity:.4; cursor:default; }

.sp-policy-with-loc .sp-loc { height:65px; }
.sp-policy-with-loc .sp-policy-summary { top:1005px; height:44px; padding:5px 14px; text-align:center; }

/* Mobile event: dedicated journal strip, explicit task confirmation, city tabs. */
.sp-home-rules.sp-story-link { top:178px; height:46px; width:1370px; padding:8px 16px; box-sizing:border-box; border:1px solid #805384; border-radius:10px; background:#29192e; font-size:30px; line-height:28px; white-space:nowrap; z-index:5; }
.sp-map-cities { display:flex; gap:12px; height:42px; margin-bottom:12px; }
.sp-map-cities button { flex:1; border:1px solid #805384; border-radius:8px; background:#211528; color:white; font:bold 20px Arial; cursor:pointer; }
.sp-map-cities button.active { background:#77317f; border-color:#edb3f5; }
.sp-task-dialog { position:absolute; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; background:#08050dd9; }
.sp-task-dialog-box { width:700px; padding:40px; border:2px solid #b980c6; border-radius:20px; background:#25182e; color:#fff; font:26px/1.4 Arial; box-shadow:0 20px 80px #0008; }
.sp-task-dialog-box h2 { font-size:36px; margin:0 0 20px; }
.sp-task-dialog-box strong { color:#ffd68a; }
.sp-task-dialog-box button { min-height:66px; padding:15px 24px; margin:12px 12px 0 0; border:1px solid #b980c6; border-radius:10px; color:white; background:#3d2b48; font:bold 22px Arial; cursor:pointer; }
.sp-task-dialog-box .sp-task-confirm { background:#81378e; }
.sp-good-description { position:absolute; top:355px; left:35px; width:696px; text-align:center; color:#e8d5ed; font:20px/1.3 Arial; }

.sp-shopask .sp-modal-name { font-size:28px; white-space:normal; line-height:1.3; display:flex; align-items:center; justify-content:center; }

/* Current objective only: a readable full-width meeting screen. */
.sp-story-screen .sp-story { left:46px; width:1828px; box-sizing:border-box; }
.sp-story-focus { display:flex; gap:42px; padding:32px; }
.sp-focus-area { flex:0 0 800px; }
.sp-focus-city { font:bold 34px Arial; margin:0 0 20px; color:#f3cc84; }
.sp-focus-map { position:relative; width:800px; height:620px; overflow:hidden; border-radius:18px; background:#242833; isolation:isolate; }
.sp-focus-base { position:absolute; max-width:none; object-fit:fill; }
.sp-focus-pin { position:absolute; left:50%; top:50%; transform:translate(-50%,-100%); }
.sp-focus-pin .sp-map-face { width:110px; height:110px; border:4px solid #ffd17b; box-shadow:0 0 0 10px #ffd17b44; }
.sp-focus-pin::after { content:""; position:absolute; left:47px; border:8px solid transparent; border-top-color:#ffd17b; }
.sp-focus-pin-name { position:absolute; bottom:128px; left:50%; transform:translateX(-50%); padding:10px 20px; background:#24152bec; border-radius:10px; font:bold 36px Arial; color:white; white-space:nowrap; }
.sp-focus-caption { font:26px/1.3 Arial; color:#cdbdd6; margin:18px 0; }
.sp-focus-side { flex:1; min-width:0; display:flex; flex-direction:column; }
.sp-focus-person { display:flex; align-items:center; gap:28px; }
.sp-focus-person .sp-story-portrait { flex:0 0 210px; height:270px; margin:0; }
.sp-focus-kicker { font:bold 26px/1.3 Arial; color:#f3cc84; }
.sp-focus-person h2 { margin:12px 0; font:bold 62px/1.1 Arial; }
.sp-focus-person p { margin:10px 0; font:32px/1.3 Arial; }
.sp-focus-distance { color:#d7b3e5; }
.sp-focus-task { margin:26px 0; padding:24px; border:1px solid #785486; border-radius:14px; flex:1; min-height:0; overflow:auto; }
.sp-focus-task h3 { font:bold 38px/1.2 Arial; margin:14px 0; }
.sp-focus-task p { font:32px/1.4 Arial; margin:0; }
.sp-focus-route { min-height:104px; border:1px solid #eab4fa; border-radius:14px; background:#85338f; color:white; font:bold 32px Arial; cursor:pointer; }
.sp-story-screen > .sp-policy-summary { display:none; }

/* Guided home: one next action, progress details on demand. */
.sp-guide-home { position:absolute; left:480px; top:205px; width:1370px; height:840px; overflow:auto; box-sizing:border-box; padding:0 8px 20px 0; color:white; font-family:Arial,sans-serif; }
.sp-guide-heading { font-size:44px; line-height:1.2; margin:0 0 12px; }
.sp-guide-intro { font-size:28px; line-height:1.4; color:#d9c7df; margin:0 0 24px; }
.sp-guide-chapters { display:flex; gap:12px; margin-bottom:24px; }
.sp-guide-chapters button { flex:1; min-height:64px; border:1px solid #805587; border-radius:12px; background:#211927; color:#ddd0e2; font:24px Arial; cursor:pointer; }
.sp-guide-chapters .selected { background:#75317f; border-color:#e5b1ef; color:white; }
.sp-guide-columns { display:flex; gap:24px; }
.sp-guide-next { flex:1; min-width:0; padding:28px; border:1px solid #a868b5; border-radius:18px; background:#271a30f5; display:flex; flex-direction:column; }
.sp-guide-kicker { font:bold 24px/1.3 Arial; color:#f5ce85; }
.sp-guide-next h2 { font:bold 42px/1.2 Arial; margin:20px 0; }
.sp-guide-instruction { font:32px/1.45 Arial; margin:0 0 28px; }
.sp-guide-primary { min-height:100px; width:100%; margin-top:auto; border:1px solid #e2a4f1; border-radius:12px; background:#8b319b; color:white; font:bold 28px Arial; padding:16px; cursor:pointer; }
.sp-guide-primary:disabled { opacity:.5; cursor:default; }
.sp-guide-reward { width:430px; flex:0 0 430px; box-sizing:border-box; padding:24px; border:1px solid #64506e; border-radius:18px; background:#1e1729e8; }
.sp-guide-car { width:100%; height:170px; object-fit:contain; }
.sp-guide-reward h3 { margin:14px 0; font:bold 28px/1.2 Arial; }
.sp-guide-reward p { font:26px/1.4 Arial; margin:14px 0; }
.sp-guide-reward .sp-guide-explain { color:#d3c3dc; font-size:24px; }
.sp-guide-secondary { width:100%; min-height:66px; border:1px solid #9970a8; border-radius:10px; color:white; background:#372640; font:bold 24px Arial; cursor:pointer; }
.sp-guide-goals { margin-top:24px; padding:22px; background:#201727; border:1px solid #685174; border-radius:12px; }
.sp-guide-goals summary { font:28px/1.3 Arial; cursor:pointer; }
.sp-guide-goals button { display:block; width:100%; text-align:left; padding:18px 0; border:0; border-bottom:1px solid #48374e; background:none; color:white; font:26px/1.3 Arial; cursor:pointer; }
.sp-guide-goals button:disabled { color:#b9a8c0; cursor:default; }
.sp-clear-page { position:absolute; left:480px; top:205px; width:1370px; height:840px; display:flex; flex-direction:column; box-sizing:border-box; color:white; font-family:Arial,sans-serif; }
.sp-clear-page h1 { font:bold 42px/1.2 Arial; margin:0 0 16px; }
.sp-clear-intro { display:flex; align-items:center; gap:20px; margin-bottom:20px; }
.sp-clear-intro p,.sp-clear-subtitle { font:28px/1.4 Arial; color:#d8c6df; margin:0 0 20px; }
.sp-clear-intro p { margin:0; flex:1; }
.sp-clear-link { min-height:62px; padding:12px 18px; border:1px solid #9564a2; border-radius:10px; background:#33203e; color:#fff; font:bold 24px Arial; cursor:pointer; }
.sp-clear-tabs { display:flex; gap:16px; margin-bottom:22px; align-items:center; }
.sp-clear-tabs button { min-height:66px; padding:15px 26px; border:1px solid #88628f; border-radius:10px; background:#24182d; color:#fff; font:bold 26px Arial; cursor:pointer; }
.sp-clear-tabs button.active { background:#773184; border-color:#edb9f4; }
.sp-clear-time { margin-left:auto; font:24px Arial; color:#d8c6df; }
.sp-clear-list { overflow:auto; flex:1; min-height:0; padding-right:12px; }
.sp-clear-task { display:flex; gap:28px; padding:26px; margin-bottom:18px; border:1px solid #6c4f79; border-radius:16px; background:#25182ff0; }
.sp-clear-task.ready { border-color:#edc875; background:#302536f5; }
.sp-clear-task.done { opacity:.7; }
.sp-clear-task-content { flex:1; min-width:0; }
.sp-clear-task h2,.sp-clear-part h2 { font:bold 34px/1.2 Arial; margin:0 0 12px; }
.sp-clear-task p { font:28px/1.4 Arial; margin:0 0 16px; }
.sp-clear-progress { font:26px Arial; color:#f1d1f5; }
.sp-clear-track { height:10px; border-radius:6px; background:#53405d; margin:12px 0; overflow:hidden; }
.sp-clear-track i { display:block; height:100%; background:#d591e9; }
.sp-clear-task small { display:block; font:24px/1.35 Arial; color:#cdbdd8; }
.sp-clear-task-action { flex:0 0 310px; display:flex; flex-direction:column; justify-content:center; gap:20px; }
.sp-clear-task-action strong { font:bold 30px/1.3 Arial; color:#ffdc89; }
.sp-clear-primary { min-height:82px; padding:16px 20px; border:1px solid #d79be8; border-radius:12px; background:#81328e; color:white; font:bold 25px/1.2 Arial; cursor:pointer; }
.sp-clear-primary:disabled { opacity:.6; cursor:default; }
.sp-clear-status { font:bold 23px/1.3 Arial; color:#c7bad2; }
.sp-clear-garage { display:flex; flex:1; min-height:0; gap:24px; }
.sp-clear-car { flex:0 0 410px; box-sizing:border-box; padding:22px; border:1px solid #654e72; border-radius:16px; background:#21172bf0; }
.sp-clear-car h2 { font:bold 30px/1.25 Arial; margin:20px 0; }
.sp-clear-car strong { font:bold 32px Arial; color:#f8d28c; }
.sp-clear-car p { font:27px/1.4 Arial; color:#dbcae4; }
.sp-clear-assembly { position:relative; height:230px; overflow:hidden; }
.sp-clear-parts { flex:1; min-width:0; overflow:auto; position:relative; padding-right:10px; }
.sp-clear-part { display:flex; align-items:center; flex-wrap:wrap; gap:18px; padding:22px; margin-bottom:16px; border:1px solid #6b5077; border-radius:14px; background:#25192ff5; }
.sp-clear-part.avail { border-color:#ddaf70; }
.sp-clear-part-info { flex:1; min-width:240px; }
.sp-clear-part p { font:26px/1.35 Arial; margin:0; color:#dbc9e3; }
.sp-clear-part > button { flex:0 0 270px; }
.sp-clear-options { flex:0 0 100%; padding-top:16px; border-top:1px solid #785d84; }
.sp-clear-options > p { color:#f4d38d; margin-bottom:16px; }
.sp-clear-option { padding:18px; margin:12px 0; background:#34243e; border-radius:12px; }
.sp-clear-option h3 { font:bold 28px Arial; margin:0 0 12px; }
.sp-clear-option span { display:inline-block; margin:0 18px 12px 0; font:24px Arial; }
.sp-clear-option button { display:block; width:100%; }
.sp-clear-options small { display:block; font:22px/1.3 Arial; color:#c6b5ce; }

.sp-clear-assembly .sp-asm { top:0!important; left:0!important; width:100%; height:100%; } .sp-clear-assembly .sp-asm-img { width:100%; height:100%; }

/* Workshop composition: the car is the centrepiece, actions stay in place. */
.sp-clear-car.sp-workshop { flex:0 0 730px; position:relative; display:flex; flex-direction:column; padding:32px; overflow:hidden; border:1px solid #866b94; border-radius:20px; background:linear-gradient(180deg,#171020b8 0%,#21132b26 38%,#100c19eb 80%),url("assets/speed/sp-garage.webp") center/cover; box-shadow:inset 0 0 80px #110a1b70; }
.sp-workshop-kicker { order:0; font:bold 23px/1.3 Arial; letter-spacing:3px; color:#e4b2ed; }
.sp-workshop h2 { order:1; font:bold 37px/1.15 Arial; margin:16px 0 0; max-width:640px; text-shadow:0 2px 10px #000; }
.sp-workshop .sp-clear-assembly { order:2; flex:1; min-height:280px; width:calc(100% + 48px); margin:0 -24px; overflow:visible; }
.sp-workshop .sp-asm-ghost { opacity:.6; filter:grayscale(1) brightness(.85); }
.sp-workshop .sp-asm-img { filter:drop-shadow(0 22px 12px #050307a0); }
.sp-workshop > strong { order:3; font:bold 34px Arial; letter-spacing:2px; color:#fff; }
.sp-workshop-progress { order:4; display:flex; gap:10px; margin:18px 0 8px; }
.sp-workshop-progress i { flex:1; height:12px; border-radius:4px; background:#63596f88; }
.sp-workshop-progress i.done { background:#d867f3; box-shadow:0 0 14px #c54bef88; }
.sp-workshop-progress i.available { background:#e7bd78; box-shadow:0 0 12px #efb96455; }
.sp-workshop > p { order:5; font:25px/1.4 Arial; color:#d8cadd; margin:16px 0 0; }
.sp-workshop > button { order:6; margin-top:18px; }
.sp-clear-garage .sp-clear-part { background:linear-gradient(120deg,#312139f5,#21182cf5); border-color:#66516f; box-shadow:inset 3px 0 #6b5376; }
.sp-clear-garage .sp-clear-part.avail { border-color:#af8958; box-shadow:inset 3px 0 #e5bc79; }
.sp-clear-garage .sp-clear-part.done { border-color:#506959; box-shadow:inset 3px 0 #83b696; }
.sp-clear-garage .sp-clear-part h2 { font-size:32px; }
.sp-clear-garage .sp-clear-part-info { flex:1 0 100%; min-width:0; }
.sp-clear-garage .sp-clear-part > button { flex:1 0 100%; min-height:70px; background:linear-gradient(110deg,#82348f,#602970); }
.sp-clear-garage .sp-clear-part.lock > button { background:#32263c; border-color:#80628a; }
.sp-clear-garage .sp-clear-part p { font-size:25px; }
.sp-workshop .sp-asm-img.sp-asm-ghost { opacity:.7; filter:grayscale(1) brightness(.9) drop-shadow(0 22px 12px #050307a0); }

/* Club task cards: reward and next action form a distinct, readable column. */
.sp-clear-task { position:relative; isolation:isolate; overflow:hidden; gap:30px; padding:28px; border-color:#755781; background:linear-gradient(115deg,#34213ef5,#201729f5); box-shadow:inset 4px 0 #a85dbb,0 10px 28px #10091633; }
.sp-clear-task::before { content:""; position:absolute; inset:0; z-index:-1; background:url("assets/speed/sp-tracks.png") right center/410px auto no-repeat; opacity:.045; pointer-events:none; }
.sp-task-badge { display:inline-block; margin:0 0 14px; padding:6px 12px; border:1px solid #886095; border-radius:6px; color:#e3b7ed; background:#58346366; font:bold 20px/1.2 Arial; letter-spacing:1.4px; }
.sp-clear-task h2 { font-size:36px; margin-bottom:12px; }
.sp-clear-task.ready { border-color:#c79a5e; background:linear-gradient(115deg,#3b2c35f8,#261c2df5); box-shadow:inset 4px 0 #f0c77c,0 10px 28px #10091633; }
.sp-clear-task.ready .sp-task-badge { color:#ffe0a0; border-color:#af874f; background:#76592c55; }
.sp-clear-task.ready .sp-clear-track i { background:linear-gradient(90deg,#c79452,#ffe1a0); }
.sp-clear-task.ready .sp-clear-primary { color:#2b1b29; border-color:#ffe4aa; background:linear-gradient(110deg,#f5d08c,#d9a55c); box-shadow:0 4px 18px #e7ae5730; }
.sp-clear-task-action { position:relative; flex-basis:300px; gap:14px; padding:22px; box-sizing:border-box; align-items:center; border:1px solid #83638d66; border-radius:12px; background:linear-gradient(160deg,#170f22a8,#33223d8c); }
.sp-task-reward-label { font:bold 19px/1.25 Arial; letter-spacing:1.1px; color:#c7b1d1; text-align:center; }
.sp-task-reward-coin { width:60px; height:60px; object-fit:contain; filter:drop-shadow(0 0 16px #ecc76a40); }
.sp-clear-task-action strong { text-align:center; font-size:30px; }
.sp-clear-task-action .sp-clear-primary { width:100%; min-height:78px; font-size:24px; }
.sp-clear-task-action .sp-clear-status { text-align:center; font-size:21px; }
.sp-clear-task.done { opacity:.85; border-color:#536d60; box-shadow:inset 4px 0 #80ad92; }
.sp-clear-task.done .sp-task-badge { color:#b3dfc0; border-color:#66856f; background:#35533e55; }
.sp-clear-task.done .sp-clear-track i { background:#82b394; }
.sp-clear-task.done .sp-task-reward-coin { filter:grayscale(.5); opacity:.65; }
.sp-clear-tabs button.active { background:linear-gradient(110deg,#853a92,#622970); box-shadow:inset 0 1px #ce8ddd66; }

/* Compact two-column tasks and a consistent, visible event scrollbar. */
.sp-event-scroll { scrollbar-width:auto; scrollbar-color:#c28ad3 #21182e; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.sp-event-scroll::-webkit-scrollbar { width:16px; }
.sp-event-scroll::-webkit-scrollbar-track { background:#21182e; border:1px solid #634c70; border-radius:12px; margin:4px 0; }
.sp-event-scroll::-webkit-scrollbar-thumb { background:linear-gradient(#dea5ec,#9152a4); border:3px solid #21182e; border-radius:12px; min-height:70px; }
.sp-event-scroll::-webkit-scrollbar-thumb:hover { background:#e6b2f2; }
.sp-task-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-content:start; padding-right:16px; }
.sp-task-grid .sp-clear-task { min-height:242px; margin:0; padding:20px; gap:16px; border-radius:14px; }
.sp-task-grid .sp-task-badge { font-size:16px; letter-spacing:.8px; padding:4px 8px; margin:0 0 8px; }
.sp-task-grid .sp-clear-task h2 { font-size:28px; margin:0 0 8px; }
.sp-task-grid .sp-clear-task p { font-size:23px; line-height:1.3; margin:0 0 10px; }
.sp-task-grid .sp-clear-progress { font-size:21px; }
.sp-task-grid .sp-clear-track { height:7px; margin:8px 0; }
.sp-task-grid .sp-clear-task small { font-size:20px; line-height:1.3; }
.sp-task-grid .sp-clear-task-action { flex:0 0 180px; padding:12px; gap:12px; border:0; border-left:1px solid #78558566; border-radius:0; background:transparent; }
.sp-task-grid .sp-task-reward-label { font-size:16px; }
.sp-task-grid .sp-task-reward-coin { display:none; }
.sp-task-grid .sp-clear-task-action strong { font-size:25px; }
.sp-task-grid .sp-clear-task-action .sp-clear-primary { min-height:70px; font-size:21px; padding:12px 8px; }
.sp-task-grid .sp-clear-task-action .sp-clear-status { font-size:18px; }
.sp-store .sp-clear-subtitle { margin-bottom:18px; }
.sp-store .sp-clear-tabs { margin-bottom:14px; }
.sp-store-note { margin-bottom:18px; padding:14px 18px; border:1px solid #685078; border-radius:10px; background:#25192fd9; color:#decbe5; font:23px/1.3 Arial; }
.sp-store-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:18px; overflow:auto; flex:1; min-height:0; padding-right:16px; }
.sp-store-item { display:flex; flex-direction:column; min-width:0; padding:20px; border:1px solid #7a5986; border-radius:16px; background:linear-gradient(135deg,#36223df5,#201728f5); box-shadow:inset 0 1px #d5a2e222; }
.sp-store-item-head { display:flex; align-items:center; gap:12px; min-height:100px; }
.sp-store-item-art { width:96px; height:96px; flex:0 0 96px; object-fit:contain; }
.sp-store-kind { color:#c8a4d4; font:bold 18px Arial; letter-spacing:1px; }
.sp-store-item h2 { font:bold 29px/1.2 Arial; margin:8px 0; }
.sp-store-delivery { font:24px/1.3 Arial; color:#f2d895; margin:12px 0 8px; }
.sp-store-limit { font:21px/1.3 Arial; color:#cfbdd8; margin:0 0 12px; }
.sp-store-stock { font:20px/1.3 Arial; color:#bba4c7; margin-bottom:14px; }
.sp-store-item-footer { margin-top:auto; display:flex; flex-direction:column; gap:12px; padding-top:14px; border-top:1px solid #76508166; }
.sp-store-price { font:bold 30px Arial; color:#ffe0a3; }
.sp-store-item-footer button { min-height:70px; font-size:23px; }
.sp-store-item-footer button:disabled { background:#352a40; border-color:#6d5579; color:#b8a6c4; opacity:1; }
.sp-store-empty { grid-column:1/-1; font:28px Arial; }

.sp-scroll-shell { position:relative; display:flex; flex:1; min-height:0; }
.sp-scroll-shell > .sp-event-scroll { width:100%; box-sizing:border-box; padding-right:34px; scrollbar-width:none; }
.sp-scroll-shell > .sp-event-scroll::-webkit-scrollbar { display:none; }
.sp-scroll-rail { position:absolute; top:2px; bottom:2px; right:2px; width:16px; background:#251b32; border:1px solid #735381; border-radius:12px; touch-action:none; cursor:pointer; }
.sp-scroll-thumb { position:absolute; left:2px; right:2px; min-height:52px; border-radius:10px; background:linear-gradient(180deg,#e8b5f5,#9854ac); box-shadow:0 0 12px #ba74d03b; }
.sp-scroll-rail:focus-visible { outline:2px solid #f7dbff; outline-offset:3px; }

/* Descriptions use the original event palette and keep the original screens. */
.sp-task-dialog-box { position:relative; width:820px; max-height:900px; overflow:auto; box-sizing:border-box; padding:40px; border:1px solid #b889c5; background:linear-gradient(135deg,#35203ff5,#1d1428fa); box-shadow:0 24px 100px #000a,inset 0 1px #eed3fb33; }
.sp-description-kicker { font:bold 20px Arial; letter-spacing:2px; color:#d7a2e6; margin-bottom:18px; }
.sp-task-dialog-box h2 { font:bold 38px/1.2 Arial; }
.sp-task-dialog-box p { font:27px/1.4 Arial; }
.sp-description-progress { color:#d6b6e4; }
.sp-task-dialog-box strong { display:block; padding:18px 20px; border:1px solid #a6804c; border-radius:10px; background:#59432d40; }
.sp-task-dialog-box button { min-height:76px; }
.sp-shopask .sp-btn-ok:disabled { opacity:.5; cursor:default; }
.sp-shopask .sp-modal-title { font-size:38px; }

/* Launch polish: retain the original chapter map and give conversation the whole viewport. */
.sp-context-wallet {position:absolute;left:70px;top:924px;width:345px;color:#ddd;font-family:Arial,sans-serif;display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;font-size:21px}
.sp-context-wallet strong {font-size:35px;color:#ffdf94;font-variant-numeric:tabular-nums}
.sp-context-wallet small {grid-column:1/-1;color:#a6a4b0;font-size:23px}
.sp-context-wallet + .sp-policy-summary {bottom:12px}
.sp-chapter-label {position:absolute;left:22px;top:20px;z-index:4;padding:10px 16px;border-radius:8px;background:#15141cdd;color:#fff;font-size:25px;letter-spacing:1px}
.sp-home-rules.sp-story-link {top:180px;height:40px;line-height:24px;font-size:25px;width:800px;background:transparent;border:0;padding:4px 0}
.sp-conversation {position:absolute;inset:220px 100px 58px;display:grid;grid-template-columns:38% 1fr;gap:70px;color:#fff}
.sp-conversation-portrait {position:relative;overflow:hidden;border-radius:30px;border:1px solid #9b6cbd66;background:radial-gradient(ellipse at 50% 70%,#9f35be77,transparent 65%),linear-gradient(155deg,#29202d,#18171e)}
.sp-conversation-portrait::after {content:"";position:absolute;inset:65% 0 0;background:linear-gradient(transparent,#17141b)}
.sp-conversation-portrait img {height:110%;width:100%;object-fit:contain;object-position:center top;padding-top:30px;box-sizing:border-box}
.sp-conversation-body {display:flex;flex-direction:column;align-items:flex-start;min-height:0;padding:35px 0}
.sp-conversation-eyebrow {font:700 22px Arial,sans-serif;letter-spacing:3px;color:#ce9edb}
.sp-conversation h1 {font-size:90px;line-height:1;margin:26px 0 30px;font-style:italic;letter-spacing:2px}
.sp-conversation-text {font:30px/1.48 Arial,sans-serif;white-space:pre-line;margin:0 0 28px;overflow:auto;flex:1;min-height:0;width:100%;color:#e4dfe8;scrollbar-color:#cb5de0 #2b2532;scrollbar-width:thin}
.sp-conversation-next {flex-shrink:0;min-width:450px;max-width:100%;padding:28px 42px;border:1px solid #edb0ff66;border-radius:15px;background:linear-gradient(110deg,#af00ff,#de00ef);color:white;font:700 36px inherit;cursor:pointer}
.sp-conversation-next {font-size:36px;font-family:inherit;font-weight:700}
.sp-story-screen:has(.sp-story-tabs button[data-view="quest"].active) .sp-story {background:linear-gradient(120deg,#211a2b,#16151dee)}
.spbn-launcher {width:300px!important;height:126px!important}
.spbn-launcher .spbn-art {top:0;left:0;width:274px;height:126px;object-fit:contain}
.spbn-close {position:absolute;right:0;top:0;width:38px;height:38px;padding:0;border:1px solid #ffffff55;border-radius:50%;background:#191720e8;color:#fff;font:28px/32px Arial;cursor:pointer;z-index:2}
.sp-race-hud,.sp-race-effect,.sp-inspect {position:fixed;z-index:9000;pointer-events:none;color:#fff;font-family:Arial,sans-serif;box-sizing:border-box}
.sp-race-hud {right:3vw;top:4vh;width:clamp(210px,26vw,380px);padding:20px 22px;border:1px solid #c7a9ed55;border-radius:16px;background:linear-gradient(130deg,#241633ed,#151720eb);box-shadow:0 10px 40px #0005}
.sp-race-top {display:flex;justify-content:space-between;gap:12px;font-size:11px;letter-spacing:1.4px;font-weight:bold;color:#d4b3ec}
.sp-race-top time {font-size:16px;letter-spacing:1px;color:#fff;font-variant-numeric:tabular-nums}
.sp-race-value {font-size:clamp(30px,4vw,56px);font-weight:800;font-style:italic;letter-spacing:-2px;margin-top:14px;font-variant-numeric:tabular-nums}
.sp-race-caption {font-size:10px;letter-spacing:2px;color:#aca2b6;margin:3px 0 18px}
.sp-race-progress {height:4px;border-radius:4px;background:#ffffff18;overflow:hidden}
.sp-race-progress i {display:block;height:100%;background:linear-gradient(90deg,#bb55ff,#f2c37c);transition:width .3s}
.sp-race-combo {font-size:12px;font-weight:bold;color:#f0cf95;margin-top:14px;letter-spacing:.5px}
.sp-race-hud small {display:block;font-size:10px;color:#b2a9ba;margin-top:10px;line-height:1.5}
.sp-race-effect {left:50%;top:24%;transform:translateX(-50%) skew(-6deg);padding:15px 36px;border-left:3px solid #edbb75;background:linear-gradient(90deg,#24132af2,#34203ae6);font-size:clamp(24px,4vw,58px);font-weight:900;letter-spacing:3px;border-radius:8px}
.sp-inspect {bottom:12vh;left:50%;transform:translateX(-50%);width:340px;max-width:80vw;padding:22px 26px;background:#1e1628ed;border:1px solid #cda0e066;border-radius:14px;overflow:hidden}
.sp-inspect b,.sp-inspect span {display:block}.sp-inspect b{font-size:13px;letter-spacing:1.4px;color:#e6c4f0;margin-bottom:10px}.sp-inspect span{font-size:16px}
.sp-inspect i {position:absolute;bottom:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#ac51fa,#e9bb7b);transform-origin:left;transition:transform .1s}
/* Keep coin proportions and optical alignment in prices/rewards. */
.sp-task img[src*="sp-coin"],.sp-it img[src*="sp-coin"],.sp-shopask img[src*="sp-coin"] {object-fit:contain;flex-shrink:0;aspect-ratio:1}
@media(max-height:500px){.sp-race-hud{padding:13px 16px;top:3vh}.sp-race-value{margin-top:8px}.sp-race-caption{margin-bottom:10px}.sp-race-combo{margin-top:10px}}

.sp-conversation-text {font-size:38px;line-height:1.42}
.sp-context-wallet + .sp-policy-summary {top:1020px;bottom:auto;height:44px;padding:2px 12px;font-size:14px}
.sp-conversation-snapshot .sp-story-portrait {position:absolute;inset:0;margin:0;height:100%;background:transparent}
.sp-conversation-snapshot .sp-story-portrait img {inset:0;width:100%;height:100%;object-fit:contain;padding:20px}

.spbn-close {width:64px;height:64px;font-size:38px;line-height:58px;right:-20px}
.sp-conversation-text::-webkit-scrollbar {width:6px}
.sp-conversation-text::-webkit-scrollbar-thumb {background:#bc64d1;border-radius:5px}
.sp-policy-with-loc .sp-context-wallet {top:177px;left:46px;width:416px;display:flex;gap:14px;font-size:17px}
.sp-policy-with-loc .sp-context-wallet strong {font-size:24px}
.sp-policy-with-loc .sp-context-wallet small {font-size:17px}

.sp-lobby-rules {top:178px;font-size:23px;line-height:26px;max-height:52px;width:1370px}

/* Legacy Android CEF: explicit geometry for chapter masks, no inset shorthand. */
.sp-tile::before,.sp-tile::after {left:0;top:0;right:0;bottom:0;width:100%;height:100%;box-sizing:border-box;border-radius:18px}
/* kui-tap uses ::before for a centered hit target. Here it is the visible mask. */
.sp-tile.kui-tap::before {transform:none}
.sp-tcirc::after {left:0;top:0;right:0;bottom:0;width:100%;height:100%;box-sizing:border-box}
.sp-ready-dot {position:absolute;right:17px;top:17px;width:19px;height:19px;border:3px solid #fff3;border-radius:50%;background:#ff4259;box-shadow:0 0 18px #ff425977;z-index:4}
.spbn-launcher {height:154px!important}
.spbn-close {width:36px;height:36px;right:0;top:2px;font-size:27px;line-height:30px}
.spbn-close::before {content:"";position:absolute;left:-10px;right:-10px;top:-10px;bottom:-10px}
.spbn-deadline {position:absolute;left:8px;top:122px;width:266px;height:28px;border-radius:5px;background:#1a1529e8;color:#f1dcad;text-align:center;font:bold 14px/28px Arial,sans-serif;letter-spacing:.5px;pointer-events:none}
.sp-race-hud {border:0;box-shadow:none;border-radius:6px;padding:10px 14px;background:linear-gradient(90deg,#16121ce8,#16121c9c);width:300px;max-width:40vw}
.sp-race-hud.is-race {left:auto;right:3vw;top:4vh;width:260px}
.sp-race-hud.is-drift {left:3vw;right:auto;top:4vh;width:360px;max-width:55vw;border-left:3px solid #d97cf2}
.sp-race-top {font-size:10px;letter-spacing:1px;align-items:center}
.sp-race-top time {font-size:14px}.sp-race-hud small {font-size:10px;margin-top:6px;line-height:1.4}
.sp-race-points {display:block;font-size:20px;margin-top:6px;letter-spacing:1px}
.sp-drift-line {display:flex;align-items:baseline;gap:8px;margin-top:7px}.sp-drift-line>strong {font-size:30px;font-style:italic;font-variant-numeric:tabular-nums}.sp-drift-line>span{font-size:9px;color:#b9a7c5}
.sp-drift-combo {margin-left:auto;font-size:12px;color:#eecf90}.sp-race-conditions {display:flex;gap:16px;margin-top:6px;font-size:10px;color:#9b8fa8}.sp-race-conditions .done{color:#9fdfbd}
.sp-market {position:absolute;left:480px;right:46px;top:200px;bottom:32px;display:flex;flex-direction:column;gap:20px;min-width:0;color:#fff}
.sp-market-head {display:flex;align-items:center;justify-content:space-between;gap:20px}.sp-market-tabs {display:flex;gap:14px}
.sp-market-tabs button {height:80px;min-width:205px;padding:0 26px;border:3px solid #44444f;border-radius:14px;background:#212228;color:#fff;font:700 34px 'Halvar Engschrift',Arial,sans-serif;cursor:pointer}
.sp-market-tabs button.active {background:linear-gradient(110deg,#a400ff,#e300ed);border-color:transparent;box-shadow:0 5px 30px #ad00ff22}
.sp-market-time {text-align:right;font-family:Arial,sans-serif;min-width:225px}.sp-market-time span{display:block;color:#b4acbe;font-size:15px;letter-spacing:1px}.sp-market-time strong{display:block;margin-top:8px;font-size:28px;font-variant-numeric:tabular-nums}
.sp-market-subtitle {display:flex;justify-content:space-between;align-items:center;gap:20px;font:20px/1.4 Arial,sans-serif;color:#c8bfce}.sp-market-subtitle p{margin:0}
.sp-market-warehouse {flex-shrink:0;border:1px solid #aa73bf;border-radius:9px;padding:12px 18px;background:#251d30;color:#e6c1f1;font:700 18px Arial,sans-serif;cursor:pointer}
.sp-market-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:min-content;gap:24px;min-height:0;overflow-y:auto;overflow-x:hidden;padding:3px 18px 20px 0;scrollbar-width:thin;scrollbar-color:#b95fdb #292630}
.sp-market-grid::-webkit-scrollbar {width:9px}.sp-market-grid::-webkit-scrollbar-track{background:#292630;border-radius:9px}.sp-market-grid::-webkit-scrollbar-thumb{background:linear-gradient(#d17bf0,#8544b5);border-radius:9px}
.sp-market-card {position:relative;display:flex;flex-direction:column;min-width:0;height:564px;border:3px solid #49434f;border-radius:17px;padding:24px 20px 18px;overflow:hidden;text-align:left;cursor:pointer;color:#fff;background:radial-gradient(ellipse at 50% 30%,#65447355,transparent 70%),linear-gradient(145deg,#29252f,#1c1c23);font-family:'Halvar Engschrift',Arial,sans-serif}
.sp-market-card:hover {border-color:#c783e5}.sp-market-card.sold{filter:saturate(.45);opacity:.68}
.sp-market-tag {font:700 14px Arial,sans-serif;letter-spacing:1px;color:#d4b8e2;min-height:18px}
.sp-market-art {height:225px;min-height:225px;display:flex;justify-content:center;align-items:center;margin:8px 0}.sp-market-art img{max-width:100%;height:100%;object-fit:contain}
.sp-market-card h2 {font-size:34px;line-height:1.08;margin:5px 0 12px;font-weight:700;min-height:37px}
.sp-market-copy {font:17px/1.4 Arial,sans-serif;color:#bcb3c5;margin:0;flex:1;overflow:auto}
.sp-market-card-foot {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;border-top:1px solid #ffffff17;padding-top:15px}.sp-market-card-foot strong{display:flex;align-items:center;gap:9px;font-size:32px;color:#ffe2a5}.sp-market-card-foot img{width:30px;height:30px;object-fit:contain}.sp-market-limit{font:700 13px Arial,sans-serif;color:#d4b8e2}
.sp-market-unlock {margin-top:8px;font:13px Arial,sans-serif;color:#a69caf}.sp-market-odds{grid-column:span 2;padding:35px;background:#201b27;border:1px solid #685272;border-radius:17px;font:23px/1.5 Arial,sans-serif}.sp-market-odds h2{font:700 38px 'Halvar Engschrift',Arial,sans-serif;margin:0 0 30px}.sp-market-odds>div{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #ffffff14}.sp-market-odds b{color:#e4c089}.sp-market-odds p{font-size:19px;color:#b9adbf;margin-top:26px}
.sp-shopask .sp-good-description {max-height:110px;overflow:auto;line-height:1.3}

/* Item names and prices must remain readable on a landscape phone. */
.sp-market-card {height:620px}
.sp-market-tag {font-size:18px;min-height:22px}
.sp-market-card h2 {font-size:40px;min-height:43px}
.sp-market-copy {font-size:24px;line-height:1.3}
.sp-market-card-foot strong {font-size:42px}
.sp-market-card-foot img {width:36px;height:36px}
.sp-market-limit,.sp-market-unlock {font-size:18px}
.sp-market-odds {font-size:28px}
.sp-market-odds p {font-size:24px}
.sp-market-time span {font-size:18px}
.sp-market-subtitle {font-size:24px}
.sp-market-warehouse {font-size:22px}
.sp-race-effect {top:20vh;padding:6px 14px;font-size:20px;letter-spacing:1px;background:#211b28c9;border-radius:5px}

/* Commerce: clear phone-sized labels and a dedicated Akina entry. */
.sp-policy-summary,.sp-context-wallet + .sp-policy-summary,.sp-policy-with-loc .sp-policy-summary {top:auto;bottom:14px;height:58px;padding:8px 14px;font-size:25px;line-height:36px;white-space:nowrap;text-align:center}
.sp-context-wallet {top:920px;gap:7px;font-size:25px}.sp-context-wallet small{font-size:25px;color:#d6c9dc}
.sp-timer .sp-timer-v {left:10px;width:253px;font-size:33px;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}
.sp-token-pack {background:radial-gradient(ellipse at 50% 30%,#b278374d,transparent 65%),linear-gradient(145deg,#382943,#1b1825)}
.sp-token-art img {filter:drop-shadow(0 14px 25px #e7a82c44);transform:rotate(-12deg);max-width:230px}
.sp-boost-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.sp-boost-card {height:315px;padding:26px 28px 20px}
.sp-boost-art {position:absolute;right:28px;top:20px;height:auto;min-height:0;margin:0;color:#f2d597;font-size:52px;font-style:italic}
.sp-boost-card h2 {font-size:38px;margin:28px 0 14px;max-width:82%}
.sp-boost-card .sp-market-copy {font-size:24px;line-height:1.3}
.sp-boost-card .sp-market-card-foot {margin-top:12px;padding-top:10px}
.sp-case-entry {display:grid;grid-template-columns:43% 1fr;align-items:center;min-height:620px;border:1px solid #7e5a91;border-radius:22px;background:radial-gradient(ellipse at 25% 50%,#834bab55,transparent 60%),#201a29;padding:36px;box-sizing:border-box}
.sp-case-entry-art img {width:100%;object-fit:contain;filter:drop-shadow(0 25px 45px #0007)}
.sp-case-entry-body h1 {font-size:64px;line-height:1.05;margin:25px 0}.sp-case-entry-body p{font:28px/1.45 Arial,sans-serif;color:#e9deef}.sp-case-entry-body .sp-case-entry-note{font-size:24px;color:#baadca}.sp-case-entry-body button{width:100%;margin:20px 0}.sp-case-entry-body small{display:block;font:21px Arial;color:#b7a7c5}
.sp-games-grid {position:absolute;left:480px;right:46px;top:231px;bottom:32px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:24px}
.sp-game-choice {position:relative;overflow:hidden;border:2px solid #62506e;border-radius:20px;background:#19171f;color:white}
.sp-game-choice>img {position:absolute;right:0;top:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.sp-game-choice-body {position:relative;height:100%;box-sizing:border-box;padding:30px 34px;display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(90deg,#17121cea,#17121c33)}
.sp-game-choice-body>span {font:20px Arial;color:#d7b4e9;letter-spacing:1px}.sp-game-choice h2{font-size:47px;line-height:1.1;margin:18px 0 12px}.sp-game-choice p{font:25px/1.35 Arial;max-width:540px;margin:0 0 20px}.sp-game-choice button{margin-top:auto;min-height:65px;font-size:29px;padding:15px 30px}.sp-akina-choice{border-color:#d5aa65}.sp-akina-choice .sp-clear-primary{background:linear-gradient(110deg,#9f661c,#d9ae63);border-color:#ffe5ab55}

.sp-token-art{position:relative}.sp-token-art img{position:relative;z-index:3}.sp-token-art img.sp-pack-extra{position:absolute;height:82%;z-index:2;left:calc(50% - 85px);top:10px;transform:translate(25px,-10px) rotate(8deg)}.sp-token-art img.sp-pack-third{z-index:1;transform:translate(50px,-20px) rotate(22deg)}

.sp-commerce-modal {left:460px;top:190px;width:1000px;height:700px}
.sp-commerce-modal .sp-modal-tracks {width:100%;height:100%;opacity:.35}
.sp-commerce-modal .sp-sq {left:auto!important;right:26px}
.sp-commerce-modal .sp-modal-car {left:65px;top:190px;width:220px;height:180px}
.sp-commerce-modal .sp-modal-name {left:330px;top:175px;width:600px;font-size:44px;justify-content:flex-start;text-align:left}
.sp-commerce-modal .sp-pill.sp-shopask-p {left:330px;top:280px;width:300px;font-size:40px}
.sp-commerce-modal .sp-good-description {left:40px;top:390px;width:920px;margin:0;max-height:140px;font-size:29px;line-height:1.4;text-align:left}
.sp-commerce-modal .sp-btn-ok,.sp-commerce-modal .sp-btn-no {top:550px;width:450px}
.sp-commerce-modal .sp-btn-no {left:516px}

.sp-commerce-symbol{position:absolute;left:65px;top:190px;width:220px;height:180px;display:flex;align-items:center;justify-content:center;color:#f2d597;font-size:90px;font-style:italic;background:radial-gradient(#714b7744,transparent 70%)}

/* Real-device pass, 2400x1080: unified money rows and stable price baselines. */
.sp-context-wallet {left:46px;top:918px;width:416px;height:84px;box-sizing:border-box;padding:7px 15px;display:flex;flex-direction:column;justify-content:center;gap:5px;background:#211e29e8;border:1px solid #75648266;border-radius:11px;font-family:Arial,sans-serif}
.sp-wallet-row {display:flex;align-items:center;gap:10px;width:100%;min-height:30px;min-width:0;box-sizing:border-box}
.sp-wallet-row>img {display:block;width:28px;height:28px;object-fit:contain;flex:0 0 28px}
.sp-wallet-label {font-size:20px;line-height:28px;font-weight:700;color:#c7becf;white-space:nowrap}
.sp-context-wallet .sp-wallet-value {margin-left:auto;text-align:right;font:700 27px/30px Arial,sans-serif;color:#f4da9b;white-space:nowrap;font-variant-numeric:tabular-nums}
.sp-policy-with-loc .sp-context-wallet {top:175px;left:46px;width:416px;height:42px;flex-direction:row;gap:12px;padding:4px 8px}
.sp-policy-with-loc .sp-wallet-row {width:auto;flex:1;gap:5px;min-height:25px}.sp-policy-with-loc .sp-wallet-row>img{width:22px;height:22px;flex-basis:22px}.sp-policy-with-loc .sp-wallet-label{display:none}.sp-policy-with-loc .sp-wallet-value{font-size:22px;line-height:28px;margin-left:0}
.sp-market-card-foot {min-height:66px;box-sizing:border-box;flex-shrink:0}
.sp-market-card-foot strong {font-family:Arial,sans-serif;font-size:32px;font-weight:700;line-height:40px;white-space:nowrap;gap:10px;font-variant-numeric:tabular-nums}
.sp-market-card-foot img {display:block;width:34px;height:34px;flex:0 0 34px;object-fit:contain}
.sp-market-limit {text-align:right;line-height:1.25;max-width:48%;font-size:17px}
.sp-market-unlock {display:block;min-height:27px;line-height:27px;white-space:nowrap;font-size:17px;margin-top:5px}
.sp-boost-card .sp-market-card-foot {min-height:56px}
.sp-market-empty{grid-column:1/-1;min-height:400px;padding:60px;box-sizing:border-box;border:1px solid #65516f;border-radius:18px;background:#201a29;color:#fff}.sp-market-empty h2{font-size:46px}.sp-market-empty p{font:28px/1.5 Arial}.sp-market-empty button{margin-top:30px}

.sp-shopask .sp-btn-ok.sp-insufficient:disabled {opacity:1;background:#4b354e;border:1px solid #af7aaf;color:#fff;}
.sp-insufficient .sp-confirm-t {font-size:30px;}
.sp-insufficient .sp-confirm-s {color:#f4d4ed;}

/* Shared wallet beside close, independent of adaptive content centering. */
.sp-screen .sp-context-wallet {left:auto!important;right:140px;top:42px;width:620px;height:100px;display:flex;flex-direction:row;gap:18px;padding:0;background:none;border:0;box-sizing:border-box}
.sp-context-wallet .sp-wallet-row {position:relative;display:grid;grid-template-columns:48px 1fr;grid-template-rows:28px 48px;column-gap:14px;width:50%;height:92px;padding:10px 17px;border:1px solid #66556e;border-radius:14px;background:#241e2be8;box-sizing:border-box}
.sp-context-wallet .sp-wallet-row img {width:46px;height:46px;grid-row:1/3;align-self:center}
.sp-context-wallet .sp-wallet-label {display:block!important;font:18px/24px Arial;color:#c8b9d2}
.sp-context-wallet .sp-wallet-value {font:700 38px/44px Arial;text-align:left;color:#ffe3a2;white-space:nowrap;margin:0}
.sp-collection-grid .sp-market-card {height:350px;padding:16px 20px;display:grid;grid-template-columns:42% 1fr;grid-template-rows:26px 58px 92px 68px 24px;column-gap:16px;row-gap:8px}
.sp-collection-grid .sp-market-tag {grid-column:1/3}
.sp-collection-grid .sp-market-art {grid-column:1;grid-row:2/4;height:158px;min-height:0;margin:0}
.sp-collection-grid h2 {grid-column:2;grid-row:2;font-size:30px;min-height:0;margin:0}
.sp-collection-grid .sp-market-copy {grid-column:2;grid-row:3;font-size:20px;line-height:1.3}
.sp-collection-grid .sp-market-card-foot {grid-column:1/3;grid-row:4;min-height:0}
.sp-collection-grid .sp-market-unlock {grid-column:1/3;grid-row:5;font-size:17px;min-height:0}
.sp-case-entry {min-height:0;grid-template-columns:36% 1fr;padding:24px 34px;background:radial-gradient(ellipse at 20% 65%,#8a45be66,transparent 55%),linear-gradient(125deg,#302238,#17151e)}
.sp-case-entry-art img {width:135%;max-width:none;margin-left:-17%;filter:drop-shadow(0 20px 30px #0009)}
.sp-case-entry-body h1 {font-size:58px;margin:12px 0 22px}
.sp-case-entry-body p {font-size:27px;line-height:1.35}
.sp-case-entry-body button {background:linear-gradient(100deg,#b000ff,#db23e5);font-size:32px}

.sp-screen .sp-context-wallet {right:210px;width:660px;}
.sp-context-wallet .sp-wallet-value {font-size:42px;}

/* Equal-height wallet cards; all grid rows fit inside padding. */
.sp-screen .sp-context-wallet {top:33px;right:180px;width:930px;height:118px;gap:14px;align-items:stretch;justify-content:flex-start}
.sp-context-wallet .sp-wallet-row {flex:1 1 0;width:0;min-width:0;height:118px;grid-template-columns:52px minmax(0,1fr);grid-template-rows:24px 50px;gap:0 14px;align-content:center;padding:16px;border:2px solid #66556e;border-radius:12px}
.sp-context-wallet .sp-wallet-row img {width:52px;height:52px;grid-column:1;grid-row:1/3;justify-self:center;align-self:center;margin:0}
.sp-context-wallet .sp-wallet-label {grid-column:2;grid-row:1;font:20px/24px Arial;align-self:center}
.sp-context-wallet .sp-wallet-value {grid-column:2;grid-row:2;font:700 42px/50px Arial;margin:0;text-align:left;align-self:center}
.sp-context-wallet .sp-wallet-value.sp-wallet-long {font-size:32px}
.sp-wallet-topup {flex:0 0 190px;height:118px;border:1px solid #e5b75e;border-radius:12px;background:linear-gradient(130deg,#79511f,#523b25);color:#ffe5b0;font:700 25px/30px Arial;padding:12px;cursor:pointer}

.sp-screen .sp-context-wallet {width:800px;align-items:center}
.sp-wallet-topup {flex:0 0 68px;width:68px;height:68px;border:2px solid #80728b;border-radius:50%;background:#302837;color:#f5ebff;font:400 48px/60px Arial;padding:0;text-align:center}
.sp-race-hud.is-akina {width:auto;max-width:45vw;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-shadow:0 2px 4px #000,0 0 8px #000}
.sp-akina-status {display:flex;align-items:center;gap:16px;font:600 15px/22px Arial}
.sp-akina-status time {font-size:19px;font-variant-numeric:tabular-nums;color:#f5d7a0}
.sp-race-hud.is-akina small {margin:2px 0 0;font-size:12px;color:#f5d7a0}

/* Wallet top-up is part of the paid-currency card. */
.sp-screen .sp-context-wallet {width:800px}
.sp-context-wallet .sp-wallet-paid {padding-right:82px}
.sp-context-wallet .sp-wallet-topup {position:absolute;right:14px;top:50%;transform:translateY(-50%);width:54px;height:54px;min-width:0;font-size:36px;line-height:46px;border-radius:50%;background:#43364f;border-color:#9b83ad}
.sp-case-entry {flex:1;min-height:0;grid-template-rows:minmax(0,1fr);overflow:hidden;padding:25px 32px;align-items:center}
.sp-case-entry-art {height:100%;min-height:0;display:flex;align-items:center;justify-content:center}
.sp-case-entry-art img {width:100%;height:100%;max-height:100%;margin:0;object-fit:contain}
.sp-case-entry-body {min-height:0;align-self:center}
.sp-case-entry-body h1 {font-size:54px;margin:12px 0 18px}
.sp-case-entry-body p {font-size:25px;line-height:1.3;margin:14px 0}
.sp-case-entry-body .sp-case-entry-note {font-size:22px}
.sp-case-entry-body button {margin:16px 0 12px;min-height:70px}
.sp-case-entry-body small {font-size:20px}
/* Three permanent offers, no second row of unrelated goods. */
.sp-collection-grid .sp-market-card {height:560px;display:flex;flex-direction:column;padding:22px}
.sp-collection-grid .sp-market-art {height:255px;min-height:255px;margin:10px 0}
.sp-collection-grid h2 {font-size:36px;min-height:46px}
.sp-collection-grid .sp-market-copy {font-size:23px;flex:1}
.sp-collection-grid .sp-market-card-foot {min-height:66px}
