/* ===========================================================
   GAME WORLD — Mobile UI Theme
   Full UI redesign (mobile-only). Desktop renders the same
   centered mobile frame. Prefixed with .gw- to avoid clashing
   with legacy style.css. Loaded LAST so it wins.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,700;1,800&display=swap');

:root {
    --gw-bg-0: #05030f;
    --gw-bg-1: #0d0826;
    --gw-bg-2: #140a33;
    --gw-card: #1b1240;
    --gw-card-2: #241653;
    --gw-line: rgba(255, 255, 255, .08);
    --gw-purple: #7c3aed;
    --gw-purple-2: #a855f7;
    --gw-pink: #d61f8f;
    --gw-gold: #f9b115;
    --gw-gold-2: #ffd24a;
    --gw-text: #f4f3fb;
    --gw-muted: #9891bd;
    --gw-shell: 448px;
    --gw-nav-h: 76px;
}

/* ---- Reset within the app ---- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background:
        radial-gradient(1200px 600px at 50% -10%, #241056 0%, #0b0620 55%, #000 100%);
    min-height: 100vh;
}

/* Force mobile frame on all screen sizes */
.gw-app {
    position: relative;
    width: 100%;
    max-width: var(--gw-shell);
    margin: 0 auto;
    min-height: 100vh;
    background:
        radial-gradient(900px 480px at 50% -6%, #2a1466 0%, rgba(13, 8, 38, 0) 60%),
        linear-gradient(180deg, #0c0726 0%, #0a0620 40%, #08051a 100%);
    color: var(--gw-text);
    overflow-x: hidden;
    padding-bottom: calc(var(--gw-nav-h) + 22px);
    box-shadow: 0 0 60px rgba(0, 0, 0, .6);
}

.gw-app a { text-decoration: none; color: inherit; }
.gw-app h1, .gw-app h2, .gw-app h3, .gw-app h4, .gw-app h5, .gw-app p { margin: 0; color: var(--gw-text); }
.gw-app img { max-width: 100%; }

/* ---------------- Top header ---------------- */
.gw-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    background: linear-gradient(180deg, rgba(12, 7, 38, .96) 0%, rgba(12, 7, 38, .75) 70%, rgba(12, 7, 38, 0) 100%);
    backdrop-filter: blur(6px);
}

.gw-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    position: relative;
}

.gw-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-style: italic;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: .5px;
}

.gw-logo .gw-logo-ico {
    font-size: 22px;
    background: linear-gradient(135deg, var(--gw-purple-2), var(--gw-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, .6));
}

.gw-logo b { color: #fff; }
.gw-logo span { color: var(--gw-gold); }

.gw-bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff4d6d, #d61f8f);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--gw-bg-1);
}

/* ---------------- Section titles ---------------- */
.gw-section { padding: 4px 16px 0; }

.gw-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0 12px;
}

.gw-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    font-weight: 700;
}

.gw-section-title .gw-ic {
    color: var(--gw-purple-2);
    font-size: 17px;
}

.gw-see-all {
    color: var(--gw-purple-2);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------------- Cards / generic ---------------- */
.gw-card {
    background: linear-gradient(160deg, var(--gw-card-2) 0%, var(--gw-card) 100%);
    border: 1px solid var(--gw-line);
    border-radius: 18px;
}

/* ---------------- Tournament banner ---------------- */
.gw-banner {
    position: relative;
    margin: 6px 16px 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, .35);
    background:
        radial-gradient(120% 120% at 100% 0%, #6b1fb0 0%, #3a1178 45%, #1a0a44 100%);
    box-shadow: 0 12px 34px rgba(80, 20, 140, .35);
}

/* Full tournament hero image on top */
.gw-banner-img { display: block; width: 100%; line-height: 0; }
.gw-banner-img img { display: block; width: 100%; height: auto; }

.gw-banner-inner {
    position: relative;
    z-index: 2;
    padding: 18px 18px 30px;
    width: 100%;
}

.gw-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff4d6d, #d61f8f);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.gw-banner-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.gw-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 14px;
    letter-spacing: .5px;
}

