@font-face { font-family: 'Poppins'; src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'HindSiliguri'; src: url('../assets/fonts/HindSiliguri-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'HindSiliguri'; src: url('../assets/fonts/HindSiliguri-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Found'; src: url('../assets/fonts/Found.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('../assets/fonts/Lexend-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bowlby'; src: url('../assets/fonts/BowlbyOneSC-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --bg: #101622;
  --header: #1D2637;
  --card: #131B28;
  --panel: #1A2030;
  --dark: #0F1521;
  --yellow: #FF7A18;
  --yellow2: #FF9A3D;
  --orange: #FF7A18;
  --orange-hi: #FF9A3D;
  --orange-deep: #E8590C;
  --orange-soft: rgba(255, 122, 24, .14);
  --orange-glow: rgba(255, 122, 24, .32);
  --gray: #9E9E9E;
  --lgray: #BDBDBD;
  --text2: #8A8A8C;
  --blue: #2196F3;
  --green: #398E3D;
  --green2: #4BB050;
  --red: #C62827;
  --bright-red: #E43834;
  --nav: #2B3340;
  --nav-active: #585E6C;
  --radius: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at 50% 15%, #171d2a, #04060a 72%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}
button { font-family: inherit; border: 0; background: none; color: inherit; padding: 0; cursor: pointer; }
input, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.hidden { display: none !important; }

#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.85);
}
@media (min-width: 520px) {
  #app { height: min(920px, 100vh); height: min(920px, 100dvh); border-radius: 20px; border: 1px solid #232a38; }
}
#stage { position: absolute; inset: 0; }

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.screen.anim-in { animation: screenIn 0.28s cubic-bezier(.22,.8,.3,1); }
.screen.anim-back { animation: screenBack 0.26s ease; }
.screen-body { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.screen-body::-webkit-scrollbar { width: 0; height: 0; }

.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ico { display: block; width: 100%; height: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  height: 60px;
  flex: none;
  background: var(--header);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0 0 12px;
  position: relative;
  z-index: 5;
}
.topbar .back { width: 27px; height: 27px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.topbar h1 { font-size: 20px; font-weight: 400; margin: 0 0 0 30px; flex: 1; letter-spacing: .2px; }
.topbar .tb-right { display: flex; align-items: center; gap: 12px; margin-right: 12px; color: #fff; flex: none; }
.topbar .tb-right > .ic { width: 44px; height: 44px; padding: 8px; }
.topbar .tb-right > button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #fff; }
.topbar.dark { background: #101622; }
.topbar.cat { background: #151B29; }

/* ---------- Home header ---------- */
.home-head {
  height: 65px;
  flex: none;
  background: var(--header);
  display: flex;
  align-items: center;
  padding-right: 10px;
  z-index: 6;
}
.home-head .app-ic { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; flex: none; margin: 0 10px 0 15px; }
.home-head .app-ic img { width: 100%; height: 100%; object-fit: cover; }
.home-head .brand { flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; margin: 0 4px 0 15px; }
.home-head .brand img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.notice-btn { position: relative; width: 45px; height: 45px; color: #fff; display: flex; align-items: center; justify-content: center; padding: 5px; flex: none; }
.notice-btn img {
  width: 25px; height: 25px; object-fit: contain; margin-bottom: 5px; background: #FF7A18;
  -webkit-mask: url('../assets/images/notice.png') center / contain no-repeat;
  mask: url('../assets/images/notice.png') center / contain no-repeat;
}
.badge-dot {
  position: absolute; top: 1px; right: 1px; width: 19px; height: 19px; padding: 0;
  border-radius: 50%; background: #D50000; color: #000; font-size: 14px; line-height: 19px; text-align: center;
  transform: translateX(7px);
}
.balance-chip {
  display: flex; align-items: center; height: 28px; padding: 0 5px 0 0; margin-left: 5px;
  border-radius: 14px; background: #fff; color: #000; font-weight: 600; font-size: 20px; flex: none;
}
.balance-chip .cur {
  width: 20px; height: 20px; border-radius: 50%; background: #000; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; margin: 0 5px;
}

/* ---------- Slider ---------- */
.slider-wrap { background: var(--bg); }
.slider { height: 160px; position: relative; overflow: hidden; flex: none; background: #0b111c; }
.slider-track { display: flex; height: 100%; width: 100%; transition: transform .45s cubic-bezier(.3,.8,.3,1); }
.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.slide .shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,10,18,.94) 0%, rgba(6,10,18,.72) 45%, rgba(6,10,18,.15) 100%);
}
.slide .copy { position: absolute; left: 15px; bottom: 20px; right: 100px; }
.slide .tag {
  display: inline-flex; align-items: center; gap: 4px; background: rgba(255,235,60,.14);
  color: var(--yellow); border: 1px solid rgba(255,122,24,.45); font-size: 9px; letter-spacing: 1.6px;
  padding: 3px 8px; border-radius: 10px; font-weight: 500;
}
.slide h2 { margin: 8px 0 3px; font-size: 23px; line-height: 1.08; font-weight: 600; letter-spacing: .5px; }
.slide p { margin: 0; font-size: 10.5px; color: #C7CDD9; }
.slide .go {
  position: absolute; right: 12px; bottom: 22px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center;
  justify-content: center; color: #fff;
}
.slider-dots { height: 25px; margin-top: 7px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.slider-dots span { width: 8px; height: 8px; border-radius: 50%; background: #3A3F4B; opacity: .75; transition: width .26s, background .26s, opacity .26s; }
.slider-dots span.on {
  width: 24px; border-radius: 10px; opacity: 1;
  background: linear-gradient(135deg, #01B7CD, #009BA8);
  box-shadow: 0 0 6px rgba(0,229,255,.53);
}

/* ---------- Home content ---------- */
.home-scroll { background: var(--bg); padding-bottom: 8px; }
.support-card {
  margin: 10px 13px 0; padding: 12px 8px; border-radius: 14px;
  background: linear-gradient(100deg, #143350, #1F2442);
  border: 1px solid #1D3D64;
  display: flex; align-items: center; gap: 5px;
}
.support-card .round-ic {
  width: 45px; height: 45px; border-radius: 50%; background: #183B61;
  display: flex; align-items: center; justify-content: center; color: #5EC8F2; flex: none; margin-left: 15px;
}
.support-card .txt { flex: 1; min-width: 0; padding: 5px; }
.support-card .txt b { display: block; font-size: 16px; font-weight: 600; }
.support-card .txt small { display: block; font-size: 12px; color: #74809A; margin-top: 1px; }
.contact-pill {
  display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; flex: none;
  border-radius: 20px; background: linear-gradient(120deg, #214778, #3F2967);
  border: 1px solid #4F587F; font-size: 12px; margin-right: 10px;
}
.contact-pill .ic { width: 14px; height: 14px; }

.section-title { text-align: center; font-size: 16px; font-weight: 600; margin: 10px 0 0; letter-spacing: .4px; }
.game-row { position: relative; margin: 10px 10px 0; cursor: pointer; }
.game-row.ludo { margin-top: 0; margin-bottom: 20px; }
.game-row:active { opacity: .82; }
.game-card {
  margin: 8px; height: 100px; padding: 0 16px; border-radius: 8px;
  display: flex; align-items: center;
  background-repeat: no-repeat; background-size: 100% 100%;
}
.game-row.ff .game-card { background-image: url('../assets/images/freefire_background_card_image.png'); }
.game-row.ludo .game-card { background-image: url('../assets/images/ludo_background_card_image.png'); }
.game-row .logo-box {
  width: 55px; height: 55px; margin: 0 4px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.game-row.ff .logo-box { background: #303437; }
.game-row.ludo .logo-box { background: #1D2236; }
.game-row .logo-box img { width: 40px; height: 40px; object-fit: contain; }
.game-row .info { flex: 1; min-width: 0; margin-left: 4px; padding: 8px; }
.game-row .info b { display: block; font-size: 16px; font-weight: 600; }
.game-row .info small { display: block; font-size: 12px; color: #9E9E9E; letter-spacing: .5px; margin-top: 2px; font-family: 'Found', sans-serif; }
.game-row .count {
  position: absolute; top: 0; right: 0;
  width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); color: #000;
  font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}

/* bottom nav */
.bottom-nav {
  flex: none; background: #2C3544; display: flex; gap: 0; padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  border-radius: 70px 70px 0 0; box-shadow: 0 -3px 5px rgba(0, 0, 0, .3);
}
.nav-btn {
  flex: 1; margin: 0 10px; padding: 5px 15px; border-radius: 28px; display: flex; align-items: center; justify-content: center;
  color: #9E9E9E; transition: .18s; background: transparent; border: 3px solid transparent;
}
.nav-btn .ic { width: 25px; height: 25px; }
.nav-btn.on { background: #585E6C; border-color: #777B84; color: #fff; }

/* ---------- Profile tab ---------- */
.profile-wrap { background: #192231; padding: 0 0 24px; min-height: 100%; }
.profile-top {
  background: linear-gradient(45deg, #1D2637, #222E3E); border-radius: 0 0 40px 40px; padding: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .45);
}
.profile-id { height: 120px; display: flex; align-items: center; }
.avatar {
  width: 65px; height: 65px; border-radius: 50%; flex: none; padding: 2px;
  background: linear-gradient(45deg, var(--orange-hi), var(--orange), var(--orange-deep));
}
.lottie-holder { display: block; width: 100%; height: 100%; }
.avatar .lottie-holder { width: 61px; height: 61px; border-radius: 50%; overflow: hidden; background: #0E1726; }
.avatar .lottie-holder svg { display: block; width: 100%; height: 100%; }
.profile-id .who { flex: 1; min-width: 0; padding-left: 10px; }
.profile-id .who b { display: block; font-size: 18px; font-weight: 600; }
.profile-id .who .phone,
.profile-id .who .email { display: block; font-size: 12px; color: #8A8A8C; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-row { display: flex; align-items: center; gap: 15px; padding-top: 6px; }
.uid-chip, .edit-chip {
  display: inline-flex; align-items: center; height: 25px; padding: 0 10px 0 0; border-radius: 13px; font-size: 11px;
}
.uid-chip { background: #171F2C; color: #8A8A8C; box-shadow: inset 0 0 0 2px #353945; }
.uid-chip img { width: 13px; height: 13px; object-fit: contain; margin: 0 3px 0 10px; }
.edit-chip { background: #3A2619; color: var(--yellow); font-weight: 600; box-shadow: inset 0 0 0 2px #9D9C5C; }
.edit-chip .ic { width: 13px; height: 13px; margin: 0 5px 0 10px; }

.balance-card {
  background: linear-gradient(135deg, #151B27, #1C2431); border-radius: 35px; margin: 10px 10px 0;
  padding: 0 0 5px; box-shadow: inset 0 0 0 3px #353945;
}
.balance-label { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 5px; font-size: 11px; font-weight: 600; color: #fff; }
.balance-label .ic { width: 14px; height: 14px; margin-left: 8px; color: #C9CDD4; }
.bal-row { display: flex; align-items: center; padding: 5px; margin-right: 10px; }
.bal-row .cur { font-size: 14px; color: #8A8A8C; padding-left: 8px; }
.bal-row .amt { font-size: 25px; font-weight: 600; line-height: 1.25; flex: 1; padding: 0 5px; }
.add-pill {
  display: flex; align-items: center; gap: 5px; height: 29px; padding: 0 10px 0 5px; border-radius: 22px;
  background: #4CB050; color: #fff; font-size: 12px; font-weight: 600; flex: none;
}
.add-pill .ic { width: 19px; height: 19px; }
.bal-bottom { display: flex; align-items: center; padding: 0 5px; }
.winning-chip {
  height: 26px; border-radius: 20px; background: #131925; box-shadow: inset 0 0 0 2.2px #353945;
  display: flex; align-items: center; gap: 6px; padding: 0 5px 0 8px; font-size: 11px; color: #8A8A8C; flex: none;
}
.winning-chip b {
  background: linear-gradient(135deg, #FDC72F, #FEE238); color: #000; border-radius: 18px;
  padding: 3px 6px; font-size: 11px; font-weight: 600;
}
.bal-stats { flex: 1; display: flex; align-items: center; margin-left: 6px; }
.bal-stats .stat { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1px 3px; padding: 4px 0; position: relative; }
.bal-stats .stat + .stat::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: #8A8A8C; }
.bal-stats .stat .ic { width: 14px; height: 14px; color: #C9CDD4; }
.bal-stats .stat img { width: 15px; height: 15px; object-fit: contain; }
.bal-stats .stat b { font-size: 16px; font-weight: 600; line-height: 1.1; }
.bal-stats .stat small { width: 100%; text-align: center; font-size: 10px; color: #8A8A8C; line-height: 1.2; }

.acct-label { font-size: 14px; font-weight: 600; color: #8A8A8C; margin: 20px 15px 0; letter-spacing: .2px; }
.menu-list { display: flex; flex-direction: column; }
.menu-row {
  display: flex; align-items: center; gap: 10px; background: #131B28; border-radius: 22px;
  box-shadow: inset 0 0 0 2.2px #353945;
  margin: 10px 15px 0; padding: 0 8px; min-height: 42px; font-size: 14px; cursor: pointer;
}
.menu-row .m-ic { width: 19px; height: 19px; flex: none; margin-left: 5px; }
.menu-row .m-ic img { width: 100%; height: 100%; object-fit: contain; }
.menu-row .m-ic .ic { width: 19px; height: 19px; color: #C9CDD4; }
.menu-row span.grow { flex: 1; }
.menu-row .chev { width: 15px; height: 15px; color: #5C626E; }
.menu-row .new { font-size: 10px; color: #fff; background: #4CB050; border-radius: 10px; padding: 2px 6px; margin-right: 10px; }
.menu-row.logout { background: #281E29; color: #F64136; box-shadow: inset 0 0 0 2.2px #65292B; }
.menu-row.logout .m-ic .ic { color: #F64136; }

/* ---------- Auth ---------- */
.auth-screen { background: #101622; overflow-y: auto; }
.auth-inner {
  min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px; text-align: center;
}
.auth-topspacer { flex: 1; min-height: 100px; width: 10px; }
.auth-bottomspacer { flex: 1; min-height: 50px; width: 100%; }
.auth-logo { width: 246px; height: 123px; flex: none; margin: 0 auto; }
.auth-logo img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.55)) drop-shadow(0 0 24px rgba(255,122,24,.22));
}
.auth-title { font-size: 40px; font-weight: 600; margin: 0; line-height: 1.2; }
.auth-sub { font-size: 25px; font-weight: 400; line-height: 1.3; transform: translateY(-10px); }
.email-row {
  width: calc(100% - 80px); display: flex; align-items: center; margin: 10px 40px; padding: 3px;
  background: transparent; text-align: left;
}
.email-row img { width: 35px; height: 25px; object-fit: fill; margin: 0 5px 0 10px; flex: none; }
.email-row input {
  flex: 1; min-width: 0; margin: 10px 10px 10px 0; background: transparent; border: 0; outline: 0;
  color: #fff; font-size: 14px; padding: 0;
}
.email-row input::placeholder { color: #9E9E9E; }
.btn-continue {
  position: relative; overflow: hidden;
  width: calc(100% - 80px); height: 48px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-hi), var(--orange) 55%, var(--orange-deep)); color: #1A0B02;
  font-size: 20px; font-weight: 600; margin: 10px 40px 0; flex: none;
  box-shadow: 0 10px 24px -8px var(--orange-glow), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-continue::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.42) 50%, transparent 65%);
  animation: cbtn-shine 3.6s ease-in-out infinite;
}
.btn-continue:active { transform: scale(.97); filter: brightness(.96); }
@keyframes cbtn-shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.auth-terms { width: calc(100% - 16px); max-width: 360px; font-size: 9px; color: #9E9E9E; line-height: 1.7; margin: 8px 0 0; }
.auth-terms a { color: #37D9DC; font-size: 11px; font-weight: 600; text-decoration: none; }
.auth-messenger { width: 38px; height: 38px; margin: 0 auto; flex: none; }
.auth-help { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 16px; color: #fff; margin-top: 5px; }
.auth-help a { font-size: 16px; font-weight: 600; color: #08F4F4; text-decoration: none; padding: 1px; }
.auth-help.small { margin-top: 5px; margin-bottom: 105px; }

.otp-screen .auth-inner { justify-content: center; }
.otp-screen .auth-title { margin-top: 25px; }
.otp-screen .auth-sub { transform: translateY(-6px); }
.otp-boxes { width: calc(100% - 80px); display: flex; gap: 4px; margin: 20px 40px 0; padding: 5px; }
.otp-boxes input {
  flex: 1 1 0; min-width: 0; height: 50px; border-radius: 8px; background: #525252; border: 1.5px solid transparent;
  padding: 8px; color: #fff; font-size: 20px; text-align: center; outline: 0; transition: .15s;
}
.otp-boxes input:focus { border-color: var(--yellow); background: #5c5c5c; }
.otp-btn { font-size: 25px; margin-top: 10px; }
.demo-hint { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 10px; color: #9E9E9E; }
.demo-hint .ic { width: 14px; height: 14px; }
.demo-hint b { color: var(--orange-hi); font-weight: 600; letter-spacing: 1px; }
.otp-terms { margin-top: 8px; margin-bottom: 155px; }

/* ---------- Category ---------- */
.cat-body { padding: 0; background: #101622; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; }
.cat-card { height: 235px; margin: 10px 5px; padding: 3px; border-radius: 12px; background: #42465F; overflow: hidden; cursor: pointer; }
.cat-frame { height: 100%; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #546F7A; }
.cat-img { flex: 1; min-height: 0; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: fill; display: block; }
.cat-meta { flex: none; background: #262626; padding: 0 10px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.cat-meta b { font-size: 16px; font-weight: 400; color: #fff; margin-top: 10px; }
.cat-meta small { font-size: 11px; font-weight: 600; color: #999999; margin: 2px 0 10px; }

/* ---------- Free Fire list ---------- */
.ff-tabs { height: 80px; display: flex; flex: none; background: var(--bg); }
.ff-tab { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-family: 'HindSiliguri', sans-serif; font-weight: 700; color: #B9BABE; padding: 12px; }
.ff-tab.on::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 50%; height: 3px; background: #FF8A2B; border-radius: 50px 50px 0 0;
}
.ff-tab .tab-ico { width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ff-tab .tab-ico.trophy { width: 25px; height: 25px; margin-bottom: -5px; }
.ff-divider { flex: none; height: 1px; background: #C6C6D2; }
.ff-tab.on { color: #FF8A2B; }
.ff-body { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 0 16px; background: var(--bg); }
.ff-body::-webkit-scrollbar { width: 0; }
.ff-card {
  background: #fff; color: #111; border-radius: 22px; margin: 10px 5px 5px 10px;
  overflow: hidden;
}
.ff-head { display: flex; align-items: flex-start; }
.ff-logo { width: 58px; height: 58px; background: #FAFAFC; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; margin: 15px 7px 5px 10px; padding: 5px; }
.ff-logo img { width: 48px; height: 48px; object-fit: contain; }
.ff-title { flex: 1; min-width: 0; }
.ff-title b { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; margin: 15px 5px 0; }
.ff-time { display: flex; align-items: center; gap: 4px; color: #616161; font-size: 14px; margin: 5px 5px 0; }
.ff-time .ic { width: 17px; height: 17px; color: #616161; }
.ff-phone { width: 21px; height: 21px; border-radius: 50%; background: #F5F5F5; color: #616161; display: flex; align-items: center; justify-content: center; flex: none; }
.ff-phone .ic { width: 15px; height: 15px; }
.ff-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 5px 5px 10px; }
.ff-chip { display: inline-flex; align-items: center; border-radius: 360px; border: 2px solid; padding: 3px; font-size: 12px; font-weight: 500; }
.ff-chip.map { background: #E8F6E9; border-color: #BAD8C0; color: #398E3D; }
.ff-chip.type { background: #E4F2FD; border-color: #A3C7E1; color: #2774BC; }
.ff-stats { display: flex; align-items: stretch; margin: 10px 10px 0; }
.ff-stat { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ff-stat .lbl { display: block; font-size: 10px; color: #767676; letter-spacing: .8px; font-weight: 500; }
.ff-stat .val { display: block; font-size: 36px; font-weight: 600; line-height: 1.15; letter-spacing: -.5px; margin-top: 7px; }
.ff-stat .val.prize { color: #398E3D; }
.ff-stat .view { display: inline-block; margin: 0 0 5px; background: #E4F2FD; color: #2774BC; border-radius: 360px; padding: 3px 5px; font-size: 10px; font-weight: 500; }
.ff-div { width: 1px; height: 40px; background: #BDBDBD; align-self: center; }
.ff-prog-row { display: flex; align-items: flex-start; margin: 2px 5px 0; }
.ff-progress { flex: 1 1 auto; min-width: 0; }
.ff-progress .bar { margin: 0 5px; }
.bar { height: 8px; border-radius: 360px; background: #EAF6FF; overflow: hidden; }
.bar i { display: block; height: 100%; background: #3FA9FF; }
.bar.red { background: #FFEAEA; }
.bar.red i { background: #FF3B3B; }
.ff-prog-labels { display: flex; align-items: center; justify-content: space-between; margin: 5px 5px 0; }
.need-pill { background: #E4F2FD; color: #2774BC; border: 2px solid #A3C7E1; border-radius: 360px; padding: 3px; font-size: 11px; font-weight: 500; }
.ff-card.closed .need-pill, .ludo-card.closed .need-pill { background: #FEEBED; border-color: #C7AAAE; color: #E43834; }
.join-pill { background: #F5F5F5; color: #636363; border: 2px solid #DFDFDF; border-radius: 360px; padding: 3px; font-size: 11px; font-weight: 500; }
.ff-join {
  height: 42px; width: fit-content; flex: none; margin: 0 12px 5px 5px; padding: 0 30px;
  display: flex; align-items: center; justify-content: center; background: #398E3D; color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: .3px; border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.ff-join.closed { background: #D32F2E; }
.ff-join:disabled { opacity: .95; cursor: default; }
.ff-card .room-wrap, .ludo-card .room-wrap {
  background: #fff; margin: 10px 20px 8px; padding: 2px 5px 10px; border: 1px dashed #636363; border-radius: 10px;
}
.ludo-card .room-wrap { margin-bottom: 10px; }
.ff-card .room-line, .ludo-card .room-line { margin-top: 8px; }
.ff-card .room-line small, .ludo-card .room-line small { color: #636363; }
.ff-card .room-line b, .ludo-card .room-line b { color: #398E3D; }
.ff-card .copy-btn, .ludo-card .copy-btn { color: #636363; }
.ff-card .room-note, .ludo-card .room-note { color: #E53935; }
.ff-timer { background: #4DAE51; color: #fff; display: flex; align-items: center; justify-content: center; padding: 1px 0; margin-top: 10px; border-radius: 0 0 22px 22px; }
.ff-card.closed .ff-timer { background: #D4302F; }
.ff-timer .clock { width: 25px; height: 25px; border-radius: 50%; background: #70BE73; display: flex; align-items: center; justify-content: center; flex: none; }
.ff-card.closed .ff-timer .clock { background: #EC5E5C; }
.ff-timer .clock .ic { width: 17px; height: 17px; }
.ff-timer .stext { font-size: 10px; font-weight: 500; margin-left: 16px; }
.ff-timer .time { font-family: 'HindSiliguri', sans-serif; font-weight: 700; font-size: 16px; margin: 15px 0 15px 6px; }

.result-list-card { background: #fff; color: #111; border-radius: 0; margin: 10px 5px 5px 10px; overflow: hidden; }
.result-list-card .rl-head { display: flex; align-items: flex-start; }
.result-list-card .rl-title { flex: 1; min-width: 0; }
.result-list-card .rl-title b { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; margin: 15px 5px 0; }
.rl-btn {
  width: calc(100% - 28px); height: 45px; margin: 12px 14px 18px; border-radius: 0; border: 0; background: #465A65; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: .3px;
}
.rl-btn .ic { width: 25px; height: 25px; margin: 10px 0; }

/* ---------- Join / match detail ---------- */
.tint-ic { display: inline-block; flex: none; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.join-body { padding-bottom: 15px; background: var(--bg); }
.join-art { background: none; }
.join-title { padding: 15px 15px 0; }
.join-title h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.join-time { display: flex; align-items: center; gap: 4px; color: #fff; font-size: 14px; margin-top: 7px; padding: 0 15px; }
.join-time .ic { width: 17px; height: 17px; color: #fff; margin-left: 8px; flex: none; }
.join-time > span:last-child { padding: 2px 8px 2px 0; }
.join-chips { margin-top: 15px; }
.jrow { display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.jrow + .jrow { margin-top: 7px; }
.jchip { display: inline-flex; align-items: center; height: 23px; border-radius: 360px; padding: 0 8px 0 0; font-size: 12px; font-weight: 500; color: #fff; }
.jchip .ic { width: 15px; height: 15px; margin: 0 4px 0 8px; flex: none; }
.jchip.green { background: #42A147; }
.jchip.blue { background: #1B8AE6; }
.jchip.android { background: #424242; }
.jchip.purple { background: #8828A5; }
.jchip.indigo { background: #3949AB; }
.join-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 15px 15px 15px 12px; }
.join-stat { display: flex; align-items: flex-start; min-height: 64px; padding-top: 9px; }
.jic { width: 29px; height: 29px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex: none; margin-left: 15px; }
.jmeta { padding: 9px 0 0 10px; min-width: 0; }
.join-stat .lbl { display: block; font-size: 10px; color: #9E9E9E; line-height: 1.3; white-space: nowrap; }
.join-stat .val { display: block; font-size: 20px; font-weight: 600; line-height: 1.3; color: #fff; }
.join-stat.pool-cell { align-items: center; justify-content: center; padding-top: 0; }
.join-stat.pool-cell.col2 { grid-column: 2; }
.prize-pool {
  display: inline-flex; align-items: center; height: 37px; padding: 0 13px;
  border: 0; border-radius: 16px; background: #35484F; color: #fff; font-size: 12px; font-weight: 600;
}
.prize-pool .ic { width: 19px; height: 19px; margin-right: 7px; }
.prize-sheet { padding: 0 16px 50px; }
.prize-sheet .sheet-handle { height: 5px; margin-top: 40px; }
.prize-head { display: flex; align-items: center; padding: 20px 0 0; }
.prize-ico { width: 28px; height: 28px; margin: 0 6px 0 15px; flex: none; background: #F29919; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.prize-head h3 { margin: 0 0 0 15px; font-size: 20px; font-weight: 600; color: #111; }
.prize-head small { display: block; margin: 2px 0 0 15px; font-size: 16px; color: #757575; }
.prize-note { margin: 20px 0 0; text-align: center; font-size: 16px; font-weight: 600; line-height: 1.4; color: #F44336; }
.rules-card { margin: 10px 12px; border-radius: 10px; overflow: hidden; background: #1A2030; }
.rules-head { background: #212121; display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.rules-head b { margin-left: 10px; font-size: 14px; font-weight: 600; color: #F4EA57; line-height: 1.3; }
.rules-body { background: #1A2030; }
.tutorial {
  height: 100px; margin: 15px 15px 0; border-radius: 15px; background: transparent;
  display: flex; align-items: center; justify-content: center; gap: 0; cursor: pointer;
}
.tutorial img { width: 50px; height: 50px; object-fit: contain; }
.tutorial b { font-size: 14px; font-weight: 600; color: #fff; }
.rules-text { font-size: 12px; line-height: 1.7; color: #fff; white-space: pre-line; margin: 15px 15px 20px; }

.view-part { display: flex; justify-content: center; margin: 5px 0 0; }
.view-part button {
  display: flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 360px;
  background: #68548F; border: 0; color: #fff; font-size: 14px; font-weight: 500; gap: 7px;
}
.view-part .ic { width: 22px; height: 22px; }
.part-head { display: flex; align-items: center; margin-top: 5px; padding-left: 13px; }
.part-head b { font-size: 16px; font-weight: 600; color: #F4EA57; flex: 1; padding: 10px 14px 9px 0; }
.part-head button { width: 34px; height: 34px; padding: 5px; margin-right: 13px; color: #fff; flex: none; }
.part-card { margin: 15px 15px 0; background: #1A2030; border-radius: 12px; padding: 5px 0; overflow: hidden; }
.part-card.joiners { background: transparent; padding: 0 0 5px; }
.joiner-row { display: flex; align-items: center; height: 45px; background: #1A2030; border-radius: 8px; }
.joiner-rank { margin-left: 8px; height: 25px; padding: 0 10px; border-radius: 360px; background: #242C3F; color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.joiner-name { margin-left: 5px; padding: 0 5px; font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.joiner-dev { height: 5px; background: #101622; }
.part-row { display: flex; align-items: center; height: 45px; background: #1E2430; margin-top: 1px; }
.part-rank-wrap { width: 60px; margin-left: 5px; display: flex; align-items: center; justify-content: center; flex: none; }
.part-rank { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 6px; background: #2D343E; font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; color: #fff; }
.part-name { flex: 1; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part-kills { width: 40px; text-align: center; font-size: 12px; font-weight: 500; flex: none; }
.part-prize { width: 90px; margin-right: 5px; text-align: center; font-size: 12px; font-weight: 500; flex: none; }
.part-empty { padding: 15px; text-align: center; font-size: 14px; font-weight: 500; color: #fff; background: #1A2030; }

.room-wrap { flex: none; margin: 10px 20px 8px; border: 1px dashed #FF7A18; border-radius: 10px; padding: 2px 5px 10px; }
.room-line { display: flex; align-items: center; margin-top: 8px; }
.room-line .meta { flex: 1; min-width: 0; }
.room-line small { display: block; font-size: 10px; color: #BDBDBD; font-weight: 500; letter-spacing: .4px; }
.room-line b { display: block; font-size: 14px; font-weight: 600; color: #FF7A18; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { width: 29px; height: 29px; color: #fff; padding: 5px; flex: none; margin: 0 5px; }
.room-note { font-size: 12px; font-weight: 500; color: #E53935; margin: 2px 0 0; }
.join-dock { flex: none; }
.countdown-bar { background: #4CB050; display: flex; align-items: center; }
.countdown-bar.closed { background: #F44336; }
.countdown-bar .ic { width: 17px; height: 17px; margin-left: 12px; flex: none; }
.countdown-bar .time { font-family: 'Found', sans-serif; font-size: 12px; margin: 8px 0 8px 6px; color: #fff; }
.countdown-bar .spacer { flex: 1; height: 10px; }
.countdown-bar .spots {
  font-family: 'HindSiliguri', sans-serif; font-weight: 400; font-size: 12px;
  margin: 8px 12px 8px 5px; display: inline-block; color: #fff;
}
.join-bar {
  background: #FF7A18; color: #000; width: 100%; padding: 8px 0; border-radius: 0; border: 0;
  font-family: 'HindSiliguri', sans-serif; font-weight: 700; font-size: 25px; letter-spacing: 0;
  display: flex; align-items: center; justify-content: center;
}
.join-bar:disabled { background: #FF7A18; color: #000; }
.join-bar.joined { background: #FF7A18; color: #000; }
.join-bar.closed { background: #757575; color: #fff; }
.join-bar:active:not(:disabled) { background: #E5D335; }

/* ---------- Ludo ---------- */
.ludo-tabs { display: flex; align-items: center; justify-content: center; padding: 15px 10px 0; background: var(--bg); flex: none; overflow-x: auto; }
.ludo-tabs::-webkit-scrollbar { display: none; }
.ludo-tab {
  padding: 0; border-radius: 15px; border: 2px solid #78777F; background: #9E9E9E; color: #000;
  font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 500; display: flex; align-items: center; flex: none; margin-right: 10px;
}
.ludo-tab:active { background: #AAAAAA; }
.ludo-tab:first-child { margin-left: 0; }
.ludo-tab:last-child { margin-right: 0; }
.ludo-tab .tab-ic { width: 19px; height: 19px; margin: 0 -10px 0 10px; flex: none; display: flex; align-items: center; justify-content: center; }
.ludo-tab .tab-ic .ic { width: 19px; height: 19px; }
.ludo-tab .lbl { padding: 10px 17px; }
.ludo-tab.on { background: #2196F3; border-color: #2196F3; border-width: 0; color: #fff; }
.ludo-tab.on:active { background: #5EA5DD; }
@media (max-width: 374px) {
  .ludo-tabs { padding: 15px 8px 0; }
  .ludo-tab { font-size: 14px; margin-right: 8px; }
  .ludo-tab .lbl { padding: 10px 12px; }
}
.ludo-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 22px 0 5px; background: var(--bg); }
.ludo-body::-webkit-scrollbar { width: 0; }
.ludo-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; }
.ludo-empty-art { width: 45px; height: 45px; }
.ludo-empty p { margin: 10px 0 0; font-size: 16px; color: #fff; }
.ludo-card { background: #fff; color: #111; border-radius: 22px; margin: 10px 5px 5px 10px; padding-bottom: 20px; overflow: hidden; }
.ludo-head { display: flex; align-items: flex-start; }
.ludo-logo { width: 50px; height: 50px; flex: none; margin: 12px 7px 5px 10px; display: flex; align-items: center; justify-content: center; }
.ludo-logo img { width: 50px; height: 50px; object-fit: contain; }
.ludo-title { flex: 1; min-width: 0; }
.ludo-title b { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; margin: 12px 5px 0; }
.ludo-title .ff-time { margin-top: 2px; }
.ludo-title .ff-chips { margin: 2px 5px 10px; }
.ludo-stats { display: flex; align-items: stretch; margin: 10px 10px 0; }
.ludo-stat { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ludo-stat small { display: block; font-size: 10px; color: #767676; letter-spacing: .8px; font-weight: 500; }
.ludo-stat b { font-size: 36px; font-weight: 600; letter-spacing: -.5px; margin-top: 7px; line-height: 1.15; }
.ludo-card.closed .need-pill { background: #FEEBED; border-color: #C7AAAE; color: #E43834; }
.upload-bg-wrap { padding: 10px 10px 20px; background: var(--bg); }
.upload-bg { width: calc(100% - 30px); height: 170px; object-fit: cover; border-radius: 8px; margin: 35px 15px 15px; }
.upload-room {
  width: calc(100% - 28px); margin: 20px 14px 0; height: 45px; border: 1px solid #D5D8DE; border-radius: 0;
  padding: 0 10px; font-size: 13px; outline: 0; color: #111;
}
.upload-submit {
  height: 44px; margin: 20px 14px 0; border-radius: 0; background: #398E3D; color: #fff; width: calc(100% - 28px);
  display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 600;
}
.upload-submit .ic { width: 20px; height: 20px; }
.upload-note { font-size: 14px; color: #9E9E9E; line-height: 1.8; margin: 0 10px; font-family: 'Poppins', sans-serif; white-space: pre-line; }
.upload-title { display: none; }

/* ---------- Wallet ---------- */
.wallet-body { background: #101825; padding-bottom: 20px; }
.wallet-card { background: #fff; color: #111; border-radius: 12px; margin: 5px 8px 20px; overflow: hidden; }
.wallet-label { font-family: 'Found', sans-serif; font-size: 10px; letter-spacing: 0; color: #757575; text-align: center; padding-top: 8px; margin-top: 8px; white-space: pre; }
.wallet-big { font-size: 46px; font-weight: 600; line-height: 1.15; letter-spacing: -1px; text-align: center; color: #000; }
.wallet-win { display: flex; align-items: center; width: fit-content; height: 25px; margin: 2px auto 0; border-radius: 13px; background: #101622; padding: 0 4px 0 0; }
.wallet-win span { font-size: 10px; color: #fff; margin-left: 10px; white-space: nowrap; }
.wallet-win b { height: 19px; line-height: 19px; padding: 0 8px; margin-left: 10px; border-radius: 360px; background: #fff; color: #000; font-size: 10px; font-weight: 400; }
.wallet-actions { display: flex; margin: 10px 0; padding: 2px; }
.w-action { flex: 1; height: 43px; border-radius: 17px; display: flex; align-items: center; justify-content: flex-start; gap: 5px; color: #fff; font-size: 12px; font-family: 'HindSiliguri', sans-serif; font-weight: 700; }
.w-action .ic { width: 15px; height: 15px; margin-left: 5px; flex: none; }
.w-action.dep { background: #2F7D32; margin-left: 5px; }
.w-action.wd { background: #C62827; }
.w-action.gift { background: #1564C0; margin-right: 5px; }
.wallet-video { height: 45px; display: flex; align-items: center; padding-left: 20px; margin-top: 5px; }
.wallet-video + .wallet-video { margin-top: 0; }
.wallet-video .wt { flex: 1; min-width: 0; font-size: 14px; font-family: 'HindSiliguri', sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wvideo-pill { height: 35px; margin: 11px 14px 11px 11px; padding: 0 8px; background: #C62827; border: 0; border-radius: 17px; box-shadow: 0 2px 4px rgba(0,0,0,.35); color: #fff; font-size: 12px; font-family: 'HindSiliguri', sans-serif; font-weight: 700; flex: none; }
.wallet-divider { height: 1px; background: #BDBDBD; margin: 8px 20px; }
.mini-card { background: #fff; color: #111; border-radius: 12px; margin: 0 15px 20px; height: 400px; display: flex; flex-direction: column; overflow: hidden; }
.mini-card h3 { font-size: 16px; font-weight: 600; margin: 0; padding: 15px 0 10px; text-align: center; }
.mini-list { flex: 1; overflow-y: auto; }
.mini-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 10px 20px; }
.mini-empty .art { width: 80px; height: 80px; border-radius: 50%; background: #F3F5F9; display: flex; align-items: center; justify-content: center; color: #B9C0CE; margin-bottom: 10px; }
.mini-empty .art .ic { width: 42px; height: 42px; }
.mini-empty p { font-size: 14px; color: #9E9E9E; margin: 0; }
.see-all { display: block; text-align: center; color: #2196F3; font-size: 14px; padding: 8px 13px; margin-bottom: 5px; flex: none; text-decoration: none; }

/* ---------- Payment ---------- */
.pay-body { background: #fff; color: #111; padding: 0 0 26px; }
.pay-page { background: #fff; }
.pay-hint { font-size: 14px; line-height: 1.4; color: #9E9E9E; text-align: center; margin: 20px 0 0; }
.channels { display: flex; justify-content: center; margin-top: 10px; }
.channel { display: flex; flex-direction: column; align-items: center; width: auto; margin-right: 10px; background: #fff; border: 3px solid #9E9E9E; border-radius: 20px; padding: 0; height: auto; cursor: pointer; flex: none; }
.channel.on { border-color: #55AA57; background: #C8E6CA; }
.channel .chk { height: 18px; width: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; color: #4CAF50; transform: translateY(5px); }
.channel .chk .ic { width: 20px; height: 20px; }
.channel img { width: 45px; height: 45px; object-fit: contain; margin-top: 0; }
.channel .cname { font-size: 14px; font-weight: 600; color: #111; margin: 10px 25px 19px; text-align: center; }
.gift-art { display: block; width: 100%; height: 200px; object-fit: contain; margin: 0; }
.pay-field-wrap { position: relative; margin: 10px 12px 0; }
.pay-field-wrap + .pay-field-wrap { margin-top: 8px; }
.pay-field {
  display: block; width: 100%; height: 56px; margin: 0; border: 1px solid #79747E; border-radius: 12px;
  padding: 0 16px; font-family: inherit; font-size: 16px; outline: 0; background: #fff; color: #111;
}
.pay-field:focus { border-color: #2196F3; box-shadow: inset 0 0 0 1px #2196F3; }
.pay-field::placeholder { color: #111; opacity: .85; }
.pay-btn {
  display: block; width: calc(100% - 24px); height: 42px; margin: 15px 12px 0; border: 0; border-radius: 12px;
  background: #C62827; color: #fff; font-family: inherit; font-size: 16px; font-weight: 400; text-transform: uppercase;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .3);
}
.pay-btn.blue { background: #2196F3; }
.pay-btn:active { filter: brightness(.92); }
.pay-info { border-radius: 13.5px; margin: 15px 12px 0; padding: 10px 12px; font-size: 14px; line-height: 1.45; color: #111; }
.pay-info.blue { background: #E3F2FD; }
.pay-info.green { background: #E8F5E9; margin-top: 10px; font-family: 'HindSiliguri', sans-serif; }
.bkash-row { display: flex; align-items: center; margin: 15px 12px 0; padding: 0 10px; height: 46px; background: #E3F2FD; border-radius: 13.5px; }
.bkash-row .num { flex: 1; font-size: 14px; color: #111; }
.bkash-row .copy { width: 19px; height: 19px; display: flex; align-items: center; justify-content: center; padding: 0; margin-left: 5px; margin-bottom: 1px; flex: none; }
.bkash-row .copy .ic { width: 19px; height: 19px; }
.pay-note { font-size: 10px; color: #9E9E9E; line-height: 1.6; margin-top: 10px; }

/* ---------- Statement ---------- */
.stmt-body { background: #fff; color: #111; padding: 0; min-height: 100%; }
.stmt-row { display: flex; align-items: center; margin: 0 15px; min-height: 60px; padding: 6px 0; border-bottom: 1px solid #9E9E9E; }
.stmt-ic { width: 20px; height: 20px; color: #5DA460; display: flex; align-items: center; justify-content: center; flex: none; margin-right: 5px; }
.stmt-ic.out { color: #E43834; }
.stmt-ic .ic { width: 20px; height: 20px; }
.stmt-meta { flex: 1; min-width: 0; margin-left: 10px; }
.stmt-meta b { display: block; font-size: 14px; font-weight: 400; line-height: 1.4; }
.stmt-meta small { display: block; font-size: 12px; color: #9E9E9E; margin-top: 5px; }
.stmt-status { display: block; font-size: 12px; color: #5DA460; margin: 5px 0 7px; }
.stmt-amt { font-size: 12px; font-weight: 600; color: #5DA460; margin: 0 5px 0 6px; flex: none; }
.stmt-amt.out { color: #E43834; }
.stmt-empty { padding: 60px 20px; text-align: center; color: #9E9E9E; font-size: 14px; }

/* ---------- Refer ---------- */
.topbar.refer { background: #21293C; }
.refer-body { background: #21293C; padding: 8px 8px 26px; }
.refer-hero { border-radius: 13px; padding: 8px; margin: 0 8px; overflow: hidden; background: linear-gradient(45deg, #1B4166, #2F2145); }
.rh-chip { display: inline-flex; align-items: center; gap: 7px; background: #3A2619; color: #FF7A18; font-size: 10px; font-weight: 600; padding: 2px 8px; }
.rh-chip .em { font-size: 16px; line-height: 1; }
.rh-row { display: flex; align-items: center; margin-top: 5px; padding: 5px; }
.rh-text { flex: 1; min-width: 0; }
.rh-invite { padding-left: 5px; font-size: 20px; line-height: 1.3; }
.rh-friends { padding-left: 5px; font-size: 30px; font-weight: 600; line-height: 1.15; transform: translateY(-10px); }
.rh-note { padding-left: 5px; font-size: 12px; color: #9E9E9E; line-height: 1.55; transform: translateY(-15px); }
.rh-row img { width: 85px; height: 85px; object-fit: contain; flex: none; transform: translateY(-25px); }
.ref-code-sec { margin-top: 20px; }
.refer-label { font-family: 'Found', sans-serif; font-size: 14px; color: #9E9E9E; margin: 10px 0 10px 10px; letter-spacing: 1px; }
.code-bar { margin: 0 10px; background: #C62827; display: flex; align-items: center; min-height: 51px; }
.code-bar b { flex: 1; min-width: 0; font-size: 25px; font-weight: 600; color: #fff; margin: 10px 0 10px 18px; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; }
.code-bar button { background: #A84C4F; color: #fff; font-size: 11px; font-weight: 600; padding: 5px 8px; margin-right: 10px; white-space: nowrap; border: 0; }
.share-bar { width: calc(100% - 20px); margin: 15px 10px 10px; background: #FF7A18; color: #000; border: 0; display: flex; align-items: center; justify-content: center; }
.share-bar .ic { width: 22px; height: 22px; margin: 14px 0; color: #000; flex: none; }
.share-bar > span:last-child { font-size: 14px; font-weight: 600; margin: 15px 0 14px 3px; padding: 0 8px; }
.ref-stats { display: flex; align-items: center; background: #0F1521; margin: 20px 10px 0; }
.ref-stat { flex: 1; text-align: center; padding: 15px 0; min-width: 0; }
.ref-stat .ric { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; margin: 10px auto 0; }
.ref-stat .ric.gold { background: #162828; }
.ref-stat .ric.gold .ic { color: #FF7A18; }
.ref-stat .ric.navy { background: #132539; }
.ref-stat .ric.navy .ic { color: #8AB4F8; }
.ref-stat b { display: block; font-size: 20px; font-weight: 600; margin-top: 5px; }
.ref-stat small { display: block; font-size: 10px; font-weight: 600; color: #BDBDBD; }
.ref-divider { width: 1px; align-self: stretch; background: #9E9E9E; margin: 40px 0; flex: none; }
.how-card { background: #0F1521; margin: 20px 10px 0; padding: 12px 10px; }
.how-head { display: flex; align-items: center; padding: 8px; }
.how-head .ic { width: 22px; height: 22px; color: #F9E956; flex: none; }
.how-head > span:last-child { font-size: 14px; font-weight: 600; color: #F9E956; padding: 0 8px; }
.how-card > img { width: 100%; height: 75px; object-fit: contain; display: block; }
.step { display: flex; align-items: center; margin-top: 20px; padding: 8px; }
.step .num { width: 23px; height: 23px; background: #15334F; color: #2196F3; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.step-line { width: 1px; height: 50px; background: #15334F; margin-left: 10px; flex: none; }
.step-body { flex: 1; min-width: 0; padding-left: 8px; }
.step b { display: block; font-size: 16px; font-weight: 600; }
.step p { font-size: 14px; color: #BDBDBD; margin: 0; transform: translateY(-5px); line-height: 1.45; }
.how-note { background: #0B121C; padding: 10px; font-size: 12px; color: #BDBDBD; line-height: 1.7; margin-top: 20px; }
.how-note.bn { font-family: 'HindSiliguri', sans-serif; }

/* ---------- Leaderboard ---------- */
.topbar .tb-right > button.lb-info { width: 40px; height: 40px; padding: 8px; margin-right: -2px; }
.lb-body { background: #1D2637; padding: 0 15px 20px; display: flex; flex-direction: column; }
.lb-top { background: #0F1722; border-radius: 10px; margin-top: 20px; display: flex; align-items: center; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.lb-avatar { width: 75px; height: 75px; margin-left: 10px; border-radius: 50%; border: 2px solid #FF7A18; background: #000; overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; }
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-topmeta { padding: 10px 8px 8px; min-width: 0; flex: 1; }
.lb-chip {
  display: inline-flex; align-items: center; padding: 3px 8px; color: #FF7A18; font-size: 10px; font-weight: 600;
  border-radius: 360px; border: 2px solid #98A07B; background: linear-gradient(315deg, #4E5B54, #47625D);
}
.lb-name { font-size: 20px; font-weight: 600; margin-top: 5px; padding-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-stats { display: flex; padding: 8px; }
.lb-stat { flex: 1; display: flex; align-items: center; gap: 5px; height: 50px; padding: 0 8px; min-width: 0; }
.lb-stat .ic { width: 15px; height: 15px; color: #BDBDBD; flex: none; margin-top: 10px; align-self: flex-start; }
.lb-stat img { flex: none; margin-top: 10px; align-self: flex-start; }
.lb-stat small { display: block; font-size: 10px; color: #1C75F7; font-weight: 600; letter-spacing: .3px; }
.lb-stat b { display: block; font-size: 12px; font-weight: 600; color: #fff; }
.lb-card { background: #0F1521; border-radius: 10px; margin: 20px 0; overflow: hidden; flex: 1; box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.lb-th { display: flex; align-items: center; background: #303632; padding: 12px 8px; font-size: 11px; color: #FF7A18; font-weight: 600; }
.lb-th span { padding: 0 8px; }
.lb-th .th-rank { width: 44px; }
.lb-th .th-player { flex: 1; }
.lb-th .th-matches { width: 60px; text-align: center; }
.lb-row { display: flex; align-items: center; padding: 12px 8px; }
.lb-row + .lb-row { border-top: 1px solid #1D2637; }
.lb-row.r1 { background: linear-gradient(to top right, #41452E, #161E2B); }
.lb-row.r2 { background: linear-gradient(to top right, #3A404C, #161E2B); }
.lb-row.r3 { background: linear-gradient(to top right, #2E313A, #161E2B); }
.lb-rank { min-width: 35px; height: 35px; padding: 0 12px; border-radius: 360px; background: #2D343E; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.lb-row.r1 .lb-rank { background: #FFEB36; color: #000; }
.lb-row.r2 .lb-rank { background: #E0E0DE; color: #000; }
.lb-row.r3 .lb-rank { background: #A48D85; color: #000; }
.lb-player { flex: 1; min-width: 0; margin-left: 8px; padding: 0 8px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-matches { width: 60px; text-align: center; padding: 0 8px; font-size: 14px; font-weight: 600; flex: none; }
.lb-you { flex: none; height: 76px; background: #1D2637; display: flex; align-items: stretch; padding: 8px; }
.me-card { flex: 1; height: 60px; display: flex; align-items: center; border-radius: 17px; border: 2px solid #20537E; background: linear-gradient(135deg, #153250, #12243A); }
.me-rank { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 360px; background: #2196F3; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-left: 10px; flex: none; }
.me-meta { margin-left: 10px; padding: 5px; min-width: 0; }
.me-meta small { display: block; font-size: 12px; font-weight: 600; color: #2196F3; }
.me-meta b { display: block; font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-win {
  margin-left: auto; margin-right: 5px; padding: 3px 10px 3px 5px; display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 600; color: #fff; flex: none;
  border-radius: 360px; border: 2px solid #20537E; background: #102238;
}
.me-win .ic { width: 17px; height: 17px; }

/* ---------- Result ---------- */
.topbar.result { background: #151B29; }
.result-body { background: #0D131F; padding: 15px 10px 24px; }
.res-card { background: #1A3972; border-radius: 13px; overflow: hidden; }
.res-top { display: flex; align-items: flex-start; }
.res-logo { width: 58px; height: 58px; padding: 5px; margin: 15px 10px 15px 20px; background: #384280; display: flex; align-items: center; justify-content: center; flex: none; }
.res-logo img { width: 50px; height: 48px; object-fit: contain; }
.res-info { flex: 1; min-width: 0; padding-top: 15px; }
.res-info > b { display: block; margin: 0 5px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.res-time { display: flex; align-items: center; gap: 8px; margin: 5px 5px 15px; font-size: 14px; color: #B8BDE3; }
.res-time .ic { width: 17px; height: 17px; flex: none; }
.res-divider { height: 1px; background: #344887; }
.res-stats { display: flex; justify-content: center; gap: 16px; background: #0D306A; padding: 14px 8px; }
.res-stat { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.res-stat .ri { display: flex; margin-top: 10px; color: #fff; }
.res-stat .ri .ic { width: 18px; height: 18px; }
.res-stat .ri.greenic { color: #4CB05A; }
.res-stat small { font-size: 10px; color: #B8BDE3; font-weight: 600; margin-top: 6px; white-space: nowrap; }
.res-stat b { font-size: 14px; font-weight: 600; margin: 6px 0 10px; white-space: nowrap; }
.res-stat b.gold { color: #FEBF00; }
.res-stat b.green { color: #4CB05A; }
.res-stat b.blue { color: #2396F3; }
.res-main { background: #0D131F; border-radius: 13px; margin-top: 17px; overflow: hidden; }
.res-main-title { background: #262F3E; color: #fff; font-size: 16px; font-weight: 600; text-align: center; padding: 11px 0; }
.res-main-head { display: flex; align-items: center; height: 40px; background: #1E2430; color: #F5D520; font-size: 12px; font-weight: 500; }
.res-main-head span:nth-child(1) { width: 60px; margin-left: 5px; text-align: center; }
.res-main-head span:nth-child(2) { flex: 1; }
.res-main-head span:nth-child(3) { width: 40px; text-align: center; }
.res-main-head span:nth-child(4) { width: 90px; margin-right: 5px; text-align: center; }
.res-list { background: #262F3E; }
.res-row { display: flex; align-items: center; height: 45px; background: #1E2430; }
.res-row.r1 { background: #3A3A1E; }
.res-row.r2 { background: #353942; }
.res-row.r3 { background: #3C3229; }
.res-rankwrap { width: 60px; margin-left: 5px; display: flex; align-items: center; justify-content: center; flex: none; }
.res-rank { min-width: 26px; height: 26px; line-height: 26px; padding: 0 9px; border-radius: 360px; background: #4A4A4A; color: #fff; font-size: 12px; text-align: center; }
.r1 .res-rank { background: #FFB000; }
.r2 .res-rank { background: #E0E0E2; }
.r3 .res-rank { background: #CC6B26; }
.res-player { flex: 1; min-width: 0; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
.res-kills { width: 40px; text-align: center; font-size: 12px; color: #fff; flex: none; }
.res-prizewrap { width: 90px; margin-right: 5px; text-align: center; font-size: 12px; color: #fff; flex: none; }
.r1 .res-player, .r1 .res-kills, .r1 .res-prizewrap { color: #FFB000; }
.r2 .res-player, .r2 .res-kills, .r2 .res-prizewrap { color: #E0E0E2; }
.r3 .res-player, .r3 .res-kills, .r3 .res-prizewrap { color: #CC6B26; }

/* ---------- Splash ---------- */
.splash {
  position: absolute; inset: 0; z-index: 100; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 70% at 50% 18%, rgba(255,122,24,.18), transparent 60%),
    radial-gradient(90% 60% at 50% 100%, rgba(255,122,24,.08), transparent 65%),
    #0B111B;
}
.splash::before {
  content: ''; position: absolute; inset: -40%;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px; transform: perspective(600px) rotateX(58deg) translateY(24%);
  mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 68%);
  pointer-events: none;
}
.splash-glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,24,.30), rgba(255,122,24,0) 62%);
  filter: blur(6px); animation: splashGlow 3.2s ease-in-out infinite;
}
.splash-stage { position: relative; width: 248px; height: 248px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.splash-ring { position: absolute; inset: 0; border-radius: 50%; }
.splash-ring::before, .splash-ring::after { content: ''; position: absolute; border-radius: 50%; }
.splash-ring::before {
  inset: 0; background: conic-gradient(from 0deg, transparent 0 62%, rgba(255,122,24,.15) 72%, #FF7A18 94%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: spin 1.6s linear infinite;
}
.splash-ring::after {
  inset: 20px; border: 1px dashed rgba(255,122,24,.28);
  animation: spin 12s linear infinite reverse;
}
.splash-orbit {
  position: absolute; inset: 8px; border-radius: 50%; animation: spin 5s linear infinite;
}
.splash-orbit i {
  position: absolute; top: -2px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: #FF9A3D; box-shadow: 0 0 12px 2px rgba(255,122,24,.75);
}
.splash-logo {
  width: 304px; height: 152px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  animation: splashFloat 3.2s ease-in-out infinite;
}
.splash-logo img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.55)) drop-shadow(0 0 26px rgba(255,122,24,.28));
}
.splash-brand { position: relative; z-index: 2; text-align: center; margin-top: 16px; animation: splashRise .6s .08s both; }
.splash-brand h1 { font-family: 'Bowlby', 'Poppins', sans-serif; font-size: 27px; font-weight: 400; margin: 0; letter-spacing: 1px; line-height: 1.1; }
.splash-brand h1 span { color: #FF7A18; }
.splash .tag { font-size: 10px; color: #98A0AC; letter-spacing: 4px; margin-top: 9px; }
.splash-progress {
  position: relative; z-index: 2; width: 190px; height: 5px; border-radius: 5px; margin-top: 46px;
  background: rgba(255,255,255,.08); overflow: hidden; animation: splashRise .6s .16s both;
}
.splash-progress i {
  position: absolute; inset: 0; border-radius: 5px; transform-origin: left center;
  background: linear-gradient(90deg, #E8590C, #FF9A3D 60%, #FFC38A);
  box-shadow: 0 0 14px rgba(255,122,24,.7); animation: splashFill .9s cubic-bezier(.2,.7,.2,1) both;
}
.splash .load-txt {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: #B6BDC7; letter-spacing: .4px; margin-top: 13px; animation: splashRise .6s .24s both;
}
.splash .load-txt .dotflash { display: inline-flex; gap: 3px; }
.splash .load-txt .dotflash i { width: 4px; height: 4px; border-radius: 50%; background: #FF7A18; animation: dotFlash 1s infinite; }
.splash .load-txt .dotflash i:nth-child(2) { animation-delay: .15s; }
.splash .load-txt .dotflash i:nth-child(3) { animation-delay: .3s; }
.splash-foot {
  position: absolute; bottom: 34px; z-index: 2; font-size: 9px; letter-spacing: 2.6px; color: #5E6875;
  text-transform: uppercase; animation: splashRise .6s .34s both;
}

/* ---------- Modals ---------- */
#modal-root { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
#modal-root.open { pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.66); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .18s; overflow-y: auto;
}
.modal-backdrop.sheet-backdrop { align-items: flex-end; padding: 0; }
.modal-box {
  width: 100%; max-width: 350px; background: #fff; color: #111; border-radius: 16px; padding: 20px;
  animation: pop .22s ease; position: relative;
}
.modal-box.wide { max-width: 400px; }
.modal-box.dark { background: #1D2637; color: #fff; padding: 0; overflow: hidden; width: 90%; }
.modal-box.sheet { max-width: 480px; width: 100%; border-radius: 18px 18px 0 0; padding: 0 16px 20px; animation: sheetUp .26s cubic-bezier(.2,.8,.3,1); max-height: 92%; overflow-y: auto; }
.modal-close { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; color: #9E9E9E; display: flex; align-items: center; justify-content: center; }
.sheet-handle { width: 58px; height: 6px; border-radius: 3px; background: #D9D9D9; margin: 9px auto 14px; }
.sheet-title { font-size: 19px; text-align: center; color: #9E9E9E; margin: 0 0 14px; font-weight: 500; }
.dialog-title { font-size: 20px; text-align: center; margin: 0 0 8px; font-weight: 500; }
.dialog-text { font-size: 12px; text-align: center; color: #444; line-height: 1.65; margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; }
.dialog-actions button { padding: 9px 16px; font-size: 12px; color: #625775; border-radius: 8px; }
.dialog-actions button.primary { color: #C62827; font-weight: 600; }
.dialog-actions.center { justify-content: center; }
.dialog-actions .filled { background: var(--yellow); color: #000; font-weight: 600; }
.dialog-divider { height: 1px; background: #C8C6C9; margin: 12px -20px; opacity: .7; }

/* exit dialog */
.exit-box { width: calc(100% - 16px); max-width: none; border-radius: 0; padding: 0 0 11px; background: #FEF7FF; color: #111; text-align: left; }
.exit-box .exit-head { margin-top: 30px; padding: 0 22px; }
.exit-box h3 { font-size: 25px; font-weight: 400; margin: 0; }
.exit-box p { font-size: 14px; margin: 13px 0 15px 22px; color: #111; line-height: 1.55; }
.exit-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.exit-actions button { font-size: 14px; color: #625775; padding: 10px 25px; background: transparent; border: 0; }
.exit-actions button:last-child { margin-right: 15px; }

/* leaderboard info dialog */
.info-box { width: calc(100% - 16px); max-width: none; background: #1D2637; color: #fff; border-radius: 0; padding: 0; text-align: left; }
.info-box h3 { font-size: 25px; font-weight: 400; margin: 22px 22px 0; }
.info-box p { font-size: 14px; color: #BABEC7; line-height: 1.55; margin: 13px 22px 15px; }
.info-ok { display: block; margin: 10px 15px 31px auto; background: transparent; border: 0; color: #FFB067; font-size: 14px; font-family: inherit; padding: 10px 22px; }

/* warning dialog */
.warn-box { width: calc(100% - 30px); background: #FEF7FF; text-align: center; padding: 0 0 25px; border-radius: 0; }
.warn-art { width: 55px; height: 55px; margin: 25px auto 0; color: #F29F05; display: flex; align-items: center; justify-content: center; }
.warn-art .ic { width: 55px; height: 55px; }
.warn-box h3 { font-size: 14px; font-weight: 400; margin: 10px 12px 0; }
.warn-box p { font-size: 13px; color: #4A4A4A; line-height: 1.55; margin: 8px 12px 0; }
.warn-actions { display: flex; justify-content: center; margin-top: 25px; }
.warn-actions button { font-size: 14px; color: #635384; background: transparent; border: 0; padding: 7px 25px; }
.warn-actions button.primary { background: transparent; color: #635384; }

/* notices */
.notice-list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.notice-item { background: #F5F6FA; border-radius: 10px; padding: 10px 12px; text-align: left; }
.notice-item b { display: block; font-size: 11.5px; font-weight: 600; color: #1D2637; }
.notice-item p { font-size: 10.5px; color: #616161; line-height: 1.55; margin: 3px 0 0; }
.notice-item small { display: block; font-size: 8.5px; color: #9E9E9E; margin-top: 5px; }
.notice-img { width: 100%; max-height: 130px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; display: block; }
.notice-link { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 600; color: #E8590C; text-decoration: underline; }

/* terms dialog */
.terms-box { max-height: 78vh; overflow-y: auto; }
.terms-box h3 { font-size: 17px; margin: 0 0 10px; }
.terms-box p { font-size: 11px; color: #555; line-height: 1.7; margin: 0 0 9px; }

/* profile edit */
.pedit-head { background: #192030; height: 80px; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.pedit-head .edit-ic { width: 35px; height: 35px; border-radius: 50%; background: #3A2619; color: var(--yellow); display: flex; align-items: center; justify-content: center; flex: none; }
.pedit-head .edit-ic .ic { width: 18px; height: 18px; }
.pedit-head b { flex: 1; font-size: 16px; font-weight: 600; }
.pedit-head .close { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; color: #C9CDD4; }
.pedit-body { padding: 16px 16px 18px; }
.pedit-field { display: flex; align-items: center; gap: 10px; height: 60px; background: #192030; border-radius: 10px; padding: 0 12px; margin-bottom: 10px; border: 1px solid #263245; }
.pedit-field .ic { width: 20px; height: 20px; color: #9DA1A2; flex: none; }
.pedit-field .in { flex: 1; min-width: 0; }
.pedit-field label { display: block; font-size: 9px; color: #9DA1A2; letter-spacing: .5px; }
.pedit-field input { width: 100%; background: transparent; border: 0; outline: 0; color: #fff; font-size: 12.5px; padding: 2px 0 0; }
.pedit-save { height: 46px; width: 100%; border-radius: 9px; background: var(--yellow); color: #000; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.pedit-save .ic { width: 18px; height: 18px; }

/* join confirmation */
.modal-box.confirm-sheet { color: #111; padding: 0 0 20px; max-width: 400px; border-radius: 18px; }
.confirm-title { font-size: 20px; font-weight: 600; text-align: center; margin: 10px 0 0; }
.confirm-div { height: 1px; background: #C8C6C9; margin: 12px 15px 0; }
.confirm-inner { background: #EEEEEE; border-radius: 14px; margin: 20px 20px 0; padding: 10px 10px 0; }
.confirm-mtitle { font-size: 14px; font-weight: 600; }
.dash { border-top: 1px dashed #B5B5B5; margin: 5px 0 0; }
.conf-line { display: flex; align-items: center; font-size: 11px; color: #111; padding: 2px 10px 2px 0; }
.conf-line b { font-size: 12px; font-weight: 600; }
.conf-line .spacer { flex: 1; }
.spots-wrap { padding: 10px 0 10px 10px; }
.spots-wrap .spots { background: #616161; color: #fff; border-radius: 10px; padding: 6px 13px; font-size: 12px; font-weight: 600; display: inline-block; }
.team-row { display: flex; justify-content: center; gap: 10px; margin: 15px 0 0; }
.team-chip {
  display: flex; align-items: center; background: #424242; color: #fff; border: 1.8px solid #79767D; border-radius: 12px;
  font-size: 14px; font-weight: 600; transition: .15s;
}
.team-chip .ic { width: 20px; height: 20px; display: none; transform: translateX(8px); }
.team-chip > span:last-child { padding: 7px 15px; }
.team-chip.on { background: #FF7A18; color: #000; border-color: transparent; }
.team-chip.on .ic { display: block; }
.total-line { display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 400; margin: 15px 0 0; color: #111; }
.total-line b { font-size: 14px; font-weight: 600; margin-left: 3px; }
.total-line .spacer { display: none; }
.total-line.ludo-type { margin: 15px 20px 0; }
.confirm-input {
  width: calc(100% - 40px); height: 53px; margin: 15px 20px 0; border: 2.85px solid #757575;
  border-radius: 7px; background: #fff; padding: 0 0 0 10px; font-size: 14px; outline: 0; color: #111;
}
#joinPlayers .confirm-input + .confirm-input { margin-top: 8px; }
.confirm-input:focus { border-color: #68548A; border-width: 3.7px; }
.confirm-btn {
  display: flex; align-items: center; margin: 30px auto 0; padding: 0; border: 0; border-radius: 20px;
  background: #FF7A18; color: #000; font-weight: 600;
}
.confirm-btn .ic { width: 23px; height: 23px; margin-left: 14px; flex: none; }
.confirm-btn > span:last-child { font-size: 17px; padding: 7px 14px 6px 6px; white-space: nowrap; }

/* account signup sheet */
.modal-box.acct-box { padding: 0 14px; display: flex; flex-direction: column; }
.acct-divider { width: 58px; height: 6px; border-radius: 3px; background: #9E9E9E; margin: 50px auto 0; flex: none; }
.acct-box .sheet-title { text-align: center; font-size: 20px; font-weight: 600; color: #9E9E9E; margin: 20px 0 0; flex: none; }
.outline-field { height: 58px; border: 1px solid #9E9E9E; border-radius: 4px; display: flex; align-items: center; padding: 0 12px; margin: 5px 0; background: #fff; flex: none; }
.outline-field:focus-within { border-color: #68548F; }
.acct-box .sheet-title + .outline-field { margin-top: 15px; }
.outline-field input { width: 100%; border: 0; outline: 0; font-size: 16px; color: #111; background: transparent; }
.acct-done { width: 100%; height: 46px; border-radius: 0; background: #2F7D32; color: #fff; font-size: 14px; font-weight: 500; margin: 20px 0 60px; flex: none; }

/* video modal */
.video-box { padding: 0; overflow: hidden; max-width: 400px; }
.video-art { height: 160px; background: linear-gradient(130deg, #1D2637, #2B1C3D); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; }
.video-art .ic { width: 52px; height: 52px; color: #FF7A18; }
.video-art b { font-size: 12px; font-weight: 500; }
.video-box .v-body { padding: 14px 16px 16px; }
.video-box .v-body p { font-size: 11px; color: #616161; line-height: 1.6; margin: 0 0 12px; }
.video-box .v-body button { width: 100%; height: 38px; border-radius: 8px; background: #1D2637; color: #fff; font-size: 11.5px; }

/* toast + loader */
#toast-root { position: absolute; left: 0; right: 0; bottom: 96px; z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 7px; pointer-events: none; padding: 0 20px; }
.toast {
  background: rgba(10,14,22,.94); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 11.5px;
  padding: 10px 16px; border-radius: 20px; max-width: 90%; text-align: center; box-shadow: 0 8px 22px rgba(0,0,0,.4);
  animation: toastIn .25s;
}
.toast.good { border-color: rgba(75,176,80,.6); }
.toast.bad { border-color: rgba(228,56,52,.6); }
.loader-overlay { position: absolute; inset: 0; background: rgba(4,7,12,.62); display: flex; align-items: center; justify-content: center; z-index: 110; }
.loader-overlay .spin { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--yellow); animation: spin .8s linear infinite; }

@keyframes splashGlow { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes splashFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes splashRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes splashFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dotFlash { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes cardRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: -180% 0; } to { background-position: 180% 0; } }
@keyframes screenIn { from { opacity: .4; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes screenBack { from { opacity: .4; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 55px rgba(37,99,235,.23) inset, 0 0 30px rgba(37,99,235,.12); } 50% { box-shadow: 0 0 80px rgba(37,99,235,.4) inset, 0 0 50px rgba(37,99,235,.25); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.shake { animation: shake .25s; }

/* micro-interactions + list entrance */
button { transition: transform .14s ease, opacity .14s ease, background-color .18s ease, color .18s ease; }
button:active { transform: scale(.975); }
.cat-card, .ff-card, .ludo-card, .part-card, .stmt-row, .games-row, .w-action, .pay-stat, .game-row {
  animation: cardRise .34s both;
}
.cat-card:nth-child(2), .ff-card:nth-child(2), .ludo-card:nth-child(2), .part-card:nth-child(2), .stmt-row:nth-child(2) { animation-delay: .04s; }
.cat-card:nth-child(3), .ff-card:nth-child(3), .ludo-card:nth-child(3), .part-card:nth-child(3), .stmt-row:nth-child(3) { animation-delay: .08s; }
.cat-card:nth-child(4), .ff-card:nth-child(4), .ludo-card:nth-child(4), .part-card:nth-child(4), .stmt-row:nth-child(4) { animation-delay: .12s; }
.cat-card:nth-child(n+5), .ff-card:nth-child(n+5), .ludo-card:nth-child(n+5), .part-card:nth-child(n+5), .stmt-row:nth-child(n+5) { animation-delay: .15s; }
.slider-track { transition: transform .55s cubic-bezier(.22,.8,.3,1); }
.toast { backdrop-filter: blur(8px); }
.ff-tab, .ludo-tab, .team-chip, .channel, .w-action, .join-bar {
  -webkit-tap-highlight-color: transparent;
}
.ff-tab:active, .ludo-tab:active, .team-chip:active, .channel:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ================= v2 visual redesign ================= */
:root {
  --surface: #141B26;
  --surface2: #1A2230;
  --surface3: #212B3C;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .13);
  --text: #F5F7FA;
  --muted: #8B94A6;
  --muted2: #6E7789;
  --orange-grad: linear-gradient(135deg, #FF9A3D, #FF7A18 55%, #E8590C);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .95);
}

body { background: radial-gradient(120% 80% at 50% -10%, #1A2233 0%, #070B12 60%, #04060A 100%); }
.screen { background: radial-gradient(120% 50% at 50% 0%, rgba(255,122,24,.05), transparent 55%), var(--bg); }

/* top bars */
.topbar {
  height: 60px; background: rgba(16,22,34,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding-left: 8px;
}
.topbar .back { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.topbar h1 { font-size: 18px; font-weight: 600; margin: 0 0 0 12px; letter-spacing: .2px; }
.topbar.dark, .topbar.cat, .topbar.refer, .topbar.result { background: rgba(13,18,29,.9); }
.topbar .tb-right > button { border-radius: 12px; }

/* home header */
.home-head {
  height: 62px; background: rgba(16,22,34,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding: 0 12px 0 14px;
}
.home-head .app-ic { width: 32px; height: 32px; border-radius: 10px; margin: 0 10px 0 0; box-shadow: 0 6px 16px -8px var(--orange-glow); }
.home-head .brand { height: 50px; margin: 0 6px 0 0; }
.notice-btn { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 0; }
.notice-btn img { width: 20px; height: 20px; margin: 0; }
.badge-dot {
  top: -4px; right: -4px; width: 17px; height: 17px; line-height: 17px; font-size: 10px; font-weight: 700;
  transform: none; background: var(--orange); color: #1A0B02;
}
.balance-chip {
  height: 34px; padding: 0 12px; border-radius: 14px; margin-left: 8px; font-size: 14px; font-weight: 600;
  background: rgba(255,122,24,.13); border: 1px solid rgba(255,122,24,.32); color: #fff;
}
.balance-chip .cur { width: 20px; height: 20px; margin: 0 6px 0 0; background: var(--orange); color: #1A0B02; font-weight: 700; }

/* slider */
.slider-wrap { padding: 12px 12px 0; background: transparent; }
.slider { height: 172px; border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.slide .shade { background: linear-gradient(90deg, rgba(6,10,18,.95) 0%, rgba(6,10,18,.55) 55%, rgba(6,10,18,.06) 100%); }
.slide .tag {
  background: rgba(255,122,24,.16); color: #FFB067; border: 1px solid rgba(255,122,24,.42);
  border-radius: 8px; letter-spacing: 1.2px;
}
.slide h2 { font-size: 24px; letter-spacing: .3px; }
.slide .go { width: 36px; height: 36px; background: var(--orange-grad); border: 0; color: #1A0B02; box-shadow: 0 8px 20px -8px var(--orange-glow); }
.slider-dots span.on { background: var(--orange); box-shadow: 0 0 10px rgba(255,122,24,.65); }

/* home content */
.home-scroll { padding-bottom: 12px; }
.support-card {
  margin: 14px 12px 0; padding: 12px; border-radius: 18px;
  background: linear-gradient(115deg, rgba(255,122,24,.15), rgba(255,122,24,.02) 70%);
  border: 1px solid rgba(255,122,24,.22);
}
.support-card .round-ic { width: 42px; height: 42px; margin-left: 2px; border-radius: 14px; background: rgba(255,122,24,.18); color: var(--orange-hi); }
.support-card .txt b { font-size: 14px; }
.support-card .txt small { font-size: 11px; color: var(--muted); }
.contact-pill {
  height: 30px; padding: 0 11px; border-radius: 10px; border: 0; margin-right: 2px;
  background: var(--orange-grad); color: #1A0B02; font-size: 11px; font-weight: 700;
  box-shadow: 0 8px 18px -10px var(--orange-glow);
}
.section-title {
  display: flex; align-items: center; gap: 12px; text-align: left;
  margin: 22px 16px 2px; font-size: 10px; font-weight: 600; letter-spacing: 2.4px; color: var(--muted2);
}
.section-title::before, .section-title::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.game-row { margin: 10px 12px 0; }
.game-row.ludo { margin-bottom: 4px; }
.game-card {
  margin: 0; height: 104px; border-radius: 20px; padding: 0 14px; overflow: hidden; position: relative;
  border: 1px solid var(--line-strong); background-size: cover; background-position: center; box-shadow: var(--shadow);
}
.game-row .game-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,12,20,.9) 0%, rgba(8,12,20,.45) 62%, rgba(8,12,20,.12) 100%);
}
.game-row .logo-box {
  width: 58px; height: 58px; margin: 0; border-radius: 16px; position: relative; z-index: 2;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); backdrop-filter: blur(4px);
}
.game-row .info { position: relative; z-index: 2; margin-left: 12px; padding: 0; }
.game-row .info b { font-size: 15px; }
.game-row .info small { color: #A6B0C2; font-size: 10px; letter-spacing: 1.6px; margin-top: 4px; }
.game-row .count {
  top: 10px; right: 10px; width: 22px; height: 22px; font-size: 11px; font-weight: 700;
  background: var(--orange); color: #1A0B02; box-shadow: 0 4px 10px rgba(0,0,0,.4);
}

/* bottom nav */
.bottom-nav {
  margin: 6px 12px calc(8px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px;
  background: rgba(22,29,42,.94); backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); box-shadow: 0 -12px 30px -18px rgba(0,0,0,.9);
}
.nav-btn { height: 46px; margin: 0 6px; border: 0; border-radius: 16px; color: var(--muted2); }
.nav-btn.on { background: var(--orange-grad); color: #1A0B02; box-shadow: 0 10px 22px -12px var(--orange-glow); }
.nav-btn .ic { width: 23px; height: 23px; }

/* profile */
.profile-wrap { background: var(--bg); }
.profile-top {
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,122,24,.18), transparent 60%);
  border-radius: 0 0 28px 28px; border-bottom: 1px solid var(--line); padding: 8px 12px 0;
}
.profile-id { height: 128px; }
.avatar { width: 72px; height: 72px; box-shadow: 0 10px 26px -12px var(--orange-glow); }
.avatar .lottie-holder { width: 68px; height: 68px; }
.profile-id .who b { font-size: 19px; }
.uid-chip { background: rgba(255,255,255,.06); border: 1px solid var(--line); box-shadow: none; color: var(--muted); border-radius: 10px; }
.edit-chip { background: rgba(255,122,24,.13); border: 1px solid rgba(255,122,24,.3); box-shadow: none; color: var(--orange-hi); border-radius: 10px; }
.balance-card {
  margin: 14px 2px 0; padding-bottom: 8px; border-radius: 24px;
  background: linear-gradient(140deg, rgba(255,122,24,.18), rgba(20,27,40,.94) 55%, rgba(20,27,40,.98));
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow);
}
.balance-label { color: #FFC9A3; font-size: 9.5px; letter-spacing: 1.4px; }
.bal-row .amt { font-size: 30px; letter-spacing: -.6px; }
.add-pill {
  height: 32px; background: var(--orange-grad); color: #1A0B02; font-weight: 700;
  box-shadow: 0 8px 18px -10px var(--orange-glow);
}
.winning-chip { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.winning-chip b { background: var(--orange-grad); color: #1A0B02; font-weight: 700; }
.bal-stats .stat + .stat::before { background: var(--line-strong); }
.acct-label { font-size: 9.5px; font-weight: 600; letter-spacing: 1.8px; color: var(--muted2); margin: 22px 18px 0; }
.menu-row {
  margin: 9px 14px 0; min-height: 50px; padding: 0 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: none;
}
.menu-row:active { background: var(--surface2); }
.menu-row .m-ic { width: 22px; height: 22px; margin-left: 0; }
.menu-row .chev { color: var(--muted2); }
.menu-row.logout { background: rgba(228,56,52,.09); border-color: rgba(228,56,52,.26); box-shadow: none; }
.menu-row .new { background: var(--orange); color: #1A0B02; font-weight: 700; }

/* auth */
.auth-screen { background: radial-gradient(120% 70% at 50% 12%, rgba(255,122,24,.14), transparent 62%), var(--bg); }
.email-row { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 16px; padding: 4px 10px; }
.email-row input::placeholder { color: var(--muted2); }
.otp-boxes input { background: var(--surface2); border: 1px solid var(--line-strong); border-radius: 12px; }
.otp-boxes input:focus { border-color: var(--orange); background: var(--surface2); }
.auth-terms a { color: var(--orange-hi); }
.auth-help a { color: var(--orange-hi); }

/* category */
.cat-body { background: var(--bg); padding: 12px 8px 18px; }
.cat-grid { gap: 10px; }
.cat-card {
  height: 228px; margin: 0; padding: 0; border-radius: 20px; background: transparent;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cat-frame { border-radius: 20px; background: var(--surface); position: relative; }
.cat-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,20,.05) 38%, rgba(8,12,20,.94) 100%);
}
.cat-img img { object-fit: cover; }
.cat-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: transparent; padding: 12px;
}
.cat-meta b { font-size: 15px; font-weight: 600; margin: 0; }
.cat-meta small { font-size: 9.5px; font-weight: 600; color: var(--orange-hi); letter-spacing: .4px; margin: 4px 0 0; }

/* game tabs */
.ff-tabs { height: auto; padding: 12px 12px 8px; gap: 8px; background: var(--bg); }
.ff-tab {
  border: 1px solid var(--line); background: var(--surface); border-radius: 14px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .6px;
  color: var(--muted); padding: 10px 6px; gap: 6px;
}
.ff-tab::after { display: none; }
.ff-tab.on { background: var(--orange-grad); color: #1A0B02; border-color: transparent; box-shadow: 0 10px 22px -12px var(--orange-glow); }
.ff-tab .tab-ico { width: 15px; height: 15px; }
.ff-tab .tab-ico.trophy { width: 20px; height: 20px; margin: 0; }
.ff-divider { display: none; }
.ff-body { padding: 4px 10px 20px; }
.ludo-tabs { justify-content: flex-start; gap: 8px; padding: 12px 12px 4px; background: var(--bg); }
.ludo-tab {
  margin-right: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .5px;
}
.ludo-tab .lbl { padding: 9px 14px; }
.ludo-tab.on { background: var(--orange-grad); color: #1A0B02; border: 0; box-shadow: 0 10px 22px -12px var(--orange-glow); }
.ludo-tab.on:active { background: var(--orange-grad); }
.ludo-body { padding: 10px 0 12px; }
.ludo-empty p { color: var(--muted); font-size: 14px; }

/* match cards */
.ff-card, .ludo-card, .result-list-card {
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 22px; margin: 12px 2px 6px; box-shadow: var(--shadow);
}
.ff-logo, .ludo-logo { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; }
.ff-logo { width: 54px; height: 54px; margin: 14px 8px 6px 12px; }
.ff-logo img { width: 44px; height: 44px; }
.ff-title b, .ludo-title b, .result-list-card .rl-title b { color: var(--text); font-size: 16px; }
.ff-time, .ff-time .ic { color: var(--muted); }
.ff-chip.map { background: rgba(75,176,80,.13); border-color: rgba(75,176,80,.3); color: #7BD88A; }
.ff-chip.type { background: rgba(33,150,243,.12); border-color: rgba(33,150,243,.3); color: #6FC0FF; }
.ff-phone { background: rgba(255,255,255,.06); color: var(--muted); }
.ff-stat .lbl { color: var(--muted2); font-size: 9px; letter-spacing: 1.2px; }
.ff-stat .val { font-size: 30px; color: var(--text); }
.ff-stat .val.prize { color: var(--orange-hi); }
.ff-stat .view { background: rgba(255,122,24,.13); color: var(--orange-hi); }
.ff-div { background: var(--line-strong); }
.bar { background: rgba(255,255,255,.08); }
.bar i { background: var(--orange-grad); }
.bar.red { background: rgba(228,56,52,.16); }
.bar.red i { background: linear-gradient(90deg, #FF6B6B, #E43834); }
.need-pill { background: rgba(255,255,255,.06); border-color: var(--line); color: var(--text); }
.ff-card.closed .need-pill, .ludo-card.closed .need-pill { background: rgba(228,56,52,.12); border-color: rgba(228,56,52,.3); color: #FF8E8A; }
.join-pill { background: rgba(255,255,255,.05); border-color: var(--line); color: var(--muted); }
.ff-join {
  height: 40px; padding: 0 26px; border-radius: 14px;
  background: var(--orange-grad); color: #1A0B02; font-weight: 700;
  box-shadow: 0 10px 22px -12px var(--orange-glow);
}
.ff-join.closed { background: rgba(255,255,255,.05); color: var(--muted); box-shadow: none; border: 1px solid var(--line); }
.ff-card .room-wrap, .ludo-card .room-wrap {
  background: rgba(255,255,255,.03); border: 1px dashed rgba(255,122,24,.35);
  border-radius: 14px; margin: 10px 14px 8px; padding: 4px 10px 12px;
}
.ff-card .room-line small, .ludo-card .room-line small { color: var(--muted); }
.ff-card .room-line b, .ludo-card .room-line b { color: var(--orange-hi); }
.ff-card .copy-btn, .ludo-card .copy-btn { color: var(--muted); }
.ff-card .room-note, .ludo-card .room-note { color: #FF9A96; }
.ff-timer {
  background: rgba(75,176,80,.13); color: #8FE29A; border-top: 1px solid rgba(75,176,80,.22);
  border-radius: 0 0 22px 22px;
}
.ff-card.closed .ff-timer { background: rgba(228,56,52,.1); border-color: rgba(228,56,52,.22); color: #FF9A96; }
.ff-timer .clock { background: rgba(75,176,80,.22); }
.ff-card.closed .ff-timer .clock { background: rgba(228,56,52,.22); }
.ff-timer .stext { color: #8FE29A; font-size: 9px; letter-spacing: 1px; }
.ff-timer .time { font-size: 15px; color: #fff; }
.ludo-logo { width: 52px; height: 52px; margin: 14px 8px 6px 12px; }
.ludo-logo img { width: 44px; height: 44px; }
.ludo-stat small { color: var(--muted2); font-size: 9px; letter-spacing: 1.2px; }
.ludo-stat b { font-size: 30px; color: var(--text); }
.ludo-card { padding-bottom: 14px; }
.upload-room {
  background: var(--surface); border: 1px solid var(--line-strong); color: #fff;
  border-radius: 14px; height: 48px;
}
.upload-submit {
  background: var(--orange-grad); color: #1A0B02; border-radius: 14px; font-weight: 700;
  box-shadow: 0 12px 26px -14px var(--orange-glow);
}
.upload-note { color: var(--muted); font-size: 12px; }
.upload-bg { border-radius: 16px; }
.result-list-card { border-radius: 22px; }
.rl-btn { background: rgba(255,122,24,.12); color: var(--orange-hi); border: 1px solid rgba(255,122,24,.28); border-radius: 14px; }

/* join / match detail */
.join-body { background: var(--bg); padding-bottom: 20px; }
.join-title { padding: 16px 16px 0; }
.join-title h2 { font-size: 19px; }
.join-time { color: var(--muted); padding: 0 16px; }
.join-time .ic { color: var(--muted); }
.join-chips { margin-top: 12px; padding: 0 4px; }
.jchip { height: 26px; border-radius: 10px; font-size: 11px; }
.jchip.green { background: rgba(75,176,80,.14); color: #8FE29A; }
.jchip.blue { background: rgba(33,150,243,.14); color: #7CC4FF; }
.jchip.android { background: rgba(255,255,255,.07); color: var(--muted); }
.jchip.purple { background: rgba(168,85,247,.14); color: #D8A5FF; }
.jchip.indigo { background: rgba(99,102,241,.16); color: #B4B8FF; }
.join-stats {
  margin: 16px 12px; padding: 8px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.join-stat .lbl { color: var(--muted2); font-size: 8.5px; letter-spacing: 1px; }
.join-stat .val { font-size: 19px; }
.prize-pool { background: rgba(255,122,24,.13); color: var(--orange-hi); border: 1px solid rgba(255,122,24,.28); }
.rules-card { margin: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.rules-head {
  background: rgba(255,122,24,.09); border-bottom: 1px solid var(--line);
  justify-content: flex-start; padding: 10px 14px; gap: 8px;
}
.rules-head b { color: var(--orange-hi); font-size: 11px; letter-spacing: .8px; margin-left: 0; }
.rules-body { background: transparent; }
.tutorial { margin: 12px; height: 84px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px dashed var(--line-strong); }
.rules-text { color: #C6CEDA; font-size: 11.5px; margin: 14px; }
.view-part button { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; }
.part-head b { color: var(--text); font-size: 14px; }
.part-card { background: var(--surface2); border-radius: 14px; }
.joiner-row { background: var(--surface2); border-radius: 10px; }
.joiner-dev { background: var(--bg); }
.part-row { background: var(--surface3); }
.part-rank { background: rgba(255,255,255,.07); }
.part-empty { background: var(--surface); border-radius: 14px; color: var(--muted); }
.room-wrap {
  background: var(--surface); border: 1px dashed rgba(255,122,24,.35);
  border-radius: 14px; margin: 12px 16px; padding: 4px 12px 12px;
}
.room-line b { color: var(--orange-hi); }
.room-line small { color: var(--muted); }
.copy-btn { color: var(--muted); }
.countdown-bar {
  background: rgba(75,176,80,.13); border-top: 1px solid rgba(75,176,80,.22);
}
.countdown-bar.closed { background: rgba(228,56,52,.1); border-color: rgba(228,56,52,.22); }
.countdown-bar .time, .countdown-bar .spots { color: #8FE29A; }
.countdown-bar.closed .time, .countdown-bar.closed .spots { color: #FF9A96; }
.join-bar {
  height: 56px; padding: 0; border-radius: 0; font-family: 'Poppins', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: 1.4px;
  background: var(--orange-grad); color: #1A0B02;
  box-shadow: 0 -14px 34px -14px var(--orange-glow);
}
.join-bar:active:not(:disabled) { background: var(--orange-grad); filter: brightness(.94); }
.join-bar:disabled, .join-bar.joined { background: rgba(75,176,80,.16); color: #8FE29A; box-shadow: none; }
.join-bar.closed { background: rgba(255,255,255,.05); color: var(--muted); box-shadow: none; }

/* wallet */
.wallet-body { background: var(--bg); padding-bottom: 26px; }
.wallet-card {
  position: relative; overflow: hidden; margin: 14px 14px 16px; border-radius: 24px;
  background: linear-gradient(150deg, rgba(255,122,24,.22), rgba(19,26,40,.96) 55%, rgba(15,21,32,.98));
  border: 1px solid rgba(255,122,24,.22); box-shadow: var(--shadow);
}
.wallet-card::before {
  content: ''; position: absolute; top: -110px; right: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,24,.35), transparent 65%); pointer-events: none;
}
.wallet-label {
  font-family: 'Poppins', sans-serif; font-size: 9.5px; font-weight: 600; letter-spacing: 1.8px;
  color: #FFC49A; margin-top: 16px; padding-top: 0;
}
.wallet-big { color: #fff; font-size: 40px; letter-spacing: -1.4px; padding: 6px 0 4px; }
.wallet-win { background: rgba(255,255,255,.07); border: 1px solid var(--line); height: 28px; border-radius: 14px; }
.wallet-win span { color: var(--muted); font-size: 9px; letter-spacing: .5px; }
.wallet-win b { background: var(--orange-grad); color: #1A0B02; height: 20px; line-height: 20px; font-weight: 700; }
.wallet-actions { gap: 8px; padding: 10px 10px 12px; }
.w-action {
  height: 46px; border-radius: 14px; justify-content: center; gap: 6px;
  font-family: 'Poppins', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .4px;
}
.w-action .ic { margin-left: 0; }
.w-action.dep { background: var(--orange-grad); color: #1A0B02; margin-left: 0; }
.w-action.wd { background: rgba(255,255,255,.07); color: #FF9A96; border: 1px solid rgba(228,56,52,.26); }
.w-action.gift { background: rgba(33,150,243,.13); color: #7CC4FF; border: 1px solid rgba(33,150,243,.26); margin-right: 0; }
.wallet-video { height: 52px; padding: 0 16px; margin-top: 0; }
.wallet-video .wt { font-family: 'Poppins', sans-serif; font-size: 12px; color: #C6CEDA; }
.wvideo-pill {
  height: 32px; border-radius: 10px; background: rgba(255,122,24,.12); color: var(--orange-hi);
  border: 1px solid rgba(255,122,24,.3); font-family: 'Poppins', sans-serif; font-size: 10px; font-weight: 600;
}
.wallet-divider { background: var(--line); margin: 0 16px; }
.mini-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  margin: 0 14px; height: auto; max-height: 420px; box-shadow: var(--shadow);
}
.mini-card h3 { color: var(--text); font-size: 14px; padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.mini-empty .art { background: rgba(255,255,255,.05); color: var(--muted2); }
.mini-empty p { color: var(--muted); }
.see-all { color: var(--orange-hi); font-size: 12px; }

/* payment */
.pay-body { background: var(--bg); color: var(--text); padding-bottom: 28px; }
.pay-page { background: transparent; }
.pay-hint { color: var(--muted); font-size: 12px; margin-top: 18px; }
.channels { gap: 10px; margin-top: 12px; }
.channel {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
  margin-right: 0; overflow: hidden;
}
.channel.on { border-color: rgba(255,122,24,.7); background: rgba(255,122,24,.1); box-shadow: 0 0 0 3px rgba(255,122,24,.08); }
.channel .chk { color: var(--orange); }
.channel img { width: 42px; height: 42px; margin-top: 8px; }
.channel .cname { color: var(--text); font-size: 12px; margin: 8px 16px 14px; }
.gift-art { height: 170px; }
.pay-field {
  background: var(--surface); border: 1px solid var(--line-strong); color: #fff;
  border-radius: 14px; height: 54px;
}
.pay-field:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,24,.14); }
.pay-field::placeholder { color: var(--muted2); opacity: 1; }
.pay-btn {
  height: 48px; border-radius: 14px; background: var(--orange-grad); color: #1A0B02;
  font-weight: 700; font-size: 14px; letter-spacing: .8px;
  box-shadow: 0 14px 30px -16px var(--orange-glow);
}
.pay-btn.blue { background: var(--orange-grad); color: #1A0B02; }
.pay-info { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 14px; color: #C6CEDA; font-size: 12px; }
.pay-info.blue { background: rgba(33,150,243,.1); border-color: rgba(33,150,243,.22); color: #9CCFFF; }
.pay-info.green { background: rgba(75,176,80,.1); border-color: rgba(75,176,80,.22); color: #9FE0A5; }
.bkash-row { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 14px; }
.bkash-row .num { color: #C6CEDA; font-size: 12.5px; }
.bkash-row .copy .ic { color: #fff !important; }

/* statement */
.stmt-body { background: var(--bg); color: var(--text); padding: 8px 14px 20px; }
.stmt-row { margin: 0; min-height: 62px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.stmt-meta b { color: var(--text); font-size: 13px; }
.stmt-meta small { color: var(--muted2); font-size: 11px; }
.stmt-status { font-size: 11px; }
.stmt-amt { font-size: 13px; }
.stmt-empty { color: var(--muted); }

/* refer */
.refer-body { background: var(--bg); padding: 10px 10px 28px; }
.refer-hero {
  margin: 0 4px; padding: 12px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,122,24,.28), rgba(20,27,40,.92) 55%, rgba(14,20,31,.97));
  border: 1px solid rgba(255,122,24,.25); box-shadow: var(--shadow);
}
.rh-chip {
  background: rgba(255,255,255,.08); color: #FFC49A; border-radius: 8px;
  font-size: 9px; letter-spacing: 1px; gap: 6px;
}
.rh-row { padding: 8px 2px 0; }
.rh-invite { padding-left: 0; font-size: 15px; color: #C6CEDA; }
.rh-friends { padding-left: 0; font-size: 34px; transform: none; margin-top: 2px; }
.rh-note { padding-left: 0; transform: none; margin-top: 6px; color: var(--muted); font-size: 11px; }
.rh-row img { width: 80px; height: 80px; transform: none; }
.refer-label { font-family: 'Poppins', sans-serif; font-size: 9.5px; letter-spacing: 1.6px; color: var(--muted2); margin: 18px 0 8px 8px; }
.code-bar {
  background: var(--surface); border: 1px dashed rgba(255,122,24,.45);
  border-radius: 14px; margin: 0 4px; min-height: 56px;
}
.code-bar b { color: var(--orange-hi); font-size: 24px; letter-spacing: 2px; margin-left: 16px; }
.code-bar button {
  background: var(--orange-grad); color: #1A0B02; border-radius: 10px;
  font-size: 9.5px; font-weight: 700; padding: 7px 10px; margin-right: 8px;
}
.share-bar {
  background: var(--orange-grad); color: #1A0B02; border-radius: 14px;
  margin: 14px 4px 0; box-shadow: 0 14px 30px -16px var(--orange-glow);
}
.share-bar .ic { color: #1A0B02; }
.share-bar > span:last-child { font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.ref-stats { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 16px 4px 0; }
.ref-stat .ric.gold { background: rgba(255,122,24,.13); }
.ref-stat .ric.gold .ic { color: var(--orange-hi); }
.ref-stat .ric.navy { background: rgba(33,150,243,.12); }
.ref-stat b { font-size: 18px; }
.ref-stat small { font-size: 9px; color: var(--muted); }
.ref-divider { background: var(--line); }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 16px 4px 0; padding: 12px; }
.how-head .ic, .how-head > span:last-child { color: var(--orange-hi); }
.step .num { background: rgba(255,122,24,.13); color: var(--orange-hi); border-radius: 8px; }
.step b { font-size: 14px; }
.step p { font-size: 12px; color: var(--muted); }
.step-line { background: var(--line-strong); }
.how-note { background: rgba(0,0,0,.22); border-radius: 12px; color: var(--muted); font-size: 11px; }

/* leaderboard */
.lb-body { background: var(--bg); padding: 0 12px 16px; }
.lb-top {
  margin-top: 14px; border-radius: 18px; box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(255,122,24,.18), rgba(20,27,40,.95));
  border: 1px solid rgba(255,122,24,.22);
}
.lb-avatar { width: 70px; height: 70px; border-color: var(--orange); }
.lb-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,122,24,.35); color: #FFC49A; }
.lb-name { font-size: 18px; }
.lb-stat small { color: var(--orange-hi); }
.lb-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  margin: 14px 0; box-shadow: var(--shadow);
}
.lb-th { background: rgba(255,255,255,.04); color: var(--muted); font-size: 9.5px; letter-spacing: .8px; }
.lb-row { padding: 11px 10px; }
.lb-row + .lb-row { border-top: 1px solid var(--line); }
.lb-row.r1 { background: linear-gradient(90deg, rgba(255,122,24,.18), transparent); }
.lb-row.r2 { background: rgba(255,255,255,.04); }
.lb-row.r3 { background: rgba(204,107,38,.08); }
.lb-rank { background: rgba(255,255,255,.06); }
.lb-row.r1 .lb-rank { background: var(--orange-grad); color: #1A0B02; }
.lb-row.r2 .lb-rank { background: #DDE3EC; color: #101622; }
.lb-row.r3 .lb-rank { background: #C98A5A; color: #101622; }
.lb-you { background: transparent; padding: 0; height: auto; }
.me-card {
  height: 62px; border-radius: 16px; border: 1px solid rgba(255,122,24,.35);
  background: linear-gradient(135deg, rgba(255,122,24,.16), rgba(20,27,40,.95));
}
.me-rank { background: var(--orange-grad); color: #1A0B02; }
.me-meta small { color: var(--orange-hi); }
.me-win { border-color: rgba(255,122,24,.3); background: rgba(255,122,24,.1); color: #FFC49A; }

/* result */
.result-body { background: var(--bg); padding: 14px 12px 24px; }
.res-card {
  border-radius: 18px; box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(255,122,24,.2), rgba(20,27,40,.95));
  border: 1px solid rgba(255,122,24,.22);
}
.res-logo { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; }
.res-time { color: var(--muted); }
.res-divider { background: var(--line-strong); }
.res-stats { background: rgba(0,0,0,.2); }
.res-stat small { color: var(--muted); }
.res-stat b.gold { color: var(--orange-hi); }
.res-main { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-top: 14px; }
.res-main-title { background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); font-size: 14px; }
.res-main-head { background: rgba(255,255,255,.03); color: var(--muted); font-size: 10px; letter-spacing: .6px; }
.res-list { background: transparent; }
.res-row { background: transparent; border-top: 1px solid var(--line); }
.res-row.r1 { background: rgba(255,122,24,.13); }
.res-row.r2 { background: rgba(255,255,255,.04); }
.res-row.r3 { background: rgba(204,107,38,.06); }
.res-rank { background: rgba(255,255,255,.07); }
.r1 .res-rank { background: var(--orange-grad); color: #1A0B02; }
.r1 .res-player, .r1 .res-kills, .r1 .res-prizewrap { color: #FFC49A; }

/* modals */
.modal-backdrop { background: rgba(4,7,12,.76); backdrop-filter: blur(6px); }
.modal-box {
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
}
.modal-box.dark { background: var(--surface); border: 1px solid var(--line-strong); }
.modal-close { color: var(--muted); }
.sheet-handle { background: rgba(255,255,255,.2); }
.sheet-title { color: var(--muted); }
.dialog-text { color: #C6CEDA; }
.dialog-actions button { color: var(--muted); }
.dialog-actions button.primary { color: var(--orange-hi); }
.dialog-actions .filled { background: var(--orange-grad); color: #1A0B02; }
.dialog-divider { background: var(--line-strong); }
.exit-box { background: var(--surface); color: var(--text); width: 100%; max-width: 400px; border-radius: 20px; }
.exit-box p { color: #C6CEDA; }
.exit-actions button { color: var(--muted); }
.info-box { background: var(--surface); color: var(--text); width: 100%; max-width: 400px; border-radius: 20px; border: 1px solid var(--line-strong); }
.info-box p { color: #C6CEDA; }
.info-ok { color: var(--orange-hi); }
.warn-box { background: var(--surface); color: var(--text); width: 100%; max-width: 400px; border-radius: 20px; }
.warn-box p { color: #C6CEDA; }
.warn-actions button { color: var(--muted); }
.notice-item { background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.notice-item b { color: var(--text); }
.notice-item p { color: #C6CEDA; }
.notice-item small { color: var(--muted2); }
.terms-box h3 { color: var(--text); }
.terms-box p { color: #C6CEDA; }
.pedit-head { background: var(--surface); }
.pedit-field { background: var(--surface); border: 1px solid var(--line); }
.pedit-save { background: var(--orange-grad); color: #1A0B02; font-weight: 700; }
.modal-box.confirm-sheet { background: var(--surface); color: var(--text); }
.confirm-div { background: var(--line-strong); }
.confirm-inner { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.dash { border-top-color: var(--line-strong); }
.conf-line { color: #C6CEDA; }
.spots-wrap .spots { background: rgba(255,255,255,.08); }
.team-chip { background: var(--surface2); border-color: var(--line-strong); color: var(--text); }
.team-chip.on { background: var(--orange-grad); color: #1A0B02; }
.total-line { color: #C6CEDA; }
.confirm-input { background: var(--surface2); border-color: var(--line-strong); color: #fff; border-width: 1px; }
.confirm-input:focus { border-color: var(--orange); border-width: 1px; box-shadow: 0 0 0 3px rgba(255,122,24,.14); }
.confirm-btn { background: var(--orange-grad); color: #1A0B02; box-shadow: 0 14px 30px -16px var(--orange-glow); }
.acct-box { background: var(--surface); }
.acct-divider { background: rgba(255,255,255,.2); }
.outline-field { background: var(--surface2); border-color: var(--line-strong); }
.outline-field input { color: #fff; }
.acct-done { background: var(--orange-grad); color: #1A0B02; font-weight: 600; }
.video-box { background: var(--surface); }
.video-art { background: linear-gradient(130deg, rgba(255,122,24,.25), rgba(20,27,40,.95)); }
.video-box .v-body p { color: var(--muted); }
.video-box .v-body button { background: rgba(255,255,255,.08); }

/* entrance + feedback */
.wallet-card, .lb-top, .lb-card, .res-card, .refer-hero, .rules-card, .join-stats, .support-card, .code-bar, .ref-stats, .how-card {
  animation: cardRise .4s both;
}
.ff-join, .pay-btn, .w-action, .share-bar, .join-bar, .confirm-btn, .add-pill { will-change: transform; }
.toast.good { border-color: rgba(255,122,24,.55); }
/* ---- v2.1 polish ---- */
/* statements as cards */
.stmt-body { padding: 12px 14px 24px; }
.stmt-row {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  margin: 0 0 9px; padding: 13px 14px; min-height: 0;
  box-shadow: 0 10px 26px -22px #000;
}
.stmt-row:last-child { margin-bottom: 0; }
.stmt-ic { width: 26px; height: 26px; border-radius: 50%; background: rgba(76,176,80,.14); }
.stmt-ic.out { background: rgba(228,56,52,.14); }
.stmt-meta b { font-weight: 500; }
.stmt-status { margin: 4px 0 0; }

/* payment hint chips tuned to the theme */
.pay-info.blue {
  background: rgba(255,122,24,.09); border-color: rgba(255,122,24,.3); color: #FFC49A;
}
.pay-info.green { background: rgba(76,176,80,.08); border-color: rgba(76,176,80,.24); }

/* signup sheet */
.acct-box { padding: 0 16px 10px; }
.acct-divider { margin: 12px auto 0; }
.acct-box .sheet-title { color: var(--text); font-size: 21px; margin: 16px 0 2px; }
.outline-field { height: 54px; border-radius: 12px; margin: 6px 0; }
.outline-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,24,.14); }
.acct-done {
  height: 50px; border-radius: 12px; font-size: 16px; letter-spacing: 1px;
  margin: 16px 0 8px; box-shadow: 0 14px 30px -16px var(--orange-glow);
}

/* referral steps + warning action */
.step { margin-top: 12px; padding: 4px; }
.step-line { height: 36px; }
.step p { transform: none; margin-top: 2px; }
.warn-actions button { color: var(--orange-hi); font-weight: 600; }

@media (max-width: 374px) {
  .ff-stat .val, .ludo-stat b { font-size: 27px; }
  .wallet-big { font-size: 36px; }
  .cat-card { height: 214px; }
  .join-stat .val { font-size: 17px; }
  .lb-name { font-size: 16px; }
  .rh-friends { font-size: 30px; }
  .code-bar b { font-size: 21px; }
}

/* ================= Desktop layout ================= */
@media (min-width: 1000px) {
  body {
    align-items: stretch;
    background:
      radial-gradient(60% 45% at 12% 0%, rgba(255,122,24,.10), transparent 60%),
      radial-gradient(55% 45% at 92% 10%, rgba(255,122,24,.06), transparent 62%),
      #05070b;
  }
  #app {
    max-width: none; width: 100%; height: 100vh; height: 100dvh;
    border: 0; border-radius: 0; box-shadow: none;
    background: transparent;
  }
  .screen { background: linear-gradient(180deg, #0B1019 0%, #080B12 100%); }
  .screen-body::-webkit-scrollbar, .ff-body::-webkit-scrollbar, .ludo-body::-webkit-scrollbar { width: 8px; }
  .screen-body::-webkit-scrollbar-thumb, .ff-body::-webkit-scrollbar-thumb, .ludo-body::-webkit-scrollbar-thumb { background: #253044; border-radius: 8px; }

  /* header */
  .home-head {
    height: 88px; padding: 0 40px; gap: 0;
    background: rgba(9,13,21,.78); backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--line-strong);
  }
  .home-head .brand { height: 68px; margin: 0; flex: 0 0 auto; }
  .home-head .brand img { filter: drop-shadow(0 8px 22px rgba(255,122,24,.18)); }
  .home-head .notice-btn { margin-left: auto; width: 46px; height: 46px; border-radius: 14px; }
  .home-head .notice-btn img { width: 22px; height: 22px; }
  .home-head .balance-chip { height: 42px; padding: 0 17px; margin-left: 14px; font-size: 15px; border-radius: 16px; }
  .home-head .balance-chip .cur { width: 24px; height: 24px; font-size: 14px; }

  /* home grid */
  .home-scroll {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px 24px; align-content: start;
    width: 100%; max-width: 1440px; margin: 0 auto;
    padding: 30px 40px 36px 132px;
    box-sizing: border-box;
  }
  .slider-wrap { grid-column: span 8; padding: 0; }
  .slider { height: clamp(280px, 30vw, 400px); border-radius: 26px; }
  .slide .copy { padding: 30px 34px; }
  .slide .tag { font-size: 12px; padding: 5px 10px; }
  .slide h2 { font-size: clamp(34px, 3.2vw, 46px); }
  .slide p { font-size: 14px; }
  .slide .go { width: 52px; height: 52px; }
  .slider-dots { height: 30px; margin-top: 12px; gap: 8px; }
  .slider-dots span { width: 10px; height: 10px; }

  .support-card {
    grid-column: span 4; height: 100%; margin: 0; padding: 30px;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px;
    border-radius: 26px;
    background: linear-gradient(150deg, rgba(255,122,24,.18), rgba(255,122,24,.03) 65%), #101724;
  }
  .support-card .round-ic { width: 56px; height: 56px; border-radius: 18px; margin: 0; }
  .support-card .round-ic .ic { width: 30px; height: 30px; }
  .support-card .txt { padding: 0; flex: 0 0 auto; }
  .support-card .txt b { font-size: 21px; }
  .support-card .txt small { font-size: 13px; margin-top: 4px; }
  .support-card .contact-pill { width: 100%; height: 46px; justify-content: center; margin: 6px 0 0; font-size: 14px; border-radius: 14px; }

  .section-title { grid-column: 1 / -1; margin: 10px 0 -2px; font-size: 11px; letter-spacing: 3px; }
  .game-row { grid-column: span 6; margin: 0; transition: transform .2s ease; }
  .game-row .game-card { height: 156px; padding: 0 22px; border-radius: 24px; }
  .game-row .logo-box { width: 74px; height: 74px; border-radius: 20px; }
  .game-row .logo-box img { width: 52px; height: 52px; }
  .game-row .info { margin-left: 18px; }
  .game-row .info b { font-size: 21px; }
  .game-row .info small { font-size: 11px; letter-spacing: 2px; }
  .game-row .count { top: 16px; right: 16px; width: 30px; height: 30px; font-size: 13px; }
  .game-row:hover { transform: translateY(-3px); }

  .profile-wrap { grid-column: 1 / -1; width: 100%; max-width: 1040px; margin: 0 auto; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-strong); }

  /* nav rail */
  .bottom-nav {
    position: fixed; left: 30px; top: calc(50% + 40px); transform: translateY(-50%);
    flex-direction: column; width: 76px; height: auto;
    margin: 0; padding: 10px; gap: 10px; border-radius: 24px; z-index: 30;
    background: rgba(16,23,35,.92); border: 1px solid var(--line-strong);
    backdrop-filter: blur(18px); box-shadow: 0 22px 50px -20px rgba(0,0,0,.9);
  }
  .nav-btn { width: 54px; height: 62px; margin: 0; border-radius: 18px; flex-direction: column; gap: 3px; }
  .nav-btn::after { font-size: 9px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted2); }
  .nav-btn.on::after { color: #2A1204; }
  .nav-btn:first-child::after { content: 'Home'; }
  .nav-btn:nth-child(2)::after { content: 'Profile'; }
  .nav-btn .ic { width: 25px; height: 25px; }
  .nav-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
  .nav-btn.on:hover { background: var(--orange-grad); color: #1A0B02; }

  /* top bars + inner screens */
  .topbar { height: 72px; padding: 0 40px; background: rgba(11,16,25,.82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line-strong); }
  .topbar h1 { font-size: 22px; margin-left: 18px; }
  .topbar .back { width: 42px; height: 42px; border-radius: 13px; }
  .topbar .tb-right { margin-right: 0; }

  .cat-body, .ff-body, .ludo-body, .wallet-body, .refer-body, .lb-body, .stmt-body, .pay-body, .join-body, .result-body, .ff-tabs, .profile-wrap { background: transparent; }
  .cat-body { width: 100%; max-width: 1320px; margin: 0 auto; padding: 26px 40px 40px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .cat-card { height: clamp(240px, 24vw, 320px); margin: 0; border-radius: 22px; transition: transform .2s ease, border-color .2s ease; }
  .cat-card:hover { transform: translateY(-4px); border-color: rgba(255,122,24,.55); }
  .cat-meta { padding: 12px 14px; }
  .cat-meta b { font-size: 16px; }
  .cat-meta small { font-size: 11px; }

  .ff-tabs { height: auto; padding: 22px 40px 6px; max-width: 1320px; width: 100%; margin: 0 auto; gap: 12px; box-sizing: border-box; }
  .ff-tab { max-width: 260px; }
  .ff-body, .ludo-body {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 18px; align-content: start;
    width: 100%; max-width: 1320px; margin: 0 auto;
    padding: 10px 40px 34px; box-sizing: border-box;
  }
  .ludo-body { padding-top: 14px; }
  .ff-card, .ludo-card, .result-list-card { margin: 0; }
  .part-empty { grid-column: 1 / -1; }

  .join-body, .wallet-body, .stmt-body, .pay-body, .result-body {
    width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 40px 40px; box-sizing: border-box;
  }
  .refer-body { width: 100%; max-width: 1120px; margin: 0 auto; padding: 26px 40px 40px; box-sizing: border-box; }
  .lb-body { width: 100%; max-width: 980px; margin: 0 auto; padding: 22px 40px 40px; box-sizing: border-box; }

  /* auth + otp */
  .auth-screen {
    background:
      radial-gradient(60% 55% at 50% 22%, rgba(255,122,24,.12), transparent 60%),
      linear-gradient(180deg, #0B1019, #080B12);
  }
  .auth-screen { display: flex; align-items: center; justify-content: center; padding: 40px; }
  .auth-inner {
    width: min(620px, 100%); min-height: auto; margin: 0 auto; padding: 44px 42px 34px; box-sizing: border-box;
    background: rgba(18,26,39,.66); border: 1px solid var(--line-strong); border-radius: 30px;
    box-shadow: 0 34px 90px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(22px);
  }
  .auth-topspacer { flex: 0 0 10px; min-height: 10px; }
  .auth-bottomspacer { flex: 0 0 26px; min-height: 26px; }
  .auth-logo { width: 330px; height: 165px; }
  .auth-title { font-size: 48px; }
  .auth-sub { font-size: 27px; }
  .email-row { width: 100%; margin: 14px 0; height: 58px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line-strong); padding: 0 6px; }
  .email-row input { font-size: 15px; }
  .btn-continue { width: 100%; margin: 12px 0 0; height: 54px; border-radius: 14px; font-size: 18px; letter-spacing: .6px; }
  .auth-terms { max-width: 460px; font-size: 11px; line-height: 1.8; }
  .auth-messenger { width: 52px; height: 52px; margin-top: 18px; }
  .auth-help { font-size: 14px; }
  .auth-help.small { font-size: 12px; margin-bottom: 0; }
  .otp-boxes { gap: 12px; }
  .otp-boxes input { width: 58px; height: 66px; font-size: 24px; }

  /* splash */
  .splash-stage { width: 330px; height: 330px; }
  .splash-logo { width: 470px; height: 235px; }
  .splash-brand { margin-top: 22px; }
  .splash .tag { font-size: 13px; letter-spacing: 6px; }
  .splash-progress { width: 280px; height: 6px; margin-top: 54px; }
  .load-txt { font-size: 12px; }
  .splash-foot { font-size: 11px; }

  /* dialogs */
  .modal-box { max-width: 520px; }
  .modal-box.wide { max-width: 640px; }
}

/* ================= Home v2 — arena deck ================= */
.home-v2 { display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 18px; }

/* hero */
.hero-deck {
  position: relative; height: 352px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: #0A0F18; border: 1px solid rgba(255,122,24,.22);
  box-shadow: 0 24px 54px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05);
}
.hero-deck::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 85% at 92% 0%, rgba(255,122,24,.17), transparent 58%);
}
.hero-track { position: absolute; inset: 0; display: flex; transition: transform .55s cubic-bezier(.3,.8,.3,1); }
.hero-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,8,13,.95) 0%, rgba(5,8,13,.66) 48%, rgba(5,8,13,.05) 100%),
    linear-gradient(180deg, rgba(5,8,13,.52) 0%, transparent 30%, rgba(5,8,13,.78) 100%);
}
.hero-chrome { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; z-index: 4; }
.hero-live {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 9px;
  background: rgba(9,13,20,.55); border: 1px solid rgba(255,122,24,.42); backdrop-filter: blur(10px);
  font-size: 9px; font-weight: 700; letter-spacing: 1.6px; color: #FFC08A;
}
.hero-live i { width: 6px; height: 6px; border-radius: 50%; background: #FF7A18; animation: heroPulse 1.9s infinite; }
@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,122,24,.55); }
  70% { box-shadow: 0 0 0 7px rgba(255,122,24,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,122,24,0); }
}
.hero-season { font-size: 8.5px; letter-spacing: 2px; color: #B9C2D2; font-weight: 600; }
.hero-copy { position: absolute; left: 18px; right: 78px; bottom: 96px; z-index: 4; }
.hero-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 7px;
  background: rgba(255,122,24,.16); border: 1px solid rgba(255,122,24,.5);
  color: #FFB067; font-size: 8.5px; font-weight: 600; letter-spacing: 1.8px;
}
.hero-copy h2 {
  margin: 10px 0 6px; font-family: 'Lexend', 'Poppins', sans-serif;
  font-size: 31px; line-height: 1.02; font-weight: 800; letter-spacing: .2px;
  text-transform: uppercase; text-shadow: 0 10px 30px rgba(0,0,0,.7);
}
.hero-copy p { margin: 0; font-size: 10.5px; color: #C9D2E0; }
.hero-cta {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px;
  border-radius: 12px; background: linear-gradient(135deg, #FF9A3D, #F06A0A); color: #1A0B02;
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px;
  box-shadow: 0 14px 26px -14px rgba(255,122,24,.85);
}
.hero-cta:active { transform: scale(.96); }
.hero-dots { position: absolute; right: 18px; bottom: 88px; display: flex; gap: 6px; z-index: 5; }
.hero-dot { width: 16px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.24); transition: width .26s, background .26s; }
.hero-dot.on { width: 30px; background: linear-gradient(90deg, #FF9A3D, #FF6A00); box-shadow: 0 0 12px rgba(255,122,24,.7); }
.hero-foot {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; height: 62px;
  display: flex; align-items: center; padding: 0 6px; border-radius: 18px;
  background: rgba(10,15,24,.64); border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(16px) saturate(1.2);
}
.hf-stat { flex: 1; min-width: 0; text-align: center; }
.hf-stat b { display: block; font-size: 14.5px; font-weight: 600; color: #fff; letter-spacing: .2px; white-space: nowrap; }
.hf-stat small { display: block; margin-top: 3px; font-size: 7px; letter-spacing: 1.1px; color: #8B96A8; font-weight: 600; }
.hf-line { width: 1px; height: 26px; background: rgba(255,255,255,.09); flex: none; }

/* quick actions + personal run */
.home-side { display: flex; flex-direction: column; gap: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.qa {
  height: 72px; padding: 0 12px; border-radius: 18px; text-align: left;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px;
  background: linear-gradient(160deg, rgba(255,255,255,.065), rgba(255,255,255,.015));
  border: 1px solid var(--line-strong);
}
.qa:active { border-color: rgba(255,122,24,.45); background: rgba(255,122,24,.09); }
.qa-ic { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,122,24,.16); color: #FF9A3D; }
.qa b { font-size: 10px; font-weight: 600; color: #E8EDF5; letter-spacing: .3px; white-space: nowrap; }
.run-card {
  position: relative; overflow: hidden; padding: 14px 16px 12px; border-radius: 20px;
  background: linear-gradient(130deg, rgba(255,122,24,.15), rgba(255,122,24,.02) 58%), #111826;
  border: 1px solid rgba(255,122,24,.22);
}
.run-card::after {
  content: ''; position: absolute; right: -30px; top: -46px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,24,.25), transparent 68%); pointer-events: none;
}
.run-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.run-kicker { font-size: 8px; letter-spacing: 2px; color: #FFB067; font-weight: 700; }
.run-link { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 600; color: #C9D2E0; }
.run-stats { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 11px; }
.run-stats > div { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 12px; background: rgba(8,12,19,.44); border: 1px solid rgba(255,255,255,.06); }
.run-stats b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-stats small { display: block; margin-top: 2px; font-size: 7px; letter-spacing: 1.1px; color: #8B96A8; }

/* top player showcase (desktop side column) */
.top-card { display: none; }

/* section headings */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 9px; }
.sec-head h3 { margin: 0; font-size: 9.5px; font-weight: 700; letter-spacing: 2.2px; color: #D8DFEA; }
.sec-meta { font-size: 8.5px; letter-spacing: 1.2px; color: #7F8A9D; font-weight: 600; }
.sec-link { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; letter-spacing: 1px; color: #FFA35C; font-weight: 600; }

/* arena cards */
.arena-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.arena-card {
  position: relative; height: 174px; border-radius: 20px; overflow: hidden; text-align: left;
  border: 1px solid var(--line-strong); background: #0C121C;
}
.arena-art { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); transition: transform .35s ease; }
.arena-card.ff .arena-art {
  background-image: linear-gradient(180deg, rgba(7,10,16,.08), rgba(7,10,16,.9)), url('../assets/images/freefire_background_card_image.png');
}
.arena-card.ludo .arena-art {
  background-image: linear-gradient(180deg, rgba(7,10,16,.08), rgba(7,10,16,.9)), url('../assets/images/ludo_background_card_image.png');
}
.arena-card:active .arena-art { transform: scale(1.07); }
.arena-live {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 8px; border-radius: 7px; background: rgba(6,10,16,.62);
  border: 1px solid rgba(255,122,24,.42); color: #FFB067; font-size: 7.5px; font-weight: 700;
  letter-spacing: 1px; backdrop-filter: blur(8px);
}
.arena-live i { width: 5px; height: 5px; border-radius: 50%; background: #FF7A18; box-shadow: 0 0 8px #FF7A18; }
.arena-logo {
  position: absolute; top: 42px; left: 12px; width: 50px; height: 50px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9,13,21,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px);
}
.arena-logo img { width: 34px; height: 34px; object-fit: contain; }
.arena-body { position: absolute; left: 12px; right: 44px; bottom: 12px; display: block; }
.arena-body b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: .5px; }
.arena-body small { display: block; margin-top: 4px; font-size: 7px; letter-spacing: 1px; color: #AAB4C4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arena-go {
  position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #1A0B02;
  background: linear-gradient(135deg, #FF9A3D, #F06A0A); box-shadow: 0 8px 18px -8px rgba(255,122,24,.9);
}

/* happening now */
.hot-rail { display: flex; gap: 9px; overflow-x: auto; padding: 0 0 3px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hot-rail::-webkit-scrollbar { display: none; }
.hot-card {
  flex: 0 0 82%; scroll-snap-align: start; height: 76px; padding: 0 12px; border-radius: 18px;
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: #111826; border: 1px solid var(--line-strong);
}
.hot-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: #1A2432; border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.hot-ic img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.hot-mid { flex: 1; min-width: 0; }
.hot-mid b { display: block; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-mid small { display: block; margin-top: 2px; font-size: 8.5px; color: #8B96A8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-progress { display: block; height: 3px; margin-top: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.hot-progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #FF9A3D, #F06A0A); }
.hot-right { flex: none; text-align: right; }
.hot-right b { display: block; font-size: 12px; font-weight: 600; color: #FFB067; }
.hot-right small { display: block; margin-top: 2px; font-size: 8px; color: #8B96A8; }

/* support strip */
.support-strip {
  height: 64px; padding: 0 12px; border-radius: 18px; display: flex; align-items: center; gap: 10px; text-align: left;
  background: rgba(255,122,24,.07); border: 1px solid rgba(255,122,24,.2);
}
.support-strip:active { background: rgba(255,122,24,.12); }
.ss-ic { width: 36px; height: 36px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(255,122,24,.16); color: #FF9A3D; }
.ss-txt { flex: 1; min-width: 0; }
.ss-txt b { display: block; font-size: 12px; font-weight: 600; }
.ss-txt small { display: block; margin-top: 2px; font-size: 9px; color: #8C97A8; }
.ss-go { color: #FFA35C; flex: none; }

/* center play button (mobile dock) */
.nav-play {
  flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 16px; color: #1A0B02; background: var(--orange-grad);
  box-shadow: 0 12px 26px -12px var(--orange-glow);
}
.nav-play:active { transform: scale(.94); }

@media (max-width: 999px) {
  .bottom-nav { justify-content: space-between; gap: 4px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); }
  .bottom-nav .nav-btn { flex: 1; height: 48px; margin: 0; }
  .bottom-nav .nav-btn.on {
    background: rgba(255,122,24,.15); color: #FFB067;
    border: 1px solid rgba(255,122,24,.34); box-shadow: none;
  }
  .nav-play { width: 62px; height: 48px; }
}

/* desktop */
@media (min-width: 1000px) {
  .home-v2 { display: contents; }
  .hero-deck { grid-column: span 8; height: clamp(360px, 33vw, 450px); border-radius: 28px; }
  .hero-copy { left: 34px; right: 120px; bottom: 112px; }
  .hero-copy h2 { font-size: clamp(40px, 4vw, 56px); }
  .hero-copy p { font-size: 14px; }
  .hero-tag { height: 26px; padding: 0 12px; font-size: 10.5px; }
  .hero-cta { height: 46px; padding: 0 22px; font-size: 12px; border-radius: 14px; margin-top: 18px; }
  .hero-chrome { top: 22px; left: 26px; right: 26px; }
  .hero-live { height: 30px; font-size: 10.5px; padding: 0 12px; }
  .hero-season { font-size: 10px; letter-spacing: 2.6px; }
  .hero-foot { left: 20px; right: 20px; bottom: 20px; height: 72px; border-radius: 20px; }
  .hf-stat b { font-size: 18px; }
  .hf-stat small { font-size: 9px; letter-spacing: 1.4px; }
  .hero-dots { right: 26px; bottom: 104px; }
  .hero-dot { width: 22px; height: 5px; }
  .hero-dot.on { width: 42px; }

  .home-side { grid-column: span 4; gap: 16px; }
  .quick-grid { gap: 12px; }
  .qa { height: 84px; padding: 0 16px; border-radius: 18px; }
  .qa-ic { width: 36px; height: 36px; border-radius: 12px; }
  .qa b { font-size: 12px; }
  .run-card { flex: none; display: flex; flex-direction: column; padding: 20px 22px 18px; border-radius: 24px; }
  .run-kicker { font-size: 10px; }
  .run-link { font-size: 11.5px; }
  .run-stats { margin-top: auto; padding-top: 16px; }
  .run-stats > div { padding: 12px 14px; }
  .run-stats b { font-size: 18px; }
  .run-stats small { font-size: 8.5px; }

  .top-card {
    position: relative; flex: 1; min-height: 132px; display: flex; align-items: center; gap: 16px;
    padding: 20px 22px; border-radius: 24px; overflow: hidden; text-align: left;
    background:
      radial-gradient(120% 130% at 88% 0%, rgba(255,122,24,.34), transparent 58%),
      linear-gradient(150deg, #1B1510, #101724 62%);
    border: 1px solid rgba(255,122,24,.28);
  }
  .top-card::after {
    content: ''; position: absolute; right: 96px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,122,24,.18), transparent 66%); pointer-events: none;
  }
  .top-rank {
    flex: none; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #1A0B02;
    background: linear-gradient(135deg, #FFC27A, #F0740E); box-shadow: 0 10px 22px -10px rgba(255,122,24,.9);
  }
  .top-txt { position: relative; z-index: 1; flex: 1; min-width: 0; }
  .top-txt small { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 1.8px; color: #FFB067; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-txt b { display: block; margin-top: 6px; font-size: 19px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-txt em { display: block; margin-top: 4px; font-size: 11px; font-style: normal; color: #97A2B4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-trophy { position: relative; z-index: 1; flex: none; width: 74px; height: 74px; object-fit: contain; opacity: .92; filter: brightness(0) invert(1) drop-shadow(0 12px 24px rgba(255,122,24,.45)); }
  .top-card:hover { border-color: rgba(255,122,24,.55); }
  .top-card:hover .top-trophy { transform: translateY(-2px) scale(1.04); }
  .top-trophy { transition: transform .3s ease; }

  .arena-sec { grid-column: span 7; display: flex; flex-direction: column; }
  .hot-sec { grid-column: span 5; }
  .sec-head { margin-bottom: 12px; }
  .sec-head h3 { font-size: 11.5px; letter-spacing: 2.8px; }
  .sec-meta, .sec-link { font-size: 10.5px; }
  .arena-grid { flex: 1; gap: 14px; }
  .arena-card { height: auto; min-height: 232px; border-radius: 24px; }
  .arena-live { top: 14px; left: 14px; height: 24px; font-size: 9px; padding: 0 10px; }
  .arena-logo { top: 52px; left: 16px; width: 64px; height: 64px; border-radius: 19px; }
  .arena-logo img { width: 44px; height: 44px; }
  .arena-body { left: 16px; right: 56px; bottom: 16px; }
  .arena-body b { font-size: 20px; }
  .arena-body small { font-size: 9px; letter-spacing: 1.6px; }
  .arena-go { width: 36px; height: 36px; right: 14px; bottom: 14px; }
  .hot-rail { display: grid; grid-template-columns: 1fr; gap: 10px; overflow: visible; }
  .hot-card { width: 100%; height: 82px; border-radius: 18px; transition: border-color .2s ease, transform .2s ease; }
  .hot-card:hover { border-color: rgba(255,122,24,.42); transform: translateY(-2px); }
  .support-strip { grid-column: 1 / -1; height: 74px; padding: 0 22px; border-radius: 20px; }
  .support-strip:hover { border-color: rgba(255,122,24,.5); background: rgba(255,122,24,.1); }
  .ss-ic { width: 42px; height: 42px; border-radius: 14px; }
  .ss-txt b { font-size: 14px; }
  .ss-txt small { font-size: 10.5px; }

  .nav-play { width: 54px; height: 50px; border-radius: 16px; }
  .nav-home::after { content: 'Home'; }
  .nav-profile::after { content: 'Profile'; }
}

/* compact desktop (1000–1279): side column is narrow, drop trophy art */
@media (min-width: 1000px) and (max-width: 1279px) {
  .top-card { padding: 16px 18px; gap: 12px; min-height: 110px; }
  .top-rank { width: 40px; height: 40px; font-size: 13px; border-radius: 12px; }
  .top-trophy { display: none; }
  .top-txt b { font-size: 16px; margin-top: 4px; }
  .top-txt em { font-size: 10.5px; }
}

/* phone / tablet landscape: fill the rotated screen instead of a narrow column */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 640px) {
  #app { max-width: none; width: 100%; height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .home-head { height: 52px; padding: 0 16px; }
  .home-head .brand { height: 42px; }
  .home-head .notice-btn { width: 36px; height: 36px; border-radius: 11px; }
  .home-head .balance-chip { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 12px; }

  .home-scroll {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px 16px; align-content: start; padding: 12px 16px 14px; min-height: 0;
  }
  .home-v2 { display: contents; }

  .hero-deck { grid-column: span 8; height: clamp(200px, calc(100vh - 132px), 300px); height: clamp(200px, calc(100dvh - 132px), 300px); border-radius: 20px; }
  .hero-copy { left: 18px; right: 70px; bottom: 64px; }
  .hero-copy h2 { font-size: 28px; }
  .hero-copy p { font-size: 10.5px; margin-top: 4px; }
  .hero-tag { height: 19px; padding: 0 8px; font-size: 8px; letter-spacing: 1px; }
  .hero-cta { height: 34px; padding: 0 14px; font-size: 9.5px; border-radius: 10px; margin-top: 8px; }
  .hero-chrome { top: 11px; left: 14px; right: 14px; }
  .hero-live { height: 22px; padding: 0 8px; font-size: 8.5px; }
  .hero-season { font-size: 8px; letter-spacing: 2px; }
  .hero-dots { right: 16px; bottom: 62px; }
  .hero-dot { width: 14px; height: 3.5px; }
  .hero-dot.on { width: 26px; }
  .hero-foot { left: 10px; right: 10px; bottom: 8px; height: 44px; border-radius: 14px; }
  .hf-stat b { font-size: 12px; }
  .hf-stat small { font-size: 7px; letter-spacing: .9px; }

  .home-side { grid-column: span 4; gap: 8px; }
  .quick-grid { gap: 7px; }
  .qa { height: 52px; padding: 0 9px; border-radius: 13px; gap: 3px; }
  .qa-ic { width: 22px; height: 22px; border-radius: 7px; }
  .qa-ic .ic { width: 15px !important; height: 15px !important; }
  .qa b { font-size: 8.5px; }
  .run-card { padding: 9px 11px; border-radius: 15px; }
  .run-top { align-items: flex-start; }
  .run-kicker { font-size: 7px; letter-spacing: 1.4px; }
  .run-link { font-size: 7.5px; }
  .run-stats { margin-top: auto; padding-top: 6px; gap: 5px; }
  .run-stats > div { padding: 5px 7px; border-radius: 8px; }
  .run-stats b { font-size: 11px; }
  .run-stats small { font-size: 6px; letter-spacing: .8px; }
  .home-side .run-card { flex: 1; display: flex; flex-direction: column; }
  .top-card {
    display: flex; flex: none; height: 82px; align-items: center; gap: 10px; text-align: left;
    padding: 10px 12px; border-radius: 14px; overflow: hidden;
    background: radial-gradient(120% 130% at 90% 0%, rgba(255,122,24,.3), transparent 60%), #121722;
    border: 1px solid rgba(255,122,24,.26);
  }
  .top-rank { width: 32px; height: 32px; font-size: 11px; border-radius: 9px; }
  .top-txt { display: block; flex: 1; min-width: 0; }
  .top-txt small { display: block; font-size: 6.5px; letter-spacing: 1.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-txt b { display: block; margin-top: 2px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-txt em { display: block; margin-top: 1px; font-size: 8px; font-style: normal; color: #97A2B4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-trophy { display: none; }

  .arena-sec { grid-column: span 7; display: flex; flex-direction: column; }
  .hot-sec { grid-column: span 5; }
  .sec-head { margin: 0 2px 7px; }
  .sec-head h3 { font-size: 9px; letter-spacing: 2.2px; }
  .sec-meta, .sec-link { font-size: 8.5px; }
  .arena-grid { flex: 1; gap: 10px; }
  .arena-card { height: auto; min-height: 156px; border-radius: 16px; }
  .arena-live { top: 8px; left: 8px; height: 18px; font-size: 7px; padding: 0 6px; }
  .arena-logo { top: 32px; left: 9px; width: 40px; height: 40px; border-radius: 11px; }
  .arena-logo img { width: 26px; height: 26px; }
  .arena-body { left: 9px; right: 34px; bottom: 9px; }
  .arena-body b { font-size: 13px; }
  .arena-body small { font-size: 7px; letter-spacing: .9px; }
  .arena-go { width: 24px; height: 24px; right: 8px; bottom: 8px; }

  .hot-rail { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .hot-card { width: 100%; height: 62px; padding: 0 10px; border-radius: 14px; }
  .hot-card:nth-child(n+3) { display: none; }
  .hot-ic { width: 30px; height: 30px; border-radius: 9px; }
  .hot-ic img { width: 24px; height: 24px; }
  .hot-mid b { font-size: 9.5px; }
  .hot-mid small { font-size: 7.5px; }
  .hot-mid .hot-progress { height: 3px; margin-top: 4px; }
  .hot-right b { font-size: 10.5px; }
  .hot-right small { font-size: 7px; }

  .support-strip { grid-column: 1 / -1; height: 46px; padding: 0 14px; border-radius: 14px; }
  .ss-ic { width: 28px; height: 28px; border-radius: 9px; }
  .ss-txt b { font-size: 11px; }
  .ss-txt small { font-size: 8px; }

  .bottom-nav {
    flex: none; width: fit-content;
    margin: 4px auto calc(6px + env(safe-area-inset-bottom)); padding: 5px 8px; border-radius: 18px;
    justify-content: center; gap: 10px;
  }
  .bottom-nav .nav-btn { flex: 0 0 96px; width: 96px; height: 40px; margin: 0; }
  .bottom-nav .nav-btn.on { background: rgba(255,122,24,.15); color: #FFB067; border: 1px solid rgba(255,122,24,.34); box-shadow: none; }
  .bottom-nav .nav-btn .ic { width: 21px; height: 21px; }
  .nav-play { width: 64px; height: 40px; border-radius: 13px; }

  /* auth screens: keep the form in a compact centered column */
  .auth-inner { width: min(520px, calc(100% - 40px)); margin: 0 auto; padding: 6px 0; }
  .auth-topspacer { flex: 0 0 8px; min-height: 8px; }
  .auth-bottomspacer { flex: 0 0 10px; min-height: 10px; }
  .auth-logo { width: 148px; height: 74px; }
  .auth-title { font-size: 26px; }
  .auth-sub { font-size: 15px; transform: none; }
  .email-row { height: 46px; margin: 8px 0 0; border-radius: 13px; }
  .email-row input { font-size: 13px; margin: 0 8px 0 0; }
  .btn-continue { height: 42px; margin-top: 9px; font-size: 13px; letter-spacing: .8px; border-radius: 12px; }
  .auth-terms { font-size: 8px; line-height: 1.6; margin-top: 6px; }
  .auth-help { font-size: 12px; margin-top: 2px; }
  .auth-help.small { margin-bottom: 0; }
  .otp-screen .auth-title { margin-top: 6px; }
  .otp-boxes input { width: 42px; height: 46px; }
  .otp-boxes { margin: 8px 0; }
  .otp-btn { margin-top: 6px; }
  .demo-hint { margin-top: 4px; }

  /* inner screens: keep cards readable on the wide rotated canvas */
  .ff-tabs, .cat-body, .ff-body, .ludo-body { width: 100%; max-width: 780px; margin-left: auto; margin-right: auto; }
  .profile-wrap { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 680px; margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); }
  .profile-id { height: 96px; }
}

/* ================= Theme v3: richer background, contrast, motion ================= */
:root {
  color-scheme: dark;
  --bg: #121C2D;
  --surface: #172335;
  --surface2: #1C2A3F;
  --surface3: #23334B;
  --text: #F7F9FC;
  --muted: #9AA6B8;
  --muted2: #7E8A9D;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
}

html { background-color: #0B1320; }
body {
  background-color: #0B1320;
  background-image:
    radial-gradient(820px 560px at 8% -6%, rgba(255, 122, 24, .20), transparent 60%),
    radial-gradient(760px 520px at 102% 2%, rgba(74, 118, 255, .17), transparent 62%),
    radial-gradient(900px 620px at 50% 112%, rgba(255, 122, 24, .09), transparent 66%),
    linear-gradient(180deg, #182642 0%, #111C2E 48%, #0B1320 100%);
  background-attachment: fixed;
}

#app {
  background-color: #121C2D;
  background-image:
    radial-gradient(60% 36% at 10% 0%, rgba(255, 122, 24, .15), transparent 68%),
    radial-gradient(56% 32% at 100% 10%, rgba(78, 124, 255, .12), transparent 70%),
    linear-gradient(180deg, #16243A 0%, #111B2C 52%, #0D1625 100%);
}
#app::before {
  content: ''; position: absolute; inset: -28% -18%; z-index: 0; pointer-events: none; opacity: .85;
  background:
    radial-gradient(closest-side, rgba(255, 122, 24, .17), transparent 70%) 16% 28% / 48% 40% no-repeat,
    radial-gradient(closest-side, rgba(86, 128, 255, .13), transparent 72%) 88% 64% / 46% 38% no-repeat;
  animation: ambientDrift 26s ease-in-out infinite alternate;
}
#stage { z-index: 1; }
.screen { background-color: transparent; }
.home-scroll, .wallet-body, .pay-body, .stmt-body, .refer-body, .lb-body, .result-body,
.cat-body, .ff-body, .ludo-body, .join-body, .ff-tabs, .ludo-tabs, .auth-screen, .slider-wrap {
  background-color: transparent;
}
@keyframes ambientDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2.5%, 0) scale(1.06); }
}

/* numbers stay bright and readable */
.wallet-big, .bal-row .amt, .balance-chip span, .stmt-amt, .hf-stat b, .run-stats b,
.bal-stats b, .wallet-win b, .hot-right b, .res-prizewrap, .pay-info { font-variant-numeric: tabular-nums; }
.wallet-big { color: #fff; font-weight: 700; text-shadow: 0 12px 36px rgba(255, 122, 24, .3); }
.balance-chip {
  background: linear-gradient(135deg, rgba(255, 122, 24, .30), rgba(255, 122, 24, .12));
  border-color: rgba(255, 150, 70, .5); color: #fff; font-weight: 700;
  box-shadow: 0 10px 26px -16px rgba(255, 122, 24, .9);
}
.balance-chip .cur { background: #FFB067; color: #221005; }
.bal-row .amt, .hero-foot b, .hf-stat b, .run-stats b { color: #fff; }
.stmt-amt { color: #63D68B; font-weight: 700; }
.stmt-amt.out { color: #FF9B96; }

/* tactile feedback */
@media (hover: hover) {
  button[data-act], .menu-row[data-act], .qa, .arena-card, .hot-card {
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
  }
  button[data-act]:hover, .menu-row[data-act]:hover { filter: brightness(1.07); }
}
button[data-act]:active, .qa:active, .menu-row:active, .hot-card:active, .arena-card:active { transform: scale(.974); }

/* redeem entry */
.redeem-strip {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 28px); margin: 0 14px 12px;
  padding: 12px 14px; border-radius: 16px; text-align: left;
  background: linear-gradient(110deg, rgba(255, 122, 24, .16), rgba(255, 122, 24, .04) 62%);
  border: 1px solid rgba(255, 122, 24, .3); color: #fff;
}
.redeem-strip .rs-ic {
  width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--orange-grad); color: #1A0B02;
}
.redeem-strip .rs-txt { flex: 1; min-width: 0; }
.redeem-strip b { display: block; font-size: 13px; }
.redeem-strip small { display: block; font-size: 10.5px; color: #FFC49A; margin-top: 2px; }
.redeem-strip > .ic { color: #FFB067; flex: none; }

/* redeem modal */
.modal-box.redeem-box {
  background: linear-gradient(180deg, #19253B 0%, #121B2B 100%);
  border: 1px solid rgba(255, 122, 24, .32); color: #F7F9FC; border-radius: 22px;
  padding: 22px 20px 20px; max-width: 360px; position: relative; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95);
}
.modal-box.redeem-box::before {
  content: ''; position: absolute; top: -90px; right: -70px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 24, .34), transparent 66%); pointer-events: none;
}
.rdm-head { position: relative; text-align: center; }
.rdm-badge {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center;
  background: var(--orange-grad); color: #1A0B02; box-shadow: 0 16px 34px -14px rgba(255, 122, 24, .85);
  animation: rdmFloat 2.6s ease-in-out infinite;
}
.rdm-head h3 { font-size: 19px; margin: 0; color: #fff; }
.rdm-head p { font-size: 11.5px; line-height: 1.6; color: #9AA6B8; margin: 6px 0 0; }
.rdm-field { display: flex; gap: 8px; margin-top: 18px; }
.rdm-field input {
  flex: 1; min-width: 0; height: 50px; border-radius: 14px; padding: 0 14px; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong);
  font-size: 13.5px; letter-spacing: 1.6px; text-transform: uppercase;
}
.rdm-field input::placeholder { color: #6E7A8D; letter-spacing: 1px; }
.rdm-field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 24, .16); }
.rdm-btn {
  flex: none; height: 50px; padding: 0 18px; border-radius: 14px;
  background: var(--orange-grad); color: #1A0B02; font-weight: 700; font-size: 12px; letter-spacing: .8px;
  box-shadow: 0 14px 30px -16px rgba(255, 122, 24, .8);
}
.rdm-codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.rdm-code {
  font-size: 10px; padding: 7px 9px; border-radius: 9px; letter-spacing: .6px;
  background: rgba(255, 122, 24, .1); border: 1px solid rgba(255, 122, 24, .26); color: #FFC49A;
}
.rdm-note { font-size: 10px; color: #7E8A9D; margin-top: 12px; text-align: center; }
@keyframes rdmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* success celebration */
.celebrate {
  position: absolute; inset: 0; z-index: 130; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; pointer-events: none;
}
.cel-bg {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 44%, rgba(15, 23, 38, .62), rgba(6, 10, 18, .88));
  animation: celFade .3s ease forwards;
}
.cel-burst {
  position: relative; width: 150px; height: 150px; display: grid; place-items: center;
  animation: celPop .6s cubic-bezier(.18, 1.4, .35, 1) both;
}
.cel-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 122, 24, .5);
  animation: celRing .95s ease-out .06s both;
}
.cel-ring.r2 { inset: 20px; border-color: rgba(255, 170, 90, .28); animation-delay: .16s; }
.cel-check {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-grad);
  box-shadow: 0 24px 54px -18px rgba(255, 122, 24, .85), inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.cel-check svg { width: 46px; height: 46px; }
.cel-check path {
  stroke: #221005; stroke-width: 3.6; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 34; stroke-dashoffset: 34; animation: celDraw .38s .16s ease forwards;
}
.cel-spark {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: #FFC38A; box-shadow: 0 0 12px rgba(255, 150, 60, .85); opacity: 0;
  animation: celSpark .95s ease-out forwards;
}
.cel-copy { position: relative; text-align: center; margin-top: 18px; }
.cel-kicker {
  display: block; font-size: 9.5px; letter-spacing: 3.2px; font-weight: 700; color: #FFB067;
  animation: celRise .4s .18s both;
}
.cel-title {
  display: block; margin-top: 6px; font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -.6px;
  text-shadow: 0 14px 40px rgba(255, 122, 24, .35); animation: celRise .4s .24s both;
}
.cel-sub { display: block; margin-top: 4px; font-size: 12px; color: #B9C3D3; animation: celRise .4s .3s both; }
.celebrate.out { animation: celOut .3s ease forwards; }
@keyframes celFade { to { opacity: 1; } }
@keyframes celPop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }
@keyframes celRing { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes celDraw { to { stroke-dashoffset: 0; } }
@keyframes celSpark { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.7); } 100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.25); } }
@keyframes celRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes celOut { to { opacity: 0; transform: scale(1.04); } }

/* boot fallback */
.boot-fail {
  position: absolute; inset: 0; z-index: 200; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 32px; text-align: center;
  background: linear-gradient(180deg, #16243A, #0D1625); color: #fff;
}
.boot-fail b { font-size: 18px; }
.boot-fail span { max-width: 280px; font-size: 12.5px; line-height: 1.7; color: #9AA6B8; }
.boot-fail button {
  margin-top: 8px; height: 44px; padding: 0 24px; border-radius: 12px;
  background: var(--orange-grad); color: #1A0B02; font-weight: 700; letter-spacing: .6px;
}

/* legacy engine fallbacks */
#stage, .screen, .splash, #modal-root, .modal-backdrop, .loader-overlay, .celebrate {
  top: 0; right: 0; bottom: 0; left: 0;
}
