/* ==================== K9 Game Platform - Main Styles ==================== */
:root {
  --primary: #d4302f;
  --primary-dark: #b01e1d;
  --gold: #f5a623;
  --gold-light: #ffd700;
  --bg-dark: #1a0a0a;
  --bg-card: #2a1215;
  --bg-card-hover: #3a1a1d;
  --text-primary: #ffffff;
  --text-secondary: #b0a0a0;
  --text-gold: #f5a623;
  --border-color: #3a2020;
  --header-height: 52px;
  --tab-height: 44px;
  --bottom-nav-height: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #050202;
  color: var(--text-primary);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==================== App Container ==================== */
/* Mobile: full width. Desktop: centered with max-width */
#app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, #1a0808 0%, #0d0505 100%);
}

/* ==================== Page System ==================== */
.page {
  display: none;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  top: 0;
  left: 0;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 12px);
}
.page.active {
  display: block;
}

/* ==================== Header ==================== */
.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: linear-gradient(135deg, #1a0808, #2a1010);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: var(--safe-top);
  z-index: 100;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--primary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
}
.header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-deposit {
  background: linear-gradient(135deg, var(--gold), #e8941a);
  color: #1a0808;
}
.btn-deposit:active { transform: scale(0.95); }
.btn-withdraw {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-withdraw:active { transform: scale(0.95); }

/* ==================== User Info Bar ==================== */
.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(42, 16, 16, 0.8);
  border-bottom: 1px solid var(--border-color);
}
.user-bar-actions { position:relative;z-index:2;display:flex;align-items:center;gap:7px; }
.language-toggle { min-width:48px;height:34px;padding:0 9px;border:1px solid rgba(255,220,104,.7);border-radius:18px;background:linear-gradient(145deg,#442041,#27101e);color:#ffe36f;font-size:12px;font-weight:900;box-shadow:0 0 10px rgba(245,166,35,.2); }
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.user-id {
  font-size: 11px;
  color: var(--text-secondary);
}
.user-balance {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}
.user-balance span {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
}
.user-action-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-login {
  background: linear-gradient(135deg, var(--gold), #e8941a);
  color: #1a0808;
}
.btn-login:active { transform: scale(0.95); }
.btn-account {
  background: var(--bg-card);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 11px;
  padding: 6px 12px;
}
.btn-account:active { transform: scale(0.95); }

/* ==================== Tabs ==================== */
.tabs {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(26, 8, 8, 0.95);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: var(--safe-top);
  z-index: 99;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}
.tab:active { opacity: 0.7; }
.tab.active {
  color: var(--gold);
  font-weight: 700;
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ==================== Game Grid ==================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 10px);
  padding: 10px clamp(8px, 3vw, 14px);
  align-content: start;
}
.game-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
}
.game-card:active {
  transform: scale(0.96);
  background: var(--bg-card-hover);
}
.game-card-image {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #1a0a0a;
}
.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card-image .fallback-icon {
  font-size: 36px;
  opacity: 0.5;
}
.game-card-name {
  padding: 5px 6px;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.game-card-brand {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.7);
}

/* ==================== Loading ==================== */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  padding: 80px 20px;
  gap: 20px;
}
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-color);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==================== Game Webview ==================== */
.game-webview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: #000;
  display: none;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}
.game-webview.active { display: flex; flex-direction: column; }
.game-webview-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #0a0a0a;
  flex-shrink: 0;
}
.game-webview-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.game-webview-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
}
.game-webview-close:active { background: rgba(255,255,255,0.2); }
.game-webview-container {
  flex: 1;
  position: relative;
}
.game-webview-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.game-webview-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ==================== Bottom Navigation ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  background: rgba(16, 6, 6, 0.98);
  border-top: 1px solid var(--border-color);
  z-index: 200;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.nav-item:active { opacity: 0.7; }
.nav-item.active { color: var(--gold); }
.nav-icon {
  font-size: 20px;
  line-height: 1;
}
.nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* ==================== Modal / Login ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 12px) 12px calc(var(--safe-bottom) + 12px);
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  width: 85%;
  max-width: 360px;
  border: 1px solid var(--border-color);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--gold); }
