:root {
  --bg: #000;
  --text: #fff;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 1, 0.3, 1);
  --glass-bg: rgba(20, 20, 25, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
.screen {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s var(--ease);
  will-change: opacity;
}
.screen.active { opacity: 1; pointer-events: auto; }
#toast-container {
  position: fixed; top: 40px; right: 40px; z-index: 9000;
  display: flex; flex-direction: column; gap: 15px; pointer-events: none;
}
.ui-toast {
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: white; padding: 15px 25px; border-radius: 12px;
  font-size: 16px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  transform: translateX(120%); opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.ui-toast.show { transform: translateX(0); opacity: 1; }
.ui-toast svg { width: 20px; height: 20px; fill: white; }

#boot-screen {
  background: #000; display: flex; align-items: center;
  justify-content: center; flex-direction: column; z-index: 1000;
}
.boot-logo {
  position: absolute; opacity: 0; width: 400px;
  object-fit: contain; will-change: opacity, transform, filter;
}
#sony-logo {
  transform: scale(0.95); filter: blur(8px);
  transition: opacity 1.5s ease, transform 2.5s ease, filter 1.5s ease;
}
#sony-logo.show { opacity: 1; transform: scale(1); filter: blur(0); }
#ps-logo {
  transform: scale(1.05); filter: blur(15px);
  transition: opacity 1.5s ease, transform 3s var(--ease-out), filter 1.5s ease;
}
#ps-logo.show { opacity: 1; transform: scale(1); filter: blur(0); }

#login-screen {
  background: linear-gradient(145deg, #060a14, #000);
  z-index: 500; display: flex; align-items: center;
  justify-content: center; flex-direction: column;
}
#particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
#login-content {
  position: absolute; z-index: 10; text-align: center;
  top: 15%; left: 50%; transform: translateX(-50%);
  width: 100%;
}
#controller-prompt {
  transition: opacity 0.5s ease; display: flex;
  flex-direction: column; align-items: center; cursor: pointer;
}
#controller-prompt.hidden { opacity: 0; pointer-events: none; position: absolute; }
.prompt-icon {
  animation: float 4s ease-in-out infinite;
  margin-bottom: 20px; opacity: 0.9;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.toast {
  background: rgba(255, 255, 255, 0.08); padding: 15px 35px;
  border-radius: 40px; backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border); font-size: 18px;
  display: inline-block; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap");

#user-selection { transition: opacity 0.5s ease; }
#user-selection.hidden { opacity: 0; pointer-events: none; position: absolute; }
#user-selection h2 { 
  font-family: 'Manrope', sans-serif;
  font-weight: 400; font-size: 42px; margin-bottom: 50px; letter-spacing: -0.5px; 
}

.user-cards-container {
  display: flex; gap: 40px; justify-content: center; align-items: center;
}

.user-card {
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  transition: transform 0.3s var(--ease-out);
}
.user-card img, .add-profile-icon {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  border: 4px solid transparent; transition: all 0.3s var(--ease-out);
}
.add-profile-icon {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
  border: 4px solid rgba(255, 255, 255, 0.1);
}
.add-profile-icon svg {
  width: 60px; height: 60px; opacity: 0.7; transition: opacity 0.3s ease;
}
.user-card.active img, .user-card:hover .add-profile-icon {
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}
.user-card:hover .add-profile-icon svg { opacity: 1; }
.user-card .name {
  margin-top: 20px; font-size: 22px; font-weight: 500; opacity: 0.7;
  font-family: 'Manrope', sans-serif; transition: opacity 0.3s ease;
}
.user-card.active .name, .user-card:hover .name { opacity: 1; font-weight: 600; }

.controller-container {
  position: absolute; bottom: 5vh; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  z-index: 1; pointer-events: none;
  width: 90vw; max-width: 600px;
  animation: container-breathe 6s ease-in-out infinite;
}
@keyframes container-breathe {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}
.dualsense-img {
  position: relative; width: 100%; height: auto;
  z-index: -1; pointer-events: none; opacity: 0;
  animation: ds-reveal 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 1.5s;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}
