/* ==========================================================================
   SKILL WAR — Native-Feel Mobile eSports Web App (Exact Screenshot Theme)
   Jet Black #000000 | Deep Violet #141217 | Neon Purple #D4AF37 | Gold #f59e0b
   Anti-Select & Anti-Image-Download Protection Enabled
   ========================================================================== */

:root {
  --bg: #0B0A0E;
  --violet: #141217;
  --violet-2: #1A171E;
  --surface-input: #1F1C24;
  --border: rgba(212, 175, 55, 0.24);
  --border-active: rgba(245, 220, 142, 0.60);
  --purple: #D4AF37;
  --purple-bright: #E8C65C;
  --gold-champagne: #F6DF98;
  --gold-antique: #A67C1E;
  --gold-deep: #8C6514;
  --gold-grad: linear-gradient(135deg, #F5DC8E 0%, #D4AF37 52%, #A67C1E 100%);
  --gold-card-grad: linear-gradient(145deg, rgba(212, 175, 55, 0.14) 0%, rgba(20, 18, 23, 0.96) 55%);
  --gold-glow: 0 0 14px rgba(212, 175, 55, 0.22);
  --on-gold: #0D0B07;
  --text: #F7F4EC;
  --muted: #A6A095;
  --gold: #D4AF37;
  --green: #10b981;
  --red: #e11d48;
  --blue: #1d4ed8;
  --orange: #d97706;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  overscroll-behavior-y: contain;
  /* Anti-copy native-app feel */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, select {
  user-select: text;
  -webkit-user-select: text;
}

img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.hidden { display: none !important; }

/* ---------- Auth Screen ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.16), transparent 55%), #000;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--violet);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
}
.auth-logo-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: #141217;
  border: 2px solid var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-brand { text-align: center; font-size: 22px; font-weight: 900; letter-spacing: 1px; color: #fff; }
.auth-sub { text-align: center; color: var(--muted); font-size: 12px; margin: 4px 0 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.auth-tab {
  padding: 10px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, 0.28);
  background: #1A171E; color: var(--muted); font-weight: 700; cursor: pointer;
}
.auth-tab.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; color: #E8C65C; font-weight: 600; }
input, select {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, 0.28);
  background: #1F1C24; color: #fff; font-size: 14px; font-family: inherit;
}
input:focus { outline: none; border-color: var(--purple-bright); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 10px; border: none; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-purple { background: var(--gold-grad); color: #fff; }
.btn-dark   { background: #0B0A0E; border: 1px solid rgba(212, 175, 55, 0.28); color: #fff; }
.btn-red    { background: var(--red); color: #fff; }
.btn-sm     { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn-block  { width: 100%; }

.msg-box { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.msg-box.err { background: rgba(225,29,72,0.18); color: #fda4af; border: 1px solid rgba(225,29,72,0.45); }
.msg-box.ok  { background: rgba(16,185,129,0.18); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.45); }

/* ---------- App Shell & Header (Matches 9331.jpg) ---------- */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hdr-left { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
.avatar-ring {
  width: 42px; height: 42px; border-radius: 50%; background: var(--violet);
  border: 2px solid var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hdr-uname { font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 145px; }
.hdr-app { font-size: 11px; font-weight: 700; color: var(--purple-bright); letter-spacing: 0.4px; }
.hdr-right { display: flex; align-items: center; gap: 10px; }
.hdr-support-btn { background: transparent; border: none; padding: 4px; cursor: pointer; display: flex; align-items: center; }

.wallet-pill {
  background: var(--gold-grad);
  color: #fff; border: 1.5px solid #E8C65C; border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
}
.wp-div { opacity: 0.5; font-weight: 400; }
.wp-plus { font-size: 17px; line-height: 1; }

.view-container { flex: 1; padding: 4px 14px 86px; }

/* ---------- Home Screen Components (9331.jpg) ---------- */
.rules-pill {
  background: var(--violet);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  cursor: pointer;
}
.rules-pill-text {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}

.quick-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.q-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; color: #fff; }
.q-box {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--violet); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.14s ease;
}
.q-item:active .q-box { transform: scale(0.94); }
.q-lbl { font-size: 12px; font-weight: 600; color: #f3f4f6; }

.sec-head { margin-bottom: 10px; }
.sec-title-row { display: flex; align-items: center; gap: 8px; }
.sec-title { font-size: 15px; font-weight: 900; color: var(--purple-bright); letter-spacing: 0.4px; text-transform: uppercase; }
.live-tag { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.sec-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Hero 2-Col 1:1 Cards */
.hero-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.hero-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--violet-2);
  border: 1.5px solid var(--border);
  cursor: pointer;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fairplay-pill {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(29, 78, 216, 0.94); color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 4px;
}
.hero-bottom-grad {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(11, 10, 14, 0.94));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
}
.hero-name { font-size: 13px; font-weight: 900; color: #fff; text-transform: uppercase; text-shadow: 0 1px 4px #000; }
.play-pill {
  background: #fff; color: #000; font-size: 10px; font-weight: 900;
  padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
}

/* My Contests 3-Col Cards */
.contest-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.contest-card {
  background: var(--violet);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer;
}
.contest-card span { font-size: 13px; font-weight: 700; color: #fff; }

/* ---------- Sub-Categories 3-Col Screen (9332.jpg) ---------- */
.sub-top-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--bg); position: sticky; top: 0; z-index: 35;
}
.sub-top-bar.violet { background: var(--violet); border-bottom: 1px solid rgba(212, 175, 55, 0.24); }
.back-btn { background: transparent; border: none; color: #fff; padding: 4px; cursor: pointer; display: flex; }
.sub-top-title { flex: 1; text-align: center; font-size: 18px; font-weight: 800; color: var(--purple-bright); margin-right: 28px; }
.sub-top-title.left { text-align: left; color: #fff; text-transform: uppercase; font-size: 16px; margin-right: 0; }

.subcat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 6px;
}
.subcat-card {
  border-radius: 10px; overflow: hidden; background: var(--violet);
  border: 1px solid rgba(212, 175, 55, 0.28); cursor: pointer; display: flex; flex-direction: column;
}
.subcat-img-wrap { width: 100%; aspect-ratio: 1 / 1; background: #141217; overflow: hidden; }
.subcat-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.subcat-label {
  background: var(--purple); color: #fff; font-size: 10px; font-weight: 800;
  text-align: center; padding: 7px 4px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Category Matches Screen (9333.jpg) ---------- */
.match-tabs-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--violet); margin: 0 -14px 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
}
.mtab-btn {
  background: transparent; border: none; border-bottom: 2.5px solid transparent;
  color: #e5e7eb; padding: 12px 6px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.4px; cursor: pointer;
}
.mtab-btn.active { color: var(--purple-bright); border-bottom-color: var(--purple-bright); }

.match-card {
  background: var(--violet);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.match-banner-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #141217; overflow: hidden;
}
.match-banner-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-badges {
  position: absolute; top: 8px; right: 8px; display: flex; gap: 6px;
}
.b-pill-dark { background: rgba(0,0,0,0.78); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.b-pill-blue { background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }

.match-inner { padding: 12px 14px 14px; }
.tag-row { display: flex; gap: 8px; margin-bottom: 10px; }
.tag-purple { background: var(--purple); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.tag-orange { background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 6px; text-transform: uppercase; }

.match-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.match-mini-ico {
  width: 38px; height: 38px; border-radius: 50%; background: #141217;
  border: 1.5px solid var(--orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.match-title-txt { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.3; }

.match-info-3 {
  display: grid; grid-template-columns: 1.15fr 1fr 0.85fr;
  border-top: 1px solid rgba(212, 175, 55, 0.24); border-bottom: 1px solid rgba(212, 175, 55, 0.24);
  padding: 10px 0; margin-bottom: 12px; text-align: center;
}
.mi-col { padding: 0 6px; border-right: 1px solid rgba(212, 175, 55, 0.24); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.mi-col:last-child { border-right: none; }
.mi-lbl { font-size: 11px; font-weight: 800; color: #d97706; text-transform: uppercase; margin-bottom: 3px; }
.mi-val { font-size: 14px; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 4px; }

.match-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slot-col { flex: 1; }
.slot-txt { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.slot-bar { height: 5px; background: rgba(212, 175, 55, 0.20); border-radius: 999px; overflow: hidden; }
.slot-fill { height: 100%; background: linear-gradient(90deg, #e11d48, #f43f5e); }

.join-cta-btn {
  background: #141217; color: #fff; border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 10px; padding: 9px 14px; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.join-cta-btn.ready { background: var(--gold-grad); border-color: #E8C65C; }

/* ---------- Rank Podium Screen (9335.jpg) ---------- */
.podium-wrap {
  background: linear-gradient(180deg, #2A210D 0%, #141217 100%);
  margin: 0 -14px 16px;
  padding: 24px 12px 26px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  text-align: center;
  gap: 8px;
}
.pod-col { display: flex; flex-direction: column; align-items: center; }
.pod-avatar {
  width: 66px; height: 66px; border-radius: 50%; background: #1f2937;
  border: 3px solid #e5e7eb; display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.pod-col.first .pod-avatar { width: 84px; height: 84px; border-color: #fbbf24; }
.pod-name { font-size: 13px; font-weight: 800; color: #fff; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-win  { font-size: 12px; font-weight: 700; color: #F6DF98; margin-top: 2px; }

.period-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ptab-btn {
  padding: 10px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--bg); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
}
.ptab-btn.active { background: var(--purple); border-color: var(--purple); }

.rank-row {
  background: var(--violet); border-radius: 12px; padding: 11px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.rank-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-num { font-size: 14px; font-weight: 800; width: 22px; color: #e5e7eb; }
.rank-av { width: 38px; height: 38px; border-radius: 50%; background: rgba(212, 175, 55, 0.20); border: 1.5px solid #E8C65C; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-name { font-size: 14px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; }

/* ---------- Account Screen (9334.jpg) ---------- */
.acc-hero { text-align: center; padding: 10px 0 16px; }
.acc-logo {
  width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--violet); border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
}
.acc-name { font-size: 18px; font-weight: 800; }
.acc-verified { font-size: 14px; font-weight: 700; color: var(--green); margin-top: 3px; }

.acc-stats-card {
  background: var(--violet); border-radius: 14px; padding: 16px 8px;
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 16px;
}
.as-col { border-right: 1px solid rgba(212, 175, 55, 0.24); padding: 0 6px; }
.as-col:last-child { border-right: none; }
.as-val { font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.as-lbl { font-size: 12px; color: #e5e7eb; margin-top: 4px; font-weight: 600; }

.acc-menu-btn {
  width: 100%; background: var(--violet); border: none; border-radius: 12px;
  padding: 15px 16px; margin-bottom: 10px; color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.acc-menu-left { display: flex; align-items: center; gap: 14px; }

/* ---------- Bottom Navigation Bar (Matches 9331/9334/9335) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 66px;
  background: #141217;
  border-top: 1.5px solid var(--border);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 40;
}
.bnav-btn {
  background: transparent; border: none; color: #A6A095;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; padding: 0;
}
.bnav-lbl { font-size: 11px; font-weight: 700; display: none; }
.bnav-btn.active { color: var(--purple-bright); }
.bnav-btn.active .bnav-lbl { display: block; }

/* ---------- Cards, Wallet, Sheets ---------- */
.v-card { background: var(--violet); border: 1px solid rgba(212, 175, 55, 0.24); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.room-box { background: #141217; border: 1.5px dashed var(--purple); border-radius: 12px; padding: 14px; margin: 12px 0; text-align: center; }
.list-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(212, 175, 55, 0.20); gap: 10px; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); font-size: 13px; }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { width: 100%; max-width: 480px; max-height: 88vh; background: var(--violet); border-top: 1.5px solid var(--border); border-top-left-radius: 20px; border-top-right-radius: 20px; display: flex; flex-direction: column; }
.sheet-header { padding: 14px 16px; border-bottom: 1px solid rgba(212, 175, 55, 0.24); display: flex; align-items: center; justify-content: space-between; }
.sheet-header h3 { margin: 0; font-size: 16px; color: #fff; }
.sheet-close { background: none; border: none; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.sheet-body { padding: 16px; overflow-y: auto; }

.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #1A171E; border: 1px solid var(--purple-bright); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; z-index: 120;
  white-space: nowrap;
}

/* ---------- Exact My Wallet (9361), Add Money (9362), Withdraw Money (9363) ---------- */
.mw-card {
  background: var(--violet);
  border-radius: 16px;
  padding: 20px 18px 18px;
  margin-top: 8px;
}
.mw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
}
.mw-row:first-child { padding-top: 2px; }
.mw-row:last-of-type { border-bottom: none; }
.mw-lbl { font-size: 14px; color: #A6A095; font-weight: 600; margin-bottom: 4px; }
.mw-val { font-size: 24px; font-weight: 800; color: #ffffff; }
.mw-pill-btn {
  background: var(--gold-grad);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 136px;
  justify-content: center;
}
.mw-footer { text-align: center; margin-top: 14px; }
.mw-footer-1 { font-size: 13px; font-weight: 600; color: #ffffff; margin-bottom: 4px; }
.mw-footer-2 { font-size: 13px; font-weight: 700; color: var(--purple-bright); }

.amt-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}
.amt-chip {
  padding: 11px 8px;
  border-radius: 10px;
  border: 1.5px solid #4b5563;
  background: var(--bg);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.amt-chip.active { border-color: var(--purple-bright); background: var(--violet); }

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 13px;
  margin: 10px 0 14px;
}
.or-divider::before, .or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #374151;
}

.gw-radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}
.gw-radio-row input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #f97316;
  margin: 0;
}

.wd-hero-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.20), #D4AF37);
  border: 1px solid #D4AF37;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.wd-hero-lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.7px; color: #F6DF98; }
.wd-hero-amt { font-size: 28px; font-weight: 900; display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.wd-hero-sub { font-size: 12px; color: #F6DF98; }

.wd-method-box {
  background: #1F1C24;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 14px;
  padding: 8px 14px;
  margin-bottom: 16px;
}
.wd-method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #f3f4f6;
}
.wd-method-row input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #D4AF37;
  margin: 0;
}

/* ---------- Match Result Screen (9365.jpg) & Earn Posts (9366.jpg) ---------- */
.res-title-orange {
  font-size: 16px; font-weight: 800; color: #ea580c;
  margin: 12px 0 10px; line-height: 1.35; text-transform: uppercase;
}
.res-pills-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.res-info-pill {
  background: #ffffff; color: #111827; font-size: 13px; font-weight: 700;
  padding: 7px 11px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 5px;
}
.res-table-card {
  border-radius: 8px; overflow: hidden; margin-bottom: 16px; border: 1px solid rgba(212, 175, 55, 0.20);
}
.res-table-banner {
  background: var(--violet); color: #ffffff; text-align: center;
  padding: 12px; font-size: 15px; font-weight: 800;
}
.res-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.res-table thead th {
  background: #2f333a; color: #ffffff; padding: 11px 8px;
  text-align: center; font-weight: 700; font-size: 13px;
}
.res-table tbody td {
  background: #ffffff; color: #111827; padding: 12px 8px;
  text-align: center; font-weight: 600; border-bottom: 1px solid #e5e7eb;
}

.earn-banner-card {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1.5px solid rgba(212, 175, 55, 0.24); background: var(--violet); margin-bottom: 14px;
  cursor: pointer; display: block;
}
.earn-banner-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Smooth Native Animations & Skeleton Shimmer Loaders ---------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes skelShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.anim-in { animation: fadeSlideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1) both; }

.skel {
  background: linear-gradient(90deg, #141217 25%, #231F29 50%, #141217 75%);
  background-size: 800px 100%;
  animation: skelShimmer 1.35s infinite linear;
  border-radius: 10px;
}
.skel-card {
  background: #0E0D12;
  border: 1px solid #1F1C24;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}
.skel-banner { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.skel-line { height: 13px; margin-bottom: 10px; border-radius: 6px; }
.skel-btn  { height: 38px; border-radius: 10px; }

/* ---------- Ongoing SPECTATE (9460) & Result WATCH / NOT JOINED (9461) ---------- */
.btn-spectate-coral {
  width: 100%;
  background: #eb6363;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-spectate-coral:active { transform: scale(0.98); }

.result-btn-row {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 10px;
  margin-top: 6px;
}
.btn-res-purple {
  background: var(--gold-grad);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px 10px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-res-purple:active { transform: scale(0.98); }

/* ---------- Full Match Detail Screen (9462.jpg) ---------- */
.md-tabs-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--violet);
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
  margin: 0 -14px 14px;
}
.md-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: #ffffff;
  padding: 13px 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
}
.md-tab-btn.active { color: #ea580c; border-bottom-color: #ea580c; }

.md-sec-orange { font-size: 15px; font-weight: 800; color: #ea580c; margin: 14px 0 8px; }
.rules-box-light {
  background: #F6DF98;
  color: #111827;
  border-radius: 10px;
  padding: 16px 14px;
  margin-bottom: 84px;
}
.rules-box-title {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid #A6A095;
  color: #000;
}
.rules-box-list { padding-left: 18px; margin: 0; font-size: 13px; line-height: 1.55; font-weight: 600; color: #1f2937; }
.rules-box-list li { margin-bottom: 7px; }

.md-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 12px 14px;
  background: #374151;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  border: none;
  cursor: pointer;
  z-index: 50;
  letter-spacing: 0.6px;
}
.md-sticky-cta.active { background: var(--gold-grad); }

.member-row {
  background: var(--violet);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Native Android WebView Polish, Safe Areas, 60fps GPU Transitions & Circular Loader ---------- */
html {
  overflow-x: clip;
  overflow-y: auto;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body {
  min-height: 100dvh;
  overflow-x: clip;
  overflow-y: visible;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar, .view-container::-webkit-scrollbar {
  display: none;
}
.app-shell {
  width: 100%;
  min-height: 100dvh;
  overflow-x: clip;
  touch-action: pan-y;
}
/* Zero-Shake Fixed Header & Sub-Top-Bar (identical 64px height across all tabs & sub-screens) */
.app-header {
  height: calc(64px + env(safe-area-inset-top, 0px));
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  box-sizing: border-box;
}
.sub-top-bar {
  height: calc(64px + env(safe-area-inset-top, 0px));
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  box-sizing: border-box;
}
.bottom-nav {
  height: calc(66px + env(safe-area-inset-bottom, 0px));
  min-height: calc(66px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  transform: translate3d(-50%, 0, 0);
}
/* Keep bottom nav labels always laid out so icons never jump vertically on tab switch */
.bnav-lbl {
  display: block !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.65;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.bnav-btn.active .bnav-lbl {
  opacity: 1;
}
.view-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: clip;
  overflow-y: visible;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px) + 20px);
}

/* Native Android Material 60fps GPU-Only Transitions (Zero Bounce / Zero Shake) */
@keyframes tabCrossFade {
  from { opacity: 0.72; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0.01; transform: translate3d(24px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes slideInLeft {
  from { opacity: 0.01; transform: translate3d(-24px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes sheetSlideUp {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}
@keyframes rippleAnim {
  from { opacity: 0.3; transform: scale(0); }
  to   { opacity: 0; transform: scale(2.4); }
}

.anim-fade    { animation: tabCrossFade 0.15s cubic-bezier(0.2, 0, 0, 1) both; will-change: opacity; }
.anim-forward { animation: slideInRight 0.22s cubic-bezier(0.2, 0, 0, 1) both; will-change: transform, opacity; }
.anim-back    { animation: slideInLeft  0.22s cubic-bezier(0.2, 0, 0, 1) both; will-change: transform, opacity; }

.sheet-backdrop { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-box { animation: sheetSlideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1) both; will-change: transform, opacity; }

.btn, .hero-card, .subcat-card, .contest-card, .acc-menu-btn, .mw-pill-btn, .bnav-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.hero-card:active, .subcat-card:active, .contest-card:active, .acc-menu-btn:active, .mw-pill-btn:active {
  transform: scale(0.97);
}
.ui-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  animation: rippleAnim 0.42s ease-out forwards;
}

/* Global Branded Circular App Logo Loader */
.global-loader {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.global-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-ring-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-spin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.20);
  border-top-color: #E8C65C;
  border-right-color: #D4AF37;
  animation: ringSpin 0.85s linear infinite;
  will-change: transform;
}
.loader-logo-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  background: #141217;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.26);
}
.loader-logo-circle img, .avatar-ring img, .auth-logo-ring img, .acc-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.loader-brand-txt {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #F6DF98;
  text-transform: uppercase;
}

/* ---------- Exact 9463 Login & 9464 Sign Up Screens ---------- */
.auth-wrap-9463 {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 28px 22px calc(44px + env(safe-area-inset-bottom, 0px));
}
.auth-inner-9463 { width: 100%; max-width: 400px; margin: auto 0; }
.auth-heading-9463 {
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 26px;
}
.pill-input-purple {
  width: 100%;
  background: #D4AF37 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 15px 22px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 500;
  margin-bottom: 14px;
}
.pill-input-purple::placeholder { color: rgba(255, 255, 255, 0.85); }
.pill-input-purple:focus { box-shadow: 0 0 0 2px #F6DF98; }

.phone-pill-row { display: grid; grid-template-columns: 88px 1fr; gap: 10px; margin-bottom: 14px; }
.pill-cc {
  background: #D4AF37;
  border-radius: 999px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.forgot-row { text-align: right; margin: -4px 4px 20px; }
.forgot-link { background: none; border: none; color: #A6A095; font-size: 13px; cursor: pointer; }
.btn-auth-submit {
  width: 100%;
  background: #D4AF37;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
}
.btn-auth-submit:active { transform: scale(0.98); }
.terms-note { text-align: center; font-size: 12px; color: #d1d5db; margin: 14px 0 18px; line-height: 1.5; }
.auth-switch-row { text-align: center; margin-top: 22px; font-size: 14px; color: #d1d5db; }
.auth-switch-btn { background: none; border: none; color: #ffffff; font-weight: 800; font-size: 14px; cursor: pointer; padding: 0 4px; }

/* ---------- Account Banned / Suspended Lockout Screen ---------- */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lock-card {
  width: 100%;
  max-width: 390px;
  background: var(--violet);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
}
.lock-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: rgba(225, 29, 72, 0.16);
  border: 2px solid #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-title { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: #ffffff; }
.lock-desc { margin: 0 0 14px; font-size: 13px; color: #d1d5db; line-height: 1.5; }
.suspend-timer-box {
  background: #1F1C24;
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0 6px;
}
.st-label { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; color: #fbbf24; margin-bottom: 4px; }
.st-clock { font-size: 20px; font-weight: 900; color: #ffffff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- Global Native Pull-to-Refresh Indicator ---------- */
.ptr-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate3d(-50%, -60px, 0);
  z-index: 150;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1A171E;
  border: 2px solid #D4AF37;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0;
}
.ptr-indicator.visible { opacity: 1; }
.ptr-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(212, 175, 55, 0.24);
  border-top-color: #ffffff;
}
.ptr-indicator.refreshing .ptr-spinner {
  animation: ringSpin 0.7s linear infinite;
}

.ptr-indicator.ready {
  border-color: #F6DF98;
  box-shadow: 0 4px 20px rgba(246, 223, 152, 0.60);
}


/* ---------- Duo/Squad Joined + Add Teammate Button & Entry Picker ---------- */
.join-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.join-plus-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid #E8C65C;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.35);
  transition: transform 0.14s ease, filter 0.14s ease;
}
.join-plus-btn:active {
  transform: scale(0.92);
  filter: brightness(1.08);
}
.entry-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.entry-mode-grid.cols-4 {
  grid-template-columns: repeat(2, 1fr);
}
.entry-mode-pill {
  background: #1A171E;
  border: 1.5px solid rgba(212, 175, 55, 0.24);
  border-radius: 11px;
  padding: 10px 10px;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.entry-mode-pill small {
  font-size: 10px;
  font-weight: 600;
  color: #D4AF37;
}
.entry-mode-pill.active {
  background: linear-gradient(135deg, #D4AF37, #E8C65C);
  border-color: #F6DF98;
  color: #ffffff;
}
.entry-mode-pill.active small {
  color: #F6DF98;
}
.entry-mode-pill:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.md-sticky-split {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #141217;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
  z-index: 45;
}
.md-sticky-split .md-split-joined {
  flex: 1;
  background: #1F1C24;
  color: #E8C65C;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.md-sticky-split .md-split-add {
  flex: 1;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.nocoin-box {
  background: rgba(225, 29, 72, 0.14);
  border: 1.5px solid #e11d48;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  margin-bottom: 14px;
}
.nocoin-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.22);
  border: 1.5px solid #f43f5e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}


/* ---------- Clean Styled Image Fallback (Zero Broken HTML Icons) ---------- */
.img-fallback-box {
  width: 100%;
  height: 100%;
  min-height: 80px;
  background: radial-gradient(circle at 50% 35%, #1F1C24 0%, #0E0D12 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #D4AF37;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}
.img-fallback-box svg {
  opacity: 0.72;
}


/* ---------- Full-Screen Dedicated Payment Page (Zero Cropping / Zero Double Scroll) ---------- */
@keyframes zapSlideIn {
  from { opacity: 0.01; transform: translate3d(0, 28px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes zapPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.75); }
}
.zap-fs-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  z-index: 120;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: zapSlideIn 0.22s cubic-bezier(0.2, 0, 0, 1) both;
  will-change: transform, opacity;
}
.zap-fs-bar {
  height: calc(64px + env(safe-area-inset-top, 0px));
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  background: var(--violet);
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  box-sizing: border-box;
}
.zap-fs-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.zap-fs-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.zap-fs-sub {
  font-size: 11px;
  font-weight: 700;
  color: #E8C65C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zap-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.zap-live-pill.err {
  background: rgba(225, 29, 72, 0.16);
  border-color: rgba(225, 29, 72, 0.45);
  color: #fda4af;
}
.zap-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: zapPulseDot 1.3s ease-in-out infinite;
}
.zap-live-pill.err .zap-live-dot {
  background: #f43f5e;
  animation: none;
}
.zap-fs-body {
  flex: 1;
  height: calc(100dvh - 64px - env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0B0A0E;
  position: relative;
}
.zap-fs-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #ffffff;
}
.zap-fs-qr-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  text-align: center;
  overflow-y: auto;
}
.zap-fs-status-strip {
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #141217;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
  font-size: 12px;
  font-weight: 700;
  color: #F6DF98;
  text-align: center;
  flex-shrink: 0;
}
.zap-fs-status-strip.ok { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); }
.zap-fs-status-strip.err { color: #fda4af; background: rgba(225, 29, 72, 0.14); }
.zap-cancel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}
.zap-cancel-card {
  width: 100%;
  max-width: 340px;
  background: var(--violet);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
}


/* ---------- 3D Gold Coin Alignment & Universal Mobile Screen Adaptation (320px -> 480px+) ---------- */
.coin-3d {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.view-container {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  min-width: 0;
}
.hdr-user, .hdr-left, .mi-col, .slot-col, .rank-left, .acc-menu-left {
  min-width: 0;
}
.acc-logo {
  overflow: hidden;
}
.avatar-ring {
  overflow: hidden;
}
.sheet-box {
  max-width: min(480px, calc(100vw - 0px));
  max-height: 88dvh;
}
@media (max-width: 360px) {
  .app-header { padding-left: 10px; padding-right: 10px; gap: 6px; }
  .hdr-uname { max-width: 105px; font-size: 14px; }
  .wallet-pill { padding: 6px 10px; font-size: 13px; gap: 5px; }
  .view-container { padding-left: 10px; padding-right: 10px; }
  .quick-grid-4 { gap: 6px; }
  .q-box { width: 54px; height: 54px; border-radius: 14px; }
  .q-lbl { font-size: 11px; }
  .contest-grid-3 { gap: 7px; }
  .contest-card { padding: 12px 4px 10px; }
  .contest-card span { font-size: 11.5px; }
  .mi-val { font-size: 12.5px; }
  .join-cta-btn { padding: 8px 10px; font-size: 11.5px; }
}


/* ==========================================================================
   Royal Metallic Golden Theme — High-Contrast & Eye-Comfort Overrides
   ========================================================================== */
.btn-purple,
.wallet-pill,
.subcat-label,
.join-cta-btn.ready,
.ptab-btn.active,
.auth-tab.active,
.amt-chip.active,
.entry-mode-pill.active,
.mw-pill-btn,
.md-sticky-cta.active,
.btn-res-purple,
.tag-purple {
  background: var(--gold-grad) !important;
  color: var(--on-gold) !important;
  border-color: rgba(245, 220, 142, 0.60) !important;
  box-shadow: var(--gold-glow);
}
.mw-pill-btn svg {
  fill: var(--on-gold) !important;
}
.join-cta-btn.ready .coin-3d,
.btn-res-purple .coin-3d {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.rules-pill,
.q-box,
.contest-card,
.v-card,
.mw-card,
.wd-hero-card,
.match-card,
.rank-row,
.acc-stats-card,
.acc-menu-btn {
  background-image: var(--gold-card-grad);
  border-color: var(--border);
}
.hero-card {
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}
.hero-card:active, .q-item:active .q-box, .contest-card:active {
  border-color: var(--border-active);
  box-shadow: var(--gold-glow);
}

/* Auth Pill Inputs: Luxury Obsidian with Royal Gold Border & Crisp Ivory Text */
.pill-input-purple {
  background: var(--surface-input) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.42) !important;
  color: var(--text) !important;
}
.pill-input-purple::placeholder {
  color: var(--muted) !important;
}
.pill-input-purple:focus {
  border-color: var(--border-active) !important;
  box-shadow: var(--gold-glow) !important;
}
.pill-cc {
  background: var(--surface-input);
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  color: var(--gold-champagne);
}
.btn-auth-submit {
  background: var(--gold-grad);
  color: var(--on-gold);
  box-shadow: var(--gold-glow);
}

/* Bottom Navigation Active Royal Gold Glow */
.bottom-nav {
  background: #111015;
  border-top: 1.5px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.65);
}
.bnav-btn.active {
  color: var(--gold-champagne);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.35));
}

/* Podium Header & Subtle Gold Shimmer Skeleton */
.podium-wrap {
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.38);
}
.skel {
  background: linear-gradient(90deg, #141217 25%, rgba(212, 175, 55, 0.12) 50%, #141217 75%) !important;
  background-size: 200% 100% !important;
}


/* ---------- Home "IMPORTANT" 16:9 Auto-Scrolling Slider Carousel (Screenshot 9637.jpg) ---------- */
.important-badge-ico {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-slider-wrap {
  position: relative;
  margin: 0 -14px 16px;
  padding: 0 14px;
  overflow: hidden;
  touch-action: pan-y;
}
.home-slider-track {
  display: flex;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.home-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--violet);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.home-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.home-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.28);
  transition: width 0.22s ease, background-color 0.22s ease;
  cursor: pointer;
}
.home-slider-dot.active {
  width: 18px;
  background: var(--purple-bright);
}

/* ---------- Dedicated Full-Page Announcement / Official Rules (Screenshot 9636.jpg) ---------- */
.rules-page-card {
  background: var(--violet);
  background-image: var(--gold-card-grad);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  margin-top: 4px;
}
.rules-page-heading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--gold-champagne);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.rules-page-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}
.rules-page-item:last-child {
  margin-bottom: 0;
}
.rules-page-arrow {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--purple-bright);
}
/* ==========================================================================
   MY CONTESTS Luxury Metallic Gold Cards (Exact Match to 9877.png)
   ========================================================================== */
.contest-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.contest-card {
  position: relative;
  background: linear-gradient(170deg, #3b3e47 0%, #24262e 45%, #16171d 100%) !important;
  background-image: linear-gradient(170deg, #3b3e47 0%, #24262e 45%, #16171d 100%) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.72) !important;
  border-radius: 16px;
  padding: 16px 6px 14px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  cursor: pointer;
  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.68),
    inset 0 0 0 3px rgba(10, 10, 14, 0.42),
    inset 0 1px 1px rgba(255, 232, 158, 0.34);
  transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.contest-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 234, 167, 0.14);
  pointer-events: none;
}
.contest-card svg {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}
.contest-card span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #f3f4f6;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.contest-card:active {
  transform: scale(0.96);
  border-color: rgba(246, 223, 152, 0.95) !important;
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.42),
    0 4px 12px rgba(0, 0, 0, 0.7),
    inset 0 0 0 3px rgba(10, 10, 14, 0.42);
}
@media (max-width: 360px) {
  .contest-grid-3 { gap: 7px; }
  .contest-card { padding: 13px 4px 11px; min-height: 106px; gap: 8px; border-radius: 14px; }
  .contest-card svg { width: 44px; height: 44px; }
  .contest-card span { font-size: 11px; letter-spacing: 0.4px; }
}

/* ==========================================================================
   My Referrals & Referral Leaderboard Full-Screen Pages
   ========================================================================== */
.ref-code-card {
  background: linear-gradient(165deg, #25222c 0%, #15131a 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.48), 0 0 14px rgba(212, 175, 55, 0.14);
}
.ref-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.ref-code-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #e6c56e;
}
.ref-total-pill {
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #f6df98;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.ref-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(10, 9, 13, 0.85);
  border: 1.5px dashed rgba(212, 175, 55, 0.65);
  border-radius: 12px;
  padding: 12px 14px;
}
.ref-code-val {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #fff8dc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-copy-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #f6df98 0%, #d4af37 55%, #b5881e 100%);
  color: #141118;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}
.ref-copy-btn:active { transform: scale(0.96); }
.ref-code-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.ref-list-card {
  background: linear-gradient(165deg, #1f1d26 0%, #141219 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.ref-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: rgba(212, 175, 55, 0.08);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}
.ref-list-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #f6df98;
}
.ref-list-scroll {
  max-height: 390px;
  min-height: 160px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 6px 12px;
}
.ref-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.ref-list-row:last-child { border-bottom: none; }
.ref-list-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.ref-list-idx {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #f6df98;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ref-list-uname {
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-list-date {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.ref-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  gap: 8px;
}

/* Referral Leaderboard Top 10 */
.ref-lb-banner {
  background: linear-gradient(165deg, #27222e 0%, #15121b 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.ref-lb-banner-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ref-lb-banner-title {
  font-size: 15.5px;
  font-weight: 900;
  color: #f6df98;
  letter-spacing: 0.4px;
}
.ref-lb-banner-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.ref-lb-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ref-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(165deg, #211f28 0%, #141319 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
}
.ref-lb-row.top-1 {
  border-color: rgba(246, 223, 152, 0.85);
  background: linear-gradient(165deg, #322a1b 0%, #18140f 100%);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.22);
}
.ref-lb-row.top-2 {
  border-color: rgba(203, 213, 225, 0.55);
  background: linear-gradient(165deg, #252830 0%, #14161b 100%);
}
.ref-lb-row.top-3 {
  border-color: rgba(217, 119, 6, 0.55);
  background: linear-gradient(165deg, #2b211a 0%, #171310 100%);
}
.ref-lb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ref-lb-rank {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ref-lb-row.top-1 .ref-lb-rank {
  background: linear-gradient(135deg, #fff3b0, #d4af37);
  color: #141118;
  border-color: #fff3b0;
}
.ref-lb-row.top-2 .ref-lb-rank {
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  color: #0f172a;
  border-color: #e2e8f0;
}
.ref-lb-row.top-3 .ref-lb-rank {
  background: linear-gradient(135deg, #fcd34d, #b45309);
  color: #141118;
  border-color: #f59e0b;
}
.ref-lb-uname {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-lb-count {
  flex-shrink: 0;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #f6df98;
  font-size: 12.5px;
  font-weight: 900;
  padding: 5px 11px;
  border-radius: 999px;
}
