* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #0a0a1a;
  color: #ffffff;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a1a; }
::-webkit-scrollbar-thumb { background: #1428a0; border-radius: 3px; }

.bg-pattern {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(20, 40, 160, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(3, 78, 162, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(20, 40, 160, 0.04) 0%, transparent 50%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(20, 40, 160, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(20, 40, 160, 0.2);
}

.timeline-line {
  background: linear-gradient(90deg, transparent, #1428a0 10%, #034ea2 50%, #1428a0 90%, transparent);
  height: 2px;
}

.glow-node {
  box-shadow: 0 0 12px rgba(20, 40, 160, 0.6), 0 0 24px rgba(20, 40, 160, 0.3);
}

.era-banner {
  background: linear-gradient(135deg, rgba(20, 40, 160, 0.3), rgba(3, 78, 162, 0.15));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(20, 40, 160, 0.4);
}

.samsung-blue-gradient {
  background: linear-gradient(135deg, #1428a0, #034ea2);
}

.slide-in-right {
  animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.emulator-boot {
  animation: bootPulse 1.5s ease-in-out;
}
@keyframes bootPulse {
  0% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

.ripple-effect {
  background: radial-gradient(circle, rgba(20, 40, 160, 0.3) 0%, transparent 70%);
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.minimap-viewport {
  border: 2px solid #1428a0;
  background: rgba(20, 40, 160, 0.2);
  transition: left 0.1s ease;
}

.category-tab {
  transition: all 0.2s ease;
}
.category-tab.active {
  color: #ffffff;
  border-bottom: 2px solid #1428a0;
  transform: scale(1.05);
}
.category-tab:not(.active) {
  color: #b0b0c0;
  border-bottom: 2px solid transparent;
}

.region-pill {
  transition: all 0.2s ease;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}
.region-pill.active {
  background: #1428a0;
  border-color: #1428a0;
  color: white;
}
.region-pill:not(.active) {
  background: rgba(255,255,255,0.05);
  color: #b0b0c0;
}

.olympic-badge { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; }
.korea-badge { background: linear-gradient(135deg, #ff4444, #cc2222); color: #fff; }
.china-badge { background: linear-gradient(135deg, #ff8c00, #cc6600); color: #fff; }

.emulator-screen {
  image-rendering: pixelated;
}

.device-image-container {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a2e, #0a0a1a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: #1428a0;
  box-shadow: 0 0 0 3px rgba(20, 40, 160, 0.2);
}
.search-input::placeholder { color: #666; }

.filter-pill {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #b0b0c0;
  transition: all 0.2s;
}
.filter-pill.active {
  background: #1428a0;
  border-color: #1428a0;
  color: white;
}

.sidebar-content {
  animation: sidebarSlide 0.3s ease-out;
}
@keyframes sidebarSlide {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Emulator specific */
.emu-feature-phone-screen {
  background: #2a3a1a;
  color: #4a6a2a;
  font-family: 'IBM Plex Mono', monospace;
}
.emu-color-phone-screen {
  background: linear-gradient(180deg, #001133, #002266);
  color: white;
}
.emu-touchwiz-screen {
  background: linear-gradient(180deg, #1a2a4a, #0a1a3a);
}
.emu-oneui-screen {
  background: #121212;
}
.emu-winxp-screen {
  background: linear-gradient(180deg, #235ddc, #3a7bff);
}

.horizontal-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.horizontal-scroll-container::-webkit-scrollbar { display: none; }
.horizontal-scroll-container:active { cursor: grabbing; }

@media (max-width: 768px) {
  .horizontal-scroll-container {
    overflow-x: hidden;
    overflow-y: auto;
  }
}