/* Garena Club. Scoped to the player portal; admin and station screens do not load this file. */
.club-body{--club-bg:#121317;--club-panel:#1f2024;--club-line:#5c5d61;--club-muted:#EEEAE2;--club-accent:#ED2939;background:radial-gradient(ellipse at 70% 0,#333438 0,transparent 52%),#121317;color:#f8f4ff;min-height:100dvh}
.club-body::before{background:#121317}
.club-body .ptl{max-width:1160px;min-height:100dvh}
.club-body .ptl-main{flex:1;padding:calc(18px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) calc(110px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));gap:20px;min-width:0}
.club-content{display:flex;flex-direction:column;gap:20px;min-width:0;flex:1}
.club-content>*{min-width:0}
.club-header{min-height:58px;padding-bottom:14px;border-bottom:1px solid #45464a}
.club-header .ptl-logo img{display:block;width:144px;height:45px;object-fit:contain;object-position:left center}
.club-header .ptl-header-actions{gap:15px}
.club-header .ptl-me{align-items:center;gap:12px;padding:0;border:0;background:none}
.club-account-name{display:none;font-weight:600;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.club-body .ptl-lb{background:linear-gradient(145deg,#343539,#212226);border-color:#A8434B;border-radius:14px}
.club-body a{text-underline-offset:3px}
.club-body :is(a,button,input,select,textarea):focus-visible{outline:2px solid #ED2939;outline-offset:4px}
.club-body .ptl-card,.club-body .ptl-item,.club-body .ptl-menu,.club-body .ptl-jp{background:linear-gradient(125deg,#2a2b2fc9,#1c1d21ed);border-color:#5c5d61;box-shadow:inset 0 1px 0 #EEEAE208;border-radius:17px}
.club-body .ptl-card{padding:18px}
.club-body .btn{border-color:#A8434B;background:linear-gradient(120deg,#37383c,#26272b);color:#f6edff;min-height:44px;border-radius:12px;box-shadow:inset 0 1px 0 #ffffff08}
.club-body .btn-primary{background:linear-gradient(105deg,#ED2939,#ED2939);border-color:#ED2939;color:#142004;font-weight:700;box-shadow:0 4px 20px #ED293912}
.club-body .btn-ghost{background:transparent;border-color:transparent}
.club-body .btn:disabled{opacity:.48;box-shadow:none;cursor:default}
.club-body .input{background:#1c1d21;border-color:#5c5d61;border-radius:12px;min-width:0;color:#f8f4ff}
.club-body .input::placeholder{color:#EEEAE2}
.club-body .field{min-width:0}
.club-body .ptl-h2{font-family:Figtree,sans-serif;font-size:18px;line-height:1.35;margin:0}
.club-body .ptl-title{font-family:Figtree,sans-serif}
.club-page-heading{display:flex;flex-direction:column;gap:5px}
.club-page-heading h1{font:700 clamp(25px,3vw,32px)/1.2 Figtree,sans-serif;margin:0;letter-spacing:-.6px}
.club-page-heading p,.club-muted{color:var(--club-muted);font-size:14px;line-height:1.5;margin:0}
.club-dashboard{display:grid;gap:22px;align-items:start}
.club-summary{position:relative;display:flex;flex-direction:column;gap:15px;min-width:0}
.club-welcome{position:relative;isolation:isolate;padding:4px 0 12px;min-height:80px;display:flex;align-items:center;overflow:hidden}
.club-welcome::after{content:'';position:absolute;z-index:-1;right:4px;top:-8px;width:80px;height:105px;opacity:.25;background:url('/garena-assets/club-card.svg') center/contain no-repeat;transform:rotate(-6deg)}
.club-welcome h1{font:700 clamp(24px,3.4vw,32px)/1.2 Figtree,sans-serif;letter-spacing:-.6px;overflow-wrap:anywhere;margin:0 0 9px;padding-right:45px}
.club-tier{display:flex;align-items:center;gap:7px;color:#EEEAE2;font-size:14px}
.club-wallet.ptl-wallet{border:1px solid #A8434B;border-radius:17px;background:linear-gradient(115deg,#333438,#26272b);gap:0;margin:0;padding:14px 4px}
.club-wallet.ptl-wallet>span{padding:0 6px;align-items:center;border:0;border-radius:0;background:none;gap:5px}
.club-wallet.ptl-wallet>span+span{border-left:1px solid #A8434B}
.club-wallet.ptl-wallet>span>span{color:#e7dbee;font-size:13px}
.club-wallet.ptl-wallet b{font:700 clamp(15px,2vw,22px)/1.3 Figtree,sans-serif;letter-spacing:-.3px;white-space:normal;overflow-wrap:anywhere;text-align:center}
.club-wallet svg{color:#EEEAE2}
.club-actions{display:flex;flex-direction:column;gap:10px}
.club-actions .btn{display:flex;gap:12px;padding:0 17px;justify-content:flex-start;min-height:48px;font-size:16px}
.club-actions .club-login{min-height:58px;font-size:17px}
.club-actions .btn span{flex:1;text-align:left}
.club-actions .btn svg:last-child,.club-shortcuts a>svg:last-child,.club-free .ptl-link svg{transform:rotate(180deg);flex:none}
.club-body .ptl-link{display:inline-flex;align-items:center;gap:5px;color:#EEEAE2}
.club-zone-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:8px}
.club-zone-grid>span{background:#313236!important;border:1px solid #56575b;align-items:center;text-align:center}
.club-body .club-free{padding:15px}
.club-free .ptl-h2{font-size:16px}
.club-stack{display:flex;flex-direction:column;gap:8px}
.club-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.club-shortcuts a{display:flex;gap:9px;align-items:center;padding:13px 12px;border:1px solid #626367;border-radius:13px;background:linear-gradient(110deg,#3c3d41,#242529);font-size:14px;font-weight:600;color:#f5edfc;text-decoration:none}
.club-shortcuts a span{flex:1}
.club-shortcuts a>svg:first-child{color:#EE5F6B;flex:none}
.club-featured{display:flex;flex-direction:column;gap:13px;min-width:0}
.club-featured .ptl-row{padding:0 2px}
.club-news-rail{display:flex;overflow-x:auto;gap:15px;scroll-snap-type:x mandatory;padding-bottom:7px}
.club-home-news{flex:0 0 100%;min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;border:1px solid #A8434B;border-radius:17px;overflow:hidden;background:linear-gradient(125deg,#2d2e32,#1e1f23);color:#f7efff;text-decoration:none}
.club-home-news>img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}
.club-home-news>div:last-child{padding:17px;display:flex;flex-direction:column;gap:7px}
.club-home-news h2{font:700 23px/1.22 Figtree,sans-serif;margin:0}
.club-home-news p{font:400 14px/1.6 Figtree,sans-serif;color:#d4c6e0;margin:0;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.club-eyebrow{font-size:11px;letter-spacing:.08em;color:#EEEAE2;text-transform:uppercase}
.club-news-placeholder{min-height:150px;background:url('/garena-assets/club-card.svg') center/74px no-repeat,radial-gradient(ellipse at 50% 70%,#A8313A60,transparent 70%),#26272b}
.club-details{display:grid;gap:20px;align-items:start}
.club-details>section{scroll-margin-top:100px}
.club-body .ptl-seg{display:flex;overflow-x:auto;gap:5px;padding:5px;background:#28292d;border-color:#57585c;max-width:100%}
.club-body .ptl-seg a{flex:1 0 auto;padding:11px 14px;border-radius:10px;color:#EEEAE2}
.club-body .ptl-seg a[aria-current]{background:#ED2939;color:#142004;box-shadow:0 2px 10px #ED293918}
.club-body .ptl-jp{padding:19px;background:linear-gradient(110deg,#3f4044,#26272b);position:relative;overflow:hidden}
.club-body .ptl-jp::after{content:'';position:absolute;right:5px;top:10px;width:90px;height:120px;background:url('/garena-assets/club-card.svg') center/contain no-repeat;opacity:.16;pointer-events:none}
.club-body .ptl-jp>*{position:relative;z-index:1}
.club-body .ptl-shop{grid-template-columns:1fr;gap:12px}
.club-body .ptl-item{display:grid;grid-template-columns:78px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:5px 13px;padding:12px;align-items:center}
.club-body .ptl-item>div:first-child{grid-row:1/3;grid-column:1;min-width:0}
.club-body .ptl-item>div:first-child>div{height:78px!important}
.club-body .ptl-item>span:not(.club-item-price){grid-column:2;grid-row:1;align-self:end}
.club-body .ptl-item>.club-item-price{grid-column:2;grid-row:2;align-self:start;color:#FF6672!important;font-size:14px!important}
.club-body .ptl-item>form{grid-column:3;grid-row:1/3;max-width:110px}
.club-body .ptl-item .btn{padding:8px 12px;white-space:normal;line-height:1.3;font-size:13px;min-height:42px}
.club-gift-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #56575b}
.club-gift-row>span:first-of-type{flex:1;display:flex;flex-direction:column;gap:5px;min-width:0}
.club-gift-row b{font-size:14px;overflow-wrap:anywhere}
.club-gift-row small{font-size:12px;color:#EEEAE2}
.club-gift-row>svg{color:#EE5F6B;flex:none}
.club-gift-row .btn{font-size:13px;padding:0 13px;flex:none}
.club-body .club-conversation{border:1px solid #646569!important;border-radius:15px;padding:14px!important;background:linear-gradient(120deg,#35363a,#26272b);margin:0 0 10px}
.club-body #prijatelji{padding:0;background:none;border:0;box-shadow:none}
.club-body #prijatelji .club-conversation:last-child{margin-bottom:0}
.club-body #thread{padding:16px;border:1px solid #5d5e62;border-radius:17px;background:linear-gradient(120deg,#2b2c30,#191a1e)}
.club-body .club-news-card .bn{height:auto!important;aspect-ratio:16/9}
.club-body .club-news-card{scroll-margin-top:100px}
.club-body .ptl-nav{max-width:600px;height:calc(80px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);background:linear-gradient(180deg,#191a1ef5,#121317);border-color:#4f5054;backdrop-filter:blur(16px)}
.club-body .ptl-nav a{color:#d6c7e2;font-size:11px}
.club-body .ptl-nav a[aria-current]{color:#ED2939}
.club-body .ptl-nav a[aria-current]:not(.ptl-qr) svg{stroke:#ED2939}
.club-body .ptl-nav a[aria-current]:not(.ptl-qr)::before{top:auto;bottom:8px;background:#ED2939;height:2px;width:28px}
.club-body .ptl-qr-btn{width:58px;height:58px;border-radius:21px;background:#ED2939;box-shadow:0 0 0 6px #141519,0 6px 20px #ED29392a}
.club-body .ptl-badge{background:#ec4274;color:white;border:2px solid #1b1c20;font-size:10px;min-width:20px;height:20px;line-height:16px;top:7px;left:calc(50% + 5px)}
.club-body .ptl-badge.ptl-dot{top:13px;height:11px;min-width:11px;width:11px}
.club-body .club-reward-badge{background:#ED2939;color:#172004}
.club-account-menu{color:#f8f1ff;border:1px solid #A8434B;border-radius:23px;background:radial-gradient(ellipse at top right,#434448,#1f2024 65%);width:min(430px,calc(100% - 28px));max-height:calc(100dvh - 60px);padding:20px;box-shadow:0 30px 110px #0009;overflow-y:auto}
.club-account-menu::backdrop{background:#0c0d10bb;backdrop-filter:blur(7px)}
.club-menu-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:17px}
.club-menu-head>div{display:flex;align-items:center;gap:14px}
.club-menu-head h2{font:700 22px Figtree,sans-serif;margin:0}
.club-close{display:grid;place-items:center;border:1px solid #A8434B;width:40px;height:40px;border-radius:12px;background:#343539;color:white;font:24px/1 sans-serif;cursor:pointer}
.club-account-menu .ptl-menu{background:none;border:0;border-radius:0}
.club-account-menu .ptl-menu>a,.club-account-menu .ptl-menu>form>button{padding:14px 4px;font-size:14px;border-color:#4e4f53}
.club-account-menu .ptl-menu>a>svg:last-child{transform:rotate(180deg)}
.club-menu-open{overflow:hidden}
.club-body :is(.ptl-main,.club-news-rail,.ptl-seg,.hscroll,.club-account-menu,#thread){scrollbar-width:thin;scrollbar-color:#A8434B #1f2024}
.club-body ::-webkit-scrollbar{width:7px;height:5px}.club-body ::-webkit-scrollbar-track{background:#1f2024}.club-body ::-webkit-scrollbar-thumb{background:#A8434B;border-radius:8px}
.club-body .ptl:not(.ptl-nav-on){max-width:480px}
.club-body .ptl:not(.ptl-nav-on) .ptl-main{padding-bottom:24px}
@media(min-width:850px){
 .club-body .ptl-main{padding-top:calc(20px + env(safe-area-inset-top));padding-bottom:40px}
 .club-header{min-height:78px;margin-bottom:10px}
 .club-body .ptl-nav{position:absolute;top:calc(20px + env(safe-area-inset-top));bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:470px;max-width:calc(100% - 400px);height:64px;background:transparent;border:0;backdrop-filter:none;padding:0;z-index:2}
 .club-body .ptl-nav a{font-size:13px;gap:6px}
 .club-body .ptl-nav .ptl-qr{justify-content:center;padding:0}
 .club-body .ptl-qr-btn{width:24px;height:24px;background:transparent;box-shadow:none;border-radius:0;margin:0}
 .club-body .ptl-qr-btn svg{stroke:#EEEAE2;width:24px;height:24px}
 .club-body .ptl-nav .ptl-qr b{color:#EEEAE2;font-weight:500;font-size:13px}
 .club-body .ptl-nav .ptl-qr[aria-current] svg{stroke:#ED2939}
 .club-body .ptl-nav a[aria-current]:not(.ptl-qr)::before{bottom:-1px;width:60%;height:2px}
 .club-dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
 .club-summary{padding:22px;border:1px solid #646569;border-radius:22px;background:linear-gradient(125deg,#37383c9c,#1f2024a6)}
 .club-welcome{min-height:88px}
 .club-welcome::after{width:105px;height:140px}
 .club-details{grid-template-columns:repeat(2,minmax(0,1fr))}
 .club-body .ptl-shop{grid-template-columns:repeat(2,minmax(0,1fr))}
 .club-content:not(.club-page-home){max-width:900px;width:100%;align-self:center}
 .club-body .ptl-nav-on .ptl-main{padding-bottom:40px}
 .club-body .ptl-header-actions{gap:18px}
 .club-body .club-news-card .bn{max-height:420px}
}
@media(min-width:1100px){.club-account-name{display:block}.club-body .ptl-nav{max-width:470px;transform:translateX(-55%)}}
@media(max-width:370px){.club-body .ptl-main{padding-left:13px;padding-right:13px}.club-body .ptl-item{grid-template-columns:62px minmax(0,1fr) auto;gap:5px 9px;padding:10px}.club-body .ptl-item>form{max-width:82px}.club-body .ptl-item>div:first-child>div{height:62px!important}.club-body .ptl-seg a{padding:10px}.club-shortcuts{gap:8px}.club-shortcuts a{font-size:12px;padding:12px 9px}.club-wallet.ptl-wallet b{font-size:15px}.club-header .ptl-logo img{width:125px}}
@media(prefers-reduced-motion:reduce){.club-body *{scroll-behavior:auto!important}.club-body .ptl-lb *{animation:none!important}}
.club-time-art,.club-fallback-art{display:flex;align-items:center;justify-content:center;gap:4px;background:radial-gradient(ellipse at center,#5f6064,#26272b);color:#EEEAE2}
.club-time-art{flex-direction:column;gap:0}
.club-time-art img{height:45px;width:35px;object-fit:contain}
.club-time-art b{font:700 13px Figtree,sans-serif}
.club-body .ptl-item>div:first-child svg{max-width:100%;max-height:78px;height:auto;flex-shrink:1}
.club-auth-logo{padding:24px 0 8px}.club-auth-logo img{width:168px;height:auto;max-height:70px;object-fit:contain}
.club-my-rewards{display:flex;align-items:center;gap:12px;text-decoration:none;color:#f6edff;border:1px solid #A8434B;background:linear-gradient(110deg,#343539,#242529);border-radius:13px;padding:13px 15px;font-size:14px;font-weight:600}
.club-my-rewards>span{flex:1}.club-my-rewards>b{font-size:12px;background:#ED2939;color:#182304;min-width:22px;height:22px;line-height:22px;text-align:center;border-radius:12px;padding:0 5px}.club-my-rewards>svg:last-child{transform:rotate(180deg)}
@media(max-width:480px){.club-body .ptl-seg a{padding:10px 8px;font-size:12px;flex:1 1 0}.club-body .ptl-seg{overflow:visible}}

/* Style the viewport too: descendant rules alone leave a white browser scrollbar. */
html:has(> .club-body){color-scheme:dark;scrollbar-width:thin;scrollbar-color:#A8434B #121317}
.club-body{color-scheme:dark;scrollbar-width:thin;scrollbar-color:#A8434B #121317}
html:has(> .club-body)::-webkit-scrollbar,.club-body::-webkit-scrollbar{width:6px;height:5px}
html:has(> .club-body)::-webkit-scrollbar-track,.club-body::-webkit-scrollbar-track{background:#121317}
html:has(> .club-body)::-webkit-scrollbar-thumb,.club-body::-webkit-scrollbar-thumb{background:#A8434B;border:1px solid #121317;border-radius:999px}
html:has(> .club-body)::-webkit-scrollbar-thumb:hover,.club-body::-webkit-scrollbar-thumb:hover{background:#B94A53}
html:has(> .club-body)::-webkit-scrollbar-corner,.club-body::-webkit-scrollbar-corner{background:#121317}
@media(forced-colors:active){html:has(> .club-body),.club-body{scrollbar-color:auto;color-scheme:normal}}


/* Persistent active-competition counter belongs to the trophy, never the gift shop. */
.club-body .ptl-lb .ptl-lb-dot{display:none!important}
.club-competition-badge{position:absolute;right:-7px;top:-7px;min-width:20px;height:20px;padding:0 4px;border:2px solid #191a1e;border-radius:999px;background:#ED2939;color:#142004;font:700 11px/16px Figtree,sans-serif;font-style:normal;text-align:center;z-index:2;pointer-events:none}
.club-competition-badge[hidden]{display:none!important}

/* Gift shop beside avatar; competitions and their persistent count in primary navigation. */
.club-body .ptl-nav .club-competition-badge{right:auto;left:calc(50% + 5px);top:7px}
.club-body .ptl-nav .club-competition-link.has-campaign{color:#ED2939}
.club-body .ptl-nav .club-competition-link.has-campaign>svg{stroke:#ED2939;filter:drop-shadow(0 0 5px #ED293940)}
.club-body .club-rewards-link[aria-current]{color:#ED2939;border-color:#ED2939}
