@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800;900&display=swap");

:root {
    --bg-main: #070B14;
    --bg-section: #0E1424;
    --bg-card: #141B2D;
    --stroke: #1F2940;
    --text-primary: #FFFFFF;
    --text-secondary: #B6BED6;
    --primary: #2F6BFF;
    --success: #22C55E;
    --warning: #F5C56B;
    --error: #EF4444;
    --event: #8B5CF6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
    overscroll-behavior-y: none; /* Prevent pull-to-refresh on mobile */
}

/* Allow text selection in inputs */
input, textarea {
    user-select: text;
    -webkit-user-select: text;
}

/* Smooth page fade-in */
body {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qcShimmer {
    0% { transform: translateX(-140%); }
    100% { transform: translateX(140%); }
}

/* Button active state feedback */
.btn:active, .contest-btn:active, .nav-item:active, .game-card:active {
    transform: scale(0.96);
    transition: transform 0.1s;
}

a {
    text-decoration: none;
    color: var(--primary);
    cursor: pointer;
}

.app-frame {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 420px;
    height: 100vh; /* Force full height */
    aspect-ratio: 9 / 16;
    margin: 0;
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden;
    border-radius: 0; /* Remove radius for full screen feel or keep if framed? User said "make website size to 9:16" */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Scrollbar Hiding */
.screen-scroll::-webkit-scrollbar {
    display: none;
}

.screen-scroll {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


@media (max-width: 520px) {
    .app-frame {
        padding: 0;
    }

    .container {
        max-width: 100%;
        width: 100vw;
        height: 100vh;
        aspect-ratio: auto;
        border-radius: 0;
    }
}

.screen-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--stroke);
    color: var(--text-secondary);
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
}

/* Splash Screen */
.splash-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: radial-gradient(120% 80% at 10% 0%, rgba(47, 107, 255, 0.22) 0%, rgba(7, 11, 20, 0) 55%),
        linear-gradient(180deg, #070B14 0%, #050814 100%);
    text-align: center;
}

.splash-inner {
    width: 100%;
    height: 100%;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.splash-glow {
    width: 132px;
    height: 132px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 25%, rgba(47, 107, 255, 0.55), rgba(139, 92, 246, 0.15) 55%, rgba(7, 11, 20, 0) 72%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo-wrap {
    width: 108px;
    height: 108px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.splash-logo-img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(47, 107, 255, 0.28));
}

.splash-title {
    font-size: 1.55rem;
    font-weight: 1000;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.98);
}

.splash-tagline {
    font-size: 0.92rem;
    font-weight: 800;
    color: rgba(182, 190, 214, 0.92);
}

.splash-progress {
    width: min(280px, 86%);
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.splash-hint {
    position: absolute;
    bottom: calc(24px + env(safe-area-inset-bottom));
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.28px;
    color: rgba(182, 190, 214, 0.78);
    text-transform: uppercase;
}

.splash-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.qc-shimmer {
    position: relative;
    overflow: hidden;
}

.qc-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    animation: qcShimmer 1.1s ease-in-out infinite;
}

.qc-skel-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.qc-skel-fill {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
}

.qc-skel-media::before,
.qc-skel-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('asset/quickclash-removebg-preview.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 58px 58px;
    opacity: 0.1;
    pointer-events: none;
}

.qc-skel-line {
    height: 10px;
    border-radius: 999px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qc-skel-line.short {
    width: 55%;
}

.qc-skel-line.long {
    width: 82%;
}

.qc-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 11, 20, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.25s ease;
}

.qc-loader.fade {
    opacity: 0;
    pointer-events: none;
}

.qc-loader-card {
    width: min(340px, 88vw);
    padding: 22px 18px 18px;
    border-radius: 22px;
    background: rgba(20, 27, 45, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.qc-loader-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 16px 34px rgba(47, 107, 255, 0.28));
}

.qc-loader-text {
    margin-top: 12px;
    font-weight: 1000;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.95);
}

