*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #8dc6de;
  color: #ffffff;
}

/* Container */
.page {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper that contains both image and timer - they scale together */
.image-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}

/* Background image */
.background-image {
  display: block;
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Timer positioned inside the red rectangle - relative to image */
.timer-card {
  position: absolute;
  z-index: 2;
  left: 75%;
  top: 67.5%;
  transform: translate(-50%, -50%);
  width: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3%;
  width: 100%;
}

.time-block {
  text-align: center;
}

.time-value {
  display: block;
  font-size: 2.2vw;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  line-height: 1;
}

.time-label {
  display: block;
  margin-top: 0.2em;
  font-size: 0.6vw;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1;
}

.timer-heading {
  font-size: 0.9vw;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  text-align: center;
  margin-bottom: 0.5em;
  white-space: nowrap;
}

.status-message {
  display: none;
}
