/* ==========================================================================
   GATE-ACCESS VIDEO / YG88 CỔNG QUỐC TẾ - STYLESHEET
   ========================================================================== */

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a0303;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── Stage ── */

.stage {
  position: fixed;
  inset: 0;
}

.backdrop {
  position: absolute;
  inset: -40px;
  background: center / cover no-repeat url("../assets/pc.webp");
  filter: blur(28px) brightness(0.55);
  transform: scale(1.1);
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

@media (max-aspect-ratio: 1/1) {
  .backdrop {
    background-image: url("../assets/mb.webp");
  }
}

/* ── Bottom bar ── */

.bar {
  position: absolute;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 12px;
  border-radius: 999px;
  background: rgba(20, 2, 2, 0.62);
  border: 1px solid rgba(255, 210, 120, 0.45);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 0 18px rgba(255, 190, 80, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  z-index: 2;
}

/* ── Countdown ring ── */

.ring {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 4;
}

.ring .track {
  stroke: rgba(255, 255, 255, 0.15);
}

.ring .progress {
  stroke: #ffd36b;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 0;
  animation: ring 5s linear forwards;
}

.ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  color: #ffe39a;
}

@keyframes ring {
  to {
    stroke-dashoffset: 125.66;
  }
}

/* ── Text & CTA ── */

.text {
  font-size: 14px;
  line-height: 1.3;
  color: #f6e7c8;
}

.text b {
  display: block;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.3px;
}

.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #4a0b00;
  text-decoration: none;
  background: linear-gradient(180deg, #fff1b8 0%, #ffd157 45%, #e9a51d 100%);
  box-shadow:
    0 6px 18px rgba(255, 180, 40, 0.45),
    inset 0 -2px 0 rgba(120, 50, 0, 0.35);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.06);
  }
}

/* ── Mobile ── */

@media (max-width: 520px) {
  .bar {
    gap: 10px;
    padding: 8px 8px 8px 10px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .ring {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .ring span {
    font-size: 17px;
  }

  .text {
    font-size: 12px;
  }

  .text b {
    font-size: 13px;
  }

  .go {
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
  }
}