.qc-loader-bar {
    margin: 14px auto 0;
    width: min(260px, 82%);
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
/* Auth Pages */
.auth-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header img {
    width: 80px;
    margin-bottom: 16px;
    object-fit: contain;
}

.auth-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-screen {
    background: radial-gradient(120% 80% at 10% 0%, rgba(47, 107, 255, 0.22) 0%, rgba(7, 11, 20, 0) 55%),
        linear-gradient(180deg, #070B14 0%, #050814 100%);
}

.auth-shell {
    padding: 20px 22px 18px 22px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 14px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-text {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 16px;
}

.auth-hero {
    margin-top: 54px;
    margin-bottom: 26px;
}

.auth-title {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
}

.auth-subtitle {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 16px;
}

.qc-form {
    margin-top: 10px;
}

.qc-field {
    margin-bottom: 14px;
}

.qc-input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(182, 190, 214, 0.35);
    background: rgba(20, 27, 45, 0.18);
    color: var(--text-primary);
    outline: none;
    font-size: 15px;
}

.qc-input::placeholder {
    color: rgba(182, 190, 214, 0.75);
}

.qc-input:focus {
    border-color: rgba(47, 107, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}

.auth-link-row {
    margin-top: 10px;
    margin-bottom: 12px;
    text-align: center;
    color: rgba(182, 190, 214, 0.85);
    font-size: 13px;
}

.auth-link-row a {
    color: var(--text-primary);
    font-weight: 700;
}

.btn-lg {
    height: 54px;
    border-radius: 10px;
    font-size: 16px;
}

.tiny {
    margin-top: 12px;
    text-align: center;
    font-size: 10px;
    color: rgba(182, 190, 214, 0.75);
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.tiny a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

/* Dashboard */
.header {
    padding: 16px 20px;
    background-color: transparent; /* Transparent initially */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(20, 27, 45, 0.95); /* Dark background on scroll */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--stroke);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info img {
    border-radius: 50%;
    border: 2px solid var(--primary);
    width: 40px;
    height: 40px;
}

.brand-name {
    font-weight: 900;
    letter-spacing: 0.2px;
    font-size: 1.15rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-btn i {
    font-size: 1.05rem;
}

.icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    border: 2px solid rgba(20, 27, 45, 0.95);
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 0.95rem;
    color: rgba(182, 190, 214, 0.95);
    font-weight: 900;
    letter-spacing: 0.2px;
}

.section-action {
    font-size: 0.8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 999px;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mode-tile {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
}

.mode-tile-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.mode-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mode-tile-label {
    margin-top: 7px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    width: 36px;
    height: 36px;
    background-color: var(--stroke);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
}

.balance-card {
    margin: 16px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-card), var(--stroke));
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-slider {
    width: 100%;
    margin: 18px 0;
    padding: 0 16px;
}

.banner-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45);
}

.banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.08) 0%, rgba(7, 11, 20, 0.78) 92%);
    z-index: 2;
}

.banner-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 10% 0%, rgba(47, 107, 255, 0.32) 0%, rgba(7, 11, 20, 0) 60%);
    z-index: 2;
    pointer-events: none;
}

.banner-video,
.banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.banner-video {
    display: none;
}

.banner-image {
    transition: opacity 0.3s ease-in-out;
}

.banner-card.has-video .banner-video {
    display: block;
}

.banner-card.has-video .banner-image {
    opacity: 0;
}

.banner-card:hover .banner-video,
.banner-card:hover .banner-image {
    transform: scale(1.02);
    transition: transform 0.35s ease;
}

.banner-card .banner-video,
.banner-card .banner-image {
    transform: scale(1.01);
    transition: transform 0.6s ease;
}

.banner-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 3;
}

.banner-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(5, 8, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.banner-title {
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 1000;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.dashboard-footer {
    padding: 8px 16px 10px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18px;
    color: rgba(182, 190, 214, 0.82);
    margin-bottom: 6px;
}

.contest-list {
    padding: 16px;
    padding-bottom: 80px; /* Space for bottom nav if needed */
}

.contest-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--stroke);
}

