/* ========================================================= */
/* KAYWAT BRAND CORE DESIGN SYSTEM & GLOBAL STYLES          */
/* ========================================================= */

:root {
  --bg-dark: #050508;
  --terminal-green: #00ff66;
  --kaywat-green: #22c55e;
  --kaywat-green-glow: #00ff66;
  --kaywat-blue: #0088ff;
  --kaywat-dark-card: #09090c;
  --card-bg: rgba(12, 12, 16, 0.95);
  --card-border: #27272a;
  --accent-border: #22c55e;
  --text-main: #ffffff;
  --text-sub: #a1a1aa;
  --font-pixel: 'Press Start 2P', monospace;
  --font-silk: 'Silkscreen', cursive;
  --font-terminal: 'VT323', monospace;
  --font-main: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  user-select: none;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}


body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-main);
  color: var(--text-main);
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  z-index: 1;
}

.screen.active {
  display: flex;
}

/* CRT Overlay Effect */
.crt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(5, 5, 8, 0) 50%, rgba(0, 0, 0, 0.3) 50%), linear-gradient(90deg, rgba(34, 197, 94, 0.02), rgba(0, 255, 102, 0.01), rgba(0, 255, 136, 0.02));
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

body.lofi-studio-active .crt-overlay,
body:has(#screen-lofi.active) .crt-overlay {
  display: none !important;
}


/* Common Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
