﻿:root {
    --primary-bg: #152331;
    --secondary-bg: #1c3744;
    --primary-color: #b1c8d4;
    --secondary-color: #2ecc71;
    --dark-bg: #1a1a1a;
    --light-text: #ffffff;
}

/* ==========================================================================
   Base layout
========================================================================== */

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family:
        "Noto Sans Armenian",
        "Noto Sans Mono",
        "Stardos Stencil",
        "Geneva",
        Arial,
        sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    background:
        linear-gradient(rgba(4, 11, 15, 0.22), rgba(4, 11, 15, 0.22)),
        radial-gradient(circle at top left, rgba(0, 106, 142, 0.09), transparent 28%),
        radial-gradient(circle at bottom right, rgba(148, 185, 198, 0.025), transparent 24%),
        url("/images/bg.webp"),
        linear-gradient(145deg, #091820 0%, #040b0f 100%);
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat;
    background-size: auto, auto, auto, 120px, auto;
    color: var(--primary-color);
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

body::before {
    display: none;
}

.blot-shell {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

.btn:hover {
    --bs-btn-hover-border-color: transparent;
    border-color: transparent;
    background-color: rgba(255, 255, 255, 0.04);
}

.hr {
    border-top: 1px dashed #e7eaec;
    margin: 20px 0;
}

.link {
    word-break: break-word;
}

.link:hover {
    text-decoration: underline;
    color: #0d6efd;
}

.row {
    margin-right: 0;
    margin-left: 0;
}

.main {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #0f1c23;
    background-image: url("/images/moroccan-flower-soft-white.png?v=20260710.2");
    background-repeat: repeat;
    background-position: top left;
    background-size: 140px 140px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("/images/blot-content-scene-landscape.webp?v=20260711.1");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.065;
}

.header {
    position: relative;
    flex-shrink: 0;
    height: 58px;
    padding: 0 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 999;
}

.header > .row {
    position: relative;
    z-index: 1;
}

.footer {
    position: relative;
    flex-shrink: 0;
    height: 38px;
    padding: 0 10px;
    align-items: center;
    color: rgba(232, 243, 248, 0.72);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 12px;
}

.footer > .row,
.footer .col {
    align-items: center;
}

.footer .col {
    display: flex;
}

.content {
    position: relative;
    isolation: isolate;
    flex-grow: 1;
    overflow-y: auto;
    background: transparent;
    opacity: 1;
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.main.game-page-active::before {
    display: none;
}

.main.game-page-active .footer {
    display: none !important;
}

@media (max-width: 768px) and (orientation: portrait) {
    .main::before {
        background-image: url("/images/blot-content-scene-portrait.webp?v=20260711.1");
    }
}

.home-page {
    min-height: 100%;
}

.content.page-transition-out {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
}

.content.page-transition-in {
    animation: pageTransitionIn 0.24s ease both;
}

@media (max-width: 900px), (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .main.game-page-active .header,
    .main.game-page-active .footer {
        display: none !important;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .footer {
        display: none !important;
    }
}

/* Transparent Fortune page panels. */
.fortune-page,
.fortune-page .store-panel,
.fortune-page .fortune-panel,
.fortune-page .fortune-hero,
.fortune-page .fortune-wheel-card,
.fortune-page .fortune-side,
.fortune-page .fortune-status,
.fortune-page .fortune-rules-card,
.fortune-page .fortune-rules > div,
.fortune-page .fortune-wallet,
.fortune-page .fortune-status-icon {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 932px) {
    .trnsingle-page .trnsingle-sidebar-box {
        min-height: 0;
        padding: 6px;
        border-radius: 9px;
    }

    .trnsingle-page .trnsingle-sidebar-top {
        flex: 0 1 auto;
    }

    .trnsingle-page .trnsingle-sidebar-title {
        margin-bottom: 5px !important;
        font-size: 11px;
        line-height: 1.1;
    }

    .trnsingle-page .trnsingle-sidebar-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 3px 7px;
        overflow-y: auto;
    }

    .trnsingle-page .trnsingle-sidebar-list .trnsingle-player {
        min-width: 0;
        min-height: 24px;
        padding: 3px 4px;
        gap: 5px;
        border: 1px solid rgba(218, 237, 244, 0.07);
        border-radius: 6px;
        font-size: 10px;
        line-height: 1.1;
    }

    .trnsingle-page .trnsingle-sidebar-list .trnsingle-player span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .trnsingle-page .trnsingle-sidebar-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        margin-top: 5px;
    }

    .trnsingle-page .trnsingle-sidebar-meta > div {
        min-height: 28px;
        padding: 4px 6px;
        border-radius: 7px;
    }

    .trnsingle-page .trnsingle-sidebar-meta span {
        font-size: 9px;
    }

    .trnsingle-page .trnsingle-sidebar-meta strong {
        font-size: 11px;
    }

    .trnsingle-page .trnsingle-sidebar-box .trnsingle-btn {
        min-height: 32px;
        margin-top: 4px !important;
        padding: 5px 7px;
        border-radius: 8px;
        font-size: 10px;
    }

    .trnsingle-page .trnsingle-sidebar-box .trnsingle-btn:first-of-type {
        margin-top: 6px !important;
    }
}

@media (orientation: portrait) and (max-width: 767.98px) {
    .trnsingle-page .trnsingle-content {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .trnsingle-page .trnsingle-main-layout {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: auto;
        flex: 1 1 auto;
    }

    .trnsingle-page .trnsingle-main-layout > div:first-child {
        min-height: 0;
        height: auto;
        flex: 1 1 auto;
        align-self: stretch;
    }

    .trnsingle-page .trnsingle-sidebar-box {
        height: auto;
        min-height: 0;
        max-height: none;
        flex: 0 0 auto;
        width: 100%;
        align-self: stretch;
        display: flex;
        overflow: visible;
    }

    .trnsingle-page .trnsingle-sidebar-top {
        flex: 0 0 auto;
    }

    .trnsingle-page .trnsingle-sidebar-bottom {
        margin-top: 6px;
    }

    .trnsingle-page .trnsingle-games-stage,
    .trnsingle-page .trnsingle-games-grid {
        flex: 1 1 auto;
        min-height: 0;
    }

    .trnsingle-page .trnsingle-games-stage {
        height: auto;
    }

    .trnsingle-page .trnsingle-games-grid {
        height: auto;
        flex: 1 1 auto;
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .trnsingle-page .trnsingle-sidebar-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .trnsingle-page .trnsingle-sidebar-meta strong {
        font-size: 10px;
        line-height: 1.15;
    }

    .trnsingle-page .trnsingle-sidebar-meta > div:nth-child(2) {
        display: block;
    }
}

#playersModal .modal-title,
#prizeModal .modal-title {
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.2;
}

#playersModal .modal-body,
#prizeModal .modal-body {
    font-size: clamp(13px, 1.1vw, 15px);
}

#playersModal .trnsingle-player,
#prizeModal .trnsingle-prize-item {
    min-height: 46px;
    padding: 10px 12px;
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.25;
}

#playersModal .trnsingle-player strong,
#prizeModal .trnsingle-prize-item strong {
    font-size: clamp(14px, 1.2vw, 16px);
}

#playersModal .btn-close,
#prizeModal .btn-close {
    width: 18px;
    height: 18px;
}

/* Lobby quick actions */
.lobby-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 108px;
    gap: 10px;
    margin: 0 16px 14px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

@media (min-width: 933px) {
    .home-page .lobby > .lobby-dashboard {
        grid-template-rows: 120px;
        min-height: 120px;
    }

    .lobby-quick-card {
        gap: 15px;
        min-height: 120px;
        padding: 18px 17px;
    }

    .lobby-quick-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        font-size: 23px;
    }

    .lobby-quick-copy {
        gap: 4px;
    }
}

.lobby-quick-card {
    --quick-color: 85, 210, 255;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    height: 100%;
    padding: 12px 14px;
    overflow: hidden;
    color: #edfaff;
    background:
        radial-gradient(circle at 8% 18%, rgba(var(--quick-color), 0.18), transparent 42%),
        linear-gradient(145deg, rgba(35, 56, 65, 0.96), rgba(15, 29, 36, 0.96));
    border: 1px solid rgba(var(--quick-color), 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lobby-quick-card:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(var(--quick-color), 0.5);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.lobby-quick-shop { --quick-color: 224, 76, 87; }
.lobby-quick-wheel { --quick-color: 255, 200, 78; }
.lobby-quick-reward { --quick-color: 85, 210, 255; }
.lobby-quick-tournament { --quick-color: 157, 139, 255; }

.lobby-quick-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(145deg, rgba(var(--quick-color), 0.96), rgba(var(--quick-color), 0.58));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 7px 16px rgba(var(--quick-color), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 19px;
}

.lobby-quick-copy {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
    flex: 1;
    line-height: 1.25;
}

.lobby-wheel-symbol {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    background: conic-gradient(#ffd76e 0 45deg, #ef7dbd 45deg 90deg, #55d2ff 90deg 135deg, #53dfb6 135deg 180deg, #ffd76e 180deg 225deg, #ef7dbd 225deg 270deg, #55d2ff 270deg 315deg, #53dfb6 315deg 360deg);
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 200, 78, 0.14);
}

.lobby-wheel-symbol::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    background: #fff;
    border: 2px solid #8c6820;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.lobby-wheel-symbol::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    border-width: 5px 4px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
    transform: translateX(-50%);
}

.lobby-quick-copy strong,
.lobby-quick-copy b,
.lobby-quick-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lobby-quick-copy strong {
    color: rgba(232, 247, 252, 0.76);
    font-size: 14px;
    font-weight: 900;
}

.lobby-quick-copy b {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.lobby-quick-copy small {
    color: rgba(224, 241, 247, 0.68);
    font-size: 12px;
    font-weight: 700;
}

.lobby-quick-copy .fa-coins {
    color: #ffd76e;
    font-size: 13px;
}

.lobby-quick-arrow {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

@media (orientation: portrait) and (max-width: 767.98px) {
    .home-page {
        padding-top: 3px !important;
        padding-bottom: 3px !important;
    }

    .lobby-dashboard {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, 72px);
        gap: 7px;
        margin: 10px 6px 12px;
    }

    .lobby-quick-card {
        gap: 8px;
        padding: 9px 10px;
        border-radius: 16px;
    }

    .lobby-quick-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 16px;
    }

    .lobby-quick-copy strong {
        font-size: 13px;
    }

    .lobby-quick-copy b {
        font-size: 16px;
    }

    .lobby-quick-copy small {
        font-size: 10px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .lobby-dashboard {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: 52px;
        gap: 6px;
        flex: 0 0 52px;
        margin: 14px 6px 5px;
    }

    .lobby-quick-card {
        gap: 6px;
        padding: 6px 8px;
        border-radius: 14px;
    }

    .lobby-quick-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 14px;
    }

    .lobby-quick-copy strong {
        font-size: 11px;
    }

    .lobby-quick-copy b {
        font-size: 13px;
    }

    .lobby-quick-copy small {
        font-size: 9px;
    }

    .lobby-quick-arrow {
        display: none;
    }
}

/* Keep the festive reward skin above the shared game-modal skin. */
.main .blot-levelup-icon span {
    font-size: 0;
}

.main .blot-levelup-icon span::before {
    content: "\f091";
    color: #6f3f00;
    font-family: "Font Awesome 6 Free";
    font-size: 36px;
    font-weight: 900;
}

.main .blot-levelup {
    max-width: 370px;
    padding: 24px 20px 18px;
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 214, 92, 0.25), transparent 38%),
        radial-gradient(circle at 0 100%, rgba(85, 210, 255, 0.16), transparent 42%),
        linear-gradient(155deg, rgba(42, 38, 91, 0.99), rgba(13, 37, 52, 0.99) 65%);
    border-color: rgba(255, 218, 112, 0.42);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), 0 0 42px rgba(116, 95, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.main .blot-levelup-icon {
    width: 82px;
    height: 82px;
    background: linear-gradient(145deg, #fff1a8, #ffc83f 48%, #f59e0b);
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.42), 0 0 0 8px rgba(255, 200, 63, 0.09);
}

.main .blot-levelup-title {
    color: #fff8dc;
    font-size: 27px;
}

.main .blot-levelup-level {
    margin: 5px 0 18px;
    color: rgba(236, 243, 255, 0.8);
    font-size: 16px;
}

.main .blot-levelup-reward {
    padding: 16px;
    background: linear-gradient(110deg, rgba(255, 215, 106, 0.12), rgba(85, 210, 255, 0.08)), rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 218, 112, 0.22);
}

.main .blot-levelup-reward-value {
    color: #ffdc69;
    font-size: 32px;
}

.main .blot-levelup-reward-value .blot-levelup-chip-icon {
    margin-left: 7px;
    color: #ffd45f;
    font-size: 0.72em;
    filter: drop-shadow(0 0 8px rgba(255, 205, 68, 0.45));
    vertical-align: 0.04em;
}

.main .blot-levelup-button {
    height: 52px;
    background: linear-gradient(110deg, #00a6d8, #4d63e8 55%, #8b5cf6);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 28px rgba(58, 89, 225, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 16px;
}

/* Festive progress reward */
.blot-levelup {
    max-width: 370px;
    padding: 24px 20px 18px;
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 214, 92, 0.25), transparent 38%),
        radial-gradient(circle at 0 100%, rgba(85, 210, 255, 0.16), transparent 42%),
        linear-gradient(155deg, rgba(42, 38, 91, 0.99), rgba(13, 37, 52, 0.99) 65%);
    border: 1px solid rgba(255, 218, 112, 0.42);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 42px rgba(116, 95, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.blot-levelup-glow {
    top: -110px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 215, 91, 0.42), rgba(255, 174, 48, 0.1) 38%, transparent 70%);
    filter: blur(8px);
    animation: blotRewardGlow 2.4s ease-in-out infinite;
}

.blot-levelup-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 14px;
    background: linear-gradient(145deg, #fff1a8, #ffc83f 48%, #f59e0b);
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 12px 30px rgba(245, 158, 11, 0.42),
        0 0 0 8px rgba(255, 200, 63, 0.09);
    animation: blotRewardIcon 2.2s ease-in-out infinite;
}

.blot-levelup-icon span {
    font-size: 0;
}