.modal-input::placeholder { color: var(--text-secondary); }
.modal-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  margin-top: 8px;
}
.modal-btn-primary {
  background: linear-gradient(135deg, var(--gold), #e8941a);
  color: #1a0808;
}
.modal-btn-primary:active { transform: scale(0.97); }
.modal-btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.deposit-hint {
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  margin: -8px 0 14px;
}
.deposit-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}
.deposit-presets button {
  padding: 9px 2px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(245,166,35,0.08);
  color: var(--gold);
  font-weight: 700;
}
.modal-btn:disabled { opacity: .55; cursor: not-allowed; }
.withdraw-modal-box { max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 24px); overflow-y: auto; }
.withdraw-balance { margin: -8px 0 14px; padding: 10px; border-radius: 9px; background: rgba(100,200,100,.1); color: var(--text-secondary); font-size: 12px; text-align: center; }
.withdraw-balance strong { color: #64c864; font-size: 15px; }
.withdraw-review-note { margin: 2px 2px 10px; color: var(--text-secondary); font-size: 10px; line-height: 1.45; text-align: center; }
.withdraw-success { text-align: center; padding: 8px 0; }
.withdraw-success-icon { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#73db72,#23934a); color: #fff; font-size: 34px; box-shadow: 0 8px 24px rgba(57,183,91,.3); }
.withdraw-success p { margin: -8px 0 10px; color: var(--text-secondary); font-size: 13px; }
.withdraw-success strong { display: block; color: #fff0a0; font-size: 14px; line-height: 1.5; }
.withdraw-success small { display: block; margin-top: 12px; color: var(--text-secondary); }

/* ==================== Telegram Support ==================== */
.telegram-support-fab {
  position: fixed; z-index: 220; right: max(12px, env(safe-area-inset-right));
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 12px);
  width: 56px; height: 56px; display: grid; place-items: center; padding: 7px 6px 5px;
  border: 2px solid rgba(255,255,255,.82); border-radius: 50%;
  background: linear-gradient(145deg,#35b8ee,#168bd0); color: #fff;
  box-shadow: 0 6px 20px rgba(0,136,204,.5); cursor: pointer;
  animation: telegramPulse 2.2s ease-in-out infinite;
}
.telegram-support-fab svg { width: 25px; height: 25px; fill: currentColor; transform: translate(1px,-1px); }
.telegram-support-fab span { margin-top: -4px; font-size: 7px; font-weight: 800; letter-spacing: .2px; }
.telegram-support-box { text-align: center; }
.telegram-support-logo { width: 62px; height: 62px; margin: -3px auto 13px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#36b9ef,#168bd0); box-shadow: 0 8px 24px rgba(0,136,204,.35); }
.telegram-support-logo svg { width: 34px; height: 34px; fill: #fff; transform: translate(2px,-1px); }
.telegram-support-hint { margin: -9px 0 14px; color: var(--text-secondary); font-size: 12px; }
.telegram-support-link { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding: 13px 14px; border: 1px solid rgba(48,174,232,.38); border-radius: 11px; background: rgba(35,157,216,.1); color: #fff; text-decoration: none; }
.telegram-support-link span { font-size: 14px; font-weight: 650; }
.telegram-support-link b { padding: 5px 8px; border-radius: 999px; background: #229ed9; color: #fff; font-size: 9px; letter-spacing: .5px; }
@keyframes telegramPulse { 0%,100% { box-shadow: 0 6px 20px rgba(0,136,204,.45); transform: scale(1); } 50% { box-shadow: 0 6px 28px rgba(48,190,255,.8); transform: scale(1.05); } }

/* ==================== USDT Deposit Framework ==================== */
.usdt-menu-icon { background: rgba(38,161,123,.18); color: #43d5a5; font-size: 23px; font-weight: 900; }
.usdt-deposit-box { text-align: center; max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 24px); overflow-y: auto; }
.usdt-logo { width: 62px; height: 62px; margin: -3px auto 13px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#35c99b,#16876a); color: #fff; font-size: 38px; font-weight: 900; box-shadow: 0 8px 24px rgba(38,161,123,.34); }
.usdt-loading { padding: 24px 0; color: var(--text-secondary); font-size: 13px; }
.usdt-status { display: inline-block; margin: -8px 0 12px; padding: 5px 10px; border-radius: 999px; background: rgba(245,166,35,.12); color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.usdt-status.available { background: rgba(38,161,123,.18); color: #43d5a5; }
.usdt-qr-wrap { width: 132px; height: 132px; margin: 0 auto 13px; padding: 8px; display: grid; place-items: center; border-radius: 15px; background: #fff; }
.usdt-qr-wrap img { width: 116px; height: 116px; object-fit: contain; }
.usdt-qr-placeholder { width: 116px; height: 116px; display: grid; place-content: center; border: 2px dashed #a9b9b4; color: #5c7770; }
.usdt-qr-placeholder span { font-size: 25px; font-weight: 900; }.usdt-qr-placeholder small { font-size: 10px; }
.usdt-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.usdt-config-grid div { min-height: 58px; padding: 10px; border: 1px solid rgba(38,161,123,.22); border-radius: 10px; background: rgba(38,161,123,.07); }
.usdt-config-grid small,.usdt-address small { display: block; margin-bottom: 4px; color: var(--text-secondary); font-size: 9px; text-transform: uppercase; }
.usdt-config-grid strong { color: #d9fff3; font-size: 11px; line-height: 1.25; }
.usdt-address { margin-top: 8px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); text-align: left; }
.usdt-address code { display: block; color: #d9fff3; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.usdt-warning { margin: 10px 2px; color: #c4b6b6; font-size: 9px; line-height: 1.45; }

/* ==================== Branded Icons & Avatars ==================== */
.apk-download-icon { position:relative;overflow:hidden;color:#fff;font-size:0;box-shadow:0 0 14px rgba(245,166,35,.5),inset 0 1px rgba(255,255,255,.35); }
.apk-download-icon svg { width:25px;height:25px;fill:currentColor;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.apk-download-icon b { position:absolute;right:2px;bottom:1px;padding:1px 2px;border-radius:3px;background:#64123a;color:#fff06b;font-size:6px;letter-spacing:.3px; }
.apk-download-copy strong { color:#fff4be;font-size:14px;letter-spacing:.25px;text-shadow:0 1px 5px rgba(0,0,0,.5); }.apk-download-copy small { color:#e8cfc9;letter-spacing:.15px; }
.apk-download-action { padding:9px 12px;border:1px solid #fff099;border-radius:11px;background:linear-gradient(145deg,#ffd94d,#ff9700);box-shadow:0 0 13px rgba(255,181,26,.4),inset 0 1px rgba(255,255,255,.4); }
.nav-icon svg { width:20px;height:20px;fill:currentColor;filter:drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.nav-label { font-weight:700;letter-spacing:.15px; }.nav-item.active .nav-label { text-shadow:0 0 8px rgba(245,166,35,.7); }
.user-id { color:#f5e6e6;font-weight:650;letter-spacing:.1px; }.user-balance { font-weight:850;text-shadow:0 1px 6px rgba(245,166,35,.32); }
.user-avatar { overflow:hidden;cursor:pointer; }.user-avatar img,.account-avatar-preview img { width:100%;height:100%;object-fit:cover;display:block; }.user-avatar span { font-size:20px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.38)); }
.account-avatar-row { width:100%;display:flex;align-items:center;gap:11px;margin-bottom:12px;padding:0 0 14px;border:0;border-bottom:1px solid var(--border-color);background:none;color:#fff;text-align:left; }
.account-avatar-preview { flex:0 0 52px;width:52px;height:52px;display:grid;place-items:center;overflow:hidden;border:2px solid #ffc94c;border-radius:16px;background:linear-gradient(145deg,#7538bd,#e54a78);box-shadow:0 0 15px rgba(245,166,35,.28);font-size:28px; }
.account-avatar-row>span:nth-child(2) { min-width:0;flex:1;display:flex;flex-direction:column;gap:3px; }.account-avatar-row strong { font-size:14px; }.account-avatar-row small { color:var(--text-secondary);font-size:10px; }.account-avatar-row>b { color:var(--gold);font-size:9px;letter-spacing:.7px; }
.avatar-picker-box { text-align:center;background:radial-gradient(circle at 50% 0,#4b1c4e,#271116 55%);border-color:rgba(255,205,74,.42);box-shadow:0 0 28px rgba(213,52,145,.28); }
.avatar-picker-hint { margin:-10px 0 16px;color:var(--text-secondary);font-size:11px;line-height:1.4; }
.avatar-preset-grid { display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:15px; }
.avatar-preset { aspect-ratio:1;border:2px solid rgba(255,255,255,.15);border-radius:15px;color:#fff;background:linear-gradient(145deg,#7837c4,#e24d78);box-shadow:0 5px 12px rgba(0,0,0,.28);font-size:25px;transition:.2s; }.avatar-preset:active { transform:scale(.9);border-color:#ffe16a;box-shadow:0 0 14px rgba(255,217,78,.55); }.avatar-preset span { filter:drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.avatar-style-2,.avatar-style-7 { background:linear-gradient(145deg,#ff9e28,#d63353); }.avatar-style-3,.avatar-style-8 { background:linear-gradient(145deg,#2cb8c7,#3250a8); }.avatar-style-4,.avatar-style-9 { background:linear-gradient(145deg,#ef4e86,#832bbe); }.avatar-style-5,.avatar-style-10 { background:linear-gradient(145deg,#2fbc7d,#1760a9); }
.avatar-upload-button { border:1px solid rgba(71,201,161,.5);background:linear-gradient(135deg,#1e8f70,#2cc49a);color:#fff;box-shadow:0 5px 14px rgba(38,161,123,.25); }.avatar-upload-button span { margin-right:5px; }

/* ==================== Account Page ==================== */
.account-section {
  padding: 16px;
}
.account-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}
.account-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.account-info-row:last-child { border-bottom: none; }
.account-info-label {
  color: var(--text-secondary);
  font-size: 13px;
}
.account-info-value {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}
.account-menu-item:active {
  background: var(--bg-card-hover);
  transform: scale(0.98);
}
.account-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.account-menu-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}
.account-menu-arrow {
  color: var(--text-secondary);
  font-size: 16px;
}

/* ==================== Promo / Earn Pages ==================== */
.feature-page { padding: 16px; }
.feature-hero { border-radius: 16px; padding: 24px 20px; margin-bottom: 14px; color: #fff; overflow: hidden; position: relative; }
.promo-hero { background: linear-gradient(135deg, #5e1723, #b3471b); }
.earn-hero { background: linear-gradient(135deg, #172653, #4d2778); }
.feature-kicker { display: block; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 8px; }
.feature-hero h1 { margin: 0; font-size: 24px; letter-spacing: -.3px; }
.feature-hero p { margin: 8px 0 0; font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.5; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.feature-card-highlight { background: linear-gradient(145deg, #342015, #2a1215); border-color: rgba(245,166,35,.42); }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.feature-tag { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.feature-icon { color: var(--gold); font-size: 22px; }
.feature-card h2 { margin: 0; color: var(--text-primary); font-size: 17px; }
.feature-card p { margin: 8px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.feature-button { margin-top: 16px; width: 100%; border: 0; border-radius: 9px; padding: 11px; background: var(--gold); color: #241007; font-weight: 700; font-size: 14px; }
.feature-section { margin: 18px 0; }
.feature-section-title { color: var(--text-primary); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feature-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-color); text-align: center; }
.feature-empty-icon { color: var(--gold); font-size: 26px; }
.feature-empty strong { font-size: 14px; }
.feature-empty span { color: var(--text-secondary); font-size: 12px; }
.feature-rule { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.feature-rule:last-child { border-bottom: 0; }
.feature-rule span { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(245,166,35,.18); color: var(--gold); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.feature-rule p { margin: 2px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.45; }
.earn-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.earn-card { position: relative; display: flex; gap: 12px; align-items: center; padding: 15px; min-height: 74px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-color); }
.earn-card-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(139,103,255,.18); color: #b69bff; font-size: 20px; }
.earn-card h2 { margin: 0; font-size: 14px; }
.earn-card p { margin: 4px 0 0; color: var(--text-secondary); font-size: 11px; }
.coming-soon { position: absolute; top: 10px; right: 10px; color: #d6c9ff; background: rgba(139,103,255,.16); border-radius: 99px; padding: 4px 7px; font-size: 9px; }
.earn-note { border-color: rgba(139,103,255,.32); }

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 9999;
  display: none;
  max-width: 80%;
  text-align: center;
  pointer-events: none;
}
.toast.show {
  display: block;
  animation: toastFadeIn 0.2s ease;
}
@keyframes toastFadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

/* ==================== Empty State ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  padding: 60px 20px;
  color: var(--text-secondary);
  gap: 12px;
}
.empty-icon {
  font-size: 48px;
  opacity: 0.4;
}
.empty-text {
  font-size: 14px;
}

/* ==================== Android App Download ==================== */
.apk-download-banner {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid rgba(245, 166, 35, 0.34);
  background: linear-gradient(100deg, #2b0d0d 0%, #651b18 62%, #34100e 100%);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.apk-download-banner[hidden] { display: none; }
.apk-download-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), #ef7d18);
  font-size: 22px;
}
.apk-download-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.apk-download-copy strong { font-size: 13px; line-height: 1.2; }
.apk-download-copy small { color: rgba(255,255,255,.72); font-size: 10px; white-space: nowrap; }
.apk-download-action {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--gold);
  color: #271008;
  font-size: 10px;
  font-weight: 800;
}
.apk-download-banner:active { filter: brightness(.9); }

.welcome-spin-banner {
  position: relative; isolation: isolate; width: calc(100% - 16px); min-height: 82px; margin: 9px 8px 10px;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  overflow: hidden; border: 2px solid transparent; border-radius: 17px; color: #fff;
  background: linear-gradient(115deg,#360452,#a40872 42%,#ee3c38 73%,#ff8c00) padding-box,
              conic-gradient(from var(--promo-angle),#fff477,#ff3eca,#55eaff,#fff477) border-box;
  text-align: left; box-shadow: 0 7px 24px rgba(239,28,134,.48),0 0 16px rgba(255,218,64,.22),inset 0 0 22px rgba(255,255,255,.08);
  cursor: pointer; animation: promoBorder 2.6s linear infinite,promoFloat 3s ease-in-out infinite;
}
.welcome-spin-banner[hidden] { display: none !important; }
.welcome-spin-banner::before { content: ''; position: absolute; z-index: -1; width: 180px; height: 180px; right: -40px; top: -55px; border-radius: 50%; background: repeating-conic-gradient(from 5deg,rgba(255,238,105,.3) 0 7deg,transparent 7deg 18deg); animation: promoRays 12s linear infinite; }
.welcome-spin-banner::after { content: ''; position: absolute; z-index: 0; inset: 0; background: linear-gradient(115deg,transparent 18%,rgba(255,255,255,.34) 38%,transparent 54%); animation: welcomeShine 2.1s linear infinite; pointer-events: none; }
.welcome-spin-banner-icon { position: relative; z-index: 1; flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle at 35% 28%,#fff69f,#ffb300 45%,#dc357f 72%); box-shadow: 0 0 0 3px rgba(255,255,255,.16),0 0 17px #ffcf38; transform: rotate(-5deg); }
.welcome-spin-banner-icon b { font-size: 34px; filter: drop-shadow(0 3px 3px rgba(73,4,58,.65)); animation: promoDice 2.2s ease-in-out infinite; }
.welcome-spin-banner-copy { position: relative; z-index: 1; min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.welcome-spin-banner-copy em { width: fit-content; padding: 2px 6px; border-radius: 99px; background: #ffec55; color: #701044; font-size: 8px; font-style: normal; font-weight: 1000; letter-spacing: 1px; }
.welcome-spin-banner-copy strong { color: #fff; font-size: clamp(13px,4vw,18px); line-height: 1.22; letter-spacing: .1px; text-shadow: 0 2px 7px #5e064a; white-space: nowrap; }
.welcome-spin-banner-copy mark { padding: 0; background: transparent; color: #fff26c; font-size: 1.08em; text-shadow: 0 0 8px #ffb600; }
.welcome-spin-banner-copy small { color: rgba(255,255,255,.84); font-size: 9px; white-space: nowrap; }
.welcome-spin-banner-action { position: relative; z-index: 2; flex: 0 0 56px; width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid #fff3a0; border-radius: 50%; background: linear-gradient(145deg,#fff46b,#ff9f00); color: #771044; box-shadow: 0 0 0 4px rgba(255,226,76,.17),0 0 18px #ffd642,inset 0 -5px 9px rgba(197,70,0,.22); animation: promoCta 1.35s ease-in-out infinite; }
.welcome-spin-banner-action b { font-size: 13px; line-height: 1; }.welcome-spin-banner-action small { margin-top: 2px; font-size: 7px; font-weight: 1000; }
.welcome-spin-spark { position: absolute; z-index: 2; color: #fff785; text-shadow: 0 0 7px #fff; animation: promoSpark 1.2s ease-in-out infinite alternate; }.welcome-spin-spark-one { top: 4px; right: 76px; }.welcome-spin-spark-two { bottom: 3px; left: 72px; animation-delay: .55s; }
@keyframes welcomeShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@property --promo-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes promoBorder { to { --promo-angle: 360deg; } }
@keyframes promoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes promoRays { to { transform: rotate(360deg); } }
@keyframes promoDice { 0%,100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(7deg) scale(1.1); } }
@keyframes promoCta { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes promoSpark { from { opacity: .35; transform: scale(.65) rotate(0); } to { opacity: 1; transform: scale(1.25) rotate(50deg); } }
@media (max-width: 350px) { .welcome-spin-banner { padding: 9px 8px; gap: 7px; }.welcome-spin-banner-icon { flex-basis: 46px;width:46px;height:46px}.welcome-spin-banner-copy small { display:none }.welcome-spin-banner-action { flex-basis:50px;width:50px;height:50px } }

/* ==================== Premium Lobby Effects ==================== */
.user-bar { position: relative; overflow: hidden; border-bottom-color: rgba(245,166,35,.3); background: linear-gradient(110deg,rgba(41,13,16,.96),rgba(79,20,26,.94),rgba(31,9,12,.96)); box-shadow: 0 5px 18px rgba(0,0,0,.3); }
.user-bar::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 35%,rgba(255,206,92,.09),transparent 65%); pointer-events:none; animation: welcomeShine 5s linear infinite; }
.user-avatar { border: 1px solid rgba(255,224,130,.55); background: radial-gradient(circle at 35% 25%,#ffdb64,#bb481a 70%); box-shadow: 0 0 12px rgba(245,166,35,.35); }
.user-action-btn { position:relative; overflow:hidden; border:1px solid rgba(255,217,117,.38); box-shadow:0 3px 10px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.15); }
.tabs { background: linear-gradient(180deg,rgba(37,13,16,.98),rgba(20,8,10,.98)); box-shadow:0 5px 15px rgba(0,0,0,.24); }
.tab { position:relative; transition:color .25s,transform .25s,text-shadow .25s; }.tab.active { transform:translateY(-1px);text-shadow:0 0 9px rgba(245,166,35,.75); }.tab.active::after { height:3px;border-radius:3px;box-shadow:0 0 9px var(--gold); }
.game-card { position:relative; overflow:hidden; border-color:rgba(245,166,35,.18); background:linear-gradient(160deg,#35171c,#19090b); box-shadow:0 5px 14px rgba(0,0,0,.32); transition:transform .22s,border-color .22s,box-shadow .22s; }
.game-card::after { content:'';position:absolute;inset:0;background:linear-gradient(125deg,transparent 55%,rgba(255,207,92,.12));pointer-events:none; }
.game-card:active { transform:scale(.96);border-color:rgba(255,216,90,.75);box-shadow:0 0 16px rgba(245,166,35,.32); }
.game-card-image { transition:transform .35s,filter .35s; }.game-card:active .game-card-image { transform:scale(1.04);filter:saturate(1.18) brightness(1.05); }
.game-card-brand { border:1px solid rgba(255,255,255,.35);box-shadow:0 2px 8px rgba(0,0,0,.35);backdrop-filter:blur(5px); }
.bottom-nav { border-top-color:rgba(245,166,35,.28);background:linear-gradient(180deg,rgba(39,13,16,.98),rgba(17,6,8,.99));box-shadow:0 -6px 20px rgba(0,0,0,.42); }
.nav-icon { width:31px;height:31px;display:grid;place-items:center;margin-bottom:1px;border-radius:10px;background:rgba(255,255,255,.035);transition:.25s; }.nav-item.active .nav-icon { background:linear-gradient(145deg,rgba(245,166,35,.28),rgba(211,48,47,.22));box-shadow:0 0 13px rgba(245,166,35,.38);transform:translateY(-2px); }
.account-card,.account-menu-item,.feature-card,.earn-card { box-shadow:0 6px 18px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.025); }
.account-menu-item { position:relative;overflow:hidden;border-color:rgba(245,166,35,.16);background:linear-gradient(120deg,rgba(48,19,23,.98),rgba(31,12,15,.98)); }.account-menu-item::after { content:'';position:absolute;right:-22px;top:-30px;width:75px;height:75px;border-radius:50%;background:radial-gradient(circle,rgba(245,166,35,.09),transparent 68%); }
.account-menu-icon { border:1px solid rgba(255,255,255,.12);box-shadow:0 3px 10px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) { .welcome-spin-banner,.welcome-spin-banner::after,.welcome-spin-banner::before,.welcome-spin-banner-icon b,.welcome-spin-banner-action,.welcome-spin-spark,.user-bar::after,.telegram-support-fab { animation:none!important; } }

.welcome-spin-overlay { background: radial-gradient(circle at 50% 30%, rgba(113,20,128,.55), rgba(0,0,0,.9)); }
.welcome-spin-box { position: relative; width: min(94vw, 390px); padding: 22px 14px 18px; overflow: hidden; text-align: center; border: 2px solid #ffd64f; border-radius: 24px; background: radial-gradient(circle at 50% 18%, #6e147b 0, #32104f 42%, #160b2b 100%); box-shadow: 0 0 30px rgba(255,79,196,.48), inset 0 0 26px rgba(255,214,79,.12); }
.welcome-spin-close { position: absolute; z-index: 5; top: 10px; right: 10px; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; }
.welcome-spin-kicker { color: #fff19a; font-size: 10px; font-weight: 900; letter-spacing: 1.8px; }
.welcome-spin-title { margin-top: 4px; color: #fff; font-size: 22px; font-weight: 900; text-shadow: 0 2px 8px #e82b9d; }
.welcome-spin-subtitle { max-width: 310px; margin: 6px auto 10px; color: #f1dff7; font-size: 12px; line-height: 1.35; }
.welcome-wheel-stage { position: relative; width: 276px; height: 276px; margin: 8px auto 12px; display: grid; place-items: center; }
.welcome-wheel-lights { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(#fff45c 0 7deg, #ff3f9b 7deg 14deg, #52e8ff 14deg 21deg); filter: drop-shadow(0 0 8px #ff4dcb); animation: welcomeLights 1.2s linear infinite; }
.welcome-wheel-lights::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: #2a1044; }
.welcome-wheel-pointer { position: absolute; z-index: 4; top: -5px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 34px solid #fff066; filter: drop-shadow(0 2px 3px #8c2655); }
.welcome-wheel { --spin-deg: 0deg; position: relative; z-index: 2; width: 244px; height: 244px; border: 5px solid #ffe56a; border-radius: 50%; background: conic-gradient(#ff386a 0 60deg,#7b2cff 60deg 120deg,#00bddd 120deg 180deg,#ff8a00 180deg 240deg,#e52ccf 240deg 300deg,#4acb5d 300deg); box-shadow: inset 0 0 24px rgba(0,0,0,.35); transform: rotate(var(--spin-deg)); }
.welcome-wheel.spinning { transition: transform 3.6s cubic-bezier(.12,.68,.18,1); }
.welcome-wheel > span { position: absolute; top: 16px; left: 50%; height: 104px; color: #fff; font-size: 13px; font-weight: 900; text-shadow: 0 1px 3px #34102e; transform-origin: 50% 106px; transform: translateX(-50%) rotate(calc(var(--i) * 60deg)); }
.welcome-wheel-button { position: absolute; z-index: 3; top: 50%; left: 50%; width: 76px; height: 76px; transform: translate(-50%,-50%); border: 5px solid #fff0a1; border-radius: 50%; background: linear-gradient(#ffe45b,#ff8b00); color: #661244; font-size: 16px; font-weight: 1000; box-shadow: 0 3px 12px rgba(0,0,0,.42); }
.welcome-wheel-button:disabled { opacity: 1; }
.welcome-spin-result { min-height: 44px; color: #eadcf3; font-size: 11px; line-height: 1.4; }
.welcome-spin-result strong { display: block; color: #fff06e; font-size: 30px; line-height: 1; text-shadow: 0 0 12px #ff4fc4; }
.welcome-spin-result span { display: block; margin-top: 5px; color: #fff; font-weight: 700; }
.welcome-spin-rule { margin: 5px auto 0; max-width: 330px; color: rgba(255,255,255,.62); font-size: 9px; line-height: 1.35; }
@keyframes welcomeLights { 0%,100% { filter: drop-shadow(0 0 7px #ff4dcb) brightness(1); } 50% { filter: drop-shadow(0 0 13px #65eaff) brightness(1.5); } }
@media (max-height: 650px) { .welcome-wheel-stage { width: 228px; height: 228px; } .welcome-wheel { width: 200px; height: 200px; } .welcome-wheel > span { top: 12px; height: 82px; transform-origin: 50% 84px; } .welcome-spin-subtitle { margin-bottom: 4px; } }
.apk-download-modal-box { text-align: center; }
.apk-bonus-badge {
  display: inline-block;
  margin: -2px auto 10px;
  padding: 5px 10px;
  border: 1px solid rgba(245,166,35,.45);
  border-radius: 999px;
  background: rgba(245,166,35,.1);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.apk-bonus-amount {
  margin: -8px 0 8px;
  color: var(--gold);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(245,166,35,.24);
}
.apk-bonus-amount span { font-size: 24px; vertical-align: 7px; }
.apk-bonus-amount small { font-size: 12px; letter-spacing: 1px; }
.apk-modal-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: -4px auto 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d4302f, #7f1414);
  box-shadow: 0 8px 24px rgba(212,48,47,.35);
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}
.apk-download-description { margin: -8px 0 14px; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.apk-download-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.apk-download-meta span { padding: 5px 8px; border-radius: 999px; background: rgba(245,166,35,.1); color: var(--gold); font-size: 10px; }
.apk-download-link { display: block; text-align: center; text-decoration: none; }
.apk-install-note { margin: 10px 4px 0; color: var(--text-secondary); font-size: 10px; line-height: 1.4; }
.apk-promo-box{isolation:isolate;overflow:hidden;width:min(92vw,430px);max-width:430px;padding:19px 18px 16px;border:2px solid #ffd85a!important;background:radial-gradient(circle at 50% 13%,#84275f 0,#461647 34%,#230d26 67%,#110815 100%)!important;box-shadow:0 0 0 3px rgba(255,210,74,.13),0 0 40px rgba(255,56,167,.42),0 24px 70px #000!important}.apk-promo-rays{position:absolute;z-index:-2;left:50%;top:-125px;width:390px;height:390px;transform:translateX(-50%);border-radius:50%;background:repeating-conic-gradient(from 0deg,rgba(255,232,112,.2) 0 8deg,transparent 8deg 20deg);animation:apkRays 16s linear infinite}.apk-promo-shine{position:absolute;z-index:-1;inset:0;background:linear-gradient(115deg,transparent 18%,rgba(255,255,255,.2) 38%,transparent 56%);transform:translateX(-130%);animation:apkShine 2.7s ease-in-out infinite}.apk-promo-badge{width:max-content;margin:0 auto 8px;padding:4px 10px;border:1px solid #ffea8c;border-radius:99px;background:linear-gradient(90deg,#ff3f8f,#ff8b21);color:#fff;font-size:9px;font-weight:1000;letter-spacing:1.3px;box-shadow:0 0 14px rgba(255,76,165,.6);animation:apkBadge 1.4s ease-in-out infinite alternate}.apk-promo-logo{width:72px;height:72px;margin:0 auto 8px;border:3px solid #ffe56f;box-shadow:0 0 0 6px rgba(255,214,79,.12),0 0 25px #ff5ca8;animation:apkLogo 2.2s ease-in-out infinite}.apk-promo-title{margin-bottom:7px;color:#fff5b7;font-size:15px;letter-spacing:.8px;text-shadow:0 0 10px #ff4d9e}.apk-promo-reward{display:flex;flex-direction:column;align-items:center;margin:4px auto 8px}.apk-promo-reward small{color:#f3dff3;font-size:9px;font-weight:900;letter-spacing:1.5px}.apk-promo-reward strong{color:#fff261;font-size:47px;line-height:1.05;text-shadow:0 3px 0 #b62e6d,0 0 18px #ffbc24;animation:apkReward 1.3s ease-in-out infinite alternate}.apk-promo-reward em{padding:2px 8px;border-radius:99px;background:#27c66f;color:#071f13;font-size:8px;font-style:normal;font-weight:1000;letter-spacing:1px}.apk-promo-box .apk-download-description{margin:0 auto 9px;max-width:350px;color:#f4dff0;font-size:11px}.apk-promo-steps{display:flex;align-items:center;justify-content:center;gap:4px;margin:8px 0 10px}.apk-promo-steps span{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:8px;font-weight:800}.apk-promo-steps b{display:grid;place-items:center;width:23px;height:23px;margin-bottom:3px;border:1px solid #ffe477;border-radius:50%;background:#e83d83;color:#fff}.apk-promo-steps i{color:#ffd856;font-size:19px;font-style:normal}.apk-promo-download{padding:11px!important;border:2px solid #fff29b!important;border-radius:14px!important;background:linear-gradient(90deg,#ffd93d,#ff9218,#ffcf34)!important;color:#5b1833!important;box-shadow:0 0 18px rgba(255,211,55,.62),inset 0 1px #fff!important;animation:apkCta 1.15s ease-in-out infinite}.apk-promo-download b,.apk-promo-download small{display:block}.apk-promo-download b{font-size:15px}.apk-promo-download small{margin-top:2px;font-size:8px;letter-spacing:1px}.apk-float-coin{position:absolute;z-index:1;display:grid;place-items:center;width:27px;height:27px;border:2px solid #fff09a;border-radius:50%;background:linear-gradient(#ffd94a,#ee7c0b);color:#711b43;font-weight:1000;box-shadow:0 0 12px #ffce39;animation:apkCoin 2.4s ease-in-out infinite}.coin-one{left:18px;top:76px}.coin-two{right:20px;top:90px;animation-delay:.7s}.coin-three{right:38px;top:205px;animation-delay:1.25s}@keyframes apkRays{to{transform:translateX(-50%) rotate(360deg)}}@keyframes apkShine{50%,100%{transform:translateX(130%)}}@keyframes apkBadge{to{transform:scale(1.06);box-shadow:0 0 22px #ff5aaf}}@keyframes apkLogo{50%{transform:translateY(-4px) rotate(-2deg)}}@keyframes apkReward{to{transform:scale(1.07)}}@keyframes apkCta{50%{transform:scale(1.025);filter:brightness(1.12)}}@keyframes apkCoin{50%{transform:translateY(-9px) rotate(14deg)}}@media(max-height:690px){.apk-promo-box{padding-top:12px}.apk-promo-logo{width:58px;height:58px}.apk-promo-reward strong{font-size:38px}.apk-promo-steps{margin:5px 0}.apk-install-note{display:none}}@media(prefers-reduced-motion:reduce){.apk-promo-rays,.apk-promo-shine,.apk-promo-badge,.apk-promo-logo,.apk-promo-reward strong,.apk-promo-download,.apk-float-coin{animation:none!important}}

/* ==================== Brand Badge Colors ==================== */
.brand-yono .game-card-brand { background: #8B4513; }
.brand-pg .game-card-brand { background: #2E7D32; }
.brand-jili .game-card-brand { background: #C62828; }
.brand-inout .game-card-brand { background: #1565C0; }
.brand-spribe .game-card-brand { background: #6A1B9A; }

/* ==================== Responsive: Tablet (768px+) ==================== */
@media (min-width: 768px) {
  :root {
    --header-height: 56px;
  }
  
  #app {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 60px rgba(212, 48, 47, 0.15);
  }
  
  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
  }
  
  .game-grid {
    gap: 10px;
    padding: 12px 14px;
  }
  
  .game-card-name {
    font-size: 11px;
    padding: 6px 8px;
  }
  
  .header-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* ==================== Responsive: Desktop (1024px+) ==================== */
@media (min-width: 1024px) {
  #app {
    max-width: 480px;
    box-shadow: 0 0 80px rgba(212, 48, 47, 0.2);
  }
  
  .bottom-nav {
    max-width: 480px;
  }
}

/* ==================== Responsive: Small phones (<=360px) ==================== */
@media (max-width: 360px) {
  .game-grid {
    gap: 6px;
    padding: 8px 8px;
  }
  
  .game-card-name {
    font-size: 9px;
    padding: 4px 4px;
  }
  
  .game-card-brand {
    font-size: 8px;
    padding: 1px 4px;
  }
  
  .tab {
    padding: 10px 10px;
    font-size: 12px;
  }
  
  .header-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* Very narrow and older Android devices need two usable columns. */
@media (max-width: 335px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-action-btn { padding-left: 11px; padding-right: 11px; }
  .btn-account { padding-left: 9px; padding-right: 9px; }
}

@media (max-width: 390px) {
  .user-bar { padding-left: 9px; padding-right: 9px; }
  .user-action-btn { padding-left: 13px; padding-right: 13px; }
  .tabs { padding-left: 5px; padding-right: 5px; }
  .tab { padding-left: 11px; padding-right: 11px; }
}

/* ==================== Premium Inner Pages & Forms ==================== */
#promoPage,#earnPage,#accountPage { position:relative;overflow:hidden;background:radial-gradient(circle at 90% 8%,rgba(179,40,88,.14),transparent 28%),radial-gradient(circle at 0 70%,rgba(103,45,181,.1),transparent 30%),#100506; }
#promoPage::before,#earnPage::before,#accountPage::before { content:'';position:absolute;inset:52px 0 auto;height:210px;pointer-events:none;background:linear-gradient(120deg,transparent,rgba(255,174,43,.035),transparent);transform:skewY(-7deg); }
.header { position:relative;z-index:2;background:linear-gradient(100deg,rgba(43,10,13,.97),rgba(83,18,27,.94),rgba(30,8,11,.98));border-bottom:1px solid rgba(245,166,35,.28);box-shadow:0 5px 18px rgba(0,0,0,.32); }
.header::after { content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,205,83,.1),transparent 65%);animation:welcomeShine 5.5s linear infinite;pointer-events:none; }
.header-logo { position:relative;z-index:1;border:1px solid rgba(255,242,162,.65);background:linear-gradient(145deg,#ffad22,#df2e47);box-shadow:0 0 14px rgba(245,166,35,.38),inset 0 1px rgba(255,255,255,.4);font-weight:1000;text-shadow:0 1px 3px rgba(0,0,0,.35); }
.header-title { position:relative;z-index:1;color:#ffd248;font-weight:850;letter-spacing:.25px;text-shadow:0 0 9px rgba(245,166,35,.35); }
.header-btn { position:relative;z-index:1;border:1px solid #ffe28b!important;background:linear-gradient(145deg,#ffbd2e,#f28d0b)!important;box-shadow:0 0 14px rgba(245,166,35,.3); }
.feature-page { position:relative;z-index:1;padding:18px 16px 84px; }
.feature-hero { min-height:160px;padding:27px 24px;border:1px solid rgba(255,220,124,.24);box-shadow:0 12px 30px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.12); }
.feature-hero::before { content:'';position:absolute;width:175px;height:175px;right:-46px;top:-52px;border:1px solid rgba(255,255,255,.16);border-radius:50%;box-shadow:0 0 0 24px rgba(255,255,255,.04),0 0 0 49px rgba(255,255,255,.025); }
.feature-hero::after { content:'K9';position:absolute;right:23px;bottom:4px;color:rgba(255,255,255,.065);font-size:74px;font-weight:1000;letter-spacing:-7px;transform:rotate(-8deg); }
.promo-hero { background:linear-gradient(135deg,#65183e,#bd372b 57%,#e57b18); }.earn-hero { background:linear-gradient(135deg,#14295d,#3d2a86 57%,#7b2d9a); }
.feature-kicker { color:#ffe69a;font-weight:900; }.feature-hero h1 { position:relative;z-index:1;font-size:27px;text-shadow:0 3px 10px rgba(0,0,0,.3); }.feature-hero p { position:relative;z-index:1; }
.feature-card,.earn-card,.feature-empty { position:relative;overflow:hidden;border-color:rgba(255,198,74,.2);background:linear-gradient(145deg,rgba(57,19,25,.96),rgba(32,12,16,.98));box-shadow:0 9px 24px rgba(0,0,0,.27),inset 0 1px rgba(255,255,255,.04); }
.feature-card::after,.earn-card::after { content:'';position:absolute;width:80px;height:80px;right:-36px;bottom:-40px;border-radius:50%;background:radial-gradient(circle,rgba(245,166,35,.12),transparent 68%); }
.feature-card-highlight { border-color:rgba(255,178,32,.5);background:linear-gradient(145deg,#472216,#351218);box-shadow:0 9px 26px rgba(0,0,0,.3),0 0 18px rgba(245,166,35,.08); }
.feature-button { position:relative;z-index:1;padding:14px;border:1px solid #ffe484;border-radius:12px;background:linear-gradient(145deg,#ffc43d,#f2940c);box-shadow:0 5px 16px rgba(245,166,35,.27),inset 0 1px rgba(255,255,255,.4);font-weight:850; }
.feature-empty { min-height:145px;justify-content:center;border-style:dashed;background:radial-gradient(circle at 50% 35%,rgba(188,72,144,.13),transparent 45%),rgba(44,15,20,.96); }.feature-empty-icon { filter:drop-shadow(0 0 9px rgba(255,203,82,.55));animation:promoSpark 1.8s ease-in-out infinite alternate; }
.feature-section-title { display:flex;align-items:center;gap:8px;font-size:17px; }.feature-section-title::before { content:'';width:4px;height:18px;border-radius:3px;background:linear-gradient(#ffdc55,#e73c65);box-shadow:0 0 8px rgba(245,166,35,.5); }
.feature-rule span { box-shadow:0 0 10px rgba(245,166,35,.18); }.feature-rule p { font-size:12.5px; }
.earn-card { min-height:92px;padding:18px;border-color:rgba(157,95,243,.24); }.earn-card-icon { width:48px;height:48px;border:1px solid rgba(188,139,255,.32);border-radius:15px;background:linear-gradient(145deg,rgba(135,62,204,.35),rgba(62,29,100,.6));box-shadow:0 0 15px rgba(144,73,224,.18);font-size:25px; }.earn-card h2 { font-size:15px; }.coming-soon { border:1px solid rgba(185,134,255,.24);background:linear-gradient(135deg,rgba(117,47,172,.35),rgba(57,25,91,.55)); }
.earn-note { border-color:rgba(169,103,255,.46);background:linear-gradient(135deg,rgba(48,23,61,.98),rgba(39,15,22,.98)); }
.guest-account-shell { position:relative;z-index:1;width:calc(100% - 32px);max-width:430px;margin:58px auto 0;padding:34px 23px 25px;overflow:hidden;border:1px solid rgba(245,166,35,.32);border-radius:24px;background:radial-gradient(circle at 50% 0,rgba(157,45,105,.28),transparent 42%),linear-gradient(150deg,rgba(54,18,25,.98),rgba(24,8,11,.98));box-shadow:0 16px 40px rgba(0,0,0,.42),0 0 24px rgba(213,49,101,.08);text-align:center; }
.guest-account-glow { position:absolute;width:220px;height:220px;left:50%;top:-145px;transform:translateX(-50%);border-radius:50%;background:#f53d79;filter:blur(55px);opacity:.24; }
.guest-account-emblem { position:relative;width:94px;height:94px;margin:0 auto 19px;display:grid;place-content:center;border:3px solid #ffd55c;border-radius:30px;background:linear-gradient(145deg,#ff9c21,#d62d58 60%,#79278d);box-shadow:0 0 0 7px rgba(255,202,62,.08),0 0 28px rgba(245,91,91,.38);transform:rotate(-3deg); }.guest-account-emblem span { color:#fff;font-size:35px;font-weight:1000;line-height:1; }.guest-account-emblem small { color:#fff2a3;font-size:7px;font-weight:900;letter-spacing:2px; }
.guest-account-title { color:#fff;font-size:24px;font-weight:900;text-shadow:0 2px 8px rgba(0,0,0,.4); }.guest-account-shell>p { max-width:330px;margin:9px auto 17px;color:var(--text-secondary);font-size:12px;line-height:1.55; }.guest-account-benefits { display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin-bottom:20px; }.guest-account-benefits span { padding:5px 8px;border-radius:99px;background:rgba(245,166,35,.09);color:#ebcda2;font-size:8px; }
.guest-login-button { width:100%;display:flex;align-items:center;justify-content:center;gap:12px;padding:14px;border:1px solid #ffe58b;border-radius:13px;background:linear-gradient(145deg,#ffc53b,#f08b0a);color:#351006;box-shadow:0 7px 19px rgba(245,166,35,.3),inset 0 1px rgba(255,255,255,.42);font-weight:900; }.guest-login-button b { font-size:23px;line-height:.5; }
.account-section { position:relative;z-index:1;padding-bottom:86px; }.account-wallet-hero { position:relative;overflow:hidden;margin-bottom:14px;padding:19px;border:1px solid rgba(255,217,101,.5);border-radius:19px;background:linear-gradient(125deg,#5c153c,#a52445 48%,#d87818);box-shadow:0 10px 28px rgba(0,0,0,.35),0 0 18px rgba(219,55,86,.13); }.account-wallet-hero::after { content:'₹';position:absolute;right:17px;top:-22px;color:rgba(255,255,255,.09);font-size:115px;font-weight:900;transform:rotate(12deg); }.account-wallet-top { position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;margin-bottom:10px; }.account-wallet-top span { color:#ffe8a6;font-size:9px;font-weight:900;letter-spacing:1.5px; }.account-wallet-top b { padding:4px 7px;border:1px solid rgba(255,255,255,.25);border-radius:99px;background:rgba(0,0,0,.18);font-size:9px; }.account-wallet-hero>small { position:relative;z-index:1;color:rgba(255,255,255,.72);font-size:10px; }.account-wallet-hero>strong { position:relative;z-index:1;display:block;margin:2px 0 16px;color:#fff;font-size:29px;text-shadow:0 3px 9px rgba(0,0,0,.28); }.wallet-split-cards { position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:8px; }.wallet-split-cards div { padding:10px;border:1px solid rgba(255,255,255,.15);border-radius:11px;background:rgba(21,4,13,.22);backdrop-filter:blur(5px); }.wallet-split-cards small { display:block;color:rgba(255,255,255,.65);font-size:7px;letter-spacing:.7px; }.wallet-split-cards b { display:block;margin-top:3px;color:#fff3a6;font-size:12px; }
.account-profile-card { border-color:rgba(245,166,35,.25);background:linear-gradient(145deg,rgba(52,20,24,.98),rgba(28,10,13,.98)); }
.modal-overlay { background:radial-gradient(circle at 50% 20%,rgba(109,28,72,.38),rgba(0,0,0,.84));backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px); }
.modal-box { position:relative;border-color:rgba(255,201,74,.32);border-radius:21px;background:radial-gradient(circle at 50% 0,rgba(127,36,79,.2),transparent 38%),linear-gradient(150deg,#35151b,#1d0b0e);box-shadow:0 18px 48px rgba(0,0,0,.55),0 0 24px rgba(215,51,109,.1),inset 0 1px rgba(255,255,255,.05); }
.modal-title { font-size:20px;font-weight:900;text-shadow:0 0 10px rgba(245,166,35,.28); }.modal-input { min-height:46px;border-color:rgba(255,205,103,.18);background:rgba(10,3,5,.42);box-shadow:inset 0 2px 7px rgba(0,0,0,.22); }.modal-input:focus { border-color:#ffc442;box-shadow:0 0 0 3px rgba(245,166,35,.1),inset 0 2px 7px rgba(0,0,0,.2); }.modal-btn-primary { border:1px solid #ffe18a;background:linear-gradient(145deg,#ffc43b,#ed890a);box-shadow:0 6px 17px rgba(245,166,35,.25),inset 0 1px rgba(255,255,255,.4); }.modal-btn-secondary { background:rgba(255,255,255,.025); }
.withdraw-modal-box { border-color:rgba(82,213,150,.35);background:radial-gradient(circle at 50% 0,rgba(29,126,92,.2),transparent 35%),linear-gradient(150deg,#23201c,#160a0d); }.withdraw-balance { border:1px solid rgba(100,213,139,.2);box-shadow:inset 0 1px rgba(255,255,255,.03); }.withdraw-success strong { padding:12px;border:1px solid rgba(255,226,120,.2);border-radius:10px;background:rgba(245,166,35,.07); }
@media (max-height:700px) { .guest-account-shell { margin-top:25px; }.feature-hero { min-height:135px;padding:22px; } }

/* ==================== Unified K9 Brand Icon ==================== */
.header-logo,.apk-download-icon,.apk-modal-logo,.guest-account-emblem { padding:0;overflow:hidden;background:#14070e;border-color:#f3bf45; }
.header-logo img,.apk-download-icon img,.apk-modal-logo img,.guest-account-emblem img { width:100%;height:100%;display:block;object-fit:cover; }
.header-logo img { border-radius:inherit; }.apk-download-icon img { border-radius:9px; }.apk-modal-logo img { border-radius:16px; }
.guest-account-emblem { display:block;transform:rotate(-3deg);background:#190715; }.guest-account-emblem img { border-radius:26px; }