@keyframes ds-reveal {
  0% { clip-path: circle(0% at 50% 50%); opacity: 0; }
  10% { opacity: 1; }
  100% { clip-path: circle(150% at 50% 50%); opacity: 1; }
}
.controller-pulse {
  position: absolute; z-index: 0;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 20px rgba(255,255,255,0.8), inset 0 0 20px rgba(255,255,255,0.5);
  opacity: 0;
  animation: premium-sonar 3s cubic-bezier(0.1, 0.5, 0.1, 1) infinite;
  animation-delay: 2s;
}
@keyframes premium-sonar {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; border-width: 4px; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; border-width: 0px; }
}
.controller-ps-btn {
  position: absolute; z-index: 4;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  animation: ps-btn-reveal 1s ease forwards, ps-btn-glow 3s ease-in-out infinite 2s;
  animation-delay: 2s;
}
.controller-ps-btn svg {
  width: 30px; height: 30px; 
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
}
@keyframes ps-btn-reveal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes ps-btn-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.8)); transform: translate(-50%, -50%) scale(1); }
  50% { filter: drop-shadow(0 0 25px rgba(255,255,255,1)); transform: translate(-50%, -50%) scale(1.1); }
}

#home-screen { z-index: 100; }
.bg-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: #000; }
.bg-slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.6s ease-in-out;
}
.bg-slide.active { opacity: 0.85; }
.bg-gradient {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.95) 100%);
  pointer-events: none;
}

.top-bar {
  position: absolute; top: 40px; left: 80px; right: 80px;
  display: flex; justify-content: space-between; align-items: center; z-index: 100;
}
.top-left { display: flex; gap: 35px; }
.tab {
  font-size: 22px; font-weight: 600; color: rgba(255,255,255,0.4);
  cursor: pointer; position: relative; transition: color 0.3s ease; letter-spacing: -0.5px;
}
.tab:hover { color: rgba(255,255,255,0.8); }
.tab.active { color: white; }
.tab.active::after {
  content: ''; position: absolute; bottom: -10px; left: 0; right: 0;
  height: 3px; background: white; border-radius: 3px;
}
.top-right { display: flex; align-items: center; gap: 20px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex;
  align-items: center; justify-content: center;
  backdrop-filter: blur(15px); border: 1px solid var(--glass-border);
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.icon-btn svg {
  width: 22px; height: 22px; stroke: white; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.user-pill {
  display: flex; align-items: center; gap: 15px;
  background: rgba(255,255,255,0.1); padding: 6px 24px 6px 6px;
  border-radius: 40px; backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.user-pill:hover { background: rgba(255,255,255,0.2); transform: scale(1.02); }
.user-pill img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.time { font-weight: 600; font-size: 16px; }

#game-row-container {
  position: absolute; top: 130px; left: 80px; right: 0;
  height: 160px; overflow: visible; z-index: 50;
  transition: opacity 0.4s ease;
  pointer-events: auto;
}
#game-row {
  display: flex; align-items: center; gap: 25px; height: 100%;
  transition: transform 0.3s var(--ease-out);
}
.game-card {
  width: 100px; height: 100px; border-radius: 20px;
  background-size: cover; background-position: center;
  flex-shrink: 0; cursor: pointer; opacity: 0.6;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover { opacity: 0.9; }
.game-card.active {
  transform: scale(1.35); opacity: 1;
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 25px rgba(255,255,255,0.15);
  z-index: 10;
}

#game-info-container {
  position: absolute; top: 320px; left: 80px; right: 80px; bottom: 80px;
  z-index: 55; transition: opacity 0.4s ease;
  overflow: visible;
}
#game-info-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1; transform: translateY(0);
  display: flex; flex-direction: column; height: 100%;
  overflow: visible;
}
#game-info-content.fade-out { opacity: 0; transform: translateY(15px); }
#game-title {
  font-size: 46px; font-weight: 700; letter-spacing: -1.5px;
  margin-bottom: 8px; text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