.gw-live .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: gwLiveBlink 1.2s infinite;
}

@keyframes gwLiveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .2; }
}

.gw-rating, .gw-playing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.gw-rating i { color: var(--gw-gold); }
.gw-playing i { color: #e9e4ff; }

.gw-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, .3);
    padding: 6px 12px;
    border-radius: 14px;
    margin: 4px 0 2px;
}

.gw-countdown b { color: var(--gw-gold); font-weight: 700; }

.gw-banner h1 {
    font-size: 32px;
    line-height: 1.05;
    font-weight: 800;
    font-style: italic;
    margin: 14px 0 0;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}

.gw-banner h1 .gold { color: var(--gw-gold); }

.gw-banner p {
    color: #e9e4ff;
    font-size: 14px;
    margin-top: 10px;
    max-width: 220px;
}

.gw-banner-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    background: #fff;
    color: #1a0a44 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 14px 12px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.gw-banner-cta .arw {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a0a44;
    color: #fff !important;
    font-size: 13px;
}

.gw-banner-cup {
    position: absolute;
    right: -8px;
    bottom: 0;
    top: 0;
    width: 55%;
    z-index: 1;
    background: url('/images/header_img.jpg') center right/cover no-repeat;
    opacity: .55;
    mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}

.gw-banner-cup .gw-trophy {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 120px;
    color: var(--gw-gold);
    filter: drop-shadow(0 6px 20px rgba(249, 177, 21, .55));
}

.gw-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 3;
}

.gw-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transition: .3s;
}

.gw-dots i.on {
    width: 22px;
    border-radius: 5px;
    background: var(--gw-purple-2);
}

/* ---------------- Prizes banner ---------------- */
.gw-prizes {
    margin: 16px 16px 0;
    padding: 18px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #182a6b 0%, #10184a 60%, #241056 100%);
    border: 1px solid rgba(120, 130, 255, .25);
    display: flex;
    align-items: center;
    gap: 12px;
}

.gw-prizes .txt { flex: 1; }

.gw-prizes .cap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--gw-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.gw-prizes h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}

.gw-prizes h3 .gold { color: var(--gw-gold); }
.gw-prizes .sub { color: #c7d0ff; font-size: 12.5px; margin: 6px 0 12px; }

.gw-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gw-gold);
    color: #2a1400 !important;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 22px;
    cursor: pointer;
}

.gw-prizes .art {
    width: 96px;
    flex-shrink: 0;
    font-size: 66px;
    text-align: center;
    line-height: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4));
}

/* ---------------- Panels (Popular / Category / Players) ---------------- */
.gw-panel {
    margin: 16px 12px 0;
    padding: 4px 8px 14px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(40, 25, 90, .55), rgba(18, 11, 45, .55));
    border: 1px solid var(--gw-line);
}

.gw-hscroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 8px 6px;
    scrollbar-width: none;
}

.gw-hscroll::-webkit-scrollbar { display: none; }

/* Popular game card */
.gw-game {
    flex: 0 0 auto;
    width: 118px;
    cursor: pointer;
}

.gw-game .thumb {
    width: 118px;
    height: 118px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    border: 1px solid var(--gw-line);
    position: relative;
}

.gw-game .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gw-game .name { text-align: center; font-size: 13px; font-weight: 600; margin-top: 8px; }

/* Category card */
.gw-cat {
    flex: 0 0 auto;
    width: 108px;
    height: 118px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    text-align: center;
}

