@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background-color: #0b0f19;
  color: #f3f4f6;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 540px;
  max-height: 960px;
  aspect-ratio: 9 / 16;
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.15);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0b0f19;
}

canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Fallback & Loading Overlay styling if javascript is disabled or loading */
#loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.5s ease;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.brand-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ff3366;
  letter-spacing: 6px;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 242, 254, 0.1);
  border-radius: 50%;
  border-top-color: #00f2fe;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* Background scanlines for retro arcade look */
.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.06),
    rgba(0, 255, 0, 0.02),
    rgba(0, 0, 255, 0.06)
  );
  background-size: 100% 4px, 6px 100%;
  z-index: 10;
  pointer-events: none;
}

/* Mobile sizing updates */
@media (max-width: 540px) {
  #game-container {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
  }
}
