* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --primary: #00ff88;
  --secondary: #00d4ff;
  --accent: #ff00aa;
  --warning: #ffaa00;
  --danger: #ff3344;
  --success: #00ff88;
  --dark: #0a0a0f;
  --darker: #050508;
  --card: rgba(20, 20, 30, 0.6);
  --border: rgba(0, 255, 136, 0.2);
  --glow: 0 0 30px rgba(0, 255, 136, 0.5);
}
[data-theme="purple"] { --primary: #b400ff; --secondary: #ff00aa; --border: rgba(180, 0, 255, 0.3); --glow: 0 0 30px rgba(180, 0, 255, 0.5); }
[data-theme="fire"] { --primary: #ff5500; --secondary: #ffaa00; --border: rgba(255, 85, 0, 0.3); --glow: 0 0 30px rgba(255, 85, 0, 0.5); }
[data-theme="ice"] { --primary: #00ddff; --secondary: #aaaaff; --border: rgba(0, 221, 255, 0.3); --glow: 0 0 30px rgba(0, 221, 255, 0.5); }
[data-theme="gold"] { --primary: #ffd700; --secondary: #ff8800; --border: rgba(255, 215, 0, 0.3); --glow: 0 0 30px rgba(255, 215, 0, 0.5); }
[data-theme="matrix"] { --primary: #00ff00; --secondary: #003300; --border: rgba(0, 255, 0, 0.3); --glow: 0 0 30px rgba(0, 255, 0, 0.5); }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--darker);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
  transition: background 0.5s;
}

.cursor { position: fixed; width: 24px; height: 24px; pointer-events: none; z-index: 10001; font-size: 20px; transform: translate(-50%, -50%); }
.cursor-follower { position: fixed; width: 40px; height: 40px; border: 2px solid var(--primary); border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); transition: all 0.2s ease-out; box-shadow: var(--glow); }

.loader { position: fixed; inset: 0; background: #000; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.5s; }
.loader.hidden { opacity: 0; pointer-events: none; }
.loader-text { font-family: 'Press Start 2P', cursive; font-size: 1.5rem; color: var(--primary); text-shadow: var(--glow); margin-bottom: 30px; animation: glitch 2s infinite; }
.loader-bar { width: 300px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); width: 0; transition: width 0.3s; box-shadow: var(--glow); }
.loader-progress { margin-top: 20px; color: var(--primary); font-family: 'Press Start 2P', cursive; font-size: 1rem; }
.loader-tips { margin-top: 10px; color: #888; font-family: 'VT323', monospace; font-size: 1.2rem; max-width: 500px; text-align: center; }
@keyframes glitch { 0%, 100% { transform: translate(0); } 20% { transform: translate(-2px, 2px); } 40% { transform: translate(-2px, -2px); } 60% { transform: translate(2px, 2px); } 80% { transform: translate(2px, -2px); } }

#particles-canvas { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.noise { position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E"); opacity: 0.03; pointer-events: none; z-index: 9990; }

.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; background: rgba(5, 5, 8, 0.6); backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border); transition: 0.3s; }
.logo { font-family: 'Press Start 2P', cursive; font-size: 1.1rem; color: var(--primary); text-shadow: var(--glow); letter-spacing: 2px; cursor: pointer; transition: 0.3s; text-decoration: none; }
.logo:hover { transform: scale(1.1); }
.logo span { color: #fff; }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { color: #ccc; text-decoration: none; font-weight: 600; font-size: 0.85rem; position: relative; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a::after { content: ''; position: absolute; bottom: -8px; left: 50%; width: 0; height: 2px; background: var(--primary); transition: 0.3s; transform: translateX(-50%); }
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); color: var(--primary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: 0.3s; }
.icon-btn:hover { background: var(--primary); color: #000; transform: rotate(15deg); box-shadow: var(--glow); }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 40px 50px; position: relative; }
.hero-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; max-width: 1400px; width: 100%; align-items: center; }
.hero-text .badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; background: rgba(0, 255, 136, 0.1); border: 1px solid var(--primary); border-radius: 50px; color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 25px; letter-spacing: 1px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--primary); } 50% { box-shadow: 0 0 0 15px transparent; } }
.live-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.hero-text h1 { font-family: 'Press Start 2P', cursive; font-size: 2.5rem; line-height: 1.5; margin-bottom: 25px; }
.hero-text h1 .accent { display: block; font-size: 3.5rem; background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 3s ease infinite; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.typed-text { display: inline-block; color: var(--primary); border-right: 3px solid var(--primary); padding-right: 5px; animation: blinkCursor 0.7s infinite; }
@keyframes blinkCursor { 50% { border-color: transparent; } }
.hero-text p { font-size: 1.05rem; color: #aaa; margin-bottom: 30px; max-width: 500px; line-height: 1.7; }
.hero-stats { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.stat { padding: 15px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 15px; backdrop-filter: blur(10px); flex: 1; min-width: 110px; transition: 0.3s; cursor: pointer; }
.stat:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--glow); }
.stat .num { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: block; font-family: 'Press Start 2P', cursive; }
.stat .label { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
.stat .trend { font-size: 0.7rem; color: var(--success); margin-top: 5px; }
.cta-group { display: flex; gap: 15px; flex-wrap: wrap; }
.btn { padding: 14px 30px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; transition: 0.3s; border: none; text-transform: uppercase; letter-spacing: 1px; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #000; box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3); }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: 0.6s; }
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px var(--glow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #000; transform: translateY(-3px); }
.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 170, 0, 0.4); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 0.75rem; }

.skin-display { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.skin-stage { position: relative; width: 100%; max-width: 380px; animation: float 4s ease-in-out infinite; transition: transform 0.3s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotateY(0deg); } 50% { transform: translateY(-20px) rotateY(15deg); } }
.skin-platform { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%) rotateX(60deg); width: 280px; height: 280px; background: radial-gradient(circle, var(--primary) 0%, transparent 70%); opacity: 0.3; filter: blur(30px); }
.skin-img { width: 100%; filter: drop-shadow(0 20px 40px rgba(0, 255, 136, 0.4)); position: relative; z-index: 2; image-rendering: pixelated; }
.skin-orbit { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid var(--primary); border-radius: 50%; opacity: 0.3; animation: orbitSpin 20s linear infinite; }
.orbit-1 { width: 300px; height: 300px; }
.orbit-2 { width: 380px; height: 380px; animation-direction: reverse; animation-duration: 30s; border-color: var(--secondary); }
.orbit-3 { width: 460px; height: 460px; animation-duration: 40s; border-color: var(--accent); }
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.orbit-item { position: absolute; top: 50%; left: 0; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; box-shadow: var(--glow); transform: translate(-50%, -50%); }
.skin-tag { position: absolute; background: var(--card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 15px; padding: 12px 18px; font-size: 0.85rem; z-index: 3; animation: floatTag 3s ease-in-out infinite; }
@keyframes floatTag { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.tag-1 { top: 15%; left: -5%; border-color: var(--primary); }
.tag-2 { bottom: 25%; right: -5%; border-color: var(--secondary); animation-delay: 1.5s; }
.tag-3 { top: 60%; left: -10%; border-color: var(--accent); animation-delay: 0.8s; }
.skin-tag .label { color: #888; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.skin-tag .value { font-weight: 700; font-size: 1.1rem; margin-top: 4px; }
.tag-1 .value { color: var(--primary); }
.tag-2 .value { color: var(--secondary); }
.tag-3 .value { color: var(--accent); }

.marquee { background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary)); background-size: 200% 100%; animation: gradientFlow 5s linear infinite; padding: 15px 0; overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@keyframes gradientFlow { to { background-position: 200% 0; } }
.marquee-content { display: inline-block; font-family: 'Press Start 2P', cursive; font-size: 0.9rem; color: #000; font-weight: bold; animation: marqueeScroll 20s linear infinite; padding-right: 50px; }
.marquee-content span { margin: 0 30px; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

section { padding: 100px 40px; position: relative; }
.section-title { text-align: center; margin-bottom: 70px; }
.section-title h2 { font-family: 'Press Start 2P', cursive; font-size: 2rem; margin-bottom: 15px; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.section-title p { color: #888; font-size: 1rem; margin-top: 10px; }

.software-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; max-width: 1300px; margin: 0 auto; }
.software-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; position: relative; overflow: hidden; transition: 0.4s; backdrop-filter: blur(20px); cursor: pointer; }
.software-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2); }
.card-icon { width: 60px; height: 60px; border-radius: 15px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; }
.software-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.software-card p { color: #aaa; font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.card-tag { padding: 4px 12px; background: rgba(0, 255, 136, 0.1); border: 1px solid var(--primary); border-radius: 20px; font-size: 0.7rem; color: var(--primary); text-transform: uppercase; }
.card-link { color: var(--primary); font-weight: 700; text-decoration: none; }
.status-online { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--primary); }
.status-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); animation: blink 1.5s infinite; }
.card-stats { display: flex; gap: 15px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }
.card-stats div { font-size: 0.75rem; color: #888; }
.card-stats strong { color: var(--primary); }

.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.achievement { background: var(--card); border: 1px solid var(--border); border-radius: 15px; padding: 20px; text-align: center; transition: 0.3s; cursor: pointer; }
.achievement:hover { transform: translateY(-5px); border-color: var(--warning); }
.achievement.locked { opacity: 0.4; filter: grayscale(1); }
.achievement-icon { font-size: 3rem; margin-bottom: 10px; }
.achievement h4 { color: var(--warning); margin-bottom: 5px; font-size: 0.95rem; }
.achievement p { color: #888; font-size: 0.8rem; }

.timeline { max-width: 900px; margin: 0 auto; position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent)); }
.timeline-item { position: relative; margin-bottom: 40px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 15px; transition: 0.3s; }
.timeline-item:hover { transform: translateX(10px); }
.timeline-item::before { content: ''; position: absolute; left: -32px; top: 25px; width: 16px; height: 16px; background: var(--primary); border-radius: 50%; box-shadow: var(--glow); border: 3px solid var(--dark); }
.timeline-year { font-family: 'Press Start 2P', cursive; font-size: 0.85rem; color: var(--primary); margin-bottom: 10px; }
.timeline-item h4 { font-size: 1.2rem; margin-bottom: 8px; }
.timeline-item p { color: #aaa; font-size: 0.9rem; }

.inventory-section { text-align: center; }
.inventory { display: inline-grid; grid-template-columns: repeat(9, 60px); gap: 4px; padding: 20px; background: rgba(0,0,0,0.5); border: 4px solid #333; border-radius: 5px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); max-width: 100%; overflow-x: auto; }
.inv-slot { width: 60px; height: 60px; background: rgba(139, 139, 139, 0.3); border: 1px solid rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; transition: 0.2s; position: relative; }
.inv-slot:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); z-index: 2; box-shadow: 0 0 15px var(--primary); }
.inv-slot.has::after { content: attr(data-count); position: absolute; bottom: 2px; right: 4px; font-size: 0.7rem; color: #fff; text-shadow: 2px 2px 0 #000; font-family: 'Press Start 2P', cursive; }

.terminal-section { max-width: 900px; margin: 0 auto; }
.terminal { background: #000; border: 1px solid var(--primary); border-radius: 15px; overflow: hidden; box-shadow: 0 0 40px rgba(0, 255, 136, 0.2); }
.terminal-header { background: #1a1a1a; padding: 12px 20px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #333; }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ff5555; }
.terminal-dot.yellow { background: #ffaa00; }
.terminal-dot.green { background: var(--primary); }
.terminal-title { flex: 1; text-align: center; font-family: 'VT323', monospace; color: #888; }
.terminal-body { padding: 20px; font-family: 'VT323', monospace; font-size: 1.1rem; color: var(--primary); min-height: 300px; max-height: 400px; overflow-y: auto; }
.terminal-line { margin-bottom: 8px; }
.terminal-prompt { color: var(--secondary); }
.terminal-output { color: #aaa; }
.terminal-input-line { display: flex; align-items: center; }
.terminal-input { flex: 1; background: transparent; border: none; color: var(--primary); font-family: 'VT323', monospace; font-size: 1.1rem; outline: none; margin-left: 8px; }

.chat-box { max-width: 700px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; backdrop-filter: blur(20px); }
.chat-messages { height: 300px; overflow-y: auto; margin-bottom: 15px; padding-right: 10px; }
.chat-msg { margin-bottom: 12px; padding: 10px 15px; background: rgba(255,255,255,0.03); border-radius: 12px; border-left: 3px solid var(--primary); animation: slideIn 0.3s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } }
.chat-msg.admin-msg { border-left-color: var(--warning); background: rgba(255, 170, 0, 0.1); }
.chat-msg .user { color: var(--secondary); font-weight: 700; font-size: 0.85rem; }
.chat-msg.admin-msg .user { color: var(--warning); }
.chat-msg .text { color: #ddd; font-size: 0.9rem; margin-top: 4px; }
.chat-msg .time { color: #555; font-size: 0.7rem; margin-top: 4px; }
.chat-input-row { display: flex; gap: 10px; }
.chat-input { flex: 1; padding: 12px 18px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 50px; color: #fff; outline: none; }
.chat-input:focus { border-color: var(--primary); }
.chat-send { padding: 12px 25px; background: var(--primary); color: #000; border: none; border-radius: 50px; font-weight: 700; cursor: pointer; }

.server-status { max-width: 900px; margin: 0 auto; background: linear-gradient(135deg, rgba(0,255,136,0.05), rgba(0,212,255,0.05)); border: 1px solid var(--border); border-radius: 20px; padding: 30px; backdrop-filter: blur(20px); }
.server-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.server-ip { font-family: 'VT323', monospace; font-size: 1.5rem; color: var(--primary); background: rgba(0,0,0,0.3); padding: 10px 20px; border-radius: 10px; cursor: pointer; user-select: all; }
.server-players { display: flex; gap: 30px; }
.player-stat { text-align: center; }
.player-stat .num { font-family: 'Press Start 2P', cursive; font-size: 1.5rem; color: var(--primary); display: block; }
.player-stat .label { color: #888; font-size: 0.75rem; text-transform: uppercase; }
.players-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 20px; }
.player-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(255,255,255,0.03); border-radius: 10px; border: 1px solid var(--border); transition: 0.3s; cursor: pointer; }
.player-item:hover { border-color: var(--primary); transform: translateX(5px); }
.player-item img { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 4px; }
.player-item span { font-size: 0.85rem; color: #ccc; }
.admin-badge { background: var(--warning); color: #000; padding: 1px 6px; border-radius: 8px; font-size: 0.65rem; font-weight: bold; margin-left: auto; }

.achievement-popup { position: fixed; bottom: 30px; right: 30px; background: rgba(0,0,0,0.95); border: 3px solid var(--warning); border-radius: 10px; padding: 15px 20px; display: flex; align-items: center; gap: 15px; z-index: 9998; transform: translateX(400px); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); max-width: 320px; }
.achievement-popup.show { transform: translateX(0); }
.achievement-popup.error { border-color: var(--danger); }
.achievement-popup.success { border-color: var(--success); }
.achievement-popup.info { border-color: var(--secondary); }
.achievement-popup .icon { width: 50px; height: 50px; background: var(--warning); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.achievement-popup.error .icon { background: var(--danger); }
.achievement-popup.success .icon { background: var(--success); }
.achievement-popup.info .icon { background: var(--secondary); }
.achievement-popup .title { font-family: 'Press Start 2P', cursive; font-size: 0.7rem; color: var(--warning); margin-bottom: 5px; }
.achievement-popup.error .title { color: var(--danger); }
.achievement-popup.success .title { color: var(--success); }
.achievement-popup.info .title { color: var(--secondary); }
.achievement-popup .text { color: #fff; font-weight: 700; font-size: 0.9rem; }

.command-palette { position: fixed; top: 20%; left: 50%; transform: translateX(-50%) scale(0.9); width: 90%; max-width: 500px; background: rgba(15, 15, 20, 0.98); border: 1px solid var(--border); border-radius: 15px; backdrop-filter: blur(20px); z-index: 9997; opacity: 0; pointer-events: none; transition: 0.3s; }
.command-palette.active { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }
.command-palette input { width: 100%; padding: 20px; background: transparent; border: none; border-bottom: 1px solid var(--border); color: #fff; font-size: 1rem; outline: none; }
.command-results { padding: 10px; max-height: 300px; overflow-y: auto; }
.command-item { padding: 12px 18px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 15px; transition: 0.2s; }
.command-item:hover { background: rgba(0,255,136,0.1); }
.command-item .icon { font-size: 1.2rem; width: 30px; }
.command-item .name { color: #fff; font-weight: 600; }
.command-item .desc { color: #888; font-size: 0.85rem; margin-left: auto; }
.command-hint { padding: 10px 18px; color: #666; font-size: 0.75rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.kbd { background: #333; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 0.7rem; color: #fff; }

.music-player { position: fixed; bottom: 20px; left: 20px; background: var(--card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 15px; padding: 12px 15px; display: flex; align-items: center; gap: 12px; z-index: 100; }
.music-cover { width: 45px; height: 45px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.music-cover.playing::after { content: ''; position: absolute; inset: -3px; border-radius: 13px; border: 2px solid var(--primary); animation: rotate 3s linear infinite; border-top-color: transparent; border-right-color: transparent; }
@keyframes rotate { to { transform: rotate(360deg); } }
.music-info { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.music-title { font-size: 0.8rem; color: #fff; font-weight: 700; }
.music-artist { font-size: 0.7rem; color: #888; }
.music-volume { display: flex; align-items: center; gap: 5px; }
.music-volume input { width: 60px; accent-color: var(--primary); }
.music-controls { display: flex; gap: 8px; }
.music-btn { width: 30px; height: 30px; background: transparent; border: 1px solid var(--border); border-radius: 50%; color: var(--primary); cursor: pointer; font-size: 0.8rem; transition: 0.2s; }
.music-btn:hover { background: var(--primary); color: #000; }
.music-btn.play { background: var(--primary); color: #000; }

.back-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; cursor: pointer; z-index: 99; opacity: 0; transform: translateY(100px); transition: 0.3s; box-shadow: var(--glow); border: none; }
.back-top.visible { opacity: 1; transform: translateY(0); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.3s; padding: 20px; }
.modal.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--darker); border: 1px solid var(--border); border-radius: 20px; padding: 40px; max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto; position: relative; transform: scale(0.9); transition: 0.3s; }
.modal.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: #fff; font-size: 1.2rem; cursor: pointer; }
.modal-close:hover { background: var(--primary); color: #000; }

footer { padding: 40px; text-align: center; border-top: 1px solid var(--border); color: #666; font-size: 0.9rem; background: rgba(0,0,0,0.3); }
.social-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.social-link { width: 45px; height: 45px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--primary); text-decoration: none; font-size: 1.2rem; transition: 0.3s; }
.social-link:hover { background: var(--primary); color: #000; transform: translateY(-5px) rotate(360deg); }

.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 15px; padding: 15px 20px; display: flex; align-items: center; gap: 20px; z-index: 9998; transition: 0.3s; }
.cookie-banner.hidden { transform: translateX(-50%) translateY(150px); opacity: 0; pointer-events: none; }
.cookie-banner span { color: #ccc; font-size: 0.9rem; }

.coin { position: fixed; width: 30px; height: 30px; pointer-events: none; z-index: 9996; animation: coinAnim 1s forwards; }
@keyframes coinAnim { 0% { transform: scale(0) rotate(0deg); opacity: 1; } 100% { transform: scale(1.5) rotate(720deg) translateY(200px); opacity: 0; } }

/* ===== ADMIN ===== */
.admin-login { position: fixed; inset: 0; background: rgba(0,0,0,0.98); backdrop-filter: blur(30px); z-index: 10003; display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-login.hidden { display: none; }
.admin-login-box { background: rgba(20, 20, 30, 0.9); border: 2px solid var(--warning); border-radius: 20px; padding: 50px; max-width: 400px; width: 100%; text-align: center; box-shadow: 0 0 60px rgba(255, 170, 0, 0.3); }
.admin-login-box .lock-icon { font-size: 4rem; margin-bottom: 20px; }
.admin-login-box h2 { font-family: 'Press Start 2P', cursive; color: var(--warning); font-size: 1.2rem; margin-bottom: 10px; }
.admin-login-box p { color: #888; margin-bottom: 25px; font-size: 0.9rem; }
.admin-login-box input { width: 100%; padding: 15px; background: rgba(0,0,0,0.5); border: 2px solid var(--border); border-radius: 10px; color: #fff; font-size: 1.2rem; text-align: center; outline: none; font-family: 'VT323', monospace; letter-spacing: 5px; margin-bottom: 15px; }
.admin-login-box input:focus { border-color: var(--warning); }
.admin-login-box input.error { border-color: var(--danger); animation: shake 0.4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.admin-login-box .hints { color: #555; font-size: 0.75rem; margin-top: 15px; }

.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid var(--warning); flex-wrap: wrap; gap: 15px; }
.admin-header h1 { font-family: 'Press Start 2P', cursive; font-size: 1.5rem; color: var(--warning); }
.admin-header h1 span { color: #fff; }
.admin-close { background: var(--danger); color: #fff; border: none; padding: 12px 25px; border-radius: 50px; font-weight: 700; cursor: pointer; }

.admin-tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.admin-tab { padding: 12px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 10px 10px 0 0; color: #888; cursor: pointer; transition: 0.3s; font-weight: 600; font-size: 0.85rem; }
.admin-tab:hover { color: var(--warning); }
.admin-tab.active { background: var(--warning); color: #000; border-color: var(--warning); }

.admin-content { background: var(--card); border: 1px solid var(--border); border-radius: 15px; padding: 30px; min-height: 500px; backdrop-filter: blur(20px); }
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.admin-stat-card { background: rgba(0,0,0,0.4); border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: 0.3s; }
.admin-stat-card:hover { border-color: var(--warning); transform: translateY(-3px); }
.admin-stat-card .label { color: #888; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.admin-stat-card .value { font-family: 'Press Start 2P', cursive; font-size: 1.5rem; color: var(--warning); }
.admin-stat-card .sub { color: #666; font-size: 0.75rem; margin-top: 5px; }
.change.up { color: var(--success); }

.admin-form { display: grid; gap: 15px; max-width: 600px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { color: #888; font-size: 0.85rem; font-weight: 600; }
.form-input, .form-textarea, .form-select { padding: 12px 15px; background: rgba(0,0,0,0.5); border: 1px solid var(--border); border-radius: 8px; color: #fff; outline: none; font-family: inherit; font-size: 0.9rem; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--warning); }
.form-textarea { resize: vertical; min-height: 100px; font-family: 'VT323', monospace; font-size: 1.1rem; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th, .admin-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { background: rgba(255, 170, 0, 0.1); color: var(--warning); text-transform: uppercase; font-size: 0.75rem; }
.admin-table .actions { display: flex; gap: 8px; }

.admin-users { display: grid; gap: 15px; }
.user-card { display: flex; align-items: center; gap: 15px; padding: 15px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 10px; }
.user-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.user-info { flex: 1; }
.user-info .name { font-weight: 700; }
.user-info .email { color: #888; font-size: 0.85rem; }
.user-role { padding: 4px 12px; border-radius: 15px; font-size: 0.75rem; font-weight: 700; }
.user-role.admin { background: var(--warning); color: #000; }
.user-role.mod { background: var(--secondary); color: #000; }
.user-role.user { background: rgba(255,255,255,0.1); }

.terminal-admin { background: #000; border: 2px solid var(--warning); border-radius: 15px; padding: 20px; min-height: 400px; max-height: 600px; overflow-y: auto; font-family: 'VT323', monospace; color: var(--warning); }
.terminal-admin .prompt { color: var(--warning); }
.terminal-admin .output { color: #aaa; }
.terminal-admin-input { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.terminal-admin-input input { flex: 1; background: transparent; border: none; color: var(--warning); font-family: 'VT323', monospace; font-size: 1.1rem; outline: none; }

.admin-toggle { position: relative; display: inline-block; width: 50px; height: 26px; }
.admin-toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #333; transition: 0.3s; border-radius: 50px; }
.toggle-slider::before { position: absolute; content: ''; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; transition: 0.3s; border-radius: 50%; }
.admin-toggle input:checked + .toggle-slider { background: var(--warning); }
.admin-toggle input:checked + .toggle-slider::before { transform: translateX(24px); }

.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.setting-row .info { flex: 1; }
.setting-row .title { font-weight: 700; }
.setting-row .desc { color: #888; font-size: 0.85rem; }

.admin-chart { background: rgba(0,0,0,0.4); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.chart-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chart-bar .label { width: 100px; color: #aaa; font-size: 0.8rem; }
.chart-bar .bar { flex: 1; height: 24px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.chart-bar .fill { height: 100%; background: linear-gradient(90deg, var(--warning), var(--primary)); display: flex; align-items: center; padding: 0 10px; color: #000; font-weight: bold; font-size: 0.75rem; transition: width 0.8s; }

@media (max-width: 968px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text p { margin: 0 auto 30px; }
  .hero-stats { justify-content: center; }
  .cta-group { justify-content: center; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text h1 .accent { font-size: 2.8rem; }
  .nav-links { display: none; }
  section { padding: 70px 20px; }
  .navbar { padding: 15px 20px; }
  .skin-tag.tag-1 { left: 0; top: 5%; }
  .skin-tag.tag-2 { right: 0; bottom: 15%; }
  .skin-tag.tag-3 { display: none; }
  .section-title h2 { font-size: 1.3rem; }
  .music-player .music-info { display: none; }
  .inventory { grid-template-columns: repeat(9, 45px); }
  .inv-slot { width: 45px; height: 45px; font-size: 1.3rem; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.twerk-mode * { animation: twerk 0.3s infinite !important; }
@keyframes twerk { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.rainbow-text { background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #00ffff, #0088ff, #8800ff, #ff0000); background-size: 200% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: rainbowShift 3s linear infinite; }
@keyframes rainbowShift { to { background-position: 200% 0; } }
/* ==========================================================================
   Ajouts portfolio — sections À propos / Compétences / Projets / Serveur
   ========================================================================== */

/* --- À propos --- */
.about-box { max-width: 850px; margin: 0 auto; display: flex; gap: 30px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 35px; backdrop-filter: blur(20px); }
.about-avatar { width: 96px; height: 96px; border-radius: 18px; image-rendering: pixelated; border: 2px solid var(--primary); flex-shrink: 0; }
.about-box p { color: #bbb; line-height: 1.8; font-size: 1rem; }

/* --- Stat non renseignee --- */
.stat-empty { opacity: 0.55; }
.stat-empty .num { color: #666; }

/* --- Statut d'un projet --- */
.status-badge { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: 20px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid; }
.status-badge.st-wip { color: var(--warning); border-color: var(--warning); background: rgba(255, 170, 0, 0.12); }
.status-badge.st-done { color: var(--primary); border-color: var(--primary); background: rgba(0, 255, 136, 0.12); }
.status-badge.st-exp { color: var(--secondary); border-color: var(--secondary); background: rgba(0, 212, 255, 0.12); }
.status-badge.st-idea { color: #888; border-color: #555; background: rgba(255, 255, 255, 0.05); }
.software-card { position: relative; }
.software-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.card-stats:empty { display: none; }

/* --- Modale projet --- */
.modal-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.modal-head h2 { color: var(--primary); font-size: 1.4rem; margin-bottom: 8px; }
.modal-head .status-badge { position: static; display: inline-block; }
.modal-desc { color: #bbb; line-height: 1.7; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.modal-note { color: #777; font-style: italic; font-size: 0.9rem; }

/* --- Competences --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; max-width: 1100px; margin: 0 auto; }
.skill-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 25px; backdrop-filter: blur(20px); transition: 0.3s; }
.skill-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.skill-head { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 18px; }
.skill-icon { font-size: 2rem; line-height: 1; }
.skill-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.skill-card p { color: #888; font-size: 0.82rem; line-height: 1.5; }
.skill-bar { height: 8px; background: rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
.skill-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 10px; transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }

/* --- Etiquette demo --- */
.demo-tag { display: inline-block; padding: 2px 10px; margin-right: 8px; border-radius: 20px; background: rgba(255, 170, 0, 0.15); border: 1px solid var(--warning); color: var(--warning); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* --- Serveur --- */
.server-label { color: #888; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.server-meta { margin-top: 10px; color: #888; font-size: 0.85rem; }
.server-state { font-weight: 700; }
.server-state.online { color: var(--primary); }
.server-state.offline { color: var(--danger); }
.server-state.unknown { color: #777; }
.server-note { margin-top: 20px; color: #666; font-size: 0.8rem; line-height: 1.6; }

/* --- Liens sociaux non renseignes --- */
.social-link.disabled { opacity: 0.3; cursor: not-allowed; }
.social-link.disabled:hover { background: var(--card); color: var(--primary); transform: none; }

/* --- Palette de commandes --- */
.command-item.selected { background: rgba(0, 255, 136, 0.15); }
.command-item.empty { color: #666; justify-content: center; cursor: default; }

/* --- Pied de page --- */
.footer-meta { margin-top: 10px; font-size: 0.8rem; font-family: 'VT323', monospace; }

/* --- Menu mobile ---
   La CSS masquait .nav-links sous 968px sans bouton de remplacement :
   la navigation etait inaccessible au telephone. */
.burger { display: none; }

@media (max-width: 968px) {
  .burger { display: flex; }
  .about-box { flex-direction: column; text-align: center; padding: 25px; }

  .nav-links {
    display: flex;
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 0 20px;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  body.menu-open .nav-links { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 25px; font-size: 0.95rem; }
  .nav-links a::after { display: none; }

  .server-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .music-player { left: 10px; right: 10px; bottom: 10px; }
  .back-top { bottom: 90px; right: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* --- Correctifs de mise en page ------------------------------------------
   Le rendu de skin mc-heads fait 256x615 px : avec width:100% il etait
   agrandi a plus de 900 px de haut et debordait du hero. On ne l'agrandit
   plus au-dela de sa taille naturelle et on plafonne sa hauteur. */
.skin-img { width: auto; max-width: 100%; max-height: 430px; margin: 0 auto; display: block; }
.skin-stage { display: flex; justify-content: center; }
.skin-platform { bottom: 0; }

/* Les 4 chiffres du hero sur une grille reguliere plutot qu'un flex qui
   laissait la derniere carte occuper toute la largeur. */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hero-stats .stat { min-width: 0; }
@media (max-width: 1200px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* Le bandeau cookies passait sous le lecteur audio en bas de page. */
.cookie-banner { bottom: 90px; max-width: min(560px, calc(100% - 30px)); }
@media (max-width: 968px) { .cookie-banner { bottom: 110px; flex-direction: column; gap: 12px; text-align: center; } }

/* Le logo touchait le premier lien du menu sur les ecrans moyens. */
.navbar { gap: 30px; }
.nav-links { margin-left: auto; margin-right: 10px; }
@media (max-width: 1150px) { .nav-links { gap: 16px; } .nav-links a { font-size: 0.78rem; } }
