:root {
    --bg: #020711;
    --panel: rgba(4, 12, 26, 0.95);
    --field-bg: rgba(2, 9, 21, 0.94);

    --stroke: rgba(47, 156, 255, 0.26);
    --stroke-strong: rgba(92, 190, 255, 0.64);

    --text: #f5f9ff;
    --muted: #9daec7;
    --muted-2: #697b97;

    --accent: #2f9cff;
    --accent-light: #78c4ff;
    --accent-dark: #126de0;

    --radius-lg: 18px;

    --panel-shadow:
        inset 0 0 0 1px rgba(124, 193, 255, 0.018),
        0 18px 52px rgba(0, 0, 0, 0.38),
        0 0 22px rgba(47, 156, 255, 0.07);

    --shadow-neon:
        0 0 12px rgba(47, 156, 255, 0.22),
        0 0 26px rgba(47, 156, 255, 0.10),
        inset 0 0 14px rgba(47, 156, 255, 0.06);

    /* Primary button */
    --button-primary-bg: #2f9cff;
    --button-primary-bg-hover: #56b5ff;
    --button-primary-text: #ffffff;
    --button-primary-shadow:
        0 0 12px rgba(47, 156, 255, 0.34),
        0 0 26px rgba(47, 156, 255, 0.12);

    /* Secondary button */
    --button-secondary-bg: rgba(4, 18, 36, 0.78);
    --button-secondary-bg-hover: rgba(15, 55, 96, 0.82);
    --button-secondary-border: 1px solid rgba(92, 190, 255, 0.48);
    --button-secondary-text: #9bd6ff;
    --button-secondary-text-hover: #ffffff;
    --button-secondary-shadow:
        0 0 10px rgba(47, 156, 255, 0.12),
        inset 0 0 12px rgba(47, 156, 255, 0.025);
    --button-secondary-shadow-hover:
        0 0 14px rgba(47, 156, 255, 0.28),
        0 0 26px rgba(47, 156, 255, 0.12),
        inset 0 0 12px rgba(47, 156, 255, 0.04);
    --button-secondary-shadow-active:
        0 0 8px rgba(47, 156, 255, 0.18),
        inset 0 0 16px rgba(47, 156, 255, 0.08);
}

.main-container,
.main-container *,
.main-container *::before,
.main-container *::after,
.exchange-modal,
.exchange-modal *,
.exchange-modal *::before,
.exchange-modal *::after {
    box-sizing: border-box;
}

/* =========================
   Layout
========================= */

.main-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main-container::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% -10%, rgba(47, 156, 255, 0.18), transparent 42%),
        radial-gradient(circle at 88% 28%, rgba(18, 86, 196, 0.10), transparent 34%);
}

.filters-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* =========================
   Shared panels
========================= */

.balance-card,
section.panel.controls-panel,
.exchange-bar,
section.panel.cards-panel {
    border: 1px solid var(--stroke);
    background:
        linear-gradient(180deg, rgba(65, 151, 255, 0.025), rgba(255, 255, 255, 0.005)),
        var(--panel);
    box-shadow: var(--panel-shadow);
    color: var(--text);
}

/* =========================
   Balance
========================= */

.balance-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: center;
    width: 250px;
    min-height: 108px;
    height: fit-content;
    padding: 12px 15px 13px;
    border-radius: var(--radius-lg);
}

.balance-card__art {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1.25;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(47, 156, 255, 0.30), transparent 42%),
        radial-gradient(circle at 20% 20%, rgba(0, 195, 255, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(19, 29, 72, 0.75), rgba(12, 15, 31, 0.2));
}

.balance-card__art::before,
.balance-card__art::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(67, 170, 255, 0.82);
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(47, 156, 255, 0.9));
}

.balance-card__art::before {
    width: 92px;
    height: 92px;
}

.balance-card__art::after {
    width: 110px;
    height: 110px;
    border-top-color: var(--accent-light);
    border-right-color: transparent;
    transform: rotate(-20deg);
}