#game-play-time {
  font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.6);
  margin-bottom: 30px; display: flex; align-items: center; gap: 8px;
}
#game-play-time svg { width: 16px; height: 16px; fill: currentColor; }
.actions { display: flex; gap: 15px; margin-bottom: 40px; }
.btn-play {
  background: white; color: black; border-radius: 30px;
  padding: 14px 35px; font-size: 18px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 12px;
  border: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 30px rgba(255,255,255,0.15);
}
.btn-play:hover { transform: scale(1.04); background: #f0f0f0; }
.btn-play svg { width: 18px; height: 18px; fill: black; }
.btn-options {
  background: rgba(255,255,255,0.15); color: white;
  border-radius: 30px; padding: 14px 28px; font-size: 18px;
  font-weight: 600; display: inline-flex; align-items: center;
  border: 1px solid var(--glass-border); cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-options:hover { transform: scale(1.04); background: rgba(255,255,255,0.25); }

.activities-scroll {
  display: flex; gap: 20px; overflow-x: auto;
  padding-bottom: 40px; padding-top: 20px; margin-top: -20px;
  -ms-overflow-style: none; scrollbar-width: none;
  position: relative; z-index: 50;
}
.activities-scroll::-webkit-scrollbar { display: none; }
.activity-card {
  width: 280px; min-width: 280px; height: 180px; border-radius: 20px;
  background: var(--glass-bg); backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border); overflow: hidden;
  position: relative; display: flex; flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer; flex-shrink: 0;
}
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.3);
  z-index: 10;
}
.ac-bg {
  position: absolute; top: 0; left: 0; right: 0; height: 65%;
  background-size: cover; background-position: center;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}
.ac-content {
  position: relative; z-index: 2; padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.ac-header {
  font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,0.6);
  letter-spacing: 1.2px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px; font-weight: 600;
}
.ac-title { font-size: 18px; font-weight: 700; color: white; line-height: 1.2; }
.trophy-card .trophy-img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.5));
  margin-top: -15px;
}
.trophy-card .ac-content { justify-content: flex-end; }

.pc-hud {
  position: absolute; bottom: 40px; left: 80px;
  display: flex; gap: 20px; z-index: 1000;
  pointer-events: none; opacity: 0.5;
}
.pc-hud-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.pc-hud-key {
  background: rgba(255,255,255,0.15); padding: 4px 8px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.2);
  font-family: monospace; font-size: 11px;
}

.overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(15px);
  z-index: 3000; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; display: flex;
}
.overlay.active { opacity: 1; pointer-events: auto; }