.contest-img {
    width: 100%;
    height: 120px;
    background-color: #222;
    object-fit: cover;
}

.contest-details {
    padding: 16px;
}

.contest-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.prize-pool {
    color: var(--success);
    font-weight: bold;
}

.entry-fee {
    background-color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: white;
}

.bottom-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    height: 68px;
    background: rgba(11, 15, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    z-index: 50;
}

.nav-item {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.66rem;
    letter-spacing: 0.2px;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nav-badge {
    position: absolute;
    top: 6px;
    right: 18px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    border: 2px solid rgba(11, 15, 28, 0.78);
    pointer-events: none;
}

.nav-item i {
    font-size: 1.08rem;
    line-height: 1;
}

.nav-item.active {
    background: rgba(47, 107, 255, 0.18);
    color: rgba(255, 255, 255, 0.98);
}

.nav-item.active i {
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(47, 107, 255, 0.35));
    transform: translateY(-1px);
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.92);
}

.nav-item:active {
    transform: scale(0.98);
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 90;
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 8, 20, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.page-title {
    font-weight: 900;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.95);
}

.game-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.game-tile {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
}

.game-tile.selected .game-tile-img-wrap {
    border-color: rgba(47, 107, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}

.game-tile-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tile-online {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(5, 8, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tile-online .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.game-tile-name {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-list {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.ml-tabs {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ml-tab {
    flex: 1;
    padding: 10px 0 8px;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(182, 190, 214, 0.9);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.18px;
}

.ml-tab.active {
    color: rgba(255, 255, 255, 0.98);
    position: relative;
}

.ml-tab.active::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: #facc15;
}

.match-card {
    background: #0b1021;
    border-radius: 18px;
    padding: 0 0 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.match-banner {
    width: 100%;
    height: 160px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.match-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.match-main {
    background: #ffffff;
    padding: 16px 16px 10px;
}

.match-main-title {
    font-size: 0.98rem;
    font-weight: 900;
    color: #020617;
    text-align: center;
}

.match-main-sub {
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
}

.match-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 10px;
}

.match-main-item-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
}

.match-main-item-value {
    margin-top: 3px;
    font-size: 0.85rem;
    font-weight: 900;
    color: #020617;
}

.match-bottom {
    padding: 10px 16px 0;
}

.match-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.match-seat-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #e2e8f0;
}

.match-seat-count {
    font-size: 0.7rem;
    font-weight: 800;
    color: #e2e8f0;
}

.match-seat-bar {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 1);
    overflow: hidden;
}

.match-seat-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #facc15);
}

.match-join {
    height: 40px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid #1d4ed8;
    background: transparent;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.empty-state {
    padding: 18px 12px;
    text-align: center;
    color: rgba(182, 190, 214, 0.9);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

/* Header Elements */
.coin-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    border: none;
}

.coin-pill img {
    width: 20px;
    height: 20px;
}

.coin-pill span {
    font-size: 1rem;
    font-weight: 800;
    color: #000000;
}

/* Notice Banner */
.notice-banner {
    margin: 16px;
    padding: 16px;
    background: #1E3A8A; /* Dark Blue from screenshot */
    border-radius: 12px;
    display: flex;
    align-items: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: none;
}

/* Contest Grid (My Contest) */
.contest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contest-btn {
    background: #FFFFFF;
    border: none;
    border-radius: 16px;
    padding: 20px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    aspect-ratio: 1;
}

.contest-btn i {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.contest-btn span {
    font-size: 0.85rem;
    color: #000000;
    font-weight: 800;
    text-transform: capitalize;
}

/* Games Grid (Modes of Esports) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns for compact view */
    gap: 10px;
}

.game-card {
    position: relative;
    aspect-ratio: 3/4; /* Taller vertical aspect for 3-col */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--stroke);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05); /* Zoom effect on hover */
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    padding: 10px;
    display: flex;
    flex-direction: column; /* Stack text if needed, or align properly */
    justify-content: flex-end;
    height: 100%; /* Cover full height for gradient or adjust as needed */
}

.game-overlay span {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Bottom Nav Active State - Old removal */
/* .nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    color: var(--primary);
} */

.lb-theme {
    background: radial-gradient(120% 80% at 20% 10%, rgba(47, 107, 255, 0.24) 0%, rgba(7, 11, 20, 0) 55%),
        radial-gradient(90% 70% at 90% 0%, rgba(139, 92, 246, 0.18) 0%, rgba(7, 11, 20, 0) 60%),
        linear-gradient(180deg, #070B14 0%, #060913 60%, #050814 100%);
}

.lb-theme .page-header {
    background: rgba(7, 11, 20, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lb-theme .back-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-wrap {
    padding: 10px 0 14px;
}

.lb-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 6px 0 14px;
}

.lb-tab {
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(182, 190, 214, 0.92);
    font-weight: 900;
    letter-spacing: 0.2px;
    cursor: pointer;
}

.lb-tab.active {
    background: rgba(47, 107, 255, 0.22);
    color: rgba(255, 255, 255, 0.98);
    border-color: rgba(47, 107, 255, 0.3);
}

.lb-banner {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.95), rgba(139, 92, 246, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    margin-bottom: 14px;
}

.lb-banner-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 11, 20, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.98);
    font-weight: 1000;
    letter-spacing: 0.2px;
}

.lb-banner-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
    line-height: 1.15;
    font-size: 0.9rem;
}

.lb-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 11, 20, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    font-size: 0.78rem;
    white-space: nowrap;
}

