﻿@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --bg: #111217;
    --panel: #181922;
    --panel-soft: #20212b;
    --panel-hover: #282a36;
    --border: #2d2f3a;
    --text: #ffffff;
    --muted: #aeb2c0;
    --muted-2: #747987;
    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.13);
    --danger: #ff5d6c;
}

html,
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Nunito", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-y: hidden;
}

button {
    font-family: inherit;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    background: rgba(23, 24, 35, 0.94);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.logo {
    margin-bottom: 28px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.menu-item {
    position: relative;
    width: 100%;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition:
            color 180ms ease,
            background-color 180ms ease,
            border-color 180ms ease,
            transform 180ms ease,
            box-shadow 180ms ease;
}

.menu-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-soft), transparent);
    opacity: 0;
    transition: opacity 180ms ease;
}

.menu-item > * {
    position: relative;
    z-index: 1;
}

.menu-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 18px;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.menu-badge-ext {
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.28), rgba(95, 62, 169, 0.26));
    border-color: rgba(124, 92, 255, 0.18);
    color: #d9ceff;
}

.menu-badge-new {
    background: linear-gradient(180deg, rgba(19, 185, 129, 0.24), rgba(15, 159, 110, 0.22));
    border-color: rgba(19, 185, 129, 0.18);
    color: #d4f7e8;
}

.menu-item:hover {
    color: var(--text);
    background: var(--panel-soft);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item.active {
    color: var(--text);
    background: var(--panel-hover);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.menu-item.active::before {
    opacity: 1;
}

.menu-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    color: currentColor;
    transition: transform 180ms ease;
}

.menu-item:hover .menu-icon {
    transform: scale(1.08);
}

.sidebar-spacer {
    flex: 1;
}

.sidebar-bottom-actions {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item-compact {
    justify-content: flex-start;
}

.support-link {
    position: relative;
    width: 100%;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition:
            color 180ms ease,
            background-color 180ms ease,
            border-color 180ms ease,
            transform 180ms ease,
            box-shadow 180ms ease;
}

.support-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-soft), transparent);
    opacity: 0;
    transition: opacity 180ms ease;
}

.support-link > * {
    position: relative;
    z-index: 1;
}

.support-link:hover {
    color: #fc8722;
    background: var(--panel-soft);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.support-link:hover::before {
    opacity: 1;
}

.support-link:hover .support-link-icon {
    transform: scale(1.08);
}

.support-link-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    color: currentColor;
    transition: transform 180ms ease;
}

.profile-wrapper {
    position: relative;
}

.profile-card {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel-soft);
    color: var(--text);
    cursor: pointer;
    transition:
            background-color 180ms ease,
            border-color 180ms ease,
            transform 180ms ease,
            box-shadow 180ms ease;
}

.profile-card:hover,
.profile-card.active {
    background: var(--panel-hover);
    border-color: rgba(139, 92, 246, 0.42);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.profile-avatar,
.profile-avatar-placeholder {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.profile-avatar {
    object-fit: cover;
}

.profile-avatar-placeholder {
    background: linear-gradient(135deg, #4b4f68, #2f3246);
}

.profile-info {
    min-width: 0;
    flex: 1;
    text-align: left;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-bottom: 5px;
}

.profile-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.profile-name {
    max-width: 130px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-partner-badge {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.16));
}

.profile-supporter-badge {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(252, 135, 34, 0.18));
}

.profile-name-row img + img,
.mini-profile-name-row img + img,
.transfer-result-name-row img + img,
.transfer-toast-user-row img + img {
    margin-left: 4px;
}

.profile-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.coin-icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.profile-arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
    transition:
            transform 180ms ease,
            color 180ms ease;
}

.profile-arrow-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.profile-card.active .profile-arrow {
    color: var(--text);
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #202231;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.98);
    transition:
            opacity 160ms ease,
            transform 160ms ease,
            border-color 160ms ease;
    z-index: 20;
}

.profile-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    border-color: rgba(139, 92, 246, 0.35);
}

.profile-dropdown button {
    width: 100%;
    padding: 11px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    transition:
            background-color 160ms ease,
            color 160ms ease,
            transform 160ms ease;
}

