:root {
  --yellow: #ffcb05;
  --blue: #2a75bb;
  --ink: #10233f;
  --bg-dark: #0b1c33;
}

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

html, body {
  height: 100%;
}

body {
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

body.hide-cursor {
  cursor: none;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #ff4d4d 0%, #ff5238 55%, #f43b2e 100%);
  background-size: cover;
  background-position: center;
}

#bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#bg-video.show {
  display: block;
}

.tint {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(60, 8, 8, 0.45) 0%, rgba(60, 8, 8, 0.22) 42%, rgba(60, 8, 8, 0) 72%);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.5vmin 4vmin;
}

.brand {
  height: 7vmin;
  width: auto;
  filter: drop-shadow(0 0.4vmin 0.8vmin rgba(0, 0, 0, 0.55));
}

.brand-right {
  display: flex;
  align-items: center;
  gap: 1.8vmin;
}

.brand-tag {
  font-size: 2.6vmin;
  font-weight: 800;
  letter-spacing: 0.35vmin;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0.3vmin 0.6vmin rgba(0, 0, 0, 0.65);
}

.pokeball {
  width: 5.5vmin;
  height: 5.5vmin;
  filter: drop-shadow(0 0.4vmin 0.7vmin rgba(0, 0, 0, 0.5));
  animation: bob 3.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.9vmin); }
}

.poke {
  position: fixed;
  z-index: 2;
  width: var(--size);
  aspect-ratio: 1;
  animation: floaty 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.4vmin); }
}

.poke .holder {
  width: 100%;
  display: block;
  filter: drop-shadow(0 1vmin 2vmin rgba(0, 0, 0, 0.35));
}

.poke .char {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 90%;
  transform: translateX(-50%);
  filter: drop-shadow(0 0.8vmin 1.2vmin rgba(0, 0, 0, 0.45));
}

.p1 { top: 14vmin; left: 20vmin; --size: 31vmin; --delay: 0.2s; }
.p2 { top: 14vmin; right: 20vmin; --size: 31vmin; --delay: 1.1s; }
.p3 { top: 38vmin; left: 1.5vmin; --size: 37vmin; --delay: 0.6s; }
.p4 { top: 38vmin; right: 1.5vmin; --size: 37vmin; --delay: 1.6s; }
.p5 { bottom: 7vmin; left: 20vmin; --size: 34vmin; --delay: 2s; }
.p6 { bottom: 7vmin; right: 20vmin; --size: 34vmin; --delay: 2.6s; }

.clock-wrap {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3vmin;
}

.clock {
  display: flex;
  align-items: baseline;
  font-family: "Arial Black", "Arial", "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 20vmin;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
  -webkit-text-stroke: 0.9vmin var(--blue);
  paint-order: stroke fill;
  text-shadow: 0 1vmin 0 rgba(16, 35, 63, 0.95), 0 2vmin 3.2vmin rgba(0, 0, 0, 0.65);
}

@supports not (-webkit-text-stroke: 1px black) {
  .clock {
    text-shadow:
      -0.7vmin -0.7vmin 0 var(--blue), 0.7vmin -0.7vmin 0 var(--blue),
      -0.7vmin 0.7vmin 0 var(--blue), 0.7vmin 0.7vmin 0 var(--blue),
      -0.7vmin 0 0 var(--blue), 0.7vmin 0 0 var(--blue),
      0 -0.7vmin 0 var(--blue), 0 0.7vmin 0 var(--blue),
      0 1.4vmin 0 rgba(16, 35, 63, 0.95), 0 2.4vmin 3.6vmin rgba(0, 0, 0, 0.65);
  }
}

#.colon {
#  animation: blink 1s steps(1) infinite;
#}

@keyframes blink {
  50% { opacity: 0; }
}

.seconds {
  margin-left: 2.6vmin;
  font-size: 8.5vmin;
  color: #fff;
  -webkit-text-stroke: 0.45vmin var(--blue);
  paint-order: stroke fill;
  text-shadow: 0 0.7vmin 0 rgba(16, 35, 63, 0.95), 0 1.3vmin 2.2vmin rgba(0, 0, 0, 0.65);
}

.date {
  font-size: 4.2vmin;
  font-weight: 700;
  letter-spacing: 0.45vmin;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0.4vmin 1vmin rgba(0, 0, 0, 0.7);
  background: rgba(16, 35, 63, 0.55);
  border: 0.35vmin solid rgba(255, 255, 255, 0.28);
  border-radius: 2.2vmin;
  padding: 1.3vmin 3.4vmin;
}

.bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2vmin;
  padding: 2.2vmin 4vmin;
  font-size: 2vmin;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0.2vmin 0.5vmin rgba(0, 0, 0, 0.6);
}

.bottombar a {
  color: var(--yellow);
  text-decoration: none;
}

.bottombar a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .colon, .pokeball, .poke {
    animation: none;
  }
}