* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d0d1a;
  font-family: system-ui, -apple-system, sans-serif;
  touch-action: none;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #64b4ff;
  font-family: monospace;
  font-size: 13px;
  opacity: 0.7;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 0 8px rgba(100, 180, 255, 0.5);
}

.level-indicator {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #8a8a8a;
  font-family: monospace;
  font-size: 12px;
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.restart-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid #3a3a5a;
  border-radius: 50%;
  background: #1a1a2e;
  color: #64b4ff;
  font-size: 24px;
  font-family: monospace;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(100, 180, 255, 0.2);
}

.restart-btn:hover {
  border-color: #64b4ff;
  background: #2a2a4a;
  box-shadow: 0 0 24px rgba(100, 180, 255, 0.4);
}

.restart-btn:active {
  transform: translateX(-50%) scale(0.95);
}

@media (max-width: 480px) {
  .hint {
    font-size: 11px;
    bottom: 16px;
  }
  
  .level-indicator {
    font-size: 10px;
    top: 10px;
  }
  
  .restart-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    bottom: 16px;
  }
}

@media (max-height: 400px) and (orientation: landscape) {
  .hint {
    bottom: 8px;
    font-size: 10px;
  }
  
  .level-indicator {
    top: 6px;
    font-size: 9px;
  }
  
  .restart-btn {
    bottom: 8px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hint, .restart-btn {
    transition: none;
  }
}