:root {
  --bg: #050812;
  --bg-soft: #0b1020;
  --bg-card: rgba(18, 26, 56, 0.95);
  --accent: #4ade80;
  --accent-soft: rgba(74, 222, 128, 0.12);
  --accent-strong: #22c55e;
  --danger: #f97373;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.35);
  --gold: #facc15;
  --purple: #a855f7;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", sans-serif;
  background: radial-gradient(ellipse at top, #111827 0%, #020617 50%, #000 100%);
  color: var(--text-main);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#app {
  height: 100%; display: flex; flex-direction: column;
  padding-bottom: var(--safe-bottom);
}

/* ===== HEADER ===== */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%);
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.header-brand {
  display: flex; align-items: center; gap: 8px;
}

.header-logo { font-size: 24px; }

.header-title {
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent) 0%, #86efac 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-tp {
  display: flex; align-items: baseline; gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 6px 14px; border-radius: 999px;
}

.header-tp-value {
  font-size: 18px; font-weight: 800; color: var(--accent);
}

.header-tp-label {
  font-size: 11px; font-weight: 600; color: var(--accent);
  opacity: 0.8;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1; overflow: hidden; position: relative;
}

.screen { display: none; height: 100%; }
.screen-active { display: flex; flex-direction: column; }

.screen-scroll {
  flex: 1; overflow-y: auto; padding: 12px 14px 20px;
  -webkit-overflow-scrolling: touch;
}

/* ===== PLAY SCREEN ===== */
.screen[data-screen="play"] {
  padding: 12px 14px;
}

/* Mini Stats */
.mini-stats {
  display: flex; justify-content: center; gap: 16px;
  margin-bottom: 16px;
}

.mini-stat {
  display: flex; align-items: center; gap: 4px;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-soft);
}

.mini-stat-icon { font-size: 14px; }
.mini-stat-value { font-size: 14px; font-weight: 700; color: var(--accent); }
.mini-stat-unit { font-size: 10px; color: var(--text-muted); }

/* Click Zone */
.click-zone {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 200px;
}

.troll-btn {
  width: 180px; height: 180px;
  border-radius: 50%; border: none; outline: none;
  background: radial-gradient(circle at 30% 20%, #bbf7d0 0%, #22c55e 30%, #16a34a 70%, #166534 100%);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3), 0 20px 50px rgba(22, 163, 74, 0.5);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  touch-action: manipulation;
  position: relative; overflow: visible;
}

.troll-btn-emoji { font-size: 48px; }
.troll-btn-text {
  font-size: 16px; font-weight: 900;
  letter-spacing: 0.2em; color: #052e16;
}

.troll-btn.pressed {
  transform: scale(0.94);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.5), 0 10px 30px rgba(22, 163, 74, 0.4);
}

.troll-btn.boost-active {
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.5), 0 20px 50px rgba(250, 204, 21, 0.4);
  animation: boost-pulse 0.8s ease-in-out infinite;
}

@keyframes boost-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.troll-btn.disabled {
  opacity: 0.5; cursor: not-allowed;
  filter: grayscale(0.5);
}

.phrase {
  margin-top: 16px; font-size: 13px;
  text-align: center; color: var(--text-muted);
  max-width: 280px; line-height: 1.4;
}

/* Floating TP */
.floating-tp {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, 0);
  font-size: 16px; font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  pointer-events: none;
  animation: float-tp 0.6s ease-out forwards;
}

.floating-tp-crit {
  color: var(--gold); font-size: 18px;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.9);
}

@keyframes float-tp {
  0% { transform: translate(-50%, 0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(-50%, -40px); opacity: 0; }
}

/* Boost Zone */
.boost-zone { margin-top: 16px; }

.boost-btn {
  width: 100%; padding: 14px 20px;
  border-radius: 14px; border: 1px solid rgba(250, 204, 21, 0.4);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
  display: flex; align-items: center; gap: 10px;
  color: var(--gold); cursor: pointer;
  transition: all 0.2s;
}

.boost-btn:active { transform: scale(0.98); }
.boost-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.boost-icon { font-size: 20px; }
.boost-text { font-size: 14px; font-weight: 700; flex: 1; text-align: left; }
.boost-status { font-size: 12px; opacity: 0.8; }

.boost-btn.active {
  border-color: rgba(250, 204, 21, 0.8);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
  animation: boost-glow 1.5s ease-in-out infinite;
}

@keyframes boost-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(250, 204, 21, 0.3); }
  50% { box-shadow: 0 0 30px rgba(250, 204, 21, 0.5); }
}

