image.pngВ /* Базовые стили для Telegram Web App — приложение всегда в тёмном стиле */
:root {
    --tg-theme-bg-color: #0d0d0d;
    --tg-theme-text-color: #ffffff;
    --tg-theme-hint-color: rgba(255, 255, 255, 0.55);
    --tg-theme-link-color: #5eb3f6;
    --tg-theme-button-color: #2481cc;
    --tg-theme-button-text-color: #ffffff;
    --tg-theme-secondary-bg-color: #1c1c1e;
}

/* Принудительный тёмный стиль — не трогаем background body (градиент + паттерн) */
.game-details-page,
.game-details-content,
.game-details-wrapper,
.page {
    background-color: transparent !important;
    color: #ffffff !important;
}
.game-info-block,
#game-details-content .game-info-block {
    background: #1c1c1e !important;
    color: #ffffff !important;
}
.game-info-block--info .game-info-item--card,
.game-info-description--card {
    background: #0d0d0d !important;
    color: #ffffff !important;
}
.game-info-title,
.game-info-label,
.game-info-value,
.game-info-description-text {
    color: #ffffff !important;
}
.game-info-label,
.game-info-sub {
    color: rgba(255, 255, 255, 0.55) !important;
}
.game-reservation-card {
    background: #1c1c1e !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.game-reservation-card .my-reservation-title-main,
.game-reservation-card .my-reservation-title-sub,
.game-reservation-card .my-reservation-meta,
.game-reservation-card .my-reservation-hint,
.game-reservation-card .my-chip {
    color: #ffffff !important;
}
.game-reservation-card .my-reservation-title-sub,
.game-reservation-card .my-reservation-hint {
    color: rgba(255, 255, 255, 0.85) !important;
}
.game-reservation-card .my-chip--paid { color: #4caf50 !important; }
.game-reservation-card .my-chip--unpaid { color: #ff9800 !important; }
.game-reservation-card .my-chip--free { color: #9c27b0 !important; }
.game-reservation-card--confirmed {
    background: rgba(76, 175, 80, 0.12) !important;
    border-color: rgba(76, 175, 80, 0.25) !important;
}
.reservations-list-block,
.reservations-list-header,
.reservations-list-body {
    background: rgba(28, 28, 30, 0.98) !important;
    color: #ffffff !important;
}
.reservation-expand-all-btn {
    background: #1c1c1e !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.reservation-section-header-title,
.reservation-section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}
.reservation-player-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
.profile-section,
.admin-page .profile-section,
.admin-settings-page .profile-section {
    background: #1c1c1e !important;
    color: #ffffff !important;
}
.profile-item-value,
.admin-edit-value {
    color: #ffffff !important;
}
.profile-item-label,
.admin-edit-label {
    color: #ffffff !important;
}
.admin-edit-form-group label,
.admin-edit-player-page label {
    color: #ffffff !important;
}
.admin-edit-player-page input[disabled],
.admin-edit-player-page input:disabled {
    color: rgba(255, 255, 255, 0.85) !important;
    background: #1c1c1e !important;
}
.profile-input,
.admin-edit-input,
.admin-edit-select,
.admin-search-input {
    background: #0d0d0d !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}
.admin-modal-content {
    background: #1a1a1a !important;
    color: #ffffff !important;
}
.simple-section,
.games-page .simple-section {
    background: transparent !important;
    color: #ffffff !important;
}
.simple-section-title,
.simple-page-title,
.simple-page-subtitle {
    color: #ffffff !important;
}
.simple-page-subtitle {
    color: rgba(255, 255, 255, 0.55) !important;
}
.cc-game-card,
.cc-game-card--featured {
    background: linear-gradient(180deg, #1c1c1e 0%, #0d0d0d 100%) !important;
    color: #ffffff !important;
}
.elim-card,
.elim-search-input,
.elim-sort-btn,
.elim-place,
.elim-badge {
    background: #1c1c1e !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.elim-search-input {
    background: #0d0d0d !important;
}
.table-details-header,
.table-view-toggle {
    background: #0d0d0d !important;
    color: #ffffff !important;
}
.game-details-header,
.game-details-tabs {
    background: #1c1c1e !important;
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
.game-management-block {
    background: rgba(28, 28, 30, 0.98) !important;
    color: #ffffff !important;
}
.my-reservation-hint {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.my-chip {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.home-about-card,
.next-game-details {
    background: #1c1c1e !important;
    color: #ffffff !important;
}
.home-block,
.home-featured-slot,
.simple-section {
    color: #ffffff !important;
}

/* Бонусы, Транзакции, Шаблоны — один тёмный стиль, белый текст */
.bonus-item,
.transaction-item {
    background: #1c1c1e !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}
.bonus-item *,
.transaction-item * {
    color: inherit;
}
.bonus-item div[style*="color"],
.transaction-item div[style*="color"] {
    color: #ffffff !important;
}
.bonus-item div[style*="hint-color"],
.transaction-item div[style*="hint-color"] {
    color: rgba(255, 255, 255, 0.7) !important;
}
.admin-timer-card,
#admin-timer-templates-list .admin-timer-card {
    background: #1c1c1e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
.admin-timer-round-label {
    color: rgba(255, 255, 255, 0.65) !important;
}
.admin-timer-round-row .modal-input,
.admin-timer-round-row input {
    background: #0d0d0d !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}
#admin-timer-template-modal .modal-title,
#admin-timer-template-modal .modal-label,
#admin-timer-template-modal .modal-input,
#create-bonus-modal .modal-title,
#create-bonus-modal .modal-label,
#create-bonus-modal .modal-input,
#create-bonus-modal .modal-textarea,
#edit-transaction-modal .modal-title,
#edit-transaction-modal .modal-label,
#edit-transaction-modal .modal-input,
#edit-transaction-modal .modal-textarea {
    color: #ffffff !important;
}
#admin-timer-template-modal .modal-input,
#create-bonus-modal .modal-input,
#create-bonus-modal .modal-textarea,
#edit-transaction-modal .modal-input,
#edit-transaction-modal .modal-textarea {
    background: #0d0d0d !important;
    color: #ffffff !important;
}
.pagination-info {
    color: rgba(255, 255, 255, 0.7) !important;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --app-pattern-opacity: 0.12;
    --app-pattern-y: 10%;
    background-color: #000000;
    background-image:
        radial-gradient(800px 420px at 50% -120px, rgba(255,255,255,0.10), transparent 60%),
        radial-gradient(520px 380px at 18% 26%, rgba(255,255,255,0.04), transparent 60%),
        linear-gradient(180deg, #282828 0%, #000000 100%);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: auto, auto, cover;
    background-position: center, center, center;
    color: var(--tg-theme-text-color);
    min-height: 100vh;
    padding-bottom: 70px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Общий фон (как на главной) для всех экранов */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/img/home-bg.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: center var(--app-pattern-y);
    opacity: var(--app-pattern-opacity);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
    transform: translateZ(0);
}

/* Preload / splash при загрузке бота */
.app-preload {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.25s ease-out;
}
.app-preload.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.app-preload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: transparent;
}
.app-preload-img {
    display: block;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    background: transparent;
    animation: app-preload-spin 3.6s linear infinite;
}
@keyframes app-preload-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.app-preload-text {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.5) 35%,
        #ffffff 50%,
        rgba(255, 255, 255, 0.5) 65%,
        rgba(255, 255, 255, 0.5) 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: app-preload-text-wave 1.8s ease-in-out infinite;
}
@keyframes app-preload-text-wave {
    0%, 100% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
}

/* Форма регистрации — единый стиль приложения, не зависит от темы Telegram */
#registration-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background-color: #000000;
    background-image:
        radial-gradient(800px 420px at 50% -120px, rgba(255,255,255,0.10), transparent 60%),
        radial-gradient(520px 380px at 18% 26%, rgba(255,255,255,0.04), transparent 60%),
        linear-gradient(180deg, #282828 0%, #000000 100%);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: auto, auto, cover;
    color: #ffffff;
    overflow-y: auto;
}
#registration-gate::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/img/home-bg.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    opacity: 0.12;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}
.registration-gate-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    background: linear-gradient(180deg, #1c1c1e 0%, rgba(0,0,0,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 24px 20px;
    box-sizing: border-box;
}
.registration-gate-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
}
.registration-gate-subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}
.registration-gate-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.registration-gate-avatar-label {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}
.registration-gate-avatar-preview-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}
.registration-gate-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    display: block;
}
.registration-gate-avatar-placeholder {
    position: absolute;
    inset: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px dashed rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
}
.registration-gate-avatar-loading {
    position: absolute;
    inset: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.registration-gate-avatar-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: registration-avatar-spin 0.8s linear infinite;
}
@keyframes registration-avatar-spin {
    to { transform: rotate(360deg); }
}
.registration-gate-avatar-loading-text {
    font-size: 10px;
    color: rgba(255,255,255,0.9);
}
.registration-gate-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.registration-gate-avatar-actions .reg-btn-secondary {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    cursor: pointer;
}
.registration-gate-avatar-actions .reg-btn-secondary:active {
    opacity: 0.8;
}
.registration-gate-avatar-actions .reg-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.registration-gate-avatar-actions input[type="file"] {
    display: none;
}
.registration-gate-avatar-hint {
    margin: 0 0 6px;
    font-size: 12px;
    color: #e53935;
    text-align: center;
    min-height: 16px;
}
.registration-gate-avatar-hint--muted {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    line-height: 1.35;
}
.reg-tg-unavailable {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: rgba(255, 255, 255, 0.55);
    cursor: default;
}
.registration-gate-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}
.registration-gate-label .optional {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}
.registration-gate-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
}
.registration-gate-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.registration-gate-error {
    color: #e53935;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
}
.registration-gate-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2481cc 0%, rgba(36, 129, 204, 0.85) 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.registration-gate-submit:active,
.registration-gate-submit:disabled {
    opacity: 0.7;
}

/* Строго: только одна страница видна — та, у которой есть .active */
.page {
    display: none !important;
    flex-direction: column;
    padding: 16px;
    min-height: calc(100vh - 70px);
    padding-bottom: 90px;
    position: relative;
    z-index: 1;
}

.page.active {
    display: flex !important;
    opacity: 1;
}

/* Гаснет при уходе */
.page.active.page-exit {
    opacity: 0;
    transition: opacity 0.22s ease-out;
}

/* Появляется при входе */
.page.active.page-enter {
    opacity: 0;
    animation: page-fade-in 0.28s ease-out forwards;
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* -----------------------------
   Home / simplified main UI
------------------------------ */
.home-page {
    gap: 18px;
    padding: 26px 20px 120px !important;
    color: #ffffff;
    border: 0;
}

.home-page-caption {
    font-size: 8.62px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0;
    margin-bottom: 10px;
}

.home-hero {
    padding: 18px 16px;
    border-radius: 18px;
    background:
        radial-gradient(120px 120px at 20% 10%, rgba(36, 129, 204, 0.22), transparent 60%),
        radial-gradient(160px 160px at 85% 30%, rgba(102, 187, 106, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
    border: 1px solid rgba(0,0,0,0.06);
    /* Информационный блок (без действий) */
    cursor: default;
    user-select: none;
}

.home-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin: 0;
}

.home-tagline {
    margin-top: 6px;
    font-size: 13px;
    color: var(--tg-theme-hint-color);
    line-height: 1.35;
}

.home-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    user-select: none;
}

.home-logo-circle {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    overflow: hidden;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.home-logo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-logo-mark {
    width: 44px;
    height: 44px;
    display: block;
}

.home-title {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: 6px;
    line-height: 1;
    margin-top: 6px;
}

.home-subtitle {
    font-size: 14px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.60);
    text-align: center;
    max-width: 22em;
}

.home-cta-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 18px 16px;
    background: linear-gradient(180deg, #b30000 0%, #6f0000 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(160, 0, 0, 0.25);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.home-cta-btn:active {
    transform: translateY(1px);
    opacity: 0.95;
}

.home-cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.home-cta-btn:disabled:active {
    transform: none;
    opacity: 0.5;
}

.home-cta-btn--pay-cancel {
    background: linear-gradient(180deg, #ffb300 0%, #ff8f00 100%);
    color: #ffffff;
    font-weight: 900;
}

.home-cta-btn--cancel-only {
    background: transparent;
    border: 2px solid var(--tg-theme-hint-color, #666);
    color: var(--tg-theme-hint-color, #999);
    font-weight: 700;
}
.home-cta-btn--cancel-only:active {
    border-color: var(--tg-theme-text-color);
    color: var(--tg-theme-text-color);
}

.home-reserve {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.home-reserve-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.home-reserve-hint--pending {
    color: #ff9800;
    font-weight: 600;
}

.home-reserve-cancellation-hint {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.home-reserve-cancellation-hint.is-visible {
    color: rgba(255, 200, 100, 0.95);
}

.home-reserve-cancel {
    margin-top: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--tg-theme-hint-color, #666);
    border-radius: 999px;
    color: var(--tg-theme-hint-color, #999);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.home-reserve-cancel:hover,
.home-reserve-cancel:active {
    color: var(--tg-theme-text-color);
    border-color: var(--tg-theme-text-color);
}

.home-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-block-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-top: 8px;
}

.home-page .loading {
    color: rgba(255, 255, 255, 0.60);
}

.home-skeleton-card {
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-next-game-card {
    border-radius: 18px;
    padding: 18px 18px 14px;
    background:
        radial-gradient(240px 160px at 85% 20%, rgba(255, 215, 0, 0.10), transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(0, 0, 0, 0.10) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.home-next-game-card:active {
    opacity: 0.92;
    transform: translateY(1px);
}

.home-next-game-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.home-next-game-title {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.05;
}

.home-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid rgba(255, 215, 0, 0.28);
    background: rgba(255, 215, 0, 0.10);
    color: rgba(255, 215, 0, 0.92);
}

.home-status-emoji {
    font-size: 13px;
    line-height: 1;
}

.home-status-badge--active {
    border-color: rgba(76, 175, 80, 0.35);
    background: rgba(76, 175, 80, 0.12);
    color: rgba(146, 255, 158, 0.95);
}

.home-status-badge--completed {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
}

.home-status-badge--cancelled {
    border-color: rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.12);
    color: rgba(255, 165, 165, 0.95);
}

.home-date-pill {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
}

.home-date-ico {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
}

.home-date-ico svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.home-next-game-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.home-next-game-open {
    font-size: 8.62px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.70);
}

.home-next-game-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
}

.home-next-game-arrow {
    font-size: 18px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.85);
}

.home-next-game-card--empty .home-next-game-title {
    text-transform: none;
    letter-spacing: 0.2px;
}

.home-next-game-empty-hint {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.35;
}

.home-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 6px;
}

.home-tile {
    border-radius: 18px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}

.home-tile:active {
    opacity: 0.92;
    transform: translateY(1px);
}

.home-tile-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
}

.home-icon-img {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
    /* Slight depth on dark backgrounds */
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.home-tile-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.home-tile-title {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.home-tile-subtitle {
    font-size: 12px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.62);
}

.home-tile--rating {
    background: linear-gradient(135deg, rgba(90, 40, 10, 0.55) 0%, rgba(35, 20, 15, 0.95) 100%);
}

.home-tile.is-disabled {
    opacity: 0.5;
    filter: grayscale(0.8);
    cursor: not-allowed;
    pointer-events: none;
}

.home-tile--games {
    background: linear-gradient(135deg, rgba(20, 40, 110, 0.55) 0%, rgba(12, 16, 40, 0.95) 100%);
}

.home-tile--timer {
    background: linear-gradient(135deg, rgba(18, 70, 40, 0.55) 0%, rgba(10, 22, 18, 0.95) 100%);
}

.home-tile--about {
    background: linear-gradient(135deg, rgba(75, 75, 75, 0.55) 0%, rgba(18, 18, 18, 0.95) 100%);
}

.home-page .home-about-card {
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.home-about-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ffffff;
}

.home-page .home-about-text {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.65);
}

.home-about-chat-wrap {
    padding-top: 4px;
}

.home-about-chat-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--tg-theme-button-color);
    text-decoration: none;
    padding: 8px 0;
}

.home-about-chat-link:active {
    opacity: 0.8;
}

.home-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.home-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.home-section-link {
    font-size: 13px;
    color: var(--tg-theme-link-color);
    text-decoration: none;
}

.home-section-link:active {
    opacity: 0.7;
}

.home-featured-slot {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-about-card {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-about-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--tg-theme-text-color);
}

.home-about-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--tg-theme-hint-color);
    font-size: 13px;
    line-height: 1.45;
}

.home-tournament-rating-card {
    background: linear-gradient(135deg, var(--tg-theme-button-color) 0%, rgba(36, 129, 204, 0.8) 100%);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.home-tournament-rating-card:active {
    opacity: 0.9;
    transform: translateY(1px);
}

/* Games feed (simple) — прибранная шапка */
.simple-page-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.simple-page-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.simple-page-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.3px;
}

.simple-page-subtitle {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.simple-page-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.games-page-admin-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}
.games-page-admin-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tg-theme-hint-color);
}
.games-page-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.games-page-admin-actions .create-game-btn {
    flex: 1;
    min-width: 120px;
}

