* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

@keyframes bootLogo {
  0% { opacity: 0; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes bootDots {
  0%, 20% { opacity: 0.3; }
  50% { opacity: 1; }
  80%, 100% { opacity: 0.3; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes notification {
  0% { transform: translateX(120%); }
  10% { transform: translateX(0); }
  90% { transform: translateX(0); }
  100% { transform: translateX(120%); }
}

@keyframes lockPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.boot-logo {
  width: 80px;
  height: 80px;
  animation: bootLogo 1.5s ease-out;
}

.boot-dots {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.boot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.boot-dot:nth-child(1) { animation: bootDots 1.2s infinite 0s; }
.boot-dot:nth-child(2) { animation: bootDots 1.2s infinite 0.2s; }
.boot-dot:nth-child(3) { animation: bootDots 1.2s infinite 0.4s; }
.boot-dot:nth-child(4) { animation: bootDots 1.2s infinite 0.6s; }
.boot-dot:nth-child(5) { animation: bootDots 1.2s infinite 0.8s; }

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.lock-screen.dismissing {
  transform: translateY(-100%);
  opacity: 0;
}

.acrylic {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.acrylic-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.acrylic-dark {
  background: rgba(32, 32, 32, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.window-shadow {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.taskbar-shadow {
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.start-menu-animation {
  animation: slideUp 0.2s ease-out;
}

.context-menu-animation {
  animation: slideDown 0.15s ease-out;
}

.widget-animation {
  animation: slideInLeft 0.3s ease-out;
}

.notification-animation {
  animation: notification 5s ease-in-out forwards;
}

.window-titlebar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
  background: #e81123 !important;
  color: white !important;
}

.taskbar-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.resize-handle {
  position: absolute;
  z-index: 10;
}

.resize-handle-e { right: 0; top: 0; width: 6px; height: 100%; cursor: e-resize; }
.resize-handle-s { bottom: 0; left: 0; width: 100%; height: 6px; cursor: s-resize; }
.resize-handle-se { right: 0; bottom: 0; width: 12px; height: 12px; cursor: se-resize; }
.resize-handle-w { left: 0; top: 0; width: 6px; height: 100%; cursor: w-resize; }
.resize-handle-n { top: 0; left: 0; width: 100%; height: 6px; cursor: n-resize; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #0f0;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.calc-btn {
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-btn:active {
  transform: scale(0.95);
}

/* Dungeon crawl game styles */
@keyframes dungeonGlow {
  0%, 100% { text-shadow: 0 0 5px #0f0, 0 0 10px #0f0; }
  50% { text-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0; }
}

@keyframes xpStartup {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.4);
  border-radius: 3px;
}