@import url("https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@400;600;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  overflow: hidden;
}

#tiresult {
  display: block;
  width: fit-content;
  max-width: min(94vw, 1400px);
  max-height: 84vh;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: auto;
  font-size: 0 !important;
  font-weight: 700;
  line-height: 0;
  color: #d4d4d8;
  padding: 8px 10px !important;
  font-family: Consolas, "Courier New", monospace;
  opacity: 0;
  transition: opacity 260ms ease;
}

#tiresult b {
  display: inline-block;
  vertical-align: top;
  font-size: 9px;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(1px);
  transition: transform 320ms ease, opacity 320ms ease, filter 320ms ease;
}

#tiresult b.glyph-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.result-done {
  color: #ffd166;
}

.is-hidden {
  display: none !important;
}

.show-pre {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 75;
  opacity: 1 !important;
  display: block !important;
}

.countdown-stage {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(39, 39, 42, 0.25), rgba(0, 0, 0, 0.82) 62%);
}

.countdown-box {
  width: min(92vw, 720px);
  padding: clamp(18px, 3vw, 30px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 14, 0.72);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.countdown-title {
  margin: 0;
  font-family: "Pacifico", cursive;
  font-size: clamp(28px, 6vw, 56px);
  color: #ffd166;
  text-shadow: 0 4px 18px rgba(255, 209, 102, 0.25);
}

.countdown-date {
  margin-top: 12px;
  font-weight: 600;
  font-size: clamp(18px, 3.6vw, 32px);
  color: #f4f4f5;
  text-shadow: 0 2px 14px rgba(244, 244, 245, 0.22);
}

.mini-alert {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 110;
  width: min(92vw, 520px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(9, 9, 12, 0.9);
  color: #f4f4f5;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 260ms ease;
}

.mini-alert.show {
  opacity: 1;
}