.balance-card .big-coin {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 5px solid #8bc3ff;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.38), transparent 16%),
        radial-gradient(circle, #42a9ff 0 35%, #1767dc 53%, #09286f 76%);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.28),
        0 0 24px rgba(47, 156, 255, 0.72);
    color: #e6eeff;
    font-size: 48px;
    font-weight: 950;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}

.balance-card .eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.balance-card .balance-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.balance-card__divider {
    display: none;
}

.balance-card__text {
    margin: 0;
    color: #b7c7d9;
    font-size: 13px;
    line-height: 1.4;
}

/* =========================
   Coins
========================= */

.small-coin {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(198, 225, 255, 0.88);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.88), transparent 18%),
        linear-gradient(180deg, #48b9ff, #2174e8 58%, #0d368e);
    box-shadow:
        0 0 9px rgba(47, 156, 255, 0.68),
        inset 0 0 7px rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.small-coin--tiny {
    width: 17px;
    height: 17px;
    border-width: 1.5px;
    font-size: 10px;
}

/* =========================
   Filters
========================= */

section.panel.controls-panel {
    --cp-text: #f6f7ff;
    --cp-muted: #a3b5c9;
    --cp-field-text: #d2e6f8;

    min-width: 0;
    height: fit-content;
    padding: 12px 10px 9px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

section.controls-panel .section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-bottom: 10px;
}

section.controls-panel .section-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin: 0;
    color: var(--cp-text);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

section.controls-panel .section-title__icon {
    flex: 0 0 auto;
    color: var(--accent-light);
    font-size: 23px;
    line-height: 1;
    text-shadow: 0 0 12px rgba(47, 156, 255, 0.52);
}

section.controls-panel .receive-summary--top {
    display: grid;
    flex: 0 0 auto;
    justify-items: center;
    gap: 2px;
    color: var(--cp-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}

section.controls-panel .receive-summary--top strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--cp-text);
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

section.controls-panel .filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    align-items: center;
    min-width: 0;
    margin: 0;
}

section.controls-panel .filters-extra {
    display: contents;
}

section.controls-panel .filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
}

section.controls-panel .select-field,
section.controls-panel .tune-button,
section.controls-panel .filter-toggle {
    position: relative;
    min-width: 0;
    height: 36px;
    border-radius: 10px;
}

section.controls-panel .select-field--name {
    grid-column: span 2;
}

section.controls-panel .filter-actions .tune-button {
    flex: 0 0 36px;
    width: 36px;
    grid-column: auto;
}

section.controls-panel .filter-toggle {
    display: none;
}

section.controls-panel .select-field:not(.select-field--select2) {
    border: 1px solid rgba(47, 156, 255, 0.46);
    background:
        linear-gradient(180deg, rgba(47, 156, 255, 0.045), rgba(47, 156, 255, 0.008)),
        var(--field-bg);
    box-shadow:
        0 0 10px rgba(47, 156, 255, 0.12),
        inset 0 0 12px rgba(47, 156, 255, 0.025);
    overflow: hidden;
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

section.controls-panel .select-field:not(.select-field--select2):hover {
    border-color: rgba(91, 191, 255, 0.70);
    box-shadow:
        0 0 12px rgba(47, 156, 255, 0.18),
        inset 0 0 12px rgba(47, 156, 255, 0.035);
}

section.controls-panel .select-field:not(.select-field--select2):focus-within {
    border-color: rgba(104, 202, 255, 0.92);
    box-shadow:
        0 0 0 1px rgba(92, 190, 255, 0.10),
        0 0 16px rgba(47, 156, 255, 0.23),
        inset 0 0 12px rgba(47, 156, 255, 0.04);
}

section.controls-panel .select-field input {
    width: 100%;
    height: 100%;
    padding: 0 13px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--cp-field-text);
    caret-color: var(--accent-light);
    appearance: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

section.controls-panel .select-field input::placeholder {
    color: #9fb6ce;
    opacity: 1;
}

section.controls-panel .select-field input[type="search"]::-webkit-search-cancel-button {
    appearance: none;
}

section.controls-panel .select-field.is-hidden {
    display: none !important;
}

section.controls-panel .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Select2 wrapper */

section.controls-panel .select-field--select2 {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

section.controls-panel .select-field--select2 > .select2-container {
    width: 100% !important;
    height: 36px;
}

/*
 * До инициализации Select2 нативный select не должен принимать касания.
 * Это устраняет системный iOS picker, который раньше мог открыться во время
 * ожидания классификаторов. Размер ячейки при этом сохраняет wrapper.
 */
section.controls-panel
    .select-field--select2
    > select.js-anicard-select:not(.select2-hidden-accessible) {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Нейтральная заглушка на несколько кадров до готовности Select2. */
section.controls-panel
    .filters:not(.is-select2-ready):not(.is-select2-fallback)
    .select-field--select2::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(47, 156, 255, 0.46);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(47, 156, 255, 0.045), rgba(47, 156, 255, 0.008)),
        var(--field-bg);
    box-shadow:
        0 0 10px rgba(47, 156, 255, 0.12),
        inset 0 0 12px rgba(47, 156, 255, 0.025);
    pointer-events: none;
}

/* Если CDN Select2 недоступен, возвращаем рабочий нативный select. */
section.controls-panel
    .filters.is-select2-fallback
    .select-field--select2
    > select.js-anicard-select:not(.select2-hidden-accessible) {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 36px !important;
    padding: 0 34px 0 12px !important;
    border: 1px solid rgba(47, 156, 255, 0.46) !important;
    border-radius: 10px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    appearance: auto;
    background: var(--field-bg);
    color: var(--cp-field-text);
}

section.controls-panel .select-field--select2 > select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
    touch-action: none !important;
}

