/* ==========================================================================
   ZYRO MINI-APP — ARCTIC WINTER FROST THEME + MODERN LOADING SUITE
   Includes:
   1. Complete Winter Aurora / Glacial Glassmorphism Theme
   2. Skeleton Loading (Cards, Rows, Grid, Profile)
   3. Shimmer Loading (Icy-Cyan Diagonal Frost Sweep)
   4. Lazy Loading (Frosted Blur-Up Image Reveal)
   5. Button Loading (Inline Frost Spinner + Shimmer Disabled State)
   ========================================================================== */

:root {
  --winter-bg-deep: #040d1c;
  --winter-bg-mid: #091a33;
  --winter-bg-surface: rgba(13, 30, 56, 0.72);
  --winter-bg-surface-strong: rgba(10, 24, 46, 0.88);
  --winter-glass: rgba(16, 38, 70, 0.56);
  --winter-border: rgba(186, 230, 253, 0.22);
  --winter-border-strong: rgba(125, 211, 252, 0.45);
  --winter-ice: #bae6fd;
  --winter-cyan: #38bdf8;
  --winter-aurora: #5eead4;
  --winter-violet: #a78bfa;
  --winter-snow: #f0f9ff;
  --winter-muted: #94b8d8;
  --winter-shadow: 0 10px 30px rgba(2, 10, 26, 0.55), inset 0 1px 0 rgba(224, 242, 254, 0.16);
}

/* Remove any residual splash screen completely */
#splash-screen,
.splash-screen {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- Winter Sky Background & Arctic Aurora ---------- */
html,
body {
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(56, 189, 248, 0.22) 0%, transparent 55%),
    radial-gradient(100% 70% at 85% 10%, rgba(94, 234, 212, 0.16) 0%, transparent 52%),
    radial-gradient(90% 80% at 50% 100%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #040d1c 0%, #081830 48%, #0b2140 100%) !important;
  background-attachment: scroll !important;
  color: var(--winter-snow) !important;
  min-height: 100vh;
}

.app-container {
  position: relative;
  z-index: 2;
  background: transparent !important;
}

/* Snowfall Canvas Layer */
#winter-snow-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  z-index: 9998;
  opacity: 0.72;
}

/* Arctic Aurora Ambient Blobs */
.bg-blobs {
  pointer-events: none;
  z-index: 0 !important;
}
.bg-blobs .blob-1 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.34) 0%, transparent 70%) !important;
  filter: blur(55px) !important;
}
.bg-blobs .blob-2 {
  background: radial-gradient(circle, rgba(94, 234, 212, 0.26) 0%, transparent 70%) !important;
  filter: blur(60px) !important;
}
.bg-blobs .blob-3 {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.24) 0%, transparent 70%) !important;
  filter: blur(65px) !important;
}

/* ---------- Frosted Ice Top Header ---------- */
.top-bar {
  background: linear-gradient(180deg, rgba(7, 20, 42, 0.92), rgba(10, 27, 54, 0.84)) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border-bottom: 1px solid rgba(186, 230, 253, 0.24) !important;
  box-shadow: 0 6px 24px rgba(2, 12, 32, 0.45), 0 1px 0 rgba(186, 230, 253, 0.14) inset !important;
}

.top-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #bae6fd, #5eead4, transparent);
  opacity: 0.9;
  pointer-events: none;
}

.stat-item {
  background: rgba(15, 39, 72, 0.72) !important;
  border: 1px solid rgba(186, 230, 253, 0.26) !important;
  box-shadow: inset 0 1px 0 rgba(240, 249, 255, 0.16), 0 4px 12px rgba(2, 10, 26, 0.35) !important;
  color: var(--winter-snow) !important;
}

.user-meta .avatar,
#user-avatar {
  border: 2px solid rgba(125, 211, 252, 0.75) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.42) !important;
}

.uid-tag {
  color: var(--winter-ice) !important;
  opacity: 0.85;
}

/* ---------- Winter Season Ribbon ---------- */
.winter-frost-banner {
  margin: 8px 14px 4px;
  padding: 8px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 42, 82, 0.82), rgba(12, 74, 110, 0.56));
  border: 1px solid rgba(186, 230, 253, 0.3);
  box-shadow: 0 6px 18px rgba(2, 12, 30, 0.35), inset 0 1px 0 rgba(240, 249, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #e0f2fe;
}
.winter-frost-banner .winter-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(94, 234, 212, 0.25));
  border: 1px solid rgba(186, 230, 253, 0.4);
  color: #e0f2fe;
  white-space: nowrap;
}

