* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

:root {
  --bg: #0a1233;
  --card: #0f1b47;
  --border: #1f3a8a;
  --cyan: #22d3ee;
  --yellow: #facc15;
  --green: #22c55e;
  --text: #ffffff;
  --muted: #9fb0d9;
}

body {
  background: linear-gradient(180deg, #060c24, #0a1233);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 80px;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px;
}

.yellow { color: var(--yellow); }
.green { color: var(--green); }

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.menu-btn,
.bell-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  line-height: 1;
}

.crown { font-size: 14px; }

.logo-text {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
}

.user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: #1e3a8a;
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.user-name { font-weight: 700; }
.user-id { color: var(--muted); font-size: 11px; }

/* Wallet */
.wallet-card {
  background: var(--card);
  border: 1px solid var(--cyan);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.wallet-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: #7c5a00;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wallet-label { font-size: 12px; color: var(--muted); }
.wallet-amount { font-size: 22px; font-weight: 800; }



.wallet-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.divider { color: var(--border); }

/* Banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #10206b, #1b2f8f);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.banner-text h3 { font-size: 16px; line-height: 1.4; }
.banner-text .yellow-btn { margin-top: 10px; }
.banner-img { font-size: 64px; }

/* Buttons */
.yellow-btn {
  background: var(--yellow);
  color: #222;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.yellow-btn:active,
.recharge-btn:active {
  transform: scale(0.96);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-head h4 { font-size: 16px; }
.ends { font-size: 12px; color: var(--cyan); }

.game-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #1e3a8a;
  object-fit: cover;
  flex-shrink: 0;
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.game-mode { font-size: 13px; font-weight: 700; }
.game-sub { font-size: 11px; color: var(--muted); }
.prize { font-size: 12px; }

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  background: #070e2b;
  border-top: 1px solid var(--border);
  padding: 8px 4px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 10px;
}

.nav-item .icon { font-size: 20px; }

.nav-item.active {
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

/* ===== Home par games list (play.css wali same design) ===== */
.home-games { margin-bottom: 14px; }

.home-games-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 2px 10px;
}

.home-games-head h4 { font-size: 16px; }

.games {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}

.thumb {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.thumb .emoji { font-size: 40px; }

.t1 { background: linear-gradient(135deg, #6d28d9, #2563eb); }
.t2 { background: linear-gradient(135deg, #0ea5e9, #22c55e); }
.t3 { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.t4 { background: linear-gradient(135deg, #1e3a8a, #7c3aed); }
.t5 { background: linear-gradient(135deg, #9333ea, #db2777); }
.t6 { background: linear-gradient(135deg, #0ea5e9, #84cc16); }
.t8 { background: linear-gradient(135deg, #1d4ed8, #7c3aed); }
.t9 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.t10 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.t11 { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.t12 { background: linear-gradient(135deg, #14b8a6, #3b82f6); }
.t13 { background: linear-gradient(135deg, #16a34a, #0ea5e9); }
.t15 { background: linear-gradient(135deg, #f97316, #b91c1c); }
.t14 { background: linear-gradient(135deg, #6d28d9, #0ea5e9); }
.t16 { background: linear-gradient(135deg, #dc2626, #1e293b); }
.t17 { background: linear-gradient(135deg, #ec4899, #3b82f6); }
.t18 { background: linear-gradient(135deg, #1b2a4a, #3b5b92); }
.t19 { background: linear-gradient(135deg, #ffd24a, #f59e0b); }
.t20 { background: linear-gradient(135deg, #be123c, #1e3a8a); }
.t21 { background: linear-gradient(135deg, #be123c, #1e3a8a); }


.badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--yellow);
  color: #222;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 10px 0 10px 0;
}

.game-body { flex: 1; min-width: 0; }
.game-body h3 { font-size: 16px; margin-bottom: 4px; }
.game-body p { font-size: 12px; color: var(--muted); line-height: 1.4; }

.play-btn {
  background: var(--yellow);
  color: #222;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.play-btn:active { transform: scale(0.96); }

.hs-tabs{display:flex;gap:10px;margin-bottom:12px}
.hs-tab{flex:1;text-align:center;margin-top:10px; margin-left: 10px; margin-right: 10px; padding:13px 8px;border-radius:18px;font-weight:800;font-size:17px;color:#cfe3ff;text-decoration:none;border:2px solid #1f3a8a;background:#0b1544}
.hs-tab.g.on{color:#fff;border-color:#22d3ee;background:linear-gradient(135deg,#1d4ed8,#a855f7)}