/* =========================
   Button system
========================= */

/*
 * Primary follows .button-primary:
 * solid fill, no border, bold text, glow and scale on hover.
 */
.exchange-button,
.exchange-modal__button--primary,
.cards-pagination__button.is-active {
    border: 0;
    color: var(--button-primary-text);
    background-color: var(--button-primary-bg);
    box-shadow: var(--button-primary-shadow);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease,
        opacity 0.2s ease;
}

.exchange-button:hover:not(:disabled),
.exchange-modal__button--primary:hover:not(:disabled),
.cards-pagination__button.is-active:hover:not(:disabled) {
    background-color: var(--button-primary-bg-hover);
    transform: scale(0.98);
}

/*
 * Secondary follows .button-secondary:
 * translucent surface, neon border, blur and stronger hover glow.
 */
section.controls-panel .tune-button,
section.controls-panel .filter-toggle,
.cards-pagination__button:not(.is-active),
.exchange-modal__button--ghost,
.exchange-modal__close,
.card-owner-button {
    color: var(--button-secondary-text);
    background-color: var(--button-secondary-bg);
    border: var(--button-secondary-border);
    box-shadow: var(--button-secondary-shadow);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

section.controls-panel .tune-button:hover:not(:disabled),
section.controls-panel .filter-toggle:hover:not(:disabled),
section.controls-panel .filters.is-mobile-expanded .filter-toggle,
.cards-pagination__button:not(.is-active):hover:not(:disabled),
.exchange-modal__button--ghost:hover:not(:disabled),
.exchange-modal__close:hover:not(:disabled),
.card-owner-button:hover:not(:disabled) {
    color: var(--button-secondary-text-hover);
    background-color: var(--button-secondary-bg-hover);
    border-color: rgba(120, 208, 255, 0.72);
    box-shadow: var(--button-secondary-shadow-hover);
}

section.controls-panel .tune-button:active:not(:disabled),
section.controls-panel .filter-toggle:active:not(:disabled),
.cards-pagination__button:not(.is-active):active:not(:disabled),
.exchange-modal__button--ghost:active:not(:disabled),
.exchange-modal__close:active:not(:disabled),
.card-owner-button:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow: var(--button-secondary-shadow-active);
}

section.controls-panel .tune-button:focus-visible,
section.controls-panel .filter-toggle:focus-visible,
.cards-pagination__button:focus-visible,
.exchange-modal__button:focus-visible,
.exchange-modal__close:focus-visible,
.card-owner-button:focus-visible {
    outline: 2px solid rgba(120, 208, 255, 0.86);
    outline-offset: 2px;
}

section.controls-panel .filter-toggle {
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: 8px;
    line-height: 0;
}

section.controls-panel .filter-toggle__icon {
    position: relative;
    display: block;
    width: 20px;
    height: 18px;
    pointer-events: none;
}

section.controls-panel .filter-toggle__icon i {
    position: absolute;
    left: 1px;
    right: 1px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 7px rgba(120, 196, 255, 0.28);
}

section.controls-panel .filter-toggle__icon i::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: rgba(4, 18, 36, 0.96);
    transform: translateY(-50%);
}

section.controls-panel .filter-toggle__icon i:nth-child(1) {
    top: 2px;
}

section.controls-panel .filter-toggle__icon i:nth-child(1)::after {
    left: 3px;
}

section.controls-panel .filter-toggle__icon i:nth-child(2) {
    top: 8px;
}

section.controls-panel .filter-toggle__icon i:nth-child(2)::after {
    right: 3px;
}

section.controls-panel .filter-toggle__icon i:nth-child(3) {
    top: 14px;
}

section.controls-panel .filter-toggle__icon i:nth-child(3)::after {
    left: 7px;
}

section.controls-panel .tune-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: span 1;
    padding: 0;
    border-radius: 8px;
    line-height: 0;
}