/* ---------- Frosted Glass Cards, Sections & Modals ---------- */
.card,
.glass-card,
.profile-card,
.rank-card,
.stats-card,
.referral-card,
.guild-card,
.mission-card,
.task-card,
.game-card,
.shop-item,
.market-card,
.inventory-card,
.leaderboard-item,
.lb-item,
.mail-item,
.modal-content,
.popup-content,
.pass-card,
.season-banner {
  background: linear-gradient(155deg, rgba(15, 36, 68, 0.78), rgba(8, 22, 44, 0.84)) !important;
  backdrop-filter: blur(14px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
  border: 1px solid var(--winter-border) !important;
  box-shadow: var(--winter-shadow) !important;
  color: var(--winter-snow) !important;
}

.shop-item:hover,
.game-card:hover,
.guild-card:hover,
.market-card:hover,
.inventory-card:hover {
  border-color: var(--winter-border-strong) !important;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.24), inset 0 1px 0 rgba(240, 249, 255, 0.25) !important;
}

/* ---------- Frosted Bottom Navigation ---------- */
.bottom-nav,
nav.bottom-bar,
.nav-bar {
  background: linear-gradient(180deg, rgba(8, 22, 44, 0.88), rgba(4, 13, 28, 0.96)) !important;
  backdrop-filter: blur(20px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(165%) !important;
  border-top: 1px solid rgba(186, 230, 253, 0.24) !important;
  box-shadow: 0 -8px 28px rgba(2, 10, 26, 0.55) !important;
}

.nav-item.active,
.bottom-nav .nav-item.active {
  color: #7dd3fc !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.65);
}

/* ---------- Winter Buttons & Inputs ---------- */
button.primary-btn,
.btn-primary,
.shop-buy-btn,
.claim-btn,
.action-btn,
.copy-btn {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 55%, #22d3ee 100%) !important;
  color: #031124 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(224, 242, 254, 0.45) !important;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

input[type="text"],
input[type="search"],
input[type="number"],
textarea,
select {
  background: rgba(7, 20, 42, 0.78) !important;
  border: 1px solid rgba(186, 230, 253, 0.26) !important;
  color: #f0f9ff !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(186, 230, 253, 0.48) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(4, 13, 28, 0.6);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #38bdf8, #5eead4);
  border-radius: 999px;
}

/* ==========================================================================
   1 & 2. SKELETON LOADING + SHIMMER LOADING (Icy Frost Sweep)
   ========================================================================== */
@keyframes winterShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.winter-shimmer {
  background: linear-gradient(
    110deg,
    rgba(22, 48, 86, 0.65) 22%,
    rgba(125, 211, 252, 0.26) 45%,
    rgba(224, 242, 254, 0.34) 50%,
    rgba(125, 211, 252, 0.22) 55%,
    rgba(22, 48, 86, 0.65) 78%
  );
  background-size: 220% 100%;
  animation: winterShimmer 1.45s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.winter-skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 6px 2px;
  box-sizing: border-box;
}

.winter-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  grid-column: 1 / -1;
  padding: 4px 0;
  box-sizing: border-box;
}

.winter-skel-card {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(186, 230, 253, 0.16);
  background: rgba(10, 26, 52, 0.66);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.winter-skel-row {
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(186, 230, 253, 0.15);
  background: rgba(10, 26, 52, 0.64);
  display: flex;
  align-items: center;
  gap: 12px;
}

.winter-skel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.winter-skel-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.winter-skel-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.winter-skel-line {
  height: 11px;
  border-radius: 999px;
  width: 100%;
}
.winter-skel-line.w-75 { width: 75%; }
.winter-skel-line.w-60 { width: 60%; }
.winter-skel-line.w-45 { width: 45%; }

.winter-skel-pill {
  width: 58px;
  height: 24px;
  border-radius: 999px;
  flex-shrink: 0;
}

.winter-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 22px 16px;
  border-radius: 14px;
  background: rgba(10, 26, 52, 0.56);
  border: 1px dashed rgba(186, 230, 253, 0.25);
  color: var(--winter-muted);
  font-size: 13px;
}

/* ==========================================================================
   3. LAZY LOADING (Frosted Blur-Up Image Reveal)
   ========================================================================== */
img.winter-lazy-img {
  opacity: 0;
  filter: blur(6px);
  transform: scale(1.02);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
  background: linear-gradient(
    110deg,
    rgba(22, 48, 86, 0.65) 22%,
    rgba(125, 211, 252, 0.25) 50%,
    rgba(22, 48, 86, 0.65) 78%
  );
  background-size: 220% 100%;
  animation: winterShimmer 1.45s linear infinite;
}

img.winter-lazy-img.winter-lazy-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  background: transparent;
  animation: none;
}

