/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:  #00ff88;
  --blue:   #00cfff;
  --purple: #9b5de5;
  --pink:   #f72585;
  --dark:   #0d0d1a;
  --darker: #07070f;
  --card-bg:#12122a;
  --text:   #e8e8ff;
  --muted:  #888aaa;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== PARTICLES ===== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 1px;
  opacity: 0.4;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155,93,229,.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0,207,255,.15) 0%, transparent 60%),
    var(--dark);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--dark));
  pointer-events: none;
  z-index: 0;
}

.hero-inner { max-width: 700px; position: relative; z-index: 1; }

.level-badge {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: .55rem;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 4px;
  padding: .3rem .7rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
  letter-spacing: .05em;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 6px var(--green); }
  50%      { box-shadow: 0 0 20px var(--green), 0 0 40px rgba(0,255,136,.3); }
}

.avatar {
  font-size: 6rem;
  margin-bottom: .5rem;
  filter: drop-shadow(0 0 20px rgba(155,93,229,.8));
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.4rem, 5vw, 2.8rem);
  line-height: 1.4;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .8rem;
  text-shadow: none;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* XP Bar */
.xp-bar-wrapper {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.xp-label { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.xp-bar {
  flex: 1; min-width: 160px; max-width: 320px;
  height: 14px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  border: 1px solid rgba(0,255,136,.2);
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 10px var(--green);
  transition: width 1.4s ease-out;
}
.xp-pct { font-family: 'Press Start 2P', monospace; font-size: .6rem; color: var(--green); }

/* Stats row */
.stats-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: .8rem 1.2rem;
  min-width: 80px;
  transition: transform .2s, border-color .2s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--green); }
.stat-val { font-family: 'Press Start 2P', monospace; font-size: 1.1rem; color: var(--green); margin-bottom: .3rem; }
.stat-key { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ===== SECTIONS ===== */
.section { position: relative; z-index: 1; padding: 5rem 1.5rem; }
.section.dark { background: var(--dark); }
.container { max-width: 1000px; margin: 0 auto; }

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.9rem, 2.5vw, 1.3rem);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
}
.section-title span { font-size: 1.6rem; }

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 8px 30px rgba(155,93,229,.2);
}
.card-icon { font-size: 3rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: .6rem; color: var(--blue); }
.card p { color: var(--muted); font-size: .95rem; }

/* ===== ACHIEVEMENTS ===== */
.achievement-list { display: flex; flex-direction: column; gap: 1rem; }
.achievement {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: transform .2s, border-color .2s;
}
.achievement.unlocked:hover { transform: translateX(6px); border-color: var(--green); }
.achievement.locked { opacity: .45; filter: grayscale(.6); }
.ach-icon { font-size: 2rem; flex-shrink: 0; }
.ach-info { flex: 1; }
.ach-info strong { display: block; font-size: 1rem; margin-bottom: .2rem; color: var(--text); }
.ach-info span { font-size: .85rem; color: var(--muted); }
.ach-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: .45rem;
  padding: .3rem .5rem;
  border-radius: 4px;
  background: var(--green);
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.locked-badge { background: var(--muted) !important; color: var(--dark) !important; }

/* ===== FACTS ===== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.fact-bubble {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  transition: transform .2s, border-color .2s;
}
.fact-bubble:hover { transform: translateY(-4px); border-color: var(--pink); }
.fact-num {
  font-family: 'Press Start 2P', monospace;
  font-size: .5rem;
  color: var(--pink);
  display: block;
  margin-bottom: .6rem;
  opacity: .7;
}
.fact-bubble p { font-size: .95rem; color: var(--muted); }

/* ===== QUOTE ===== */
.quote-section {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(247,37,133,.08) 0%, transparent 70%),
    var(--dark);
}

.big-quote {
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  font-style: italic;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-left: 4px solid var(--pink);
  background: rgba(247,37,133,.06);
  border-radius: 0 16px 16px 0;
}
.big-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: .9rem;
  font-style: normal;
  color: var(--pink);
  font-family: 'Press Start 2P', monospace;
  font-size: .6rem;
}

/* ===== COUNTDOWN ===== */
.countdown-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,255,136,.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0,207,255,.08) 0%, transparent 60%),
    var(--dark);
}

.countdown-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  margin-top: -.5rem;
}
.countdown-subtitle strong { color: var(--green); }

/* Birthday message (shown when countdown hits 0) */
.birthday-msg {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.6rem, 2vw, 1rem);
  color: var(--dark);
  background: linear-gradient(135deg, var(--green), var(--blue));
  text-align: center;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  line-height: 2;
  box-shadow: 0 0 40px rgba(0,255,136,.5);
  animation: partyPulse 1s ease-in-out infinite alternate;
}
.birthday-msg.hidden { display: none; }
@keyframes partyPulse {
  from { box-shadow: 0 0 20px rgba(0,255,136,.4); transform: scale(1); }
  to   { box-shadow: 0 0 50px rgba(0,207,255,.7); transform: scale(1.02); }
}

/* Countdown blocks */
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-bg);
  border: 2px solid rgba(0,255,136,.25);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  min-width: 110px;
  box-shadow: 0 0 20px rgba(0,255,136,.08);
  transition: border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.countdown-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,255,136,.05) 0%, transparent 50%);
  pointer-events: none;
}
.countdown-block:hover {
  border-color: var(--green);
  box-shadow: 0 0 30px rgba(0,255,136,.25);
}

