/* Boot Screen */
#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999999;
  transition: opacity 0.7s ease;
}

.boot-apple {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.boot-bar-track {
  width: 180px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: width 0.1s ease;
}


/* Spotlight */
#spotlight {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16vh;
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#spotlight.open {
  opacity: 1;
  pointer-events: all;
}

.spotlight-box {
  width: 600px;
  max-width: 90vw;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.5);
  overflow: hidden;
}

[data-theme="dark"] .spotlight-box {
  background: rgba(44,44,46,0.92);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
}

#spotlight-input {
  width: 100%;
  padding: 18px 22px;
  font-size: 22px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

#spotlight-input::placeholder { color: var(--text-secondary); opacity: 0.5; }

#spotlight-results { padding: 6px 0; }

.spot-result {
  padding: 11px 22px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.1s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.spot-result::before {
  content: '⌘';
  font-size: 13px;
  opacity: 0.3;
}

.spot-result:hover,
.spot-result:first-child {
  background: rgba(0,113,227,0.1);
  color: #0071e3;
}

[data-theme="dark"] .spot-result:hover,
[data-theme="dark"] .spot-result:first-child {
  background: rgba(76,168,255,0.15);
  color: #4ca8ff;
}


/* Konami */
#konami-msg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999997;
  animation: fadeIn 0.3s ease;
}

.konami-inner {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  width: 90vw;
  border: 1px solid rgba(255,255,255,0.6);
}

[data-theme="dark"] .konami-inner {
  background: rgba(40,40,40,0.97);
  border-color: rgba(255,255,255,0.1);
}

.konami-emoji { font-size: 52px; line-height: 1; }

.konami-inner h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.konami-inner p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.konami-inner button {
  margin-top: 6px;
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  background: #0071e3;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.konami-inner button:hover { background: #005bbf; }


/* Kernel Panic */
#kernel-panic {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: fadeIn 0.4s ease;
  transition: opacity 0.8s ease;
}

.panic-content {
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  padding: 0 24px;
}

.panic-content > p:first-child {
  font-size: 18px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.panic-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.panic-langs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}


/* Shared */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}