/* Channel Banner */
.channel-banner {
  margin-top: 12px; width: 100%;
  padding: 12px 16px; border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  display: flex; align-items: center; gap: 10px;
  color: #93c5fd; cursor: pointer;
  transition: all 0.2s;
}

.channel-banner:active { transform: scale(0.98); }
.channel-icon { font-size: 18px; }
.channel-text { font-size: 13px; font-weight: 600; flex: 1; text-align: left; }
.channel-arrow { font-size: 14px; opacity: 0.6; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  display: flex; gap: 4px; padding: 8px 12px;
  padding-bottom: calc(8px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.98) 100%);
  border-top: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  padding: 8px 4px; border-radius: 12px;
  border: none; background: transparent;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.2s;
}

.nav-btn.active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent);
}

.nav-icon { font-size: 20px; }
.nav-label { font-size: 10px; font-weight: 600; }

/* ===== GIFT FLOAT BUTTON ===== */
.gift-float-btn {
  position: fixed; right: 16px; bottom: 90px;
  width: 56px; height: 56px;
  border-radius: 50%; border: 2px solid rgba(250, 204, 21, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}

.gift-float-btn:active { transform: scale(0.92); }

.gift-float-icon { font-size: 26px; }

.gift-float-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  background: var(--gold); color: #000;
  font-size: 11px; font-weight: 800;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.gift-float-btn.has-gifts {
  border-color: var(--gold);
  animation: gift-pulse 2s ease-in-out infinite;
}

@keyframes gift-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(250, 204, 21, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(250, 204, 21, 0.6); }
}

/* ===== SECTIONS ===== */
.shop-section, .quest-section, .social-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 14px; margin-bottom: 12px;
}

.section-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}

.section-icon { font-size: 18px; }
.section-header h2 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; }

.prestige-level, .referrals-badge {
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent);
}

/* Prestige */
.prestige-info {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 10px; line-height: 1.4;
}

.prestige-btn {
  width: 100%; padding: 12px;
  border-radius: 12px; border: 1px solid rgba(248, 113, 113, 0.5);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  color: #fca5a5; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}

.prestige-btn:active { transform: scale(0.98); }

/* ===== TREE ===== */
.tree { display: flex; flex-direction: column; gap: 10px; }
.tier { padding-left: 10px; border-left: 2px solid rgba(34, 197, 94, 0.3); }
.tier-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.tier-nodes { display: flex; flex-direction: column; gap: 8px; }

.node-card {
  padding: 10px 12px; border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-soft);
}

.node-header { display: flex; justify-content: space-between; align-items: center; }
.node-name { font-size: 13px; font-weight: 600; }
.node-status { font-size: 11px; color: var(--text-muted); }
.node-desc { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.node-unlocked { border-color: rgba(34, 197, 94, 0.6); background: rgba(34, 197, 94, 0.1); }
.node-available { border-color: rgba(34, 197, 94, 0.8); }
.node-locked { opacity: 0.6; }

.node-unlock-btn {
  margin-top: 8px; padding: 6px 14px;
  border-radius: 999px; border: none;
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent); font-size: 12px; font-weight: 600;
  cursor: pointer;
}

/* ===== AUTOCLICKERS ===== */
.autoclickers { display: flex; flex-direction: column; gap: 8px; }

.autoclicker-card {
  padding: 10px 12px; border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-soft);
}

.autoclicker-header { display: flex; justify-content: space-between; align-items: center; }
.autoclicker-name { font-size: 13px; font-weight: 600; }
.autoclicker-count { font-size: 12px; color: var(--accent); font-weight: 700; }
.autoclicker-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.autoclicker-meta { display: flex; justify-content: space-between; margin-top: 6px; }
.autoclicker-income { font-size: 11px; color: var(--text-muted); }
.autoclicker-price { font-size: 12px; color: var(--accent); font-weight: 600; }

.autoclicker-buy-btn {
  width: 100%; margin-top: 8px; padding: 8px;
  border-radius: 10px; border: none;
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent); font-size: 12px; font-weight: 700;
  cursor: pointer;
}

.autoclicker-buy-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== DAILY QUESTS ===== */
.daily-quests { display: flex; flex-direction: column; gap: 8px; }

