/* --- EXP & Level System --- */
.home-level-container {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  border: 2px dashed rgba(255, 138, 76, 0.25);
  box-shadow: 0 2px 8px rgba(58, 42, 26, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.home-level-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.home-level-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 1px 2px rgba(255, 138, 76, 0.1);
}
.home-level-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-soft);
  background: rgba(255, 138, 76, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}
.home-streak-chip {
  font-size: 16px;
  font-weight: 800;
  color: #c2410c;
  background: linear-gradient(135deg, #fff3e0 0%, #ffd180 100%);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 8px;
  box-shadow: 0 1px 3px rgba(255, 138, 76, 0.3);
}
.home-level-bar-bg {
  width: 100%;
  height: 14px;
  background: #ecdcb9;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.home-level-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ffab70);
  border-radius: 7px;
  transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.home-level-exp {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-soft);
  text-align: right;
  opacity: 0.85;
}

.rv-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px !important;
}
.rv-summary-exp-badge {
  font-size: 38px;
  font-weight: 900;
  color: var(--accent);
  background: rgba(255, 138, 76, 0.12);
  padding: 12px 28px;
  border-radius: 30px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(255, 138, 76, 0.2);
  animation: pop-in-exp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes pop-in-exp {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Level Up Overlay */
.level-up-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(58, 42, 26, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fade-in-overlay 0.35s ease-out forwards;
}
@keyframes fade-in-overlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.level-up-content {
  background: var(--bg);
  padding: 44px 32px;
  border-radius: var(--radius-card);
  border: 4px solid var(--accent);
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  position: relative;
  animation: scale-up-card 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes scale-up-card {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.level-up-badge {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.level-up-stars {
  font-size: 32px;
  margin-bottom: 16px;
  animation: stars-sway 1.8s ease-in-out infinite alternate;
}
@keyframes stars-sway {
  0% { transform: rotate(-5deg) scale(1); }
  100% { transform: rotate(5deg) scale(1.1); }
}

.level-up-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 8px;
}
.level-up-subtitle {
  font-size: 16px;
  color: var(--fg-soft);
  margin-bottom: 28px;
}
.level-up-subtitle strong {
  color: var(--accent);
  font-size: 18px;
}
.level-up-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 18px;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--radius-button);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 138, 76, 0.3);
}
.level-up-btn:active {
  transform: scale(0.97);
}

