* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: #FCFBF7;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.app {
  position: relative;
  width: 1420px;
  height: 2178px;
  flex-shrink: 0;
  transform-origin: center center;
  /* scale is set by JS */
}

/* ─── Timer ─────────────────────────────── */

.timer-display {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.timer-display span {
  font-family: 'Cookie', cursive;
  font-size: 320px;
  font-weight: 400;
  line-height: 1;
  color: #75663F;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0);
}

/* ─── Buttons ───────────────────────────── */

.btn {
  position: absolute;
  z-index: 20;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: transform 0.15s ease;
}

/* Hover — scale the image only */
.btn:hover img {
  transform: scale(1.05);
}

/* Click — animate the image only */
.btn:active img {
  animation: btn-press 0.3s ease forwards;
}

@keyframes btn-press {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.95); }
  60%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ─── Button positions ─────────────────── */

.btn-start {
  bottom: 320px;
  left: 50%;
  transform: translateX(-50%);
}

.btn-pause {
  bottom: 320px;
  left: 35%;
  transform: translateX(-50%);
  display: none;
}

.btn-end {
  bottom: 320px;
  left: 65%;
  transform: translateX(-50%);
  display: none;
}

.btn-mute {
  top: 80px;
  right: 80px;
}

/* ─── Button positions ─────────────────── */

.btn-start {
  bottom: 240px;
  left: 50%;
  transform: translateX(-50%);
}

.btn-pause {
  bottom: 240px;
  left: 35%;
  transform: translateX(-50%);
  display: none;
}

.btn-end {
  bottom: 240px;
  left: 65%;
  transform: translateX(-50%);
  display: none;
}

.btn-mute {
  top: 240px;
  right: 80px;
}