.create-game-btn--outline {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.simple-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simple-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tg-theme-text-color);
}

.simple-link-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    color: var(--tg-theme-text-color);
    font-size: 12px;
    cursor: pointer;
}

.simple-link-btn:active {
    opacity: 0.7;
}

.simple-games-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Card style (not identical to reference, but modern) */
.cc-game-card {
    border-radius: 18px;
    padding: 14px 14px 12px;
    background:
        radial-gradient(140px 120px at 85% 15%, rgba(255, 167, 38, 0.16), transparent 55%),
        linear-gradient(180deg, var(--tg-theme-secondary-bg-color), rgba(0,0,0,0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.cc-game-card:active {
    opacity: 0.8;
    transform: translateY(1px);
}

.cc-game-card--featured {
    padding: 18px 16px 16px;
    background:
        radial-gradient(160px 160px at 18% 20%, rgba(36, 129, 204, 0.22), transparent 60%),
        radial-gradient(220px 220px at 90% 30%, rgba(102, 187, 106, 0.16), transparent 55%),
        linear-gradient(180deg, var(--tg-theme-secondary-bg-color), rgba(0,0,0,0.15));
}

.cc-game-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cc-game-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--tg-theme-text-color);
}

.cc-game-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    line-height: 1.3;
}

.cc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--tg-theme-text-color);
    white-space: nowrap;
}

