:root {
  --color-light: #f7e0b7;
  --color-yellow: #f8e467;
  --color-blue: #35a0f0;
  --color-purple: #8a41aa;
  --color-dark: #55367c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  padding: 16px;

  background-image: url("./images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.timer {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timer__question {
  font-size: 20px;
  color: var(--color-light);
  margin-bottom: 16px;
  max-width: 320px;
  line-height: 1.5;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(247, 224, 183, 0.5);
}

.timer__answer {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-blue), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(248, 228, 103, 0.6),
               0 0 24px rgba(53, 160, 240, 0.5);
}

.timer__counter {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 340px;
}

.timer__unit {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(138, 65, 170, 0.5);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 0 10px rgba(138, 65, 170, 0.4);
}

.timer__value {
  display: block;
  font-size: 18px;
  color: var(--color-yellow);
  font-weight: 700;
}

.timer__label {
  font-size: 10px;
  color: var(--color-light);
  opacity: 0.8;
}

/* ── Profile link ── */
.profile-link {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(138, 65, 170, 0.5);
  border-radius: 50px;
  padding: 6px 14px 6px 6px;
  box-shadow: 0 0 12px rgba(138, 65, 170, 0.35);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  backdrop-filter: blur(6px);
}

.profile-link:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(248, 228, 103, 0.6);
  box-shadow: 0 0 18px rgba(248, 228, 103, 0.3),
              0 0 8px rgba(138, 65, 170, 0.5);
}

.profile-link__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-purple);
  display: block;
  flex-shrink: 0;
  transition: border-color 0.25s;
}

.profile-link:hover .profile-link__avatar {
  border-color: var(--color-yellow);
}

.profile-link__text {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-light);
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(247, 224, 183, 0.4);
  transition: color 0.25s;
}

.profile-link:hover .profile-link__text {
  color: var(--color-yellow);
}

@media (min-width: 768px) {
  .profile-link {
    gap: 12px;
    padding: 7px 18px 7px 7px;
  }

  .profile-link__avatar {
    width: 42px;
    height: 42px;
  }

  .profile-link__text {
    font-size: 13px;
  }
}

/* ── Responsive breakpoints ── */
@media (min-width: 768px) {
  .timer__question {
    font-size: 28px;
    max-width: 700px;
    margin-bottom: 24px;
  }

  .timer__answer {
    font-size: 120px;
    letter-spacing: 6px;
  }

  .timer__counter {
    max-width: 700px;
    gap: 16px;
  }

  .timer__unit {
    min-width: 110px;
    padding: 14px 18px;
  }

  .timer__value {
    font-size: 28px;
  }

  .timer__label {
    font-size: 12px;
  }
}