.gw-cat .cico { font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.gw-cat .cat-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.gw-cat .cname { font-size: 14px; font-weight: 700; }
.gw-cat .ccount { font-size: 11px; opacity: .85; }

/* gradient helpers for tiles */
.g-action { background: linear-gradient(160deg, #b5651d, #7a3b0a); }
.g-racing { background: linear-gradient(160deg, #1f6feb, #0b2f6e); }
.g-sports { background: linear-gradient(160deg, #1e9e4a, #0c4d24); }
.g-arcade { background: linear-gradient(160deg, #8b2fd6, #4a1379); }
.g-puzzle { background: linear-gradient(160deg, #1f9db8, #0c4a5c); }
.g-1 { background: linear-gradient(160deg, #d64545, #7a1f2b); }
.g-2 { background: linear-gradient(160deg, #4059d6, #1a1f6e); }
.g-3 { background: linear-gradient(160deg, #b23b2e, #5c1710); }
.g-4 { background: linear-gradient(160deg, #7c3aed, #3a1178); }
.g-5 { background: linear-gradient(160deg, #2e9e4a, #0c4d24); }

/* ---------------- Top players ---------------- */
.gw-players {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 8px 8px;
    scrollbar-width: none;
}

.gw-players::-webkit-scrollbar { display: none; }

.gw-player {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--gw-card-2), var(--gw-card));
    border: 1px solid var(--gw-line);
}

.gw-player .rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #241056;
    background: var(--gw-gold);
}

.gw-player .rank.s2 { background: #c9d2e3; }
.gw-player .rank.s3 { background: #d99b62; }
.gw-player .ava {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gw-purple-2), var(--gw-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.gw-player .pn { font-size: 13px; font-weight: 700; white-space: nowrap; }
.gw-player .ps { font-size: 11.5px; color: var(--gw-gold); font-weight: 600; }

.gw-player.see {
    background: linear-gradient(150deg, var(--gw-purple), var(--gw-pink));
    font-weight: 800;
    font-size: 13px;
    padding: 8px 16px;
    align-items: center;
    text-align: center;
    color: #fff;
}

/* ---------------- Bottom nav ---------------- */
.gw-bottomnav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: var(--gw-shell);
    height: var(--gw-nav-h);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    background: linear-gradient(180deg, #170d3d 0%, #100827 100%);
    border-top: 1px solid rgba(140, 90, 220, .25);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
}

.gw-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--gw-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.gw-nav-item i { font-size: 19px; }
.gw-nav-item.active { color: var(--gw-purple-2); }
.gw-nav-item.active span { border-bottom: 2px solid var(--gw-purple-2); padding-bottom: 1px; }

.gw-nav-center {
    flex: 0 0 auto;
    margin-top: -30px;
    width: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.gw-nav-center .orb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: radial-gradient(circle at 35% 30%, #a855f7, #6d28d9 60%, #4a1379);
    border: 3px solid #100827;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, .45), 0 8px 20px rgba(124, 58, 237, .5);
}

.gw-nav-center .lbl { font-size: 9px; font-weight: 800; font-style: italic; margin-top: 3px; color: #fff; }
.gw-nav-center .lbl span { color: var(--gw-gold); }

/* ---------------- Side drawer ---------------- */
.gw-drawer-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: .25s;
    z-index: 60;
}

.gw-drawer-scrim.open { opacity: 1; visibility: visible; }

.gw-drawer {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-110%);
    width: 78%;
    max-width: 340px;
    height: 100%;
    z-index: 61;
    background: linear-gradient(180deg, #150c39 0%, #0c0726 100%);
    border-right: 1px solid rgba(140, 90, 220, .3);
    padding: 16px 18px;
    transition: transform .28s ease;
    overflow-y: auto;
}

/* On desktop, anchor the drawer to the left edge of the centered mobile shell */
@media (min-width: 449px) {
    .gw-drawer { left: calc(50% - var(--gw-shell) / 2); }
}

.gw-drawer.open { transform: translateX(0); }

.gw-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.gw-drawer-head .gw-icon-btn { width: 34px; height: 34px; font-size: 18px; }

.gw-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 6px;
    font-size: 16px;
    font-weight: 600;
    color: #efeaff;
    border-bottom: 1px solid var(--gw-line);
}

.gw-menu-link i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--gw-purple-2);
    border: 1px solid rgba(168, 85, 247, .4);
}

.gw-promo {
    margin-top: 26px;
    padding: 18px 16px;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(160deg, #2a1466, #4a1379);
    border: 1px solid rgba(168, 85, 247, .4);
}

.gw-promo .gift { font-size: 40px; }
.gw-promo h4 { font-size: 16px; font-weight: 800; margin: 8px 0 12px; }

.gw-promo .join {
    display: inline-block;
    background: linear-gradient(135deg, var(--gw-purple-2), var(--gw-pink));
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 26px;
    border-radius: 22px;
    cursor: pointer;
}

/* ---------------- Loading overlay ---------------- */
.gw-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 4, 20, .6);
    backdrop-filter: blur(2px);
}

.gw-loader.show { display: flex; }

.gw-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid rgba(168, 85, 247, .25);
    border-top-color: var(--gw-purple-2);
    animation: gw-spin .8s linear infinite;
}

@keyframes gw-spin { to { transform: rotate(360deg); } }

/* ---------------- Login modal ---------------- */
#KhelunModal .modal-dialog { max-width: 380px; margin: 90px auto; padding: 0 16px; }

#KhelunModal .modal-content {
    background: linear-gradient(170deg, #1c1148 0%, #120a33 100%);
    border: 1px solid rgba(168, 85, 247, .35);
    border-radius: 22px;
    overflow: hidden;
    color: var(--gw-text);
}

#KhelunModal .gw-modal-top {
    text-align: center;
    padding: 26px 22px 4px;
}

#KhelunModal .gw-modal-top .ico {
    font-size: 42px;
    background: linear-gradient(135deg, var(--gw-purple-2), var(--gw-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#KhelunModal h5 { font-size: 20px; font-weight: 800; margin: 12px 0 4px; color: #fff; }
#KhelunModal .subt { color: var(--gw-muted); font-size: 13px; }
#KhelunModal .gw-close {
    position: absolute;
    right: 16px;
    top: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
}

#KhelunModal .modal-body { padding: 18px 22px 26px; }
#KhelunModal .gw-field { margin-bottom: 16px; text-align: left; }
#KhelunModal .gw-field label { display: block; color: #cfc7ef; font-size: 13px; font-weight: 600; margin-bottom: 7px; }

#KhelunModal .gw-field input {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, .35);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 16px;
    padding: 0 16px;
    outline: none;
}

#KhelunModal .gw-field input::placeholder { color: #7d76a0; }
#KhelunModal .gw-field input:focus { border-color: var(--gw-purple-2); box-shadow: 0 0 0 3px rgba(168, 85, 247, .2); }

#KhelunModal .gw-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gw-purple-2), var(--gw-pink));
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 8px 20px rgba(168, 85, 247, .35);
}

#KhelunModal .gw-hint { color: var(--gw-muted); font-size: 12px; text-align: center; margin-top: 12px; }

/* ---------------- Generic page shell (Contact/Community/Profile) ---------------- */
.gw-page { padding: 6px 16px 8px; }

.gw-page-title {
    text-align: center;
    margin: 10px 0 6px;
}

.gw-page-title h1 { font-size: 24px; font-weight: 800; font-style: italic; text-transform: uppercase; }
.gw-page-title p { color: var(--gw-muted); font-size: 13px; margin-top: 6px; }

.gw-form-card {
    margin-top: 16px;
    padding: 20px 18px;
    border-radius: 20px;
    background: linear-gradient(160deg, var(--gw-card-2), var(--gw-card));
    border: 1px solid var(--gw-line);
}

.gw-form-card h5 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.gw-form-card .gw-field { margin-bottom: 15px; }
.gw-form-card label { display: block; font-size: 13px; color: #cfc7ef; margin-bottom: 7px; font-weight: 600; }

.gw-form-card input,
.gw-form-card textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, .3);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 15px;
    padding: 13px 15px;
    outline: none;
    font-family: inherit;
}

.gw-form-card input:focus,
.gw-form-card textarea:focus { border-color: var(--gw-purple-2); }

.gw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--gw-purple-2), var(--gw-pink));
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 26px;
    box-shadow: 0 8px 20px rgba(168, 85, 247, .3);
}

.gw-btn.full { width: 100%; }
.gw-btn.gold { background: linear-gradient(135deg, var(--gw-gold), var(--gw-gold-2)); color: #2a1400 !important; }
.gw-btn.ghost { background: rgba(255,255,255,.06); border: 1px solid var(--gw-line); box-shadow: none; }
.gw-btn.danger { background: linear-gradient(135deg, #ff4d6d, #d61f8f); }

.gw-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gw-line);
}

.gw-info-row:last-child { border-bottom: none; }
.gw-info-row .ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--gw-purple), var(--gw-pink));
    flex-shrink: 0;
}

.gw-info-row h6 { font-size: 12px; color: var(--gw-muted); margin: 0 0 3px; font-weight: 600; }
.gw-info-row p { font-size: 14px; font-weight: 600; }

/* ---------------- Profile ---------------- */
.gw-profile-head {
    margin: 10px 16px 0;
    padding: 22px 18px;
    border-radius: 20px;
    text-align: center;
    background:
        radial-gradient(120% 120% at 50% 0%, #4a1379 0%, #1b1240 70%);
    border: 1px solid rgba(168, 85, 247, .3);
}

.gw-profile-head .avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, var(--gw-purple-2), var(--gw-pink));
    box-shadow: 0 0 0 4px rgba(168, 85, 247, .25);
}

.gw-profile-head h3 { font-size: 20px; font-weight: 800; }
.gw-profile-head .mob { color: var(--gw-gold); font-size: 14px; font-weight: 600; margin-top: 4px; }

.gw-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 16px 0;
}

.gw-stat {
    padding: 16px 14px;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--gw-card-2), var(--gw-card));
    border: 1px solid var(--gw-line);
    display: flex;
    align-items: center;
    gap: 12px;
}

.gw-stat .sic {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gw-gold);
    background: rgba(249, 177, 21, .12);
}

.gw-stat .sv { font-size: 20px; font-weight: 800; }
.gw-stat .sl { font-size: 11px; color: var(--gw-muted); }

.gw-tabs {
    display: flex;
    gap: 8px;
    margin: 18px 16px 0;
    background: rgba(255, 255, 255, .04);
    padding: 5px;
    border-radius: 14px;
}

.gw-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gw-muted);
    cursor: pointer;
    background: transparent;
    border: none;
}

.gw-tab.active { background: linear-gradient(135deg, var(--gw-purple), var(--gw-pink)); color: #fff; }

.gw-list-card { margin: 14px 16px 0; padding: 6px 16px; border-radius: 18px; background: linear-gradient(160deg, var(--gw-card-2), var(--gw-card)); border: 1px solid var(--gw-line); }
.gw-list-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--gw-line); }
.gw-list-row:last-child { border-bottom: none; }
.gw-list-row .k { color: var(--gw-muted); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.gw-list-row .v { font-size: 14px; font-weight: 700; }
.gw-list-row .v input { background: rgba(255,255,255,.06); border: 1px solid var(--gw-purple-2); border-radius: 8px; color: #fff; padding: 6px 10px; font-size: 14px; }

.gw-tourn-slider { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.gw-tourn-slider::-webkit-scrollbar { display: none; }
.gw-tourn-slider .single-slide { flex: 0 0 auto; width: 150px; }
.gw-tourn-slider img { width: 150px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--gw-line); }

/* Deactivate box */
.gw-deactivate {
    margin: 20px 16px 0;
    padding: 18px 16px;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(160deg, rgba(120, 20, 40, .35), rgba(30, 10, 40, .5));
    border: 1px solid rgba(255, 77, 109, .3);
}

.gw-deactivate h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.gw-deactivate p { color: var(--gw-muted); font-size: 12.5px; margin-bottom: 14px; }

/* utility */
.gw-mt { margin-top: 18px; }
.gw-center { text-align: center; }

/* ===========================================================
   Extended components: Games grid, Category chips, Leaderboard,
   FAQ accordion, Tournaments
   =========================================================== */

/* ---- Category filter chips ---- */
.gw-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 16px 6px;
    scrollbar-width: none;
}
.gw-chips::-webkit-scrollbar { display: none; }

.gw-chip {
    flex: 0 0 auto;
    padding: 9px 18px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gw-muted);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--gw-line);
    white-space: nowrap;
    cursor: pointer;
}
.gw-chip.active {
    color: #fff;
    background: linear-gradient(135deg, var(--gw-purple), var(--gw-pink));
    border-color: transparent;
}