/* ==========================================================================
   4. BUTTON LOADING (Inline Frost Spinner + Shimmer)
   ========================================================================== */
@keyframes winterSpin {
  to {
    transform: rotate(360deg);
  }
}

.is-btn-loading {
  position: relative !important;
  pointer-events: none !important;
  opacity: 0.86 !important;
  overflow: hidden !important;
}

.is-btn-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(240, 249, 255, 0.32) 50%,
    transparent 75%
  );
  background-size: 220% 100%;
  animation: winterShimmer 1.1s linear infinite;
  pointer-events: none;
}

.winter-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(240, 249, 255, 0.35);
  border-top-color: #ffffff;
  animation: winterSpin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}

@media (prefers-reduced-motion: reduce) {
  #winter-snow-canvas {
    display: none !important;
  }
  .winter-shimmer,
  .is-btn-loading::after {
    animation: none !important;
  }
}


/* ==========================================================================
   OPERATION FROSTFALL — WINTER EVENT HUB & BANNER (ZERO OVERFLOW MOBILE UI)
   ========================================================================== */
.winter-entry-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin: 12px 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 42, 74, 0.94) 0%, rgba(19, 62, 102, 0.88) 55%, rgba(56, 189, 248, 0.24) 100%);
    border: 1.5px solid rgba(125, 211, 252, 0.45);
    box-shadow: 0 8px 24px rgba(2, 12, 27, 0.55);
    cursor: pointer;
    transition: transform 0.16s ease;
}
.winter-entry-banner:active { transform: scale(0.985); }
.winter-entry-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.winter-entry-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(125, 211, 252, 0.4);
}
.winter-entry-details { min-width: 0; }
.winter-entry-details h4 {
    margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.04em;
    color: #f0f9ff;
}
.winter-entry-details p {
    margin: 3px 0 0; font-size: 11.5px; color: #bae6fd;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.winter-entry-cta {
    flex-shrink: 0; font-size: 12px; font-weight: 800;
    color: #071324; background: linear-gradient(90deg, #7dd3fc, #fde68a);
    padding: 6px 12px; border-radius: 999px;
}

