@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Quicksand:wght@500;700&display=swap');

:root {
  --bg-deep: #121020;
  --pink-accent: #FF80AB;
  --matcha-accent: #A8E6CF;
  --lavender-accent: #B39DDB;
  --amber-accent: #FFE082;
  --cyan-accent: #80DEEA;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
}

#gameCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background-color: #121020;
  z-index: 1;
}

/* Floating Top-Right Mini Control Bar */
.floating-controls {
  position: fixed;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  height: 50px;
}

.icon-btn {
  background: rgba(22, 18, 38, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 128, 171, 0.35);
  color: #fff;
  border-radius: 12px;
  padding: 0 14px;
  height: 42px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.icon-btn:hover {
  background: rgba(255, 128, 171, 0.25);
  border-color: var(--pink-accent);
  transform: translateY(-2px);
}

.icon-btn:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .icon-btn span {
    display: none;
  }
  .icon-btn {
    padding: 0 10px;
    font-size: 15px;
  }
}

/* Floating Bottom Controls Pill */
.bottom-hints {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 16, 36, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(179, 157, 219, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--lavender-accent);
  z-index: 10;
  pointer-events: none;
  letter-spacing: 0.5px;
}

.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--pink-accent);
  color: #121020;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