section.controls-panel .tune-button span {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    overflow: visible;
    color: transparent;
    font-size: 0;
    line-height: 0;
    pointer-events: none;
}

/* Иконка поиска рисуется CSS, поэтому не зависит от метрик шрифта. */
section.controls-panel .tune-button:not(.tune-button--reset) span::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 3px;
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: var(--button-secondary-text);
    box-shadow: 0 0 7px rgba(120, 196, 255, 0.28);
}

section.controls-panel .tune-button:not(.tune-button--reset) span::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 13px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: var(--button-secondary-text);
    box-shadow: 0 0 7px rgba(120, 196, 255, 0.28);
    transform: rotate(45deg);
    transform-origin: left center;
}

/* Иконка сброса также рисуется CSS и всегда находится по центру. */
section.controls-panel .tune-button--reset span::before,
section.controls-panel .tune-button--reset span::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 10px;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--button-secondary-text);
    box-shadow: 0 0 7px rgba(120, 196, 255, 0.28);
}

section.controls-panel .tune-button--reset span::before {
    transform: rotate(45deg);
}

section.controls-panel .tune-button--reset span::after {
    transform: rotate(-45deg);
}

section.controls-panel .tune-button:hover:not(:disabled)
    span::before,
section.controls-panel .tune-button:hover:not(:disabled)
    span::after {
    color: var(--button-secondary-text-hover);
    background-color: var(--button-secondary-text-hover);
}

button:disabled,
section.controls-panel .filters.is-loading .tune-button {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

/* =========================
   Exchange bar
========================= */

.exchange-bar {
    z-index: 30;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) minmax(168px, 1.25fr);
    gap: 10px;
    align-items: center;
    padding: 12px 10px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
}

.exchange-bar__cards {
    position: relative;
    width: 70px;
    height: 50px;
}

.exchange-bar__cards span {
    position: absolute;
    left: 11px;
    top: 5px;
    display: block;
    width: 34px;
    height: 46px;
    border: 1px solid rgba(47, 156, 255, 0.72);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(47, 156, 255, 0.55), rgba(18, 84, 178, 0.82));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0 12px rgba(47, 156, 255, 0.26);
}

.exchange-bar__cards span:nth-child(1) {
    transform: rotate(-16deg) translateX(-12px);
}

.exchange-bar__cards span:nth-child(2) {
    transform: rotate(-2deg);
}

.exchange-bar__cards span:nth-child(3) {
    transform: rotate(16deg) translateX(12px);
}

.exchange-bar__cards span.is-filled {
    border-color: rgba(112, 205, 255, 0.90);
    box-shadow: 0 0 14px rgba(82, 183, 255, 0.32);
}

.exchange-bar__info {
    min-width: 0;
}

.exchange-bar__info p {
    margin: 0;
    color: #aab8c9;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
}

.exchange-bar__info .receive-summary {
    margin-top: 2px;
    color: var(--text);
    font-size: 14px;
}

.exchange-bar__info .receive-summary strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    font-weight: 950;
}

.exchange-bar__info small {
    display: block;
    margin-top: 6px;
    color: #c5d3e0;
    font-size: 11px;
    line-height: 1.2;
}