.profile-dropdown button:hover {
    background: rgba(255, 93, 108, 0.12);
    color: var(--danger);
    transform: translateX(2px);
}

.profile-dropdown .report-button:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #ffffff;
}

.content {
    flex: 1;
    min-width: 0;
    height: 100vh;
    overflow: hidden;
}

.game-area {
    width: 100%;
    height: 100%;
    padding: 20px 32px 32px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
}

.game-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    padding: 36px;
    border: none;
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
    animation: pageFade 180ms ease;
}

.color-game {
    animation: pageFade 180ms ease;
}

.game-placeholder h1 {
    margin: 0 0 10px;
    font-size: 32px;
    letter-spacing: -0.05em;
}

.game-placeholder p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: min(460px, 92vw);
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(23, 24, 35, 0.92);
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    animation: pageFade 220ms ease;
}

.login-card h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -0.05em;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 13px 18px;
    border-radius: 12px;
    background: #6441a5;
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
    transition:
            background-color 180ms ease,
            transform 180ms ease,
            box-shadow 180ms ease;
}

.login-button:hover {
    background: #7550bd;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(100, 65, 165, 0.3);
}

.logout-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: currentColor;
    transition: transform 160ms ease;
}

.logout-button:hover .dropdown-icon {
    transform: translateX(2px);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 5, 10, 0.62);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 100;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.messagebox {
    width: min(420px, 92vw);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #1b1d2a;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    transform: translateY(10px) scale(0.96);
    opacity: 0;
    transition:
            transform 180ms ease,
            opacity 180ms ease,
            border-color 180ms ease;
}

.transfer-modal-backdrop .messagebox {
    width: min(980px, calc(100vw - 48px));
    padding: 18px 24px 14px;
}

