@font-face {
  font-family: 'Rajdhani';
  src: url('fonts/Rajdhani-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('fonts/Rajdhani-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/Orbitron-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/Orbitron-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/Orbitron-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/Orbitron-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.corner {
  position: fixed;
  width: clamp(25px, 5vw, 40px);
  height: clamp(25px, 5vw, 40px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

.corner--tl { top: clamp(20px, 3vh, 30px); left: clamp(20px, 3vw, 30px); border-top: 1px solid rgba(255,255,255,0.6); border-left: 1px solid rgba(255,255,255,0.6); }
.corner--tr { top: clamp(20px, 3vh, 30px); right: clamp(20px, 3vw, 30px); border-top: 1px solid rgba(255,255,255,0.6); border-right: 1px solid rgba(255,255,255,0.6); }
.corner--bl { bottom: clamp(20px, 3vh, 30px); left: clamp(20px, 3vw, 30px); border-bottom: 1px solid rgba(255,255,255,0.6); border-left: 1px solid rgba(255,255,255,0.6); }
.corner--br { bottom: clamp(20px, 3vh, 30px); right: clamp(20px, 3vw, 30px); border-bottom: 1px solid rgba(255,255,255,0.6); border-right: 1px solid rgba(255,255,255,0.6); }

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  position: relative;
  z-index: 3;
  text-align: center;
}

.title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.5em;
  text-shadow: 0 0 8px rgba(255,255,255,0.6), 0 0 15px rgba(255,255,255,0.3), 0 0 25px rgba(255,255,255,0.1);
  animation: fadeUp 0.8s ease-out forwards;
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.6rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: clamp(50px, 10vh, 90px);
  text-shadow: 0 0 5px rgba(255,255,255,0.4), 0 0 10px rgba(255,255,255,0.2);
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.timer {
  display: flex;
  gap: clamp(15px, 4vw, 60px);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

.timer__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(80px, 20vw, 180px);
  position: relative;
}

.timer__unit:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(clamp(15px, 4vw, 60px) / -2);
  top: 50%;
  transform: translateY(-65%);
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.3) 15%, rgba(255,255,255,0.3) 85%, transparent 100%);
}

@media (max-width: 768px) {
  .timer__unit:not(:last-child)::after {
    display: none;
  }
}

.timer__value {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 10vw, 6.5rem);
  line-height: 1;
  margin-bottom: 0.2em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(255,255,255,0.5), 0 0 20px rgba(255,255,255,0.3), 0 0 30px rgba(255,255,255,0.1);
  transition: text-shadow 0.2s, transform 0.2s;
}

.timer__unit:hover .timer__value {
  text-shadow: 0 0 18px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.5), 0 0 45px rgba(255,255,255,0.2);
  transform: scale(1.02);
}

.timer__label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #999;
  text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-height: 600px) {
  .title { font-size: clamp(1.8rem, 6vh, 3rem); }
  .subtitle { margin-bottom: 4vh; letter-spacing: 0.3em; }
  .timer__value { font-size: clamp(2rem, 8vh, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
