:root { --primary: #0f172a; --accent: #0ea5e9; --accent-dark: #0284c7; --text: #0f172a; --text-light: #64748b; --border: #cbd5e1; --bg: #ffffff; --bg-alt: #f8fafc; --bg-secondary: #f1f5f9; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 14px; font-weight: 400; }
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.header { background: var(--bg); border-bottom: 1px solid var(--border); padding: 18px 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.98); }
.header-inner { max-width: 1000px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.header-logo { font-size: 18px; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -1px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.header-logo:hover { opacity: 0.8; }
.header-cta { padding: 10px 18px; background: var(--accent); color: white; text-decoration: none; border-radius: 6px; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3); }
.header-cta:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4); }

.hero { padding: 80px 0; background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%); border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 20px; color: var(--primary); line-height: 1.15; letter-spacing: -0.5px; }
.hero p { font-size: 16px; color: var(--text-light); max-width: 600px; line-height: 1.8; font-weight: 400; }

.latest { padding: 80px 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.latest h2 { font-size: 28px; font-weight: 800; margin-bottom: 40px; color: var(--primary); letter-spacing: -0.5px; }

.users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.users-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.user-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; height: 100%; display: flex; flex-direction: column; }
.user-card:hover { border-color: var(--accent); box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15); transform: translateY(-4px); }

.user-avatar { width: 100%; aspect-ratio: 1; border-radius: 0; overflow: hidden; background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%); display: flex; align-items: center; justify-content: center; position: relative; color: #0369a1; font-size: 56px; font-weight: 600; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-placeholder { font-size: 56px; color: #0369a1; line-height: 1; font-weight: 600; }

.user-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; padding: 12px; background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.2), transparent); }
.user-status-badge { background: rgba(255, 255, 255, 0.98); color: var(--text); padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; backdrop-filter: blur(10px); white-space: normal; word-break: break-word; max-width: 100%; }
.user-status-badge.legendary { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #78350f; box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3); }
.user-status-badge.super { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.user-status-badge.beginner { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }

.user-content { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.user-name { font-weight: 600; color: var(--text); font-size: 16px; line-height: 1.4; }
.user-archetype { font-size: 12px; color: var(--accent); font-weight: 700; }
.user-archetype a { color: var(--accent); text-decoration: none; transition: all 0.2s; }
.user-archetype a:hover { color: var(--accent-dark); }
.user-full-status { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.user-link { font-size: 13px; color: var(--accent); text-decoration: none; transition: all 0.2s; font-weight: 500; }
.user-link:hover { color: var(--accent-dark); text-decoration: underline; }
.user-date { font-size: 11px; color: var(--text-light); margin-top: auto; font-weight: 500; }

.archetypes { padding: 80px 0; background: var(--bg-alt); }
.category-section { margin-bottom: 80px; }
.category-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 40px; color: var(--primary); letter-spacing: -0.5px; }
.archetype-block { margin-bottom: 60px; }
.archetype-header { margin-bottom: 28px; }
.archetype-header h3 { font-size: 20px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 12px; letter-spacing: -0.3px; }
.archetype-count { margin-left: auto; font-size: 13px; background: var(--bg); padding: 4px 12px; border-radius: 6px; color: var(--accent); font-weight: 700; border: 1px solid var(--border); }
.archetype-header a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
.archetype-header a:hover { color: var(--accent); }

.archetype-page { padding: 80px 0; }
.archetype-intro { display: flex; align-items: flex-start; gap: 40px; margin-bottom: 60px; padding: 40px; background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%); border: 1px solid var(--border); border-radius: 16px; }
.archetype-info { flex: 1; }
.archetype-intro h1 { font-size: 38px; font-weight: 800; margin-bottom: 16px; color: var(--primary); letter-spacing: -0.5px; }
.archetype-description { color: var(--text-light); margin-bottom: 20px; line-height: 1.8; font-size: 15px; font-weight: 400; }
.archetype-meta { display: flex; gap: 20px; align-items: center; }
.archetype-count-large { font-size: 13px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }

.users-grid-full { display: flex; flex-direction: column; gap: 50px; }
.level-section { display: flex; flex-direction: column; gap: 20px; }
.level-header { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.level-header h3 { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: -0.3px; }
.level-count { margin-left: auto; font-size: 12px; background: var(--bg); padding: 6px 12px; border-radius: 6px; color: var(--text-light); font-weight: 700; border: 1px solid var(--border); }

.users-in-level { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.user-card-full { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; display: flex; flex-direction: column; height: 100%; }
.user-card-full:hover { border-color: var(--accent); box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15); transform: translateY(-4px); }
.user-card-full .user-avatar { aspect-ratio: 1; }
.user-card-full .user-content { padding: 18px; }

.footer { margin-top: 80px; padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer p { text-align: center; color: var(--text-light); font-size: 13px; font-weight: 500; }

@media (max-width: 1200px) {
  .users-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .users-in-level { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) { 
  .hero { padding: 60px 0; } 
  .hero h1 { font-size: 32px; } 
  .hero p { font-size: 15px; } 
  .users-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; } 
  .users-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .users-in-level { grid-template-columns: repeat(2, 1fr); }
  .archetype-intro { flex-direction: column; gap: 24px; padding: 32px; } 
  .archetype-intro h1 { font-size: 28px; } 
  .header-inner { flex-direction: column; gap: 12px; } 
  .category-section h2 { font-size: 24px; } 
}

@media (max-width: 480px) { 
  .hero { padding: 50px 0; } 
  .hero h1 { font-size: 24px; } 
  .latest, .archetypes { padding: 50px 0; } 
  .users-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .users-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .users-in-level { grid-template-columns: 1fr; }
  .archetype-header h3 { font-size: 16px; } 
  .user-status-badge { font-size: 10px; padding: 5px 10px; } 
}
