* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #FF4D00;
}

/* ── Logo ── */
#logo {
  position: fixed;
  top: 21px;
  left: 21px;
  z-index: 10;
}

/* ── Countdown ── */
#countdown-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#headline {
  color: #fff;
  font-family: 'TT Commons Pro', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 40px;
  text-align: center;
  user-select: none;
}
#illustration-container {
  position: relative;
  display: inline-block;
}
#illustration-container img {
  display: block;
  height: 160px;
  width: auto;
}
#countdown-number {
  position: absolute;
  left: 50.48%;
  top: 43.51%;
  transform: translate(-50%, -50%);
  color: #000000;
  font-family: 'TT Commons Pro', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 90px;
  line-height: 1;
  user-select: none;
}
#days-left {
  position: absolute;
  left: 50.48%;
  top: 72%;
  transform: translateX(-50%);
  color: #000;
  font-family: 'TT Commons Pro', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 10px;
  user-select: none;
}
#coming-soon {
  color: #fff;
  font-family: 'TT Commons Pro', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 8px;
  user-select: none;
}

/* ── Sound controls ── */
#sound-control {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  left: 22px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
}
#sound-control.hidden { display: none; }

#sound-toggle {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #000;
  flex-shrink: 0;
  transition: background 0.15s;
}
#sound-toggle:hover { background: #fff; }
#sound-toggle:active { transform: scale(0.95); }

#volume-slider-wrap {
  width: 0;
  height: 50px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: width 0.25s ease, opacity 0.25s ease, border-width 0.25s ease;
  opacity: 0;
  border-width: 0;
  display: flex;
  align-items: center;
  padding: 0;
}
#sound-control.expanded #volume-slider-wrap {
  width: 172px;
  opacity: 1;
  border-width: 2px;
  padding: 0 20px;
}

/* Range slider styling */
#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.15);
  outline: none;
  margin: 0;
}
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  border: none;
}
#volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  border: none;
}

/* Hide slider on touch devices — mute toggle only */
@media (hover: none) {
  #volume-slider-wrap { display: none; }
}

/* ── Responsive: phone (<640px) uses defaults above ── */

/* ── Tablet + Desktop (≥640px) ── */
@media (min-width: 640px) {
  #logo {
    top: 40px;
    left: 40px;
  }
  #illustration-container img {
    height: 296px;
  }
  #headline {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 48px;
  }
  #countdown-number {
    font-size: 160px;
  }
  #days-left {
    font-size: 16px;
  }
  #coming-soon {
    font-size: 40px;
    line-height: 1.2;
    margin-top: 12px;
  }
}

/* ── Desktop (≥1024px) ── */
@media (min-width: 1024px) {
  #headline {
    font-size: 80px;
    line-height: 1;
  }
}
