:root {
  --nyan-gold: #ffd700;
  --nyan-blue: #00ccff;
  --nyan-red: #ff3366;
  --glass: rgba(0, 0, 0, 0.8);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: #121212; color: #fff;
  overflow: hidden; height: 100vh;
}

#app {
  width: 100vw; height: 100vh;
  background: url('bg.png') center/cover no-repeat;
  display: flex; flex-direction: column; position: relative;
}

#app::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 1;
}

.back-link {
  position: absolute; top: 15px; left: 15px; z-index: 100;
  color: var(--nyan-blue); text-decoration: none; font-weight: 800;
  text-shadow: 0 0 10px var(--nyan-blue);
}

/* Game UI */
.game-ui {
  position: relative; z-index: 10;
  display: flex; justify-content: space-between; padding: 20px;
  background: linear-gradient(to bottom, var(--glass), transparent);
}

.stats { display: flex; gap: 20px; font-weight: 900; font-size: 1.2rem; }
.stat-item { text-shadow: 0 0 10px #fff; }

.tower-shop { display: flex; gap: 10px; }
.shop-btn {
  background: var(--glass); border: 2px solid var(--nyan-blue);
  color: #fff; padding: 10px 15px; border-radius: 10px;
  cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center;
}

.shop-btn.active { background: var(--nyan-blue); color: #000; box-shadow: 0 0 20px var(--nyan-blue); }
.shop-btn .cost { font-size: 0.7rem; font-weight: 900; }

/* Canvas Area */
#canvas-container {
  flex: 1; position: relative; z-index: 5;
  display: flex; justify-content: center; align-items: center;
}

canvas {
  background: rgba(0, 0, 0, 0.3); border-radius: 20px;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

/* Overlay */
.overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glass); z-index: 100;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  backdrop-filter: blur(10px);
}

.overlay h2 { font-size: 3rem; margin-bottom: 20px; color: var(--nyan-red); text-shadow: 0 0 20px var(--nyan-red); }
.overlay button {
  background: var(--nyan-gold); color: #000; border: none;
  padding: 15px 40px; border-radius: 30px; font-weight: 900; cursor: pointer;
}

.hidden { display: none; }


/* --- GLOBAL NYANTREPRENEUR OVERRIDES --- */
.back-link, .hub-btn {
  position: absolute !important; top: 15px !important; left: 15px !important; z-index: 9999 !important;
  background: rgba(18, 18, 18, 0.8) !important; color: #ffd700 !important;
  padding: 8px 16px !important; border-radius: 20px !important; font-weight: 800 !important;
  text-decoration: none !important; font-size: 0.8rem !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
  transition: all 0.2s ease !important;
}