.exchange-button {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 55px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    isolation: isolate;
    appearance: none;
    -webkit-appearance: none;
    background-clip: padding-box;
    text-align: center;
    text-transform: uppercase;

    /*
     * Стабильный композитный слой для iOS/Telegram WebView.
     * Не анимируем transform и box-shadow при смене disabled:
     * Safari иначе может оставлять прямоугольный растр старого состояния
     * за пределами скруглённых углов.
     */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.exchange-button span {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.exchange-button small {
    margin-top: 3px;
    color: rgba(225, 239, 252, 0.82);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.exchange-button:not(:disabled) {
    box-shadow:
        inset 0 0 0 1px rgba(120, 208, 255, 0.16),
        inset 0 0 16px rgba(47, 156, 255, 0.10);
}

.exchange-button:hover:not(:disabled),
.exchange-button:active:not(:disabled) {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.exchange-button:disabled {
    color: rgba(182, 209, 233, 0.62);
    background-color: rgba(22, 65, 112, 0.74);
    box-shadow:
        inset 0 0 0 1px rgba(120, 208, 255, 0.08),
        inset 0 0 18px rgba(47, 156, 255, 0.035);
    opacity: 1;
}

/*
 * На сенсорных WebView дополнительно жёстко обрезаем слой по радиусу.
 * Это устраняет остаточные квадратные углы при частом включении/выключении.
 */
@media (hover: none) and (pointer: coarse) {
    .exchange-button {
        contain: paint;
        -webkit-mask-image: -webkit-radial-gradient(white, black);
    }
}

/* =========================
   Cards panel
========================= */

section.panel.cards-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

section.panel.cards-panel .cards-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(117, 160, 198, 0.14);
}

section.panel.cards-panel .check-line {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

section.panel.cards-panel .check-line input,
.card-check__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

section.panel.cards-panel .fake-checkbox,
.card-check__box {
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(183, 206, 230, 0.48);
    background: rgba(2, 9, 21, 0.82);
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.02),
        0 4px 12px rgba(0, 0, 0, 0.22);
    /* Выбор и снятие выбора отображаются без промежуточных кадров. */
    transition: none;
}

section.panel.cards-panel .fake-checkbox {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 5px;
}

.card-check__box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

section.panel.cards-panel .check-line input:checked + .fake-checkbox,
.card-check__input:checked + .card-check__box {
    border-color: rgba(47, 156, 255, 0.95);
    background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
    box-shadow:
        0 0 14px rgba(47, 156, 255, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.27);
}

section.panel.cards-panel .check-line input:checked + .fake-checkbox::after,
.card-check__input:checked + .card-check__box::after {
    content: "✓";
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    transform: translateY(-1px);
}

section.panel.cards-panel .check-line input:focus-visible + .fake-checkbox,
.card-check__input:focus-visible + .card-check__box {
    outline: 2px solid rgba(98, 194, 255, 0.86);
    outline-offset: 2px;
}

section.panel.cards-panel .found-count {
    margin: 0;
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

section.panel.cards-panel .found-count span {
    color: var(--text);
    font-weight: 950;
}

section.panel.cards-panel > .cards-grid-break {
    padding: 9px 7px 10px;
}

/* =========================
   Cards
========================= */

.cards-grid-break {
    display: grid;
    align-items: stretch;
}

.game-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 148px;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(47, 156, 255, 0.72);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(8, 36, 76, 0.88), rgba(7, 10, 18, 0.98));
    box-shadow: var(--shadow-neon);
    overflow: hidden;
    isolation: isolate;
    /* Никаких переходов при выборе, снятии выбора и hover. */
    transition: none;
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    padding: 1px;
    background:
        linear-gradient(
            145deg,
            rgba(108, 204, 255, 0.96),
            rgba(47, 156, 255, 0.52),
            rgba(47, 156, 255, 0.74)
        );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0.86;
    pointer-events: none;
}

/* Hover включаем только на устройствах с настоящим указателем.
 * На сенсорных WebView :hover может залипать после нажатия и выглядеть
 * как запоздалая подсветка выбранной или снятой с выбора карты.
 */
@media (hover: hover) and (pointer: fine) {
    .game-card:hover {
        transform: translateY(-2px);
        border-color: rgba(89, 186, 255, 0.86);
        box-shadow:
            0 0 22px rgba(47, 156, 255, 0.24),
            0 0 18px rgba(47, 156, 255, 0.38),
            inset 0 0 14px rgba(47, 156, 255, 0.18);
    }
}

.game-card.is-selected {
    transform: none;
    border-color: rgba(108, 204, 255, 0.96);
    box-shadow:
        0 0 22px rgba(47, 156, 255, 0.36),
        0 0 18px rgba(47, 156, 255, 0.38),
        inset 0 0 14px rgba(47, 156, 255, 0.18);
}

.card-check {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 6;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.game-card__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 148px;
    border-radius: inherit;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 18%, rgba(47, 156, 255, 0.16), transparent 28%),
        radial-gradient(circle at 80% 16%, rgba(47, 156, 255, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(5, 25, 53, 0.98), rgba(2, 8, 18, 0.98));
}

.game-card__image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 42%;
    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(6, 8, 15, 0.18) 34%,
            rgba(6, 8, 15, 0.72) 100%
        );
    pointer-events: none;
}

.game-card__image img {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 148px;
    object-fit: fill;
    object-position: center top;

    /*
     * Загруженное изображение больше никогда не гасится через opacity.
     * Отдельный GPU-слой и opacity-анимация могли временно пропадать
     * при быстром скролле в Safari/Telegram WebView на iPhone.
     */
    opacity: 1;
    visibility: visible;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform: none;
    -webkit-transform: none;
    will-change: auto;
    transition: none;
}

.game-card__image img.is-ready {
    opacity: 1;
    visibility: visible;
}

.game-card__image img.is-hidden {
    display: none;
}

