/* ============================================================
   GLOBAL STYLES — shared across all Lumikode pages
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #0f0f23;
  color: #e8e6e0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(255,215,0,0.3); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a14; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a84c, #2d6a4f);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffd700, #00e676); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -16; }
}
@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
  50% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes compass-point {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-50%, -50%) rotate(15deg); }
}
@keyframes pulse-brain {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes node-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
@keyframes pulse-code {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
@keyframes glow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes shine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: #ffd700; color: #0a0a14;
  padding: 8px 14px; border-radius: 4px;
  text-decoration: none; font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 8px; }

button { font: inherit; }
input, textarea {
  font: inherit;
  font-family: 'DM Sans', sans-serif;
}
textarea {
  font-family: 'DM Sans', sans-serif !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

#app:empty::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,215,0,0.08), transparent 60%),
    #0f0f23;
}
#app:empty::after {
  content: 'LUMIKODE';
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Cinzel', serif; font-size: 1.5rem; letter-spacing: 0.5em;
  color: #ffd700; opacity: 0.4;
  animation: blink 1.5s ease-in-out infinite;
}
