:root {
  --bg: #060502;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-brd: rgba(255, 255, 255, 0.12);
  --accent: #ffb703; /* amber-gold */
  --accent-dark: #fb8500;
  --txt-primary: #f1f5f9;
  --txt-muted: #9ca3af;
  --radius-lg: 1rem;
  --radius-sm: 0.4rem;
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-size: 16px;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--txt-primary);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-rendering: optimizeLegibility;
}

.watch-stop-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem;
  min-height: 450px;
  background-color: var(--surface-brd);
  border-radius: 20px;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 85%
  );
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease-in-out;
  width: 520px;
  min-height: 520px;
}

.game-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  background: var(--surface);
  border: 2px solid var(--surface-brd);
  border-radius: var(--radius-lg);
  padding: 0.6rem 3rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

.timer-container {
  background: var(--surface);
  border: 2px solid var(--surface-brd);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px) saturate(130%);
  display: inline-flex;
}

.timer {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.flip-digit,
.flip-separator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  width: 3.7rem;
  height: 5rem;
  background: #000;
  border: 1px solid #333;
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--txt-primary);
}

.flip-digit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 48%,
    rgba(255, 255, 255, 0.06) 52%,
    rgba(255, 255, 255, 0.03) 100%
  );
  pointer-events: none;
}

.flip-digit::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: #444;
}

.flip-separator {
  width: 1.3rem;
  background: transparent;
  border: none;
}

.btn {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: var(--accent);
  color: #111;
  width: 340px;
  user-select: none;
}

.btn-:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--accent-dark);
}

.btn--ghost {
  background: var(--surface);
  color: var(--txt-primary);
  border: 2px solid var(--surface-brd);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--warning {
  background: #ff6b6b;
  color: #fff;
  border: none;
}

.btn--warning:hover {
  background: #ff4c4c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.box {
  text-align: center;
  max-width: 640px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--txt-muted);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

@media (max-width: 768px) {
  body {
    justify-content: flex-start;
  }

  .watch-stop-frame {
    width: 95%;
    padding: 1.5rem;
    height: 100%;
    margin-top: 1rem;
    height: 95vh;
  }

  .flip-digit {
    width: 3rem;
    height: 4.2rem;
  }
  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }
}

.game-progress .btn {
  width: 80%;
  margin-top: 12px;
}

.game-previously-finished {
  margin-top: 12px;
  font-size: 1.1rem;
  color: var(--txt-muted);
  margin-top: 1rem;
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

@media (max-width: 480px) {
  .game-title {
    font-size: 1.8rem;
    padding: 0.4rem 2rem;
  }

  .timer-container {
    padding: 0.6rem 0.8rem;
  }

  .flip-digit,
  .flip-separator {
    font-size: 1.6rem;
    width: 3rem;
    height: 4rem;
  }

  .btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
  }

  .timer {
    gap: 0.2rem;
  }

  .description {
    font-size: 1rem;
    padding: 0;
  }
}
