/* recycle.games */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #1A1A2E; color: #E8E8E8; font-family: 'Inter', sans-serif; font-weight: 400; line-height: 1.6; }
.pixel-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 8px 8px; pointer-events: none; }
.title-screen { position: relative; padding: 5rem 2rem 4rem; text-align: center; overflow: hidden; }
.title-inner { position: relative; z-index: 1; }
.game-title { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 7vw, 4rem); text-transform: uppercase; letter-spacing: 0.05em; color: #ffffff; line-height: 1.1; margin-bottom: 2rem; }
.start-btn { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1rem; background: #4AE68A; color: #1A1A2E; border: 3px solid #4AE68A; border-radius: 4px; padding: 0.75rem 2rem; cursor: pointer; box-shadow: 0 4px 0 #16213E; }
.start-btn:active { transform: translateY(4px); box-shadow: none; }
.section-heading { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.5rem; color: #ffffff; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; text-align: center; }
.quests { max-width: 700px; margin: 0 auto; padding: 3rem 2rem; }
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.challenge-card { background: #16213E; border: 3px solid #4AE68A; border-radius: 4px; padding: 1.25rem; text-align: center; }
.challenge-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.challenge-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; color: #ffffff; margin-bottom: 0.3rem; }
.points { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.8rem; color: #4AE68A; display: block; margin-bottom: 0.5rem; }
.points.rare { color: #6C63FF; }
.progress-bar { height: 16px; background: #1A1A2E; border: 2px solid #E8E8E8; border-radius: 2px; overflow: hidden; margin-bottom: 0.5rem; }
.progress-fill { height: 100%; background: repeating-linear-gradient(90deg, #4AE68A 0px, #4AE68A 8px, transparent 8px, transparent 10px); }
.progress-fill.gold { background: repeating-linear-gradient(90deg, #FFD93D 0px, #FFD93D 8px, transparent 8px, transparent 10px); }
.progress-fill.purple { background: repeating-linear-gradient(90deg, #6C63FF 0px, #6C63FF 8px, transparent 8px, transparent 10px); }
.time-left { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: #E8E8E8; }
.time-left.urgent { color: #FF6B6B; }
.leaderboard { max-width: 500px; margin: 0 auto; padding: 3rem 2rem; }
.score-table { display: flex; flex-direction: column; gap: 0.5rem; }
.score-row { display: flex; align-items: center; gap: 0.75rem; background: #16213E; border: 2px solid #16213E; border-radius: 4px; padding: 0.6rem 1rem; }
.score-row.gold-row { border-color: #FFD93D; }
.rank { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1rem; color: #FFD93D; min-width: 24px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #4AE68A; flex-shrink: 0; }
.username { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 0.8rem; flex: 1; }
.score { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.9rem; color: #FFD93D; }
.trophies { max-width: 500px; margin: 0 auto; padding: 3rem 2rem; text-align: center; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.badge { width: 100%; aspect-ratio: 1; border: 3px solid #FFD93D; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 0.7rem; gap: 0.3rem; }
.badge.locked { border-color: #444; color: #666; }
.badge-star { font-size: 1.2rem; color: #FFD93D; }
.join-cta { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; color: #4AE68A; }
.game-footer { background: #16213E; text-align: center; padding: 1.5rem; }
.global-score { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.85rem; color: #FFD93D; }
@media (max-width: 560px) {
    .challenge-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
    .badge-grid { grid-template-columns: repeat(2, 1fr); }
}
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