/* После успешной загрузки полностью убираем анимированную заглушку. */
.game-card__image.is-image-ready .fallback-portrait {
    display: none;
}

.fallback-portrait {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.12), transparent 10%),
        linear-gradient(145deg, rgba(47, 156, 255, 0.22), rgba(47, 156, 255, 0.26) 55%, rgba(47, 156, 255, 0.18)),
        linear-gradient(180deg, rgba(4, 19, 42, 0.94), rgba(2, 8, 18, 0.98));
}

.fallback-portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 35%,
            rgba(255, 255, 255, 0.16) 50%,
            rgba(255, 255, 255, 0.05) 65%,
            transparent 100%
        );
    transform: translateX(-100%);
    animation: card-placeholder-shimmer 1.8s ease-in-out infinite;
}

.fallback-portrait::after {
    content: "ANICARD";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(2, 9, 21, 0.52);
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(47, 156, 255, 0.12);
    backdrop-filter: blur(3px);
}

.game-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 0;
    padding: 12px 8px 14px;
    pointer-events: none;
}

.card-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(2, 9, 21, 0.48);
    color: #d8e8f5;
    font-size: clamp(18px, 5.3vw, 24px);
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.card-price strong {
    color: #f6faff;
    letter-spacing: -0.02em;
}

.cards-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px 16px;
    color: var(--muted);
    text-align: center;
}

/* =========================
   Owner
========================= */

.card-owner-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

.card-owner-button.is-active {
    color: #ffffff;
    background-color: rgba(25, 97, 164, 0.92);
    box-shadow: var(--button-secondary-shadow-hover);
}

.card-owner-popover {
    position: absolute;
    top: 36px;
    right: 8px;
    z-index: 8;
    min-width: 130px;
    max-width: calc(100% - 16px);
    padding: 8px 10px;
    border: 1px solid rgba(47, 156, 255, 0.42);
    border-radius: 10px;
    background: rgba(2, 9, 21, 0.96);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.38),
        0 0 16px rgba(47, 156, 255, 0.18);
    color: #f6faff;
    text-align: right;
    backdrop-filter: blur(8px);
}

.card-owner-popover[hidden] {
    display: none;
}

.card-owner-popover::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 8px;
    width: 9px;
    height: 9px;
    border-left: 1px solid rgba(47, 156, 255, 0.42);
    border-top: 1px solid rgba(47, 156, 255, 0.42);
    background: rgba(2, 9, 21, 0.96);
    transform: rotate(45deg);
}

.card-owner-popover__label {
    display: block;
    margin-bottom: 2px;
    color: rgba(246, 247, 255, 0.62);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-owner-popover__name {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================
   Loader
========================= */

.cards-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 80px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.cards-loader[hidden] {
    display: none;
}

.cards-loader__spinner,
.exchange-modal__spinner {
    border: 2px solid rgba(114, 185, 255, 0.18);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    filter: drop-shadow(0 0 5px rgba(47, 156, 255, 0.60));
    animation: cards-loader-spin 0.75s linear infinite;
}

.cards-loader__spinner {
    width: 22px;
    height: 22px;
}

.exchange-modal__spinner {
    width: 20px;
    height: 20px;
}

/* =========================
   Pagination
========================= */

.cards-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 10px 14px;
    border-top: 1px solid rgba(117, 160, 198, 0.14);
}

.cards-pagination[hidden] {
    display: none;
}

.cards-pagination__button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.cards-pagination__button.is-active {
    cursor: default;
}

.cards-pagination__button:disabled {
    opacity: 0.42;
}

.cards-pagination__button--arrow {
    min-width: 44px;
    font-size: 22px;
    line-height: 1;
}

.cards-pagination__dots {
    min-width: 24px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

/* =========================
   Modal
========================= */

.exchange-modal[hidden] {
    display: none;
}

.exchange-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.exchange-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 14, 0.76);
    backdrop-filter: blur(8px);
}

.exchange-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 22px;
    border: 1px solid rgba(47, 156, 255, 0.34);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(47, 156, 255, 0.10), transparent 42%),
        rgba(3, 11, 24, 0.97);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.58),
        0 0 12px rgba(47, 156, 255, 0.22),
        0 0 32px rgba(47, 156, 255, 0.09);
    color: #ffffff;
}

.exchange-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

.exchange-modal__title {
    margin: 0 34px 12px 0;
    font-size: 20px;
    font-weight: 800;
}

