@font-face {
  font-family: 'Shantell Sans';
  src: url('https://assets.svc.asmodee.net/production-bezzerwizzer/timer/Shantell_Sans-Normal-Medium.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Shantell Sans', cursive;
  display: flex;
  flex-direction: column;
  background-color: #41737C;
}

/* ── Top teal area: circle + buttons ── */
.timer-area {
  flex: 0 0 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vh, 20px);
  padding: 8px 12px;
  background-image: url('https://assets.svc.asmodee.net/production-bezzerwizzer/timer/That_Tracks_Timer_Background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Circle: wide, nearly full width ── */
.circle-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width:  clamp(280px, 85vw, 520px);
  height: clamp(280px, 85vw, 520px);
  flex-shrink: 0;
}

#timerSvg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

#timerNumber {
  font-family: 'Shantell Sans', cursive;
  font-weight: 700;
  font-size: clamp(140px, 30vw, 220px);
  color: #ffffff;
  line-height: 1;
  z-index: 1;
  min-width: 3ch;
  text-align: center;
}

/* ── Buttons ── */
.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 24px);
  flex-wrap: nowrap;
}

.btn-img {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, opacity 0.1s ease;
}
.btn-img:active {
  transform: scale(0.93);
  opacity: 0.85;
}

#playBtn img  { height: clamp(72px, 19vw, 100px); width: auto; }

#soundTip { cursor: default; pointer-events: none; }
#soundTip img { height: clamp(72px, 19vw, 100px); width: auto; }

#pauseBtn img { height: clamp(72px, 19vw, 100px); width: auto; }
#nextBtn img  { height: clamp(72px, 19vw, 100px); width: auto; }

/* ── Footer: dark teal, 30% of screen ── */
.footer {
  flex: 0 0 30%;
  width: 100%;
  background-color: #2d5860;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vh, 16px);
  padding: 12px 20px;
}

.footer .logo {
  height: clamp(62px, 16vw, 96px);
  width: auto;
}

.rules-btn {
  display: inline-block;
  background-color: #FFE400;
  color: #000000;
  font-family: 'Shantell Sans', cursive;
  font-weight: 700;
  font-size: clamp(16px, 4.5vw, 24px);
  border: none;
  border-radius: 50px;
  padding: 9px 36px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  transition: opacity 0.1s ease;
}
.rules-btn:hover  { opacity: 0.88; }
.rules-btn:active { opacity: 0.75; }

.attribution {
  font-size: 9px;
  font-family: Arial, sans-serif;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  line-height: 1.5;
  max-width: 440px;
}