.blot-levelup-icon span::before {
    content: "\f091";
    color: #6f3f00;
    font-family: "Font Awesome 6 Free";
    font-size: 36px;
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.blot-levelup-title {
    color: #fff8dc;
    font-size: 27px;
    letter-spacing: -0.025em;
    text-shadow: 0 3px 18px rgba(255, 200, 63, 0.2);
}

.blot-levelup-level {
    margin: 5px 0 18px;
    color: rgba(236, 243, 255, 0.8);
    font-size: 16px;
}

.blot-levelup-level span {
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.blot-levelup-reward {
    margin-bottom: 16px;
    padding: 16px;
    background:
        linear-gradient(110deg, rgba(255, 215, 106, 0.12), rgba(85, 210, 255, 0.08)),
        rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 218, 112, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blot-levelup-reward-label {
    color: rgba(255, 245, 205, 0.72);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blot-levelup-reward-value {
    color: #ffdc69;
    font-size: 32px;
    text-shadow: 0 0 22px rgba(255, 210, 78, 0.35);
}

.blot-levelup-button {
    height: 52px;
    overflow: hidden;
    background: linear-gradient(110deg, #00a6d8, #4d63e8 55%, #8b5cf6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 28px rgba(58, 89, 225, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 16px;
}

.blot-levelup-button::after {
    content: "";
    position: absolute;
    top: -70%;
    left: -35%;
    width: 28%;
    height: 240%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(24deg);
    animation: blotRewardButtonShine 2.8s ease-in-out infinite;
}

.blot-levelup-confetti {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blot-levelup-confetti i {
    --confetti-color: #ffd75e;
    position: absolute;
    top: -18px;
    width: 7px;
    height: 12px;
    background: var(--confetti-color);
    border-radius: 2px;
    opacity: 0;
    animation: blotRewardConfetti 3.4s linear infinite;
}

.blot-levelup-confetti i:nth-child(1) { left: 7%; animation-delay: -0.2s; }
.blot-levelup-confetti i:nth-child(2) { left: 15%; --confetti-color: #55d2ff; animation-delay: -1.7s; }
.blot-levelup-confetti i:nth-child(3) { left: 24%; --confetti-color: #ef7dbd; animation-delay: -2.6s; }
.blot-levelup-confetti i:nth-child(4) { left: 34%; --confetti-color: #53dfb6; animation-delay: -0.9s; }
.blot-levelup-confetti i:nth-child(5) { left: 43%; --confetti-color: #9d8bff; animation-delay: -2.1s; }
.blot-levelup-confetti i:nth-child(6) { left: 53%; animation-delay: -1.2s; }
.blot-levelup-confetti i:nth-child(7) { left: 62%; --confetti-color: #55d2ff; animation-delay: -2.9s; }
.blot-levelup-confetti i:nth-child(8) { left: 71%; --confetti-color: #ef7dbd; animation-delay: -0.5s; }
.blot-levelup-confetti i:nth-child(9) { left: 80%; --confetti-color: #53dfb6; animation-delay: -1.9s; }
.blot-levelup-confetti i:nth-child(10) { left: 89%; --confetti-color: #9d8bff; animation-delay: -2.4s; }
.blot-levelup-confetti i:nth-child(11) { left: 96%; animation-delay: -1s; }
.blot-levelup-confetti i:nth-child(12) { left: 48%; --confetti-color: #ff8f5e; animation-delay: -3.1s; }

@keyframes blotRewardGlow {
    0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(0.92); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@keyframes blotRewardIcon {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes blotRewardButtonShine {
    0%, 58% { left: -35%; opacity: 0; }
    68% { opacity: 1; }
    88%, 100% { left: 125%; opacity: 0; }
}

@keyframes blotRewardConfetti {
    0% { opacity: 0; transform: translateY(-15px) rotate(0deg); }
    10% { opacity: 0.9; }
    85% { opacity: 0.75; }
    100% { opacity: 0; transform: translateY(500px) rotate(620deg); }
}

@media (prefers-reduced-motion: reduce) {
    .blot-levelup-glow,
    .blot-levelup-icon,
    .blot-levelup-button::after,
    .blot-levelup-confetti i {
        animation: none !important;
    }
}

@keyframes pageTransitionIn {
    from {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.footer-menu a {
    display: inline-block;
    margin-left: 12px;
    color: rgba(232, 243, 248, 0.74);
    font-weight: 600;
    transition: color 0.18s ease;
}

.footer-menu a:hover {
    color: #8fd5eb;
}

.btn {
    display: inline-flex;
    align-items: center;
}

.btn > i {
    font-size: 22px;
}

.btn > img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.btn-outline-light {
    --bs-btn-border-color: #f8f9fa33;
}

.btn-primary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.13);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.16);
    --bs-btn-active-bg: rgba(255, 255, 255, 0.16);
    --bs-btn-active-border-color: rgba(255, 255, 255, 0.18);
    --bs-btn-color: var(--primary-color);
    --bs-btn-hover-color: white;
    border-radius: 10px;
}

.header .btn {
    height: 38px;
    border-radius: 8px;
}

.header a[href="/fortune"] {
    height: 38px;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 10px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    display: none;
}

.header a[href="/fortune"]:hover {
    background: transparent;
    transform: none;
}

.text-purple {
    color: #ff7ad9;
}

.dropdown-menu {
    padding: clamp(12px, 2vw, 22px) 0;
    background:
        linear-gradient(160deg, rgba(22, 45, 55, 0.96), rgba(10, 20, 25, 0.98)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    overflow: visible;
}

@media (min-width: 933px) {
    .header-settings-dropdown > .dropdown-menu {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

.dropdown-item {
    padding: 10px 14px;
    color: rgba(232, 243, 248, 0.82);
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.09);
}

.settings-language-current {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(232, 243, 248, 0.58);
    font-size: 12px;
    font-weight: 700;
}

.settings-language-current img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.settings-language-menu {
    position: relative;
}

.settings-language-list {
    display: none;
    position: absolute;
    top: 0;
    right: calc(100% + 8px);
    z-index: 1100;
    width: 150px;
    margin: 0;
    padding: 4px;
    border-radius: 9px;
    background:
        linear-gradient(160deg, rgba(22, 45, 55, 0.98), rgba(10, 20, 25, 0.99)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.settings-language-list-open {
    display: block;
}

.settings-language-list .dropdown-item {
    border-radius: 7px;
    padding: 8px 10px;
    font-size: 13px;
}

.settings-language-list .dropdown-item.active {
    color: #fff;
    background: rgba(27, 161, 213, 0.25);
}

.settings-language-icon-open {
    transform: rotate(-90deg);
}

.settings-mobile-item,
.settings-mobile-divider {
    display: none;
}

@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    .settings-fullscreen-item,
    .settings-fullscreen-divider,
    .blot-mobile-fullscreen {
        display: none !important;
    }
}

.blot-pwa-standalone .settings-fullscreen-item,
.blot-pwa-standalone .settings-fullscreen-divider,
.blot-pwa-standalone .blot-mobile-fullscreen {
    display: none !important;
}

@media (max-width: 932px) {
    html,
    body {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .blot-shell {
        min-height: 100dvh;
        max-height: 100dvh;
    }

    .main {
        min-height: 0;
        overflow: hidden;
    }

    .settings-mobile-item,
    .settings-mobile-divider {
        display: block;
    }

    .header .blot-balance-animated strong .text-white {
        font-size: 19px;
        font-weight: 900;
        line-height: 1;
    }

    .header .btn-purple {
        min-width: 60px;
        padding-right: 12px !important;
        padding-left: 12px !important;
        justify-content: center;
    }

    .header-settings-dropdown {
        --mobile-header-menu-width: min(72vw, 300px);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1001;
        display: flex;
        align-items: center;
        margin: 0 !important;
        transform: none;
    }

    .header-settings-dropdown .header-mobile-menu-button {
        width: 40px;
        padding: 0 !important;
        justify-content: center;
    }

    .header-settings-dropdown .header-mobile-menu-button::after {
        display: none;
    }

    .header .header-home-link,
    .header-settings-dropdown .fa-gear {
        display: none !important;
    }

    .header-settings-dropdown .fa-bars {
        display: inline-block !important;
    }

    .header-settings-dropdown .dropdown-menu {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        right: auto !important;
        left: 0 !important;
        width: var(--mobile-header-menu-width);
        min-width: 0;
        height: 100dvh;
        padding: calc(env(safe-area-inset-top) + 14px) 8px calc(env(safe-area-inset-bottom) + 14px);
        margin: 0 !important;
        transform: none;
        border-width: 0 1px 0 0;
        border-radius: 0 18px 18px 0;
        box-shadow: 18px 0 50px rgba(0, 0, 0, 0.42);
        overflow: visible;
    }

    .header-settings-dropdown .dropdown-menu.show {
        animation: mobileHeaderMenuIn 0.22s ease-out both;
    }

    .header-settings-dropdown .settings-language-list {
        position: absolute !important;
        top: 0;
        right: auto !important;
        left: calc(100% + 8px) !important;
        width: min(38vw, 170px) !important;
        margin: 0 !important;
        background:
            linear-gradient(160deg, rgba(22, 45, 55, 0.99), rgba(8, 18, 23, 0.99)),
            url("/images/carbon-fibre.png") !important;
        box-shadow: 12px 12px 32px rgba(0, 0, 0, 0.38) !important;
    }

    .header-settings-dropdown .settings-language-list-open {
        animation: mobileLanguageMenuIn 0.18s ease-out both;
    }

    .header-settings-dropdown .settings-language-current .fa-chevron-left {
        transform: rotate(180deg) !important;
    }

    .header-settings-dropdown .settings-language-current .settings-language-icon-open {
        transform: rotate(0deg) !important;
    }

    .header .dropdown-menu {
        min-width: 190px;
        padding: 5px;
        border-radius: 9px;
    }

    .header .dropdown-item {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 14px;
    }

    .header .dropdown-divider {
        margin: 3px 0;
    }

    .header .form-switch .form-check-input {
        width: 2.35rem;
        height: 1.25rem;
        margin-left: 10px;
    }

    .settings-language-current {
        font-size: 13px;
    }

    .settings-language-current img {
        width: 20px;
        height: 20px;
    }

    .settings-language-list {
        width: 132px;
        padding: 3px;
        border-radius: 8px;
    }

    .settings-language-list .dropdown-item {
        padding: 7px 8px;
        font-size: 12px;
    }
}

@keyframes mobileHeaderMenuIn {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes mobileLanguageMenuIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (orientation: portrait) and (max-width: 932px) {
    .header .settings-language-menu {
        position: relative;
    }

    .header .btn-danger {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .header .settings-language-list {
        position: static;
        width: 100%;
        margin-top: 4px;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.055);
    }

    .header .settings-language-icon-open {
        transform: rotate(90deg);
    }
}

.dropdown-divider {
    margin: 0;
}

.btn-purple {
    --bs-btn-bg: #6f42c1;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: #7d4edf;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: #7d4edf;
    --bs-btn-active-border-color: transparent;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    position: relative;
    overflow: hidden;
    font-weight: 900;
    background: linear-gradient(135deg, #8b5cf6, #5b2bbf);
    box-shadow: 0 8px 18px rgba(111, 66, 193, 0.2);
    border-radius: 10px;
}

.btn-purple:hover,
.btn-purple:active {
    background: linear-gradient(135deg, #9b6dff, #6f42c1);
}

.btn-purple::after,
.header .btn-danger::after {
    content: "";
    position: absolute;
    top: -45%;
    bottom: -45%;
    left: -70%;
    width: 44%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-24deg);
    opacity: 0;
    pointer-events: none;
}

.btn-purple:hover::after,
.header .btn-danger:hover::after {
    animation: button-shine 0.72s ease;
}

@keyframes button-shine {
    0% {
        left: -70%;
        opacity: 0;
    }

    18% {
        opacity: 0.9;
    }

    100% {
        left: 125%;
        opacity: 0;
    }

}

.header .btn-danger {
    --bs-btn-bg: #dc3545;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: #ef4444;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: #ef4444;
    --bs-btn-active-border-color: transparent;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    position: relative;
    overflow: hidden;
    background: #c83d4f;
    box-shadow: none;
    border-radius: 8px;
}

.header .btn-danger:hover,
.header .btn-danger:active {
    background: #dc4a5d;
}

.header .btn-purple {
    background: #6846a9;
    box-shadow: none;
}

.header .btn-purple:hover,
.header .btn-purple:active {
    background: #7857b8;
}

.header .btn-purple::after,
.header .btn-danger::after {
    display: none;
}

.header strong {
    min-height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    color: #ffd36a;
    background: transparent;
    border: none;
    border-radius: 10px;
}

.header strong .text-white {
    color: #fff !important;
}

#openProfile {
    gap: 8px;
    background: transparent;
    border: none;
}

#openProfile:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: transparent;
}

#openProfile img {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.22);
}

#openProfile.blot-user-vip {
    color: #fff;
    background: #3a3347;
    border-color: rgba(245, 191, 36, 0.38);
    box-shadow: none;
}

#openProfile.blot-user-vip img {
    border-color: #fbbf24;
}

.fs-7 {
    font-size: 0.8rem !important;
}

.fs-8 {
    font-size: 0.6rem !important;
}

@media (min-width: 768px) {
    .fs-md-5 {
        font-size: 1.25rem !important;
    }

    .fs-md-6 {
        font-size: 1rem !important;
    }

}

@media (max-width: 768px) {
    .dropdown-toggle::after {
        display: none;
    }

}

.form-switch {
    display: inline-block;
    padding: 0;
}

.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.3rem;
    border-radius: 2rem;
    float: none;
    margin-left: 15px;
}

.form-switch .form-check-input:checked {
    background-color: #3fb25f;
    border-color: #3fb25f;
}

.form-switch .form-check-input:active,
.form-check-input:focus {
    box-shadow: none;
}

.form-switch .form-check-label {
    padding-top: 0.15rem;
    padding-left: 0.5rem;
}

/* ==========================================================================
   Shared Bootstrap modals
========================================================================== */

.modal-content {
    position: relative;
    background: linear-gradient(180deg, #1b2b34 0%, #142129 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    color: white;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.modal-content:not(.blot-trump-modal):not(.blot-score):not(.blot-result):not(.blot-levelup)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("/images/moroccan-flower-soft-white.png?v=20260710.2");
    background-repeat: repeat;
    background-position: top left;
    background-size: 140px 140px;
    pointer-events: none;
}

.modal-content > * {
    position: relative;
    z-index: 1;
}

.modal-header {
    background: linear-gradient(135deg, rgba(0, 139, 187, 0.18), rgba(255, 255, 255, 0.03));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 18px 22px;
}

.modal-title {
    font-weight: 800;
    font-size: 1.15rem;
}

.modal-body {
    padding: 22px;
}

.btn-close {
    filter: invert(1);
    opacity: 0.6;
}

.btn-close:focus {
    box-shadow: none;
}

@media (max-width: 932px) {
    .content,
    .content.page-transition-out,
    .content.page-transition-in {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
    }

    .modal.fade,
    .modal-backdrop.fade {
        transition: opacity 0.14s linear !important;
    }

    .blot-waiting-room,
    .blot-friend-invite,
    .blot-socket-notice,
    .blot-chat-menu,
    .wheel-reward-popup {
        transition: none !important;
    }

    .blot-game-actions.blot-game-actions-show {
        animation: none !important;
        opacity: 1 !important;
        transform: translateX(-50%) !important;
    }

    .modal.fade .modal-dialog {
        opacity: 0;
        transform: translate3d(0, 8px, 0) scale(0.985) !important;
        transition:
            transform 0.16s cubic-bezier(0.2, 0.75, 0.25, 1),
            opacity 0.12s linear !important;
        will-change: transform, opacity !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .modal.show .modal-dialog {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) !important;
    }

    .modal-backdrop.show {
        opacity: 0.42;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .modal-content,
    .profile-modal,
    .vip-modal,
    .payment-method-modal,
    .payment-success-modal,
    .not-enough-chips-modal,
    .game-leave-modal .modal-content,
    .friend-table-modal .modal-content,
    .tournament-prizes-modal .modal-content {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background:
            linear-gradient(160deg, rgba(31, 58, 70, 0.99), rgba(13, 27, 35, 1)) !important;
        border-color: rgba(177, 200, 212, 0.14) !important;
        box-shadow: none !important;
        contain: paint;
        isolation: isolate;
    }

    .modal-content::after,
    .profile-modal::before,
    .vip-modal::before,
    .payment-method-modal::before,
    .payment-success-modal::before,
    .wheel-reward-modal::before {
        display: none !important;
    }

    .blot-trump-modal,
    .blot-score,
    .blot-result,
    .blot-levelup,
    .wheel-reward-modal {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background:
            linear-gradient(160deg, rgba(31, 58, 70, 0.99), rgba(13, 27, 35, 1)) !important;
        border-color: rgba(177, 200, 212, 0.14) !important;
        box-shadow: none !important;
        will-change: auto;
    }

    .blot-trump-modal.blot-trump-show,
    .blot-score.blot-score-show,
    .blot-result.blot-result-show,
    .blot-levelup.blot-levelup-show,
    .wheel-reward-popup.active .wheel-reward-modal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
    }

    .blot-trump-modal.blot-trump-show {
        visibility: visible !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .blot-trump-modal.blot-trump-mode-contra.blot-trump-show,
    .blot-trump-modal.blot-trump-mode-recontra.blot-trump-show {
        transform: translateX(-50%) !important;
    }

    .blot-score.blot-score-show,
    .blot-result.blot-result-show,
    .wheel-reward-popup.active .wheel-reward-modal {
        transform: none !important;
    }

    .blot-levelup.blot-levelup-show {
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .blot-levelup-glow {
        display: none !important;
    }

    .main.game-page-active .content {
        filter: none !important;
    }

    .main.game-page-active .blot-table,
    .main.game-page-active .blot-waiting-room,
    .main.game-page-active .blot-friend-invite,
    .main.game-page-active .blot-socket-notice,
    .main.game-page-active .blot-scoreboard,
    .main.game-page-active .blot-taken-score,
    .main.game-page-active .blot-mobile-game-menu,
    .main.game-page-active .blot-avatar,
    .main.game-page-active .blot-player-name,
    .main.game-page-active .blot-trump-badge,
    .main.game-page-active .blot-alert,
    .main.game-page-active .blot-game-actions,
    .main.game-page-active .blot-first-turn,
    .main.game-page-active .blot-vip-badge,
    .main.game-page-active .blot-player-rating,
    .main.game-page-active .blot-combination-slot {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .main.game-page-active .blot-player-active .blot-avatar,
    .main.game-page-active .blot-first-turn,
    .main.game-page-active .blot-player-vip .blot-avatar::before,
    .main.game-page-active .blot-player-vip .blot-player-name::before {
        animation: none !important;
    }

    .main.game-page-active .blot-table {
        box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.24) !important;
    }

    .main.game-page-active .blot-scoreboard {
        width: 94px;
        gap: 7px;
        padding: 8px 10px;
        border-radius: 12px;
        justify-content: center;
    }

    .main.game-page-active .blot-score-team {
        width: 32px;
    }

    .main.game-page-active .blot-score-label {
        margin-bottom: 2px;
        font-size: 9px;
        letter-spacing: 0.4px;
    }

    .main.game-page-active .blot-score-value {
        font-size: 16px;
    }

    .main.game-page-active .blot-score-divider {
        height: 34px;
    }

    .main.game-page-active .blot-taken-score {
        width: 94px;
        border-radius: 8px;
        font-size: 13px;
        background-size: 14px auto;
    }

    .main.game-page-active .blot-taken-score > div {
        padding: 6px 0;
    }

    .main.game-page-active .blot-waiting-room {
        width: min(250px, calc(100vw - 52px));
        padding: 12px 14px;
        border-radius: 14px;
        background:
            linear-gradient(180deg, rgba(20, 82, 64, 0.96), rgba(10, 49, 39, 0.98)),
            url("/images/carbon-fibre.png");
        border-color: rgba(126, 226, 170, 0.18);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24) !important;
    }

    .main.game-page-active .blot-waiting-title {
        font-size: 12px;
    }

    .main.game-page-active .blot-waiting-count {
        margin-top: 5px;
        font-size: 26px;
    }

    .main.game-page-active .blot-waiting-text {
        margin-top: 5px;
        font-size: 10px;
    }

    .profile-dialog {
        --bs-modal-width: min(360px, calc(100vw - 24px));
        margin: 8px auto;
    }

    .profile-modal {
        padding: 14px;
        border-radius: 16px;
    }

    .profile-modal::before {
        height: 96px;
    }

    .profile-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .profile-hero {
        gap: 10px;
        padding-right: 30px;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
    }

    .profile-name {
        font-size: 16px;
    }

    .profile-rank {
        padding: 4px 8px;
        font-size: 10px;
    }

    .profile-main-stats {
        gap: 7px;
        margin-top: 7px;
    }

    .profile-main-stat {
        padding: 8px 9px;
        border-radius: 10px;
    }

    .profile-winrate-value,
    .profile-games-value {
        font-size: 26px;
    }

    .profile-stats {
        gap: 6px;
        margin-top: 7px;
    }

    .profile-stat {
        padding: 6px;
        border-radius: 8px;
    }

    .profile-stat-icon {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
        font-size: 10px;
    }

    .profile-detail-grid {
        gap: 7px;
        margin-top: 8px;
    }

    .profile-detail-grid > div {
        padding: 8px 9px;
    }

    .game-leave-modal .modal-dialog {
        max-width: min(320px, calc(100vw - 26px));
        margin-left: auto;
        margin-right: auto;
    }

    .game-leave-modal .modal-content {
        border-radius: 16px;
    }

    .game-leave-modal .modal-header,
    .game-leave-modal .modal-footer {
        padding: 10px 12px;
    }

    .game-leave-modal .modal-body {
        padding: 12px;
        font-size: 12px;
    }

    .game-leave-modal .modal-title {
        font-size: 14px;
    }

    .game-leave-modal .btn {
        min-width: 70px;
        height: 34px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Profile modal
========================================================================== */

.red-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #ef4444;
    font-size: 28px;
    z-index: 5;
}

/* PROGRESS */
.progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.progress-bar {
    width: 0%;
    background: #f59e0b;
    transition: width 1.2s ease;
}

/* PROFILE MODAL */
.profile-dialog {
    --bs-modal-width: 460px;
}

.profile-modal {
    position: relative;
    padding: 22px;
    border-radius: 20px;
    background:
        linear-gradient(160deg, rgba(22, 45, 55, 0.96), rgba(10, 20, 25, 0.98)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-modal::before {
    content: "";
    position: absolute;
    inset: -2px -2px auto;
    height: 150px;
    background:
        linear-gradient(90deg, rgba(0, 139, 187, 0.28), transparent 55%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.22), transparent 44%);
    border-radius: inherit;
    filter: blur(7px);
    opacity: 0.9;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
    pointer-events: none;
}

.profile-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e8f3f8;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    z-index: 3;
}

.profile-close:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fff;
}

.profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 36px;
    z-index: 1;
}

.profile-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.profile-level {
    position: absolute;
    right: -4px;
    bottom: -4px;
    min-width: 34px;
    height: 34px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #401f00;
    font-weight: 900;
    background: linear-gradient(135deg, #ffe07a, #f59e0b);
    border: 3px solid #13252d;
    border-radius: 50%;
}

.profile-main {
    min-width: 0;
    flex: 1;
}

.profile-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.profile-name {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.profile-id {
    margin-top: 4px;
    color: rgba(232, 243, 248, 0.62);
    font-size: 12px;
}

.profile-vip {
    padding: 5px 9px;
    color: #3a2200;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #ffdf73, #f59e0b);
    border-radius: 7px;
}

.profile-vip-days {
    margin-left: 5px;
    color: rgba(58, 34, 0, 0.72);
    font-size: 10px;
    font-weight: 900;
}

.profile-rank {
    margin-top: 12px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffd36a;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 8px;
}

.profile-rank-newbie {
    color: #ffd36a;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(255, 211, 106, 0.12));
    border-color: rgba(245, 158, 11, 0.38);
}

.profile-rank-amateur {
    color: #7dd3fc;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.12));
    border-color: rgba(56, 189, 248, 0.36);
}

.profile-rank-pro {
    color: #ff9a9a;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.28), rgba(244, 63, 94, 0.12));
    border-color: rgba(248, 113, 113, 0.4);
}

.profile-progress-panel {
    position: relative;
    margin-top: 20px;
    padding: 15px;
    background: rgba(4, 13, 17, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.profile-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.profile-progress-head span,
.profile-progress-meta {
    color: rgba(232, 243, 248, 0.66);
    font-size: 12px;
}

.profile-progress-head strong, .profile-progress-head strong span {
    margin-left: 7px;
    color: #fff;
    font-size: 13px;
}

.profile-progress-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.profile-progress-track .progress-bar {
    background: linear-gradient(90deg, #2ecc71, #f59e0b);
    box-shadow: 0 0 16px rgba(46, 204, 113, 0.42);
}

.profile-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.profile-rating {
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.14);
    border-radius: 8px;
    font-weight: 800;
}

.profile-main-stats {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.profile-main-stat {
    position: relative;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-winrate-panel {
    background:
        linear-gradient(135deg, rgba(0, 139, 187, 0.2), rgba(46, 204, 113, 0.1)),
        rgba(255, 255, 255, 0.055);
}

.profile-games-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0.045)),
        rgba(255, 255, 255, 0.055);
    border-color: rgba(245, 158, 11, 0.2);
}

.profile-main-stat::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -34px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.profile-winrate-label {
    position: relative;
    z-index: 1;
    color: rgba(232, 243, 248, 0.68);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.profile-winrate-value {
    position: relative;
    z-index: 1;
    margin-top: 2px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 950;
    line-height: 1;
}

.profile-games-value {
    position: relative;
    z-index: 1;
    margin-top: 5px;
    color: #ffffff;
    font-size: 38px;
    font-weight: 950;
    line-height: 1;
}

.profile-winrate-track {
    position: relative;
    z-index: 1;
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.profile-winrate-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #33b8e0);
    border-radius: inherit;
    box-shadow: 0 0 16px rgba(46, 204, 113, 0.38);
    transition: width 0.35s ease;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.profile-stat {
    min-width: 0;
    padding: 9px 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.profile-stat-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
}

.profile-stat-win {
    color: #40d979;
    background: rgba(46, 204, 113, 0.14);
}

.profile-stat-lose {
    color: #ff7373;
    background: rgba(239, 68, 68, 0.14);
}

.profile-stat-run {
    color: #66c8ff;
    background: rgba(0, 139, 187, 0.18);
}

.profile-stat-label {
    color: rgba(232, 243, 248, 0.62);
    font-size: 10px;
    text-transform: uppercase;
}

.profile-stat-value {
    margin-top: 2px;
    color: #fff;
    font-size: 17px;
    font-weight: 850;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.profile-detail-grid > div {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(0, 139, 187, 0.11);
    border: 1px solid rgba(0, 139, 187, 0.18);
    border-radius: 10px;
}

.profile-detail-grid span {
    color: rgba(232, 243, 248, 0.62);
    font-size: 12px;
}

.profile-detail-grid strong {
    color: #fff;
}

.profile-modal.profile-opponent .profile-progress-panel,
.profile-modal.profile-opponent .profile-detail-grid {
    display: none;
}

.profile-modal.profile-opponent .profile-rank {
    margin-top: 2px;
}

.profile-modal.profile-opponent  .profile-hero {
    padding-bottom: 20px;
}

@media (max-width: 460px) {
    .profile-modal {
        padding: 18px;
    }

    .profile-hero {
        align-items: flex-start;
    }

    .profile-avatar {
        width: 76px;
        height: 76px;
    }

    .profile-name {
        font-size: 18px;
    }

    .profile-main-stats {
        gap: 8px;
    }

    .profile-main-stat {
        padding: 10px 11px;
        border-radius: 12px;
    }

    .profile-winrate-label {
        font-size: 10px;
    }

    .profile-winrate-value,
    .profile-games-value {
        font-size: 30px;
    }

    .profile-winrate-track {
        height: 7px;
        margin-top: 7px;
    }

    .profile-modal::before {
        height: 115px;
    }

}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .profile-dialog {
        margin-top: 4px;
        margin-bottom: 4px;
        --bs-modal-width: min(380px, calc(100vw - 24px));
    }

    .profile-modal {
        max-height: calc(100vh - 8px);
        padding: 9px;
        overflow: hidden;
        border-radius: 14px;
    }

    .profile-modal::before {
        height: 72px;
    }

    .profile-close {
        top: 9px;
        right: 9px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .profile-hero {
        gap: 9px;
        padding-right: 30px;
    }

    .profile-avatar {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }

    .profile-level {
        min-width: 26px;
        height: 26px;
        padding: 0 5px;
        border-width: 2px;
        font-size: 11px;
    }

    .profile-name {
        font-size: 15px;
    }

    .profile-id,
    .profile-progress-head span,
    .profile-progress-meta,
    .profile-detail-grid span {
        font-size: 11px;
    }

    .profile-rank {
        margin-top: 4px;
        padding: 4px 7px;
        font-size: 11px;
    }

    .profile-progress-panel {
        margin-top: 6px;
        padding: 7px;
        border-radius: 9px;
    }

    .profile-progress-head {
        margin-bottom: 4px;
    }

    .profile-main-stats {
        gap: 6px;
        margin-top: 6px;
    }

    .profile-main-stat {
        margin-top: 0;
        padding: 7px 9px;
        border-radius: 10px;
    }

    .profile-winrate-label {
        font-size: 9px;
    }

    .profile-winrate-value,
    .profile-games-value {
        font-size: 24px;
    }

    .profile-winrate-track {
        height: 5px;
        margin-top: 4px;
    }

    .profile-stats {
        gap: 6px;
        margin-top: 6px;
    }

    .profile-stat {
        padding: 5px 6px;
        border-radius: 8px;
    }

    .profile-stat-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 2px;
        font-size: 10px;
    }

    .profile-stat-label {
        font-size: 9px;
    }

    .profile-stat-value {
        margin-top: 1px;
        font-size: 13px;
    }

    .profile-progress-track {
        height: 7px;
    }

    .profile-progress-meta {
        margin-top: 5px;
    }

    .profile-detail-grid {
        gap: 8px;
        margin-top: 8px;
    }

    .profile-detail-grid > div {
        padding: 8px 10px;
    }

    .game-leave-modal .modal-dialog {
        max-width: min(300px, calc(100vw - 26px));
    }

    .game-leave-modal .modal-header,
    .game-leave-modal .modal-footer {
        padding: 8px 10px;
    }

    .game-leave-modal .modal-body {
        padding: 10px;
        font-size: 11px;
    }

    .game-leave-modal .modal-title {
        font-size: 13px;
    }

    .game-leave-modal .btn {
        height: 30px;
        min-width: 64px;
        font-size: 11px;
    }

}

/* ==========================================================================
   VIP modal
========================================================================== */

.vip-dialog {
    --bs-modal-width: 560px;
}

.vip-modal {
    position: relative;
    padding: 22px;
    border-radius: 20px;
    background:
        linear-gradient(160deg, rgba(25, 42, 55, 0.97), rgba(10, 18, 25, 0.99)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vip-modal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 134px;
    background:
        linear-gradient(90deg, rgba(124, 58, 237, 0.26), transparent 58%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.24), transparent 48%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 100%);
    pointer-events: none;
}

.vip-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e8f3f8;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.vip-close:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.22);
}

.vip-hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 38px;
}

.vip-badge {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #3c2500;
    font-size: 30px;
    background: linear-gradient(135deg, #ffe27a, #f59e0b);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.vip-kicker {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    color: #2f1d00;
    font-size: 12px;
    font-weight: 950;
    background: linear-gradient(135deg, #ffe27a, #f59e0b);
    border-radius: 999px;
}

.vip-hero h4 {
    margin: 8px 0 0;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.vip-hero p {
    max-width: 360px;
    margin: 8px 0 0;
    color: rgba(232, 243, 248, 0.72);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.vip-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.vip-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.vip-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
}

.vip-icon-blue {
    color: #65d7ff;
    background: rgba(0, 139, 187, 0.18);
}

.vip-icon-purple {
    color: #c4a2ff;
    background: rgba(124, 58, 237, 0.2);
}

.vip-icon-gold {
    color: #ffd36a;
    background: rgba(245, 158, 11, 0.18);
}

.vip-icon-red {
    color: #ff8b8b;
    background: rgba(239, 68, 68, 0.18);
}

.vip-text {
    min-width: 0;
    color: rgba(243, 248, 250, 0.88);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.vip-packages {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.vip-current-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px 7px;
    margin: 12px 0 -2px;
    padding: 10px 12px;
    color: #fff5d6;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
}

.vip-current-status i,
.vip-current-status strong {
    color: #ffd36a;
}

.vip-card {
    position: relative;
    min-width: 0;
    padding: 13px 8px;
    overflow: hidden;
    color: #eefaff;
    text-align: center;
    background:
        linear-gradient(155deg, rgba(245, 158, 11, 0.12), transparent 52%),
        rgba(255, 255, 255, 0.055);
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 18px rgba(0, 0, 0, 0.16);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vip-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd36a, transparent);
    opacity: 0.55;
}

.vip-card::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 15px;
    height: 15px;
    background: rgba(5, 15, 20, 0.72);
    border: 2px solid rgba(255, 211, 106, 0.6);
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px transparent;
}

.vip-card:hover,
.vip-card-active {
    transform: translateY(-2px);
    background:
        linear-gradient(155deg, rgba(245, 158, 11, 0.25), transparent 58%),
        rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 211, 106, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 28px rgba(0, 0, 0, 0.26);
}

.vip-card-active::before {
    opacity: 1;
}

.vip-card-active::after {
    background: #ffd36a;
    border-color: #ffd36a;
    box-shadow: inset 0 0 0 3px #684109, 0 0 12px rgba(245, 158, 11, 0.42);
}

.vip-card:active {
    transform: translateY(0) scale(0.98);
}

.vip-card:focus-visible {
    outline: 2px solid #ffe89a;
    outline-offset: 3px;
}

.vip-days {
    color: rgba(232, 243, 248, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.vip-price {
    margin-top: 8px;
    color: #ffd36a;
    font-size: 18px;
    font-weight: 950;
}

.vip-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.vip-footer span {
    color: rgba(232, 243, 248, 0.64);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.vip-buy-btn {
    flex: 0 0 auto;
    min-width: 128px;
    height: 40px;
    color: #2f1d00;
    font-weight: 950;
    background: linear-gradient(135deg, #ffe27a, #f59e0b);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.vip-buy-btn:hover {
    filter: brightness(1.06);
}

@media (max-width: 932px) {
    .vip-dialog {
        --bs-modal-width: min(360px, calc(100vw - 24px));
        margin: 8px auto;
    }

    .vip-modal {
        padding: 14px;
        border-radius: 16px;
    }

    .vip-modal::before {
        height: 92px;
    }

    .vip-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .vip-hero {
        gap: 10px;
        padding-right: 30px;
    }

    .vip-badge {
        width: 54px;
        height: 54px;
        border-radius: 15px;
        font-size: 22px;
    }

    .vip-kicker {
        height: 20px;
        padding: 0 8px;
        font-size: 10px;
    }

    .vip-hero h4 {
        margin-top: 5px;
        font-size: 18px;
    }

    .vip-hero p {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.25;
    }

    .vip-benefits {
        gap: 7px;
        margin-top: 10px;
    }

    .vip-item {
        gap: 7px;
        padding: 8px;
        border-radius: 10px;
    }

    .vip-icon {
        width: 28px;
        height: 28px;
        border-radius: 9px;
        font-size: 13px;
    }

    .vip-text {
        font-size: 11px;
        line-height: 1.2;
    }

    .vip-current-status {
        margin: 8px 0 -2px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 11px;
    }

    .vip-packages {
        gap: 7px;
        margin-top: 10px;
    }

    .vip-card {
        padding: 8px 6px;
        border-radius: 10px;
    }

    .vip-days {
        font-size: 10px;
    }

    .vip-price {
        margin-top: 4px;
        font-size: 15px;
    }

    .vip-footer {
        gap: 9px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .vip-footer span {
        font-size: 10px;
    }

    .vip-buy-btn {
        min-width: 110px;
        height: 34px;
        border-radius: 10px;
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .vip-modal {
        padding: 13px;
    }

    .vip-badge {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 20px;
    }

    .vip-hero {
        align-items: flex-start;
    }

    .vip-hero h4 {
        font-size: 17px;
    }

    .vip-benefits {
        grid-template-columns: 1fr;
    }

    .vip-packages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vip-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .vip-buy-btn {
        width: 100%;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .vip-dialog {
        --bs-modal-width: min(500px, calc(100vw - 24px));
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .vip-modal {
        max-height: calc(100vh - 16px);
        padding: 10px;
        overflow-y: auto;
        border-radius: 14px;
    }

    .vip-modal::before {
        height: 96px;
    }

    .vip-close {
        top: 9px;
        right: 9px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .vip-badge {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 20px;
    }

    .vip-hero {
        gap: 11px;
        padding-right: 32px;
    }

    .vip-kicker {
        height: 20px;
        padding: 0 8px;
        font-size: 10px;
    }

    .vip-hero h4 {
        margin-top: 5px;
        font-size: 17px;
    }

    .vip-hero p {
        display: none;
    }

    .vip-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
    }

    .vip-item {
        padding: 8px;
    }

    .vip-icon {
        width: 28px;
        height: 28px;
        border-radius: 9px;
        font-size: 13px;
    }

    .vip-text {
        font-size: 11px;
    }

    .vip-packages {
        gap: 8px;
        margin-top: 10px;
    }

    .vip-card {
        padding: 8px 6px;
    }

    .vip-price {
        margin-top: 4px;
        font-size: 15px;
    }

    .vip-footer {
        margin-top: 8px;
        padding-top: 8px;
    }

    .vip-buy-btn {
        height: 32px;
        min-width: 104px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Shared layout helpers
========================================================================== */

.header-fortune-link {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border-radius: 11px;
}

.wheel-icon {
    width: 40px;
    height: 40px;
    display: block;
    transition: transform 0.5s ease;
}

.wheel-icon:hover {
    transform: rotate(360deg);
}

@media (min-width: 768px) {
    .main {
        max-width: 1200px;
        max-height: 800px;
        border-radius: 12px;
        overflow: hidden;
    }

    .btn-primary {
        --bs-btn-bg: transparent;
    }

}

@media (max-height: 600px) {
    .main {
        border-radius: 0;
    }
}

/* ==========================================================================
   Language flags
========================================================================== */

.flags {
    position: relative;
    width: 36px;
    height: 32px;
}

.flags > div {
    position: absolute;
    right: 0;
    transition: right 0.3s;
    cursor: pointer;
    width: 34px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 9px;
    overflow: hidden;
}

.flags > div:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.flags > div img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
}

.flags > div.current,
.flags > div.opened {
    z-index: 1;
}

@media (max-width: 767.98px) {
    .header {
        height: 52px;
    }

    .header .btn,
    .header a[href="/fortune"] {
        height: 34px;
        min-height: 34px;
        padding-top: 0;
        padding-bottom: 0;
        border-radius: 10px;
    }

    .header .btn > i {
        font-size: 18px;
    }

    .header .btn > img,
    #openProfile img {
        width: 28px;
        height: 28px;
    }


    .header strong {
        min-height: 34px;
        padding: 0 6px;
        border: none;
        background: transparent;
        border-radius: none;
    }

    .footer {
        height: 36px;
    }

    .footer-menu a {
        margin-left: 10px;
    }

    .header-fortune-link {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        margin-right: 7px;
    }

    .wheel-icon {
        width: 34px;
        height: 34px;
    }

}

@media (max-width: 767.98px) and (orientation: portrait) {
    .header .btn-purple[data-bs-target="#vipModal"] {
        min-width: 44px;
        margin-right: 2px !important;
        margin-left: 2px !important;
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    #openProfile {
        height: 38px;
        min-height: 38px;
        padding-right: 2px !important;
        padding-left: 2px !important;
    }

    #openProfile img {
        width: 34px;
        height: 34px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .header {
        height: 50px;
    }

    .footer {
        height: 32px;
    }

    .header .btn,
    .header a[href="/fortune"],
    .header strong {
        height: 34px !important;
        min-height: 34px;
        font-size: 14px;
    }

    .header .btn > i {
        font-size: 18px;
    }

    .header .btn > img,
    #openProfile img {
        width: 28px;
        height: 28px;
    }

    .header-fortune-link {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        margin-right: 7px;
    }

    .wheel-icon {
        width: 34px;
        height: 34px;
    }

    .footer {
        font-size: 11px;
    }

}

/* ==========================================================================
   Home page
========================================================================== */

.lobby {
    width: 100%;
}

.game-mode {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 20px;
    min-height: 150px;
    justify-content: space-between;
    align-items: center;
    transition: 0.25s;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.game-mode:focus,
.game-mode:hover {
    color: white;
    text-decoration: none;
}

.game-mode:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.game-mode-locked {
    cursor: not-allowed;
}

.game-mode-locked:hover {
    transform: none;
}

.mode-lock-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 30px;
    background: rgba(2, 8, 12, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.mode-lock-message {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    color: #eefaff;
    background: rgba(0, 0, 0, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.game-mode-balance-locked .mode-lock-message {
    bottom: 12px;
}

.mode-buychips-link {
    display: none;
}

.mode-buychips-link:hover {
    filter: brightness(1.08);
}

.game-mode-locked:hover .mode-lock-cover,
.game-mode-locked:focus .mode-lock-cover,
.game-mode-locked:hover .mode-lock-message,
.game-mode-locked:focus .mode-lock-message {
    opacity: 1;
    transform: translateY(0);
}

.not-enough-chips-dialog {
    --bs-modal-width: 430px;
}

.not-enough-chips-modal {
    position: relative;
    align-items: center;
    padding: 28px 24px 24px;
    text-align: center;
    background:
        linear-gradient(160deg, rgba(24, 47, 57, 0.98), rgba(11, 22, 28, 0.98)),
        url("/images/carbon-fibre.png");
}

.not-enough-chips-icon {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #fff4cf;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    font-size: 30px;
}

.not-enough-chips-modal h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.not-enough-chips-modal p {
    max-width: 330px;
    margin: 0 0 18px;
    color: rgba(238, 250, 255, 0.76);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.not-enough-chips-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.not-enough-chips-stats div {
    padding: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
}

.not-enough-chips-stats span {
    display: block;
    color: rgba(238, 250, 255, 0.62);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.not-enough-chips-stats strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.not-enough-chips-stats strong span {
    font-size: 1em;
    line-height: 1;
}

.not-enough-chips-buy {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(185, 28, 28, 0.24);
    font-weight: 900;
    text-decoration: none;
}

.not-enough-chips-buy:hover {
    color: #fff;
    filter: brightness(1.08);
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .not-enough-chips-dialog {
        --bs-modal-width: min(520px, calc(100vw - 28px));
        margin: 8px auto;
    }

    .not-enough-chips-modal {
        max-height: calc(100vh - 16px);
        padding: 14px 18px 16px;
        overflow: hidden;
    }

    .not-enough-chips-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
        font-size: 18px;
        box-shadow: none;
    }

    .not-enough-chips-modal h3 {
        margin-bottom: 4px;
        font-size: 18px;
    }

    .not-enough-chips-modal p {
        max-width: 440px;
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.25;
    }

    .not-enough-chips-stats {
        gap: 8px;
        margin-bottom: 10px;
    }

    .not-enough-chips-stats div {
        padding: 8px 10px;
        border-radius: 9px;
    }

    .not-enough-chips-stats span {
        font-size: 9px;
    }

    .not-enough-chips-stats strong {
        margin-top: 3px;
        font-size: 19px;
    }

    .not-enough-chips-buy {
        min-height: 36px;
        border-radius: 9px;
        font-size: 12px;
    }

    .not-enough-chips-modal .profile-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
    }
}

.payment-method-dialog {
    --bs-modal-width: 560px;
}

.payment-method-modal {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background:
        radial-gradient(circle at 18% -18%, rgba(103, 232, 249, 0.24), transparent 34%),
        linear-gradient(160deg, rgba(27, 52, 62, 0.98), rgba(9, 20, 27, 0.985)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(122, 220, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.payment-method-modal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 118px;
    background:
        linear-gradient(90deg, rgba(0, 139, 187, 0.22), transparent 62%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), transparent 45%);
    pointer-events: none;
}

.payment-method-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 36px;
    margin-bottom: 18px;
}

.payment-method-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff4cf;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(180, 83, 9, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(180, 83, 9, 0.22);
    font-size: 24px;
}

.payment-method-head h4 {
    margin: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 950;
}

.payment-method-head p {
    margin: 4px 0 0;
    color: rgba(238, 250, 255, 0.68);
    font-size: 13px;
    font-weight: 800;
}

.payment-product-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.payment-product-row p {
    margin: 0;
}

.payment-product-row strong {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 10px;
    color: #2f1d00;
    background: linear-gradient(135deg, #ffe27a, #f59e0b);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
}

.payment-method-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.payment-method-card {
    position: relative;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 44px 9px 10px;
    overflow: hidden;
    color: #eefaff;
    background: rgba(4, 18, 24, 0.34);
    border: 1px solid rgba(177, 220, 235, 0.12);
    border-radius: 12px;
    font-weight: 900;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.payment-method-card::after {
    content: "\f054";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(213, 240, 248, 0.48);
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
    transform: translateY(-50%);
}

.payment-method-card:hover {
    background: rgba(16, 49, 60, 0.66);
    border-color: rgba(103, 232, 249, 0.28);
    box-shadow: inset 3px 0 0 rgba(81, 216, 255, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.payment-method-card i {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8d46a;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
}

.payment-method-card span {
    min-width: 0;
    color: rgba(238, 250, 255, 0.92);
    font-size: 14px;
    line-height: 1.18;
}

.payment-method-test {
    background: rgba(19, 72, 44, 0.48);
    border-color: rgba(74, 222, 128, 0.26);
}

.payment-method-test i {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
}

.payment-success-dialog {
    max-width: 420px;
}

.payment-success-modal {
    position: relative;
    overflow: hidden;
    padding: 30px 24px 24px;
    text-align: center;
    color: #f2fbff;
    background:
        radial-gradient(circle at 50% -10%, rgba(85, 211, 255, 0.28), transparent 42%),
        linear-gradient(155deg, rgba(31, 61, 72, 0.98), rgba(13, 27, 35, 0.98)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(104, 213, 255, 0.32);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.payment-success-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: translateX(-120%) skewX(-18deg);
    animation: paymentSuccessShine 2.8s ease-in-out infinite;
}

.payment-success-badge {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    margin: 4px auto 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    background: linear-gradient(145deg, #1fd889, #23a9ff);
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(35, 169, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.payment-success-modal h4 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.payment-success-modal p {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: rgba(238, 250, 255, 0.72);
    font-size: 14px;
    font-weight: 700;
}

.payment-success-product {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 20px;
    padding: 14px 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.payment-success-product span {
    min-width: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.payment-success-product strong {
    flex: 0 0 auto;
    color: #9be7ff;
    font-size: 15px;
    font-weight: 900;
}

.payment-success-button {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 44px;
    color: #06141a;
    font-size: 14px;
    font-weight: 900;
    background: linear-gradient(135deg, #7de8ff, #27d98e);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 13px 30px rgba(39, 217, 142, 0.22);
}

.payment-success-button:hover {
    filter: brightness(1.04);
}

.account-blocked-modal {
    z-index: 22020;
}

.account-blocked-modal .modal-content {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 95, 95, 0.34);
    border-radius: 18px;
    padding: 28px;
    color: #eef7fb;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 104, 104, 0.24), transparent 46%),
        linear-gradient(160deg, rgba(63, 27, 38, 0.96), rgba(24, 43, 47, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.account-blocked-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(135deg, #ff5a68, #b7193a);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(183, 25, 58, 0.34);
}

.account-blocked-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 22px;
    font-weight: 900;
}

.account-blocked-text {
    margin: 0 0 18px;
    color: rgba(238, 247, 251, 0.76);
    text-align: center;
    font-size: 14px;
}

.account-blocked-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.account-blocked-box span {
    color: rgba(238, 247, 251, 0.68);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.account-blocked-box strong {
    color: #fff;
    text-align: right;
    font-size: 14px;
}

@media (max-width: 932px) {
    .account-blocked-modal .modal-dialog {
        max-width: min(92vw, 420px);
        margin: 10px auto;
    }

    .account-blocked-modal .modal-content {
        padding: 18px;
        border-radius: 14px;
    }

    .account-blocked-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .account-blocked-title {
        font-size: 18px;
    }

    .account-blocked-text {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .account-blocked-box {
        padding: 10px;
    }
}

@keyframes paymentSuccessShine {
    0%, 42% {
        transform: translateX(-120%) skewX(-18deg);
    }

    72%, 100% {
        transform: translateX(120%) skewX(-18deg);
    }
}

@media (max-width: 520px) {
    .payment-method-dialog {
        margin: 10px;
    }

    .payment-method-modal {
        max-height: calc(100dvh - 20px);
        padding: 18px;
        overflow-y: auto;
        border-radius: 18px;
    }

    .payment-method-modal::before {
        height: 72px;
        background:
            linear-gradient(90deg, rgba(0, 139, 187, 0.12), transparent 68%),
            linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent 52%);
    }

    .payment-method-head {
        gap: 11px;
        margin-bottom: 14px;
        padding-right: 30px;
    }

    .payment-method-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 18px;
    }

    .payment-method-head h4 {
        font-size: 17px;
        line-height: 1.1;
    }

    .payment-product-row {
        gap: 6px;
    }

    .payment-method-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .payment-method-card {
        min-height: 48px;
        padding: 8px 40px 8px 9px;
        border-radius: 12px;
        font-size: 13px;
    }

    .payment-method-card i {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 16px;
    }

    .payment-success-modal {
        margin: 12px;
        padding: 26px 18px 20px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .payment-method-dialog {
        --bs-modal-width: min(720px, calc(100vw - 24px));
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .payment-method-modal {
        max-height: calc(100vh - 16px);
        padding: 14px;
        overflow-y: auto;
        border-radius: 14px;
    }

    .payment-method-modal::before {
        height: 62px;
        background:
            linear-gradient(90deg, rgba(0, 139, 187, 0.1), transparent 70%);
    }

    .payment-method-modal .profile-close {
        top: 8px;
        right: 8px;
    }

    .payment-method-head {
        gap: 10px;
        min-height: 42px;
        margin-bottom: 10px;
        padding-right: 34px;
    }

    .payment-method-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 18px;
    }

    .payment-method-head h4 {
        font-size: 16px;
        line-height: 1.1;
    }

    .payment-method-head p {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.15;
    }

    .payment-product-row {
        gap: 6px;
        margin-top: 2px;
    }

    .payment-product-row strong {
        min-height: 20px;
        padding: 3px 7px;
        font-size: 11px;
    }

    .payment-method-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .payment-method-card {
        min-height: 46px;
        gap: 8px;
        padding: 7px 34px 7px 8px;
        border-radius: 10px;
        font-size: 12px;
        line-height: 1.1;
    }

    .payment-method-card::after {
        right: 10px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .payment-method-card i {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 17px;
    }

    .payment-method-test {
        grid-column: auto;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 380px) {
    .payment-method-dialog {
        --bs-modal-width: min(760px, calc(100vw - 18px));
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .payment-method-modal {
        max-height: calc(100vh - 12px);
        padding: 10px;
    }

    .payment-method-modal::before {
        height: 36px;
        opacity: 0.55;
    }

    .payment-method-head {
        margin-bottom: 7px;
    }

    .payment-method-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .payment-method-head h4 {
        font-size: 14px;
    }

    .payment-method-head p {
        font-size: 10px;
    }

    .payment-method-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .payment-method-card {
        min-height: 38px;
        padding: 6px 26px 6px 7px;
        font-size: 11px;
    }

    .payment-method-card::after {
        right: 7px;
        width: 16px;
        height: 16px;
        font-size: 9px;
    }

    .payment-method-card i {
        width: 22px;
        height: 22px;
        border-radius: 7px;
        font-size: 15px;
    }
}

/* Mobile modal readability pass */
@media (max-width: 932px) {
    .game-resume-modal .modal-dialog,
    .account-blocked-modal .modal-dialog,
    .tournament-prizes-modal .modal-dialog,
    #tournamentResultsModal .modal-dialog,
    #playersModal .modal-dialog,
    #prizeModal .modal-dialog {
        max-width: min(380px, calc(100vw - 24px));
        margin-left: auto;
        margin-right: auto;
    }

    .game-resume-modal .modal-content,
    .account-blocked-modal .modal-content,
    .tournament-prizes-modal .modal-content,
    #tournamentResultsModal .modal-content,
    #playersModal .modal-content,
    #prizeModal .modal-content {
        border-radius: 17px;
    }

    .game-resume-modal .modal-header,
    .game-resume-modal .modal-footer,
    .account-blocked-modal .modal-header,
    .account-blocked-modal .modal-footer,
    .tournament-prizes-modal .modal-header,
    .tournament-prizes-modal .modal-footer,
    #tournamentResultsModal .modal-header,
    #tournamentResultsModal .modal-footer,
    #playersModal .modal-header,
    #playersModal .modal-footer,
    #prizeModal .modal-header,
    #prizeModal .modal-footer {
        padding: 12px 14px;
    }

    .game-resume-modal .modal-title,
    .account-blocked-title,
    .tournament-prizes-modal .modal-title,
    #tournamentResultsModal .modal-title,
    #playersModal .modal-title,
    #prizeModal .modal-title {
        font-size: 16px;
        line-height: 1.2;
    }

    .game-resume-modal .modal-body,
    .account-blocked-text,
    .tournament-prizes-modal .modal-body,
    #tournamentResultsModal .modal-body,
    #playersModal .modal-body,
    #prizeModal .modal-body {
        font-size: 14px;
        line-height: 1.35;
    }

    .game-resume-modal .btn,
    .tournament-prizes-modal .btn,
    #tournamentResultsModal .btn,
    #playersModal .btn,
    #prizeModal .btn {
        min-height: 38px;
        min-width: 82px;
        padding: 0 14px;
        border-radius: 11px;
        font-size: 13px;
        font-weight: 800;
    }

    .vip-text,
    .vip-current-status,
    .vip-footer span,
    .payment-method-head p,
    .payment-product-row strong,
    .payment-method-card,
    .account-blocked-box span,
    .account-blocked-box strong {
        font-size: max(12px, 0.82rem);
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .game-resume-modal .modal-dialog,
    .account-blocked-modal .modal-dialog,
    .tournament-prizes-modal .modal-dialog,
    #tournamentResultsModal .modal-dialog,
    #playersModal .modal-dialog,
    #prizeModal .modal-dialog {
        max-width: min(430px, calc(100vw - 24px));
    }

    .game-resume-modal .modal-body,
    .account-blocked-text,
    .tournament-prizes-modal .modal-body,
    #tournamentResultsModal .modal-body,
    #playersModal .modal-body,
    #prizeModal .modal-body {
        font-size: 13px;
    }

    .vip-text,
    .payment-method-card {
        font-size: 12px;
    }
}

/* Square payment method cards */
.payment-method-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}

.payment-method-card {
    aspect-ratio: 1;
    min-height: 0;
    padding: 12px 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px 7px;
    text-align: center;
    border-radius: 16px;
}

.payment-method-card i {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 21px;
}

.payment-method-test {
    grid-column: auto;
}

@media (max-width: 576px) {
    .payment-method-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .payment-method-card {
        width: 100%;
        max-width: none;
        min-width: 0;
        justify-self: center;
        padding: 8px 6px;
        gap: 4px;
        border-radius: 11px;
        font-size: 9px;
        overflow-wrap: anywhere;
    }

    .payment-method-card i {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 15px;
    }
}

@media (orientation: portrait) and (max-width: 576px) {
    .payment-method-list {
        width: min(100%, 380px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        gap: 10px;
        margin-inline: auto;
    }

    .payment-method-card {
        max-width: none;
        aspect-ratio: auto;
        padding: 16px 12px;
        gap: 10px;
        font-size: 12px;
    }

    .payment-method-card i {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 21px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .payment-method-list {
        width: min(68vw, 100%);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-content: center;
        gap: clamp(4px, 1vw, 7px);
        margin-inline: auto;
    }

    .payment-method-card {
        width: 100%;
        max-width: none;
        padding: 10px 7px;
        gap: 7px;
        border-radius: 13px;
        font-size: 11px;
    }

    .payment-method-card i {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 19px;
    }
}

@media (max-width: 932px) {
    .payment-method-dialog {
        --bs-modal-width: 100vw;
        width: 100vw;
        max-width: none;
        height: 100dvh;
        margin: 0;
    }

    .payment-method-modal {
        width: 100%;
        min-height: 100dvh;
        max-height: none;
        display: flex;
        flex-direction: column;
        border: 0;
        border-radius: 0;
    }

    .payment-method-modal .payment-method-list {
        flex: 1 1 auto;
        align-content: center;
    }

    #paymentMethodModal .profile-close,
    #profileModal .profile-close,
    #vipModal .vip-close {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-width: 2px;
    }
}

/* Mobile profile sheet */
@media (orientation: portrait) and (max-width: 576px) {
    #profileModal .profile-dialog {
        --bs-modal-width: 100vw;
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        margin: 0;
        align-items: flex-end;
    }

    #profileModal.fade .profile-dialog {
        opacity: 0;
        transform: translate3d(0, 12px, 0) !important;
        transition:
            transform 0.16s cubic-bezier(0.2, 0.75, 0.25, 1),
            opacity 0.12s linear !important;
    }

    #profileModal.show .profile-dialog {
        opacity: 1;
        transform: translate3d(0, 0, 0) !important;
    }

    #profileModal .profile-modal {
        width: 100%;
        max-height: 82dvh;
        padding: clamp(12px, 3.5vw, 18px);
        overflow-y: auto;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    #profileModal .profile-hero {
        gap: 10px;
        padding-right: 32px;
    }

    #profileModal .profile-name-row {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    #profileModal .profile-vip {
        flex: 0 0 auto;
        margin-right: auto;
    }

    #profileModal .profile-avatar {
        width: clamp(60px, 18vw, 76px);
        height: clamp(60px, 18vw, 76px);
    }

    #profileModal .profile-name {
        font-size: clamp(16px, 5vw, 19px);
    }

    #profileModal .profile-rank {
        margin-top: 6px;
        padding: 5px 7px;
    }

    #profileModal .profile-progress-panel {
        margin-top: 10px;
        padding: 10px;
    }

    #profileModal .profile-main-stats,
    #profileModal .profile-stats,
    #profileModal .profile-detail-grid {
        gap: 6px;
        margin-top: 8px;
    }

    #profileModal .profile-main-stat {
        padding: 9px 10px;
    }

    #profileModal .profile-winrate-value,
    #profileModal .profile-games-value {
        font-size: clamp(26px, 8vw, 32px);
    }

    #profileModal .profile-stat {
        padding: 6px 5px;
    }

    #profileModal .profile-detail-grid > div {
        padding: 8px 10px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    #profileModal .profile-dialog {
        --bs-modal-width: min(46vw, 380px);
        width: min(46vw, 380px);
        max-width: none;
        min-height: 100dvh;
        margin: 0 0 0 auto;
        align-items: stretch;
    }

    #profileModal.fade .profile-dialog {
        opacity: 0;
        transform: translate3d(12px, 0, 0) !important;
        transition:
            transform 0.16s cubic-bezier(0.2, 0.75, 0.25, 1),
            opacity 0.12s linear !important;
    }

    #profileModal.show .profile-dialog {
        opacity: 1;
        transform: translate3d(0, 0, 0) !important;
    }

    #profileModal .profile-modal {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        padding: clamp(14px, 3vh, 18px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: clamp(8px, 2.5vh, 12px);
        overflow-y: auto;
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 20px 0 0 20px;
    }

    #profileModal .profile-hero {
        gap: clamp(6px, 2vh, 9px);
    }

    #profileModal .profile-name-row {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    #profileModal .profile-vip {
        flex: 0 0 auto;
        margin-right: auto;
    }

    #profileModal .profile-avatar {
        width: clamp(58px, 16vh, 70px);
        height: clamp(58px, 16vh, 70px);
    }

    #profileModal .profile-progress-panel,
    #profileModal .profile-main-stats,
    #profileModal .profile-stats,
    #profileModal .profile-detail-grid {
        margin-top: 0;
    }

    #profileModal .profile-progress-panel {
        padding: clamp(5px, 1.5vh, 7px);
    }

    #profileModal .profile-main-stat,
    #profileModal .profile-stat,
    #profileModal .profile-detail-grid > div {
        padding-block: clamp(4px, 1.4vh, 7px);
    }

    #profileModal .profile-main-stats {
        flex: 1.1 1 0;
        grid-auto-rows: minmax(min-content, 1fr);
    }

    #profileModal .profile-stats {
        flex: 1 1 0;
        grid-auto-rows: minmax(min-content, 1fr);
    }

    #profileModal .profile-main-stat,
    #profileModal .profile-stat {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #profileModal .profile-winrate-value,
    #profileModal .profile-games-value {
        font-size: clamp(20px, 6vh, 26px);
    }
}

/* Full-screen mobile VIP modal */
@media (max-width: 932px) {
    #vipModal .vip-dialog {
        --bs-modal-width: 100vw;
        width: 100vw;
        max-width: none;
        min-height: 100dvh;
        margin: 0;
    }

    #vipModal .vip-modal {
        width: 100%;
        min-height: 100dvh;
        max-height: 100dvh;
        padding: clamp(12px, 3vw, 18px);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
    }

    #vipModal .vip-benefits {
        flex: 1 1 auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(min-content, 1fr);
        gap: clamp(7px, 2vw, 10px);
        margin-top: clamp(10px, 2.5vh, 16px);
    }

    #vipModal .vip-packages {
        flex: 1 1 auto;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: minmax(min-content, 1fr);
        gap: clamp(6px, 2vw, 10px);
        margin-top: clamp(10px, 2.5vh, 16px);
    }

    #vipModal .vip-item,
    #vipModal .vip-card {
        height: 100%;
    }

    #vipModal .vip-footer {
        margin-top: auto;
        padding-top: clamp(10px, 2.5vh, 14px);
    }

    #vipModal .vip-buy-btn {
        min-width: 180px;
        min-height: 48px;
        padding-inline: 24px;
        border-radius: 13px;
        font-size: 15px;
    }
}

@media (orientation: portrait) and (max-width: 576px) {
    #vipModal .vip-hero {
        gap: 10px;
    }

    #vipModal .vip-badge {
        width: clamp(50px, 16vw, 64px);
        height: clamp(50px, 16vw, 64px);
    }

    #vipModal .vip-item {
        padding: clamp(8px, 2.5vw, 11px);
        padding-block: clamp(12px, 4vw, 16px);
        align-items: center;
    }

    #vipModal .vip-benefits {
        grid-template-columns: minmax(0, 1fr);
    }

    #vipModal .vip-card {
        padding-block: clamp(20px, 6vw, 26px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #vipModal .vip-packages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #vipModal .vip-footer {
        flex-direction: row;
        align-items: center;
    }

    #vipModal .vip-buy-btn {
        width: 48%;
        min-width: 140px;
        height: 46px;
        padding-inline: 18px;
        font-size: 14px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    #vipModal .vip-modal {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(6px, 1.8vh, 10px);
        padding: clamp(10px, 2.5vh, 14px);
    }

    #vipModal .vip-hero,
    #vipModal .vip-benefits,
    #vipModal .vip-packages,
    #vipModal .vip-footer {
        width: min(100%, 760px);
        margin-right: auto;
        margin-left: auto;
    }

    #vipModal .vip-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

    #vipModal .vip-item {
        padding-block: clamp(10px, 3vh, 14px);
    }

    #vipModal .vip-packages {
        margin-top: 0;
    }

    #vipModal .vip-card {
        padding-block: clamp(20px, 6vh, 26px);
    }

    #vipModal .vip-footer {
        margin-top: 0;
        padding-top: clamp(6px, 1.8vh, 10px);
    }
}

