* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden; background: #1a1a2e; font-family: 'Segoe UI', sans-serif; }
#canvas { display: block; }
#auth-screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); z-index: 100;
}
.auth-box {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  padding: 40px; width: 360px; text-align: center;
}
.auth-box h1 { color: #f0c040; font-size: 2rem; margin-bottom: 8px; text-shadow: 0 0 20px rgba(240,192,64,0.5); }
.auth-box p { color: #888; margin-bottom: 28px; font-size: 0.9rem; }
.auth-box input {
  width: 100%; padding: 12px 16px; margin-bottom: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; color: #fff; font-size: 1rem; outline: none; transition: border-color 0.2s;
}
.auth-box input:focus { border-color: #f0c040; }
.btn-primary {
  width: 100%; padding: 13px; background: linear-gradient(135deg, #f0c040, #e8a020);
  color: #1a1a2e; font-weight: 700; font-size: 1rem; border: none;
  border-radius: 10px; cursor: pointer; transition: transform 0.1s, opacity 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.9; }
.auth-toggle { color: #aaa; font-size: 0.85rem; margin-top: 16px; cursor: pointer; }
.auth-toggle span { color: #f0c040; text-decoration: underline; }
.auth-error { color: #ff6b6b; font-size: 0.85rem; margin-bottom: 10px; min-height: 18px; }
#hud {
  position: fixed; top: 0; left: 0; right: 0;
  display: none; align-items: center; gap: 16px;
  padding: 12px 20px; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); z-index: 50;
}
.hud-stat {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); border-radius: 20px; padding: 6px 14px; color: #fff; font-size: 0.9rem;
}
#hud-username { color: #f0c040; font-weight: 700; margin-left: auto; }
#toolbar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: none; gap: 10px; padding: 12px 20px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); z-index: 50;
}
.tool-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.08); border: 2px solid transparent;
  border-radius: 12px; padding: 10px 14px; color: #ccc; cursor: pointer;
  transition: all 0.2s; font-size: 0.75rem; min-width: 60px;
}
.tool-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.tool-btn.active { border-color: #f0c040; color: #f0c040; background: rgba(240,192,64,0.15); }
.tool-btn .t-icon { font-size: 1.4rem; }
#shop-panel {
  position: fixed; right: 20px; top: 70px;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
  padding: 20px; width: 240px; z-index: 50; display: none; color: #fff;
}
#shop-panel h3 { color: #f0c040; margin-bottom: 16px; }
.shop-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px; background: rgba(255,255,255,0.05); border-radius: 10px; margin-bottom: 8px;
}
.shop-item-price { color: #f0c040; font-size: 0.85rem; }
.shop-buy-btn {
  background: #f0c040; color: #1a1a2e; font-weight: 700;
  border: none; border-radius: 8px; padding: 5px 12px; cursor: pointer; font-size: 0.8rem;
}
#inv-panel {
  position: fixed; left: 20px; top: 70px;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
  padding: 20px; width: 200px; z-index: 50; display: none; color: #fff;
}
#inv-panel h3 { color: #f0c040; margin-bottom: 12px; }
.inv-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
#tooltip {
  position: fixed; pointer-events: none;
  background: rgba(0,0,0,0.85); color: #fff; padding: 8px 14px;
  border-radius: 10px; font-size: 0.85rem; z-index: 60;
  border: 1px solid rgba(255,255,255,0.15); display: none;
}
#notifs { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 80; }
.notif {
  background: rgba(0,0,0,0.85); color: #fff; padding: 8px 20px;
  border-radius: 20px; margin-bottom: 6px; font-size: 0.9rem;
  animation: fadeUp 0.3s ease; border-left: 3px solid #f0c040;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
