* {
  box-sizing: border-box;
}

/* 🔥 Background */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;

  background: radial-gradient(circle at top, #fff3e0, #ffb347, #ff6a00);

  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* 🎮 App container */
.app {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  text-align: center;
}

/* 🔥 Logo wrapper (true centering) */
.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* 🔥 HERO LOGO */
.logo {
  width: 100%;
  max-width: 620px;
  height: auto;

  /* 🔧 visual centering adjustment */
  transform: translateX(-6px);

  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));
  margin-bottom: 18px;

  transition: transform 0.2s ease, filter 0.2s ease;
}

/* 🎵 Animate with music */
.logo.playing {
  animation: logoPulse 0.6s infinite ease-in-out;
  filter: drop-shadow(0 12px 28px rgba(255, 90, 0, 0.6));
}

@keyframes logoPulse {
  0%   { transform: translateX(-6px) scale(1) rotate(0deg); }
  25%  { transform: translateX(-6px) scale(1.03) rotate(-1deg); }
  50%  { transform: translateX(-6px) scale(1.08) rotate(1deg); }
  75%  { transform: translateX(-6px) scale(1.03) rotate(-1deg); }
  100% { transform: translateX(-6px) scale(1) rotate(0deg); }
}

/* Optional: hide text since logo replaces it */
h1,
.subtitle {
  display: none;
}

/* 🎯 Game card */
.card {
  background: white;
  padding: 24px;
  border-radius: 18px;

  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  border: 3px solid #ff7a00;
}

/* Labels */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #5a1e00;
}

/* Input */
input {
  width: 120px;
  padding: 10px;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 18px;

  border-radius: 8px;
  border: 2px solid #ff7a00;
}

/* Buttons container */
.buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Base button */
button {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;

  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* 🔥 Start button */
#startBtn {
  background: linear-gradient(145deg, #ff8c00, #ff4d00);
  color: white;
  box-shadow: 0 5px 0 #c43c00;
}

#startBtn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #c43c00;
}

/* ⛔ Stop button */
#stopBtn {
  background: #333;
  color: white;
  box-shadow: 0 5px 0 #111;
}

#stopBtn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #111;
}

/* Status text */
#status {
  font-size: 1.2rem;
  font-weight: 800;
  color: #d62800;
  margin-bottom: 8px;
}

/* Hide timer text */
.muted {
  display: none;
}

/* 📱 Mobile optimization */
@media (max-width: 768px) {
  .app {
    padding-top: 12px;
  }

  .logo {
    width: 96%;
    max-width: none;

    /* slight adjustment for mobile */
    transform: translateX(-4px);

    margin-bottom: 14px;
  }

  .card {
    padding: 20px;
  }
}