/* Shared visual polish for the public home and player dashboard. */
:root {
    --bg-deep: #170608;
    --bg-main: #320b10;
    --bg-card: #4a1218;
    --bg-card2: #3f151a;
    --teal: #c51f35;
    --teal-light: #ff4058;
    --gold: #ffb347;
    --gold-dark: #9a4b08;
    --gold-text: #ffd68a;
    --text-main: #fff5f5;
    --text-muted: #e3a0a8;
    --border: rgba(255,255,255,0.12);
    --glass: rgba(8, 30, 24, 0.72);
    --cyan: #ff7a59;
    --rose: #ff4058;
}

html { background: #170608; }

body {
    background-color: #170608;
    background-image:
        linear-gradient(120deg, rgba(255,64,88,0.14) 0%, transparent 28%),
        linear-gradient(235deg, rgba(255,179,71,0.12) 0%, transparent 32%),
        linear-gradient(180deg, #170608 0%, #2a090e 38%, #140508 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 64px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25));
}

.app-banner-top {
    background: linear-gradient(100deg, rgba(44,9,13,0.96), rgba(108,20,31,0.92), rgba(76,24,8,0.88));
    border-bottom: 1px solid rgba(255,224,131,0.28);
    box-shadow: 0 12px 34px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.app-banner-top-logo,
.hamburger-btn,
.balance-chip {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 18px rgba(0,0,0,0.18);
}

.app-banner-top-install,
.btn-register,
.guest-signup-btn {
    background: linear-gradient(180deg, #fff0a3 0%, #f4c84b 55%, #b78310 100%);
    box-shadow: 0 4px 0 #775204, 0 10px 22px rgba(244,200,75,0.25);
}

.site-header {
    height: 62px;
    background: rgba(5,20,16,0.82);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 32px rgba(0,0,0,0.24);
}

.site-header-logo-img {
    height: 42px;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

.btn-login,
.qa-btn.deposit,
.guest-login-btn {
    background: linear-gradient(180deg, #ff5268 0%, #c51f35 58%, #7a0b19 100%);
    box-shadow: 0 4px 0 #4d0610, 0 10px 22px rgba(255,64,88,0.24);
}

.btn-login,
.btn-register {
    border-radius: 10px;
    min-height: 34px;
}

.announce-bar {
    margin: 10px 10px 0;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,214,138,0.10), rgba(255,64,88,0.10), rgba(255,122,89,0.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.announce-bar .ann-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,224,131,0.12);
}

.slider-wrap { padding: 12px 10px 6px; }

.swiper.mainSlider {
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: 0 18px 42px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.08);
}

.mainSlider img {
    height: 188px;
    border-radius: 18px;
}

.quick-actions {
    padding: 12px 10px 6px;
    gap: 12px;
}

.qa-btn {
    min-height: 52px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.qa-btn::after,
.game-card::after,
.partner-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 36%);
    opacity: 0.65;
}

.qa-btn.withdraw {
    background: linear-gradient(180deg, #fff0a3 0%, #f4c84b 55%, #b78310 100%);
    box-shadow: 0 4px 0 #775204, 0 10px 22px rgba(255,179,71,0.25);
}

.sec-header { padding: 18px 12px 10px; }

.sec-title {
    font-size: 15px;
    color: #fff3bd;
}

.sec-title i {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1b1400;
    background: linear-gradient(180deg, #ffb0ba, #d71932);
    box-shadow: 0 8px 18px rgba(255,64,88,0.25);
}

.btn-see-all,
.btn-nav-arrow {
    border-radius: 11px;
    background: rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 8px 18px rgba(0,0,0,0.18);
}

.games-section { padding: 0 10px; }
.game-grid { gap: 10px; }

.game-card {
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(74,18,24,0.95), rgba(34,8,12,0.95));
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: 0 12px 26px rgba(0,0,0,0.28);
    transform: translateZ(0);
}

.game-card-img {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.game-card-name {
    font-size: 11px;
    padding: 7px 7px 2px;
}

.game-card-provider {
    color: #ff9aa7;
    padding-bottom: 7px;
}

.game-card-fav {
    top: 7px;
    right: 7px;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(255,255,255,0.18);
}

.cat-nav-wrap {
    padding-top: 14px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
}

.cat-pill {
    border-radius: 999px;
    padding: 9px 15px;
    background: rgba(255,255,255,0.075);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.cat-pill.active,
.cat-pill:active {
    color: #fff5f5;
    background: linear-gradient(180deg, #ff5268, #c51f35);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 10px 20px rgba(255,64,88,0.24);
}

.cat-section {
    margin: 8px 10px 10px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    background: rgba(42,9,14,0.42);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.jackpot-section {
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255,179,71,0.12), transparent 38%),
        linear-gradient(180deg, #4a1218 0%, #140508 100%);
    box-shadow: 0 18px 42px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
}

.jp-digit {
    border-radius: 10px;
    background: linear-gradient(180deg, #2a2110 0%, #080704 100%);
}

.partner-section,
.game-center,
.providers-section {
    margin-inline: 10px;
    border-radius: 18px;
    background: rgba(42,9,14,0.35);
    border: 1px solid rgba(255,255,255,0.08);
}

.partner-section { padding: 14px; }

.partner-btn {
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.balance-chip {
    border-radius: 12px;
    background: rgba(255,255,255,0.09);
}

.balance-dropdown {
    border-radius: 16px;
    background: rgba(42,9,14,0.96);
    box-shadow: 0 18px 48px rgba(0,0,0,0.42);
}

.bottom-nav,
.guest-nav {
    background: linear-gradient(180deg, rgba(63,8,16,0.96) 0%, rgba(28,4,8,0.98) 100%);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 -16px 38px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,120,135,0.16);
}

.bottom-nav .nav-item {
    color: #ff9aa7;
}

.bottom-nav .nav-item i {
    color: #ff6b7c;
}

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

.bottom-nav .nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 34px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #ff4058, #ffd68a);
    box-shadow: 0 0 14px rgba(255,64,88,0.72);
}

.bottom-nav .nav-item.active i {
    color: #ffd68a;
    filter: drop-shadow(0 0 8px rgba(255,64,88,0.75));
}

.nav-center-circle {
    background: linear-gradient(135deg, #ffd68a 0%, #ff4058 52%, #c51f35 100%);
    box-shadow: 0 0 0 4px rgba(22,5,8,0.94), 0 12px 26px rgba(255,64,88,0.38);
}

.sidebar-item {
    border: 1px solid transparent;
    min-height: 58px;
    padding: 7px 5px !important;
    gap: 3px !important;
    border-radius: 9px !important;
    margin-bottom: 3px !important;
    font-size: 9px !important;
    line-height: 1.15;
}

.sidebar-item i {
    font-size: 17px !important;
}

.sidebar-item span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: linear-gradient(180deg, rgba(255,179,71,0.12), rgba(255,64,88,0.10));
    border-color: rgba(255,255,255,0.12);
}

@media (hover: hover) {
    .game-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255,224,131,0.35);
        box-shadow: 0 18px 34px rgba(0,0,0,0.34);
    }

    .game-card:hover .game-card-img {
        transform: scale(1.045);
        filter: saturate(1.08) contrast(1.03);
    }
}

@media (min-width: 900px) {
    .main-layout { max-width: 1240px; }
    .desktop-sidebar {
        width: 92px !important;
        top: 62px;
        height: calc(100vh - 62px);
        padding: 8px 5px !important;
        background: rgba(22,5,8,0.36);
    }
    .mainSlider img { height: 270px; }
    .game-grid { gap: 12px; }
}

@media (max-width: 380px) {
    .btn-login,
    .btn-register {
        padding-inline: 11px;
        font-size: 12px;
    }

    .mainSlider img { height: 162px; }
    .game-grid { gap: 8px; }
    .game-card-name { font-size: 10px; }
}