.cc-badge--active {
    border-color: rgba(102, 187, 106, 0.55);
    background: rgba(102, 187, 106, 0.12);
    color: #2e7d32;
}

.cc-badge--upcoming {
    border-color: rgba(255, 167, 38, 0.55);
    background: rgba(255, 167, 38, 0.12);
    color: #ef6c00;
}

.cc-badge--completed {
    border-color: rgba(158, 158, 158, 0.55);
    background: rgba(158, 158, 158, 0.12);
    color: #616161;
}

.cc-game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--tg-theme-text-color);
    background: rgba(255, 255, 255, 0.06);
}

.cc-cta {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--tg-theme-hint-color);
}

.cc-cta strong {
    color: var(--tg-theme-text-color);
    font-weight: 800;
}

/* Фон под главную: все страницы приложения в одной тёмной стилистике */
.games-page,
.profile-page,
.admin-page,
.admin-players-page,
.admin-edit-player-page,
.admin-bonuses-page,
.admin-transactions-page,
.game-details-page {
    background: transparent;
    color: #ffffff;
}

/* Games Page — в одном стиле с главной (карточки, типографика, кнопки) */
.games-page {
    gap: 24px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
/* Одна ширина для шапки и секций: на больших экранах не растягивать */
.games-page .simple-page-header,
.games-page .simple-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.games-page .games-page-admin-wrap {
    box-sizing: border-box;
}
.games-page .simple-games-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.games-page .simple-page-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: #fff;
}

.games-page .simple-page-subtitle {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.35;
}

.games-page .simple-section-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
}

.simple-section-hint {
    font-size: 13px;
    color: var(--tg-theme-hint-color, rgba(255, 255, 255, 0.6));
    margin: 0 0 10px;
}

.games-page .simple-link-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.games-page .create-game-btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.games-page .create-game-btn[style*="background: transparent"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Карточки игр/турниров на странице Игры — как на главной */
.games-page .cc-game-card {
    border-radius: 18px;
    padding: 18px 18px 14px;
    background:
        radial-gradient(240px 160px at 85% 20%, rgba(255, 215, 0, 0.08), transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(0, 0, 0, 0.10) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: transform 0.12s ease, opacity 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.games-page .cc-game-card:active {
    opacity: 0.92;
    transform: translateY(1px);
}

.games-page .cc-game-card--featured {
    padding: 18px 18px 14px;
    background:
        radial-gradient(240px 160px at 18% 20%, rgba(36, 129, 204, 0.15), transparent 55%),
        radial-gradient(240px 160px at 85% 20%, rgba(255, 215, 0, 0.08), transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(0, 0, 0, 0.10) 100%);
}

.games-page .cc-game-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: #fff;
    line-height: 1.1;
}

.games-page .cc-game-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.games-page .cc-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 600;
}

.games-page .cc-badge {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 215, 0, 0.28);
    background: rgba(255, 215, 0, 0.10);
    color: rgba(255, 215, 0, 0.92);
}

.games-page .cc-badge--active {
    border-color: rgba(76, 175, 80, 0.35);
    background: rgba(76, 175, 80, 0.12);
    color: rgba(146, 255, 158, 0.95);
}

.games-page .cc-badge--upcoming {
    border-color: rgba(255, 167, 38, 0.45);
    background: rgba(255, 167, 38, 0.12);
    color: rgba(255, 220, 150, 0.95);
}

.games-page .cc-badge--completed {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
}

.games-page .cc-game-meta {
    margin-top: 12px;
}

.games-page .cc-cta {
    margin-top: 14px;
    padding-top: 0;
    border-top: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.70);
    align-items: center;
    gap: 8px;
}

.games-page .cc-cta span {
    flex: 0 0 auto;
}

.games-page .cc-cta strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 900;
    font-size: 18px;
}

/* Пустые состояния и загрузка на странице Игры */
.games-page .simple-games-list .loading,
.games-page .simple-games-list > div[style*="color: var"] {
    color: rgba(255, 255, 255, 0.55) !important;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
    margin: 0;
    flex: 1;
}