.transfer-modal-backdrop .messagebox {
    min-height: min(470px, calc(100vh - 48px));
    max-height: min(92vh, 920px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.transfer-modal-backdrop .messagebox::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.transfer-modal-backdrop .messagebox {
    scrollbar-width: none;
}

.transfer-modal-backdrop .transfer-game {
    width: 100%;
    min-height: auto;
    animation: none;
}

.transfer-modal-backdrop #transfer-modal-body {
    width: 100%;
}

.transfer-modal-backdrop .transfer-card {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.transfer-modal-backdrop .transfer-header {
    margin-bottom: 16px;
    padding-top: 0;
}

.transfer-modal-backdrop .transfer-inline-fields {
    grid-template-columns: 1fr 1fr;
}

.report-messagebox {
    width: min(560px, 92vw);
}

.report-messagebox .messagebox-icon {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
}

.report-field {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.report-type-field {
    margin-top: 12px;
}

.report-select-wrap {
    position: relative;
}

.report-select-trigger {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: #232636;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
            border-color 160ms ease,
            background-color 160ms ease,
            transform 160ms ease;
}

.report-select-trigger svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
    transition: transform 160ms ease;
}

.report-select-trigger.open {
    border-color: rgba(139, 92, 246, 0.34);
    background: rgba(139, 92, 246, 0.06);
}

.report-select-trigger.open svg {
    transform: rotate(180deg);
}

.report-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(12, 13, 19, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    pointer-events: none;
    visibility: hidden;
    transition:
            opacity 180ms ease,
            transform 180ms ease,
            visibility 180ms ease;
    z-index: 5;
}

.report-select-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.report-select-option {
    width: 100%;
    padding: 11px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition:
            background-color 160ms ease,
            color 160ms ease;
}

.report-select-option:hover,
.report-select-option.active {
    background: rgba(139, 92, 246, 0.12);
    color: #ffffff;
}

.report-textarea {
    min-height: 140px;
    resize: none;
    line-height: 1.5;
    padding-top: 14px;
    padding-bottom: 14px;
}

.report-status {
    min-height: 20px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

.report-status.neutral {
    color: var(--muted);
}

.report-status.error {
    color: var(--danger);
}

.report-status.win {
    color: #22c55e;
}

.modal-backdrop.open .messagebox {
    transform: translateY(0) scale(1);
    opacity: 1;
    border-color: rgba(139, 92, 246, 0.34);
}

.messagebox-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 93, 108, 0.12);
    color: var(--danger);
}

.messagebox-icon svg {
    width: 25px;
    height: 25px;
}

.messagebox-content h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.messagebox-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.messagebox-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.messagebox-button {
    padding: 11px 15px;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition:
            background-color 160ms ease,
            transform 160ms ease,
            opacity 160ms ease;
}

.messagebox-button:hover {
    transform: translateY(-1px);
}

.messagebox-button.secondary {
    background: #2a2d3f;
}

.messagebox-button.secondary:hover {
    background: #34374d;
}

.messagebox-button.danger {
    background: var(--danger);
}

.messagebox-button.danger:hover {
    background: #ff7280;
}

.messagebox-button.accent {
    background: linear-gradient(180deg, #8b5cf6, #6d4ac7);
}

.messagebox-button.accent:hover {
    background: linear-gradient(180deg, #9b73f7, #7852d2);
}

.messagebox-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.profile-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    transition: color 180ms ease, transform 180ms ease;
}

.balance-delta {
    min-width: 0;
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    font-size: 12px;
    font-weight: 800;
    transition:
            opacity 140ms ease,
            transform 140ms ease;
    will-change: opacity, transform;
}

.balance-delta.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.balance-delta.fade-out {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
}

.balance-delta.up {
    color: #3ddc84;
}

.balance-delta.down {
    color: #ff5d6c;
}

.profile-balance.balance-up {
    color: #3ddc84;
    animation: balancePulseUp 220ms ease;
}

.profile-balance.balance-down {
    color: #ff5d6c;
    animation: balancePulseDown 220ms ease;
}

.color-game {
    width: min(100%, 1040px);
    min-height: 100%;
    display: grid;
    gap: 64px;
    align-content: start;
    padding-top: 10px;
}

.color-game-header {
    width: 100%;
}

.color-game-header h1 {
    margin: 0 0 10px;
    font-size: 32px;
    letter-spacing: -0.05em;
    text-align: left;
    visibility: hidden;
}

.color-status {
    min-height: 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.color-status.win {
    color: #22c55e;
}

.color-status.lose {
    color: #ef4444;
}

.color-status.error {
    color: #ff5d6c;
}

.color-status.neutral {
    color: var(--muted);
}

.color-game-body {
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(260px, 320px);
    gap: 28px;
    align-items: center;
    justify-content: center;
}

.color-wheel-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-pointer {
    position: absolute;
    top: -10px;
    z-index: 10;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid #ffffff;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.color-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid #2a2c38;
    box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.28),
            inset 0 0 0 10px rgba(255, 255, 255, 0.03);
    transform: rotate(0deg);
    will-change: transform;
    overflow: hidden;
}

.color-wheel::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background:
            radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0 18%, transparent 19%),
            rgba(17, 18, 23, 0.02);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.03);
}

.color-wheel-center {
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #111217;
    border: 7px solid #2f3241;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    z-index: 5;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.color-controls {
    display: grid;
    gap: 18px;
    align-content: start;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.bet-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 15px;
    outline: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.bet-input::-webkit-outer-spin-button,
.bet-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bet-input-shell {
    display: grid;
    grid-template-columns: 1fr 34px;
    gap: 10px;
    align-items: stretch;
}

.bet-spinner {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
}

.bet-spinner-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-soft);
    color: var(--text);
    cursor: pointer;
    transition:
            transform 160ms ease,
            border-color 160ms ease,
            background-color 160ms ease;
}

.bet-spinner-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--panel-hover);
}

.bet-spinner-button:active {
    transform: translateY(0);
}

.bet-spinner-button:focus-visible,
.bet-input:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.55);
    outline-offset: 2px;
}

.bet-spinner-icon {
    width: 16px;
    height: 16px;
    color: currentColor;
    transform: rotate(180deg);
}

.bet-spinner-icon-up {
    transform: none;
}

.color-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.color-choice {
    padding: 12px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--text);
    cursor: pointer;
    transition:
            transform 160ms ease,
            border-color 160ms ease,
            background-color 160ms ease;
}

.color-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
}

.color-choice.active {
    background: var(--choice-color);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 800;
}

.color-choice[data-color="white"].active {
    color: #111217;
}