.exchange-modal__message {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

.exchange-modal__cards,
.exchange-modal__loader {
    border: 1px solid rgba(47, 156, 255, 0.12);
    background: rgba(47, 156, 255, 0.055);
}

.exchange-modal__cards {
    margin: 0 0 16px;
    padding: 14px;
    border-radius: 16px;
}

.exchange-modal__cards p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.exchange-modal__cards ul {
    max-height: 150px;
    margin: 0;
    padding-left: 18px;
    overflow: auto;
}

.exchange-modal__cards li {
    margin: 4px 0;
}

.exchange-modal__total {
    margin: 0 0 18px;
    font-size: 16px;
}

.exchange-modal__actions {
    display: flex;
    gap: 10px;
}

.exchange-modal__button {
    flex: 1;
    min-height: 42px;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.exchange-modal__button--primary {
    border-radius: 6px;
}

.exchange-modal__loader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.exchange-modal__loader[hidden] {
    display: none;
}

.exchange-modal__error {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 70, 70, 0.28);
    border-radius: 14px;
    background: rgba(255, 70, 70, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.45;
}

.exchange-modal__error[hidden] {
    display: none;
}

.exchange-modal__error p {
    margin: 0 0 8px;
}

.exchange-modal__error p:last-child {
    margin-bottom: 0;
}

.exchange-modal__error ul {
    margin: 6px 0 10px;
    padding-left: 18px;
}

.exchange-modal.is-busy .exchange-modal__backdrop,
.exchange-modal.is-busy [data-exchange-modal-close] {
    pointer-events: none;
}

body.is-exchange-modal-open {
    overflow: hidden;
}

/* =========================
   Animations
========================= */

@keyframes card-placeholder-shimmer {
    from {
        transform: translateX(-120%);
    }

    to {
        transform: translateX(120%);
    }
}

@keyframes cards-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   Responsive
========================= */

@media (min-width: 701px) and (max-width: 1180px) {
    section.controls-panel .filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    section.controls-panel .select-field--name {
        grid-column: auto;
    }

    section.controls-panel .filter-actions {
        grid-column: 3;
        justify-content: flex-end;
    }
}

@media (max-width: 700px) {
    section.controls-panel .filters {
        grid-template-columns: minmax(0, 1fr) 38px auto;
        gap: 7px;
        align-items: start;
    }

    section.controls-panel .filters > .select-field:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    section.controls-panel .filter-toggle {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
    }

    section.controls-panel .filter-actions {
        grid-column: 3;
        grid-row: 1;
        gap: 7px;
    }

    section.controls-panel .filters-extra {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        min-width: 0;
        padding-top: 1px;
    }

    section.controls-panel .filters.is-mobile-expanded .filters-extra {
        display: grid;
    }

    section.controls-panel .filters-extra .select-field,
    section.controls-panel .filters-extra .select-field--name,
    section.controls-panel .filters-extra .select-field--rating {
        grid-column: auto;
    }
    .filters-container {
        flex-direction: column;
        gap: 8px;
    }

    .balance-card {
        grid-template-columns: 93px 80px 1px minmax(0, 1fr);
        gap: 9px;
        width: 100%;
        max-width: 640px;
        min-height: 72px;
        padding: 8px 10px 9px;
        border-radius: 12px;
    }

    .balance-card__art {
        border-radius: 11px;
    }

    .balance-card__art::before,
    .balance-card__art::after {
        border-width: 1.5px;
        filter: drop-shadow(0 0 7px rgba(47, 156, 255, 0.9));
    }

    .balance-card__art::before {
        width: 61px;
        height: 61px;
    }

    .balance-card__art::after {
        width: 73px;
        height: 73px;
    }

    .balance-card .big-coin {
        width: 55px;
        height: 55px;
        border-width: 3px;
        font-size: 32px;
        box-shadow:
            inset 0 0 13px rgba(255, 255, 255, 0.28),
            0 0 16px rgba(47, 156, 255, 0.72);
    }

    .balance-card .eyebrow {
        font-size: 8px;
        line-height: 1.15;
    }

    .balance-card .balance-value {
        gap: 5px;
        margin-top: 1px;
        font-size: 17px;
    }

    .balance-card .small-coin {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
        border-width: 1.5px;
        font-size: 10px;
    }

    .balance-card__divider {
        display: block;
        width: 1px;
        height: 44px;
        background:
            linear-gradient(180deg, transparent, rgba(143, 180, 210, 0.36), transparent);
    }

    .balance-card__text {
        font-size: 12px;
        line-height: 1.3;
    }

    .cards-grid-break {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .card-price {
        font-size: clamp(12px, 2vw, 22px);
    }

    .card-owner-popover {
        top: 8px;
        left: 8px;
        right: 36px;
        min-width: 0;
        max-width: none;
        padding: 5px 7px;
        border-radius: 8px;
        text-align: left;
    }

    .card-owner-button {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .card-owner-popover::before {
        top: 7px;
        right: -5px;
        border-left: 0;
        border-right: 1px solid rgba(47, 156, 255, 0.42);
        transform: rotate(45deg);
    }

    .card-owner-popover__label {
        display: none;
    }

    .card-owner-popover__name {
        font-size: 10px;
        line-height: 1.1;
    }
}

@media (min-width: 700px) {
    .cards-grid-break {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 960px) {
    section.panel.controls-panel,
    section.panel.cards-panel {
        grid-column: 2;
    }

    section.panel.cards-panel .cards-panel__bar {
        padding-inline: 12px;
    }

    section.panel.cards-panel > .cards-grid-break {
        padding: 11px 10px 12px;
    }

    .cards-grid-break {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
    }

    .card-price {
        font-size: 22px;
    }
}

@media (max-width: 500px) {
    section.controls-panel .select-field--select2 > .select2-container {
        height: 34px;
    }

    .exchange-bar {
        grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr);
    }

    .exchange-bar__cards {
        display: none;
    }

    .exchange-bar__info p {
        font-size: 10px;
    }

    .exchange-bar__info .receive-summary {
        font-size: 12px;
    }

    .exchange-bar__info small {
        font-size: 10px;
    }

    .exchange-button span {
        font-size: 12px;
    }

    .cards-pagination {
        gap: 6px;
        padding: 10px 8px 12px;
    }

    .cards-pagination__button {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }

    .cards-pagination__button--arrow {
        min-width: 38px;
        font-size: 20px;
    }
}

@media (max-width: 450px) {
    .balance-card__text {
        font-size: 10px;
    }
}

@media (max-width: 374px) {
    section.panel.controls-panel {
        padding: 11px 9px 9px;
    }

    section.controls-panel .section-head {
        gap: 8px;
    }

    section.controls-panel .section-title {
        font-size: 18px;
    }

    section.controls-panel .receive-summary--top {
        font-size: 10px;
    }

    section.controls-panel .receive-summary--top strong {
        font-size: 17px;
    }

    section.controls-panel .select-field,
    section.controls-panel .select-field--select2 > .select2-container,
    section.controls-panel .tune-button,
    section.controls-panel .filter-toggle {
        height: 34px;
    }

    section.controls-panel .filters {
        grid-template-columns: minmax(0, 1fr) 34px auto;
    }

    section.controls-panel .filter-actions .tune-button,
    section.controls-panel .filter-toggle {
        width: 34px;
        min-width: 34px;
        flex-basis: 34px;
    }

    section.panel.cards-panel .cards-panel__bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    section.panel.cards-panel .found-count {
        padding-left: 29px;
    }

    .cards-grid-break {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-card {
        border-radius: 10px;
    }

    .card-price {
        padding: 3px 7px;
        font-size: 18px;
    }
}

/* Минимум композитных эффектов на сенсорных WebView. */
@media (hover: none) and (pointer: coarse) {
    .game-card,
    .game-card.is-selected,
    .card-check__box,
    section.panel.cards-panel .fake-checkbox {
        transition: none !important;
    }

    .game-card__image img {
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
        will-change: auto !important;
    }

    .game-card__image.is-image-ready .fallback-portrait,
    .game-card__image.is-image-ready .fallback-portrait::before {
        display: none !important;
        animation: none !important;
    }

    .card-check__box,
    .card-price {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 500px) {
    section.controls-panel .tune-button span {
        width: 20px;
        height: 20px;
    }

    section.controls-panel .tune-button:not(.tune-button--reset) span::before {
        left: 3px;
        top: 2px;
    }

    section.controls-panel .tune-button:not(.tune-button--reset) span::after {
        left: 12px;
        top: 12px;
    }

    section.controls-panel .tune-button--reset span::before,
    section.controls-panel .tune-button--reset span::after {
        left: 2px;
        top: 9px;
    }
}
.currency-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: -3px;
    object-fit: contain;
}
.currency-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bid-value .currency-icon,
.balance-card .currency-icon,
.auction-top-stat .currency-icon,
.auction-head-desktop__stat .currency-icon,
.currency-icon {
    width: 18px;
    height: 18px;
}

.currency-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    white-space: nowrap;
}

.currency-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: -3px;
    background: url("/assets/tradecoin.png") center center / contain no-repeat;
}