#control-center-overlay { align-items: flex-end; justify-content: center; }
.control-center {
  background: rgba(15, 15, 20, 0.92); width: 90%; max-width: 1200px;
  height: 120px; margin-bottom: 40px; border-radius: 20px;
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; padding: 0 40px; gap: 30px;
  transform: translateY(100px);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
#control-center-overlay.active .control-center { transform: translateY(0); }
.cc-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.6); cursor: pointer; transition: color 0.2s;
}
.cc-item:hover { color: white; }
.cc-logout { margin-left: auto; }
.cc-icon {
  width: 50px; height: 50px; border-radius: 15px;
  background: rgba(255,255,255,0.05); display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.cc-item:hover .cc-icon { background: rgba(255,255,255,0.15); transform: scale(1.1); }
.cc-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.cc-icon-danger { background: rgba(255,50,50,0.15); color: #ff5555; }
.cc-item:hover .cc-icon-danger { background: rgba(255,50,50,0.3); }
.cc-label { font-size: 13px; font-weight: 500; }

#settings-overlay { align-items: center; justify-content: center; }
.settings-container {
  width: 80%; max-width: 1100px; height: 80vh;
  background: rgba(10, 10, 12, 0.92); border: 1px solid var(--glass-border);
  border-radius: 24px; display: flex; flex-direction: column;
  transform: scale(0.95); transition: transform 0.4s var(--ease-out);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8); overflow: hidden;
}
#settings-overlay.active .settings-container { transform: scale(1); }
.settings-header {
  padding: 30px 40px; border-bottom: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
}
.settings-header h2 { font-size: 32px; font-weight: 600; }
.settings-close {
  background: rgba(255,255,255,0.1); border: none; color: white;
  padding: 10px 20px; border-radius: 20px; cursor: pointer;
  font-weight: 500; font-family: inherit; font-size: 14px;
  transition: background 0.2s;
}
.settings-close:hover { background: rgba(255,255,255,0.2); }
.settings-body { display: flex; flex: 1; overflow: hidden; }
.settings-sidebar {
  width: 260px; border-right: 1px solid var(--glass-border);
  padding: 20px 0; overflow-y: auto;
}
.setting-tab {
  padding: 15px 40px; font-size: 16px; color: rgba(255,255,255,0.6);
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.setting-tab:hover { background: rgba(255,255,255,0.05); color: white; }
.setting-tab.active {
  background: rgba(255,255,255,0.1); color: white;
  border-left: 4px solid white; padding-left: 36px;
}
.settings-content { flex: 1; padding: 40px; overflow-y: auto; }
.setting-group { margin-bottom: 40px; }
.setting-group h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 20px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px;
}
.setting-item {
  padding: 15px 20px; background: rgba(255,255,255,0.05);
  margin-bottom: 10px; border-radius: 12px; cursor: pointer;
  transition: background 0.2s, transform 0.2s; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
}
.setting-item:hover { background: rgba(255,255,255,0.1); transform: translateX(5px); }
.setting-item::after { content: '›'; font-size: 24px; line-height: 1; color: rgba(255,255,255,0.4); }
.setting-item.no-arrow::after { content: none; }
.setting-item input[type="range"] { width: 150px; cursor: pointer; accent-color: white; }
.setting-item input[type="text"], .setting-item input[type="password"] {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2);
  color: white; padding: 8px 12px; border-radius: 6px;
  font-family: inherit; font-size: 14px; outline: none; width: 180px;
}
.setting-item input[type="text"]:focus, .setting-item input[type="password"]:focus {
  border-color: rgba(255,255,255,0.6);
}

#power-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #000; z-index: 9999;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  cursor: pointer; transition: opacity 0.8s ease;
  perspective: 1000px;
}
#power-particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.4;
}
.power-btn-container {
  position: relative; width: 160px; height: 160px;
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 50px; transform-style: preserve-3d;
  transition: transform 0.15s ease;
}
.power-btn-container:active { transform: scale(0.92) !important; }
.pulse-ring, .pulse-ring-2, .pulse-ring-3 {
  position: absolute; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.pulse-ring {
  width: 100%; height: 100%;
  border: 1px solid rgba(255,255,255,0.15);
  animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.pulse-ring-2 {
  width: 130%; height: 130%;
  border: 1px solid rgba(255,255,255,0.06);
  animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  animation-delay: 1s;
}
.pulse-ring-3 {
  width: 160%; height: 160%;
  border: 1px solid rgba(255,255,255,0.03);
  animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  animation-delay: 2s;
}
@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}
.power-icon {
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%; display: flex; justify-content: center; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 40px rgba(255,255,255,0.03);
  z-index: 2; transition: all 0.4s ease;
  position: relative; overflow: hidden; pointer-events: none;
}
.power-icon::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(transparent 0%, rgba(255,255,255,0.08) 10%, transparent 20%);
  animation: spin-slow 6s linear infinite;
}
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
.power-icon-inner {
  width: 96px; height: 96px; border-radius: 50%;
  background: #000; display: flex; justify-content: center; align-items: center;
  z-index: 3;
}
#power-overlay:hover .power-icon {
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 60px rgba(255,255,255,0.08), inset 0 0 30px rgba(255,255,255,0.05);
}
.power-icon svg {
  width: 40px; height: 40px; stroke: rgba(255,255,255,0.25);
  transition: stroke 0.4s ease, filter 0.4s ease;
}
#power-overlay:hover .power-icon svg {
  stroke: rgba(255,255,255,0.9);
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.5));
}
.power-text {
  color: rgba(255,255,255,0.3); font-size: 14px; font-weight: 500;
  letter-spacing: 6px; text-transform: uppercase;
  font-family: 'Inter', sans-serif; pointer-events: none;
  transition: color 0.4s ease;
}
#power-overlay:hover .power-text { color: rgba(255,255,255,0.7); }
.power-hint {
  color: rgba(255,255,255,0.1); font-size: 12px; font-weight: 400;
  letter-spacing: 2px; margin-top: 15px; pointer-events: none;
  animation: hint-pulse 3s ease-in-out infinite alternate;
}
@keyframes hint-pulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