.countdown-val {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--green);
  line-height: 1;
  margin-bottom: .6rem;
  text-shadow: 0 0 20px rgba(0,255,136,.6);
  transition: transform .15s;
}
.countdown-val.tick {
  transform: scale(1.1);
}

.countdown-key {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
}

.countdown-sep {
  font-family: 'Press Start 2P', monospace;
  font-size: 2rem;
  color: rgba(0,255,136,.4);
  margin-bottom: 1.5rem;
  align-self: center;
}

/* Year progress bar */
.progress-wrapper {
  max-width: 680px;
  margin: 0 auto;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .5rem;
  flex-wrap: wrap;
  gap: .4rem;
}
.progress-bar-outer {
  height: 18px;
  background: rgba(255,255,255,.06);
  border-radius: 99px;
  border: 1px solid rgba(0,255,136,.2);
  overflow: hidden;
  margin-bottom: .5rem;
}
.progress-bar-inner {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), var(--green) 80%, var(--blue));
  box-shadow: 0 0 12px var(--green);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.progress-bar-inner::after {
  content: '🎂';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px var(--green));
}
.progress-pct-label {
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: .55rem;
  color: var(--green);
  letter-spacing: .08em;
}
.countdown-pct-top {
  margin-bottom: 1.5rem;
  font-size: .65rem;
  opacity: .85;
}

/* Klok in de hero — iets compacter */
.hero-countdown {
  margin-bottom: 2rem;
}
.hero-countdown .countdown-block {
  min-width: 80px;
  padding: 1rem .8rem;
}
.hero-countdown .countdown-val {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 1;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
  padding: 2.5rem 1rem;
}
.pixel-text {
  font-family: 'Press Start 2P', monospace;
  font-size: .5rem;
  color: var(--muted);
  margin-bottom: .5rem;
  letter-spacing: .05em;
}
.footer-sub { font-size: .85rem; color: rgba(255,255,255,.25); }

/* ===== VERLANGLIJST ===== */
.wishlist-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  margin-top: -.5rem;
}

.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.wish-item {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.wish-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, white, transparent 70%);
  opacity: .04;
  pointer-events: none;
}

/* Rarity border + hover glow */
.rarity-legendary { border-color: #ffd700; }
.rarity-legendary:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(255,215,0,.35); }
.rarity-epic      { border-color: var(--purple); }
.rarity-epic:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(155,93,229,.35); }
.rarity-rare      { border-color: var(--blue); }
.rarity-rare:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,207,255,.35); }
.rarity-uncommon  { border-color: var(--green); }
.rarity-uncommon:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,255,136,.35); }

/* Rarity badge tags */
.wish-rarity {
  font-family: 'Press Start 2P', monospace;
  font-size: .4rem;
  padding: .3rem .65rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: .05em;
}
.rarity-tag-legendary { background: rgba(255,215,0,.12); color: #ffd700;       border: 1px solid rgba(255,215,0,.4); }
.rarity-tag-epic      { background: rgba(155,93,229,.12); color: var(--purple); border: 1px solid rgba(155,93,229,.4); }
.rarity-tag-rare      { background: rgba(0,207,255,.12);  color: var(--blue);   border: 1px solid rgba(0,207,255,.4); }
.rarity-tag-uncommon  { background: rgba(0,255,136,.12);  color: var(--green);  border: 1px solid rgba(0,255,136,.4); }

.wish-icon  { font-size: 2.8rem; margin-bottom: .8rem; }
.wish-name  { font-size: 1.1rem; font-weight: 900; color: var(--text); margin-bottom: .5rem; }
.wish-desc  { font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* ===== XP ZOOM OVERLAY ===== */
.xp-bar { cursor: zoom-in; }

.xp-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,7,15,.96);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .35s ease;
}
.xp-zoom-overlay.active { opacity: 1; }

.xp-zoom-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.55rem, 2vw, .85rem);
  color: var(--green);
  text-align: center;
  line-height: 2.2;
  text-shadow: 0 0 20px rgba(0,255,136,.5);
}

.xp-zoom-viewport {
  width: 90vw;
  overflow: hidden;
  border-radius: 99px;
  position: relative;
}

.xp-zoom-track {
  height: 52px;
  width: 5000px;
  background: rgba(255,255,255,.06);
  border-radius: 99px;
  border: 2px solid rgba(0,255,136,.25);
  overflow: hidden;
  position: relative;
  will-change: transform;
}

.xp-zoom-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 99px;
  box-shadow: 0 0 30px var(--green);
  position: relative;
}

/* Pulserende rand bij het lege stukje */
.xp-zoom-fill::after {
  content: '← leeg';
  position: absolute;
  right: -52px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Press Start 2P', monospace;
  font-size: .4rem;
  color: var(--pink);
  white-space: nowrap;
  animation: blinkLabel 1s step-start infinite;
}
@keyframes blinkLabel { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.xp-zoom-hint {
  font-size: .85rem;
  color: var(--muted);
  font-family: 'Nunito', sans-serif;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }
