:root {
  --bg: #121212;
  --white: #ffffff;
  --red: #ed1c2a;
  --line: rgba(255, 255, 255, 0.92);
  --progress: 8%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--white);
  background: var(--bg);
  overflow: hidden;
}

.page {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
}

.title-zone {
  align-self: center;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 700ms ease 160ms forwards;
}

.title-zone h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.title-zone p {
  margin: 12px 0 0;
  font-size: clamp(24px, 4.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.loader-card {
  width: min(330px, 82vw);
  align-self: center;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 700ms ease 300ms forwards;
}

.loader-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1px 4px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.loader-track {
  height: 30px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.loader-fill {
  width: var(--progress);
  min-width: 24px;
  height: 100%;
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0.38) 50%, rgba(255,255,255,0) 65%, transparent 100%),
    linear-gradient(90deg, #ff3b30 0%, #ed1c2a 48%, #d70015 100%);
  background-size: 36px 100%, 100% 100%;
  background-position: -36px 0, 0 0;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  transition: width 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: fillShine 1.7s linear infinite;
}

.loader-text {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 13px;
  font-weight: 600;
}

.eyes-zone {
  align-self: center;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 700ms ease 440ms forwards;
}

.eyes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.eye {
  width: clamp(74px, 9vw, 96px);
  height: clamp(94px, 11vw, 118px);
  border-radius: 50%;
  background: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(0,0,0,0.12);
  transform-origin: 50% 50%;
  transition: height 105ms ease-in-out, transform 105ms ease-in-out;
}

.eye.is-blinking {
  height: clamp(9px, 1.1vw, 13px);
  transform: translateY(6px);
}

.eye.is-blinking .pupil {
  opacity: 0;
}

.pupil {
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #050505;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 70ms ease;
}

.pupil::after {
  content: "";
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  left: 17%;
  top: 17%;
}

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

@keyframes fillShine {
  from { background-position: -36px 0, 0 0; }
  to { background-position: calc(100% + 36px) 0, 0 0; }
}

@media (max-width: 620px) {
  body {
    overflow-y: auto;
  }

  .page {
    min-height: 100svh;
    padding: 24px 18px;
  }

  .title-zone h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .title-zone p {
    font-size: clamp(24px, 8vw, 36px);
  }

  .loader-card {
    width: min(320px, 88vw);
  }

  .eyes {
    gap: 26px;
  }
}