.section-toggle {
    background: none;
    border: none;
    color: var(--tg-theme-hint-color);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.section-toggle:active {
    opacity: 0.7;
}

.section.collapsed .section-toggle {
    transform: rotate(-90deg);
}

.section-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    max-height: 5000px;
    opacity: 1;
}

.section.collapsed .section-content {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.create-game-btn {
    padding: 8px 16px;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.create-game-btn:active {
    opacity: 0.7;
}

/* Блок таймера в карточке игры (админ) */
.game-timer-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    margin-top: 10px;
    text-align: center;
}

.game-timer-card--readonly {
    padding: 14px 18px;
}

.game-timer-header {
    margin-bottom: 14px;
    text-align: center;
}

.game-timer-room {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: var(--tg-theme-text-color);
}

.game-timer-room-icon {
    opacity: 0.9;
}

.game-timer-room strong {
    font-weight: 600;
}

.game-timer-meta {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    margin-top: 4px;
}

.game-timer-meta--muted {
    color: rgba(255, 255, 255, 0.5);
}

.game-timer-actions--top {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.game-timer-main {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-timer-round-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.game-timer-blinds {
    font-size: 13px;
    color: var(--tg-theme-hint-color);
    margin-bottom: 12px;
}

.game-timer-blinds strong {
    color: var(--tg-theme-text-color);
    font-weight: 600;
}

.game-timer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.game-timer-status {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.game-timer-status--running {
    background: rgba(76, 175, 80, 0.28);
    color: #81c784;
}

.game-timer-status--paused {
    background: rgba(255, 152, 0, 0.28);
    color: #ffb74d;
}

.game-timer-remaining-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.game-timer-remaining-label {
    font-size: 10px;
    color: var(--tg-theme-hint-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.game-timer-time-and-pause {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.game-timer-remaining-value {
    font-size: 28px;
    font-weight: 700;
    color: #81c784;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.game-timer-status-inline {
    font-size: 18px;
    line-height: 1;
    opacity: 0.9;
}
.game-timer-status-inline--running {
    color: #81c784;
}
.game-timer-status-inline--paused {
    color: #ffb74d;
}

.game-timer-break {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    margin-top: 12px;
    max-width: 100%;
}

.game-timer-actions--change {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.game-timer-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.game-timer-btn {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.game-timer-btn:active {
    opacity: 0.85;
}

.game-timer-btn--scan {
    background: linear-gradient(180deg, #4caf50 0%, #388e3c 100%);
    color: #fff;
}

.game-timer-btn--danger {
    background: rgba(244, 67, 54, 0.2);
    color: #ef5350;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.game-timer-btn--link {
    background: transparent;
    color: var(--tg-theme-link-color, #2481cc);
    border: 1px solid rgba(36, 129, 204, 0.4);
}

.game-timer-btn--nav {
    background: rgba(33, 150, 243, 0.25);
    color: #64b5f6;
    flex: 1;
    min-width: 80px;
}

.game-timer-btn--pause {
    background: rgba(255, 152, 0, 0.3);
    color: #ffb74d;
    flex: 1;
    min-width: 80px;
}

.game-timer-btn--nav:last-of-type {
    background: rgba(76, 175, 80, 0.25);
    color: #81c784;
}

/* Ближайшие игры */
.next-games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.next-game-card {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.next-game-card:active {
    opacity: 0.7;
}

.next-game-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.next-game-icon {
    font-size: 32px;
}

.next-game-info {
    flex: 1;
}

.next-game-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.next-game-date {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
    margin-bottom: 8px;
}

.next-game-description {
    font-size: 13px;
    color: var(--tg-theme-hint-color);
    line-height: 1.4;
    margin-bottom: 12px;
}

.next-game-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.next-game-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.detail-label {
    color: var(--tg-theme-hint-color);
}

.detail-value {
    font-weight: 500;
    color: var(--tg-theme-text-color);
}

.next-game-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.next-game-stats {
    display: flex;
    gap: 16px;
}

.next-game-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--tg-theme-hint-color);
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--tg-theme-button-color);
}

.stat-value.reserved {
    color: var(--tg-theme-hint-color);
}

.next-game-location {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    text-align: right;
}

.location-label {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
}

.location-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--tg-theme-button-color);
    text-decoration: none;
    word-break: break-word;
    max-width: 200px;
}

.location-link:active {
    opacity: 0.7;
}

.next-game-action {
    text-align: center;
    font-size: 14px;
    color: var(--tg-theme-button-color);
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Список турниров */
.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-card {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tournament-card:active {
    opacity: 0.7;
}

.tournament-card.past {
    cursor: default;
    opacity: 0.8;
}

.tournament-card.past:active {
    opacity: 0.8;
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tournament-name {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.tournament-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.tournament-status.past {
    background: var(--tg-theme-hint-color);
}

.tournament-status.upcoming {
    background: #ff9500;
    color: #ffffff;
}

.tournament-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tournament-detail {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.tournament-detail-label {
    color: var(--tg-theme-hint-color);
}

.tournament-detail-value {
    font-weight: 500;
}

.tournament-detail-value.reserved {
    color: var(--tg-theme-hint-color);
}

.tournament-action {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: var(--tg-theme-button-color);
    font-weight: 500;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.pagination-btn {
    padding: 8px 16px;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pagination-btn:active {
    opacity: 0.7;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
}

/* Акцент модалок в стиле приложения (бордовый как табы) */
:root {
    --app-modal-bg: #1c1c1e;
    --app-modal-border: rgba(255, 255, 255, 0.1);
    --app-modal-accent: #8b4040;
    --app-modal-accent-hover: #9e4a4a;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.modal-content,
.modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.2s;
}

.modal-close:hover,
.modal-close:active {
    opacity: 0.7;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-section {
    margin-bottom: 16px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
}

.modal-input,
.modal-select,
.modal-textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    background: #0d0d0d;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.modal-input::placeholder,
.modal-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M2.5 4.5L6 8l3.5-3.5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #0d0d0d;
}

.modal-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.modal-input:focus,
.modal-select:focus,
.modal-textarea:focus {
    border-color: var(--tg-theme-button-color);
}

.modal-textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-btn:active {
    opacity: 0.7;
}

.modal-btn-primary {
    background: var(--app-modal-accent);
    color: #fff;
}

.modal-btn-primary:hover {
    background: var(--app-modal-accent-hover);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.modal .radio-label,
.modal .radio-label span {
    color: #ffffff;
}
.modal input[type="radio"],
.modal input[type="checkbox"] {
    accent-color: #2481cc;
}

/* Модалка «уведомление» (showAlertModal) — в стиле приложения */
.app-alert-modal {
    background: var(--app-modal-bg) !important;
    border: 1px solid var(--app-modal-border) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    width: 100% !important;
    max-width: 340px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.app-alert-modal .app-alert-modal-message {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 20px;
}

.app-alert-modal .app-alert-modal-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--app-modal-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.app-alert-modal .app-alert-modal-btn:hover,
.app-alert-modal .app-alert-modal-btn:active {
    background: var(--app-modal-accent-hover);
}

/* Модалка «Оплата» — общий стиль приложения, контрастный и читаемый */
.modal--payment .modal-title {
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
}
.modal--payment .modal-close {
    color: #ffffff;
}
.modal--payment .payment-amount-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}
.modal--payment .payment-amount-value {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}
.modal--payment .payment-balance {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}
.modal--payment .payment-btn-balance {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #b30000 0%, #6f0000 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(160, 0, 0, 0.22);
    -webkit-tap-highlight-color: transparent;
}
.modal--payment .payment-btn-balance:active {
    opacity: 0.95;
    transform: translateY(1px);
}
.modal--payment .payment-btn-balance:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.modal--payment .payment-balance-hint {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}
.modal--payment .payment-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}
.modal--payment .payment-requisites-box {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.modal--payment .payment-proof-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    line-height: 1.4;
}
.modal--payment .payment-proof-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
}
.modal--payment .payment-proof-input::file-selector-button {
    padding: 8px 12px;
    margin-right: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}
.modal--payment .payment-proof-filename {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}
.modal--payment .payment-alert {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
}
.modal--payment .payment-alert--warning {
    background: rgba(255, 152, 0, 0.2);
    color: #fff;
}
.modal--payment .payment-alert--pending {
    background: rgba(255, 152, 0, 0.15);
    color: #fff;
}
.modal--payment .modal-btn-primary {
    background: linear-gradient(180deg, #b30000 0%, #6f0000 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(160, 0, 0, 0.2);
}
.modal--payment .modal-btn-primary:active {
    opacity: 0.95;
    transform: translateY(1px);
}
.modal--payment .modal-btn-secondary {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.modal--payment .modal-footer {
    gap: 10px;
}

/* Profile Page */
.profile-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-page, .admin-players-page, .admin-edit-player-page, .admin-bonuses-page, .admin-transactions-page, .game-details-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.game-details-content {
    flex: 1;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-back {
    color: #3390ec;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
}

.admin-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Admin settings - аккуратная форма (без вылезания инпутов и с контрастом) */
.admin-settings-page #admin-settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-settings-page .profile-section {
    margin-bottom: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-settings-page .profile-section-title {
    margin-bottom: 14px;
}

.admin-settings-page .profile-item.editable {
    padding: 12px;
    border-bottom: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-settings-page .profile-item.editable + .profile-item.editable {
    margin-top: 10px;
}

.admin-settings-page .profile-input {
    background: #0d0d0d;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 12px;
}

.admin-settings-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 10px;
    line-height: 1.4;
}

.admin-settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ffffff;
    user-select: none;
}

.admin-settings-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.admin-settings-admins-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.admin-settings-admin-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.admin-settings-admin-item:active {
    opacity: 0.85;
}

.admin-settings-admin-item.is-disabled {
    opacity: 0.55;
    cursor: default;
}

.admin-settings-admin-item input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.admin-settings-admin-meta {
    min-width: 0;
    flex: 1;
}

.admin-settings-admin-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.admin-settings-admin-sub {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.65);
    word-break: break-word;
}

.admin-settings-empty {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.admin-settings-page .admin-create-player-btn {
    margin-bottom: 0;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #1e1e1e;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-menu-item:active {
    background: #2a2a2a;
}

.admin-menu-icon {
    font-size: 24px;
}

.admin-menu-content {
    flex: 1;
}

.admin-menu-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.admin-menu-description {
    font-size: 14px;
    color: #999;
}

.admin-menu-arrow {
    color: #999;
    font-size: 18px;
}

.admin-players-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #1e1e1e;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-player-item:active {
    background: #2a2a2a;
}

.admin-player-info {
    flex: 1;
}

.admin-player-name {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.admin-player-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #999;
}

.admin-player-arrow {
    color: #999;
    font-size: 18px;
}

.admin-badge {
    background: #ff6b6b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.level-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.level-badge.level-1 {
    background: #4ecdc4;
    color: #fff;
}

.level-badge.level-2 {
    background: #45b7d1;
    color: #fff;
}

.level-badge.level-3 {
    background: #f39c12;
    color: #fff;
}


.admin-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-edit-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-edit-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.admin-edit-form-group input[type="text"],
.admin-edit-form-group input[type="number"] {
    padding: 12px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
}

.admin-edit-form-group input[type="checkbox"] {
    margin-right: 8px;
}

.admin-edit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-edit-label {
    font-size: 14px;
    color: #ffffff;
}

.admin-edit-value {
    font-size: 16px;
    color: #fff;
    padding: 12px;
    background: #1e1e1e;
    border-radius: 8px;
}

.admin-edit-input, .admin-edit-select {
    padding: 12px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
}

.admin-edit-input:focus, .admin-edit-select:focus {
    outline: none;
    border-color: #3390ec;
}

.admin-edit-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.admin-search-container {
    margin-bottom: 16px;
}

.admin-balance-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-filter-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1c1c1e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.admin-filter-chip:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.admin-filter-chip--active {
    background: var(--tg-theme-button-color, #3390ec);
    color: var(--tg-theme-button-text-color, #fff);
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-search-input {
    width: 100%;
    padding: 12px;
    background: var(--tg-theme-secondary-bg-color, #1e1e1e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--tg-theme-text-color, #fff);
    font-size: 16px;
}

.admin-search-input:focus {
    outline: none;
    border-color: #3390ec;
}

.admin-reset-nickname-btn {
    padding: 8px 12px;
    background: var(--tg-theme-button-color, #3390ec);
    color: var(--tg-theme-button-text-color, #fff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.2s;
}

.admin-reset-nickname-btn:active {
    opacity: 0.7;
}

.admin-ban-btn {
    padding: 12px 24px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: not-allowed;
    opacity: 0.5;
}

.admin-edit-actions {
    margin-top: 24px;
}

.admin-save-btn {
    width: 100%;
    padding: 16px;
    background: #3390ec;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.admin-save-btn:active {
    opacity: 0.8;
}

.admin-create-player-btn {
    width: 100%;
    padding: 14px;
    background: #3390ec;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-create-player-btn:active {
    opacity: 0.8;
}

.admin-timer-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--tg-theme-button-color, #2481cc);
    background: transparent;
    color: var(--tg-theme-button-color, #2481cc);
    font-size: 13px;
    cursor: pointer;
}
.admin-timer-btn:active {
    opacity: 0.8;
}

.admin-timer-rounds-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 50vh;
    overflow-y: auto;
}

.admin-timer-round-row {
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    display: grid;
    grid-template-columns: 1fr 72px 72px 56px 56px auto auto;
    gap: 8px;
    align-items: end;
}

.admin-timer-round-row.is-break {
    border-color: var(--tg-theme-button-color, #2481cc);
    background: rgba(36, 129, 204, 0.1);
}

.admin-timer-round-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-timer-round-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

.admin-timer-round-row .admin-timer-round-name { width: 100%; min-width: 0; }
.admin-timer-round-row .admin-timer-round-blinds-small,
.admin-timer-round-row .admin-timer-round-blinds-big { width: 100%; min-width: 0; }
.admin-timer-round-row .admin-timer-round-ante { width: 100%; min-width: 0; }
.admin-timer-round-row .admin-timer-round-duration { width: 100%; min-width: 0; }
.admin-timer-round-row .admin-timer-round-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; align-self: end; }
.admin-timer-round-row .admin-timer-round-break-after { padding: 4px 8px; font-size: 11px; color: var(--tg-theme-link-color, #2481cc); background: none; border: none; cursor: pointer; text-decoration: underline; white-space: nowrap; }
.admin-timer-round-row .admin-timer-round-del { padding: 6px 10px; font-size: 12px; color: #ff6b6b; background: transparent; border: 1px solid #ff6b6b; border-radius: 6px; cursor: pointer; white-space: nowrap; align-self: end; }

@media (max-width: 520px) {
    .admin-timer-round-row {
        grid-template-columns: 1fr 1fr auto;
        grid-template-rows: auto auto auto auto auto;
    }
    .admin-timer-round-row .admin-timer-round-field:nth-child(1) { grid-column: 1; grid-row: 1; }
    .admin-timer-round-row .admin-timer-round-field:nth-child(2) { grid-column: 2; grid-row: 1; }
    .admin-timer-round-row .admin-timer-round-field:nth-child(3) { grid-column: 1; grid-row: 2; }
    .admin-timer-round-row .admin-timer-round-field:nth-child(4) { grid-column: 2; grid-row: 2; }
    .admin-timer-round-row .admin-timer-round-field:nth-child(5) { grid-column: 1; grid-row: 3; }
    .admin-timer-round-row .admin-timer-round-actions { grid-column: 2; grid-row: 3; }
    .admin-timer-round-row .admin-timer-round-del { grid-column: 3; grid-row: 1 / 4; align-self: center; }
}

.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal.active {
    display: flex;
}

.admin-modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.admin-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-close:active {
    opacity: 0.7;
}

.loading, .empty-state, .error {
    text-align: center;
    padding: 32px;
    color: #999;
}

.error {
    color: #ff6b6b;
}

.profile-header {
    text-align: center;
    padding: 24px 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--tg-theme-button-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
    color: var(--tg-theme-button-text-color);
    font-weight: 600;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-username {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.profile-section {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.profile-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.profile-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item.editable {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.profile-item-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.profile-item-value {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.profile-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    background: #0d0d0d;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    max-width: 100%;
}

.profile-input:focus {
    border-color: var(--tg-theme-button-color);
}

.profile-save-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.profile-save-btn:active {
    opacity: 0.8;
}

.profile-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.profile-avatar-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: opacity 0.2s;
}
.profile-avatar-btn:hover {
    opacity: 0.9;
}
.profile-avatar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.profile-avatar-btn--danger {
    background: rgba(244, 67, 54, 0.2);
    color: #ef5350;
    border-color: rgba(244, 67, 54, 0.4);
}
.profile-item--avatar-actions .profile-item-label {
    margin-bottom: 4px;
}

.profile-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-link {
    display: flex;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s;
}

.profile-link:active {
    opacity: 0.7;
}

.profile-link-icon {
    font-size: 20px;
    margin-right: 12px;
}

.profile-link-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.profile-link-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.profile-avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-loading {
    position: absolute;
    inset: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}

.profile-avatar-loading-spinner {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: registration-avatar-spin 0.8s linear infinite;
}

.profile-avatar-loading-text {
    font-size: 10px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 0 6px;
    line-height: 1.2;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tg-theme-bg-color);
    border-top: 1px solid var(--tg-theme-secondary-bg-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    color: var(--tg-theme-hint-color);
    -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
    opacity: 0.6;
}

.nav-item.active {
    color: var(--tg-theme-button-color);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}

/* ——— Покер-стол (страница «Стол» в мини-апп) ——— */
.poker-table-page .poker-table-header {
    padding-bottom: 12px;
}
.poker-table-wrap {
    padding: 0 16px 24px;
    min-height: 40vh;
}
.poker-table-loading,
.poker-table-not-in-game {
    text-align: center;
    padding: 24px 16px;
    color: var(--tg-theme-hint-color);
}
.poker-table-not-in-game p {
    margin: 0;
}
.poker-table-meta {
    font-size: 13px;
    color: var(--tg-theme-hint-color);
    margin-bottom: 12px;
}
/* Круглый/овальный стол: поверхность + места по кругу */
.poker-table-surface {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 16px;
    aspect-ratio: 1.4 / 1;
    background: linear-gradient(160deg, #0d4d0d 0%, #0a350a 50%, #062006 100%);
    border-radius: 50%;
    border: 4px solid #8b6914;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: visible; /* чтобы бейджи/карты вокруг мест не обрезались */
}
.poker-table-seats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}
.poker-table-seats .poker-seat {
    pointer-events: auto;
}
.poker-seat {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    overflow: visible; /* позволяем показывать подсказки/карты рядом */
    transition:
        left 180ms ease,
        top 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease,
        filter 180ms ease;
    will-change: left, top;
}
.poker-seat--me {
    border-color: var(--tg-theme-button-color, #2481cc);
    background: rgba(36, 129, 204, 0.35);
    box-shadow: 0 0 12px rgba(36, 129, 204, 0.5);
}
.poker-seat--to-act {
    border-color: #ffd93d;
    background: rgba(255, 217, 61, 0.25);
    box-shadow: 0 0 14px rgba(255, 217, 61, 0.6);
    animation: poker-seat-pulse 1.2s ease-in-out infinite;
}
@keyframes poker-seat-pulse {
    0%, 100% { box-shadow: 0 0 14px rgba(255, 217, 61, 0.6); }
    50% { box-shadow: 0 0 20px rgba(255, 217, 61, 0.9); }
}
.poker-seat--folded {
    opacity: 0.7;
    filter: grayscale(1);
    border-color: rgba(255, 255, 255, 0.15);
}
.poker-seat:not(.poker-seat--folded) {
    border-color: rgba(255, 255, 255, 0.35);
}
.poker-seat-name {
    display: block;
    font-weight: 600;
    font-size: 10px;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.poker-seat-stack {
    display: block;
    font-size: 12px;
    color: #b8e986;
    margin-top: 2px;
}
.poker-seat-status {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1px;
}
.poker-seat--winner {
    border-color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.22);
    box-shadow: 0 0 16px rgba(76, 175, 80, 0.65);
}
.poker-seat-cards {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, 6px);
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    z-index: 5;
}
.poker-seat--lower .poker-seat-cards {
    top: auto;
    bottom: 100%;
    transform: translate(-50%, -6px);
}
.poker-seat-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border-radius: 6px;
    padding: 2px 4px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.poker-seat-hand {
    position: absolute;
    left: 50%;
    top: calc(100% + 22px);
    transform: translate(-50%, 6px);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 5;
}
.poker-seat--lower .poker-seat-hand {
    top: auto;
    bottom: calc(100% + 22px);
    transform: translate(-50%, -6px);
}
.poker-result-text {
    font-weight: 700;
}
.poker-your-hand {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}
.poker-table-my-hand {
    text-align: center;
    margin-top: -8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}
/* Центр стола: банк + доска */
.poker-table-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 2;
}
.poker-table-pot {
    font-size: 15px;
    font-weight: 700;
    color: #ffd93d;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.poker-table-board {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    min-height: 32px;
    align-items: center;
}
.poker-board-empty {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}
.poker-board-card {
    display: inline-block;
    background: linear-gradient(145deg, #fff 0%, #e8e8e8 100%);
    color: #1a1a1a;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.poker-card-rank {
    display: inline;
}
.poker-card-suit {
    display: inline;
    margin-left: 1px;
}
.poker-card-suit--red {
    color: #d64545;
}
.poker-card-joker {
    color: #1a1a1a;
}
/* Таймер и инфо хода */
.poker-table-turn-info {
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
}
.poker-turn-label {
    font-weight: 600;
    color: var(--tg-theme-text-color);
}
.poker-timer {
    color: #ffd93d;
    font-weight: 600;
    margin-left: 6px;
}
.poker-table-my-cards {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    min-height: 36px;
}
.poker-my-card {
    display: inline-block;
    background: linear-gradient(145deg, #fff 0%, #e8e8e8 100%);
    color: #1a1a1a;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.poker-my-card-placeholder {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
}
.poker-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
}
.poker-table-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}
.poker-end-btn {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}
.poker-end-btn[disabled] {
    opacity: 0.55;
    cursor: default;
}
.poker-end-btn--danger {
    background: rgba(192, 57, 43, 0.92);
    color: #fff;
}
.poker-table-actions--my-turn {
    padding: 12px 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    border: 2px solid rgba(255, 217, 61, 0.5);
    margin-top: 4px;
}
.poker-table-actions--my-turn .poker-action-btn {
    padding: 12px 16px;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.poker-action-btn {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
    -webkit-tap-highlight-color: transparent;
}
.poker-action-amt {
    font-weight: 700;
    opacity: 0.9;
    margin-left: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}
.poker-action-btn:active {
    opacity: 0.85;
}
.poker-action-btn--fold {
    background: #5a5a5a;
    color: #fff;
}
.poker-action-btn--call {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}
.poker-action-btn--allin {
    background: #c0392b;
    color: #fff;
}
.poker-wait-hint {
    text-align: center;
    color: var(--tg-theme-hint-color);
    font-size: 14px;
    margin: 0;
}

/* Нижняя навигация — единый тёмный стиль под главную */
.bottom-nav {
    background: rgba(20, 20, 20, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.bottom-nav .nav-item {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

.bottom-nav .nav-item.active {
    color: #ffffff;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--tg-theme-hint-color);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
}

/* Game details page - modern block design */
.game-details-page {
    padding: 0 !important;
}

.game-details-wrapper {
    padding: 16px;
}

.table-details-page {
    padding: 0 !important;
}

.table-details-wrapper {
    padding: 16px;
}

.table-details-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 60;
    background: var(--tg-theme-bg-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    /* Stretch to edges of wrapper while staying sticky */
    margin: -16px -16px 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.table-details-title {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.table-details-back,
.table-details-edit {
    background: none;
    border: none;
    color: var(--tg-theme-text-color);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 10px;
    transition: background 0.15s ease, opacity 0.15s ease, transform 0.05s ease;
}

.table-details-back {
    font-size: 20px;
}

.table-details-edit {
    font-size: 16px;
    color: var(--tg-theme-button-color);
}

.table-details-back:active,
.table-details-edit:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.table-view-toggle {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--table-details-header-height, 56px));
    z-index: 55;
    background: var(--tg-theme-bg-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: 0 -16px 12px;
    padding: 8px 16px 10px;
}

.table-view-seg {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.table-view-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--tg-theme-text-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease, opacity 0.15s ease;
}

.table-view-btn.is-active {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.table-view-btn:active {
    transform: scale(0.985);
    opacity: 0.95;
}

/* Table details content cards */
.table-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.table-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--tg-theme-text-color);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.table-chip--green {
    background: rgba(76,175,80,0.14);
    border-color: rgba(76,175,80,0.28);
}

.table-kv {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-kv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.table-kv-row:first-child {
    padding-top: 0;
    border-top: none;
}

.table-kv-label {
    font-size: 13px;
    color: var(--tg-theme-hint-color);
    font-weight: 700;
}

.table-kv-value {
    font-size: 14px;
    color: var(--tg-theme-text-color);
    font-weight: 800;
    text-align: right;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.table-btn {
    flex: 1;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.05s ease;
}

.table-btn:active {
    opacity: 0.85;
    transform: scale(0.985);
}

.table-btn--ghost {
    background: rgba(255,255,255,0.06);
    color: var(--tg-theme-text-color);
}

.table-btn--danger {
    background: #ff4444;
    color: #fff;
}

.table-seats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.table-seat-card {
    position: relative;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.table-seat-card--clickable {
    cursor: pointer;
}

.table-seat-card:active {
    transform: scale(0.99);
    opacity: 0.92;
}

.table-seat-card--my {
    background: rgba(76,175,80,0.14);
    border-color: rgba(76,175,80,0.25);
}

.table-seat-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--tg-theme-text-color);
    margin-bottom: 2px;
}

.table-seat-status {
    font-size: 12px;
    font-weight: 800;
}

.table-seat-status--free {
    color: #4caf50;
}

.table-seat-status--busy {
    color: #ffb020;
}

.table-seat-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.18);
}

.table-seat-avatar--my {
    border-color: rgba(76,175,80,0.85);
}

.table-seat-avatar-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    background: var(--tg-theme-button-color);
    border: 2px solid rgba(255,255,255,0.18);
}

.table-seat-avatar-fallback--my {
    background: rgba(76,175,80,0.85);
    border-color: rgba(76,175,80,0.85);
}

/* Generic user avatar (lists: reservations, rating, admin, etc.) */
.user-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    display: block;
}
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.user-avatar-fallback {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.table-seat-name {
    font-size: 13px;
    font-weight: 900;
    color: var(--tg-theme-text-color);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-seat-username {
    font-size: 11px;
    color: var(--tg-theme-hint-color);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-seat-tag {
    font-size: 11px;
    color: #ff6b6b;
    font-weight: 800;
}

.table-seat-cta {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    border: none;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

/* Game details header — тёмная шапка по макету */
.game-details-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 60;
    background: #1c1c1e;
    transition: transform 0.25s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    margin: -16px -16px 0;
    padding: 14px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: none;
}

.game-details-back {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
}

.game-details-title-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.game-details-title-line1,
.game-details-title-line2 {
    display: block;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.25;
}

.game-details-title-line1 {
    font-size: 20px;
}

.game-details-title-line2 {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.95;
}

.game-details-header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.game-details-header-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.game-details-header-btn--green {
    background: #2e7d32;
    color: #fff;
}

.game-details-header-btn--orange {
    background: #e65100;
    color: #fff;
}

.game-details-header-btn--icon {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    padding: 6px 8px;
}

/* Табы навигации — активный с акцентным фоном */
.game-details-tabs {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--game-details-header-height, 72px));
    z-index: 55;
    background: #1c1c1e;
    margin: 0 -16px 0;
    padding: 10px 16px 12px;
    transition: transform 0.25s ease;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: none;
}

.game-details-tabs::-webkit-scrollbar {
    display: none;
}

.game-details-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.game-details-tab:hover {
    background: rgba(255, 255, 255, 0.08);
}

.game-details-tab--active {
    background: #8b4040;
    color: #fff;
}

.game-details-tab--active:hover {
    background: #9e4a4a;
}

/* Вкладки админа в списке броней: Обычный / Без ограничений */
.reservation-admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.reservation-admin-tab {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--tg-theme-text-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.reservation-admin-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}
.reservation-admin-tab--active {
    background: rgba(255, 152, 0, 0.25);
    border-color: rgba(255, 152, 0, 0.5);
    color: #ff9800;
}
.reservation-admin-tab--active:hover {
    background: rgba(255, 152, 0, 0.35);
}

/* Отступ при скролле к секциям, чтобы не уходили под фиксированные шапку и табы */
#game-details-content .game-info-block,
#game-details-content .game-management-block {
    scroll-margin-top: calc(var(--game-details-header-height, 72px) + 52px);
}

/* При фокусе в поле ввода — прячем шапку и табы анимацией; при blur — возвращаем */
.game-details-page.keyboard-open .game-details-header {
    transform: translateY(-100%);
}
.game-details-page.keyboard-open .game-details-tabs {
    transform: translateY(-100%);
}

/* Блок управления игрой (только для админа) */
.game-management-block {
    background: rgba(28, 28, 30, 0.95);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-management-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.game-management-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.game-management-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.game-management-btn--green {
    background: #2e7d32;
    color: #fff;
}

.game-management-btn--orange {
    background: #e65100;
    color: #fff;
}

.game-management-btn--icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    padding: 10px 12px;
}

.game-management-btn--icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.game-management-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.game-management-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 36px 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    outline: none;
}

.game-management-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.game-management-search-clear:hover {
    background: rgba(255, 255, 255, 0.35);
}

.game-management-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.game-management-search-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    background: #252528;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.game-management-search-results--open {
    display: block;
}

.game-management-search-item {
    padding: 10px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-management-search-item:last-child {
    border-bottom: none;
}

.game-management-search-item-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.game-management-search-item-badge--brohn { background: #6b2d2d; }
.game-management-search-item-badge--igra { background: #2d5c2d; }
.game-management-search-item-badge--oplachen { background: #b36200; }
.game-management-search-item-badge--aut { background: #b71c1c; }
.game-management-search-item-badge--list { background: #1565c0; }

.game-management-search-item-payment-type {
    margin-left: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
}

.game-management-search-item--clickable {
    cursor: pointer;
}
.game-management-search-item--clickable:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Список броней — аккуратная раскладка секций и карточек */
.reservations-list-block {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reservations-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.reservations-list-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.reservations-list-header-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

.reservations-list-header-toggle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

.reservations-list-body {
    padding: 12px 14px;
    padding-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reservations-list-search-wrap {
    position: relative;
    margin-bottom: 14px;
}

.reservations-list-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 36px 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    outline: none;
}
.reservations-list-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.reservations-list-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}
.reservations-list-search-wrap--has-value .reservations-list-search-clear {
    display: inline-flex;
}
.reservations-list-search-clear:hover {
    background: rgba(255, 255, 255, 0.25);
}

.reservation-expand-all-row {
    margin-bottom: 12px;
}
.reservation-expand-all-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
    cursor: pointer;
}
.reservation-expand-all-btn:hover {
    opacity: 0.9;
}

.reservation-section {
    margin-bottom: 16px;
}
.reservation-section:last-child {
    margin-bottom: 0;
}

.reservation-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    user-select: none;
}
.reservation-section-header:hover {
    opacity: 0.9;
}
.reservation-section-title-wrap {
    flex: 1;
}
.reservation-section-toggle {
    font-size: 10px;
    color: var(--tg-theme-hint-color);
    flex-shrink: 0;
}
.reservation-section-body {
    padding-left: 2px;
}

.reservation-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0;
    display: inline;
    align-items: center;
    gap: 6px;
}
.reservation-section-title--in-game { color: #4caf50; }
.reservation-section-title--pending { color: #ffc107; }
.reservation-section-title--queue { color: #ff9800; }
.reservation-section-title--out { color: #f44336; }

.reservation-section-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    padding-left: 2px;
}

.reservation-player-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}
.reservation-player-card:last-child {
    margin-bottom: 0;
}

.reservation-player-main {
    flex: 1;
    min-width: 0;
}

.reservation-player-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.reservation-player-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.reservation-player-status {
    font-size: 11px;
    font-weight: 600;
}
.reservation-player-status--in-game { color: #4caf50; }
.reservation-player-status--queue { color: #ff9800; }
.reservation-player-status--out { color: #f44336; }

.reservation-player-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.reservation-player-card--dimmed {
    opacity: 0.75;
}

.game-management-search-item--muted {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.game-management-placeholder {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.game-info-block {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--tg-theme-text-color);
}

.game-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.game-info-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.game-info-block--info .game-info-item--card {
    background: var(--tg-theme-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    gap: 8px;
}

.game-info-icon {
    display: inline-flex;
    width: 18px;
    justify-content: center;
    opacity: 0.95;
}

.game-info-block--info .game-info-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.1px;
}

.game-info-label--title {
    margin-bottom: 10px;
}

.game-info-block--info .game-info-value {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.game-info-value--primary {
    font-size: 16px;
    font-weight: 900;
}

.game-info-main {
    display: block;
}

.game-info-sub {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tg-theme-hint-color);
    line-height: 1.25;
}

.game-info-description--card {
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--tg-theme-bg-color);
}

.game-info-description-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
    color: var(--tg-theme-text-color);
    font-size: 14px;
    font-weight: 500;
}

@media (min-width: 520px) {
    .game-info-grid--cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.game-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-info-label {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    font-weight: 500;
}

.game-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
}

.game-info-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.game-reservation-card {
    background: var(--tg-theme-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.game-reservation-card--confirmed {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.2);
}

.my-reservation {
    display: block;
}

.my-reservation-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.my-reservation-title {
    min-width: 180px;
    flex: 1;
}

.my-reservation-title-main {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.my-reservation-title-sub {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.my-reservation-cancel {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 68, 68, 0.35);
    background: rgba(255, 68, 68, 0.10);
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.my-reservation-cancel:active {
    opacity: 0.85;
    transform: scale(0.99);
}

.my-reservation-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.my-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.my-chip--paid {
    background: rgba(76, 175, 80, 0.10);
    border-color: rgba(76, 175, 80, 0.25);
    color: #2e7d32;
}

.my-chip--unpaid {
    background: rgba(255, 152, 0, 0.12);
    border-color: rgba(255, 152, 0, 0.28);
    color: #ef6c00;
}

.my-chip--free {
    background: rgba(156, 39, 176, 0.12);
    border-color: rgba(156, 39, 176, 0.28);
    color: #7b1fa2;
}

.my-chip--confirmed {
    background: rgba(76, 175, 80, 0.10);
    border-color: rgba(76, 175, 80, 0.25);
}

.my-chip--reserved {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

.my-reservation-hint {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.my-reservation-pay-btn {
    margin-top: 12px;
}

/* Eliminated players rating (modern UI) */
.elim-search-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--tg-theme-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: var(--tg-theme-text-color);
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.elim-search-input:focus {
    outline: none;
    border-color: var(--tg-theme-button-color);
}

.elim-sort-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.elim-sort-btn {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
}

.elim-sort-btn:active {
    opacity: 0.85;
    transform: scale(0.99);
}

.elim-scroll {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.elim-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elim-card {
    background: var(--tg-theme-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elim-card-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elim-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.elim-place {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    box-sizing: border-box;
}

.elim-user {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.elim-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.elim-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.elim-badge--points {
    background: rgba(33, 150, 243, 0.10);
    border-color: rgba(33, 150, 243, 0.25);
}

.elim-badge--bounty {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.28);
}

.elim-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.elim-action-btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.elim-action-btn:active {
    opacity: 0.85;
    transform: scale(0.99);
}

.elim-action-btn--green { background: #4caf50; }
.elim-action-btn--orange { background: #ff9800; }
.elim-action-btn--purple { background: #7b1fa2; }
.elim-action-btn--blue { background: #2196f3; }

.elim-action-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

@media (min-width: 420px) {
    .elim-actions {
        grid-template-columns: 1fr 1fr;
    }
}

/* Compact variant (fits ~3 cards per screen on mobile) */
.elim-rating--compact .elim-search-input {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 8px;
}

.elim-rating--compact .elim-sort-row {
    gap: 8px;
    margin-bottom: 8px;
}

.elim-rating--compact .elim-sort-btn {
    padding: 7px 10px;
    font-size: 12px;
}

.elim-rating--compact .elim-scroll {
    max-height: 360px;
}

.elim-rating--compact .elim-card {
    padding: 12px;
    border-radius: 14px;
    gap: 10px;
}

.elim-rating--compact .elim-card-head {
    gap: 8px;
}

.elim-rating--compact .elim-place {
    min-width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 13px;
    padding: 0 8px;
}

.elim-rating--compact .elim-user {
    font-size: 16px;
}

.elim-rating--compact .elim-badges {
    gap: 6px;
}

.elim-rating--compact .elim-badge {
    padding: 5px 8px;
    font-size: 11px;
}

.elim-rating--compact .elim-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.elim-rating--compact .elim-action-btn {
    padding: 9px 10px;
    font-size: 12px;
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-reserve-btn {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.home-reserve-btn:active {
    opacity: 0.8;
}

.home-reserve-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}