.page-fade-out {
    animation: pageFadeOut 140ms ease forwards !important;
    pointer-events: none;
}

.spin-button {
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    background: #6441a5;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition:
            transform 160ms ease,
            background-color 160ms ease,
            opacity 160ms ease;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #7550bd;
}

.spin-button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.roulette-game {
    width: min(100%, 1040px);
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    animation: pageFade 180ms ease;
}

.roulette-card {
    width: min(100%, 860px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 440px) minmax(280px, 360px);
    gap: 40px;
    align-items: center;
}

.roulette-drum-wrapper {
    position: relative;
    width: min(100%, 440px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.roulette-drum-assets {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    will-change: transform;
}

.drum-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.15s ease;
    object-fit: contain;
    pointer-events: none;
}

.base-cylinder {
    z-index: 1;
}

.roulette-bullet-layers {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.roulette-bullet-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: contain;
    transition: opacity 180ms ease;
    pointer-events: none;
    will-change: opacity;
}

.roulette-bullet-layer.visible {
    opacity: 1;
}

.roulette-bullet-layer.hidden {
    opacity: 0 !important;
}

.roulette-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 18px solid #ff4a4a;
    z-index: 3;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.24));
}

.roulette-controls {
    display: grid;
    gap: 18px;
    align-content: start;
}

.game-label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.game-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 15px;
    outline: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.game-input::-webkit-outer-spin-button,
.game-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.game-input:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.55);
    outline-offset: 2px;
}

.roulette-bullets {
    display: grid;
    gap: 10px;
}

.roulette-bullet-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.roulette-bullet-button {
    padding: 12px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
            transform 160ms ease,
            border-color 160ms ease,
            background-color 160ms ease;
}

.roulette-bullet-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--panel-hover);
}

.roulette-bullet-button.active {
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 800;
}

.game-button {
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    background: #6441a5;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition:
            transform 160ms ease,
            background-color 160ms ease,
            opacity 160ms ease;
}

.game-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #7550bd;
}

.game-button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.casino-game {
    width: min(100%, 1040px);
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pageFade 180ms ease;
}

.casino-card {
    width: min(100%, 760px);
    margin: 0 auto;
    display: grid;
    gap: 24px;
    justify-items: center;
}

.casino-reels {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.casino-reel-window {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
            linear-gradient(180deg, rgba(9, 10, 15, 0.98), rgba(18, 19, 27, 0.98));
    box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.03),
            0 18px 32px rgba(0, 0, 0, 0.26);
}

