@font-face {
  font-family: 'Black Ops One'; /* A unique name for your font */
  src: url('fonts/BlackOpsOne-Regular.ttf') format('truetype'),
}

@font-face {
  font-family: 'Sport World'; /* A unique name for your font */
  src: url('fonts/Sports-World-Regular.ttf') format('truetype'),
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* BACKGROUND IMAGE */
.background {
  position: fixed;
  inset: 0;
  background: url("bg-wall.png") no-repeat center center;
  background-size: cover;
  z-index: 0;
}

/* CAMERA VIDEO */
#video {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 320px;
  height: auto;
  border-radius: 16px;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* RESULT OVERLAY */
#result {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  /* background: rgba(0,0,0,0.35); */
  /* backdrop-filter: blur(4px); */
}

.hidden {
  display: none !important;
}

.name {
  font-size: 150px;
  /* font-weight: 800; */
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-family: 'Sport World';
}

.bib {
  font-size: 200px;
  /* font-weight: 500; */
  opacity: 0.9;
  font-family: 'Black Ops One';
}

/* #manual-search {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

#manual-search input {
  width: 140px;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  outline: none;
}

#manual-search button {
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background: #00ffd0;
  cursor: pointer;
  font-weight: bold;
} */

.search-wrapper {
  position: absolute;
  bottom: 8%;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 9999;
}

#bibInput {
  width: 520px;
  height: 60px;

  font-size: 48px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 10px;

  border-radius: 18px;
  border: 4px solid #1e90ff;
  outline: none;

  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;

  transition: all 0.25s ease;
  /* padding: 20px; */
}

/* Placeholder */
#bibInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
}

/* ACTIVE GLOW */
#bibInput.active {
  border-color: #00eaff;
  box-shadow:
    0 0 10px rgba(0, 234, 255, 0.6),
    0 0 25px rgba(0, 234, 255, 0.5),
    0 0 45px rgba(0, 234, 255, 0.4);

  animation: glowPulse 1.6s infinite;
}

/* GLOW ANIMATION */
@keyframes glowPulse {
  0% {
    box-shadow:
      0 0 10px rgba(0, 234, 255, 0.4),
      0 0 25px rgba(0, 234, 255, 0.3);
  }
  50% {
    box-shadow:
      0 0 18px rgba(0, 234, 255, 0.9),
      0 0 45px rgba(0, 234, 255, 0.8);
  }
  100% {
    box-shadow:
      0 0 10px rgba(0, 234, 255, 0.4),
      0 0 25px rgba(0, 234, 255, 0.3);
  }
}

.countdown-wrapper {
  position: absolute;
  bottom: 8%;
  right: 400px;
  z-index: 9999;
}

.countdown {
  margin-top: 28px;
  font-size: 56px;
  font-weight: 800;
  color: #111; /* hitam pekat */
  letter-spacing: 2px;

  /* background: rgba(0, 0, 0, 0.08);
  padding: 12px 36px;
  border-radius: 16px; */

  /* box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.15); */

  animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%   { transform: scale(1);   }
  50%  { transform: scale(1.03);}
  100% { transform: scale(1);   }
}