/* ---- Games grid ---- */
.gw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 8px 16px 4px;
}
.gw-grid .gw-game { width: auto; }
.gw-grid .gw-game .thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    font-size: 40px;
}
.gw-grid .gw-game .name { font-size: 12.5px; }

.gw-empty { text-align: center; color: var(--gw-muted); padding: 40px 16px; font-size: 14px; }

/* ---- Categories grid ---- */
.gw-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 16px 4px;
}
.gw-cat-grid .gw-cat { width: auto; height: 120px; }
.gw-cat-grid .gw-cat .cico { font-size: 44px; }

/* ---- Leaderboard ---- */
.gw-lb-hero {
    margin: 6px 16px 0;
    padding: 20px 18px;
    border-radius: 20px;
    background: radial-gradient(120% 130% at 50% 0%, #4a1379 0%, #1b1240 70%);
    border: 1px solid rgba(168, 85, 247, .3);
    text-align: center;
}
.gw-lb-hero .gname { font-size: 13px; color: var(--gw-gold); font-weight: 700; letter-spacing: .5px; }
.gw-lb-hero h2 { font-size: 24px; font-weight: 800; font-style: italic; text-transform: uppercase; margin: 6px 0; }
.gw-lb-hero .prize { font-size: 14px; color: #d7cffb; margin-bottom: 14px; }
.gw-lb-hero .prize b { color: var(--gw-gold); font-size: 18px; }

/* Podium */
.gw-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    margin: 18px 16px 0;
}
.gw-pod {
    flex: 1;
    max-width: 120px;
    border-radius: 16px 16px 0 0;
    padding: 12px 8px 14px;
    text-align: center;
    border: 1px solid var(--gw-line);
    border-bottom: none;
}
.gw-pod .pava {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, var(--gw-purple-2), var(--gw-pink));
    border: 2px solid #fff;
}
.gw-pod .pnm { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-pod .psc { font-size: 13px; font-weight: 800; color: var(--gw-gold); }
.gw-pod .pmb { font-size: 11px; color: var(--gw-muted); }
.gw-pod.p1 { background: linear-gradient(180deg, rgba(249,177,21,.35), rgba(27,18,64,.4)); height: 150px; }
.gw-pod.p2 { background: linear-gradient(180deg, rgba(201,210,227,.28), rgba(27,18,64,.4)); height: 128px; }
.gw-pod.p3 { background: linear-gradient(180deg, rgba(217,155,98,.3), rgba(27,18,64,.4)); height: 116px; }
.gw-pod .crown { font-size: 20px; color: var(--gw-gold); margin-bottom: 2px; }
.gw-pod .medal { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #241056; margin-bottom: 4px; }
.gw-pod.p1 .medal { background: var(--gw-gold); }
.gw-pod.p2 .medal { background: #c9d2e3; }
.gw-pod.p3 .medal { background: #d99b62; }

/* Leaderboard rows */
.gw-lb-list { margin: 16px 16px 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--gw-line); }
.gw-lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: linear-gradient(150deg, rgba(40,25,90,.35), rgba(18,11,45,.5));
    border-bottom: 1px solid var(--gw-line);
}
.gw-lb-row:last-child { border-bottom: none; }
.gw-lb-row .rk {
    width: 26px; height: 26px; flex-shrink: 0;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
    background: rgba(255,255,255,.08); color: var(--gw-text);
}
.gw-lb-row.top .rk { color: #241056; }
.gw-lb-row.r1 .rk { background: var(--gw-gold); }
.gw-lb-row.r2 .rk { background: #c9d2e3; }
.gw-lb-row.r3 .rk { background: #d99b62; }
.gw-lb-row .pic {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    background: linear-gradient(135deg, var(--gw-purple-2), var(--gw-pink)); flex-shrink: 0;
}
.gw-lb-row .info { flex: 1; min-width: 0; }
.gw-lb-row .nm { font-size: 14px; font-weight: 700; }
.gw-lb-row .mb { font-size: 12px; color: var(--gw-muted); }
.gw-lb-row .sc { font-size: 15px; font-weight: 800; color: var(--gw-gold); white-space: nowrap; }
.gw-lb-row .sc small { font-size: 10px; color: var(--gw-muted); font-weight: 500; display: block; text-align: right; }

/* ---- FAQ accordion ---- */
.gw-faq { padding: 4px 16px 8px; }
.gw-faq .card {
    background: linear-gradient(150deg, var(--gw-card-2), var(--gw-card));
    border: 1px solid var(--gw-line);
    border-radius: 14px !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.gw-faq .card-header { background: transparent; border: none; padding: 0; }
.gw-faq .faq-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 16px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: #efeaff;
    cursor: pointer;
    position: relative;
}
.gw-faq .faq-title .badge {
    width: 26px; height: 26px; flex-shrink: 0;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--gw-purple), var(--gw-pink));
}
.gw-faq .faq-title::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: auto;
    color: var(--gw-purple-2);
    transition: transform .25s;
}
.gw-faq .faq-title[aria-expanded="true"]::after { transform: rotate(180deg); }
.gw-faq .card-body { padding: 0 16px 16px 54px; }
.gw-faq .card-body p { color: #c9c2e6 !important; font-size: 13.5px; line-height: 1.6; margin: 0; }

/* ---- Tournaments (AllTournaments) ---- */
.gw-tourn {
    margin: 14px 16px 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--gw-card-2), var(--gw-card));
    border: 1px solid var(--gw-line);
}
.gw-tourn .cover {
    position: relative;
    height: 132px;
    background: linear-gradient(135deg, #3a1178, #1a0a44);
}
.gw-tourn .cover img { width: 100%; height: 100%; object-fit: cover; }
.gw-tourn .cover .live {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, #ff4d6d, #d61f8f);
    color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 5px 12px; border-radius: 16px; letter-spacing: .4px;
}
.gw-tourn .cover .pz {
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(6,4,20,.7); backdrop-filter: blur(4px);
    border: 1px solid rgba(249,177,21,.5); border-radius: 12px;
    padding: 6px 12px; text-align: right;
}
.gw-tourn .cover .pz small { display: block; font-size: 9px; color: #d7cffb; text-transform: uppercase; letter-spacing: .5px; }
.gw-tourn .cover .pz b { font-size: 16px; color: var(--gw-gold); }
.gw-tourn .body { padding: 14px 16px 16px; }
.gw-tourn .body h4 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.gw-tourn .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.gw-tourn .chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.05); border: 1px solid var(--gw-line);
    border-radius: 10px; padding: 7px 11px; font-size: 12px; color: #d7cffb;
}
.gw-tourn .chip i { color: var(--gw-purple-2); }
.gw-tourn .chip b { color: #fff; font-weight: 700; }

/* Prize breakdown pills */
.gw-prize-split { display: flex; gap: 8px; margin-bottom: 14px; }
.gw-prize-split .ps {
    flex: 1; text-align: center; padding: 10px 6px; border-radius: 12px;
    border: 1px solid var(--gw-line); background: rgba(255,255,255,.03);
}
.gw-prize-split .ps .r { font-size: 11px; color: var(--gw-muted); }
.gw-prize-split .ps .a { font-size: 14px; font-weight: 800; color: var(--gw-gold); }
.gw-prize-split .ps.g1 { background: linear-gradient(160deg, rgba(249,177,21,.22), transparent); }
.gw-prize-split .ps.g2 { background: linear-gradient(160deg, rgba(201,210,227,.18), transparent); }
.gw-prize-split .ps.g3 { background: linear-gradient(160deg, rgba(217,155,98,.2), transparent); }
