:root { --neon: #00f3ff; --gold: #FFD700; --void: #030303; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; padding: 0; background: var(--void); color: white; font-family: 'Rajdhani', sans-serif; overflow: hidden; user-select: none; }

/* BACKGROUND */
.bg-mesh { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% -20%, #1a1a1a, #000); z-index: 0; pointer-events: none; }

/* APP SHELL */
#app-shell { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; z-index: 10; transition: 0.5s; }
header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: 'Anton'; font-size: 1.8rem; color: var(--neon); letter-spacing: 2px; }
.user-badge { padding: 5px 12px; background: rgba(255,255,255,0.1); border-radius: 50px; font-size: 0.8rem; }

/* LIST */
.scroll-view { flex: 1; overflow-y: auto; padding: 10px 20px 160px 20px; }
.section-label { font-family: 'Anton'; color: #444; margin: 20px 0 10px 5px; }
.track-card { display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 15px; padding: 12px; margin-bottom: 10px; background: rgba(255,255,255,0.03); border-radius: 16px; transition: 0.2s; }
.track-card:active { background: rgba(255,255,255,0.08); transform: scale(0.98); }
.track-card.active { border: 1px solid rgba(0,243,255,0.3); background: linear-gradient(90deg, rgba(0,243,255,0.1), transparent); }
.art { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #222; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { font-size: 1.5rem; color: #444; }

/* MINI PLAYER */
.player-float { position: fixed; bottom: 30px; left: 20px; right: 20px; height: 80px; background: rgba(15,15,15,0.95); backdrop-filter: blur(20px); border: 1px solid #333; border-radius: 24px; z-index: 100; display: flex; align-items: center; padding: 0 10px; box-shadow: 0 20px 50px black; transition: 0.4s; }
.hidden { transform: translateY(200px); }
.p-art { width: 60px; height: 60px; border-radius: 16px; overflow: hidden; margin-right: 15px; }
.p-art img { width: 100%; height: 100%; object-fit: cover; }
.p-info { flex: 1; overflow: hidden; }
.p-info h4 { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-info p { margin: 0; font-size: 0.8rem; color: var(--neon); }
.p-actions { display: flex; gap: 10px; }
.p-btn { font-size: 1.8rem; width: 45px; height: 45px; background: white; color: black; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* LAUNCHERS */
.mode-pill { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.sre { border: 1px solid var(--neon); color: var(--neon); background: rgba(0,243,255,0.1); }
.mri { border: 1px solid var(--gold); color: var(--gold); background: rgba(255,215,0,0.1); }

/* ENGINES */
#sre-layer, #mrigangini-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 200; opacity: 0; pointer-events: none; transition: 0.5s; background: black; }
#sre-canvas { width: 100%; height: 100%; }
#mrigangini-layer { display: flex; flex-direction: column; justify-content: center; align-items: center; background: radial-gradient(circle, #1a1a00, black); }

.engine-hud { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; padding: 40px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.hud-top { display: flex; justify-content: space-between; pointer-events: auto; align-items: center; }
.exit-btn { padding: 8px 20px; border: 1px solid var(--neon); color: var(--neon); border-radius: 50px; background: rgba(0,0,0,0.6); font-family: 'Anton'; }
.mri-exit { border-color: var(--gold); color: var(--gold); }

/* SRE HUD */
.sre-center { text-align: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.sre-val { font-family: 'Anton'; font-size: 5rem; text-shadow: 0 0 30px var(--neon); opacity: 0; transition: 0.2s; }
.sre-lbl { letter-spacing: 5px; color: var(--neon); opacity: 0; transition: 0.2s; }
.visible { opacity: 1 !important; }
.timeline-rail { width: 100%; height: 2px; background: #333; margin-top: 20px; }
.timeline-fill { width: 0%; height: 100%; background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.hint { font-size: 0.7rem; color: #555; text-align: center; letter-spacing: 2px; }

/* ARTIFACT CARD */
.artifact-wrapper { perspective: 1000px; }
.artifact-card { width: 80vw; height: 80vw; max-width: 400px; max-height: 400px; background: black; border: 1px solid var(--gold); box-shadow: 0 0 40px rgba(255,215,0,0.1); position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform 0.1s; }
.artifact-img { width: 100%; height: 100%; object-fit: cover; }
.artifact-scan { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, rgba(255,215,0,0.3), transparent); background-size: 100% 200%; animation: scan 3s infinite linear; }
@keyframes scan { 0% {background-position: 0% 0%;} 100% {background-position: 0% 200%;} }
.artifact-overlay { position: absolute; bottom: 0; width: 100%; padding: 20px; background: linear-gradient(to top, black, transparent); }
.artifact-type { font-family: 'Anton'; color: var(--gold); font-size: 0.8rem; }
.artifact-name { font-family: 'Rajdhani'; font-weight: 700; font-size: 1.5rem; }

/* STATES */
body.mode-sre #app-shell { opacity: 0; pointer-events: none; transform: scale(1.1); filter: blur(10px); }
body.mode-sre #sre-layer { opacity: 1; pointer-events: auto; }
body.mode-mri #app-shell { opacity: 0; pointer-events: none; transform: scale(0.9); filter: blur(10px); }
body.mode-mri #mrigangini-layer { opacity: 1; pointer-events: auto; }
