* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  background: #0a0a0a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  user-select: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

/* Start screen */
#start-screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 100;
  background: #0a0a0a;
}
#start-screen h1 {
  font-size: 2rem; font-weight: 300;
  letter-spacing: 0.3em; margin-bottom: 2rem;
  color: #fff;
}
#drop-zone {
  width: 300px; height: 180px;
  border: 2px dashed #333;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
  cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
}
#drop-zone:hover, #drop-zone.dragover {
  border-color: #555; background: #111;
}
#drop-zone svg { width: 40px; height: 40px; fill: #555; }
#drop-zone span { color: #555; font-size: 0.85rem; }
#file-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
#file-name {
  margin-top: 1rem; color: #444; font-size: 0.8rem;
  max-width: 300px; text-align: center;
}

/* Game */
#game {
  position: fixed; inset: 0; display: none;
}
canvas { display: block; width: 100%; height: 100%; }
#score {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem; font-weight: 200;
  letter-spacing: 0.2em; color: #fff;
  z-index: 10; pointer-events: none;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}
#combo {
  position: fixed; top: 55px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem; font-weight: 300;
  color: #666; z-index: 10;
  pointer-events: none; letter-spacing: 0.15em;
}
#progress-bar {
  position: fixed; bottom: 0; left: 0;
  height: 3px; background: #fff;
  opacity: 0.3; z-index: 10;
  transition: width 0.3s linear;
}

/* Hit effect */
.hit-effect {
  position: fixed; pointer-events: none; z-index: 20;
  font-size: 1.2rem; font-weight: 300;
  animation: hitUp 0.6s ease-out forwards;
}
@keyframes hitUp {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-60px); }
}

/* Pause overlay */
#pause-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  display: none; align-items: center;
  justify-content: center; z-index: 50;
  flex-direction: column; gap: 1rem;
}
#pause-overlay.show { display: flex; }
#pause-overlay p { font-size: 1.2rem; font-weight: 200; letter-spacing: 0.2em; color: #666; }
#pause-overlay button {
  background: none; border: 1px solid #333;
  color: #888; padding: 8px 24px; border-radius: 8px;
  cursor: pointer; font-size: 0.85rem; letter-spacing: 0.1em;
  transition: all 0.2s;
}
#pause-overlay button:hover { border-color: #666; color: #fff; }

/* Mobile pause button */
#pause-btn {
  position: fixed; top: 16px; right: 16px;
  z-index: 10; background: none; border: none;
  color: #444; font-size: 1.4rem; cursor: pointer;
  padding: 8px; line-height: 1;
}

/* Mobile lane touch zones */
#touch-zones {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 160px; display: none; z-index: 5;
}
.touch-zone {
  flex: 1; border: none; background: transparent;
  position: relative; overflow: hidden;
}
.touch-zone::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.04);
  border-left: 1px solid #1a1a1a;
  pointer-events: none;
}
.touch-zone:first-child::after { border-left: none; }
.touch-zone:active { background: rgba(255,255,255,0.08); }

/* Mobile: show touch zones, hide pause on desktop */
@media (hover: none) and (pointer: coarse) {
  #touch-zones { display: flex; }
  #pause-btn { display: block; }
}
@media (hover: hover) and (pointer: fine) {
  #pause-btn { display: none; }
}

/* Responsive start screen */
@media (max-width: 480px) {
  #start-screen h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }
  #drop-zone { width: 260px; height: 150px; }
}