.game-mode.mode-1 {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.game-mode.mode-2 {
    background: linear-gradient(135deg, #ef4444, #7f1d1d);
}

.game-mode.mode-3 {
    background: linear-gradient(135deg, #22c55e, #166534);
}

.game-mode.mode-4 {
    background: linear-gradient(135deg, #f97316, #9a3412);
}

.game-mode.mode-5 {
    background: linear-gradient(135deg, #06b6d4, #164e63);
}

.game-mode.mode-6 {
    background: linear-gradient(135deg, #9333ea, #4c1d95);
}

.game-mode h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mode-prizes {
    display: grid;
    gap: 4px;
}

.mode-vip-win {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    padding: 3px 7px;
    color: #fff6d7;
    background: rgba(104, 59, 214, 0.36);
    border: 1px solid rgba(244, 214, 118, 0.24);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mode-vip-win span {
    display: inline-flex;
    align-items: center;
    min-height: 17px;
    padding: 0 5px;
    color: #ffffff;
    background: linear-gradient(135deg, #a855f7, #6d28d9);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
}

.mode-icon {
    width: 60px;
}

.mode-faicon {
    font-size: 44px;
}

@media (min-width: 768px) {
    .game-mode {
        display: flex;
    }

}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .lobby > .row > div {
        width: 33.33333333%;
        padding-right: 0.5rem !important;
        padding-left: 0.5rem !important;
    }

    .game-mode {
        display: inline-block;
        width: 100%;
        padding: 18px 20px;
        min-height: 120px;
    }

    .game-mode h3 {
        font-size: 20px;
    }

    .game-mode .text-center.text-md-end {
        display: flex;
        justify-content: space-between;
    }

    .mode-prizes,
    .mode-win,
    .mode-vip-win,
    .mode-till {
        display: none;
    }

    .mode-icon {
        width: 46px;
        margin-right: 10px;
    }

    .mode-faicon {
        font-size: 34px;
        margin-right: 10px;
    }

}

@media (max-width: 576px) {
    .blot-shell {
        align-items: stretch !important;
    }

    .main {
        height: 100dvh;
        max-height: 100dvh;
        border: 0;
    }

    .footer {
        display: none !important;
    }

    .content {
        min-height: 0;
    }

    .content:has(.home-page) {
        overflow: hidden;
    }

    .home-page {
        height: 100%;
        padding: 10px 10px !important;
        overflow: hidden;
    }

    .home-page .lobby,
    .home-page .lobby > .row {
        height: 100%;
    }

    .home-page .lobby > .row {
        --bs-gutter-y: 0;
        align-content: center;
        row-gap: 10px;
        margin-top: 0;
    }

    .home-page .lobby > .row > div {
        width: 50%;
        height: clamp(132px, 21dvh, 158px);
        padding-right: 6px !important;
        padding-left: 6px !important;
    }

    .home-page .game-mode {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 8px;
        padding: 14px 12px 12px;
        border-radius: 13px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
    }

    .home-page .game-mode h3 {
        margin-bottom: 4px;
        font-size: clamp(16px, 4.6vw, 19px);
        line-height: 1.1;
    }

    .home-page .mode-win,
    .home-page .mode-vip-win,
    .home-page .mode-till {
        font-size: 11px;
        line-height: 1.18;
    }

    .home-page .mode-prizes {
        gap: 3px;
    }

    .home-page .mode-vip-win {
        padding: 3px 6px;
        font-size: 10px;
    }

    .home-page .mode-vip-win span {
        min-height: 15px;
        padding: 0 4px;
        font-size: 9px;
    }

    .home-page .game-mode .text-center.text-md-end {
        width: 100%;
        display: flex;
        align-items: end;
        justify-content: space-between;
        margin-top: 0 !important;
    }

    .home-page .mode-icon {
        width: 42px;
    }

    .home-page .mode-faicon {
        font-size: 36px;
        line-height: 1;
    }

    .home-page .game-mode .fs-4 {
        margin-top: 0 !important;
        font-size: 16px !important;
        line-height: 1;
        white-space: nowrap;
    }

    .home-page .mode-lock-message {
        left: 7px;
        right: 7px;
        bottom: 7px;
        padding: 5px 6px;
        font-size: 9px;
    }
}

@media (max-width: 380px) and (max-height: 760px) {
    .home-page {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .home-page .lobby > .row {
        row-gap: 8px;
    }

    .home-page .lobby > .row > div {
        height: clamp(126px, 20dvh, 148px);
    }

    .home-page .game-mode {
        padding: 11px 9px 10px;
        border-radius: 12px;
    }

    .home-page .mode-till {
        display: none;
    }

    .home-page .mode-icon {
        width: 38px;
    }

    .home-page .mode-faicon {
        font-size: 32px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .home-page {
        height: 100%;
        padding: 2px 8px !important;
        overflow: hidden;
    }

    .content:has(.home-page) {
        overflow: hidden;
    }

    .home-page .lobby > .row > div {
        width: 33.33333333%;
        height: calc((100% - 2px) / 2);
        padding-right: 4px !important;
        padding-left: 4px !important;
    }

    .home-page .game-mode {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 6px;
        padding: 15px;
        min-height: 0;
        border-radius: 14px;
    }

    .home-page .game-mode h3 {
        margin-bottom: 14px;
        font-size: clamp(15px, 2.6vw, 19px);
        line-height: 1.08;
    }

    .home-page .mode-win,
    .home-page .mode-vip-win,
    .home-page .mode-till {
        font-size: 11px;
        line-height: 1.18;
    }

    .home-page .mode-vip-win {
        padding: 2px 6px;
        font-size: 10px;
    }

    .home-page .game-mode .text-center.text-md-end {
        width: 100%;
        display: flex;
        align-items: end;
        justify-content: space-between;
        margin-top: 0 !important;
    }

    .home-page .mode-icon {
        width: 40px;
        margin-right: 0;
    }

    .home-page .mode-faicon {
        margin-right: 0;
        font-size: 32px;
        line-height: 1;
    }

    .home-page .game-mode .fs-4 {
        margin-top: 0 !important;
        font-size: 16px !important;
        line-height: 1;
    }
}

/* ==========================================================================
   Auth page
========================================================================== */

.auth-page {
    height: 100%;
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.auth-panel {
    position: relative;
    overflow: auto;
    width: 100%;
    min-height: 100%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(160deg, rgba(25, 42, 55, 0.97), rgba(10, 18, 25, 0.99)),
        url("/images/carbon-fibre.png");
    border: 0;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 130px;
    background:
        linear-gradient(90deg, rgba(0, 139, 187, 0.18), transparent 54%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), transparent 46%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
    pointer-events: none;
}

.auth-head {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a2200;
    background: linear-gradient(135deg, #ffe27a, #f59e0b);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    font-size: 22px;
}

.auth-head h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.08;
}

.auth-head p {
    margin: 5px 0 0;
    color: rgba(232, 243, 248, 0.64);
    font-size: 13px;
    font-weight: 700;
}

.auth-social-list {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    margin: 16px auto 0;
    display: grid;
    gap: 10px;
}

.auth-social {
    min-height: 58px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.auth-social-primary {
    min-height: 70px;
    background:
        linear-gradient(135deg, rgba(234, 67, 53, 0.18), rgba(251, 188, 5, 0.1)),
        rgba(255, 255, 255, 0.045);
    border-color: rgba(251, 188, 5, 0.2);
}

.auth-social:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.auth-social-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 17px;
}

.auth-social > span:not(.auth-social-mark),
.auth-telegram-card > div {
    min-width: 0;
}

.auth-social strong,
.auth-telegram-card strong {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 900;
}

.auth-social small,
.auth-telegram-card small {
    display: block;
    color: rgba(232, 243, 248, 0.62);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
}

.auth-social-vk .auth-social-mark {
    background: rgba(76, 117, 163, 0.28);
    color: #8ec8ff;
}

.auth-social-google .auth-social-mark {
    background: rgba(234, 67, 53, 0.22);
    color: #ffb0a4;
}

.auth-social-google:hover {
    background:
        linear-gradient(135deg, rgba(234, 67, 53, 0.24), rgba(251, 188, 5, 0.14)),
        rgba(255, 255, 255, 0.055);
    border-color: rgba(251, 188, 5, 0.28);
}

.auth-social-ok .auth-social-mark {
    background: rgba(238, 130, 8, 0.22);
    color: #ffc47a;
}

.auth-telegram-card {
    min-height: 74px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(42, 171, 238, 0.19), rgba(22, 119, 255, 0.08)),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(42, 171, 238, 0.24);
    border-radius: 12px;
}

.auth-telegram-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.auth-telegram-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.auth-telegram-button:hover {
    background:
        linear-gradient(135deg, rgba(42, 171, 238, 0.26), rgba(22, 119, 255, 0.12)),
        rgba(255, 255, 255, 0.045);
    border-color: rgba(42, 171, 238, 0.34);
}

.auth-telegram-mark {
    background: rgba(42, 171, 238, 0.24);
    color: #7ed7ff;
}

.auth-telegram-missing {
    color: rgba(232, 243, 248, 0.58);
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.auth-legacy {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    margin: 14px auto 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-legacy-title {
    margin-bottom: 8px;
    color: rgba(232, 243, 248, 0.58);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.auth-legacy-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auth-legacy-link {
    min-height: 38px;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(232, 243, 248, 0.82);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.038);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 850;
}

.auth-legacy-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
}

.auth-legacy-link span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.auth-legacy-link.auth-social-vk span {
    background: rgba(76, 117, 163, 0.24);
    color: #8ec8ff;
}

.auth-legacy-link.auth-social-ok span {
    background: rgba(238, 130, 8, 0.2);
    color: #ffc47a;
}

@media (max-width: 460px) {
    .auth-page {
        align-items: stretch;
    }

    .auth-panel {
        padding: 14px;
    }

    .auth-head h2 {
        font-size: 21px;
    }

    .auth-social-list {
        margin-top: 20px;
        gap: 16px;
    }

    .auth-telegram-card:not(.auth-telegram-button) {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .auth-telegram-button {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .auth-telegram-button > .fa-arrow-right {
        grid-column: 3;
        grid-row: 1;
        flex-shrink: 0;
    }

    .auth-telegram-missing {
        grid-column: 1 / -1;
        justify-content: stretch;
        text-align: left;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .auth-page {
        align-items: stretch;
    }

    .auth-panel {
        padding: 8px 12px;
        justify-content: center;
    }

    .auth-head {
        width: min(680px, 100%);
        gap: 10px;
        padding-bottom: 8px;
    }

    .auth-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 16px;
    }

    .auth-head h2 {
        font-size: 18px;
        line-height: 1;
    }

    .auth-head p {
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.18;
    }

    .auth-social-list {
        width: min(680px, 100%);
        max-width: 500px;
        margin-top: 9px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .auth-social,
    .auth-social-primary,
    .auth-telegram-card {
        min-height: 48px;
        padding: 7px 9px;
        gap: 8px;
        border-radius: 10px;
    }

    .auth-social-mark {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 15px;
    }

    .auth-social strong,
    .auth-telegram-card strong {
        margin-bottom: 1px;
        font-size: 13px;
    }

    .auth-social small,
    .auth-telegram-card small {
        font-size: 10px;
        line-height: 1.12;
    }

    .auth-legacy {
        width: min(680px, 100%);
        margin-top: 8px;
        padding-top: 8px;
    }

    .auth-legacy-title {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .auth-legacy-link {
        min-height: 32px;
        padding: 6px 8px;
        border-radius: 9px;
        font-size: 11px;
    }

    .auth-legacy-link span {
        width: 21px;
        height: 21px;
        border-radius: 7px;
    }

}

.store-page {
    height: 100%;
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: auto;
}

.store-panel {
    width: 100%;
    min-height: 100%;
    position: relative;
    overflow: auto;
    padding: 16px;
    border: 0;
    background:
        linear-gradient(160deg, rgba(25, 42, 55, 0.96), rgba(10, 18, 25, 0.99)),
        url("/images/carbon-fibre.png");
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.buychips-page .store-panel {
    width: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.store-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 120px;
    background:
        linear-gradient(90deg, rgba(0, 139, 187, 0.16), transparent 44%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), transparent 48%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
    pointer-events: none;
}

.store-head {
    position: relative;
    z-index: 1;
    padding-bottom: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.store-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-title-icon,
.buychips-item-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3a2200;
    background: linear-gradient(135deg, #ffe27a, #f59e0b);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.store-title-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 22px;
}

.store-title-icon-red {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.store-title h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.05;
}

.store-title p {
    max-width: 620px;
    margin: 5px 0 0;
    color: rgba(232, 243, 248, 0.62);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.store-balance {
    min-width: 80px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    text-align: center;
}

.store-balance span,
.store-foot span {
    display: block;
    color: rgba(232, 243, 248, 0.62);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.store-balance strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

.blot-balance-animated,
.store-balance strong {
    position: relative;
}

.blot-balance-pulse-up,
.blot-balance-pulse-down {
    animation: blotBalancePulse 0.7s ease;
}

.blot-balance-pulse-up strong,
.store-balance strong.blot-balance-pulse-up {
    color: #dcfce7;
    text-shadow: 0 0 18px rgba(34, 197, 94, 0.46);
}

.blot-balance-pulse-down strong,
.store-balance strong.blot-balance-pulse-down {
    color: #fee2e2;
    text-shadow: 0 0 18px rgba(239, 68, 68, 0.42);
}

.blot-balance-delta {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 3px);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px) scale(0.92);
    transition: opacity 0.24s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.blot-balance-delta-up {
    color: #052e16;
    background: linear-gradient(135deg, #86efac, #22c55e);
    box-shadow: 0 10px 26px rgba(34, 197, 94, 0.28);
}

.blot-balance-delta-down {
    color: #450a0a;
    background: linear-gradient(135deg, #fecaca, #ef4444);
    box-shadow: 0 10px 26px rgba(239, 68, 68, 0.26);
}

.blot-balance-delta-show {
    opacity: 1;
    transform: translate(-50%, -18px) scale(1);
}

@keyframes blotBalancePulse {
    0% {
        transform: scale(1);
    }

    38% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.buychips-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    align-items: stretch;
}

.buychips-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    min-height: 242px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(34, 48, 58, 0.96), rgba(12, 22, 29, 0.98)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(177, 200, 212, 0.14);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.buychips-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 58px;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.18), transparent 62%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
    pointer-events: none;
}

.buychips-item::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -24px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.08);
    pointer-events: none;
}

.buychips-item:nth-child(2)::before {
    background:
        linear-gradient(135deg, rgba(129, 140, 248, 0.2), transparent 62%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
}

.buychips-item:nth-child(2)::after {
    background: rgba(129, 140, 248, 0.09);
}

.buychips-item:nth-child(3)::before {
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.17), transparent 62%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
}

.buychips-item:nth-child(3)::after {
    background: rgba(45, 212, 191, 0.08);
}

.buychips-item:nth-child(5)::before {
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.2), transparent 62%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
}

.buychips-item:nth-child(5)::after {
    background: rgba(251, 191, 36, 0.08);
}

.buychips-item:nth-child(6)::before {
    background:
        linear-gradient(135deg, rgba(244, 114, 182, 0.18), transparent 62%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
}

.buychips-item:nth-child(6)::after {
    background: rgba(244, 114, 182, 0.08);
}

.buychips-item-featured {
    background:
        linear-gradient(180deg, rgba(72, 43, 18, 0.96), rgba(22, 25, 31, 0.98)),
        url("/images/carbon-fibre.png");
    border-color: rgba(251, 146, 60, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px rgba(245, 158, 11, 0.18);
}

.buychips-item-featured::before {
    background:
        linear-gradient(135deg, rgba(251, 146, 60, 0.3), transparent 58%),
        linear-gradient(90deg, rgba(253, 224, 71, 0.16), transparent 78%);
}

.buychips-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.buychips-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 18px;
}

.buychips-item-amount {
    color: #fff;
    font-size: 23px;
    font-weight: 950;
    line-height: 1;
}

.buychips-item-amount-promo {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
}

.buychips-item-old-amount {
    position: relative;
    color: rgba(232, 243, 248, 0.52);
    font-size: 14px;
    font-weight: 850;
}

.buychips-item-old-amount::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 2px;
    background: rgba(248, 113, 113, 0.9);
    border-radius: 999px;
    transform: translateY(-50%) rotate(-8deg);
}

.buychips-item-current-amount {
    color: #ffffff;
}

.buychips-item-amount-promo .buychips-item-current-amount {
    color: #ffe27a;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.22);
}

.buychips-item-label {
    margin-top: 2px;
    color: rgba(232, 243, 248, 0.58);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.buychips-item-meta {
    min-height: 48px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
}

.buychips-item-price {
    min-width: 68px;
    height: 28px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dffdea;
    background: rgba(46, 204, 113, 0.13);
    border: 1px solid rgba(46, 204, 113, 0.22);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 950;
}

.buychips-item-gift {
    width: fit-content;
    height: 20px;
    margin: 0 0 6px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    color: #2f1d00;
    background: linear-gradient(135deg, #ffe27a, #f59e0b);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
}

.buychips-item-buy,
.wheel-spin-btn,
.wheel-reward-close {
    position: relative;
    height: 38px;
    min-width: 128px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 950;
    overflow: hidden;
}

.buychips-item-buy {
    width: 100%;
    min-width: 0;
    height: 34px;
    margin-top: 0;
    border-radius: 9px;
}

.buychips-item-buy::before,
.wheel-spin-btn::before,
.wheel-reward-close::before {
    content: "";
    position: absolute;
    inset: -45% auto -45% -70%;
    width: 54%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
    opacity: 0;
}

.buychips-item-buy:hover::before,
.wheel-spin-btn:hover::before,
.wheel-reward-close:hover::before {
    animation: headerButtonShine 0.8s ease;
    opacity: 1;
}

.store-foot {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(0, 139, 187, 0.08);
    border: 1px solid rgba(0, 139, 187, 0.16);
    border-radius: 12px;
}

.store-foot strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 13px;
}

.store-pay-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(232, 243, 248, 0.8);
    font-size: 30px;
}

@media (max-width: 640px) {
    .store-page {
        align-items: stretch;
        overflow: hidden;
    }

    .store-panel {
        padding: 8px;
        overflow: hidden;
    }

    .buychips-page .store-panel {
        justify-content: flex-start;
    }

    .store-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-bottom: 8px;
    }

    .store-title h2 {
        font-size: 18px;
    }

    .store-title p {
        display: none;
    }

    .store-title-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 16px;
    }

    .store-balance {
        min-width: 102px;
        padding: 8px;
        text-align: right;
    }

    .store-balance strong {
        font-size: 14px;
    }

    .buychips-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 8px;
    }

    .buychips-item {
        min-height: 142px;
        padding: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .buychips-item-buy {
        width: 100%;
        height: 27px;
        font-size: 10px;
    }

    .buychips-item-main {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .buychips-item-icon {
        width: 27px;
        height: 27px;
        border-radius: 9px;
        font-size: 12px;
    }

    .buychips-item-amount,
    .buychips-item-price {
        font-size: 15px;
    }

    .buychips-item-old-amount {
        font-size: 10px;
    }

    .buychips-item-label {
        font-size: 9px;
    }

    .buychips-item-meta {
        min-height: 0;
        margin-top: auto;
        text-align: center;
    }

    .buychips-item-gift {
        height: 17px;
        margin: 0 0 4px;
        font-size: 9px;
    }

    .store-foot {
        display: none;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .store-page {
        align-items: stretch;
        overflow: hidden;
    }

    .store-panel {
        padding: 6px;
        overflow: hidden;
    }

    .buychips-page .store-panel {
        justify-content: flex-start;
    }

    .store-head {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .store-title-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .store-title h2 {
        font-size: 19px;
    }

    .store-title p,
    .store-foot {
        display: none;
    }

    .buychips-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px;
        margin-top: 0;
        height: auto;
        align-items: center;
    }

    .buychips-item {
        min-height: 0;
        height: 176px;
        padding: 6px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .buychips-item::before {
        height: 54px;
    }

    .buychips-item::after {
        display: none;
    }

    .buychips-item-icon {
        width: 34px;
        height: 34px;
        border-radius: 7px;
        font-size: 14px;
        margin: 0;
    }

    .buychips-item-main {
        gap: 4px;
    }

    .buychips-item-amount,
    .buychips-item-price {
        font-size: 16px;
    }

    .buychips-item-old-amount {
        font-size: 10px;
    }

    .buychips-item-label {
        display: none;
        margin-top: 1px;
        font-size: 8px;
    }

    .buychips-item-meta {
        min-height: 0;
    }

    .buychips-item-gift {
        height: 16px;
        margin-bottom: 5px;
        padding: 0 4px;
        font-size: 9px;
    }

    .buychips-item-buy {
        width: 100%;
        height: 29px;
        padding: 0 4px;
        border-radius: 7px;
        font-size: 10px;
    }

    .buychips-item-buy i {
        display: none;
    }

    .store-balance {
        padding: 4px 12px;
    }
}

/* ========================================================================== 
   Chips shop
========================================================================== */

.buychips-page {
    background: transparent;
    overflow-y: auto;
}

.chips-shop {
    position: relative;
    width: min(1120px, 100%);
    min-height: 100%;
    margin: 0 auto;
    padding: 22px clamp(16px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chips-shop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(177, 200, 212, 0.14);
}

.chips-shop-back {
    display: none;
}

.header-landscape-lobby-back {
    display: none;
}

@media (max-width: 932px) {
    .header-landscape-lobby-back {
        position: absolute;
        top: 50%;
        left: 0;
        z-index: 1001;
        width: 40px;
        height: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #dff6fd;
        background: transparent;
        border: 0;
        font-size: 17px;
        transform: translateY(-50%);
    }

    .header-landscape-lobby-back:hover,
    .header-landscape-lobby-back:focus {
        color: #fff;
    }

    .header-landscape-lobby-back.is-lobby {
        display: none;
    }

    .header-settings-dropdown.header-settings-landscape-replaced {
        display: none !important;
    }

    .buychips-page .chips-shop-back {
        display: none;
    }
}

.chips-shop-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 932px) {
    .chips-shop-head {
        padding-top: 10px;
        padding-bottom: 12px;
    }

    .chips-shop-back {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #dff6fd;
        background: rgba(85, 210, 255, 0.09);
        border: 1px solid rgba(109, 210, 239, 0.2);
        border-radius: 11px;
        font-size: 15px;
    }

    .chips-shop-back:hover,
    .chips-shop-back:focus {
        color: #fff;
        background: rgba(85, 210, 255, 0.16);
    }

    .chips-shop-heading {
        flex: 1;
    }
}

.chips-shop-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2d2104;
    background: #f0bd3d;
    border: 1px solid #ffdc76;
    border-radius: 13px;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
    font-size: 18px;
}

.chips-shop-heading h2 {
    margin: 0;
    color: #f7fbfd;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.chips-shop-heading p {
    margin: 3px 0 0;
    color: rgba(223, 237, 243, 0.62);
    font-size: 12px;
    font-weight: 600;
}

.chips-shop-hint {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: rgba(224, 239, 245, 0.78);
    background: #152932;
    border: 1px solid rgba(177, 200, 212, 0.13);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
}

.chips-shop-hint i {
    color: #79c6db;
}

.chips-package-grid {
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-content: center;
}

.chips-package {
    --package-accent: #58c7e8;
    --package-accent-rgb: 88, 199, 232;
    position: relative;
    min-width: 0;
    min-height: 186px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    color: #edf7fa;
    overflow: hidden;
    background: linear-gradient(155deg, rgba(var(--package-accent-rgb), 0.19), rgba(22, 40, 49, 0.98) 45%, #10222b 100%);
    border: 1px solid rgba(237, 247, 250, 0.11);
    border-radius: 19px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.chips-package::before {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 15px;
    width: 42px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--package-accent));
    border-radius: 999px;
    pointer-events: none;
}

.chips-package::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -46px;
    width: 112px;
    height: 112px;
    background: rgba(var(--package-accent-rgb), 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.chips-package:nth-child(2) {
    --package-accent: #9c8cff;
    --package-accent-rgb: 156, 140, 255;
}

.chips-package:nth-child(3) {
    --package-accent: #55d6aa;
    --package-accent-rgb: 85, 214, 170;
}

.chips-package:nth-child(4) {
    --package-accent: #f4c64d;
    --package-accent-rgb: 244, 198, 77;
}

.chips-package:nth-child(5) {
    --package-accent: #ff9c5a;
    --package-accent-rgb: 255, 156, 90;
}

.chips-package:nth-child(6) {
    --package-accent: #ef7fbd;
    --package-accent-rgb: 239, 127, 189;
}

.chips-package:hover,
.chips-package:focus-visible {
    color: #fff;
    background: linear-gradient(155deg, rgba(var(--package-accent-rgb), 0.27), rgba(26, 47, 58, 0.99) 46%, #122730 100%);
    border-color: rgba(var(--package-accent-rgb), 0.52);
    box-shadow: 0 17px 35px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) scale(1.01);
    outline: none;
}

.chips-package:active {
    transform: translateY(-1px);
}

.chips-package-featured {
    background: linear-gradient(145deg, rgba(244, 198, 77, 0.22), #24271f 60%);
    border-color: rgba(244, 198, 77, 0.72);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(240, 189, 61, 0.08);
}

.chips-package-featured:hover,
.chips-package-featured:focus-visible {
    background: #312f22;
    border-color: rgba(255, 213, 105, 0.82);
}

.chips-package-popular {
    position: absolute;
    top: 0;
    right: 16px;
    padding: 5px 9px 6px;
    color: #382801;
    background: #ffd76d;
    border-radius: 0 0 8px 8px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chips-package-top {
    position: relative;
    z-index: 1;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chips-package-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--package-accent);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(var(--package-accent-rgb), 0.32);
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 15px;
}

.chips-package-vip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    color: #f5d890;
    background: rgba(240, 189, 61, 0.09);
    border: 1px solid rgba(240, 189, 61, 0.17);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.chips-package-content {
    position: relative;
    z-index: 1;
    margin: 15px 0 14px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.chips-package-amount {
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1;
}

.chips-package-label {
    color: rgba(224, 239, 245, 0.54);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chips-package-old-amount {
    position: absolute;
    top: -11px;
    left: 2px;
    color: rgba(224, 239, 245, 0.44);
    font-size: 11px;
    font-weight: 800;
    text-decoration: line-through;
    text-decoration-color: #ef7b7b;
    text-decoration-thickness: 2px;
}

.chips-package-old-amount + .chips-package-amount {
    color: #f6ce64;
}

.chips-package-bottom {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(177, 200, 212, 0.1);
}

.chips-package-price {
    padding: 5px 9px;
    color: #f8feff;
    background: rgba(var(--package-accent-rgb), 0.18);
    border: 1px solid rgba(var(--package-accent-rgb), 0.28);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.chips-package-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: rgba(230, 243, 248, 0.72);
    font-size: 11px;
    font-weight: 850;
    text-align: right;
}

.chips-package-action i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--package-accent);
    background: rgba(var(--package-accent-rgb), 0.18);
    border: 1px solid rgba(var(--package-accent-rgb), 0.25);
    border-radius: 50%;
    transition: transform 0.18s ease;
}

.chips-package:hover .chips-package-action i,
.chips-package:focus-visible .chips-package-action i {
    transform: translateX(3px);
}

.chips-shop-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 11px;
    background: #172f38;
    border: 1px solid rgba(104, 199, 218, 0.19);
    border-radius: 13px;
}

.chips-shop-payment-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chips-shop-payment-copy > i {
    color: #72d69a;
    font-size: 18px;
}

.chips-shop-payment-copy strong,
.chips-shop-payment-copy span {
    display: block;
}

.chips-shop-payment-copy strong {
    color: rgba(237, 247, 250, 0.9);
    font-size: 12px;
    font-weight: 850;
}

.chips-shop-payment-copy span {
    margin-top: 1px;
    color: rgba(224, 239, 245, 0.48);
    font-size: 10px;
    font-weight: 700;
}

.chips-shop-payment-methods {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.chips-shop-payment-methods span {
    width: 35px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(231, 242, 247, 0.74);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(177, 200, 212, 0.09);
    border-radius: 7px;
    font-size: 18px;
}

@media (max-width: 720px) {
    .chips-shop {
        padding: 14px 12px;
        gap: 12px;
    }

    .chips-shop-head {
        padding-bottom: 12px;
    }

    .chips-shop-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 16px;
    }

    .chips-shop-heading {
        gap: 10px;
    }

    .chips-shop-heading h2 {
        font-size: 21px;
    }

    .chips-shop-heading p,
    .chips-shop-hint {
        display: none;
    }

    .chips-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        align-content: center;
    }

    .chips-package {
        min-height: 151px;
        padding: 11px;
        border-radius: 13px;
    }

    .chips-package-popular {
        right: 10px;
        padding: 4px 6px 5px;
        font-size: 7px;
    }

    .chips-package-top {
        min-height: 31px;
    }

    .chips-package-icon {
        width: 31px;
        height: 31px;
        border-radius: 9px;
        font-size: 13px;
    }

    .chips-package-vip {
        padding: 4px 6px;
        font-size: 8px;
    }

    .chips-package-content {
        margin: 12px 0 10px;
        gap: 5px;
    }

    .chips-package-amount {
        font-size: clamp(24px, 8vw, 31px);
    }

    .chips-package-label {
        font-size: 8px;
    }

    .chips-package-bottom {
        padding-top: 9px;
    }

    .chips-package-price {
        font-size: 15px;
    }

    .chips-package-action {
        font-size: 0;
    }

    .chips-package-action i {
        font-size: 11px;
    }

    .chips-shop-payment {
        padding: 9px 10px;
    }

    .chips-shop-payment-copy strong {
        font-size: 11px;
    }

    .chips-shop-payment-copy span {
        display: none;
    }

    .chips-shop-payment-methods {
        gap: 4px;
    }

    .chips-shop-payment-methods span {
        width: 27px;
        height: 24px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .chips-shop {
        padding: 10px 8px;
        gap: 9px;
    }

    .chips-package-grid {
        gap: 7px;
    }

    .chips-package {
        min-height: 143px;
        padding: 9px;
    }

    .chips-package-vip {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chips-shop-payment-methods span:nth-child(n+5) {
        display: none;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .header-landscape-lobby-back {
        position: absolute;
        top: 50%;
        left: 0;
        z-index: 1001;
        width: 40px;
        height: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #dff6fd;
        background: transparent;
        border: 0;
        font-size: 17px;
        transform: translateY(-50%);
    }

    .header-landscape-lobby-back:hover,
    .header-landscape-lobby-back:focus {
        color: #fff;
    }

    .header-landscape-lobby-back.is-lobby {
        display: none;
    }

    .header-settings-dropdown.header-settings-landscape-replaced {
        display: none !important;
    }

    .chips-shop {
        padding: 7px 10px;
        gap: 7px;
    }

    .chips-shop-head {
        min-height: 0;
        padding-top: 3px;
        padding-bottom: 5px;
    }

    .buychips-page .chips-shop-back {
        display: none;
    }

    .chips-shop-mark {
        display: none;
    }

    .chips-shop-heading h2 {
        font-size: 15px;
        line-height: 1;
        margin-bottom: 0;
    }

    .chips-shop-heading p,
    .chips-shop-hint {
        display: none;
    }

    .chips-package-grid {
        width: min(76vw, 660px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        align-content: center;
        margin-inline: auto;
    }

    .chips-package {
        min-height: 0;
        height: clamp(100px, 31vh, 124px);
        padding: 8px 9px;
        border-radius: 11px;
    }

    .chips-package-popular {
        right: 9px;
        padding: 3px 5px 4px;
        font-size: 7px;
    }

    .chips-package-top {
        min-height: 24px;
    }

    .chips-package-icon {
        width: 25px;
        height: 25px;
        border-radius: 7px;
        font-size: 10px;
    }

    .chips-package-vip {
        padding: 3px 5px;
        font-size: 8px;
    }

    .chips-package-content {
        margin: 6px 0 5px;
    }

    .chips-package-amount {
        font-size: 22px;
    }

    .chips-package-label {
        font-size: 7px;
    }

    .chips-package-old-amount {
        top: -7px;
        font-size: 8px;
    }

    .chips-package-bottom {
        padding-top: 5px;
    }

    .chips-package-price {
        font-size: 13px;
    }

    .chips-package-action {
        font-size: 0;
    }

    .chips-package-action i {
        font-size: 9px;
    }

    .chips-shop-payment {
        min-height: 29px;
        padding: 4px 8px;
        border-radius: 9px;
    }

    .chips-shop-payment-copy > i {
        font-size: 13px;
    }

    .chips-shop-payment-copy strong {
        font-size: 9px;
    }

    .chips-shop-payment-copy span {
        display: none;
    }

    .chips-shop-payment-methods span {
        width: 25px;
        height: 20px;
        font-size: 13px;
    }
}

/* ========================================================================== 
   Legacy fortune wheel
========================================================================== */

.wheel-game-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.wheel-badge-custom {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wheel-wrapper {
    position: relative;
    max-width: 520px;
    margin: auto;
}

.wheel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    border: 12px solid rgba(255, 255, 255, 0.2);
    background: white;
    transition: transform 6s cubic-bezier(0.17, 0.67, 0.13, 0.99);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.2);
}

canvas {
    width: 100%;
    height: 100%;
}

.wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 46px solid white;
    z-index: 20;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: #253846;
    border: 6px solid white;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.wheel-spin-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ae9523 0%, #e8d060 100%);
    color: #253846;
    border: none;
    border-radius: 999px;
    padding: 18px 42px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.wheel-spin-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: 0.6s;
}

.wheel-spin-btn:hover::before {
    left: 100%;
}

.wheel-spin-btn:hover {
    transform: translateY(-4px) scale(1.03);
}

.wheel-spin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wheel-info-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1rem 1.2rem;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.04);
}

.wheel-info-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.wheel-info-content {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.wheel-result-box {
    min-height: 80px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-reward-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 999;
}

.wheel-reward-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.wheel-reward-modal {
    width: 92%;
    max-width: 420px;
    background: linear-gradient(135deg, #253846 0%, #008bbb 100%);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transform: scale(0.7);
    transition: 0.35s ease;
}

.wheel-reward-popup.active .wheel-reward-modal {
    transform: scale(1);
}

.wheel-reward-icon {
    width: 100px;
    height: 100px;
    margin: auto auto 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: pulse 1.5s infinite;
}

.wheel-reward-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.wheel-reward-text {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
}

.wheel-reward-close {
    border: none;
    background: white;
    color: #253846;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
}

.wheel-reward-close:hover {
    transform: translateY(-2px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }

}

@media (max-width: 768px) {
    .wheel-game-title {
        font-size: 2.2rem;
    }

    .wheel-center {
        width: 75px;
        height: 75px;
        font-size: 0.9rem;
    }

}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .wheel-wrapper {
        max-width: 260px;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .wheel-info-box {
        display: none !important;
    }

    .wheel-won-bar {
        height: 100%;
        justify-content: center;
    }

}

/* ==========================================================================
   Fortune page
========================================================================== */

.fortune-page {
    overflow: hidden;
}

.fortune-page .store-panel {
    overflow: hidden;
}

.fortune-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 139, 187, 0.18), transparent 32%),
        radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.14), transparent 26%),
        linear-gradient(160deg, rgba(21, 38, 48, 0.96), rgba(9, 18, 24, 0.99)),
        url("/images/carbon-fibre.png");
}

.fortune-shell {
    display: grid;
    gap: 16px;
}

.fortune-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(12, 24, 31, 0.74);
    border: 1px solid rgba(120, 217, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fortune-hero-copy {
    min-width: 0;
    max-width: 760px;
}

.fortune-hero-kicker {
    color: #8ea6b3;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.fortune-hero h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.05;
}

.fortune-hero p {
    margin: 8px 0 0;
    color: rgba(216, 235, 243, 0.72);
    max-width: 720px;
    font-size: 13px;
    line-height: 1.45;
}

.fortune-wallet {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.fortune-wallet span {
    display: block;
    color: #8ea6b3;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.fortune-wallet strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.fortune-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 14px;
    align-items: stretch;
    min-height: 0;
    flex: 1 1 auto;
}

.fortune-wheel-card,
.fortune-side {
    min-width: 0;
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(11, 23, 30, 0.62);
    border: 1px solid rgba(135, 222, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fortune-wheel-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fortune-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.fortune-panel .wheel-wrapper {
    width: min(480px, 100%);
    max-width: none;
    margin: 0;
}

.fortune-panel .wheel-container {
    border: 10px solid rgba(255, 255, 255, 0.12);
    background: #142530;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.36),
        inset 0 0 26px rgba(255, 255, 255, 0.08);
}

.fortune-panel .wheel-pointer {
    top: -4px;
    border-left-width: 20px;
    border-right-width: 20px;
    border-top: 38px solid #f59e0b;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.36));
}

.fortune-panel .wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
    width: 92px;
    height: 92px;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a2200;
    background: linear-gradient(135deg, #ffe27a, #f59e0b);
    border: 5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 950;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    letter-spacing: 0;
    line-height: 1;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.fortune-panel .wheel-center span {
    font-size: 12px;
}

.fortune-panel .wheel-center i {
    font-size: 16px;
}

.fortune-panel .wheel-center::before {
    display: none;
}

.fortune-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(0, 180, 235, 0.16), rgba(255, 255, 255, 0.035)),
        rgba(0, 139, 187, 0.06);
    border: 1px solid rgba(63, 203, 255, 0.2);
}

.fortune-status-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd36a;
    background: rgba(245, 158, 11, 0.16);
    border-radius: 13px;
    font-size: 18px;
}

.fortune-status-copy {
    min-width: 0;
}

.fortune-status span {
    display: block;
    color: rgba(232, 243, 248, 0.62);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.fortune-status strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
}

.fortune-rules-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.065);
}

.fortune-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #e8f3f8;
    font-weight: 850;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fortune-section-title i {
    color: #ffd36a;
}

.fortune-rules {
    display: grid;
    gap: 8px;
}

.fortune-rules > div {
    min-width: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(232, 243, 248, 0.88);
    font-size: 12px;
    font-weight: 700;
}

.fortune-rules i {
    width: 24px;
    color: #ffd36a;
    text-align: center;
    font-size: 14px;
    flex: 0 0 auto;
}

.wheel-reward-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 11000;
    align-items: center;
    justify-content: center;
    background: rgba(7, 12, 16, 0.7);
    backdrop-filter: blur(10px);
    padding: 18px;
}

.wheel-reward-modal {
    width: min(430px, 100%);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(20, 37, 48, 0.98), rgba(12, 22, 29, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 28px 24px 24px;
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition: all 0.25s ease;
}

.wheel-reward-popup.active .wheel-reward-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.wheel-reward-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd36a;
    background: rgba(245, 158, 11, 0.14);
    font-size: 30px;
}

.wheel-reward-title {
    color: #fff;
    font-size: 24px;
}

.wheel-reward-text {
    color: rgba(232, 243, 248, 0.78);
    font-size: 15px;
}

.wheel-reward-close {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 10px;
}

@media (max-width: 992px) {

    .fortune-hero {
        flex-direction: column;
    }

    .fortune-wallet {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .fortune-panel {
        padding: 8px;
    }

    .fortune-shell {
        gap: 8px;
    }

    .fortune-hero {
        display: none;
    }

    .fortune-wallet {
        display: none;
    }

    .fortune-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fortune-wheel-card {
        padding: 8px;
        margin-bottom: 10px;
    }

    .fortune-panel .wheel-wrapper {
        width: min(94vw, calc(100svh - 104px));
        max-width: 460px;
    }

    .fortune-panel .wheel-center {
        width: 70px;
        height: 70px;
        font-size: .82rem;
    }

    .fortune-panel .wheel-center span {
        font-size: 9px;
    }

    .fortune-panel .wheel-center i {
        font-size: 12px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 480px) {

    .fortune-shell {
        gap: 0;
    }

    .fortune-hero {
        display: none;
    }

    .fortune-wheel-card {
        padding: 8px;
        min-height: calc(100svh - 82px);
    }

    .fortune-panel .wheel-wrapper {
        width: min(92vw, calc(100svh - 92px), 460px);
        max-width: none;
    }

    .fortune-wallet {
        display: none;
    }

    .fortune-panel .wheel-center {
        width: 60px;
        height: 60px;
        font-size: 0.72rem;
    }

    .fortune-panel .wheel-center span {
        font-size: 8px;
    }

    .fortune-panel .wheel-center i {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .fortune-page {
        height: 100%;
        overflow: hidden;
    }

    .fortune-page .store-panel,
    .fortune-panel {
        height: 100%;
        min-height: 0;
        padding: 8px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .fortune-hero,
    .fortune-wallet,
    .fortune-rules-card {
        display: none;
    }

    .fortune-grid {
        height: 100%;
        min-height: 0;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: stretch;
    }

    .fortune-wheel-card {
        min-height: 0;
        padding: 6px;
        margin: 0 6px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.035);
    }

    .fortune-panel .wheel-wrapper {
        width: min(96vw, calc(100dvh - 170px), 440px);
        max-width: none;
    }

    .fortune-panel .wheel-container {
        border-width: 8px;
    }

    .fortune-panel .wheel-pointer {
        top: -2px;
        border-left-width: 17px;
        border-right-width: 17px;
        border-top-width: 31px;
    }

    .fortune-panel .wheel-center {
        width: clamp(66px, 18vw, 82px);
        height: clamp(66px, 18vw, 82px);
    }

    .fortune-side {
        min-height: 0;
        padding: 8px 0;
        display: block;
        background: transparent;
        border: 0;
    }

    .fortune-status {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .fortune-status-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 16px;
    }

    .fortune-status strong {
        font-size: 13px;
        line-height: 1.25;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .fortune-page {
        height: 100%;
        overflow: hidden;
    }

    .fortune-page .store-panel,
    .fortune-panel {
        height: 100%;
        min-height: 0;
        padding: 6px 8px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .fortune-hero,
    .fortune-wallet,
    .fortune-rules-card {
        display: none;
    }

    .fortune-grid {
        height: 100%;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(176px, 230px);
        gap: 8px;
        align-items: stretch;
    }

    .fortune-wheel-card {
        min-height: 0;
        padding: 5px;
        margin: 0;
        border-radius: 16px;
    }

    .fortune-panel .wheel-wrapper {
        width: min(calc(100dvh - 68px), 54vw, 390px);
        max-width: none;
    }

    .fortune-panel .wheel-container {
        border-width: 7px;
    }

    .fortune-panel .wheel-pointer {
        top: -2px;
        border-left-width: 16px;
        border-right-width: 16px;
        border-top-width: 30px;
    }

    .fortune-panel .wheel-center {
        width: clamp(58px, 13dvh, 74px);
        height: clamp(58px, 13dvh, 74px);
        font-size: .78rem;
    }

    .fortune-panel .wheel-center span {
        font-size: 9px;
    }

    .fortune-side {
        min-height: 0;
        padding: 6px 0;
        display: flex;
        align-items: center;
        background: transparent;
        border: 0;
    }

    .fortune-status {
        width: 100%;
        padding: 12px;
        border-radius: 14px;
    }

    .fortune-status-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 16px;
    }

    .fortune-status strong {
        font-size: 13px;
        line-height: 1.25;
    }
}

/* ==========================================================================
   Tournaments pages
========================================================================== */

.tournament-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
    font-weight: 600;
}

.tournament-page {
    height: 100%;
    padding: 18px;
    overflow: hidden;
}

.tournament-head {
    margin-bottom: 18px;
}

.tournament-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.tournament-subtitle {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: auto;
    font-size: 1.05rem;
}

.tournament-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tournament-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.tournament-card-live {
    border-color: rgba(45, 212, 123, 0.42);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(45, 212, 123, 0.18);
}

.tournament-card-live:hover {
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.35),
        0 0 32px rgba(45, 212, 123, 0.26);
}

.tournament-card-header {
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tournament-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tournament-status.live {
    background: rgba(0, 255, 136, 0.15);
    color: #7dffbf;
}

.tournament-status.upcoming {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.tournament-status.finished {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.tournament-status.cancelled {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.tournament-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.tournament-prize {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffe082;
}

.tournament-body {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.tournament-time-box {
    background: linear-gradient(135deg, rgba(0, 139, 187, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 12px;
    margin-bottom: 22px;
    text-align: center;
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03);
}

.tournament-time-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-weight: 700;
}

.tournament-time-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.tournament-time-value span {
    font-size: 1rem;
    opacity: 0.7;
    margin-left: 4px;
}

.tournament-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tournament-info:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tournament-info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.tournament-info-value {
    font-weight: 700;
    text-align: right;
}

.tournament-join-btn {
    width: 100%;
    margin-top: auto;
    align-self: stretch;
    border: none;
    margin-top: 24px;
    border-radius: 18px;
    padding: 15px 20px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #dff6ff 100%);
    color: #253846;
    transition: 0.25s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.tournament-join-btn:hover {
    transform: translateY(-3px);
}

.tournament-join-btn:disabled,
.tournament-join-btn-disabled {
    opacity: 0.48;
    cursor: default;
    transform: none !important;
    box-shadow: none;
}

.tournament-prizes-modal {
    --bs-modal-width: 420px;
}

.tournament-prizes-modal .modal-content {
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(160deg, rgba(36, 70, 84, 0.96), rgba(22, 43, 52, 0.98)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.tournament-prizes-modal .modal-header {
    align-items: flex-start;
    padding: 18px 18px 8px;
}

.tournament-prizes-modal .modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.tournament-prizes-eyebrow {
    color: rgba(232, 243, 248, 0.62);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.tournament-prizes-modal .modal-body {
    padding: 10px 18px 18px;
}

.tournament-prizes-fund {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-prizes-fund span {
    color: rgba(232, 243, 248, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.tournament-prizes-fund strong {
    color: #ffd36a;
    font-size: 18px;
    font-weight: 900;
}

.tournament-prizes-list {
    display: grid;
    gap: 8px;
}

.tournament-prize-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tournament-prize-row span {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.tournament-prize-row strong {
    color: #ffd36a;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.tournament-empty {
    height: calc(100% - 110px);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-empty-title {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.tournament-empty-text {
    color: rgba(232, 243, 248, 0.72);
    font-size: 14px;
}

.tournament-top-box {
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tournament-top-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.tournament-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 20px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.tournament-player:last-child {
    margin-bottom: 0;
}

.tournament-player-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tournament-rank {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.tournament-player-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.tournament-player-points {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffe082;
}

@media (max-width: 768px) {
    .tournament-title {
        font-size: 2.3rem;
    }

    .tournament-prize {
        font-size: 1.6rem;
    }

    .tournament-player {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

}

@media (max-width: 768px) {
    .tournament-scroll {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
    }

    .tournament-scroll::-webkit-scrollbar {
        display: none;
    }

    .tournament-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content;
        margin: 0;
        gap: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .tournament-row > div {
        width: 320px;
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .tournament-head {
        display: none;
    }

    .tournament-name {
        font-size: 1rem;
        margin: 10px 0;
    }

    .tournament-prize,
    .tournament-time-box,
    .tournament-status {
        display: none;
    }

    .tournament-time-box {
        margin-bottom: 5px;
    }

    .tournament-info {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .tournament-card-header {
        padding: 8px 20px;
    }

    .tournament-join-btn {
        margin-top: 16px;
    }

    .tournament-join-btn {
        padding: 10px 20px;
    }

}

.trnsingle-card {
    height: 100%;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.trnsingle-header {
    padding: 22px;
    background: linear-gradient(135deg, rgba(0, 139, 187, 0.18), rgba(255, 255, 255, 0.04));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trnsingle-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.14);
    color: #8fffc8;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.trnsingle-status-upcoming {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.trnsingle-status-finished {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.trnsingle-status-cancelled {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.trnsingle-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.trnsingle-subtitle {
    color: rgba(255, 255, 255, 0.72);
}

.trnsingle-content {
    padding: 22px;
}

.trnsingle-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.trnsingle-info-box,
.trnsingle-description,
.trnsingle-sidebar-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
}

.trnsingle-sidebar-box {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.trnsingle-sidebar-box .trnsingle-btn:first-of-type {
    margin-top: auto !important;
}

.trnsingle-info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trnsingle-info-value {
    font-size: 1.1rem;
    font-weight: 800;
}

.trnsingle-main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: stretch;
}

.trnsingle-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.trnsingle-game-card {
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: 0.25s ease;
}

.trnsingle-game-card.active {
    background: linear-gradient(180deg, rgba(0, 139, 187, 0.22), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.trnsingle-game-card.played {
    background: linear-gradient(180deg, rgba(74, 200, 138, 0.16), rgba(255, 255, 255, 0.05));
    border-color: rgba(91, 226, 160, 0.22);
    box-shadow: 0 10px 26px rgba(20, 135, 90, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.trnsingle-game-card.played .trnsingle-game-score {
    background: rgba(91, 226, 160, 0.16);
    color: #b8ffd8;
    font-weight: 800;
}

.trnsingle-game-card:hover {
    transform: translateY(-4px);
}

.trnsingle-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trnsingle-game-badge {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.trnsingle-game-score {
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.trnsingle-game-center {
    text-align: center;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.trnsingle-game-state {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
}

.trnsingle-game-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.trnsingle-game-btn,
.trnsingle-btn {
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-weight: 800;
    transition: 0.25s ease;
    cursor: pointer;
    flex-shrink: 0;
    color: white;
    text-decoration: none;
}

.trnsingle-game-btn:hover,
.trnsingle-btn:hover {
    transform: translateY(-2px);
}

.trnsingle-game-btn {
    background: linear-gradient(135deg, #ffffff 0%, #dff6ff 100%);
    color: #253846;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.trnsingle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.trnsingle-btn-primary {
    background: linear-gradient(135deg, #008bbb, #33b8e0);
}

.trnsingle-btn:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none !important;
}

.trnsingle-sidebar-meta {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.trnsingle-sidebar-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.trnsingle-sidebar-meta span {
    color: rgba(232, 243, 248, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.trnsingle-sidebar-meta strong {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.trnsingle-prize-item,
.trnsingle-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

.trnsingle-player-current {
    color: #8fffc8;
}

.trnsingle-prize-item:last-child,
.trnsingle-player:last-child {
    border-bottom: none;
}

.trnsingle-final-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 3px;
}

.trnsingle-final-list-modal {
    max-height: min(56vh, 430px);
}

.trnsingle-final-list::-webkit-scrollbar {
    width: 4px;
}

.trnsingle-final-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.trnsingle-final-head,
.trnsingle-final-player {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 64px 86px;
    gap: 8px;
    align-items: center;
}

.trnsingle-final-head {
    padding: 0 0 8px;
    color: rgba(232, 243, 248, 0.56);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.trnsingle-final-head span:nth-child(2),
.trnsingle-final-head span:nth-child(3),
.trnsingle-final-player strong {
    text-align: right;
}

.trnsingle-final-player {
    padding: 9px 0;
    color: rgba(232, 243, 248, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 800;
}

.trnsingle-final-player:last-child {
    border-bottom: none;
}

.trnsingle-final-player span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trnsingle-final-player strong:last-child {
    color: #ffe082;
}

@media (max-width: 768px) {
    .trnsingle-main-layout {
        display: inline;
    }

    .trnsingle-games-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .trnsingle-games-grid::-webkit-scrollbar {
        display: none;
    }

    .trnsingle-game-card {
        min-width: 270px;
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

    .trnsingle-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .trnsingle-page {
        padding: 0;
    }

    .trnsingle-card {
        height: auto;
        border-radius: 0;
    }

    .trnsingle-header,
    .trnsingle-content {
        padding: 16px;
    }

    .trnsingle-title {
        font-size: 1.6rem;
    }

}

.faq-hero {
    background: linear-gradient(135deg, rgba(0, 139, 187, 0.18), rgba(255, 255, 255, 0.04));
    padding: 26px 30px;
    margin-bottom: 10px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.faq-hero::after {
    content: "?";
    position: absolute;
    right: 30px;
    top: -10px;
    font-size: 150px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
}

.faq-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.faq-subtitle {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.5;
}

.faq-grid {
    display: block;
}

.faq-main {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.faq-main {
    padding: 24px;
}

.faq-section {
    margin-bottom: 26px;
}

.faq-section:last-child {
    margin-bottom: 0;
}

.faq-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px !important;
    overflow: hidden;
    margin-bottom: 14px;
}

.accordion-button {
    background: transparent !important;
    color: white !important;
    font-weight: 700;
    padding: 20px;
    box-shadow: none !important;
    border: none;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(0, 139, 187, 0.18), rgba(255, 255, 255, 0.02)) !important;
}

.accordion-body {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    padding: 20px 20px;
}

.faq-inline-btn,
.faq-mini-btn {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0 8px;
    border-radius: 10px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
    vertical-align: baseline;
}

.faq-inline-btn {
    background: linear-gradient(135deg, #008bbb, #33b8e0);
}

.faq-mini-btn {
    padding: 4px 10px;
    color: #243744;
    background: linear-gradient(135deg, #ffffff, #dff6ff);
}

.faq-sidebar {
    position: relative;
    top: auto;
}

.faq-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
}

.faq-nav::-webkit-scrollbar {
    display: none;
}

.faq-nav-btn {
    white-space: nowrap;
    min-width: max-content;
}

.privacy-page {
    width: 100%;
    min-height: 100%;
    padding: 18px;
    color: #eaf7fb;
    overflow-y: auto;
}

.privacy-hero {
    position: relative;
    min-height: 150px;
    margin-bottom: 14px;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(42, 206, 157, 0.24), transparent 42%),
        linear-gradient(145deg, rgba(18, 58, 62, 0.96), rgba(14, 29, 36, 0.96));
    border: 1px solid rgba(126, 223, 243, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.privacy-hero::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 18px;
    width: 94px;
    height: 94px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(8deg);
}

.privacy-eyebrow {
    margin-bottom: 7px;
    color: #7de8ff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.privacy-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 950;
    letter-spacing: 0;
}

.privacy-hero p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: rgba(234, 247, 251, 0.74);
    font-size: 15px;
    line-height: 1.55;
}

.privacy-updated {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 14px;
    padding: 7px 10px;
    color: #bdf5ff;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.privacy-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.privacy-summary,
.privacy-card {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
        rgba(17, 36, 42, 0.92);
    border: 1px solid rgba(158, 220, 235, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.privacy-summary {
    position: sticky;
    top: 14px;
    padding: 16px;
}

.privacy-summary-title {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.privacy-summary ul,
.privacy-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.privacy-summary li,
.privacy-card li,
.privacy-card p {
    color: rgba(234, 247, 251, 0.76);
    font-size: 14px;
    line-height: 1.55;
}

.privacy-content {
    display: grid;
    gap: 12px;
}

.privacy-card {
    padding: 18px;
}

.privacy-card h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.privacy-card p {
    margin: 0;
}

.privacy-card p + ul {
    margin-top: 10px;
}

.privacy-card a {
    color: #7de8ff;
    font-weight: 800;
    text-decoration: none;
}

.privacy-card a:hover {
    color: #ffffff;
}

.rules-page {
    width: 100%;
    min-height: 100%;
    padding: 18px;
    color: #eaf7fb;
}

.rules-hero {
    display: flex;
    align-items: flex-end;
    min-height: 128px;
    margin-bottom: 14px;
    padding: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 0%, rgba(42, 206, 157, 0.24), transparent 44%),
        linear-gradient(145deg, rgba(19, 57, 63, 0.96), rgba(20, 31, 37, 0.96));
    border: 1px solid rgba(126, 223, 243, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.rules-eyebrow {
    margin-bottom: 6px;
    color: #7de8ff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.rules-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 950;
    letter-spacing: 0;
}

.rules-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(234, 247, 251, 0.74);
    font-size: 15px;
    line-height: 1.55;
}

.rules-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rules-card {
    padding: 18px;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
        rgba(17, 36, 42, 0.92);
    border: 1px solid rgba(158, 220, 235, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.rules-card-main {
    grid-column: 1 / -1;
}

.rules-card h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.rules-card h3 {
    margin: 0 0 6px;
    color: #9beaff;
    font-size: 13px;
    font-weight: 900;
}

.rules-card p,
.rules-card li {
    color: rgba(234, 247, 251, 0.76);
    font-size: 14px;
    line-height: 1.55;
}

.rules-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.rules-note {
    display: inline-flex;
    margin-top: 12px;
    padding: 9px 12px;
    color: #dffaff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(37, 183, 132, 0.16);
    border: 1px solid rgba(68, 224, 169, 0.2);
    border-radius: 10px;
}

.rules-table {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.rules-table div,
.rules-points-grid > div {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.rules-table div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.rules-table span {
    color: rgba(234, 247, 251, 0.78);
    font-size: 13px;
}

.rules-table strong {
    color: #ffe48a;
    white-space: nowrap;
}

.rules-points-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.rules-points-grid p {
    margin: 0;
    font-size: 13px;
}

.rules-card-points-list {
    display: grid;
    gap: 7px;
}

.rules-card-points-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rules-card-points-list strong {
    color: #eefaff;
    text-align: right;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.rules-mini-card {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 36px;
    color: #101a20;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff, #dfeaf0);
    border-radius: 6px;
    box-shadow: 0 6px 13px rgba(0, 0, 0, 0.22);
}

.rules-mini-card.red {
    color: #c21d35;
}

@media (max-width: 932px) {
    .privacy-page {
        padding: 10px;
    }

    .privacy-hero {
        min-height: 0;
        margin-bottom: 10px;
        padding: 18px;
        border-radius: 14px;
    }

    .privacy-hero::after {
        display: none;
    }

    .privacy-hero h1 {
        font-size: 28px;
    }

    .privacy-hero p,
    .privacy-summary li,
    .privacy-card li,
    .privacy-card p {
        font-size: 13px;
        line-height: 1.45;
    }

    .privacy-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .privacy-summary {
        position: static;
        padding: 14px;
    }

    .privacy-card {
        padding: 14px;
        border-radius: 12px;
    }

    .privacy-card h2 {
        font-size: 16px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .privacy-page {
        padding: 8px;
    }

    .privacy-hero {
        margin-bottom: 8px;
        padding: 12px 14px;
    }

    .privacy-eyebrow,
    .privacy-updated {
        font-size: 10px;
    }

    .privacy-hero h1 {
        margin-bottom: 5px;
        font-size: 22px;
    }

    .privacy-hero p {
        font-size: 12px;
        line-height: 1.35;
    }

    .privacy-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 8px;
    }

    .privacy-summary,
    .privacy-card {
        padding: 11px;
    }

    .privacy-summary-title,
    .privacy-card h2 {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .privacy-summary li,
    .privacy-card li,
    .privacy-card p {
        font-size: 12px;
        line-height: 1.35;
    }
}

@media (max-width: 932px) {
    .rules-page {
        padding: 10px;
        overflow-y: auto;
    }

    .rules-hero {
        min-height: auto;
        padding: 16px;
        border-radius: 14px;
    }

    .rules-hero h1 {
        font-size: 26px;
    }

    .rules-hero p {
        font-size: 13px;
    }

    .rules-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rules-card {
        padding: 14px;
        border-radius: 12px;
    }

    .rules-card h2 {
        font-size: 16px;
    }

    .rules-card p,
    .rules-card li {
        font-size: 13px;
    }

    .rules-points-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .faq-container {
        height: auto;
        min-height: 100%;
        overflow-y: auto;
    }

    .faq-hero {
        margin-bottom: 6px;
        padding: 12px 14px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
    }

    .faq-hero::after {
        right: 12px;
        top: -6px;
        font-size: 76px;
    }

    .faq-title {
        margin-bottom: 3px;
        font-size: 1.28rem;
        line-height: 1.05;
    }

    .faq-subtitle {
        max-width: 86%;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .faq-grid {
        padding: 8px !important;
    }

    .faq-main {
        padding: 10px;
        border-radius: 16px;
    }

    .faq-section-title {
        margin-bottom: 9px;
        font-size: 0.98rem;
    }

    .accordion-item {
        margin-bottom: 8px;
        border-radius: 13px !important;
    }

    .accordion-button {
        padding: 11px 12px;
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .accordion-body {
        padding: 12px 12px;
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .faq-inline-btn,
    .faq-mini-btn {
        margin: 3px 4px;
        padding: 5px 9px;
        border-radius: 8px;
        font-size: 0.72rem;
    }

}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .faq-container {
        height: auto;
        min-height: 100%;
        overflow-y: auto;
    }

    .faq-hero {
        margin-bottom: 4px;
        padding: 9px 14px;
    }

    .faq-hero::after {
        right: 14px;
        top: -8px;
        font-size: 64px;
    }

    .faq-title {
        margin-bottom: 2px;
        font-size: 1.1rem;
        line-height: 1;
    }

    .faq-subtitle {
        max-width: 72%;
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .faq-grid {
        padding: 6px !important;
    }

    .faq-main {
        padding: 8px;
        border-radius: 14px;
    }

    .faq-section-title {
        margin-bottom: 7px;
        font-size: 0.9rem;
    }

    .accordion-item {
        margin-bottom: 6px;
        border-radius: 11px !important;
    }

    .accordion-button {
        padding: 9px 11px;
        font-size: 0.74rem;
        line-height: 1.2;
    }

    .accordion-body {
        padding: 11px 10px;
        font-size: 0.72rem;
        line-height: 1.45;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .trnsingle-content {
        padding: 15px;
    }

    .trnsingle-header {
        display: none;
    }

    .trnsingle-description,
    .trnsingle-sidebar-title,
    .trnsingle-sidebar-list {
        display: none !important;
    }

    .trnsingle-info-box {
        padding: 10px 15px;
    }

    .trnsingle-info-grid {
        margin-bottom: 10px;
    }

    .trnsingle-main-layout {
        display: flex;
    }

    .trnsingle-games-grid {
        margin: 0;
    }

    .trnsingle-game-center {
        margin: 2px 0;
    }

}

@media (max-width: 576px) {
    .tournament-page {
        height: 100%;
        padding: 8px;
        overflow: hidden;
    }

    .tournament-head {
        margin-bottom: 8px;
    }

    .tournament-title {
        margin-bottom: 4px;
        font-size: 1.35rem;
        letter-spacing: 1px;
    }

    .tournament-subtitle {
        display: none;
    }

    .tournament-scroll {
        height: calc(100% - 42px);
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0;
        scroll-padding-left: 0;
    }

    .tournament-row {
        height: 100%;
        align-items: center;
        gap: 10px;
        padding: 0;
    }

    .tournament-row > div {
        width: min(310px, 84vw);
        height: clamp(420px, calc(100dvh - 150px), 560px);
        max-height: 100%;
    }

    .tournament-card {
        max-height: 100%;
        border-radius: 18px;
    }

    .tournament-card-header {
        padding: 11px 12px;
    }

    .tournament-status {
        margin-bottom: 8px;
        padding: 5px 9px;
        font-size: 0.68rem;
    }

    .tournament-name {
        margin-bottom: 5px;
        font-size: 1rem;
        line-height: 1.1;
    }

    .tournament-prize {
        font-size: 1.05rem;
    }

    .tournament-body {
        padding: 10px 12px 12px;
    }

    .tournament-time-box {
        margin-bottom: 10px;
        padding: 8px;
        border-radius: 14px;
    }

    .tournament-time-label {
        margin-bottom: 4px;
        font-size: 0.65rem;
    }

    .tournament-time-value {
        font-size: 1.35rem;
    }

    .tournament-info {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .tournament-info-label,
    .tournament-info-value {
        font-size: 0.78rem;
    }

    .tournament-join-btn {
        margin-top: auto;
        padding: 10px 12px;
        border-radius: 13px;
        font-size: 0.82rem;
    }

    .trnsingle-page,
    .trnsingle-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .trnsingle-page {
        height: 100%;
        display: flex;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(12px);
    }

    .trnsingle-card {
        height: 100%;
        max-height: none;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .trnsingle-header {
        padding: 10px 12px;
    }

    .trnsingle-status {
        margin-bottom: 6px;
        padding: 5px 9px;
        font-size: 0.64rem;
    }

    .trnsingle-title {
        margin-bottom: 0;
        font-size: 1.18rem;
        line-height: 1.1;
    }

    .trnsingle-subtitle {
        display: none;
    }

    .trnsingle-content {
        height: calc(100% - 74px);
        min-height: 0;
        max-height: none;
        box-sizing: border-box;
        padding: 8px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow: hidden;
    }

    .trnsingle-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 0;
        min-width: 0;
    }

    .trnsingle-info-box {
        padding: 7px 8px;
        border-radius: 11px;
    }

    .trnsingle-info-label {
        margin-bottom: 3px;
        font-size: 0.58rem;
        letter-spacing: 0.4px;
    }

    .trnsingle-info-value {
        font-size: 0.82rem;
        line-height: 1.1;
    }

    .trnsingle-main-layout {
        width: 100%;
        min-width: 0;
        min-height: 0;
        flex: 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .trnsingle-main-layout > div:first-child {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        flex: 1;
    }

    .trnsingle-games-grid {
        width: 100%;
        min-width: 0;
        height: 100%;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 7px;
        overflow: hidden;
        padding-bottom: 0;
    }

    .trnsingle-game-card {
        height: auto;
        min-height: 0;
        min-width: 0;
        padding: 9px;
        border-radius: 14px;
    }

    .trnsingle-game-badge {
        width: 32px;
        height: 32px;
        border-radius: 11px;
        font-size: 0.85rem;
    }

    .trnsingle-game-score {
        padding: 5px 7px;
        font-size: 0.68rem;
    }

    .trnsingle-game-center {
        margin: 7px 0;
    }

    .trnsingle-game-state {
        margin-bottom: 3px;
        font-size: 0.58rem;
    }

    .trnsingle-game-title {
        margin-bottom: 4px;
        font-size: 0.95rem;
    }

    .trnsingle-game-btn,
    .trnsingle-btn {
        height: 34px;
        min-height: 34px;
        padding: 7px;
        border-radius: 11px;
        font-size: 0.72rem;
    }

    .trnsingle-sidebar-box {
        min-height: 116px;
        padding: 8px;
        border-radius: 13px;
        display: flex;
        flex-direction: column;
    }

    .trnsingle-sidebar-meta {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        margin-top: 0;
        margin-bottom: 8px;
    }

    .trnsingle-sidebar-meta > div {
        padding: 7px 8px;
        border-radius: 10px;
    }

    .trnsingle-sidebar-meta > div:nth-child(2) {
        display: none;
    }

    .trnsingle-sidebar-meta span {
        font-size: 0.62rem;
    }

    .trnsingle-sidebar-meta strong {
        font-size: 0.72rem;
    }

    .trnsingle-sidebar-box .trnsingle-btn {
        margin-top: 8px !important;
        margin-bottom: 0 !important;
    }

    .trnsingle-sidebar-box .trnsingle-btn:first-of-type {
        margin-top: auto !important;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .tournament-page {
        height: 100%;
        padding: 6px 8px;
        overflow: hidden;
    }

    .tournament-scroll {
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0;
    }

    .tournament-row {
        height: 100%;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0;
    }

    .tournament-row > div {
        width: clamp(214px, 28vw, 252px);
        height: clamp(220px, 78dvh, 292px);
    }

    .tournament-card {
        max-height: 292px;
        border-radius: 16px;
    }

    .tournament-card-header {
        padding: 9px 10px;
    }

    .tournament-name {
        margin-bottom: 4px;
        font-size: 0.96rem;
        line-height: 1.1;
    }

    .tournament-body {
        height: auto;
        padding: 8px 10px 10px;
    }

    .tournament-info {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }

    .tournament-info-label,
    .tournament-info-value {
        font-size: 0.7rem;
    }

    .tournament-join-btn {
        margin-top: auto;
        padding: 9px 10px;
        border-radius: 12px;
        font-size: 0.78rem;
    }

    .trnsingle-page,
    .trnsingle-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .trnsingle-page {
        height: 100%;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(12px);
    }

    .trnsingle-card {
        height: auto;
        max-height: calc(100% - 12px);
        background: transparent;
        backdrop-filter: none;
    }

    .trnsingle-content {
        height: auto;
        min-height: 0;
        box-sizing: border-box;
        padding: 8px;
        display: grid;
        grid-template-rows: auto auto;
        gap: 8px;
        overflow: hidden;
    }

    .trnsingle-info-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 0;
        min-width: 0;
    }

    .trnsingle-info-box {
        padding: 6px 8px;
        border-radius: 10px;
    }

    .trnsingle-info-label {
        margin-bottom: 2px;
        font-size: 0.55rem;
        letter-spacing: 0.3px;
    }

    .trnsingle-info-value {
        font-size: 0.76rem;
        line-height: 1.1;
    }

    .trnsingle-main-layout {
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: clamp(190px, 54dvh, 260px);
        max-height: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 210px;
        align-items: stretch;
        gap: 8px;
    }

    .trnsingle-main-layout > div:first-child {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }

    .trnsingle-games-grid {
        width: 100%;
        min-width: 0;
        height: 100%;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        gap: 7px;
        overflow: hidden;
        padding-bottom: 0;
    }

    .trnsingle-game-card {
        height: 100%;
        max-height: none;
        min-width: 0;
        padding: 10px;
        border-radius: 13px;
    }

    .trnsingle-game-badge {
        width: 28px;
        height: 28px;
        border-radius: 9px;
        font-size: 0.75rem;
    }

    .trnsingle-game-score {
        padding: 4px 6px;
        font-size: 0.62rem;
    }

    .trnsingle-game-center {
        margin: auto 0 8px;
    }

    .trnsingle-game-state {
        margin-bottom: 2px;
        font-size: 0.52rem;
    }

    .trnsingle-game-title {
        margin-bottom: 0;
        font-size: 0.88rem;
    }

    .trnsingle-game-btn,
    .trnsingle-btn {
        height: 30px;
        min-height: 30px;
        padding: 5px;
        border-radius: 9px;
        font-size: 0.66rem;
    }

    .trnsingle-sidebar-box {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        box-sizing: border-box;
        padding: 9px;
        border-radius: 13px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .trnsingle-sidebar-meta {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
        margin-top: 0;
        margin-bottom: 8px;
    }

    .trnsingle-sidebar-meta > div {
        padding: 6px 7px;
        border-radius: 9px;
    }

    .trnsingle-sidebar-meta > div:nth-child(2) {
        display: none;
    }

    .trnsingle-sidebar-box .trnsingle-btn {
        margin-top: 7px !important;
        margin-bottom: 0 !important;
    }

    .trnsingle-sidebar-box .trnsingle-btn:first-of-type {
        margin-top: auto !important;
    }
}

/* Tournament game UI refresh */
.tournament-page,
.trnsingle-page {
    background:
        radial-gradient(circle at 50% 10%, rgba(40, 154, 116, 0.16), transparent 38%),
        linear-gradient(160deg, rgba(10, 31, 34, 0.96), rgba(8, 18, 24, 0.99)),
        url("/images/carbon-fibre.png");
}

.tournament-page {
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.tournament-head {
    margin: 0 auto 12px;
    max-width: 760px;
}

.tournament-title {
    margin: 0 0 5px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: 0;
    line-height: 1.05;
}

.tournament-subtitle {
    max-width: 620px;
    font-size: 0.9rem;
    line-height: 1.3;
    color: rgba(232, 243, 248, 0.66);
}

.tournament-scroll {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    overflow: visible;
}

.tournament-row {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    justify-content: center;
}

.tournament-col {
    min-width: 0;
}

.tournament-card {
    height: 100%;
    min-height: 0;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
        rgba(12, 34, 37, 0.9);
    border-color: rgba(125, 255, 191, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    backdrop-filter: none;
}

.tournament-card:hover {
    transform: none;
}

.tournament-card-live {
    border-color: rgba(94, 234, 160, 0.54);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(94, 234, 160, 0.12),
        0 0 22px rgba(45, 212, 123, 0.18);
}

.tournament-card-header {
    padding: 12px;
    background: rgba(5, 18, 20, 0.28);
}

.tournament-status {
    margin-bottom: 9px;
    padding: 5px 9px;
    font-size: 0.68rem;
}

.tournament-name {
    margin: 0 0 5px;
    font-size: 1.02rem;
    line-height: 1.12;
}

.tournament-prize {
    font-size: 1rem;
    color: #ffd76b;
}

.tournament-body {
    padding: 10px 12px 12px;
}

.tournament-time-box {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.tournament-time-label {
    margin-bottom: 3px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

.tournament-time-value {
    font-size: 0.95rem;
}

.tournament-info {
    margin-bottom: 7px;
    padding-bottom: 7px;
}

.tournament-info-label,
.tournament-info-value {
    font-size: 0.78rem;
    line-height: 1.15;
}

.tournament-join-btn {
    margin-top: auto;
    min-height: 34px;
    padding: 12px 11px;
    border-radius: 11px;
    font-size: 0.78rem;
    line-height: 1.1;
    color: #092630;
    background: linear-gradient(135deg, #e7fbff, #51d5f3);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.tournament-join-btn:hover {
    transform: none;
}

@media (min-width: 933px) {
    .tournament-scroll {
        flex: 0 1 auto;
        max-width: 980px;
    }

    .tournament-row {
        height: auto;
        align-items: stretch;
    }

    .tournament-col {
        height: clamp(390px, 58vh, 470px);
    }

    .tournament-card {
        height: 100%;
    }
}

.trnsingle-page {
    padding: 0;
    overflow: hidden;
}

.trnsingle-card {
    height: 100%;
    background: transparent;
    backdrop-filter: none;
}

.trnsingle-header {
    padding: 14px 16px 12px;
    background: linear-gradient(135deg, rgba(45, 212, 123, 0.12), rgba(0, 139, 187, 0.12));
}

.trnsingle-status {
    margin-bottom: 8px;
    padding: 5px 10px;
    font-size: 0.66rem;
}

.trnsingle-title {
    margin-bottom: 3px;
    font-size: clamp(1.15rem, 2.8vw, 1.75rem);
    line-height: 1.05;
}

.trnsingle-subtitle {
    max-width: 760px;
    font-size: 0.82rem;
    line-height: 1.25;
    color: rgba(232, 243, 248, 0.62);
}

.trnsingle-content {
    height: calc(100% - 88px);
    min-height: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trnsingle-info-grid {
    margin-bottom: 0;
    gap: 8px;
}

.trnsingle-info-box,
.trnsingle-description,
.trnsingle-sidebar-box {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(125, 255, 191, 0.1);
    backdrop-filter: none;
}

.trnsingle-info-box {
    padding: 9px 10px;
}

.trnsingle-info-label {
    margin-bottom: 3px;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
}

.trnsingle-info-value {
    font-size: 0.88rem;
}

.trnsingle-main-layout {
    flex: 1;
    min-height: 0;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 250px;
}

.trnsingle-games-grid {
    height: 100%;
    margin: 0;
    gap: 10px;
}

.trnsingle-game-card {
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
        rgba(12, 34, 37, 0.72);
}

.trnsingle-game-card:hover {
    transform: none;
}

.trnsingle-game-badge {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 0.82rem;
}

.trnsingle-game-score {
    padding: 5px 8px;
    font-size: 0.68rem;
}

.trnsingle-game-center {
    margin: auto 0;
}

.trnsingle-game-state {
    margin-bottom: 4px;
    font-size: 0.58rem;
}

.trnsingle-game-title {
    margin-bottom: 0;
    font-size: 1rem;
}

.trnsingle-game-btn,
.trnsingle-btn {
    height: 36px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 0.76rem;
}

.trnsingle-sidebar-box {
    padding: 10px;
    overflow: hidden;
}

.trnsingle-sidebar-meta {
    margin-top: 0;
    gap: 7px;
}

.trnsingle-sidebar-meta > div {
    padding: 8px 9px;
    border-radius: 10px;
}

@media (min-width: 933px) {
    .trnsingle-page {
        padding: 12px;
    }

    .trnsingle-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .trnsingle-header {
        flex: 0 0 auto;
        padding: 16px 18px 14px;
    }

    .trnsingle-content {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        padding: 14px;
        gap: 12px;
        overflow: hidden;
    }

    .trnsingle-info-grid {
        flex: 0 0 auto;
        gap: 10px;
    }

    .trnsingle-info-box {
        padding: 10px 12px;
    }

    .trnsingle-main-layout {
        flex: 1 1 auto;
        min-height: 0;
        gap: 14px;
        grid-template-columns: minmax(0, 1fr) 270px;
        overflow: hidden;
    }

    .trnsingle-main-layout > div:first-child {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: hidden;
    }

    .trnsingle-description {
        flex: 0 0 auto;
        padding: 12px 14px;
        line-height: 1.3;
    }

    .trnsingle-games-grid {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        gap: 12px;
    }

    .trnsingle-game-card {
        min-height: 0;
        padding: 11px;
    }

    .trnsingle-sidebar-box {
        min-height: 0;
        padding: 12px;
    }

    .trnsingle-sidebar-list {
        min-height: 0;
        overflow-y: auto;
        padding-right: 2px;
    }
}

@media (max-width: 576px) {
    .tournament-page {
        padding: 8px;
    }

    .tournament-head {
        text-align: left !important;
        margin-bottom: 8px;
    }

    .tournament-title {
        font-size: 1.18rem;
    }

    .tournament-scroll {
        max-width: none;
        overflow: hidden;
    }

    .tournament-row {
        height: auto;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 0;
        width: 100%;
    }

    .tournament-row > div,
    .tournament-col {
        width: 100%;
        height: auto;
    }

    .tournament-card {
        min-height: 0;
        height: auto;
        border-radius: 13px;
    }

    .tournament-card-header {
        padding: 10px 11px 8px;
    }

    .tournament-body {
        padding: 8px 11px 10px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .tournament-time-box,
    .tournament-info {
        margin: 0;
        padding: 7px 8px;
        border: 1px solid rgba(255, 255, 255, 0.075);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.045);
    }

    .tournament-info {
        display: block;
    }

    .tournament-join-btn {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .trnsingle-header {
        padding: 10px 12px 8px;
    }

    .trnsingle-content {
        height: calc(100% - 64px);
        padding: 8px;
        gap: 7px;
    }

    .trnsingle-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .trnsingle-main-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 7px;
        margin-bottom: 8px;
    }

    .trnsingle-main-layout > div:first-child {
        width: 100%;
        min-width: 0;
        min-height: 0;
    }

    .trnsingle-games-grid {
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 7px;
        overflow: hidden;
    }

    .trnsingle-game-card {
        min-width: 0;
        min-height: 0;
        padding: 8px;
        border-radius: 12px;
    }

    .trnsingle-sidebar-box {
        width: 100%;
        min-height: 104px;
        padding: 8px;
    }

    .trnsingle-sidebar-meta {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .tournament-page {
        padding: 7px 9px;
    }

    .tournament-scroll {
        max-width: 860px;
        height: 100%;
    }

    .tournament-row {
        height: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        align-items: center;
    }

    .tournament-col,
    .tournament-row > div {
        width: auto;
        height: min(100%, 294px);
    }

    .tournament-card {
        height: 100%;
        max-height: none;
    }

    .tournament-prize,
    .tournament-time-box,
    .tournament-status {
        display: block;
    }

    .tournament-time-box {
        margin-bottom: 7px;
        padding: 6px 8px;
    }

    .trnsingle-card {
        height: 100%;
        max-height: none;
    }

    .trnsingle-content {
        height: 100%;
        padding: 8px;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .trnsingle-main-layout {
        height: auto;
        grid-template-columns: minmax(0, 1fr) 220px;
    }
}

@media (max-width: 576px) {
    .tournament-scroll {
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 0;
    }

    .tournament-card-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 8px;
        align-items: start;
    }

    .tournament-status {
        grid-column: 1 / -1;
        width: fit-content;
        max-width: 100%;
        white-space: nowrap;
    }

    .tournament-name {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .tournament-prize {
        align-self: center;
        white-space: nowrap;
        font-size: 0.98rem;
    }

    .tournament-time-box,
    .tournament-info {
        min-width: 0;
        overflow: hidden;
    }

    .tournament-info-label,
    .tournament-info-value {
        display: block;
        min-width: 0;
        max-width: 100%;
    }

    .tournament-info-label {
        margin-bottom: 3px;
    }

    .tournament-info-value {
        text-align: right;
        overflow-wrap: anywhere;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .tournament-page {
        padding: 6px 8px;
    }

    .tournament-scroll {
        width: 100%;
        max-width: none;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 2px 2px;
    }

    .tournament-row {
        width: max-content;
        height: 100%;
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
    }

    .tournament-col,
    .tournament-row > div {
        flex: 0 0 224px;
        width: 224px;
        height: min(286px, calc(100dvh - 64px));
    }

    .tournament-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        border-radius: 14px;
    }

    .tournament-card-header {
        display: block;
        padding: 9px 10px 7px;
    }

    .tournament-status {
        width: fit-content;
        max-width: 100%;
        margin-bottom: 7px;
        padding: 4px 8px;
        white-space: nowrap;
        font-size: 0.62rem;
    }

    .tournament-name {
        margin-bottom: 3px;
        font-size: 0.9rem;
    }

    .tournament-prize {
        font-size: 0.9rem;
    }

    .tournament-body {
        flex: 1;
        min-height: 0;
        padding: 7px 10px 9px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        align-content: stretch;
    }

    .tournament-time-box,
    .tournament-info {
        min-width: 0;
        margin: 0;
        padding: 6px 7px;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 255, 255, 0.075);
        overflow: hidden;
    }

    .tournament-time-box {
        grid-column: 1 / -1;
    }

    .tournament-time-label,
    .tournament-info-label {
        display: block;
        margin-bottom: 2px;
        font-size: 0.54rem;
        line-height: 1;
    }

    .tournament-time-value {
        font-size: 0.86rem;
        line-height: 1.08;
    }

    .tournament-info-value {
        display: block;
        min-width: 0;
        text-align: right;
        font-size: 0.66rem;
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .tournament-info:last-of-type {
        grid-column: 1 / -1;
    }

    .tournament-join-btn {
        grid-column: 1 / -1;
        min-height: 34px;
        border-radius: 10px;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   Game table
========================================================================== */

.blot-wrap {
    position: relative;
}

.blot-table-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.blot-mobile-game-menu {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 1090;
    display: none;
}

.blot-mobile-menu-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(238, 250, 255, 0.86);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    opacity: 0.62;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.blot-mobile-menu-toggle:hover,
.blot-mobile-menu-toggle:focus,
.blot-mobile-game-menu-open .blot-mobile-menu-toggle {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    opacity: 1;
}

.blot-mobile-menu-toggle i {
    font-size: 17px;
}

.blot-mobile-menu-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: min(180px, calc(100vw - 20px));
    padding: 8px;
    border-radius: 14px;
    background:
        linear-gradient(160deg, rgba(22, 45, 55, 0.98), rgba(10, 20, 25, 0.99)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92);
    transform-origin: top left;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    pointer-events: none;
}

.blot-mobile-game-menu-open .blot-mobile-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.blot-mobile-menu-item {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(232, 243, 248, 0.88);
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.blot-mobile-menu-item:hover,
.blot-mobile-menu-item:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.blot-mobile-menu-item .form-switch {
    margin-left: auto;
}

.blot-mobile-menu-language {
    position: relative;
}

.blot-mobile-menu-language .settings-language-list {
    top: 0;
    left: calc(100% + 8px);
    right: auto;
}

.blot-table {
    width: 90%;
    aspect-ratio: 16 / 8;
    max-height: 680px;
    position: relative;
    border-radius: 200px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 70%),
        linear-gradient(180deg, #14604d 0%, #0d4739 100%);
    border: 14px solid #3d2418;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35), 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: visible;
}

.blot-table::before {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 168px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.blot-waiting-room {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 900;
    width: min(440px, calc(100vw - 48px));
    padding: 20px;
    border-radius: 18px;
    transform: translate(-50%, -50%);
    background: rgb(0 0 0 / 47%);
    border: 1px solid rgb(255 255 255 / 16%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #eefaff;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.blot-waiting-room-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -46%);
    pointer-events: none;
}

.blot-waiting-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.blot-waiting-dots {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    width: 27px;
    height: 10px;
}

.blot-waiting-dots i {
    width: 5px;
    height: 5px;
    background: #ffd76e;
    border-radius: 50%;
    opacity: 0.18;
    transform: translateY(1px) scale(0.75);
    animation: blot-waiting-dot 1.35s infinite ease-in-out;
}

.blot-waiting-dots i:nth-child(2) {
    animation-delay: 0.2s;
}

.blot-waiting-dots i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blot-waiting-dot {
    0%, 65%, 100% {
        opacity: 0.18;
        transform: translateY(1px) scale(0.75);
    }
    25% {
        opacity: 1;
        transform: translateY(-2px) scale(1);
    }
}

.blot-waiting-recommendation {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    margin-top: 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(255, 200, 78, 0.13), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blot-waiting-tip-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #ffd76e;
    background: rgba(255, 200, 78, 0.12);
    border-radius: 12px;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(255, 200, 78, 0.08);
}

.blot-waiting-tips {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 66px;
}

.blot-waiting-tips .rotating-tip {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    color: rgba(238, 250, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0;
    text-align: left;
    transform: translateX(8px);
    filter: blur(2px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
    pointer-events: none;
}

.blot-waiting-tips .rotating-tip.is-active {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

@media (orientation: landscape) and (max-width: 932px) {
    .main.game-page-active .blot-waiting-room {
        width: min(420px, calc(100vw - 64px));
        padding: 16px 18px;
    }

    .main.game-page-active .blot-waiting-recommendation {
        min-height: 82px;
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blot-waiting-dots i {
        animation: none;
        opacity: 0.7;
    }

    .blot-waiting-tips .rotating-tip {
        transform: none;
        filter: none;
        transition: opacity 0.2s linear;
    }
}

@media (orientation: portrait) and (max-width: 768px) {
    .main.game-page-active .blot-waiting-room {
        width: min(390px, calc(100vw - 24px));
        min-height: clamp(156px, 25dvh, 210px);
        max-height: calc(100dvh - 110px);
        padding: clamp(14px, 2.4dvh, 20px);
        border-radius: 17px;
    }

    .main.game-page-active .blot-waiting-title {
        font-size: clamp(13px, 3.7vw, 16px);
    }

    .main.game-page-active .blot-waiting-recommendation {
        min-height: clamp(92px, 17dvh, 138px);
        margin-top: clamp(10px, 1.8dvh, 15px);
        padding: clamp(11px, 2dvh, 15px);
    }

    .main.game-page-active .blot-waiting-tips {
        min-height: clamp(70px, 13dvh, 108px);
    }

    .main.game-page-active .blot-waiting-tips .rotating-tip {
        font-size: clamp(12px, 3.2vw, 14px);
        line-height: 1.5;
    }
}

.blot-waiting-count {
    margin-top: 8px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.blot-waiting-text {
    margin-top: 8px;
    color: rgba(238, 250, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
}

.blot-friend-invite {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 900;
    width: min(300px, calc(100vw - 48px));
    padding: 18px 20px;
    border-radius: 18px;
    transform: translate(-50%, -50%);
    background: rgb(0 0 0 / 47%);
    border: 1px solid rgb(255 255 255 / 16%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #eefaff;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.blot-friend-invite-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -46%);
    pointer-events: none;
}

.blot-friend-invite-title {
    color: rgba(238, 250, 255, 0.76);
    font-size: 12px;
    font-weight: 800;
}

.blot-friend-invite-code {
    margin-top: 8px;
    color: #ffd36a;
    font-size: 42px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 8px;
}

.blot-friend-invite-text {
    margin-top: 8px;
    color: rgba(238, 250, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
}

.blot-socket-notice {
    position: absolute;
    left: 50%;
    top: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(330px, calc(100vw - 44px));
    min-height: 54px;
    padding: 10px 14px;
    border-radius: 16px;
    transform: translateX(-50%);
    background: rgb(0 0 0 / 47%);
    border: 1px solid rgb(255 255 255 / 16%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #eefaff;
    backdrop-filter: blur(12px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.blot-socket-notice-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -10px);
    pointer-events: none;
}

.blot-socket-notice-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.18);
}

.blot-socket-notice-title {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
}

.blot-socket-notice-text {
    margin-top: 3px;
    color: rgba(238, 250, 255, 0.76);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.blot-socket-notice-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 7px 11px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.blot-socket-notice-action:hover {
    color: #fff;
    filter: brightness(1.08);
}

.blot-socket-notice-success .blot-socket-notice-dot {
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18);
}

.blot-socket-notice-warning .blot-socket-notice-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.18);
}

.blot-socket-notice-error .blot-socket-notice-dot {
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.18);
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .blot-socket-notice {
        top: 10px;
        min-height: 46px;
        padding: 8px 12px;
    }

    .blot-socket-notice-title {
        font-size: 12px;
    }

    .blot-socket-notice-text {
        font-size: 10px;
    }
}

@media (max-width: 900px) {
    .blot-mobile-game-menu {
        display: block;
    }
}

@media (orientation: portrait) and (max-width: 768px) {
    .blot-combination-slot-left,
    .blot-combination-slot-right {
        top: auto;
        bottom: calc(100% + 2px);
    }

    .blot-combination-slot-left {
        left: 0;
        right: auto;
    }

    .blot-combination-slot-right {
        right: 0;
        left: auto;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .blot-mobile-game-menu {
        display: block;
        left: 8px;
        top: 8px;
    }

    .blot-mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .blot-mobile-menu-toggle i {
        font-size: 16px !important;
    }

    .blot-mobile-menu-panel {
        left: 0;
        top: 0;
        width: min(180px, calc(100vw - 16px));
        padding: 7px;
    }

    .blot-mobile-menu-item {
        min-height: 40px;
        padding: 8px 10px;
        border-radius: 9px;
        font-size: 13px;
    }

}

.game-leave-modal .modal-content {
    border-radius: 18px;
    background: rgb(45 54 58 / 74%);
    border: 1px solid rgb(255 255 255 / 16%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #eefaff;
    backdrop-filter: blur(12px);
}

.modal.game-leave-modal {
    z-index: 1070;
}

.modal-backdrop.show {
    z-index: 1050;
}

.game-leave-modal .modal-header,
.game-leave-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

.game-leave-modal .modal-title {
    font-size: 17px;
    font-weight: 900;
}

.game-leave-modal .modal-body {
    color: rgba(238, 250, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
}

.game-leave-modal .btn {
    min-width: 86px;
    border-radius: 12px;
    font-weight: 800;
    justify-content: center;
}

.game-leave-modal .btn-outline-light:hover,
.game-leave-modal .btn-outline-light:focus {
    color: #f8f9fa;
    background-color: transparent;
    border-color: #f8f9fa;
}

.game-leave-modal .btn-danger:hover,
.game-leave-modal .btn-danger:focus {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

@media (max-width: 932px) {
    .game-leave-modal .modal-dialog {
        max-width: min(360px, calc(100vw - 24px));
        margin-left: auto;
        margin-right: auto;
    }

    .game-leave-modal .modal-content {
        border-radius: 17px;
    }

    .game-leave-modal .modal-header,
    .game-leave-modal .modal-footer {
        padding: 12px 14px;
    }

    .game-leave-modal .modal-title {
        font-size: 16px;
        line-height: 1.2;
    }

    .game-leave-modal .modal-body {
        padding: 14px;
        font-size: 14px;
        line-height: 1.35;
    }

    .game-leave-modal .btn {
        min-width: 82px;
        height: 38px;
        padding: 0 14px;
        border-radius: 11px;
        font-size: 13px;
        line-height: 1;
    }

    .game-leave-modal .btn-close {
        width: 0.75em;
        height: 0.75em;
        padding: 0.45em;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .game-leave-modal .modal-dialog {
        max-width: min(330px, calc(100vw - 28px));
    }

    .game-leave-modal .modal-title {
        font-size: 15px;
    }

    .game-leave-modal .modal-body {
        padding: 11px 12px;
        font-size: 13px;
    }

    .game-leave-modal .btn {
        height: 34px;
        min-width: 74px;
        font-size: 12px;
    }
}

.friend-table-modal {
    pointer-events: none;
    background: transparent;
}

.friend-table-modal .modal-dialog {
    max-width: 430px;
    pointer-events: none;
}

.friend-table-modal .modal-content {
    pointer-events: auto;
    padding: 16px;
    border-radius: 18px;
    background:
        linear-gradient(160deg, rgba(25, 42, 55, 0.97), rgba(10, 18, 25, 0.99)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.friend-table-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.friend-table-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dff7ff;
    background: rgba(0, 139, 187, 0.18);
    border: 1px solid rgba(0, 139, 187, 0.28);
    border-radius: 14px;
    font-size: 18px;
}

.friend-table-subtitle,
.friend-table-label,
.friend-table-state,
.friend-table-join label {
    color: rgba(238, 250, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
}

.friend-table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.friend-table-action {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #eefaff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-weight: 850;
}

.friend-table-action:hover {
    background: rgba(0, 139, 187, 0.18);
    border-color: rgba(0, 139, 187, 0.32);
}

.friend-table-code-wrap,
.friend-table-join {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: center;
}

.friend-table-code {
    margin-top: 6px;
    color: #ffd36a;
    font-size: 36px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 8px;
}

.friend-table-state {
    margin-top: 6px;
}

.friend-table-input-row {
    display: flex;
    gap: 8px;
    margin-top: 9px;
}

.friend-table-input-row input {
    min-width: 0;
    flex: 1;
    height: 40px;
    color: #eefaff;
    text-align: center;
    letter-spacing: 6px;
    font-size: 18px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    outline: none;
}

.friend-table-input-row button {
    width: 58px;
    color: #2f1d00;
    font-weight: 950;
    background: linear-gradient(135deg, #ffe27a, #f59e0b);
    border: none;
    border-radius: 12px;
}

.friend-table-error {
    margin-top: 9px;
    color: #ff9b9b;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 932px) {
    .friend-table-modal .modal-dialog {
        width: min(350px, calc(100vw - 24px));
        margin: 8px auto;
    }

    .friend-table-modal .modal-content {
        padding: 12px;
        border-radius: 15px;
    }

    .friend-table-head {
        gap: 9px;
    }

    .friend-table-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 15px;
    }

    .friend-table-head .modal-title {
        font-size: 15px;
    }

    .friend-table-subtitle,
    .friend-table-label,
    .friend-table-state,
    .friend-table-join label {
        font-size: 10px;
    }

    .friend-table-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 10px;
    }

    .friend-table-action {
        min-height: 54px;
        flex-direction: row;
        gap: 7px;
        padding: 7px;
        border-radius: 11px;
        font-size: 11px;
        line-height: 1.15;
    }

    .friend-table-code-wrap,
    .friend-table-join {
        margin-top: 9px;
        padding: 9px;
        border-radius: 11px;
    }

    .friend-table-code {
        margin-top: 4px;
        font-size: 30px;
        letter-spacing: 6px;
    }

    .friend-table-input-row {
        gap: 6px;
        margin-top: 6px;
    }

    .friend-table-input-row input {
        height: 36px;
        border-radius: 10px;
        font-size: 17px;
    }

    .friend-table-input-row button {
        width: 52px;
        border-radius: 10px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .friend-table-modal .modal-dialog {
        width: min(380px, calc(100vw - 40px));
    }

    .friend-table-action {
        min-height: 48px;
    }
}

.blot-last-trick {
    position: absolute;
    left: 20px;
    top: 18px;
    z-index: 5;
    display: none;
    width: 122px;
    min-height: 92px;
    padding: 7px 9px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.blot-last-trick.blot-last-trick-show {
    display: block;
}

.blot-last-trick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.blot-last-trick-title {
    color: rgba(235, 249, 255, 0.78);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.blot-last-trick-score {
    min-width: 28px;
    height: 16px;
    padding: 0 6px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 139, 187, 0.24);
    border: 1px solid rgba(71, 196, 236, 0.36);
    color: #e9fbff;
    font-size: 10px;
    font-weight: 800;
}

.blot-last-cards {
    position: relative;
    width: 86px;
    height: 74px;
    margin: 0 auto;
}

.blot-mini-card {
    position: absolute;
    width: 26px;
    height: 36px;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6f8 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #111;
    font-weight: 900;
    font-size: 12px;
    line-height: 1;
    overflow: hidden;
}

.blot-mini-card-rank {
    display: block;
    font-size: 11px;
    line-height: 0.95;
}

.blot-mini-card-suit {
    display: block;
    margin-top: 1px;
    font-size: 18px;
    line-height: 0.9;
}

.blot-mini-card:empty {
    display: none;
}

.blot-mini-card.red {
    color: #e12a2e;
}

.blot-mini-card-winner {
    border-color: rgba(55, 214, 122, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(55, 214, 122, 0.38), 0 0 16px rgba(55, 214, 122, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.blot-mini-card:nth-child(1) {
    left: 30px;
    top: 0;
    z-index: 4;
}

.blot-mini-card:nth-child(2) {
    left: 60px;
    top: 19px;
    z-index: 3;
}

.blot-mini-card:nth-child(3) {
    left: 30px;
    top: 38px;
    z-index: 2;
}

.blot-mini-card:nth-child(4) {
    left: 0;
    top: 19px;
    z-index: 1;
}

.blot-scoreboard {
    position: absolute;
    right: 20px;
    top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.blot-score-team {
    width: 36px;
    text-align: center;
}

.blot-score-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.blot-score-value {
    font-size: 1.15rem;
    font-weight: 900;
}

.blot-score-divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
}

.blot-taken-score {
    position: absolute;
    top: 95px;
    right: 30px;
    width: 100px;
    background: #29353b url(/images/taken-score-icon.png) no-repeat center;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.1);
    color: #fff !important;
    display: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

#gameArea.blot-game-started .blot-taken-score {
    display: flex;
}

.blot-taken-score > div {
    flex: 1 0 0;
    text-align: center;
    padding: 7px 0;
}

@media (max-width: 768px) {
    .blot-taken-score {
        top: 60px;
        right: 10px;
        width: 74px;
        font-size: 11px;
    }

}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .blot-taken-score {
        top: 56px;
        right: 8px;
        font-size: 10px;
        width: 68px;
    }

}

@keyframes blotgamePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }

}

.blot-player {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 5;
}

.blot-player .blot-avatar,
.blot-player .blot-player-name {
    cursor: pointer;
}

.blot-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blot-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 23%));
    border: 2px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.blot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blot-avatar img:not([src]),
.blot-avatar img[src=""] {
    visibility: hidden;
}

.blot-trump-badge {
    position: absolute;
    top: 8px;
    right: -60px;
    z-index: 18;
    min-width: 48px;
    padding: 5px 11px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 999px;
    color: #f3fbff;
    background: rgb(124 224 255 / 43%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 18px;
    font-weight: 850;
    line-height: 1;
}

.blot-player-right .blot-trump-badge {
    right: auto;
    left: -55px;
}

.blot-trump-suit {
    font-size: 30px;
    color: #101820;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    margin-top: -2px;
}

.blot-trump-badge-red .blot-trump-suit {
    color: #e12a2e;
}

.blot-trump-contra {
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #d83d3d, #9f1e2d);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 10px;
    font-weight: 900;
}

.blot-trump-kp-badge {
    min-width: 22px;
    height: 16px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #38bfff 0%, #0875df 100%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 4px 10px rgba(8, 117, 223, 0.28);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

/* PLAYER INFO */
.blot-player-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blot-player-empty .blot-player-info,
.blot-player-empty .blot-player-rating,
.blot-player-empty .blot-vip-badge,
.blot-player-empty .blot-trump-badge,
.blot-player-empty .blot-first-turn {
    display: none !important;
}

/* PLAYER NAME */
.blot-player-name {
    position: relative;
    overflow: hidden;
    padding: 6px 14px;
    border-radius: 16px;
    min-width: 110px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 23%));
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* TIMER */
.blot-player-timer {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(0,255,120,0.55), rgba(255,230,0,0.55), rgba(255,70,70,0.55));
    box-shadow: inset 0 0 12px rgba(255,255,255,0.18), 0 0 18px rgba(0,255,120,0.2);
}

/* ACTIVE PLAYER */
.blot-player-active .blot-player-timer {
    display: block;
}

/* TEXT */
.blot-player-text {
    position: relative;
    z-index: 2;
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.blot-player-active .blot-avatar {
    border-color: #00ff88;
    box-shadow:
        0 0 0 5px rgba(0, 255, 136, 0.14),
        0 0 26px rgba(0, 255, 136, 0.4),
        0 0 52px rgba(0, 255, 136, 0.25),
        0 10px 24px rgba(0, 0, 0, 0.25);
    animation: blotgamePulse 1.6s ease-in-out infinite;
}

@media (max-width: 932px) {
    .blot-player-timer {
        background: linear-gradient(90deg, #39d98a, #f5d24c, #ef5b5b);
        box-shadow: none;
        will-change: transform;
        contain: paint;
    }

    .blot-player-active .blot-avatar {
        animation: none;
        box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.18);
    }
}

.blot-player-score {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
}

.blot-player-top {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.blot-player-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.blot-player-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.blot-player-bottom {
    bottom: 18px;
    left: 28px;
    transform: none;
}

.table-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 250px;
}

.player-hand {
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-width: min(720px, 96vw);
    height: 150px;
    pointer-events: none;
    z-index: 260;
}

.blot-card {
    width: 176px;
    height: 246px;
    background-color: transparent;
    background-image: url(/images/playing_cards.webp);
    background-repeat: no-repeat;
    border-radius: 16px;
    border: 0;
    margin-left: -96px;
    margin-top: 0;
    box-shadow: none;
    cursor: pointer;
    user-select: none;
    position: absolute;
    transform-origin: center bottom;
    transform: scale(0.8);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, filter .16s ease, margin-bottom .2s ease;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.blot-card:first-child {
    margin-left: 0;
}

.blot-card.hand-card {
    pointer-events: auto;
    z-index: 250;
}

.blot-card.hand-card.blot-hand-card-entering {
    will-change: transform, opacity;
    transition:
        transform .46s cubic-bezier(.18, .82, .24, 1),
        opacity .34s ease;
}

@media (min-width: 933px) {
    .player-hand {
        height: 190px;
    }

    .player-hand .blot-card.hand-card {
        transform: scale(1);
    }
}

.player-hand.blot-hand-locked .blot-card.hand-card {
    cursor: default;
    pointer-events: none;
}

.player-hand:not(.blot-hand-locked) .blot-card.card-valid.hand-card:hover:not(.played) {
    margin-bottom: 18px;
    box-shadow: none;
}

.blot-card.card-invalid:not(.played) {
    filter: brightness(0.68) saturate(0.78);
}

.blot-card.card-invalid.hand-card:not(.played) {
    cursor: not-allowed;
}

.blot-card.played {
    cursor: default;
    margin: 0;
    transform-origin: center center;
    backface-visibility: hidden;
    z-index: 210;
}

.blot-animation-layer {
    position: absolute;
    inset: 0;
    z-index: 880;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
    isolation: isolate;
    transform: translateZ(0);
}

.blot-trick-flight-group {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transform-origin: center center;
    will-change: transform;
    contain: strict;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 460ms cubic-bezier(.3, .72, .2, 1);
}

.blot-trick-flight-group.is-flying {
    transform: translate3d(var(--blot-trick-x), var(--blot-trick-y), 0);
}

.blot-trick-flight-group .blot-flying-card {
    transition: none !important;
    will-change: auto;
}

.blot-table-wrap.blot-card-animation-active .blot-scoreboard,
.blot-table-wrap.blot-card-animation-active .blot-last-trick,
.blot-table-wrap.blot-card-animation-active .blot-taken-score,
.blot-table-wrap.blot-card-animation-active .blot-trump-badge,
.blot-table-wrap.blot-card-animation-active .blot-alert,
.blot-table-wrap.blot-card-animation-active .blot-game-actions,
.blot-table-wrap.blot-card-animation-active .blot-first-turn,
.blot-table-wrap.blot-card-animation-active .blot-player-rating {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.blot-table-wrap.blot-card-animation-active .blot-player-active .blot-avatar,
.blot-table-wrap.blot-card-animation-active .blot-first-turn,
.blot-table-wrap.blot-card-animation-active .blot-player-vip .blot-avatar::before {
    animation: none !important;
}

@media (max-width: 932px) {
    .blot-table-wrap.blot-card-animation-active .blot-player-timer {
        display: none !important;
    }
}

.blot-flying-card {
    position: absolute;
    width: 176px;
    height: 246px;
    object-fit: fill;
    border: 0;
    border-radius: 16px;
    margin: 0 !important;
    pointer-events: none !important;
    transform-origin: center center !important;
    transition: transform var(--blot-flight-duration, 440ms) cubic-bezier(.18, .78, .22, 1), opacity .22s ease !important;
    will-change: transform, opacity;
    contain: layout paint style;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform-style: flat;
    translate: 0 0;
    -webkit-user-drag: none;
    image-rendering: auto;
    box-shadow: none;
}

.blot-deal-flying-card {
    box-shadow: none;
}

.blot-card.blot-combination-reveal-card {
    position: relative;
    z-index: 945;
    flex: 0 0 176px;
    margin: 0 0 0 -142px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(.48);
    transform-origin: center center;
    transition: transform .32s ease, opacity .24s ease;
    border: 0;
    box-shadow: none;
}

.blot-card.blot-combination-reveal-card:first-child {
    margin-left: 0;
}

.blot-card.blot-combination-reveal-card-visible {
    opacity: 1;
    transform: translateY(0) scale(.48);
}

.blot-combination-slot {
    position: absolute;
    z-index: 944;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 112px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.blot-combination-slot-visible {
    opacity: 1;
    visibility: visible;
}

.blot-combination-slot-top {
    top: 66px;
    left: 50%;
    transform: translateX(-50%);
}

.blot-combination-slot-left {
    top: 2px;
    left: 0;
}

.blot-combination-slot-right {
    top: 2px;
    right: 0;
}

.blot-combination-slot-bottom {
    top: -84px;
    left: -30px;
}

@media (max-width: 900px) {
    .blot-combination-slot {
        width: 250px;
        height: 88px;
    }

    .blot-card.blot-combination-reveal-card {
        margin-left: -124px;
        transform: translateY(8px) scale(.44);
    }

    .blot-card.blot-combination-reveal-card-visible {
        transform: translateY(0) scale(.44);
    }

    .blot-combination-slot-top {
        top: 48px;
    }

    .blot-combination-slot-left {
        top: -8px;
        left: 5px;
    }

    .blot-combination-slot-right {
        top: -8px;
        right: 5px;
    }

    .blot-combination-slot-bottom {
        top: -52px;
        left: -78px;
    }
    .blot-card.blot-combination-reveal-card {
        margin-left: -150px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .blot-combination-slot {
        width: 230px;
        height: 78px;
    }

    .blot-card.blot-combination-reveal-card {
        margin-left: -130px;
        transform: translateY(8px) scale(.4);
    }

    .blot-card.blot-combination-reveal-card-visible {
        transform: translateY(0) scale(.4);
    }

    .blot-combination-slot-top {
        top: 44px;
    }

    .blot-combination-slot-left {
        top: -10px;
        left: 56px;
    }

    .blot-combination-slot-right {
        top: -10px;
        right: 56px;
    }

    .blot-combination-slot-bottom {
        top: -50px;
        left: 6px;
    }
    .blot-card.blot-combination-reveal-card {
        margin-left: -150px;
    }
}

.deck {
    position: absolute;
    top: calc(50% - 210px);
    left: calc(50% - 330px);
    z-index: 18;
    width: 176px;
    height: 246px;
    background-color: white;
    background-image: url(/images/playing_cards.webp);
    background-repeat: no-repeat;
    background-position: -1631px -4px;
    border: 1px solid rgba(12, 26, 45, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    transform: scale(0.46) rotate(45deg);
    transform-origin: center center;
    pointer-events: none;
}

/* Летящая колода */
.deal-card {
    box-shadow: none;
    margin-left: 0 !important;
    transform-origin: center center !important;
    transition: transform .42s cubic-bezier(.18, .78, .22, 1), opacity .18s ease;
    will-change: transform, opacity;
}

.deal-player-card {
    will-change: transform, opacity;
}

.game-debug-panel {
    position: fixed;
    top: 66px;
    right: 8px;
    z-index: 20000;
    display: block;
    opacity: 0.34;
    transition: opacity 0.18s ease;
}

.game-debug-panel:hover .game-debug-toggle,
.game-debug-panel:focus-within .game-debug-toggle,
.game-debug-panel.game-debug-open {
    opacity: 1;
}

.game-debug-toggle {
    min-width: 0;
    height: 24px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.12);
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
}

.game-debug-menu {
    position: absolute;
    top: 0;
    right: calc(100% + 5px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    max-width: 58px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(6px, -4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.game-debug-menu:has(+ .game-debug-toggle:hover),
.game-debug-menu:has(+ .game-debug-toggle:focus),
.game-debug-menu:has(+ .game-debug-toggle:active),
.game-debug-panel.game-debug-open .game-debug-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, 0);
}

.game-debug-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, 0);
}

.game-debug-panel .btn {
    min-width: 0;
    height: 24px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1;
}

@media (max-width: 768px) {
    .blot-last-trick,
    .blot-scoreboard,
    .blot-avatar,
    .blot-player-name,
    .blot-trump-badge,
    .blot-taken-score,
    .blot-combination-slot {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .blot-table {
        aspect-ratio: 10 / 16;
        margin-top: -32px;
    }

    .blot-last-trick {
        left: 10px;
        top: 58px;
        transform: scale(0.8);
        transform-origin: top left;
    }

    .blot-scoreboard {
        top: 8px;
        right: 5px;
        transform: none;
    }

    .blot-player-top {
        top: 20px;
    }

    .blot-player-bottom {
        bottom: 108px;
        left: 50%;
        transform: translateX(-50%);
    }

    .blot-player-left {
        left: 8px;
    }

    .blot-player-right {
        right: 8px;
    }

    .blot-avatar-wrap {
        width: 70px;
        height: 72px;
    }

    .blot-avatar {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 1.1rem;
    }

    .blot-trump-badge {
        top: -20px;
        left: -6px;
        right: auto;
        min-width: 42px;
        font-size: 12px;
        padding: 3px 5px;
    }

    .blot-player-right .blot-trump-badge {
        right: auto;
        left: 15px;
    }

    .blot-trump-suit {
        font-size: 20px;
    }

    .blot-trump-contra {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .blot-player-name {
        min-width: 90px;
        padding: 4px 12px;
    }

    .blot-player-text {
        font-size: 11px;
    }

    .table-center {
        width: 200px;
        height: 220px;
    }

    .blot-card {
        margin-left: -150px;
        transform: scale(0.58);
        border-radius: 15px;
        box-shadow: none;
    }

    .player-hand:not(.blot-hand-locked) .blot-card.card-valid.hand-card:hover:not(.played) {
        margin-bottom: 0;
    }

    .player-hand {
        bottom: -6px;
        width: min(360px, 92vw);
        min-width: 0;
        height: 186px;
    }

    .deck {
        top: calc(50% - 67vw);
        left: calc(50% - 42vw);
        transform: scale(0.34) rotate(45deg);
    }

}

@media (orientation: portrait) and (max-width: 768px) {
    .player-hand {
        bottom: -40px;
        width: min(420px, 98vw);
    }

    .blot-scoreboard {
        right: 10px;
        width: 94px;
        justify-content: center;
    }

    .blot-taken-score {
        top: 68px;
        right: 10px;
        width: 94px;
    }

}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .blot-last-trick,
    .blot-scoreboard,
    .blot-avatar,
    .blot-player-name,
    .blot-trump-badge,
    .blot-taken-score,
    .blot-combination-slot {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .blot-card {
        transform: scale(0.62);
    }

    .blot-table {
        width: 75%;
        aspect-ratio: 16 / 8;
        margin-top: 0;
    }

    .blot-last-trick {
        left: 54px;
        top: 8px;
        transform: scale(0.82);
        transform-origin: top left;
    }

    .blot-scoreboard {
        top: 5px;
        right: 5px;
        transform: none;
    }

    .blot-taken-score {
        top: 64px;
        right: 5px;
    }

    .blot-player-top {
        top: 2px;
    }

    .blot-player-bottom {
        bottom: 8px;
        left: 8px;
        transform: none;
    }

    .blot-player-left {
        left: 8px;
    }

    .blot-player-right {
        right: 8px;
    }

    .blot-avatar-wrap {
        width: 60px;
        height: 60px;
    }

    .blot-avatar {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 1.1rem;
    }

    .blot-trump-badge {
        top: 5px;
        right: -60px;
        min-width: 40px;
        font-size: 13px;
        padding: 3px 5px;
    }

    .blot-player-right .blot-trump-badge {
        right: auto;
        left: -50px;
    }

    .blot-first-turn {
        bottom: 6px !important;
    }

    .blot-trump-suit {
        font-size: 18px;
    }

    .blot-trump-contra {
        width: 13px;
        height: 13px;
        font-size: 8px;
    }

    .blot-player-name {
        min-width: 90px;
        padding: 3px 12px;
    }

    .blot-player-text {
        font-size: 11px;
    }

    .table-center {
        width: 300px;
        height: 180px;
    }

    .blot-card {
        margin-left: -126px;
        border-radius: 14px;
        box-shadow: none;
    }

    .player-hand {
        bottom: -52px;
        z-index: 2;
        width: min(620px, 88vw);
        min-width: 0;
        height: 164px;
    }

    .deck {
        top: calc(50% - 18vw);
        left: calc(50% - 35vw);
        transform: scale(0.32) rotate(45deg);
    }

    .game-debug-panel {
        top: 8px;
        right: 6px;
        gap: 3px;
        opacity: 0.3;
    }

    .game-debug-toggle,
    .game-debug-panel .btn {
        height: 20px;
        padding: 0 5px;
        font-size: 9px;
    }

}

.card-back {
    background-image: url(/images/cards/back.webp);
}

.card-c7 {
    background-image: url(/images/cards/c7.webp);
}

.card-c8 {
    background-image: url(/images/cards/c8.webp);
}

.card-c9 {
    background-image: url(/images/cards/c9.webp);
}

.card-c10 {
    background-image: url(/images/cards/c10.webp);
}

.card-cJ {
    background-image: url(/images/cards/cj.webp);
}

.card-cQ {
    background-image: url(/images/cards/cq.webp);
}

.card-cK {
    background-image: url(/images/cards/ck.webp);
}

.card-cA {
    background-image: url(/images/cards/ca.webp);
}

.card-h7 {
    background-image: url(/images/cards/h7.webp);
}

.card-h8 {
    background-image: url(/images/cards/h8.webp);
}

.card-h9 {
    background-image: url(/images/cards/h9.webp);
}

.card-h10 {
    background-image: url(/images/cards/h10.webp);
}

.card-hJ {
    background-image: url(/images/cards/hj.webp);
}

.card-hQ {
    background-image: url(/images/cards/hq.webp);
}

.card-hK {
    background-image: url(/images/cards/hk.webp);
}

.card-hA {
    background-image: url(/images/cards/ha.webp);
}

.card-s7 {
    background-image: url(/images/cards/s7.webp);
}

.card-s8 {
    background-image: url(/images/cards/s8.webp);
}

.card-s9 {
    background-image: url(/images/cards/s9.webp);
}

.card-s10 {
    background-image: url(/images/cards/s10.webp);
}

.card-sJ {
    background-image: url(/images/cards/sj.webp);
}

.card-sQ {
    background-image: url(/images/cards/sq.webp);
}

.card-sK {
    background-image: url(/images/cards/sk.webp);
}

.card-sA {
    background-image: url(/images/cards/sa.webp);
}

.card-d7 {
    background-image: url(/images/cards/d7.webp);
}

.card-d8 {
    background-image: url(/images/cards/d8.webp);
}

.card-d9 {
    background-image: url(/images/cards/d9.webp);
}

.card-d10 {
    background-image: url(/images/cards/d10.webp);
}

.card-dJ {
    background-image: url(/images/cards/dj.webp);
}

.card-dQ {
    background-image: url(/images/cards/dq.webp);
}

.card-dK {
    background-image: url(/images/cards/dk.webp);
}

.card-dA {
    background-image: url(/images/cards/da.webp);
}

.card-back,
.card-c7,
.card-c8,
.card-c9,
.card-c10,
.card-cJ,
.card-cQ,
.card-cK,
.card-cA,
.card-h7,
.card-h8,
.card-h9,
.card-h10,
.card-hJ,
.card-hQ,
.card-hK,
.card-hA,
.card-s7,
.card-s8,
.card-s9,
.card-s10,
.card-sJ,
.card-sQ,
.card-sK,
.card-sA,
.card-d7,
.card-d8,
.card-d9,
.card-d10,
.card-dJ,
.card-dQ,
.card-dK,
.card-dA {
    background-position: center;
    background-size: 100% 100%;
}

/* ===== WINDOW ===== */
.blot-trump-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 100%;
    max-width: 340px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #1c3744 0%, #152331 100%);
    border: 1px solid rgba(177,200,212,0.12);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
    transform: translate(-50%, -50%) scale(.75);
    opacity: 0;
    visibility: hidden;
    z-index: 920;
    pointer-events: auto;
}

/* ===== SHOW ===== */
.blot-trump-modal.blot-trump-show {
    visibility: visible;
    animation: blotTrumpShow .32s cubic-bezier(.2,.8,.2,1) forwards;
}

/* ===== CARDS ===== */
.blot-trump-cards {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.blot-trump-card {
    flex: 1;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(177,200,212,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
    font-size: 38px;
    line-height: 1;
    text-shadow:
        0 2px 0 rgba(0,0,0,0.28),
        0 0 12px rgba(255,255,255,0.18);
    pointer-events: auto;
}

.blot-trump-club,
.blot-trump-heart,
.blot-trump-spade,
.blot-trump-diamond {
    line-height: 0.9;
    padding-bottom: 4px;
}

.blot-trump-card:hover {
    transform: translateY(-2px);
    border-color: rgba(177,200,212,0.18);
}

.blot-trump-card.blot-trump-active {
    background: linear-gradient(180deg, #35586d 0%, #294655 100%);
    border-color: #b1c8d4;
    box-shadow: 0 0 18px rgba(177,200,212,0.18);
}

.blot-trump-club,
.blot-trump-spade {
    color: #061119;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.55),
        0 0 10px rgba(255,255,255,0.35);
}

.blot-trump-heart,
.blot-trump-diamond {
    color: #ff7a7a !important;
}

.blot-trump-nt {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

/* ===== BID ===== */
.blot-trump-bid-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.blot-trump-bid-btn,
.blot-trump-bid-kp {
    height: 52px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: .2s;
    pointer-events: auto;
}

.blot-trump-bid-btn,
.blot-trump-bid-kp {
    width: 52px;
    background: #152331;
    border: 1px solid rgba(177,200,212,0.08);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}

.blot-trump-bid-btn:hover,
.blot-trump-bid-kp:hover {
    background: #223847;
}

.blot-trump-bid-value {
    flex: 1;
    height: 52px;
    border-radius: 16px;
    background: #12202b;
    border: 1px solid rgba(177,200,212,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.blot-trump-bid-kp {
    font-size: 15px;
}

.blot-trump-bid-kp.blot-trump-kp-active {
    background: linear-gradient(180deg, #38bfff 0%, #0875df 100%);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(137, 218, 255, 0.28), 0 10px 24px rgba(8, 117, 223, 0.34);
}

.blot-trump-bid-btn:disabled,
.blot-trump-bid-kp:disabled {
    cursor: not-allowed;
    opacity: .45;
}

/* ===== ACTIONS ===== */
.blot-trump-actions {
    display: flex;
    gap: 8px;
}

.blot-trump-action-btn {
    flex: 1;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: #152331;
    border: 1px solid rgba(177,200,212,0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    pointer-events: auto;
}

.blot-trump-action-btn:hover {
    transform: translateY(-2px);
}

.blot-trump-action-btn:disabled {
    cursor: not-allowed;
    opacity: .45;
    filter: saturate(.75);
}

.blot-trump-action-btn:disabled:hover {
    transform: none;
}

.blot-trump-action-primary {
    background: linear-gradient(180deg, #466a7e 0%, #355362 100%);
}

.blot-trump-modal.blot-trump-mode-contra,
.blot-trump-modal.blot-trump-mode-recontra {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 40px;
    width: auto;
    max-width: none;
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
}

.blot-trump-modal.blot-trump-mode-contra.blot-trump-show,
.blot-trump-modal.blot-trump-mode-recontra.blot-trump-show {
    animation: blotTrumpActionsShow .35s cubic-bezier(.2,.8,.2,1) forwards;
}

.blot-trump-modal.blot-trump-mode-contra::after,
.blot-trump-modal.blot-trump-mode-recontra::after {
    display: none;
}

.blot-trump-modal.blot-trump-mode-contra .blot-trump-actions,
.blot-trump-modal.blot-trump-mode-recontra .blot-trump-actions {
    justify-content: center;
    gap: 10px;
}

.blot-trump-modal.blot-trump-mode-contra .blot-trump-action-btn,
.blot-trump-modal.blot-trump-mode-recontra .blot-trump-action-btn {
    flex: 0 0 auto;
    min-width: 140px;
    height: 56px;
    padding: 0 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #1c3744 0%, #152331 100%);
    border: 1px solid rgba(177,200,212,.12);
    box-shadow: 0 12px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
    font-size: 18px;
    font-weight: 800;
    overflow: hidden;
}

.blot-trump-modal.blot-trump-mode-contra .blot-trump-contra-action,
.blot-trump-modal.blot-trump-mode-recontra .blot-trump-contra-action {
    background: linear-gradient(180deg, #466a7e 0%, #355362 100%);
}

.blot-trump-modal.blot-trump-mode-contra .blot-trump-action-btn:hover,
.blot-trump-modal.blot-trump-mode-recontra .blot-trump-action-btn:hover {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.08);
}

.blot-trump-modal.blot-trump-mode-contra .blot-trump-action-btn::before,
.blot-trump-modal.blot-trump-mode-recontra .blot-trump-action-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.08) 50%, transparent 80%);
    transform: translateX(-140%);
    transition: transform .6s ease;
}

.blot-trump-modal.blot-trump-mode-contra .blot-trump-action-btn:hover::before,
.blot-trump-modal.blot-trump-mode-recontra .blot-trump-action-btn:hover::before {
    transform: translateX(140%);
}

/* ===== ANIMATION ===== */
@keyframes blotTrumpShow {
    0% {
        opacity: 0;
        transform: translate(-50%, -46%) scale(.75);
    }

    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.03);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

}

@keyframes blotTrumpActionsShow {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px) scale(.85);
    }

    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(-4px) scale(1.03);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }

}

/* ===== MOBILE ===== */
@media(max-width:932px) {
    .blot-trump-modal {
        width: min(340px, calc(100% - 22px));
        max-width: 340px;
        padding: 11px;
        border-radius: 15px;
    }

    .blot-trump-cards {
        gap: 6px;
        margin-bottom: 8px;
    }

    .blot-trump-card {
        height: 50px;
        border-radius: 12px;
        font-size: 34px;
    }

    .blot-trump-nt {
        font-size: 22px;
    }

    .blot-trump-bid-row {
        gap: 9px;
        margin-bottom: 10px;
    }

    .blot-trump-bid-btn,
    .blot-trump-bid-kp {
        width: 58px;
        height: 50px;
        border-radius: 15px;
        font-size: 26px;
    }

    .blot-trump-bid-kp {
        font-size: 14px;
    }

    .blot-trump-bid-value {
        height: 50px;
        border-radius: 15px;
        font-size: 30px;
    }

    .blot-trump-actions {
        gap: 8px;
    }

    .blot-trump-action-btn {
        height: 45px;
        border-radius: 14px;
        font-size: 14px;
    }
}

@media (orientation: portrait) and (max-width: 932px) {
    .blot-trump-modal.blot-trump-mode-bidding {
        top: 56%;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .blot-trump-modal {
        width: min(366px, calc(100% - 28px));
        max-width: 366px;
        min-height: 172px;
        padding: 10px;
        top: 50%;
        bottom: auto;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .blot-trump-card {
        height: 47px;
        font-size: 34px;
    }

    .blot-trump-nt {
        font-size: 20px;
    }

    .blot-trump-bid-btn,
    .blot-trump-bid-kp,
    .blot-trump-bid-value,
    .blot-trump-action-btn {
        height: 47px;
        border-radius: 14px;
    }

    .blot-trump-bid-btn,
    .blot-trump-bid-kp {
        width: 56px;
        font-size: 25px;
    }

    .blot-trump-bid-kp {
        font-size: 13px;
    }

    .blot-trump-bid-value {
        font-size: 29px;
    }

    .blot-trump-action-btn {
        font-size: 14px;
    }

}

/* ===== ALERT ===== */
.blot-alert {
    position: absolute;
    left: 74px;
    top: -50px;
    min-width: 88px;
    max-width: 250px;
    min-height: 58px;
    padding: 10px 18px;
    border-radius: 22px;
    background: #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    opacity: 0;
    transform: translateY(8px) scale(.75);
    white-space: nowrap;
    pointer-events: none;
    z-index: 910;
    display: none;
}

.blot-player-top .blot-alert {
    left: -50px;
    top: 95px;
}

.blot-player-right .blot-alert {
    left: -55px;
}

/* ===== TAIL ===== */
.blot-alert::before {
    content: "";
    position: absolute;
    left: 14px;
    bottom: -10px;
    width: 22px;
    height: 22px;
    background: #ececec;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.blot-player-top .blot-alert:before {
    right: 14px;
    top: -10px;
    left: auto;
    transform: rotate(180deg);
}

.blot-player-right .blot-alert:before {
    left: auto;
    right: 14px;
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

/* ===== CONTENT ===== */
.blot-alert-content {
    display: flex;
    align-items: center;
    color: #222;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.blot-alert-icon {
    font-family: Arial, "Segoe UI Symbol", sans-serif;
    font-size: 38px;
    font-weight: 900;
    line-height: 0.9;
    margin-top: -6px;
    margin-right: 5px;
    -webkit-text-stroke: 0.25px currentColor;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.72));
}

.blot-alert-icon.blot-alert-emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: 400;
    -webkit-text-stroke: 0;
    filter: none;
}

.blot-alert-value {
    color: #2b2b2b;
    font-size: 18px;
    font-weight: 700;
}

.blot-alert-kp {
    margin-left: 6px;
    padding: 2px 5px;
    border-radius: 7px;
    background: linear-gradient(180deg, #38bfff 0%, #0875df 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 4px 10px rgba(8, 117, 223, 0.28);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

/* ===== SHOW ===== */
.blot-alert.blot-alert-show {
    display: flex;
    animation: blotAlertShow .28s cubic-bezier(.2,.8,.2,1) forwards;
}

/* ===== HIDE ===== */
.blot-alert.blot-alert-hide {
    display: flex;
    animation: blotAlertHide .2s ease forwards;
}

/* ===== ANIMATIONS ===== */
@keyframes blotAlertShow {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(.75);
    }

    70% {
        opacity: 1;
        transform: translateY(-2px) scale(1.04);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

@keyframes blotAlertHide {
    to {
        opacity: 0;
        transform: translateY(6px) scale(.85);
    }

}

/* ===== MOBILE ===== */
@media(max-width:768px) {
    .blot-alert {
        left: 58px;
        top: -50px;
        min-width: 84px;
        min-height: 56px;
        padding: 6px 15px;
        border-radius: 20px;
    }

    .blot-player-top .blot-alert {
        left: -30px;
        top: 75px;
    }

    .blot-player-right .blot-alert {
        left: -30px;
    }

    .blot-alert-icon {
        font-size: 38px;
        margin-top: -4px;
        margin-right: 7px;
    }

    .blot-alert-content {
        font-size: 16px;
        line-height: 1.1;
    }

    .blot-alert-value {
        font-size: 17px;
    }

}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .blot-alert {
        left: 58px;
        top: -50px;
        min-width: 78px;
        min-height: 52px;
        padding: 5px 14px;
        border-radius: 19px;
    }

    .blot-player-top .blot-alert {
        left: -30px;
        top: 70px;
    }

    .blot-player-right .blot-alert {
        left: -35px;
    }

    .blot-alert-content {
        font-size: 15px;
        line-height: 1.1;
    }

    .blot-alert-icon {
        font-size: 34px;
        margin-top: -3px;
        margin-right: 6px;
    }

    .blot-alert-value {
        font-size: 16px;
    }

}

/* ===== BUTTONS WRAP ===== */
.blot-game-actions {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 930;
    pointer-events: auto;
    display: none;
}

.blot-game-actions-combination {
    bottom: 40px;
}

/* ===== BUTTON ===== */
.blot-game-action {
    position: relative;
    min-width: 140px;
    height: 56px;
    padding: 0 22px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(180deg, #1c3744 0%, #152331 100%);
    border: 1px solid rgba(177,200,212,.12);
    box-shadow: 0 12px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: transform .18s ease, filter .18s ease;
}

/* ===== HOVER ===== */
.blot-game-action:hover {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.08);
}

/* ===== ACTIVE ===== */
.blot-game-action:active {
    transform: scale(.96);
}

/* ===== LIGHT EFFECT ===== */
.blot-game-action::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.08) 50%, transparent 80%);
    transform: translateX(-140%);
    transition: transform .6s ease;
}

.blot-game-action:hover::before {
    transform: translateX(140%);
}

/* ===== PRIMARY ===== */
.blot-game-action-primary {
    background: linear-gradient(180deg, #466a7e 0%, #355362 100%);
}

.blot-game-action,
.blot-trump-modal.blot-trump-mode-contra .blot-trump-action-btn,
.blot-trump-modal.blot-trump-mode-recontra .blot-trump-action-btn {
    background: linear-gradient(180deg, #24495a 0%, #172f3c 100%);
    border-color: rgba(116, 211, 242, 0.34);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32), 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(80, 190, 230, 0.12);
}

.blot-game-action-primary,
.blot-trump-modal.blot-trump-mode-contra .blot-trump-contra-action,
.blot-trump-modal.blot-trump-mode-recontra .blot-trump-contra-action {
    background: linear-gradient(180deg, #2688aa 0%, #17627f 100%);
    border-color: rgba(127, 226, 255, 0.58);
}

.blot-game-actions-combination .blot-game-action-confirm {
    background: linear-gradient(180deg, #2688aa 0%, #17627f 100%);
    border-color: rgba(127, 226, 255, 0.58);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32), 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 14px rgba(38, 136, 170, 0.18);
}

.blot-game-actions-combination .blot-game-action-decline {
    background: linear-gradient(180deg, #53636c 0%, #39474f 100%);
    border-color: rgba(190, 208, 217, 0.3);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32), 0 2px 5px rgba(0, 0, 0, 0.2);
}

.blot-game-action.blot-game-action-contra,
.blot-trump-modal.blot-trump-mode-contra .blot-trump-contra-action,
.blot-trump-modal.blot-trump-mode-recontra .blot-trump-contra-action {
    background: linear-gradient(180deg, #d45f68 0%, #963942 100%);
    border-color: rgba(255, 164, 171, 0.62);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34), 0 2px 5px rgba(0, 0, 0, 0.22), 0 0 14px rgba(212, 95, 104, 0.16);
}

/* ===== SHOW ===== */
.blot-game-actions.blot-game-actions-show {
    display: flex;
    animation: blotGameActionsShow .35s cubic-bezier(.2,.8,.2,1) forwards;
}

/* ===== ANIMATION ===== */
@keyframes blotGameActionsShow {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px) scale(.85);
    }

    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(-4px) scale(1.03);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }

}

/* =======================================================
   CHAT
======================================================= */
.blot-chat {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 960;
}

.blot-chat-toggle {
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(180deg, #1c3744 0%, #152331 100%);
    border: 1px solid rgba(177,200,212,.12);
    box-shadow: 0 10px 26px rgba(0,0,0,.35);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: .2s;
}

.blot-chat-toggle:hover {
    transform: translateY(-3px) scale(1.03);
}

.blot-chat-menu {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 380px;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(180deg, #1c3744 0%, #152331 100%);
    border: 1px solid rgba(177,200,212,.12);
    box-shadow: 0 14px 34px rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.92);
    transition: .22s;
}

.blot-chat-menu.blot-chat-menu-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.blot-chat-title {
    color: #b1c8d4;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blot-chat-section:not(:last-child) {
    margin-bottom: 16px;
}

.blot-chat-emojis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.blot-chat-emoji {
    height: 42px;
    font-size: 20px;
    border: none;
    border-radius: 16px;
    background: #152331;
    border: 1px solid rgba(177,200,212,.08);
    cursor: pointer;
    transition: .18s;
}

.blot-chat-emoji:hover {
    transform: translateY(-2px);
    background: #223847;
}

.blot-chat-messages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.blot-chat-message {
    min-height: 38px;
    padding: 8px;
    font-size: 12px;
    line-height: 1.2;
    border: none;
    border-radius: 14px;
    background: #152331;
    border: 1px solid rgba(177,200,212,.08);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: .18s;
}

.blot-chat-message:hover {
    transform: translateY(-2px);
    background: #223847;
}

/* ===== MOBILE ===== */
@media (max-width: 932px) {
    .blot-game-actions.blot-game-actions-show {
        animation: blotGameActionsShowMobile .12s linear forwards;
    }

    .blot-game-action,
    .blot-trump-modal.blot-trump-mode-contra .blot-trump-action-btn,
    .blot-trump-modal.blot-trump-mode-recontra .blot-trump-action-btn {
        box-shadow: 0 0 0 1px rgba(94, 205, 242, 0.2);
        transition: opacity .1s linear, transform .1s linear;
    }

    .blot-game-action::before,
    .blot-trump-modal.blot-trump-mode-contra .blot-trump-action-btn::before,
    .blot-trump-modal.blot-trump-mode-recontra .blot-trump-action-btn::before {
        display: none;
    }

    .blot-game-action:hover,
    .blot-game-action:active,
    .blot-trump-modal.blot-trump-mode-contra .blot-trump-action-btn:hover,
    .blot-trump-modal.blot-trump-mode-recontra .blot-trump-action-btn:hover {
        transform: none;
        filter: none;
    }

    .blot-trump-modal.blot-trump-mode-contra.blot-trump-show,
    .blot-trump-modal.blot-trump-mode-recontra.blot-trump-show {
        animation: blotTrumpActionsShowMobile .12s linear forwards;
    }
}

@media(max-width:600px) {

    .blot-game-actions {
        width: calc(100% - 20px);
        gap: 8px;
        bottom: 16px;
    }

    .blot-game-actions.blot-game-actions-contra {
        width: auto;
    }

    .blot-game-actions-combination {
        bottom: 16px;
    }

    .blot-game-action {
        flex: 1;
        min-width: auto;
        height: 50px;
        border-radius: 14px;
        font-size: 15px;
        padding: 0 8px;
    }

    .blot-trump-modal.blot-trump-mode-contra,
    .blot-trump-modal.blot-trump-mode-recontra {
        bottom: 16px;
    }

    .blot-trump-modal.blot-trump-mode-contra .blot-trump-actions,
    .blot-trump-modal.blot-trump-mode-recontra .blot-trump-actions {
        gap: 8px;
    }

    .blot-trump-modal.blot-trump-mode-contra .blot-trump-action-btn,
    .blot-trump-modal.blot-trump-mode-recontra .blot-trump-action-btn {
        min-width: 126px;
        height: 50px;
        padding: 0 14px;
        border-radius: 14px;
        font-size: 15px;
    }

    .blot-chat {
        right: 12px;
        bottom: 100px;
    }

    .blot-chat-toggle {
        width: 45px;
        height: 45px;
        border-radius: 14px;
        font-size: 24px;
    }

    .blot-chat-menu {
        width: min(310px, calc(100vw - 24px));
        bottom: 56px;
        padding: 10px;
        border-radius: 18px;
    }

    .blot-chat-title {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .blot-chat-section:not(:last-child) {
        margin-bottom: 10px;
    }

    .blot-chat-emojis {
        gap: 6px;
    }

    .blot-chat-emoji {
        height: 40px;
        border-radius: 12px;
        font-size: 21px;
    }

    .blot-chat-messages {
        gap: 6px;
    }

    .blot-chat-message {
        min-height: 34px;
        padding: 6px 8px;
        border-radius: 11px;
        font-size: 11px;
        line-height: 1.15;
    }

}

@keyframes blotGameActionsShowMobile {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes blotTrumpActionsShowMobile {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .blot-game-actions {
        gap: 8px;
        bottom: 10px;
    }

    .blot-game-actions-combination {
        bottom: 10px;
    }

    .blot-game-action,
    .blot-trump-modal.blot-trump-mode-contra .blot-trump-action-btn,
    .blot-trump-modal.blot-trump-mode-recontra .blot-trump-action-btn {
        min-width: 114px;
        height: 44px;
        padding: 0 14px;
        border-radius: 13px;
        font-size: 14px;
    }

    .blot-trump-modal.blot-trump-mode-contra .blot-trump-actions,
    .blot-trump-modal.blot-trump-mode-recontra .blot-trump-actions {
        gap: 8px;
    }

    .blot-trump-modal.blot-trump-mode-contra,
    .blot-trump-modal.blot-trump-mode-recontra {
        top: auto;
        bottom: 10px;
        width: auto;
        max-width: none;
        height: auto;
        min-height: 0;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        display: block;
    }

    .blot-chat {
        right: 14px;
        bottom: 12px;
    }

    .blot-chat-toggle {
        width: 45px;
        height: 45px;
        border-radius: 14px;
        font-size: 24px;
    }

    .blot-chat-menu {
        right: 12px;
        bottom: 52px;
        width: min(340px, calc(100vw - 72px));
        padding: 10px;
        border-radius: 18px;
    }

    .blot-chat-menu.blot-chat-menu-show {
        transform: translateY(0) scale(1);
    }

    .blot-chat-title {
        margin-bottom: 7px;
        font-size: 12px;
    }

    .blot-chat-section:not(:last-child) {
        margin-bottom: 9px;
    }

    .blot-chat-emojis {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }

    .blot-chat-emoji {
        height: 38px;
        border-radius: 11px;
        font-size: 20px;
    }

    .blot-chat-messages {
        gap: 6px;
    }

    .blot-chat-message {
        min-height: 32px;
        padding: 5px 7px;
        border-radius: 10px;
        font-size: 11px;
        line-height: 1.12;
    }

}

/* =======================================================
   SCORE WINDOW
======================================================= */
.blot-score {
    position: absolute;
    width: 410px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, #1c3744 0%, #152331 100%);
    border: 1px solid rgba(177,200,212,.12);
    box-shadow: 0 16px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
    opacity: 0;
    transform: scale(.82) translateY(20px);
    z-index: 940;
    display: none;
}

/* ===== BACKGROUND EFFECT ===== */
.blot-score::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(177,200,212,.05) 0%, transparent 70%);
    pointer-events: none;
}

/* =======================================================
   HEADER
======================================================= */
.blot-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(177,200,212,.12);
}

.blot-score-header > div {
    color: #b1c8d4;
    font-size: 14px;
    font-weight: 700;
}

/* =======================================================
   BODY
======================================================= */
.blot-score-body {
    padding: 12px 14px;
    min-height: 150px;
}

.blot-score-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.blot-score-column {
    min-width: 0;
    padding: 10px;
}

.blot-score-list {
    display: grid;
    gap: 5px;
}

.blot-score-detail {
    min-height: 23px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
}

.blot-score-detail-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blot-score-detail-points {
    flex: 0 0 auto;
    min-width: 28px;
    color: #b1c8d4;
    text-align: right;
    font-weight: 900;
}

.blot-score-left,
.blot-score-right {
    width: 50%;
    color: #ffffff;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
}

.blot-score-left {
    text-align: left;
}

.blot-score-right {
    text-align: right;
}

/* ===== SCORE VALUE ===== */
.blot-score-value {
    color: #b1c8d4;
    font-weight: 800;
}

.blot-score-detail-muted .blot-score-left,
.blot-score-detail-muted .blot-score-right,
.blot-score-detail-muted {
    color: rgba(255, 255, 255, 0.6);
}

/* =======================================================
   FOOTER
======================================================= */
.blot-score-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-top: 1px solid rgba(177,200,212,.12);
}

.blot-score-total {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.blot-score-total span {
    color: #b1c8d4;
}

/* =======================================================
   SHOW ANIMATION
======================================================= */
.blot-score.blot-score-show {
    display: inline;
    animation: blotScoreShow .35s cubic-bezier(.2,.8,.2,1) forwards;
}

.blot-score-close {
    min-width: 58px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #008bbb, #1e6b82);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 139, 187, 0.22);
}

.blot-score-close:hover {
    filter: brightness(1.08);
}

@keyframes blotScoreShow {
    0% {
        opacity: 0;
        transform: scale(.82) translateY(20px);
    }

    70% {
        opacity: 1;
        transform: scale(1.03) translateY(-3px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

}

/* =======================================================
   MOBILE
======================================================= */
@media(max-width:480px) {
    .blot-score {
        width: calc(100% - 16px);
        padding: 14px;
    }

    .blot-score-header > div,
    .blot-score-left,
    .blot-score-right,
    .blot-score-total {
        font-size: 12px;
    }

}

/* =======================================================
   RESULT WINDOW
======================================================= */
.blot-result {
    position: absolute;
    width: 440px;
    padding: 14px 20px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, #17313d 0%, #152331 100%);
    border: 1px solid rgba(177,200,212,.12);
    box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03);
    text-align: center;
    opacity: 0;
    transform: scale(.82) translateY(30px);
    z-index: 950;
    display: none;
}

/* ===== BACKGROUND EFFECT ===== */
.blot-result::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(177,200,212,.05) 0%, transparent 70%);
    pointer-events: none;
}

/* =======================================================
   STARS
======================================================= */
.blot-result-stars {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    z-index: 2;
}

.blot-result-star {
    color: #ffbe3d;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255,190,61,.3);
}

.blot-result-star-small {
    font-size: 44px;
    opacity: .85;
}

.blot-result-star-big {
    font-size: 82px;
}

/* =======================================================
   RIBBON
======================================================= */
.blot-result-ribbon {
    position: relative;
    width: 260px;
    height: 64px;
    margin: 0 auto 15px;
    background: linear-gradient(180deg, #5f9f00 0%, #4b8600 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 2;
}

.blot-result-ribbon::before,
.blot-result-ribbon::after {
    content: "";
    position: absolute;
    top: 14px;
    width: 0;
    height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

.blot-result-ribbon::before {
    left: -34px;
    border-right: 34px solid #4b8600;
}

.blot-result-ribbon::after {
    right: -34px;
    border-left: 34px solid #4b8600;
}

/* =======================================================
   TITLE
======================================================= */
.blot-result-title {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* =======================================================
   SCORE
======================================================= */
.blot-result-score {
    margin-bottom: 20px;
    color: #fff;
    z-index: 2;
    position: relative;
}

.blot-result-chips {
    color: #fff;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.05;
}

.blot-result-chips-value {
    color: #ffd36a;
}

.blot-result-chips i {
    color: #ffcf4a;
    font-size: 28px;
    margin-left: 4px;
    filter: drop-shadow(0 0 10px rgba(255, 207, 74, 0.25));
}

.blot-result-points {
    margin-top: 6px;
    color: rgba(232, 243, 248, 0.72);
    font-size: 15px;
    font-weight: 700;
}

.blot-result-points-value {
    color: #b1c8d4;
}

/* =======================================================
   BUTTONS
======================================================= */
.blot-result-buttons {
    display: flex;
    gap: 16px;
    z-index: 2;
    position: relative;
}

.blot-result-button {
    flex: 1;
    height: 58px;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.blot-result-button:hover {
    transform: translateY(-3px) scale(1.02);
}

.blot-result-button-play {
    background: linear-gradient(180deg, #1178a3 0%, #0d6285 100%);
    box-shadow: 0 8px 20px rgba(17,120,163,.28);
}

.blot-result-button-exit {
    background: linear-gradient(180deg, #b61d1d 0%, #931515 100%);
    box-shadow: 0 8px 20px rgba(182,29,29,.28);
}

/* =======================================================
   LOSS VERSION
======================================================= */
.blot-result.blot-result-loss {
    background: linear-gradient(180deg, #2a1d24 0%, #1b1720 100%);
}

/* ===== LOSS RIBBON ===== */
.blot-result.blot-result-loss .blot-result-ribbon {
    background: linear-gradient(180deg, #8d1f1f 0%, #6d1717 100%);
}

.blot-result.blot-result-loss .blot-result-ribbon::before {
    border-right: 34px solid #6d1717;
}

.blot-result.blot-result-loss .blot-result-ribbon::after {
    border-left: 34px solid #6d1717;
}

/* ===== LOSS STARS ===== */
.blot-result.blot-result-loss .blot-result-star {
    color: #d66b6b;
    opacity: .45;
    text-shadow: 0 0 16px rgba(214,107,107,.18);
}

/* ===== LOSS TITLE ===== */
.blot-result.blot-result-loss .blot-result-title {
    color: #ffe2e2;
}

/* ===== LOSS SCORE ===== */
.blot-result.blot-result-loss .blot-result-score span {
    color: #ff8a8a;
}

/* =======================================================
   SHOW
======================================================= */
.blot-result.blot-result-show {
    display: inline;
    animation: blotResultShow .4s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes blotResultShow {
    0% {
        opacity: 0;
        transform: scale(.82) translateY(30px);
    }

    70% {
        opacity: 1;
        transform: scale(1.03) translateY(-4px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

}

/* =======================================================
   MOBILE
======================================================= */
@media(max-width:520px) {
    .blot-result {
        width: calc(100% - 16px);
        padding: 22px 16px 16px;
    }

    .blot-result-ribbon {
        width: 220px;
        height: 60px;
    }

    .blot-result-title {
        font-size: 30px;
    }

    .blot-result-score {
        font-size: 30px;
    }

    .blot-result-buttons {
        gap: 10px;
    }

    .blot-result-button {
        height: 52px;
        font-size: 15px;
    }

    .blot-result-star-big {
        font-size: 64px;
    }

    .blot-result-star-small {
        font-size: 34px;
    }

}

/* =======================================================
   LEVEL UP WINDOW
======================================================= */
.blot-levelup {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 320px;
    padding: 18px 14px 14px;
    border-radius: 22px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, #17313d 0%, #152331 100%);
    border: 1px solid rgba(177,200,212,.12);
    box-shadow: 0 18px 50px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.03);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.82);
    z-index: 1200;
    display: none;
}

/* ===== BACKGROUND EFFECT ===== */
.blot-levelup::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(177,200,212,.05) 0%, transparent 70%);
    pointer-events: none;
}

/* =======================================================
   GLOW
======================================================= */
.blot-levelup-glow {
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,120,.22) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

/* =======================================================
   ICON
======================================================= */
.blot-levelup-icon {
    position: relative;
    width: 74px;
    height: 74px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffcc57 0%, #ffb52d 100%);
    box-shadow: 0 10px 24px rgba(255,181,45,.28);
    z-index: 2;
}

.blot-levelup-icon span {
    font-size: 36px;
}

/* =======================================================
   TITLE
======================================================= */
.blot-levelup-title {
    position: relative;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
    z-index: 2;
}

/* =======================================================
   LEVEL
======================================================= */
.blot-levelup-level {
    position: relative;
    color: #b1c8d4;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    z-index: 2;
}

.blot-levelup-level span {
    color: #ffffff;
    font-size: 18px;
}

/* =======================================================
   REWARD
======================================================= */
.blot-levelup-reward {
    position: relative;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%);
    border: 1px solid rgba(177,200,212,.08);
    margin-bottom: 16px;
    z-index: 2;
}

.blot-levelup-reward-label {
    color: #b1c8d4;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.blot-levelup-reward-value {
    color: #ffd76a;
    font-size: 28px;
    font-weight: 900;
    text-shadow: 0 0 14px rgba(255,215,106,.18);
}

.blot-levelup-reward-value span {
    color: #fff;
    font-size: 16px;
    margin-left: 4px;
}

/* =======================================================
   BUTTON
======================================================= */
.blot-levelup-button {
    position: relative;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #1178a3 0%, #0d6285 100%);
    box-shadow: 0 8px 20px rgba(17,120,163,.22);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
    z-index: 2;
}

.blot-levelup-button:hover {
    transform: translateY(-2px) scale(1.01);
}

/* =======================================================
   SHOW
======================================================= */
.blot-levelup.blot-levelup-show {
    display: block;
    animation: blotLevelUpShow .38s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes blotLevelUpShow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.82);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.03);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

}

/* =======================================================
   LANDSCAPE MOBILE
======================================================= */
@media (orientation: landscape) and (max-width: 932px) and (max-height: 500px) {
    .blot-levelup {
        max-width: 520px;
        padding: 14px;
    }

    .blot-levelup-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    .blot-levelup-icon span {
        font-size: 28px;
    }

    .blot-levelup-title {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .blot-levelup-level {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .blot-levelup-level span {
        font-size: 15px;
    }

    .blot-levelup-reward {
        padding: 10px;
        margin-bottom: 10px;
    }

    .blot-levelup-reward-value {
        font-size: 22px;
    }

    .blot-levelup-button {
        height: 42px;
        font-size: 14px;
    }

}

/* =======================================================
   GAME MODALS SKIN
======================================================= */
.blot-trump-modal,
.blot-score,
.blot-result,
.blot-levelup {
    background:
        linear-gradient(160deg, rgba(36, 70, 84, 0.96), rgba(22, 43, 52, 0.98)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.blot-trump-modal,
.blot-score,
.blot-levelup {
    border-radius: 20px;
}

.blot-result {
    border-radius: 22px;
}

.blot-trump-cards,
.blot-trump-bid-row,
.blot-trump-actions,
.blot-score-header,
.blot-score-body,
.blot-score-footer,
.blot-result-stars,
.blot-result-ribbon,
.blot-result-score,
.blot-result-buttons,
.blot-levelup-icon,
.blot-levelup-title,
.blot-levelup-level,
.blot-levelup-reward,
.blot-levelup-button {
    position: relative;
    z-index: 2;
}

.blot-trump-modal::after,
.blot-score::after,
.blot-result::after,
.blot-levelup::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.blot-trump-card,
.blot-trump-bid-btn,
.blot-trump-bid-kp:not(.blot-trump-kp-active),
.blot-trump-bid-value,
.blot-trump-action-btn,
.blot-score-header,
.blot-score-footer,
.blot-levelup-reward {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.1);
}

.blot-trump-card {
    color: #fff;
    text-shadow:
        0 2px 0 rgba(0,0,0,0.28),
        0 0 12px rgba(255,255,255,0.18);
}

.blot-trump-card.blot-trump-club,
.blot-trump-card.blot-trump-spade {
    color: #061119;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.55),
        0 0 10px rgba(255,255,255,0.35);
}

.blot-trump-card:hover,
.blot-trump-bid-btn:hover,
.blot-trump-bid-kp:not(.blot-trump-kp-active):hover {
    background: rgba(255, 255, 255, 0.105);
    border-color: rgba(255, 255, 255, 0.16);
}

.blot-trump-card.blot-trump-active,
.blot-trump-action-primary,
.blot-levelup-button,
.blot-result-button-play {
    background: linear-gradient(135deg, #008bbb, #1e6b82);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 20px rgba(0, 139, 187, 0.22);
}

.blot-result-button-exit {
    background: linear-gradient(135deg, #ef4444, #9f1239);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.blot-trump-modal.blot-trump-mode-contra,
.blot-trump-modal.blot-trump-mode-recontra {
    position: absolute;
    top: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
}

.blot-score-team,
.blot-score-value,
.blot-score-total span,
.blot-levelup-level,
.blot-levelup-reward-label {
    color: rgba(232, 243, 248, 0.72);
}

.blot-result.blot-result-loss {
    background:
        linear-gradient(160deg, rgba(72, 38, 48, 0.96), rgba(31, 27, 33, 0.98)),
        url("/images/carbon-fibre.png");
}

.blot-score {
    width: min(430px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 22px;
    background:
        linear-gradient(160deg, rgba(35, 65, 78, 0.98), rgba(13, 27, 35, 0.99)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(124, 224, 255, 0.2);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.blot-score::before {
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 139, 187, 0.18), transparent 38%),
        radial-gradient(circle at 80% 100%, rgba(245, 158, 11, 0.12), transparent 42%);
}

.blot-score-header {
    gap: 8px;
    padding: 0 0 8px;
    border: 0;
    background: transparent;
}

.blot-score-header > div {
    flex: 1;
    min-height: 36px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #effaff;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.blot-score-body {
    min-height: 0;
    padding: 0;
}

.blot-score-columns {
    gap: 8px;
}

.blot-score-column {
    min-height: 136px;
    padding: 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.035);
}

.blot-score-list {
    gap: 7px;
}

.blot-score-detail {
    min-height: 28px;
    gap: 8px;
    padding: 5px 8px 5px 0;
    color: rgba(245, 251, 255, 0.94);
    font-size: 12px;
    font-weight: 800;
}

.blot-score-detail + .blot-score-detail {
    border-top: 1px solid rgba(255, 255, 255, 0.025);
}

.blot-score-detail-points {
    min-width: 34px;
    color: #ffd36a;
    font-size: 13px;
    font-weight: 950;
}

.blot-score-detail-muted {
    color: rgba(232, 243, 248, 0.44);
}

.blot-score-footer {
    gap: 8px;
    padding: 8px 0 0;
    border: 0;
    background: transparent;
}

.blot-score-total {
    flex: 1;
    min-height: 38px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 13px;
    color: rgba(232, 243, 248, 0.72);
    background: rgba(0, 139, 187, 0.045);
    border: 1px solid rgba(124, 224, 255, 0.07);
    font-size: 12px;
    font-weight: 850;
}

.blot-score-total span {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

@media (max-width: 576px) {
    .blot-score {
        width: min(360px, calc(100vw - 18px));
        padding: 8px;
        border-radius: 18px;
    }

    .blot-score-header > div {
        min-height: 32px;
        padding: 7px;
        font-size: 10px;
    }

    .blot-score-column {
        min-height: 112px;
        padding: 8px;
        border-radius: 13px;
    }

    .blot-score-detail {
        min-height: 24px;
        font-size: 10px;
        padding-right: 6px;
    }

    .blot-score-detail-points {
        min-width: 28px;
        font-size: 11px;
    }

    .blot-score-total {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 10px;
    }

    .blot-score-total span {
        font-size: 15px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .blot-score {
        width: min(460px, calc(100vw - 28px));
        padding: 8px;
    }

    .blot-score-column {
        min-height: 90px;
        padding: 7px 9px;
    }

    .blot-score-detail {
        min-height: 21px;
        padding: 3px 6px 3px 0;
        font-size: 10px;
    }

    .blot-score-footer {
        padding-top: 6px;
    }
}

.blot-levelup-icon {
    background: linear-gradient(135deg, #ffdf73, #f59e0b);
    color: #3a2200;
}

.blot-levelup-reward-value {
    color: #ffd36a;
}

/* =======================================================
   FIRST TURN ICON
======================================================= */
.blot-first-turn {
    position: absolute;
    bottom: 20px;
    right: -55px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #5affd0 0%, #1faaf0 100%);
    border: 2px solid rgba(255,255,255,.15);
    box-shadow: 0 0 0 4px rgba(255,207,90,.15), 0 8px 18px rgba(240,169,31,.35);
    animation: blotFirstTurnPulse 1.6s infinite;
    z-index: 20;
}

.blot-player-right .blot-first-turn {
    right: auto;
    left: -55px;
}

/* ===== ICON ===== */
.blot-first-turn-icon {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* =======================================================
   ANIMATION
======================================================= */
@keyframes blotFirstTurnPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(90,195,255,.35), 0 8px 18px rgba(31,138,240,.35);
    }

    70% {
        transform: scale(1.06);
        box-shadow: 0 0 0 12px rgba(90,195,255,0), 0 8px 18px rgba(31,138,240,.35);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(90,195,255,0), 0 8px 18px rgba(31,138,240,.35);
    }

}

/* =======================================================
   MOBILE
======================================================= */
@media(max-width:600px) {
    .blot-player-avatar {
        width: 64px;
        height: 64px;
    }

    .blot-first-turn {
        top: 8px;
        right: -20px;
    }

    .blot-player-right .blot-first-turn {
        right: auto;
        left: -28px;
    }

    .blot-first-turn-icon {
        font-size: 14px;
    }

}

/* =======================================================
   RATING
======================================================= */
.blot-player-rating {
    position: absolute;
    left: 70px;
    bottom: 13px;
    height: 24px;
    min-width: 35px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd86a 0%, #c99322 100%);
    border: 1px solid rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b2800;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 0 14px rgba(255,216,106,.28), 0 6px 16px rgba(0,0,0,.28);
    z-index: 15;
}

.blot-player-rating:empty {
    display: none;
}

.blot-player-right .blot-player-rating {
    right: 70px;
    left: auto;
}

@media (max-width: 768px) {
    .blot-player-rating {
        left: 45px;
        bottom: 6px;
        min-width: 30px;
    }

    .blot-player-right .blot-player-rating {
        right: 45px;
        left: auto;
    }

}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .blot-player-rating {
        left: 45px;
        bottom: 6px;
        min-width: 30px;
    }

    .blot-player-right .blot-player-rating {
        right: 45px;
        left: auto;
    }

}

/* =======================================================
   VIP BADGE
======================================================= */
.blot-vip-badge {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    height: 20px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #b06cff 0%, #7b2fff 100%);
    border: 1px solid rgba(255,255,255,.22);
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .6px;
    box-shadow: 0 0 18px rgba(140,82,255,.45), 0 6px 14px rgba(0,0,0,.28);
    z-index: 20;
}

.blot-player-vip .blot-vip-badge {
    display: flex;
}

/* =======================================================
   VIP AVATAR EFFECT
======================================================= */
.blot-player-vip .blot-avatar {
    box-shadow:
        0 0 0 2px rgba(156,92,255,.65),
        0 0 26px rgba(156,92,255,.35),
        0 10px 24px rgba(0,0,0,.35);
}

.blot-player-vip .blot-avatar::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(176,108,255,.03), rgba(176,108,255,0.3), rgba(176,108,255,.03));
    animation: blotVipRotate 3s linear infinite;
    z-index: 1;
}

.blot-player-vip:not(.blot-player-active) .blot-avatar::before {
    animation: none;
}

/* =======================================================
   VIP PLAYER NAME
======================================================= */
.blot-player-vip .blot-player-name {
    border-color: rgba(176,108,255,.25);
    box-shadow: 0 0 18px rgba(176,108,255,.16);
}

.blot-player-vip .blot-player-text {
    color: #f0e4ff;
    text-shadow: 0 0 10px rgba(176,108,255,.35);
}

/* =======================================================
   VIP ROTATE
======================================================= */
@keyframes blotVipRotate {
    to {
        transform: rotate(360deg);
    }

}

.blot-toast-wrap {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}

.blot-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    padding: 12px 12px;
    color: #eefaff;
    background:
        linear-gradient(160deg, rgba(22, 45, 55, 0.97), rgba(10, 20, 25, 0.98)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.blot-toast-show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.blot-toast-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
}

.blot-toast-success .blot-toast-icon {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.2);
}

.blot-toast-error .blot-toast-icon {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.22);
}

.blot-toast-info .blot-toast-icon {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.22);
}

.blot-toast-text {
    min-width: 0;
    color: rgba(238, 250, 255, 0.88);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.blot-toast-close {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(238, 250, 255, 0.64);
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    border-radius: 8px;
}

.blot-toast-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.blot-pwa-install {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 2600;
    width: min(430px, calc(100vw - 24px));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: #eaf8ff;
    background:
        linear-gradient(145deg, rgba(22, 55, 48, 0.97), rgba(10, 24, 25, 0.98)),
        url("/images/carbon-fibre.png");
    border: 1px solid rgba(68, 220, 150, 0.28);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.blot-pwa-install-show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

.main.game-page-active ~ .blot-pwa-install,
body:has(.main.game-page-active) .blot-pwa-install {
    display: none;
}

.blot-pwa-install-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ccfff0;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(125, 245, 190, 0.22);
    border-radius: 12px;
    font-size: 17px;
}

.blot-pwa-install-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.blot-pwa-install-copy strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}

.blot-pwa-install-copy span {
    color: rgba(224, 246, 255, 0.76);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.blot-pwa-install-action {
    min-height: 34px;
    padding: 0 14px;
    color: #08212a;
    background: linear-gradient(135deg, #d9fbff, #42c9ed);
    border: 0;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.blot-pwa-install-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(236, 252, 255, 0.8);
    background: rgba(20, 35, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-size: 11px;
}

@media (max-width: 932px) {
    .blot-pwa-install {
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: min(390px, calc(100vw - 18px));
        gap: 8px;
        padding: 9px 10px;
        border-radius: 14px;
    }

    .blot-pwa-install-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 15px;
    }

    .blot-pwa-install-copy strong {
        font-size: 12px;
    }

    .blot-pwa-install-copy span {
        font-size: 10px;
    }

    .blot-pwa-install-action {
        min-height: 30px;
        padding: 0 11px;
        border-radius: 10px;
        font-size: 11px;
    }
}

/* =======================================================
   VIP PLAYER INFO
======================================================= */
.blot-player-vip .blot-player-info {
    position: relative;
}

/* ===== MAIN BLOCK ===== */
.blot-player-vip .blot-player-name {
    background: linear-gradient(180deg, #5b2ab8 0%, #3f1c86 100%);
    border: 1px solid rgba(176,108,255,.4);
    box-shadow: 0 0 18px rgba(176,108,255,.22), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: none;
}

/* ===== GLOW BORDER ===== */
.blot-player-vip .blot-player-name::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(90deg, rgba(176,108,255,.2), rgba(208,167,255,1), rgba(176,108,255,.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: .8;
    pointer-events: none;
}

/* ===== TEXT ===== */
.blot-player-vip .blot-player-text {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(176,108,255,.45);
}

/* ===== TIMER ===== */
.blot-player-vip .blot-player-timer {
    border-radius: 16px;
    box-shadow: 0 0 16px rgba(176,108,255,.25);
}

@media (max-width: 932px) {
    .blot-player-vip .blot-player-timer {
        box-shadow: none;
    }

    .blot-player-vip .blot-avatar::before,
    .blot-player-vip .blot-player-name::before {
        display: none;
    }
}

@media (min-width: 768px) {
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
}

/* ========================================================================== 
   Lobby game cards refresh
========================================================================== */

/* ========================================================================== 
   Tournament list refresh
========================================================================== */

.tournament-page {
    min-height: 100%;
    height: 100%;
    padding: clamp(14px, 2.5vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    background: transparent;
}

.tournament-head {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    column-gap: 13px;
    margin: 0;
    text-align: left !important;
}

.tournament-head::before {
    content: "\f091";
    width: 46px;
    height: 46px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    color: #13252d;
    background: linear-gradient(145deg, #ffd36a, #eaa92c);
    border: 1px solid rgba(255, 232, 154, 0.72);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    font-family: "Font Awesome 6 Free";
    font-size: 19px;
    font-weight: 900;
}

.tournament-title {
    margin: 0;
    color: #f7fbfd;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.tournament-subtitle {
    margin: 4px 0 0;
    color: rgba(223, 237, 243, 0.62);
    font-size: 12px;
    font-weight: 650;
}

.tournament-scroll {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.tournament-row {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.tournament-row > div,
.tournament-col {
    width: auto;
    min-width: 0;
    height: 100%;
    padding: 0;
}

.tournament-card {
    --tournament-accent: #55d2ff;
    --tournament-rgb: 85, 210, 255;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #eefaff;
    background:
        radial-gradient(circle at 100% 0, rgba(var(--tournament-rgb), 0.2), transparent 31%),
        linear-gradient(150deg, rgba(var(--tournament-rgb), 0.12), transparent 48%),
        linear-gradient(155deg, rgba(24, 48, 58, 0.98), rgba(10, 24, 31, 0.99));
    border: 1px solid rgba(var(--tournament-rgb), 0.32);
    border-top: 4px solid var(--tournament-accent);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tournament-card-live {
    --tournament-accent: #53dfb6;
    --tournament-rgb: 83, 223, 182;
}

.tournament-card:has(.tournament-status.upcoming) {
    --tournament-accent: #ffc84e;
    --tournament-rgb: 255, 200, 78;
}

.tournament-card:has(.tournament-status.finished) {
    --tournament-accent: #90a9b4;
    --tournament-rgb: 144, 169, 180;
}

.tournament-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--tournament-rgb), 0.62);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.32), 0 0 24px rgba(var(--tournament-rgb), 0.1);
}

.tournament-card-header {
    position: relative;
    padding: 16px 17px 14px;
    color: inherit;
    background: transparent;
    border: 0;
}

.tournament-status {
    width: max-content;
    max-width: 100%;
    margin: 0 0 11px;
    padding: 5px 8px;
    color: var(--tournament-accent);
    background: rgba(var(--tournament-rgb), 0.12);
    border: 1px solid rgba(var(--tournament-rgb), 0.24);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.tournament-name {
    margin: 0 0 7px;
    color: #f8fcfd;
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.tournament-prize {
    color: #ffd36a;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 950;
}

.tournament-body {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 13px 17px 16px;
    background: rgba(4, 14, 19, 0.2);
    border-top: 1px solid rgba(218, 237, 244, 0.08);
}

.tournament-time-box {
    margin: 0 0 11px;
    padding: 10px 11px;
    text-align: left;
    background: rgba(var(--tournament-rgb), 0.09);
    border: 1px solid rgba(var(--tournament-rgb), 0.16);
    border-radius: 11px;
}

.tournament-time-label {
    margin: 0 0 3px;
    color: rgba(222, 238, 244, 0.56);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.tournament-time-value {
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.05;
}

.tournament-info {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 7px 1px;
    border-bottom: 1px solid rgba(220, 237, 244, 0.08);
}

.tournament-info-label {
    color: rgba(222, 237, 243, 0.54);
    font-size: 11px;
    font-weight: 750;
}

.tournament-info-value {
    color: #f5fafc;
    font-size: 11px;
    font-weight: 850;
    text-align: right;
}

.tournament-join-btn {
    min-height: 42px;
    margin-top: auto;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #10242d;
    background: var(--tournament-accent);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 9px 20px rgba(var(--tournament-rgb), 0.15);
    font-size: 12px;
    font-weight: 950;
}

.tournament-join-btn:hover {
    color: #07171d;
    filter: brightness(1.08);
}

.tournament-join-btn:disabled,
.tournament-join-btn-disabled {
    color: rgba(232, 243, 248, 0.45);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.tournament-empty {
    margin: auto;
    padding: 26px;
    color: rgba(228, 241, 247, 0.68);
    background: rgba(15, 34, 42, 0.82);
    border: 1px solid rgba(108, 210, 240, 0.15);
    border-radius: 16px;
    text-align: center;
}

@media (max-width: 576px) and (orientation: portrait) {
    .tournament-page {
        height: 100%;
        padding: 10px;
        gap: 10px;
        overflow: hidden;
    }

    .tournament-head {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 9px;
    }

    .tournament-head::before {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 15px;
    }

    .tournament-title {
        grid-row: 1 / 3;
        align-self: center;
        font-size: 20px;
    }

    .tournament-subtitle {
        display: none;
    }

    .tournament-scroll {
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 2px;
    }

    .tournament-row {
        height: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .tournament-row > div,
    .tournament-col {
        height: auto;
    }

    .tournament-card {
        height: auto;
        min-height: clamp(285px, 58dvh, 410px);
        border-radius: 15px;
    }

    .tournament-card-header {
        padding: 13px 14px 11px;
    }

    .tournament-body {
        padding: 10px 14px 13px;
    }

    .tournament-info {
        min-height: 38px;
        flex: 1 1 0;
        padding: 8px 9px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .tournament-page {
        --tournament-mobile-gap: 10px;
        --tournament-mobile-card-width: calc((100vw - 36px) / 3);
        height: 100%;
        padding: 7px 8px;
        gap: 6px;
        overflow: hidden;
    }

    .tournament-head {
        display: none;
    }

    .tournament-head::before {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 13px;
    }

    .tournament-title {
        font-size: 17px;
    }

    .tournament-subtitle {
        display: none;
    }

    .tournament-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tournament-scroll::-webkit-scrollbar {
        display: none;
    }

    .tournament-row {
        width: max-content;
        min-width: 100%;
        height: 100%;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: var(--tournament-mobile-gap);
        padding-inline: 0;
    }

    .tournament-row > div,
    .tournament-col {
        width: var(--tournament-mobile-card-width);
        height: calc(100% - 16px);
        min-height: 0;
        flex: 0 0 var(--tournament-mobile-card-width);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .tournament-card {
        height: 100%;
        min-height: 0;
        max-height: none;
        border-radius: 14px;
    }

    .tournament-card:hover {
        transform: none;
    }

    .tournament-card-header {
        padding: 9px 11px 8px;
    }

    .tournament-status {
        margin-bottom: 6px;
        padding: 4px 7px;
        font-size: 8px;
    }

    .tournament-name {
        margin-bottom: 3px;
        font-size: 15px;
    }

    .tournament-prize {
        font-size: 16px;
    }

    .tournament-body {
        min-height: 0;
        flex: 1 1 auto;
        padding: 7px 11px 9px;
    }

    .tournament-time-box {
        margin-bottom: 5px;
        padding: 6px 8px;
    }

    .tournament-time-label {
        font-size: 8px;
    }

    .tournament-time-value {
        font-size: 15px;
    }

    .tournament-info {
        min-height: 28px;
        flex: 1 1 0;
        padding: 6px 8px;
    }

    .tournament-info-label,
    .tournament-info-value {
        font-size: 11px;
    }

    .tournament-join-btn {
        min-height: 38px;
        padding: 7px 9px;
        border-radius: 10px;
        font-size: 13px;
    }
}

/* ========================================================================== 
   Tournament details refresh
========================================================================== */

.trnsingle-page {
    --trn-accent: #55d2ff;
    --trn-rgb: 85, 210, 255;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: clamp(12px, 2vw, 22px);
    overflow: hidden;
    background: transparent;
}

.trnsingle-page:has(.trnsingle-status-live) {
    --trn-accent: #53dfb6;
    --trn-rgb: 83, 223, 182;
}

.trnsingle-page:has(.trnsingle-status-upcoming) {
    --trn-accent: #ffc84e;
    --trn-rgb: 255, 200, 78;
}

.trnsingle-page:has(.trnsingle-status-finished) {
    --trn-accent: #90a9b4;
    --trn-rgb: 144, 169, 180;
}

.trnsingle-card {
    width: min(100%, 1160px);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(var(--trn-rgb), 0.18), transparent 30%),
        linear-gradient(150deg, rgba(var(--trn-rgb), 0.1), transparent 46%),
        linear-gradient(155deg, rgba(23, 47, 57, 0.98), rgba(9, 22, 29, 0.99));
    border: 1px solid rgba(var(--trn-rgb), 0.28);
    border-top: 4px solid var(--trn-accent);
    border-radius: 19px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: none;
}

.trnsingle-header {
    flex: 0 0 auto;
    padding: 17px 20px 15px;
    background: transparent;
    border-bottom: 1px solid rgba(218, 237, 244, 0.09);
}

.trnsingle-status {
    width: max-content;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 5px 9px;
    gap: 6px;
    color: var(--trn-accent);
    background: rgba(var(--trn-rgb), 0.12);
    border: 1px solid rgba(var(--trn-rgb), 0.24);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.trnsingle-title {
    margin: 0;
    color: #f8fcfd;
    font-size: clamp(22px, 2.5vw, 31px);
    font-weight: 950;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.trnsingle-subtitle {
    max-width: 760px;
    margin-top: 5px;
    color: rgba(224, 239, 245, 0.62);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.trnsingle-content {
    min-height: 0;
    flex: 1 1 auto;
    padding: 14px 18px 17px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    overflow: hidden;
}

.trnsingle-info-grid {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
}

.trnsingle-info-box {
    min-width: 0;
    padding: 11px 12px;
    background: rgba(var(--trn-rgb), 0.07);
    border: 1px solid rgba(var(--trn-rgb), 0.14);
    border-radius: 11px;
}

.trnsingle-info-label {
    margin: 0 0 4px;
    color: rgba(221, 237, 243, 0.55);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.trnsingle-info-value {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.12;
    text-overflow: ellipsis;
}

.trnsingle-main-layout {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: stretch;
    gap: 12px;
}

.trnsingle-main-layout > div:first-child {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.trnsingle-description {
    flex: 0 0 auto;
    margin: 0 0 10px;
    padding: 10px 12px;
    color: rgba(224, 239, 245, 0.68);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(218, 237, 244, 0.08);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.trnsingle-games-grid {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    margin: 0;
    overflow: visible;
}

.trnsingle-game-card {
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 13px;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(150deg, rgba(85, 210, 255, 0.1), transparent 55%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(104, 207, 236, 0.14);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.trnsingle-game-card.active {
    background:
        linear-gradient(150deg, rgba(var(--trn-rgb), 0.2), transparent 60%),
        rgba(255, 255, 255, 0.055);
    border-color: rgba(var(--trn-rgb), 0.48);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.trnsingle-game-card.played {
    background:
        linear-gradient(150deg, rgba(83, 223, 182, 0.14), transparent 60%),
        rgba(255, 255, 255, 0.035);
    border-color: rgba(83, 223, 182, 0.25);
    box-shadow: none;
}

.trnsingle-game-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--trn-rgb), 0.45);
}

.trnsingle-game-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.trnsingle-game-badge {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    color: var(--trn-accent);
    background: rgba(var(--trn-rgb), 0.11);
    border: 1px solid rgba(var(--trn-rgb), 0.2);
    border-radius: 11px;
    font-size: 14px;
    font-weight: 950;
}

.trnsingle-game-score {
    max-width: calc(100% - 44px);
    padding: 5px 7px;
    overflow: hidden;
    color: rgba(232, 244, 248, 0.75);
    background: rgba(255, 255, 255, 0.055);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trnsingle-game-center {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 8px 0;
    text-align: left;
}

.trnsingle-game-state {
    margin: 0 0 3px;
    color: rgba(222, 237, 243, 0.5);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.trnsingle-game-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    text-align: center;
}

.trnsingle-game-btn,
.trnsingle-btn {
    width: 100%;
    min-height: 38px;
    height: auto;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dfeff5;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(218, 237, 244, 0.1);
    border-radius: 10px;
    box-shadow: none;
    font-size: 11px;
    font-weight: 900;
}

.trnsingle-game-btn,
.trnsingle-btn-primary {
    color: #10242d;
    background: var(--trn-accent);
    border-color: transparent;
}

.trnsingle-game-btn:hover,
.trnsingle-btn:hover {
    transform: none;
    filter: brightness(1.08);
}

.trnsingle-btn:disabled {
    color: rgba(224, 239, 245, 0.4);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(218, 237, 244, 0.07);
}

.trnsingle-sidebar-box {
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 13px;
    display: flex;
    flex-direction: column;
    background: rgba(5, 17, 22, 0.28);
    border: 1px solid rgba(var(--trn-rgb), 0.15);
    border-radius: 13px;
}

.trnsingle-sidebar-title {
    color: #f6fbfd;
    font-size: 14px;
    font-weight: 900;
}

.trnsingle-sidebar-list {
    min-height: 0;
    overflow-y: auto;
}

.trnsingle-player,
.trnsingle-prize-item {
    min-height: 36px;
    padding: 7px 2px;
    color: rgba(226, 240, 246, 0.74);
    border-bottom: 1px solid rgba(218, 237, 244, 0.08);
    font-size: 11px;
}

.trnsingle-player-current {
    color: var(--trn-accent);
}

.trnsingle-sidebar-meta {
    display: grid;
    gap: 7px;
    margin: 9px 0 0;
}

.trnsingle-sidebar-meta > div {
    min-height: 36px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(218, 237, 244, 0.07);
    border-radius: 9px;
}

.trnsingle-sidebar-meta span {
    font-size: 10px;
}

.trnsingle-sidebar-meta strong {
    font-size: 11px;
}

.trnsingle-sidebar-box .trnsingle-btn {
    margin-top: 7px !important;
    margin-bottom: 0 !important;
}

.trnsingle-sidebar-box .trnsingle-btn:first-of-type {
    margin-top: auto !important;
}

@media (orientation: portrait) and (max-width: 576px) {
    .trnsingle-page {
        height: 100%;
        padding: 8px;
    }

    .trnsingle-card {
        height: 100%;
        max-height: none;
        border-radius: 15px;
    }

    .trnsingle-header {
        padding: 11px 13px 10px;
    }

    .trnsingle-status {
        margin-bottom: 6px;
        padding: 4px 7px;
        font-size: 8px;
    }

    .trnsingle-title {
        font-size: 19px;
    }

    .trnsingle-subtitle {
        display: none;
    }

    .trnsingle-content {
        height: auto;
        padding: 9px;
        gap: 8px;
        overflow-y: auto;
    }

    .trnsingle-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .trnsingle-info-box {
        padding: 8px 9px;
    }

    .trnsingle-info-value {
        font-size: 13px;
    }

    .trnsingle-main-layout {
        min-height: 430px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(280px, 1fr) auto;
        gap: 8px;
    }

    .trnsingle-games-grid {
        height: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 7px;
        overflow: visible;
        padding: 0;
    }

    .trnsingle-game-card {
        min-width: 0;
        height: 100%;
        padding: 9px;
        border-radius: 11px;
        scroll-snap-align: none;
    }

    .trnsingle-game-badge {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        border-radius: 9px;
        font-size: 12px;
    }

    .trnsingle-game-title {
        font-size: 14px;
    }

    .trnsingle-game-btn,
    .trnsingle-btn {
        min-height: 34px;
        padding: 7px;
        font-size: 10px;
    }

    .trnsingle-sidebar-box {
        min-height: 112px;
        padding: 9px;
    }

    .trnsingle-sidebar-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .trnsingle-page {
        height: 100%;
        padding: 6px 8px;
    }

    .trnsingle-card {
        height: 100%;
        max-height: none;
        border-radius: 14px;
    }

    .trnsingle-header {
        display: none;
    }

    .trnsingle-content {
        height: 100%;
        padding: 8px;
        gap: 7px;
        overflow: hidden;
    }

    .trnsingle-info-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .trnsingle-info-box {
        padding: 7px 8px;
        border-radius: 9px;
    }

    .trnsingle-info-label {
        margin-bottom: 2px;
        font-size: 8px;
    }

    .trnsingle-info-value {
        font-size: 12px;
    }

    .trnsingle-main-layout {
        height: auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) clamp(170px, 22vw, 210px);
        gap: 7px;
    }

    .trnsingle-games-grid {
        width: 100%;
        height: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: minmax(0, 1fr);
        gap: 7px;
        overflow: visible;
        padding: 0;
    }

    .trnsingle-game-card {
        min-width: 0;
        height: 100%;
        padding: clamp(7px, 2vh, 10px);
        border-radius: 11px;
    }

    .trnsingle-game-card:hover {
        transform: none;
    }

    .trnsingle-game-badge {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
        border-radius: 8px;
        font-size: 11px;
    }

    .trnsingle-game-score {
        padding: 4px 6px;
        font-size: 8px;
    }

    .trnsingle-game-center {
        margin: 5px 0;
    }

    .trnsingle-game-state {
        font-size: 8px;
    }

    .trnsingle-game-title {
        font-size: 13px;
    }

    .trnsingle-game-btn,
    .trnsingle-btn {
        min-height: 32px;
        padding: 6px;
        border-radius: 9px;
        font-size: 9px;
    }

    .trnsingle-sidebar-box {
        min-height: 0;
        padding: 8px;
        border-radius: 10px;
    }

    .trnsingle-sidebar-meta {
        gap: 5px;
        margin-top: 0;
    }

    .trnsingle-sidebar-meta > div {
        min-height: 31px;
        padding: 5px 7px;
    }

    .trnsingle-sidebar-box .trnsingle-btn {
        margin-top: 5px !important;
    }
}

/* ========================================================================== 
   Fortune page refresh
========================================================================== */

.fortune-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.fortune-page .store-panel,
.fortune-panel {
    width: 100%;
    max-width: 1160px;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(12px, 2vw, 22px) 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    overflow: hidden;
    background: transparent;
}

.fortune-hero {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 !important;
    padding: 15px 17px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 200, 78, 0.16), transparent 34%),
        linear-gradient(150deg, rgba(85, 210, 255, 0.1), transparent 48%),
        rgba(12, 29, 37, 0.92);
    border: 1px solid rgba(104, 207, 236, 0.18);
    border-left: 4px solid #ffc84e;
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fortune-hero-kicker {
    margin: 0 0 4px;
    color: #ffc84e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.fortune-hero h1 {
    margin: 0;
    color: #f8fcfd;
    font-size: clamp(21px, 2.3vw, 29px);
    font-weight: 950;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.fortune-hero p {
    max-width: 720px;
    margin: 5px 0 0;
    color: rgba(224, 239, 245, 0.62);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.fortune-wallet {
    min-width: 145px;
    padding: 10px 12px;
    text-align: right;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 211, 106, 0.17);
    border-radius: 11px;
}

.fortune-wallet span {
    color: rgba(224, 239, 245, 0.52);
    font-size: 9px;
}

.fortune-wallet strong {
    gap: 7px;
    margin-top: 3px;
    color: #ffd36a;
    font-size: 20px;
}

.fortune-grid {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    align-items: stretch;
    gap: 12px;
}

.fortune-wheel-card {
    min-width: 0;
    min-height: 0;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 200, 78, 0.1), transparent 48%),
        linear-gradient(150deg, rgba(85, 210, 255, 0.08), transparent 52%),
        rgba(9, 24, 31, 0.88);
    border: 1px solid rgba(104, 207, 236, 0.17);
    border-top: 4px solid #ffc84e;
    border-radius: 17px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    container-type: size;
}

.fortune-panel .wheel-wrapper {
    width: min(100%, 470px);
    max-width: none;
    margin: 0;
}

@supports (width: 1cqh) {
    .fortune-panel .wheel-wrapper {
        width: min(92cqw, 92cqh, 470px);
    }
}

.fortune-panel .wheel-container {
    border: 8px solid rgba(255, 211, 106, 0.28);
    background: #132a34;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38), inset 0 0 24px rgba(255, 255, 255, 0.07);
}

.fortune-panel .wheel-pointer {
    top: -2px;
    border-left-width: 18px;
    border-right-width: 18px;
    border-top: 34px solid #ffc84e;
}

.fortune-panel .wheel-center {
    width: clamp(66px, 9vw, 88px);
    height: clamp(66px, 9vw, 88px);
    color: #1d2d32;
    background: linear-gradient(145deg, #ffe38a, #eeb43a);
    border: 4px solid rgba(255, 250, 225, 0.86);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.fortune-side {
    min-width: 0;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.fortune-status,
.fortune-rules-card {
    background:
        linear-gradient(150deg, rgba(85, 210, 255, 0.09), transparent 58%),
        rgba(9, 24, 31, 0.82);
    border: 1px solid rgba(104, 207, 236, 0.15);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.fortune-status {
    flex: 0 0 auto;
    gap: 11px;
    padding: 13px;
}

.fortune-status-icon {
    width: 40px;
    height: 40px;
    color: #ffc84e;
    background: rgba(255, 200, 78, 0.12);
    border: 1px solid rgba(255, 200, 78, 0.2);
    border-radius: 11px;
    font-size: 16px;
}

.fortune-status span {
    color: rgba(224, 239, 245, 0.52);
    font-size: 11px;
}

.fortune-status strong {
    margin-top: 3px;
    color: #f8fcfd;
    font-size: 15px;
}

.fortune-rules-card {
    min-height: 0;
    flex: 1 1 auto;
    padding: 13px;
    display: flex;
    flex-direction: column;
}

.fortune-section-title {
    margin-bottom: 9px;
    color: #f5fafc;
    font-size: 12px;
}

.fortune-rules {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.fortune-rules > div {
    min-height: 0;
    padding: 8px 9px;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(218, 237, 244, 0.07);
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.25;
}

.fortune-rules i {
    color: #ffc84e;
    font-size: 14px;
}

.wheel-reward-modal {
    background:
        linear-gradient(150deg, rgba(255, 200, 78, 0.12), transparent 52%),
        linear-gradient(155deg, rgba(23, 47, 57, 0.99), rgba(9, 22, 29, 0.99));
    border: 1px solid rgba(255, 211, 106, 0.22);
    border-radius: 19px;
}

@media (orientation: portrait) and (max-width: 576px) {
    .fortune-page .store-panel,
    .fortune-panel {
        height: 100%;
        padding: 8px 0;
        gap: 8px;
    }

    .fortune-hero,
    .fortune-wallet,
    .fortune-rules-card {
        display: none;
    }

    .fortune-grid {
        height: 100%;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .fortune-wheel-card {
        min-height: 0;
        padding: 7px;
        margin: 0 8px;
        border-radius: 15px;
    }

    @supports (width: 1cqh) {
        .fortune-panel .wheel-wrapper {
            width: min(92cqw, 92cqh);
        }
    }

    .fortune-panel .wheel-center {
        width: clamp(66px, 19vw, 82px);
        height: clamp(66px, 19vw, 82px);
    }

    .fortune-side {
        width: auto;
        margin: 0 8px;
        display: block;
    }

    .fortune-status {
        width: 100%;
        padding: 10px 11px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .fortune-page .store-panel,
    .fortune-panel {
        height: 100%;
        padding: 6px 0;
        gap: 0;
    }

    .fortune-hero,
    .fortune-wallet,
    .fortune-rules-card {
        display: none;
    }

    .fortune-grid {
        width: calc(100% + 6px);
        height: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 32vw);
        gap: 8px;
    }

    .fortune-wheel-card {
        min-height: 0;
        padding: 6px;
        margin: 0;
        background: transparent;
        border: 0;
        border-radius: 14px;
        box-shadow: none;
    }

    @supports (width: 1cqh) {
        .fortune-panel .wheel-wrapper {
            width: min(91cqw, 91cqh);
        }
    }

    .fortune-panel .wheel-center {
        width: clamp(58px, 16cqh, 74px);
        height: clamp(58px, 16cqh, 74px);
    }

    .fortune-side {
        min-height: 0;
        margin: 0 6px;
        display: flex;
        align-items: stretch;
        justify-content: center;
    }

    .fortune-status {
        width: 100%;
        padding: 11px;
        transform: translateX(-8px);
    }
}

/* ========================================================================== 
   Fortune — immersive stage
========================================================================== */

.fortune-page {
    --fortune-gold: #f8c75c;
    --fortune-ink: #07171d;
    width: 100%;
    height: 100%;
    padding: clamp(10px, 2vw, 24px);
    overflow: hidden;
    background: transparent;
}

.fortune-page .fortune-panel {
    width: 100%;
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    display: block;
    overflow: hidden;
}

.fortune-stage {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100%;
    min-height: 470px;
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(430px, 1.22fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 3vw, 52px);
    padding: clamp(24px, 4vw, 58px);
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.fortune-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    display: none;
}

.fortune-stage::after {
    content: "";
    position: absolute;
    z-index: -1;
    display: none;
    width: 44%;
    aspect-ratio: 1;
    right: -12%;
    bottom: -55%;
    border: 1px solid rgba(248, 199, 92, 0.11);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(248, 199, 92, 0.018), 0 0 0 110px rgba(248, 199, 92, 0.014);
}

.fortune-glow {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(8px);
}

.fortune-glow-one {
    width: 48%;
    aspect-ratio: 1;
    top: -38%;
    left: -18%;
    background: radial-gradient(circle, rgba(46, 173, 206, 0.15), transparent 67%);
}

.fortune-glow-two {
    width: 54%;
    aspect-ratio: 1;
    right: -6%;
    top: 12%;
    background: radial-gradient(circle, rgba(248, 199, 92, 0.11), transparent 68%);
}

.fortune-content {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.fortune-page .fortune-hero {
    display: block;
    margin: 0 !important;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.fortune-page .fortune-hero-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    color: var(--fortune-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.fortune-kicker-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: var(--fortune-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(248, 199, 92, 0.1), 0 0 18px rgba(248, 199, 92, 0.5);
}

@media (min-width: 901px) {
    .fortune-page .fortune-hero-kicker {
        width: fit-content;
        min-height: 0;
        margin-bottom: 14px;
        padding: 0;
        color: var(--fortune-gold);
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.fortune-page .fortune-hero h1 {
    max-width: 520px;
    margin: 0;
    color: #f7fbfc;
    font-size: clamp(36px, 4.3vw, 66px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 0.94;
    text-wrap: balance;
}

.fortune-page .fortune-hero p {
    max-width: 470px;
    margin: 20px 0 0;
    color: rgba(222, 239, 244, 0.61);
    font-size: clamp(14px, 1.25vw, 17px);
    font-weight: 580;
    line-height: 1.55;
}

.fortune-page .fortune-status {
    position: relative;
    margin-top: clamp(24px, 4vh, 38px);
    padding: 16px 17px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.fortune-page .fortune-status::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    background: var(--fortune-gold);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 14px rgba(248, 199, 92, 0.45);
}

.fortune-page .fortune-status-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #17292d;
    background: linear-gradient(145deg, #ffe89b, #eeb84c);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(217, 154, 38, 0.17);
}

.fortune-page .fortune-status-copy {
    min-width: 0;
}

.fortune-page .fortune-status span {
    display: block;
    color: rgba(220, 237, 242, 0.48);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fortune-page .fortune-status strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: #f4f9fa;
    font-size: 14px;
    font-weight: 800;
	line-height: 1.25;
}

.fortune-page .fortune-status strong .fortune-reward-value {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffd36a;
	font-size: clamp(23px, 2.4vw, 34px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.035em;
	text-transform: none;
}

.fortune-page .fortune-status strong .fortune-reward-value i {
	font-size: 0.68em;
}

.fortune-page .fortune-rules-card {
    margin-top: 19px;
    padding: 0;
    display: block;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.fortune-page .fortune-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: rgba(236, 247, 249, 0.72);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.03em;
}

.fortune-page .fortune-section-title i {
    color: var(--fortune-gold);
}

.fortune-page .fortune-rules {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 7px;
}

.fortune-page .fortune-rules > div {
    min-width: 0;
    min-height: 76px;
    padding: 11px 9px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 9px;
    color: rgba(222, 238, 242, 0.65);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.25;
}

.fortune-page .fortune-rules i {
    color: var(--fortune-gold);
    font-size: 14px;
}

.fortune-page .fortune-wheel-card {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    box-sizing: border-box;
    padding: clamp(16px, 2vw, 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    container-type: size;
}

.fortune-wheel-aura {
    position: absolute;
    z-index: -1;
    width: min(92%, 600px);
    aspect-ratio: 1;
    border: 1px solid rgba(248, 199, 92, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 25px rgba(248, 199, 92, 0.012), 0 0 80px rgba(248, 199, 92, 0.08);
}

.fortune-page .fortune-wheel-card .wheel-wrapper {
    width: min(88cqw, 86cqh, 520px);
    max-width: 100%;
    margin: 0;
}

.fortune-panel .wheel-center.fortune-spin-disabled,
.fortune-panel .wheel-center:disabled {
    cursor: not-allowed;
    color: rgba(218, 229, 231, 0.56);
    background: linear-gradient(145deg, #53646a, #34474e);
    border-color: rgba(222, 236, 239, 0.28);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    filter: saturate(0.25);
    opacity: 0.82;
    transform: translate(-50%, -50%);
}

.fortune-panel .wheel-center.fortune-spin-disabled:hover,
.fortune-panel .wheel-center:disabled:hover {
    transform: translate(-50%, -50%);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .fortune-page {
        padding: 10px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .fortune-page .fortune-panel {
        height: auto;
        min-height: 100%;
        overflow: visible;
    }

    .fortune-stage {
        height: auto;
        min-height: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 4px;
        padding: 30px clamp(18px, 5vw, 38px);
        overflow: hidden;
    }

    .fortune-content {
        display: contents;
    }

    .fortune-page .fortune-hero {
        grid-row: 1;
        text-align: center;
    }

    .fortune-page .fortune-hero-kicker {
        justify-content: center;
        margin-bottom: 10px;
    }

    .fortune-page .fortune-hero h1,
    .fortune-page .fortune-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .fortune-page .fortune-hero p {
        margin-top: 12px;
    }

    .fortune-page .fortune-wheel-card {
        grid-row: 2;
        height: min(58vh, 590px);
        min-height: 350px;
        padding: 15px 0;
    }

    .fortune-page .fortune-wheel-card .wheel-wrapper {
        width: min(88cqw, 88cqh, 500px);
    }

    .fortune-page .fortune-status {
        grid-row: 3;
        margin-top: 8px;
    }

    .fortune-page .fortune-rules-card {
        grid-row: 4;
        margin-top: 12px;
    }
}

@media (max-width: 576px) {
    .fortune-page {
        height: 100%;
        padding: 6px;
    }

    .fortune-stage {
        min-height: 100%;
        padding: 20px 12px 16px;
        border-radius: 22px;
    }

    .fortune-page .fortune-hero h1 {
        font-size: clamp(31px, 10vw, 42px);
    }

    .fortune-page .fortune-hero p {
        display: none;
    }

    .fortune-page .fortune-wheel-card {
        height: min(48vh, 430px);
        min-height: 278px;
        padding: 8px 0 4px;
    }

    .fortune-page .fortune-wheel-card .wheel-wrapper {
        width: min(94cqw, 94cqh);
    }

    .fortune-page .fortune-status {
        margin-top: 5px;
        padding: 12px 13px;
    }

    .fortune-page .fortune-status-icon {
        width: 39px;
        height: 39px;
    }

    .fortune-page .fortune-rules-card {
        margin-top: 11px;
    }

    .fortune-page .fortune-rules {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fortune-page .fortune-rules > div {
        min-height: 0;
        padding: 9px 11px;
        flex-direction: row;
        align-items: center;
        gap: 11px;
        font-size: 11px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .fortune-page {
        padding: 5px;
        overflow: hidden;
    }

    .fortune-stage {
        height: 100%;
        min-height: 0;
        grid-template-columns: minmax(230px, 0.7fr) minmax(340px, 1.3fr);
        grid-template-rows: 1fr;
        gap: 8px;
        padding: 14px 22px;
        border-radius: 19px;
    }

    .fortune-content {
        display: flex;
    }

    .fortune-page .fortune-hero {
        grid-row: auto;
        text-align: left;
    }

    .fortune-page .fortune-hero-kicker {
        justify-content: flex-start;
        margin-bottom: 7px;
    }

    .fortune-page .fortune-hero h1 {
        margin: 0;
        font-size: clamp(28px, 6.7vh, 42px);
    }

    .fortune-page .fortune-hero p {
        display: none;
    }

    .fortune-page .fortune-rules-card {
        display: block;
        margin-top: 10px;
    }

    .fortune-page .fortune-rules-card .fortune-section-title {
        margin-bottom: 6px;
        font-size: 9px;
    }

    .fortune-page .fortune-rules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .fortune-page .fortune-rules > div {
        min-height: 52px;
        padding: 7px;
        gap: 5px;
        font-size: 9px;
    }

    .fortune-page .fortune-rules i {
        font-size: 12px;
    }

    .fortune-page .fortune-status {
        margin-top: 10px;
        padding: 11px 12px;
        transform: none;
    }

    .fortune-page .fortune-wheel-card {
        grid-row: auto;
        height: 100%;
        min-height: 0;
        padding: 6px;
    }

    .fortune-page .fortune-wheel-card .wheel-wrapper {
        width: min(94cqw, 94cqh);
    }

    .fortune-page .fortune-wheel-aura {
        width: min(102cqw, 102cqh);
    }
}

.footer-page-shell {
    min-height: 100%;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
}

.footer-page-main {
    min-width: 0;
}

.footer-pages-nav {
    position: relative;
    z-index: 2;
    padding: 22px 12px;
    background:
        linear-gradient(180deg, rgba(13, 35, 43, 0.96), rgba(7, 20, 26, 0.98)),
        url("/images/moroccan-flower-soft-white.png?v=20260710.2");
    background-repeat: no-repeat, repeat;
    background-size: auto, 140px 140px;
    border-right: 1px solid rgba(123, 202, 226, 0.14);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.16);
}

.footer-pages-nav-list {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 7px;
}

.footer-pages-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    color: rgba(228, 241, 247, 0.7);
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer-pages-nav-link i {
    width: 22px;
    flex: 0 0 22px;
    color: rgba(108, 210, 240, 0.72);
    text-align: center;
    font-size: 14px;
}

.footer-pages-nav-link:hover,
.footer-pages-nav-link.active {
    color: #fff;
    background: rgba(74, 184, 218, 0.12);
    border-color: rgba(109, 210, 239, 0.22);
    transform: translateX(2px);
}

.footer-pages-nav-link.active {
    box-shadow: inset 3px 0 0 #55d2ff;
}

@media (max-width: 767px) {
    .footer-page-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-pages-nav {
        padding: 8px;
        border-right: 0;
        border-bottom: 1px solid rgba(123, 202, 226, 0.14);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    }

    .footer-pages-nav-list {
        position: static;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .footer-pages-nav-list::-webkit-scrollbar {
        display: none;
    }

    .footer-pages-nav-link {
        min-height: 38px;
        flex: 0 0 auto;
        padding: 7px 10px;
        white-space: nowrap;
    }

    .footer-pages-nav-link:hover,
    .footer-pages-nav-link.active {
        transform: none;
    }
}

.lobby .game-mode {
    --mode-color: #55d2ff;
    --mode-rgb: 85, 210, 255;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 21px 22px 19px;
    color: #eefaff;
    background:
        linear-gradient(135deg, rgba(var(--mode-rgb), 0.17), transparent 64%),
        radial-gradient(circle at 100% 0, rgba(var(--mode-rgb), 0.24) 0 20%, transparent 20.5%),
        linear-gradient(145deg, rgba(25, 49, 60, 0.98), rgba(11, 26, 33, 0.99));
    border: 1px solid rgba(var(--mode-rgb), 0.38);
    border-top: 4px solid var(--mode-color);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lobby-dashboard {
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(250px, 0.9fr) minmax(300px, 1.12fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 9px;
    margin: 0 8px 13px;
    padding: 0;
    color: #eefaff;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.lobby-dashboard-head,
.lobby-tournament-strip {
    display: flex;
    align-items: center;
}

.lobby-dashboard-head {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
}

.lobby-dashboard-head {
    grid-column: 1;
    grid-row: 1;
    min-height: 44px;
    padding: 5px 9px;
    overflow: hidden;
    background: linear-gradient(100deg, rgba(85, 210, 255, 0.12), rgba(13, 31, 39, 0.72));
    border: 1px solid rgba(85, 210, 255, 0.16);
    border-left: 3px solid #55d2ff;
    border-radius: 11px;
}

.lobby-dashboard-kicker {
    display: none;
    color: #65d8ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.lobby-dashboard h2 {
    margin: 0;
    color: #fff;
    max-width: none;
    overflow: hidden;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lobby-profile-btn,
.lobby-tournament-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 10px;
    color: #eaf8fd;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
}

.lobby-profile-btn:hover,
.lobby-tournament-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.lobby-dashboard-grid {
    display: contents;
}

.lobby-stat-wins {
    grid-column: 1;
    grid-row: 1;
}

.lobby-stat-reward {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: stretch;
}

.lobby-stat-recent {
    grid-column: 1;
    grid-row: 2;
}

.lobby-stat-card {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 5px 9px;
    background: linear-gradient(110deg, rgba(24, 48, 58, 0.76), rgba(12, 29, 36, 0.68));
    border: 1px solid rgba(180, 221, 236, 0.1);
    border-radius: 11px;
}

.lobby-stat-card > i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: #ffd76e;
    background: rgba(255, 200, 78, 0.08);
    border-radius: 8px;
    font-size: 14px;
}

.lobby-stat-card > div {
    min-width: 0;
}

.lobby-stat-reward > div,
.lobby-tournament-copy {
    display: grid;
    align-content: center;
    gap: 4px;
}

.lobby-stat-reward span,
.lobby-tournament-copy > span,
.lobby-tournament-time span {
    line-height: 1.4;
}

.lobby-stat-reward strong,
.lobby-tournament-copy strong,
.lobby-tournament-time strong {
    line-height: 1.45;
}

.lobby-stat-reward small,
.lobby-tournament-copy small {
    line-height: 1.4;
}

.lobby-stat-card > div > span,
.lobby-stat-card > div > strong,
.lobby-stat-card > div > small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lobby-stat-card span,
.lobby-tournament-copy > span,
.lobby-tournament-time span {
    display: block;
    color: rgba(225, 242, 248, 0.58);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.lobby-stat-card strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.lobby-stat-card strong .fa-coins {
    color: #ffd76e;
    font-size: 12px;
}

.lobby-stat-card small,
.lobby-tournament-copy small {
    display: block;
    color: rgba(225, 242, 248, 0.62);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

.lobby-recent-results {
    display: flex;
    gap: 5px;
    margin-top: 2px;
}

.lobby-recent-results b {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #fff;
    background: rgba(255, 105, 105, 0.22);
    border: 1px solid rgba(255, 105, 105, 0.3);
    border-radius: 7px;
    font-size: 10px;
}

.lobby-recent-results b.is-win {
    background: rgba(83, 223, 182, 0.2);
    border-color: rgba(83, 223, 182, 0.32);
}

.lobby-tournament-strip {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: stretch;
    gap: 9px;
    margin-top: 0;
    min-height: 44px;
    padding: 5px 9px;
    background: linear-gradient(100deg, rgba(157, 139, 255, 0.12), rgba(18, 35, 43, 0.72));
    border: 1px solid rgba(157, 139, 255, 0.15);
    border-left: 3px solid #9d8bff;
    border-radius: 11px;
}

.lobby-tournament-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: #ffd76e;
    background: rgba(255, 200, 78, 0.1);
    border-radius: 9px;
}

.lobby-tournament-copy {
    min-width: 0;
    flex: 1;
}

.lobby-tournament-copy strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lobby-tournament-time {
    min-width: 92px;
    text-align: right;
}

.lobby-tournament-time strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.lobby-tournament-btn {
    color: #13262e;
    background: #ffd76e;
    border-color: transparent;
}

.lobby-tournament-btn:hover {
    color: #13262e;
    background: #ffe39a;
}

@media (max-width: 767.98px) {
    .lobby-dashboard {
        display: block;
        margin-bottom: 14px;
        padding: 0;
    }

    .lobby-dashboard-head {
        margin-bottom: 7px;
    }

    .lobby-dashboard h2 {
        max-width: none;
    }

    .lobby-dashboard-grid {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .lobby-dashboard-grid::-webkit-scrollbar {
        display: none;
    }

    .lobby-stat-card {
        flex: 0 0 155px;
    }

    .lobby-stat-wins {
        order: 1;
    }

    .lobby-stat-recent {
        order: 2;
    }

    .lobby-stat-reward {
        order: 3;
    }

    .lobby-tournament-strip {
        flex-wrap: wrap;
        margin-top: 7px;
    }

    .lobby-tournament-copy {
        flex-basis: calc(100% - 58px);
    }

    .lobby-tournament-time {
        flex: 1;
        text-align: left;
    }
}

@media (orientation: landscape) and (max-width: 932px) {
    .home-page .lobby {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .lobby-dashboard {
        display: grid;
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.92fr) minmax(0, 1fr) minmax(0, 1.65fr);
        grid-template-rows: 44px;
        gap: 5px;
        padding: 0;
        flex: 0 0 44px;
        margin-bottom: 4px;
    }

    .home-page .lobby > .row {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
    }

    .lobby-dashboard-head {
        display: flex;
    }

    .lobby-dashboard-grid {
        display: contents;
        overflow: visible;
    }

    .lobby-stat-card {
        min-width: 0;
        min-height: 44px;
        padding: 4px 6px;
    }

    .lobby-stat-wins {
        grid-column: 1;
        grid-row: 1;
    }

    .lobby-stat-recent {
        grid-column: 2;
        grid-row: 1;
    }

    .lobby-stat-reward {
        grid-column: 3;
        grid-row: 1;
    }

    .lobby-stat-card > i {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .lobby-stat-card span,
    .lobby-tournament-copy > span,
    .lobby-tournament-time span {
        font-size: 8px;
    }

    .lobby-stat-card strong,
    .lobby-tournament-copy strong,
    .lobby-tournament-time strong {
        font-size: 12px;
    }

    .lobby-stat-card small,
    .lobby-tournament-copy small {
        font-size: 8px;
    }

    .lobby-tournament-strip {
        grid-column: 4;
        grid-row: 1;
        align-self: stretch;
        flex-wrap: nowrap;
        margin: 0;
        min-height: 44px;
        padding: 4px 6px;
    }

    .lobby-tournament-copy {
        flex-basis: auto;
        gap: 1px;
    }

    .lobby-tournament-copy small {
        display: none;
    }

    .lobby-tournament-icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .lobby-tournament-time {
        min-width: 66px;
    }

    .lobby-tournament-btn {
        min-height: 28px;
        padding: 4px 6px;
        font-size: 9px;
    }
}

@media (max-width: 420px) {
    .lobby-dashboard-head {
        align-items: flex-start;
    }

    .lobby-profile-btn span {
        display: none;
    }

    .lobby-profile-btn {
        width: 38px;
        padding: 8px;
    }

    .lobby-tournament-btn {
        flex: 1;
    }
}

@media (orientation: portrait) and (max-width: 767.98px) {
    .home-page {
        height: 100%;
        min-height: 0;
        justify-content: center !important;
        overflow-y: auto;
        padding: 8px 6px !important;
    }

    .home-page .lobby {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: auto;
        min-height: min-content;
        max-height: none;
    }

    .home-page .lobby > .row {
        flex: 0 0 auto;
        height: auto;
        align-content: initial;
        row-gap: 7px;
    }

    .lobby-dashboard {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        grid-template-rows: 52px 52px 60px;
        gap: 7px;
        flex: 0 0 auto;
        margin: 10px 6px 12px;
    }

    .lobby-dashboard-grid {
        display: contents;
        overflow: visible;
    }

    .lobby-stat-wins {
        grid-column: 1;
        grid-row: 1;
    }

    .lobby-stat-recent {
        grid-column: 1;
        grid-row: 2;
    }

    .lobby-stat-reward {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .lobby-stat-card {
        min-height: 0;
        padding: 5px 8px;
        border-radius: 9px;
    }

    .lobby-stat-card > i {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .lobby-stat-card span,
    .lobby-tournament-copy > span,
    .lobby-tournament-time span {
        font-size: 10px;
    }

    .lobby-stat-card strong,
    .lobby-tournament-copy strong,
    .lobby-tournament-time strong {
        font-size: 15px;
    }

    .lobby-stat-card small,
    .lobby-tournament-copy small {
        font-size: 10px;
    }

    .lobby-recent-results {
        gap: 3px;
        margin-top: 1px;
    }

    .lobby-recent-results b {
        width: 19px;
        height: 19px;
        border-radius: 5px;
        font-size: 10px;
    }

    .lobby-tournament-strip {
        grid-column: 1 / 3;
        grid-row: 3;
        min-height: 0;
        flex-wrap: nowrap;
        gap: 6px;
        margin: 0;
        padding: 6px 8px;
        border-radius: 9px;
    }

    .lobby-tournament-icon {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
        border-radius: 7px;
        font-size: 16px;
    }

    .lobby-tournament-copy {
        display: block;
        flex: 1;
        flex-basis: auto;
    }

    .lobby-tournament-copy small {
        display: none;
    }

    .lobby-tournament-time {
        min-width: 70px;
        flex: 0 0 auto;
        text-align: right;
    }

    .lobby-tournament-btn {
        min-height: 35px;
        flex: 0 0 auto;
        padding: 4px 7px;
        font-size: 11px;
    }

    .home-page .lobby > .row > div {
        height: clamp(118px, 19dvh, 142px);
    }
}

@media (orientation: portrait) and (max-width: 380px) and (max-height: 680px) {
    .lobby-dashboard {
        grid-template-rows: 46px 46px 52px;
        margin: 6px 6px 8px;
    }

    .home-page .lobby > .row > div {
        height: 112px;
    }

    .home-page .game-mode {
        padding: 9px 8px 8px;
    }
}

.lobby-tips {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    margin: 0 8px 18px;
    padding: 16px 20px;
    color: #eefaff;
    background: linear-gradient(135deg, rgba(255, 200, 78, 0.15), rgba(15, 35, 44, 0.97) 55%);
    border: 1px solid rgba(255, 200, 78, 0.34);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.lobby-tips-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    color: #ffd76e;
    background: rgba(255, 200, 78, 0.12);
    border-radius: 14px;
    font-size: 22px;
}

.lobby-tips-content {
    min-width: 0;
    flex: 1;
}

.lobby-tips h2 {
    margin: 0 0 5px;
    color: #ffd76e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lobby-tips-stage {
    position: relative;
    min-height: 42px;
}

.lobby-tips .rotating-tip {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    margin: 0;
    color: rgba(238, 250, 255, 0.88);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    pointer-events: none;
}

.lobby-tips .rotating-tip.is-active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .lobby-tips {
        min-height: 104px;
        margin: 0 8px 14px;
        padding: 14px;
    }

    .lobby-tips-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .lobby-tips-stage {
        min-height: 56px;
    }

    .lobby-tips .rotating-tip {
        font-size: 12px;
        line-height: 1.4;
    }
}

.lobby .game-mode.mode-1 { --mode-color: #55d2ff; --mode-rgb: 85, 210, 255; }
.lobby .game-mode.mode-2 { --mode-color: #9d8bff; --mode-rgb: 157, 139, 255; }
.lobby .game-mode.mode-3 { --mode-color: #53dfb6; --mode-rgb: 83, 223, 182; }
.lobby .game-mode.mode-4 { --mode-color: #ffc84e; --mode-rgb: 255, 200, 78; }
.lobby .game-mode.mode-5 { --mode-color: #ff9a60; --mode-rgb: 255, 154, 96; }
.lobby .game-mode.mode-6 { --mode-color: #ef7dbd; --mode-rgb: 239, 125, 189; }

.lobby .game-mode:hover:not(.game-mode-locked) {
    color: #ffffff;
    transform: translateY(-3px);
    border-color: rgba(var(--mode-rgb), 0.7);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38), 0 0 24px rgba(var(--mode-rgb), 0.13);
}

.mode-card-head,
.mode-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mode-card-head {
    align-items: flex-start;
}

.mode-card-copy {
    min-width: 0;
}

.lobby .game-mode h3 {
    margin: 0 0 7px;
    color: #f7fbfd;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.15;
    padding-bottom: 1px;
}

.lobby .mode-prizes {
    display: grid;
    gap: 2px;
    margin: 0;
}

.lobby .mode-win,
.lobby .mode-vip-win {
    display: block;
    margin: 0;
    padding: 0;
    color: rgba(231, 243, 248, 0.76);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}

.lobby .mode-vip-win {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lobby .mode-vip-win span {
    min-height: auto;
    padding: 2px 5px;
    color: #fff;
    background: #7758da;
    border-radius: 5px;
    font-size: 9px;
}

.lobby .mode-till {
    display: block;
    margin-top: 3px;
    color: rgba(219, 235, 242, 0.54);
    font-size: 11px;
    font-weight: 700;
}

.mode-card-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--mode-color);
    background: rgba(var(--mode-rgb), 0.16);
    border: 1px solid rgba(var(--mode-rgb), 0.28);
    border-radius: 13px;
}

.mode-card-icon .mode-icon {
    width: 28px;
    margin: 0;
    filter: brightness(0) saturate(100%) invert(86%) sepia(11%) saturate(741%) hue-rotate(157deg) brightness(108%) contrast(95%);
}

.mode-card-icon .mode-faicon {
    margin: 0;
    color: inherit;
    font-size: 22px;
    line-height: 1;
}

.mode-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(214, 233, 241, 0.11);
}

.mode-play-label {
    color: rgba(225, 240, 246, 0.56);
    font-size: 11px;
    font-weight: 800;
}

.lobby .mode-bet {
    display: inline-flex;
    align-items: center;
    color: #f9fcfd;
    font-size: 19px !important;
    line-height: 1;
}

.lobby .mode-bet .fa-coins {
    margin-left: 6px !important;
    color: var(--mode-color);
    font-size: 15px;
}

.mode-card-arrow {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    margin-left: 9px;
    color: #10242d;
    background: var(--mode-color);
    border-radius: 50%;
    font-size: 10px;
}

.lobby .game-mode-locked {
    filter: saturate(0.72);
}

@media (max-width: 767px) {
    .lobby .game-mode {
        min-height: 0;
        padding: 13px 12px 11px;
        gap: 9px;
        border-top-width: 3px;
        border-radius: 14px;
    }

    .lobby .game-mode h3 {
        margin-bottom: 5px;
        font-size: clamp(16px, 4.6vw, 19px);
    }

    .lobby .mode-win,
    .lobby .mode-vip-win {
        font-size: 10px;
    }

    .lobby .mode-till {
        font-size: 10px;
    }

    .mode-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .mode-card-icon .mode-icon {
        width: 23px;
    }

    .mode-card-icon .mode-faicon {
        font-size: 18px;
    }

    .mode-card-footer {
        padding-top: 7px;
    }

    .mode-play-label {
        font-size: 10px;
    }

    .lobby .mode-bet {
        font-size: 16px !important;
    }

    .lobby .mode-bet .fa-coins {
        font-size: 12px;
    }

    .mode-card-arrow {
        width: 20px;
        height: 20px;
        margin-left: 6px;
        font-size: 8px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .home-page .game-mode {
        padding: 10px 11px 9px;
        gap: 6px;
        border-radius: 12px;
    }

    .home-page .game-mode h3 {
        margin: 0 0 3px;
        font-size: clamp(19px, 3.1vw, 23px);
    }

    .home-page .mode-win,
    .home-page .mode-vip-win,
    .home-page .mode-till,
    .home-page .mode-play-label {
        font-size: 12px;
    }

    .home-page .mode-card-icon {
        width: 31px;
        height: 31px;
        border-radius: 9px;
    }

    .home-page .mode-card-icon .mode-icon {
        width: 20px;
    }

    .home-page .mode-card-icon .mode-faicon {
        font-size: 16px;
    }

    .home-page .mode-card-footer {
        padding-top: 5px;
    }

    .home-page .mode-bet {
        font-size: 21px !important;
    }

    .home-page .mode-bet .fa-coins {
        font-size: 15px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .home-page .lobby {
        overflow: hidden;
    }

    .home-page .lobby > .row {
        --lobby-carousel-card-width: calc((100% - 16px) / 3);
        flex-wrap: nowrap;
        width: 100%;
        align-items: center;
        align-content: normal;
        gap: 8px;
        padding: 24px;
        overflow: auto hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc((100% - var(--lobby-carousel-card-width)) / 2 + 24px);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
    }

    .home-page .lobby > .row.lobby-carousel-ready {
        visibility: visible;
    }

    .home-page .lobby > .row::-webkit-scrollbar {
        display: none;
    }

    .home-page .lobby > .row::before,
    .home-page .lobby > .row::after {
        content: "";
        flex: 0 0 calc((100% - var(--lobby-carousel-card-width)) / 2);
        height: 1px;
    }

    .home-page .lobby > .row > div {
        width: auto;
        height: calc(100% - 2px);
        flex: 0 0 var(--lobby-carousel-card-width);
        padding: 0 !important;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        opacity: 0.58;
        transform: scale(0.9);
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .home-page .game-mode {
        height: 100%;
    }

    .home-page .lobby > .row > div.lobby-carousel-active {
        position: relative;
        z-index: 2;
        opacity: 1;
        transform: scale(1.13);
    }

    .home-page .lobby > .row > div.lobby-carousel-active .game-mode {
        border-color: rgba(var(--mode-rgb), 0.86);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(var(--mode-rgb), 0.26);
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .lobby-dashboard {
        margin-top: 18px;
        margin-bottom: 5px;
    }

    .home-page .lobby > .row {
        padding-top: 0;
        padding-bottom: 0;
        align-items: center;
        transform: translateY(-10px);
    }

    .home-page .lobby > .row > div {
        height: clamp(112px, calc(100% - 16px), 158px);
    }

    .home-page .lobby > .row > div.lobby-carousel-active {
        transform: scale(1.06);
    }
}

/* Final quick-action dashboard layout overrides */
.home-page .lobby {
    display: flex;
    flex-direction: column;
}

.home-page .lobby > .row {
    order: 1;
}

.lobby-dashboard {
    order: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 76px;
    gap: 10px;
    margin: 22px 16px 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (orientation: portrait) and (max-width: 767.98px) {
    .lobby-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, 82px);
        gap: 7px;
        margin: 18px 6px 2px;
    }

    .home-page .lobby > .row > div {
        height: clamp(128px, 21dvh, 156px);
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .lobby-dashboard {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: 62px;
        gap: 6px;
        flex: 0 0 62px;
        margin: 4px 6px 7px;
    }

    .home-page .lobby > .row {
        min-height: 0;
        padding-top: clamp(10px, 2.5dvh, 14px);
        padding-bottom: clamp(8px, 2.5dvh, 14px);
        transform: translateY(-20px);
    }

    .home-page .lobby > .row > div {
        height: min(158px, calc(100% - 2px));
        min-height: 0;
    }

    .home-page .lobby > .row > div.lobby-carousel-active {
        transform: scale(1.04);
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 400px) {
    .lobby-dashboard {
        grid-template-rows: 52px;
        flex-basis: 52px;
        margin-top: 3px;
        margin-bottom: 4px;
    }

    .home-page .lobby > .row {
        padding-top: 7px;
        padding-bottom: 7px;
        transform: translateY(-16px);
    }

    .home-page .game-mode {
        gap: 4px;
        padding: 7px 9px 6px;
        border-radius: 11px;
    }

    .home-page .lobby > .row > div.lobby-carousel-active {
        transform: scale(1.02);
    }

    .home-page .game-mode h3 {
        margin-bottom: 2px;
        font-size: clamp(13px, 2.6vw, 17px);
    }

    .home-page .mode-win,
    .home-page .mode-vip-win,
    .home-page .mode-till,
    .home-page .mode-play-label {
        font-size: 9px;
        line-height: 1.1;
    }

    .home-page .mode-card-icon {
        width: 27px;
        height: 27px;
    }

    .home-page .mode-card-icon .mode-icon {
        width: 18px;
    }

    .home-page .mode-card-footer {
        padding-top: 4px;
    }
}

/* Compact store heading on mobile in both orientations. */
@media (max-width: 932px) {
    .buychips-page .chips-shop-head {
        min-height: 0;
        padding-top: 3px;
        padding-bottom: 5px;
    }

    .buychips-page .chips-shop-mark,
    .buychips-page .chips-shop-heading p,
    .buychips-page .chips-shop-hint {
        display: none;
    }

    .buychips-page .chips-shop-heading h2 {
        margin: 0;
        font-size: 15px;
        line-height: 1;
    }
}

@media (min-width: 933px) {
    .tournament-page {
        padding-top: 2px;
        padding-bottom: 2px;
    }
}

.trnsingle-page {
    background: none !important;
    border: 0 !important;
}

.trnsingle-page {
    padding: 4px 8px;
}

.trnsingle-page .trnsingle-card {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.trnsingle-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.trnsingle-title-row .trnsingle-title {
    min-width: 0;
}

.trnsingle-title-row .trnsingle-status {
    flex: 0 0 auto;
    margin: 0;
}

.trnsingle-page .trnsingle-info-box {
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trnsingle-page .trnsingle-description {
    min-height: 88px;
    display: flex;
    align-items: center;
}

@media (max-width: 576px) and (orientation: portrait) {
    .trnsingle-page .trnsingle-info-box {
        min-height: 64px;
    }

    .trnsingle-page .trnsingle-description {
        min-height: 72px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .trnsingle-page .trnsingle-info-box {
        min-height: 58px;
    }

    .trnsingle-page .trnsingle-description {
        min-height: 62px;
    }
}

.trnsingle-page .trnsingle-content {
    gap: 18px;
}

.trnsingle-page .trnsingle-info-grid {
    gap: 14px;
}

.trnsingle-page .trnsingle-main-layout {
    gap: 18px;
}

.trnsingle-page .trnsingle-description {
    margin-bottom: 16px;
}

.trnsingle-page .trnsingle-games-grid {
    gap: 16px;
}

.trnsingle-games-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
}

.trnsingle-games-stage .trnsingle-games-grid {
    width: 100%;
}

.trnsingle-participate-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(6, 17, 22, 0.58);
    border-radius: 14px;
    backdrop-filter: blur(1px);
}

.trnsingle-participate-overlay-btn {
    min-width: min(320px, 82%);
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 26px;
    color: #10242d;
    background: linear-gradient(135deg, #ffd76e, #f0bd3d);
    border: 1px solid rgba(255, 233, 161, 0.9);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 0 28px rgba(255, 200, 78, 0.2);
    font-size: 18px;
    font-weight: 950;
}

.trnsingle-participate-overlay-btn:hover,
.trnsingle-participate-overlay-btn:focus {
    color: #10242d;
    background: linear-gradient(135deg, #ffe69b, #ffc84e);
}

@media (max-width: 576px), (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .trnsingle-participate-overlay {
        padding: 8px;
        border-radius: 11px;
    }

    .trnsingle-participate-overlay-btn {
        min-width: min(280px, 88%);
        min-height: 50px;
        padding: 10px 18px;
        border-radius: 13px;
        font-size: 15px;
    }
}

@media (max-width: 576px) and (orientation: portrait) {
    .trnsingle-page .trnsingle-content,
    .trnsingle-page .trnsingle-main-layout {
        gap: 10px;
    }

    .trnsingle-page .trnsingle-info-grid,
    .trnsingle-page .trnsingle-games-grid {
        gap: 9px;
    }

    .trnsingle-page .trnsingle-description {
        margin-bottom: 10px;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .trnsingle-page .trnsingle-content,
    .trnsingle-page .trnsingle-main-layout {
        gap: 10px;
    }

    .trnsingle-page .trnsingle-main-layout {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .trnsingle-page .trnsingle-info-grid {
        gap: 8px;
    }

    .trnsingle-page .trnsingle-games-grid {
        gap: 11px;
    }

    .trnsingle-page .trnsingle-description {
        margin-bottom: 9px;
    }
}

/* Golden tournament theme */
@media (max-width: 0px) {
.tournament-card,
.tournament-card-live,
.tournament-card:has(.tournament-status.upcoming),
.tournament-card:has(.tournament-status.finished) {
    --tournament-accent: #ffc84e;
    --tournament-rgb: 255, 200, 78;
}

.tournament-card {
    background:
        radial-gradient(circle at 92% 5%, rgba(255, 220, 118, 0.25), transparent 31%),
        radial-gradient(circle at 8% 100%, rgba(180, 112, 20, 0.14), transparent 42%),
        linear-gradient(145deg, rgba(68, 50, 25, 0.32), transparent 48%),
        linear-gradient(155deg, rgba(27, 45, 51, 0.99), rgba(10, 22, 28, 0.99));
    border-color: rgba(255, 200, 78, 0.34);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 184, 52, 0.06), inset 0 1px 0 rgba(255, 239, 188, 0.1);
}

.tournament-card::after {
    content: "";
    position: absolute;
    top: -55px;
    right: -42px;
    width: 130px;
    height: 130px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 218, 112, 0.14), transparent 68%);
    border: 1px solid rgba(255, 214, 94, 0.08);
    border-radius: 50%;
}

.tournament-card:hover {
    border-color: rgba(255, 211, 106, 0.68);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34), 0 0 30px rgba(255, 190, 56, 0.14);
}

.tournament-name,
.trnsingle-title {
    color: #fff8df;
    text-shadow: 0 2px 14px rgba(255, 190, 56, 0.12);
}

.tournament-time-box,
.tournament-info-box {
    background: linear-gradient(135deg, rgba(255, 200, 78, 0.11), rgba(255, 200, 78, 0.035));
    border-color: rgba(255, 211, 106, 0.2);
}

.tournament-join-btn:not(:disabled):not(.tournament-join-btn-disabled) {
    background: linear-gradient(135deg, #ffd76e, #eeb538);
    border: 1px solid rgba(255, 235, 164, 0.72);
    box-shadow: 0 10px 24px rgba(220, 151, 35, 0.2);
}

.trnsingle-page,
.trnsingle-page:has(.trnsingle-status-live),
.trnsingle-page:has(.trnsingle-status-upcoming),
.trnsingle-page:has(.trnsingle-status-finished) {
    --trn-accent: #ffc84e;
    --trn-rgb: 255, 200, 78;
}

.trnsingle-header {
    background: linear-gradient(90deg, rgba(255, 200, 78, 0.1), transparent 66%);
    border-bottom-color: rgba(255, 211, 106, 0.16);
}

.trnsingle-status {
    color: #ffd76e;
    background: linear-gradient(135deg, rgba(255, 200, 78, 0.16), rgba(255, 200, 78, 0.06));
    border-color: rgba(255, 211, 106, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 244, 203, 0.08);
}

.trnsingle-page .trnsingle-info-box,
.trnsingle-page .trnsingle-description,
.trnsingle-page .trnsingle-sidebar-box {
    background:
        radial-gradient(circle at 100% 0, rgba(255, 211, 106, 0.1), transparent 42%),
        linear-gradient(145deg, rgba(255, 200, 78, 0.07), rgba(255, 255, 255, 0.025));
    border-color: rgba(255, 211, 106, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 244, 203, 0.04);
}

.trnsingle-info-value,
.trnsingle-sidebar-meta strong {
    color: #fff3c9;
}

.trnsingle-game-card {
    background:
        radial-gradient(circle at 92% 7%, rgba(255, 211, 106, 0.13), transparent 35%),
        linear-gradient(150deg, rgba(255, 200, 78, 0.08), rgba(255, 255, 255, 0.025));
    border-color: rgba(255, 211, 106, 0.2);
}

.trnsingle-game-card.active,
.trnsingle-game-card.played {
    background:
        radial-gradient(circle at 90% 5%, rgba(255, 220, 118, 0.2), transparent 38%),
        linear-gradient(145deg, rgba(255, 200, 78, 0.14), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 211, 106, 0.42);
}

.trnsingle-game-badge {
    color: #2b210d;
    background: linear-gradient(145deg, #ffe69a, #eeb538);
    border-color: rgba(255, 239, 181, 0.8);
    box-shadow: 0 7px 18px rgba(216, 146, 29, 0.16);
}

.trnsingle-game-btn,
.trnsingle-btn-primary {
    color: #231b0c;
    background: linear-gradient(135deg, #ffd76e, #eeb538);
    border-color: rgba(255, 235, 164, 0.68);
}
}

/* Focused gold accents without recoloring the whole tournament UI. */
.tournament-join-btn:not(:disabled):not(.tournament-join-btn-disabled),
.trnsingle-game-btn,
.trnsingle-btn-primary {
    color: #231b0c;
    background: linear-gradient(135deg, #ffd76e, #eeb538);
    border-color: rgba(255, 235, 164, 0.68);
    box-shadow: 0 9px 20px rgba(220, 151, 35, 0.16);
}

.trnsingle-game-card.active {
    border-color: rgba(255, 200, 78, 0.4);
}

.trnsingle-game-card.active .trnsingle-game-badge {
    color: #2b210d;
    background: linear-gradient(145deg, #ffe69a, #eeb538);
    border-color: rgba(255, 239, 181, 0.8);
}

/* Readable tournament detail typography on every screen size. */
.trnsingle-page .trnsingle-info-label {
    font-size: clamp(10px, 0.9vw, 12px);
    line-height: 1.2;
}

.trnsingle-page .trnsingle-info-value {
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.2;
}

.trnsingle-page .trnsingle-description {
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.45;
}

.trnsingle-page .trnsingle-game-state {
    font-size: clamp(10px, 0.85vw, 12px);
}

.trnsingle-page .trnsingle-game-title {
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.2;
}

.trnsingle-page .trnsingle-game-score {
    font-size: clamp(10px, 0.85vw, 12px);
}

.trnsingle-page .trnsingle-sidebar-title {
    font-size: clamp(14px, 1.15vw, 17px);
}

.trnsingle-page .trnsingle-player,
.trnsingle-page .trnsingle-sidebar-meta span {
    font-size: clamp(11px, 0.9vw, 13px);
}

.trnsingle-page .trnsingle-sidebar-meta strong {
    font-size: 10px;
    line-height: 1.15;
}

.trnsingle-sidebar-box .trnsingle-btn:first-of-type {
    margin-top: 10px !important;
}

.trnsingle-sidebar-top {
    min-height: 0;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.trnsingle-sidebar-top .trnsingle-sidebar-list {
    min-height: 0;
    flex: 1 1 auto;
}

.trnsingle-sidebar-bottom {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

@media (orientation: portrait) and (max-width: 576px) {
    .trnsingle-page .trnsingle-main-layout {
        min-height: 500px;
        grid-template-rows: 220px minmax(260px, auto);
    }

    .trnsingle-page .trnsingle-games-stage,
    .trnsingle-page .trnsingle-games-grid {
        height: 220px;
    }

    .trnsingle-page .trnsingle-game-card {
        padding: 6px 8px;
    }

    .trnsingle-page .trnsingle-game-center {
        margin: 3px 0;
    }

    .trnsingle-page .trnsingle-sidebar-box {
        min-height: 260px;
    }

    .trnsingle-page .trnsingle-sidebar-meta > div:nth-child(2) {
        display: block;
    }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .trnsingle-page .trnsingle-sidebar-title {
        margin-bottom: 5px !important;
        font-size: 11px;
    }

    .trnsingle-page .trnsingle-player {
        min-height: 25px;
        padding: 3px 1px;
        font-size: 10px;
    }
}

.trnsingle-page .trnsingle-game-btn,
.trnsingle-page .trnsingle-btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.15;
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .trnsingle-page .trnsingle-game-btn,
    .trnsingle-page .trnsingle-btn {
        min-height: 38px;
        padding: 7px 9px;
    }
}

@media (max-width: 576px) and (orientation: portrait) {
    .trnsingle-page {
        padding: 4px 6px;
    }
}

/* Restore the original tournament-detail layout on mobile portrait. */
@media (orientation: portrait) and (max-width: 767.98px) {
    .trnsingle-page .trnsingle-content {
        height: auto;
        min-height: 0;
        padding: 9px;
        gap: 8px;
        overflow-y: auto;
    }

    .trnsingle-page .trnsingle-main-layout {
        min-height: 430px;
        height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(280px, 1fr) auto;
        gap: 8px;
    }

    .trnsingle-page .trnsingle-main-layout > div:first-child {
        min-height: 0;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .trnsingle-page .trnsingle-games-stage {
        min-height: 0;
        height: 100%;
        flex: 1 1 auto;
    }

    .trnsingle-page .trnsingle-games-grid {
        min-height: 0;
        height: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .trnsingle-page .trnsingle-sidebar-box {
        width: 100%;
        height: auto;
        min-height: 112px;
        max-height: none;
        padding: 9px;
        display: flex;
        align-self: stretch;
        overflow: visible;
    }

    .trnsingle-page .trnsingle-sidebar-top {
        display: none;
    }

    .trnsingle-page .trnsingle-sidebar-bottom {
        width: 100%;
        margin-top: 0;
    }

    .trnsingle-page .trnsingle-sidebar-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 0;
    }

    .trnsingle-page .trnsingle-sidebar-meta > div {
        min-height: 36px;
        padding: 7px 9px;
    }

    .trnsingle-page .trnsingle-sidebar-box .trnsingle-btn {
        min-height: 34px;
        margin-top: 7px !important;
        padding: 7px;
        font-size: 10px;
    }

    .trnsingle-page .trnsingle-sidebar-box .trnsingle-btn:first-of-type {
        margin-top: 10px !important;
    }
}