.daily-quest-card {
  padding: 10px 12px; border-radius: 12px;
  background: rgba(250, 204, 21, 0.05);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.daily-quest-header { display: flex; justify-content: space-between; align-items: center; }
.daily-quest-name { font-size: 13px; font-weight: 600; }
.daily-quest-status { font-size: 11px; color: var(--gold); font-weight: 600; }
.daily-quest-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.daily-quest-progress {
  height: 4px; border-radius: 999px;
  background: rgba(31, 41, 55, 0.8);
  margin-top: 8px; overflow: hidden;
}

.daily-quest-progress-inner {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #fbbf24);
}

.daily-claim-btn {
  margin-top: 8px; padding: 6px 14px;
  border-radius: 10px; border: none;
  background: rgba(250, 204, 21, 0.2);
  color: var(--gold); font-size: 12px; font-weight: 700;
  cursor: pointer;
}

.daily-quest-claimed { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ===== ACHIEVEMENTS ===== */
.achievements { display: flex; flex-direction: column; gap: 8px; }

.achievement-card {
  padding: 10px 12px; border-radius: 12px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.achievement-header { display: flex; justify-content: space-between; align-items: center; }
.achievement-name { font-size: 13px; font-weight: 600; }

.achievement-badge {
  font-size: 10px; padding: 3px 8px;
  border-radius: 999px; font-weight: 600;
}

.achievement-badge.unlocked {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent);
}

.achievement-badge.locked {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}

.achievement-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.achievement-progress-bar {
  height: 4px; border-radius: 999px;
  background: rgba(31, 41, 55, 0.8);
  margin-top: 8px; overflow: hidden;
}

.achievement-progress-inner {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #86efac);
}

/* ===== FRIENDS / SOCIAL ===== */
.friends-info { display: flex; flex-direction: column; gap: 10px; }

.referral-link-block {
  padding: 12px; border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.referral-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.referral-row { display: flex; gap: 8px; align-items: center; }
.referral-link { flex: 1; font-size: 12px; word-break: break-all; }

.copy-btn {
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.1);
  color: var(--gold); font-size: 11px; font-weight: 600;
  cursor: pointer;
}

.referral-stats { font-size: 13px; font-weight: 600; }
.referral-hint { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.referral-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

.referral-row-item {
  padding: 8px 10px; border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-soft);
  display: flex; justify-content: space-between;
}

.referral-name { font-size: 12px; font-weight: 600; }
.referral-meta { font-size: 11px; color: var(--text-muted); }
.referral-empty { font-size: 12px; color: var(--text-muted); }

/* ===== LEADERBOARD ===== */
.leaderboard { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }

.leader-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-soft);
}

.leader-row.me { border-color: var(--accent); background: rgba(34, 197, 94, 0.1); }

.leader-rank { font-size: 13px; font-weight: 700; min-width: 30px; }
.leader-rank.medal-1 { color: #facc15; }
.leader-rank.medal-2 { color: #e5e7eb; }
.leader-rank.medal-3 { color: #fb923c; }

.leader-main { flex: 1; }
.leader-name { font-size: 12px; font-weight: 600; }
.leader-meta { font-size: 10px; color: var(--text-muted); }
.leader-tp { font-size: 12px; font-weight: 700; color: var(--accent); }

/* ===== MODALS ===== */
.gift-modal-overlay, .gift-opening-overlay, .offline-welcome-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; padding: 20px;
  animation: fade-in 0.3s ease-out;
}

.gift-modal-overlay.fade-out, .gift-opening-overlay.fade-out, .offline-welcome-overlay.fade-out {
  animation: fade-out 0.3s ease-out forwards;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

/* Gift Modal */
.gift-modal {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-soft);
  border-radius: 20px; width: 100%; max-width: 340px;
  max-height: 70vh; overflow: hidden;
  display: flex; flex-direction: column;
  animation: modal-pop 0.3s ease-out;
}

@keyframes modal-pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gift-modal-header {
  display: flex; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border-soft);
}

.gift-modal-header h2 { margin: 0; font-size: 18px; flex: 1; }
.gift-modal-count { font-size: 12px; color: var(--text-muted); margin-right: 10px; }

.gift-modal-close {
  background: none; border: none;
  color: var(--text-muted); font-size: 20px;
  cursor: pointer; padding: 4px;
}

.gift-list {
  padding: 14px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}

.gift-empty {
  grid-column: 1 / -1;
  text-align: center; color: var(--text-muted);
  padding: 30px; font-size: 13px;
}

.gift-item {
  aspect-ratio: 1; border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  background: var(--rarity-bg);
  border: 2px solid var(--rarity-border);
}

.gift-item:active { transform: scale(0.9); }
.gift-item-icon { font-size: 24px; }
.gift-item-name { font-size: 8px; color: var(--rarity-color); margin-top: 2px; font-weight: 600; }

.gift-item.rarity-legendary { animation: legendary-glow 2s ease-in-out infinite; }
@keyframes legendary-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.7); }
}