.casino-reel-track {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.casino-strip {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.casino-controls {
    width: 100%;
    display: grid;
    gap: 16px;
    justify-items: stretch;
}

.casino-status {
    min-height: 22px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.casino-status.win {
    color: #22c55e;
}

.casino-status.lose {
    color: #ef4444;
}

.casino-status.error {
    color: #ff5d6c;
}

.casino-status.neutral {
    color: var(--muted);
}

.roulette-result {
    min-height: 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.roulette-result.win {
    color: #22c55e;
}

.roulette-result.lose {
    color: #ef4444;
}

.roulette-result.error {
    color: #ff5d6c;
}

.roulette-result.neutral {
    color: var(--muted);
}

.crash-game {
    width: min(100%, 1040px);
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pageFade 180ms ease;
}

.crash-shell {
    width: min(100%, 920px);
    display: grid;
    gap: 22px;
}

.crash-hero {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.crash-eyebrow {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.crash-title {
    margin: 0;
    color: #f5f7ff;
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.crash-subtitle {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.crash-multiplier-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
            radial-gradient(circle at 72% 18%, rgba(132, 90, 255, 0.26), transparent 34%),
            radial-gradient(circle at 18% 86%, rgba(34, 197, 94, 0.13), transparent 36%),
            linear-gradient(180deg, rgba(16, 17, 24, 0.96), rgba(11, 12, 18, 0.98));
    box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.03),
            0 24px 44px rgba(0, 0, 0, 0.3);
}

.crash-bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
            linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
    animation: crashGridMove 5s linear infinite;
}

@keyframes crashGridMove {
    from { transform: translateY(0); }
    to { transform: translateY(38px); }
}

.crash-orbit {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.55;
    pointer-events: none;
}

.crash-orbit-one {
    width: 180px;
    height: 180px;
    right: -54px;
    top: -58px;
    background: rgba(132, 90, 255, 0.35);
    animation: crashFloatOne 4s ease-in-out infinite alternate;
}

.crash-orbit-two {
    width: 130px;
    height: 130px;
    left: -34px;
    bottom: -42px;
    background: rgba(34, 197, 94, 0.18);
    animation: crashFloatTwo 5s ease-in-out infinite alternate;
}

@keyframes crashFloatOne {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-22px, 18px, 0) scale(1.12); }
}

@keyframes crashFloatTwo {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(24px, -18px, 0) scale(1.16); }
}

.crash-graph {
    position: absolute;
    inset: 18px;
    pointer-events: none;
}

.crash-curve {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.crash-curve path {
    fill: none;
    stroke: rgba(132, 90, 255, 0.95);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 720;
    stroke-dashoffset: var(--curve-offset, 720);
    filter: drop-shadow(0 0 14px rgba(132, 90, 255, 0.55));
    transition: stroke-dashoffset 0.12s linear, stroke 0.2s ease;
}

.crash-rocket {
    position: absolute;
    left: var(--rocket-x, 2%);
    bottom: var(--rocket-y, 10%);
    z-index: 2;
    font-size: 30px;
    transform: translate(-50%, 50%) rotate(-22deg);
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.32));
    transition: left 0.12s linear, bottom 0.12s linear, transform 0.12s linear;
}

.crash-multiplier-content {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 10px;
    justify-items: start;
}

.crash-multiplier {
    color: #ffffff;
    font-size: clamp(56px, 7vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 750;
    text-shadow:
            0 0 18px rgba(132, 90, 255, 0.32),
            0 0 42px rgba(132, 90, 255, 0.16);
    transition: color 0.18s ease, text-shadow 0.18s ease, transform 0.12s ease;
}

.crash-multiplier.pulse {
    transform: scale(1.035);
}

.crash-multiplier-card.running .crash-multiplier {
    color: #ffffff;
}

.crash-multiplier-card.blue .crash-multiplier {
    color: #60a5fa;
    text-shadow: 0 0 22px rgba(96, 165, 250, 0.48);
}

.crash-multiplier-card.purple .crash-multiplier {
    color: #a78bfa;
    text-shadow: 0 0 22px rgba(167, 139, 250, 0.5);
}

.crash-multiplier-card.gold .crash-multiplier {
    color: #facc15;
    text-shadow: 0 0 24px rgba(250, 204, 21, 0.48);
}

.crash-multiplier-card.crashed {
    animation: crashShake 0.38s ease;
}

.crash-multiplier-card.crashed .crash-multiplier {
    color: #ef4444;
    text-shadow: 0 0 24px rgba(239, 68, 68, 0.5);
}

.crash-multiplier-card.crashed .crash-curve path {
    stroke: #ef4444;
}

.crash-multiplier-card.crashed .crash-rocket {
    transform: translate(-50%, 50%) rotate(22deg) scale(0.9);
}

@keyframes crashShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

.crash-history {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 34px;
    overflow: hidden;
    align-items: center;
    width: 100%;
}

.crash-history-empty {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    line-height: 1.4;
}

.crash-history-item {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform-origin: center center;
    flex: 0 0 auto;
    transition:
            opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
            transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.crash-history-item.crash-history-enter {
    opacity: 0;
    transform: scale(0.82);
}

.crash-history-item.crash-history-leave {
    opacity: 0;
    transform: scale(0.86);
}

.crash-history-value {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.crash-history-value.dark-text {
    color: #111111;
    text-shadow: none;
}

.crash-history-item.history-green {
    background: #148a4c;
}

.crash-history-item.history-blue {
    background: #2c72e8;
}

.crash-history-item.history-purple {
    background: linear-gradient(180deg, #6f49cf, #5f3ea9);
}

.crash-history-item.history-gold {
    background: #f0bf4d;
}

.crash-controls {
    display: grid;
    gap: 14px;
}

.crash-inline-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.crash-bet-label {
    width: 180px;
}

.crash-auto-label {
    width: 240px;
}

.crash-auto-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
}

.crash-bet-input,
.crash-auto-input {
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
}

.crash-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.crash-preset-button {
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
            transform 160ms ease,
            background-color 160ms ease,
            border-color 160ms ease;
}

.crash-preset-button:hover:not(:disabled):not(.active) {
    transform: translateY(-1px);
    background: var(--panel-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.crash-preset-button.active:hover:not(:disabled) {
    background: linear-gradient(180deg, #6f49cf, #5f3ea9);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.crash-preset-button:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.45);
    outline-offset: 2px;
}

.crash-preset-button.active {
    background: linear-gradient(180deg, #6f49cf, #5f3ea9);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.crash-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.crash-bet-button {
    background: linear-gradient(180deg, #6f49cf, #5f3ea9);
}

.crash-cashout-button {
    background: linear-gradient(180deg, #13b981, #0f9f6e);
}

.crash-cashout-button:hover:not(:disabled) {
    background: linear-gradient(180deg, #17c68a, #11ae79);
}

.transfer-game {
    width: min(100%, 1040px);
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pageFade 180ms ease;
}

.transfer-card {
    width: min(100%, 820px);
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
            radial-gradient(circle at top right, rgba(132, 90, 255, 0.12), transparent 42%),
            linear-gradient(180deg, rgba(16, 17, 24, 0.96), rgba(11, 12, 18, 0.98));
    box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.03),
            0 24px 44px rgba(0, 0, 0, 0.3);
    display: grid;
    gap: 24px;
}

.transfer-header {
    display: grid;
    gap: 8px;
}

.transfer-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3.2vw, 38px);
    letter-spacing: -0.05em;
    line-height: 1;
}

.transfer-header p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.5;
}

.transfer-parties {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1.35fr);
    gap: 20px;
    align-items: center;
}

.transfer-party {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.transfer-party-label {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.transfer-party-arrow {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    align-self: center;
    justify-self: center;
    margin-top: 2px;
}

.transfer-party-arrow svg {
    width: 100%;
    height: 100%;
}

.mini-profile {
    width: 100%;
    max-width: 100%;
    min-height: 80px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    text-align: left;
}

.mini-profile-avatar,
.transfer-result-avatar,
.transfer-toast-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.mini-profile-avatar-placeholder,
.transfer-result-avatar-placeholder,
.transfer-toast-avatar-placeholder {
    background: linear-gradient(135deg, #4b4f68, #2f3246);
}

.mini-profile-name-row,
.transfer-result-name-row,
.transfer-toast-user-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
}

.mini-profile-content {
    min-width: 0;
    display: grid;
    align-content: center;
}

.mini-profile-name,
.transfer-result-name,
.transfer-toast-user {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.1;
}

.mini-profile-partner,
.transfer-result-partner,
.transfer-toast-partner {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.16));
}

.mini-profile-supporter,
.transfer-result-supporter,
.transfer-toast-supporter {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(252, 135, 34, 0.18));
}

.transfer-recipient-wrap {
    position: relative;
    width: 100%;
}

.transfer-recipient-trigger {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transfer-recipient-trigger .mini-profile {
    max-width: none;
    flex: 1;
    transition:
            border-color 160ms ease,
            background-color 160ms ease,
            transform 160ms ease;
}

.transfer-recipient-trigger:hover .mini-profile,
.transfer-recipient-trigger.active .mini-profile {
    border-color: rgba(139, 92, 246, 0.26);
    background: rgba(139, 92, 246, 0.06);
    transform: translateY(-1px);
}

.transfer-recipient-chevron {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
}

.transfer-recipient-chevron svg {
    width: 18px;
    height: 18px;
}

.transfer-recipient-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 13, 19, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: grid;
    gap: 12px;
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    pointer-events: none;
    visibility: hidden;
    transition:
            opacity 180ms ease,
            transform 180ms ease,
            visibility 180ms ease;
    z-index: 10;
}

.transfer-recipient-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.transfer-search-label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.transfer-search-input {
    width: 100%;
}

.transfer-recipient-results {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
    padding-right: 2px;
}

.transfer-result-item {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: inherit;
    text-align: left;
    transition:
            background-color 160ms ease,
            border-color 160ms ease,
            transform 160ms ease;
}

.transfer-result-item:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.18);
    transform: translateY(-1px);
}

.transfer-result-meta {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 4px;
}

.transfer-result-login {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.transfer-search-empty {
    padding: 10px 4px;
    color: var(--muted);
    font-size: 13px;
}

.transfer-form {
    display: grid;
    gap: 18px;
}

.transfer-inline-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 14px;
}

.transfer-message-input {
    min-height: 96px;
    resize: vertical;
    padding-top: 12px;
    font-family: inherit;
}

.transfer-button {
    background: linear-gradient(180deg, #8b5cf6, #6d4ac7);
}

.transfer-button:hover:not(:disabled) {
    background: linear-gradient(180deg, #9b73f7, #7852d2);
}

.transfer-status {
    min-height: 24px;
    font-size: 14px;
    font-weight: 700;
}

.transfer-status.neutral {
    color: var(--muted);
}

.transfer-status.win {
    color: #22c55e;
}

.transfer-status.error {
    color: #ff5d6c;
}

.toast-container {
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 9999;
    display: grid;
    gap: 12px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.transfer-toast {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
            radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 42%),
            rgba(15, 16, 24, 0.97);
    box-shadow:
            0 18px 38px rgba(0, 0, 0, 0.38),
            inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    color: #fff;
    opacity: 0;
    transform: translate3d(24px, -8px, 0) scale(0.96);
    transition:
            opacity 0.22s ease,
            transform 0.22s ease;
}

.transfer-toast.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.transfer-toast.closing {
    opacity: 0;
    transform: translate3d(24px, -8px, 0) scale(0.96);
}

.transfer-toast-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.transfer-toast-head-text {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 6px;
}

.transfer-toast-user {
    font-size: 14px;
    font-weight: 800;
}

.transfer-toast-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.45;
}

.transfer-toast-coin {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    object-fit: contain;
}

.transfer-toast-comment {
    color: #ffffff;
    font-weight: 700;
}

.site-toast {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    background:
            radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 42%),
            rgba(15, 16, 24, 0.98);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    opacity: 0;
    transform: translate3d(24px, -8px, 0) scale(0.96);
    transition:
            opacity 0.22s ease,
            transform 0.22s ease;
}

.site-toast-donation {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    flex-wrap: wrap;
}

.site-toast-donation strong {
    font-weight: 800;
}

.site-toast-donation-icon {
    font-size: 16px;
    line-height: 1;
    flex: 0 0 auto;
}

.site-toast-donation-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-toast-amount {
    font-weight: 800;
}

.site-toast-coin {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

.site-toast.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.site-toast.closing {
    opacity: 0;
    transform: translate3d(24px, -8px, 0) scale(0.96);
}

@media (max-width: 760px) {
    .crash-title {
        font-size: 30px;
    }

    .crash-buttons {
        grid-template-columns: 1fr;
    }

    .crash-inline-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .crash-bet-label,
    .crash-auto-label {
        width: 100%;
    }

    .crash-presets {
        width: 100%;
    }

    .crash-preset-button {
        flex: 1 1 calc(50% - 8px);
    }

    .crash-multiplier-card {
        padding: 24px 18px;
    }

    .transfer-card {
        padding: 22px;
    }

    .transfer-parties {
        grid-template-columns: 1fr;
    }

    .transfer-party-arrow {
        justify-self: center;
        transform: rotate(90deg);
        margin-top: 0;
    }

    .transfer-inline-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .crash-title {
        font-size: 30px;
    }

    .crash-buttons {
        grid-template-columns: 1fr;
    }

    .crash-inline-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .crash-bet-label,
    .crash-auto-label {
        width: 100%;
    }

    .crash-presets {
        width: 100%;
    }

    .crash-preset-button {
        flex: 1 1 calc(50% - 8px);
    }

    .crash-multiplier-card {
        padding: 24px 18px;
    }

}

@keyframes balancePulseUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes balancePulseDown {
    0% { transform: scale(1); }
    50% { transform: scale(0.985); }
    100% { transform: scale(1); }
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(6px);
    }
}