#side-panel {
  position: fixed; top: 0; right: -380px; width: 360px; height: 100%;
  background: rgba(8, 8, 12, 0.95); backdrop-filter: blur(25px);
  border-left: 1px solid var(--glass-border);
  z-index: 5000; transition: right 0.4s var(--ease-out);
  display: flex; flex-direction: column; overflow-y: auto;
}
#side-panel.active { right: 0; }
.side-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px 25px 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
#side-panel-title { font-size: 22px; font-weight: 700; }
.side-panel-close {
  background: rgba(255,255,255,0.1); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.side-panel-close:hover { background: rgba(255,255,255,0.2); }
#side-panel-content { padding: 20px 25px; flex: 1; }
.side-list-item {
  padding: 15px; background: rgba(255,255,255,0.05);
  border-radius: 12px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 15px;
  transition: background 0.2s;
}
.side-list-item:hover { background: rgba(255,255,255,0.08); }
.side-list-item .text { font-size: 14px; color: rgba(255,255,255,0.85); }


#home-particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: 0.4;
}

#game-detail-overlay { align-items: center; justify-content: center; z-index: 4000; }
.game-detail {
  width: 85%; max-width: 1100px; height: 85vh;
  background: rgba(8, 8, 12, 0.95); border: 1px solid var(--glass-border);
  border-radius: 24px; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.5s var(--ease-out);
  box-shadow: 0 40px 80px rgba(0,0,0,0.9);
}
#game-detail-overlay.active .game-detail { transform: scale(1) translateY(0); }
.game-detail-close {
  position: absolute; top: 20px; right: 20px; z-index: 10;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
  color: white; width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  backdrop-filter: blur(10px); transition: background 0.2s;
}
.game-detail-close:hover { background: rgba(255,255,255,0.2); }
.game-detail-hero {
  width: 100%; height: 45%; background-size: cover; background-position: center top;
  position: relative;
}
.game-detail-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, rgba(8,8,12,0.95), transparent);
}
.game-detail-body {
  display: flex; flex: 1; padding: 0 40px 40px; gap: 40px; overflow-y: auto;
  margin-top: -60px; position: relative; z-index: 2;
}
.game-detail-left { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.game-detail-title { font-size: 36px; font-weight: 700; letter-spacing: -1px; }
.game-detail-meta { font-size: 14px; color: rgba(255,255,255,0.5); }
.game-detail-desc { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.gd-play { margin-top: 15px; width: fit-content; }
.game-detail-right {
  width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 15px;
}
.gd-stat {
  background: rgba(255,255,255,0.05); border-radius: 12px; padding: 15px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.gd-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.gd-stat-val { font-size: 16px; font-weight: 600; }
.gd-screenshots-label {
  font-size: 13px; color: rgba(255,255,255,0.5); text-transform: uppercase;
  letter-spacing: 1px; margin-top: 10px;
}
.gd-screenshots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gd-screenshots img {
  width: 100%; height: 80px; object-fit: cover; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.gd-screenshots img:hover { transform: scale(1.05); border-color: rgba(255,255,255,0.4); }

#shortcuts-overlay { align-items: center; justify-content: center; z-index: 6000; }
.shortcuts-container {
  background: rgba(10, 10, 15, 0.95); border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 50px 60px; max-width: 600px; width: 90%;
  transform: scale(0.9); transition: transform 0.4s var(--ease-out);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
#shortcuts-overlay.active .shortcuts-container { transform: scale(1); }
.shortcuts-container h2 {
  font-size: 28px; font-weight: 700; margin-bottom: 30px; text-align: center;
}
.shortcut-grid { display: flex; flex-direction: column; gap: 12px; }
.shortcut-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: rgba(255,255,255,0.04); border-radius: 10px;
  font-size: 15px;
}
.sc-key {
  background: rgba(255,255,255,0.1); padding: 6px 14px; border-radius: 8px;
  font-family: monospace; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15); min-width: 60px; text-align: center;
}
.shortcuts-hint {
  text-align: center; margin-top: 25px; font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.trophy-popup {
  position: fixed; top: 40px; left: 50%; transform: translateX(-50%) translateY(-120px);
  background: rgba(15, 15, 20, 0.92); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,215,0,0.3); border-radius: 16px;
  padding: 16px 30px; display: flex; align-items: center; gap: 15px;
  z-index: 8000; transition: transform 0.5s var(--ease-out), opacity 0.5s ease;
  opacity: 0; box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 30px rgba(255,215,0,0.1);
}
.trophy-popup.show {
  transform: translateX(-50%) translateY(0); opacity: 1;
}
.trophy-popup-icon { font-size: 32px; }
.trophy-popup-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,215,0,0.8); font-weight: 600;
}
.trophy-popup-name { font-size: 16px; font-weight: 600; margin-top: 2px; }

/* Add User Modal */
#add-user-overlay { align-items: center; justify-content: center; z-index: 200; }
.add-user-modal {
  background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(20px);
  padding: 40px; border-radius: 20px; border: 1px solid var(--glass-border);
  text-align: center; width: 90%; max-width: 450px;
  animation: slideUp 0.3s var(--ease-out);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.add-user-modal h2 { margin-top: 0; font-family: 'Manrope', sans-serif; font-weight: 400; margin-bottom: 30px; }
.add-user-modal input {
  width: 100%; padding: 15px 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5); color: #fff; font-size: 18px; margin-bottom: 30px; outline: none;
  font-family: 'Inter', sans-serif; transition: border-color 0.3s ease;
}
.add-user-modal input:focus { border-color: rgba(255,255,255,0.8); }
.avatar-selection {
  display: flex; gap: 20px; justify-content: center; margin-bottom: 40px;
}
.avatar-option {
  width: 70px; height: 70px; border-radius: 50%; object-fit: cover; cursor: pointer;
  border: 3px solid transparent; transition: all 0.2s var(--ease-out); opacity: 0.5;
}
.avatar-option:hover { opacity: 0.8; transform: scale(1.05); }
.avatar-option.selected { border-color: #fff; opacity: 1; transform: scale(1.15); box-shadow: 0 0 15px rgba(255,255,255,0.4); }
.modal-buttons { display: flex; gap: 15px; justify-content: flex-end; }
.modal-buttons button { padding: 12px 24px; border-radius: 8px; font-size: 16px; cursor: pointer; border: none; font-family: 'Inter', sans-serif; font-weight: 600; transition: all 0.2s; }
.btn-cancel { background: rgba(255,255,255,0.1); color: #fff; }
.btn-cancel:hover { background: rgba(255,255,255,0.2); }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e0e0e0; transform: scale(1.05); }