.gift-active-effects {
  padding: 10px 16px; border-bottom: 1px solid var(--border-soft);
}

.gift-active-effects h3 {
  margin: 0 0 6px; font-size: 11px;
  color: var(--text-muted); text-transform: uppercase;
}

/* Active effects badges */
.active-effects {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin-bottom: 10px;
}

.effect-badge {
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
}

.effect-multiplier { background: rgba(139, 92, 246, 0.2); border: 1px solid rgba(139, 92, 246, 0.6); color: #a78bfa; }
.effect-crits { background: rgba(244, 63, 94, 0.2); border: 1px solid rgba(244, 63, 94, 0.6); color: #fb7185; }
.effect-auto { background: rgba(34, 197, 94, 0.2); border: 1px solid rgba(34, 197, 94, 0.6); color: #4ade80; }

/* ===== GIFT OPENING ===== */
.gift-opening-container {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.gift-box { font-size: 80px; animation: box-shake 0.5s ease-in-out infinite; }

@keyframes box-shake {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.gift-opening-container.gift-opened .gift-box {
  animation: box-open 0.5s ease-out forwards;
}

@keyframes box-open {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

.gift-reward {
  text-align: center;
  animation: reward-pop 0.4s ease-out;
}

@keyframes reward-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gift-reward .reward-icon { font-size: 56px; margin-bottom: 10px; }
.gift-reward .reward-rarity { font-size: 11px; color: var(--rarity-color); text-transform: uppercase; letter-spacing: 0.2em; }
.gift-reward .reward-name { font-size: 18px; font-weight: 700; margin: 6px 0; }
.gift-reward .reward-value { font-size: 24px; font-weight: 800; color: var(--rarity-color); }

.gift-particle {
  position: absolute; width: 6px; height: 6px;
  background: var(--particle-color); border-radius: 50%;
  animation: particle-fly 1s ease-out forwards;
}

@keyframes particle-fly {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to { opacity: 0; transform: translate(var(--px, 50px), var(--py, -50px)) scale(0); }
}

/* Flying Gift */
.flying-gift {
  position: fixed; font-size: 32px; z-index: 10000;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 0 10px var(--rarity-color));
}

.flying-gift-icon { animation: spin-in 0.6s ease-out; }

@keyframes spin-in {
  from { transform: scale(1.5) rotate(0deg); }
  to { transform: scale(1) rotate(360deg); }
}

/* ===== OFFLINE WELCOME ===== */
.offline-welcome-modal {
  background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%);
  border: 2px solid rgba(99, 102, 241, 0.5);
  border-radius: 24px; padding: 28px 24px;
  text-align: center; max-width: 300px;
  animation: modal-pop 0.4s ease-out;
}

.offline-welcome-icon { font-size: 48px; margin-bottom: 10px; }
.offline-welcome-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.offline-welcome-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.offline-welcome-amount {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #86efac);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.offline-welcome-time { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

.offline-welcome-buttons { display: flex; gap: 10px; justify-content: center; }

.offline-btn {
  padding: 12px 18px; border-radius: 12px;
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer;
}

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

.offline-btn-double {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: white;
}

.offline-btn-claim {
  background: linear-gradient(135deg, var(--accent-strong), #16a34a);
  color: white;
}

.claimed-floater {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px; font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
  z-index: 10001; pointer-events: none;
  transition: all 0.8s ease-out;
}

.claimed-floater.float-up {
  transform: translate(-50%, -150%);
  opacity: 0;
}

/* ===== LEGACY COMPAT (old classes) ===== */
.troll-button { display: none; }
.boost-button { display: none; }
.promo-banner { display: none; }
.gift-inventory-btn { display: none; }
.stats-bar, .tabs, .top-bar { display: none; }

/* ===== RESPONSIVE ===== */
@media (min-width: 500px) {
  #app { max-width: 420px; margin: 0 auto; }
}