.we-modal {
    position: fixed; inset: 0; z-index: 1150;
    background: linear-gradient(180deg, #07101d 0%, #0b1c31 100%);
    color: #f1f7ff;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.we-bg-glow {
    position: absolute; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: 0.22;
}
.we-glow-1 { width: 260px; height: 260px; top: -70px; left: -60px; background: #38bdf8; }
.we-glow-2 { width: 240px; height: 240px; bottom: -60px; right: -50px; background: #fbbf24; }

.we-header {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px; gap: 10px;
    border-bottom: 1px solid rgba(125, 211, 252, 0.16);
}
.we-back-btn, .we-refresh-btn {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    border: 1px solid rgba(125, 211, 252, 0.3);
    background: rgba(15, 34, 58, 0.8); color: #e0f2fe;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer;
}
.we-header-center { text-align: center; min-width: 0; flex: 1; }
.we-title { font-size: 15px; font-weight: 800; letter-spacing: 0.05em; color: #f8fbff; }
.we-subtitle { font-size: 11px; color: #93c5fd; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.we-wallet-strip {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px; padding: 10px 14px;
}
.we-pill {
    background: rgba(16, 36, 61, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px; padding: 8px 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #e0f2fe;
}
.we-pill small { font-size: 10px; color: #94a3b8; font-weight: 500; margin-top: 2px; }
.we-pill-gold { border-color: rgba(251, 191, 36, 0.45); color: #fde68a; }

.we-tabs {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px; padding: 0 14px 10px;
}
.we-tab {
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: rgba(12, 27, 46, 0.8);
    color: #cbd5e1; border-radius: 10px;
    padding: 8px 2px; font-size: 11px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
}
.we-tab.active {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #051120; border-color: #7dd3fc;
}

.we-body {
    position: relative; z-index: 2;
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 8px 14px 28px;
    -webkit-overflow-scrolling: touch;
}
.we-section-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    margin-bottom: 12px;
}
.we-section-head h3 { margin: 0; font-size: 15px; color: #f8fbff; }
.we-section-head p { margin: 4px 0 0; font-size: 12px; color: #9bb3cc; line-height: 1.45; }
.we-melt-badge {
    flex-shrink: 0; font-size: 11px; padding: 5px 10px; border-radius: 999px;
    background: rgba(251, 191, 36, 0.16); border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fde68a;
}

.we-advent-grid {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.we-day-tile {
    background: rgba(14, 31, 52, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 12px; padding: 8px 4px;
    text-align: center; transition: transform 0.15s ease;
}
.we-day-tile.st-claimable {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
    cursor: pointer;
}
.we-day-tile.st-missed { border-color: rgba(251, 191, 36, 0.55); cursor: pointer; }
.we-day-tile.st-claimed { opacity: 0.62; border-color: rgba(52, 211, 153, 0.45); }
.we-day-tile.st-locked { opacity: 0.48; }
.we-day-tile.we-day-special { border-width: 1.5px; border-color: #fbbf24; }
.we-day-num { font-size: 10px; font-weight: 800; color: #93c5fd; }
.we-day-ic { font-size: 18px; margin: 3px 0; }
.we-day-rew { font-size: 9.5px; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.we-globe-card, .we-santa-card, .we-arcade-box {
    background: rgba(14, 32, 54, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 16px; padding: 18px 16px;
    text-align: center; margin-bottom: 14px;
}
.we-globe-orb { font-size: 52px; margin-bottom: 8px; display: inline-block; }
.we-shake-anim { animation: weShake 0.6s ease-in-out; }
@keyframes weShake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-16deg) scale(1.1); }
    50% { transform: rotate(16deg) scale(1.12); }
    75% { transform: rotate(-10deg) scale(1.06); }
}

.we-primary-btn, .we-gold-btn, .we-secondary-btn, .we-owned-btn {
    width: 100%; border: none; border-radius: 12px;
    padding: 11px 14px; font-size: 13px; font-weight: 800;
    cursor: pointer; margin-top: 10px;
}
.we-primary-btn { background: linear-gradient(90deg, #0284c7, #38bdf8); color: #051120; }
.we-gold-btn { background: linear-gradient(90deg, #f59e0b, #fde68a); color: #1b1203; }
.we-secondary-btn { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.45); }
.we-owned-btn { background: rgba(52, 211, 153, 0.18); color: #6ee7b7; cursor: default; }
.we-primary-btn:disabled, .we-gold-btn:disabled, .we-secondary-btn:disabled { opacity: 0.48; cursor: not-allowed; }

.we-arcade-box { text-align: left; }
.we-arcade-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.we-arcade-row h4 { margin: 0; font-size: 14px; }
.we-arcade-row p { margin: 4px 0 0; font-size: 11.5px; color: #9bb3cc; }
.we-arcade-cap { flex-shrink: 0; font-size: 13px; font-weight: 800; color: #7dd3fc; }

.we-forge-grid, .we-crate-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.we-forge-card, .we-crate-card {
    background: rgba(14, 32, 54, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px; padding: 14px 12px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.we-forge-gold { border-color: rgba(251, 191, 36, 0.5); }
.we-forge-icon { font-size: 32px; margin-bottom: 6px; }
.we-forge-card h4, .we-crate-top { margin: 0 0 6px; font-size: 13.5px; font-weight: 800; color: #f8fbff; }
.we-forge-card p, .we-crate-card p { margin: 0; font-size: 11.5px; color: #9bb3cc; line-height: 1.4; }

.we-subhead { margin: 18px 0 10px; font-size: 13.5px; color: #bae6fd; }
.we-vault-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.we-vault-card {
    background: rgba(14, 31, 52, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px; padding: 10px;
    display: flex; flex-direction: column;
}
.we-vault-img-wrap {
    width: 100%; aspect-ratio: 3 / 4; border-radius: 10px;
    overflow: hidden; background: #0a1829; margin-bottom: 8px;
}
.we-vault-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.we-vault-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.we-vault-name { font-size: 13px; font-weight: 700; color: #f8fbff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.we-vault-anime { font-size: 11px; color: #93c5fd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.we-lb-section { margin-top: 14px; }
.we-lb-section h4 { margin: 0 0 8px; font-size: 14px; }
.we-lb-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; margin-bottom: 6px; border-radius: 10px;
    background: rgba(14, 31, 52, 0.85); border: 1px solid rgba(56, 189, 248, 0.16);
    font-size: 13px;
}
.we-lb-rank { width: 32px; font-weight: 800; }
.we-lb-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.we-lb-score { font-weight: 700; color: #7dd3fc; white-space: nowrap; }

.we-input {
    width: 100%; padding: 11px 12px; margin-top: 10px;
    border-radius: 10px; border: 1px solid rgba(125, 211, 252, 0.35);
    background: rgba(7, 17, 30, 0.9); color: #f8fbff; font-size: 13px;
}
.we-notice {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px; padding: 12px; margin: 10px 0;
    font-size: 12.5px; color: #e0f2fe;
}
.we-forged-banner {
    display: flex; align-items: center; gap: 12px; margin-top: 14px;
    padding: 12px; border-radius: 14px;
    background: rgba(251, 191, 36, 0.12); border: 1.5px solid #fbbf24;
}
.we-forged-banner img { width: 58px; height: 76px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.we-forged-lbl { font-size: 11px; font-weight: 800; color: #fde68a; }
.we-forged-name { font-size: 15px; font-weight: 800; color: #fff; margin-top: 2px; }
.we-forged-rar { font-size: 11.5px; color: #bae6fd; margin-top: 2px; }
.we-santa-meta { font-size: 12.5px; color: #fde68a; margin: 8px 0; }
.we-empty { text-align: center; padding: 18px; font-size: 12.5px; color: #94a3b8; grid-column: 1 / -1; }


/* ==========================================================================
   HOME UI LAYOUT, AVATAR VISIBILITY, CONTRAST & 60FPS SMOOTHNESS FIX (v2.2)
   ========================================================================== */
:root {
  --bg-color: #061224 !important;
  --panel-bg: rgba(13, 30, 56, 0.9) !important;
  --glass-bg: rgba(13, 30, 56, 0.9) !important;
  --glass-border: rgba(125, 211, 252, 0.22) !important;
  --text-primary: #f0f9ff !important;
  --text-secondary: #9bb8d4 !important;
}

/* Kill mobile scroll lag: hide heavy blur blobs & remove backdrop blur on scrolling rows */
.bg-blobs {
  display: none !important;
}
.leaderboard-item,
.card,
.glass-card,
.guild-card,
.mission-card,
.shop-item {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

/* Fix giant empty white space above Hall of Fame */
.winter-frost-banner {
  display: none !important;
}
#main-content {
  margin-top: var(--header-height, 68px) !important;
  padding-top: 12px !important;
  padding-bottom: 96px !important;
  background: transparent !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.panel-header,
.lb-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 12px !important;
}
.panel-header h2,
.lb-header h2 {
  color: #f0f9ff !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* Fix dark text on dark cards across Top Bar, Winter Banner, Waifu Pass & Leaderboard */
.top-bar,
.top-bar #header-name,
.top-bar .user-info span {
  color: #f0f9ff !important;
}
.top-bar .uid-tag {
  color: #93c5fd !important;
}
.winter-entry-banner h4 {
  color: #f8fbff !important;
}
.winter-entry-banner p {
  color: #bae6fd !important;
}
.waifu-pass-banner {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18) 0%, rgba(16, 36, 61, 0.92) 100%) !important;
  border: 1px solid rgba(251, 113, 133, 0.38) !important;
}
.waifu-pass-banner h4 {
  color: #fff1f2 !important;
}
.waifu-pass-banner p {
  color: #fda4af !important;
}
.lb-switch {
  background: rgba(15, 34, 58, 0.85) !important;
  border: 1px solid rgba(125, 211, 252, 0.22) !important;
}
.lb-btn {
  color: #9bb8d4 !important;
}
.lb-btn.active {
  background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
  color: #041020 !important;
}
.leaderboard-item {
  background: rgba(15, 34, 58, 0.92) !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  box-shadow: 0 4px 12px rgba(2, 10, 26, 0.35) !important;
}
.leaderboard-item .lb-name {
  color: #f8fbff !important;
}
.leaderboard-item .lb-meta {
  color: #9bb8d4 !important;
}
.leaderboard-item .lb-xp {
  color: #7dd3fc !important;
}

/* Fix Rank #1 crown overlapping 1,840 PTS */
.leaderboard-item.rank-1::after {
  content: '👑' !important;
  position: absolute !important;
  top: 5px !important;
  left: 10px !important;
  right: auto !important;
  transform: none !important;
  font-size: 12px !important;
  opacity: 0.95 !important;
  pointer-events: none !important;
}

/* Fix invisible user profile photos / avatars (never hide img at opacity: 0!) */
img.winter-lazy-img,
img.winter-lazy-img.winter-lazy-loaded,
#user-avatar,
.lb-avatar,
.avatar,
.profile-avatar {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
  background-color: rgba(15, 39, 72, 0.85) !important;
  object-fit: cover !important;
}