.lb-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0.85;
}

.lb-podium {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    gap: 10px;
    align-items: end;
    margin: 8px 0 0;
}

.lb-podium-slot {
    position: relative;
    text-align: center;
    padding: 56px 8px 0;
}

.lb-podium-avatar {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.96);
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.95), rgba(139, 92, 246, 0.85));
    border: 3px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.lb-podium-name {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 1000;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 6px;
}

.lb-podium-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(7, 11, 20, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 1000;
    font-size: 0.72rem;
    white-space: nowrap;
}

.lb-crown {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 197, 107, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(7, 11, 20, 0.95);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.lb-podium-step {
    margin-top: 14px;
    height: 92px;
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: end;
    justify-content: center;
    padding-bottom: 16px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 1000;
    font-size: 2.6rem;
    letter-spacing: 0.5px;
}

.lb-podium-slot.first .lb-podium-avatar {
    width: 70px;
    height: 70px;
}

.lb-podium-slot.first .lb-podium-step {
    height: 118px;
    background: rgba(255, 255, 255, 0.08);
}

.lb-podium-slot.second .lb-podium-step {
    height: 96px;
}

.lb-podium-slot.third .lb-podium-step {
    height: 82px;
}

.lb-list-wrap {
    margin-top: -14px;
    background: rgba(14, 20, 36, 0.96);
    border-radius: 26px 26px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 12px 18px;
    box-shadow: 0 -18px 56px rgba(0, 0, 0, 0.35);
}

.lb-row {
    display: grid;
    grid-template-columns: 34px 42px 1fr auto;
    gap: 10px;
    align-items: center;
    background: rgba(20, 27, 45, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 10px 12px;
    margin-top: 10px;
}

.lb-row-rank {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(182, 190, 214, 0.9);
    font-weight: 1000;
    font-size: 0.8rem;
}

.lb-row-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    letter-spacing: 0.25px;
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.75), rgba(139, 92, 246, 0.6));
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.lb-row-name {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 1000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-row-points {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 1000;
    font-size: 0.9rem;
    white-space: nowrap;
}

.lb-row-unit {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 1000;
}

.lb-list-empty {
    padding: 18px 12px;
    text-align: center;
    color: rgba(182, 190, 214, 0.9);
    font-weight: 900;
}
