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

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

body {
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(214, 233, 255, 0.5), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  color: #31456f;
  font-family: Georgia, "Times New Roman", serif;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 0;
}

@property --surface-white {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.22;
}

@property --surface-blue {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.12;
}

@property --surface-glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.66;
}

@property --surface-ring {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.66;
}

@property --surface-flare-opacity {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --surface-lift {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --rim-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 168deg;
}

.countdown,
.socials {
  --surface-x: 50%;
  --surface-y: 0%;
  --surface-white: 0.22;
  --surface-blue: 0.12;
  --surface-glow: 0.66;
  --surface-ring: 0.66;
  --surface-flare-opacity: 0;
  --surface-lift: 0px;
  --rim-angle: 168deg;
  isolation: isolate;
}

.countdown {
  position: fixed;
  top: max(12px, calc(env(safe-area-inset-top, 0px) + 12px));
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  padding: 10px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background:
    radial-gradient(circle at var(--surface-x) var(--surface-y), rgba(255, 255, 255, var(--surface-white)), rgba(113, 184, 255, var(--surface-blue)) 26%, transparent 58%),
    radial-gradient(ellipse at 12% -18%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.24) 42%, transparent 70%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(234, 246, 255, 0.22) 30%, rgba(147, 205, 255, 0.16) 58%, rgba(255, 255, 255, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -20px 42px rgba(64, 152, 255, 0.18),
    inset 18px 0 44px rgba(255, 255, 255, 0.32),
    inset -18px 0 44px rgba(51, 132, 230, 0.12),
    0 14px 40px rgba(70, 126, 200, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(26px) saturate(230%) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(26px) saturate(230%) contrast(1.12) brightness(1.08);
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    border-color 320ms ease,
    box-shadow 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    --surface-white 760ms cubic-bezier(0.16, 1, 0.3, 1),
    --surface-blue 760ms cubic-bezier(0.16, 1, 0.3, 1),
    --surface-glow 760ms cubic-bezier(0.16, 1, 0.3, 1),
    --surface-ring 760ms cubic-bezier(0.16, 1, 0.3, 1),
    --surface-flare-opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    --surface-lift 760ms cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 24px);
  flex-wrap: wrap;
  justify-content: center;
}

.countdown::before,
.socials::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--surface-x) var(--surface-y), rgba(255, 255, 255, var(--surface-white)), rgba(88, 170, 255, var(--surface-blue)) 22%, transparent 48%),
    conic-gradient(from 150deg at var(--surface-x) var(--surface-y), transparent 0deg, rgba(255, 255, 255, 0.46) 38deg, transparent 76deg, rgba(106, 184, 255, 0.22) 118deg, transparent 170deg, rgba(255, 255, 255, 0.26) 250deg, transparent 320deg),
    linear-gradient(112deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.16) 28%, transparent 51%);
  mix-blend-mode: screen;
  opacity: var(--surface-glow);
  pointer-events: none;
  transform: translate3d(0, var(--surface-lift), 0);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}

.countdown::after,
.socials::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 22%, transparent 72%, rgba(67, 145, 239, 0.16)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 18%, transparent 80%, rgba(83, 159, 249, 0.2));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, var(--surface-ring)),
    inset 0 10px 18px rgba(255, 255, 255, 0.34),
    inset 0 -12px 26px rgba(56, 139, 239, 0.12);
  opacity: 0.92;
  pointer-events: none;
  z-index: 1;
}

.surface-rim,
.surface-flare {
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.surface-rim {
  inset: 0;
  z-index: 2;
  padding: 1px;
  background:
    conic-gradient(from var(--rim-angle) at var(--surface-x) var(--surface-y), rgba(255, 255, 255, 0.96) 0deg, rgba(137, 205, 255, 0.36) 72deg, rgba(255, 255, 255, 0.12) 142deg, rgba(255, 255, 255, 0.82) 214deg, rgba(55, 143, 244, 0.24) 284deg, rgba(255, 255, 255, 0.96) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: var(--surface-ring);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.38));
  transition: opacity 320ms ease;
}

.surface-flare {
  left: var(--surface-x);
  top: var(--surface-y);
  z-index: 1;
  width: 190px;
  height: 190px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(141, 206, 255, 0.42) 24%, rgba(64, 150, 255, 0.16) 44%, transparent 70%);
  filter: blur(12px);
  mix-blend-mode: screen;
  opacity: var(--surface-flare-opacity);
  transform: translate(-50%, -50%) scale(0.72);
  transition:
    opacity 260ms ease,
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.countdown.is-liquid-pulse .surface-flare,
.socials.is-liquid-pulse .surface-flare {
  transform: translate(-50%, -50%) scale(1.36);
}

.countdown .surface-flare {
  width: 150px;
  height: 150px;
}

.countdown .surface-rim,
.countdown .surface-flare,
.socials .surface-rim,
.socials .surface-flare {
  contain: paint;
}

.socials::before,
.socials::after,
.socials .surface-rim,
.socials .surface-flare {
  border-radius: 999px;
}

.countdown::before,
.countdown::after,
.countdown .surface-rim,
.countdown .surface-flare {
  border-radius: 20px;
}

.surface-flare::after {
  content: "";
  position: absolute;
  inset: 34% -22%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  filter: blur(5px);
  transform: rotate(-12deg);
}

.countdown-item,
.social-link {
  position: relative;
  z-index: 3;
}

.countdown.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(56px, 6vw, 82px);
}

.countdown-value {
  color: #31456f;
  font: 800 clamp(24px, 2.3vw, 36px) / 1 "Onest", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.03em;
}

.countdown-label {
  margin-top: 4px;
  color: rgba(49, 69, 111, 0.68);
  font: 600 clamp(11px, 0.9vw, 13px) / 1.1 "Onest", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.socials {
  position: fixed;
  bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at var(--surface-x) var(--surface-y), rgba(255, 255, 255, var(--surface-white)), rgba(113, 184, 255, var(--surface-blue)) 28%, transparent 60%),
    radial-gradient(ellipse at 18% -16%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.28) 42%, transparent 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(234, 246, 255, 0.22) 30%, rgba(147, 205, 255, 0.18) 58%, rgba(255, 255, 255, 0.4));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -24px 46px rgba(64, 152, 255, 0.2),
    inset 18px 0 42px rgba(255, 255, 255, 0.32),
    inset -18px 0 42px rgba(74, 153, 244, 0.12),
    0 12px 34px rgba(94, 141, 203, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(26px) saturate(230%) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(26px) saturate(230%) contrast(1.12) brightness(1.08);
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    border-color 320ms ease,
    box-shadow 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    --surface-white 760ms cubic-bezier(0.16, 1, 0.3, 1),
    --surface-blue 760ms cubic-bezier(0.16, 1, 0.3, 1),
    --surface-glow 760ms cubic-bezier(0.16, 1, 0.3, 1),
    --surface-ring 760ms cubic-bezier(0.16, 1, 0.3, 1),
    --surface-flare-opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    --surface-lift 760ms cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 24px);
  flex-wrap: wrap;
  justify-content: center;
}

.socials.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.social-link {
  width: clamp(72px, 5.8vw, 92px);
  height: clamp(72px, 5.8vw, 92px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.28) 48%, rgba(196, 224, 255, 0.24)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -10px 20px rgba(133, 186, 242, 0.12),
    0 6px 16px rgba(120, 164, 224, 0.14);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
}

.social-link svg {
  width: 40px;
  height: 40px;
  fill: #31456f;
}

.social-link[aria-label="YouTube"] svg {
  fill: #ff0000;
}

.social-link:hover {
  transform: translateY(-2px);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.4) 48%, rgba(196, 224, 255, 0.32)),
    rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 18px rgba(120, 164, 224, 0.18);
}

.countdown.is-liquid-pulse,
.socials.is-liquid-pulse {
  --surface-white: 0.96;
  --surface-blue: 0.5;
  --surface-glow: 0.98;
  --surface-ring: 1;
  --surface-flare-opacity: 0.92;
  --surface-lift: 8px;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -24px 48px rgba(87, 166, 255, 0.28),
    inset 22px 0 52px rgba(255, 255, 255, 0.4),
    inset -22px 0 52px rgba(68, 149, 244, 0.18),
    0 16px 42px rgba(72, 133, 213, 0.26),
    0 0 34px rgba(166, 216, 255, 0.32);
}

.logo-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  filter: drop-shadow(0 10px 24px rgba(134, 176, 235, 0.14));
}

.logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.3vw, 20px);
  width: min(92vw, 1100px);
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
}

.logo-line-row,
.tagline-line-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.logo-line-row {
  min-height: clamp(58px, 6.4vw, 104px);
}

.tagline-line-row {
  min-height: clamp(32px, 3.2vw, 50px);
}

.logo-svg-wrap {
  width: min(92vw, 980px);
  display: flex;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.logo-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.logo-svg:focus,
.logo-svg:focus-visible {
  outline: none;
}

.logo-path {
  fill-opacity: 0;
  stroke-opacity: 0;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 18px rgba(134, 176, 235, 0.08));
  paint-order: stroke fill;
}

.logo-path-accent {
  fill: #2875ff;
  stroke: #2875ff;
}

.logo-letter {
  fill: #293c62;
  opacity: 0;
  fill-opacity: 0;
  stroke: #293c62;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke fill;
  transform-box: fill-box;
  transform-origin: center;
}

.tagline-word-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18ch;
  max-width: 100%;
}

.tagline-word {
  display: inline-block;
  color: rgba(49, 69, 111, 0.92);
  font: italic 400 clamp(28px, 2.8vw, 46px) / 1 "PT Serif", Georgia, serif;
  white-space: nowrap;
  text-align: center;
}

.tagline-caret {
  width: 2px;
  height: clamp(24px, 2.5vw, 40px);
  background: rgba(49, 69, 111, 0.72);
  animation: caret-blink 0.9s steps(1, end) infinite;
  transform: translateY(4%);
  opacity: 1;
  transition: opacity 140ms ease;
  visibility: visible;
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .countdown {
    gap: 10px;
    padding: 8px 12px;
  }

  .countdown-item {
    min-width: 48px;
  }

  .socials {
    gap: 12px;
    padding: 10px 14px;
    bottom: 16px;
  }

  .logo-overlay {
    transform: scale(0.78);
  }
}

@media (max-width: 640px) {
  .countdown {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .countdown-item {
    min-width: 42px;
  }

  .countdown-value {
    font-size: clamp(18px, 5vw, 24px);
  }

  .countdown-label {
    font-size: 10px;
  }

  .logo-overlay {
    transform: none;
    padding-inline: 10px;
  }

  .logo-stack {
    width: 100%;
    gap: 10px;
    padding-inline: 10px;
  }

  .logo-line-row {
    min-height: 52px;
  }

  .tagline-line-row {
    min-height: 34px;
  }

  .logo-svg-wrap,
  .tagline-word-wrap {
    min-width: 0;
    width: auto;
    max-width: 100%;
    justify-content: center;
  }

  .logo-svg-wrap {
    width: min(94vw, 680px);
  }

  .tagline-word {
    font-size: clamp(20px, 5.4vw, 30px);
    white-space: normal;
    text-wrap: balance;
  }

  .tagline-caret {
    height: clamp(18px, 5vw, 28px);
  }

  .socials {
    gap: 10px;
    padding: 8px 10px;
    width: auto;
  }

  .social-link {
    width: 58px;
    height: 58px;
  }

  .social-link svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-height: 820px) {
  .logo-overlay {
    align-items: center;
    padding-top: 54px;
    padding-bottom: 70px;
  }

  .logo-stack {
    gap: 8px;
  }

  .logo-svg-wrap {
    width: min(84vw, 760px);
  }

  .tagline-word {
    font-size: clamp(18px, 2.5vw, 30px);
  }

  .social-link {
    width: clamp(58px, 5vw, 74px);
    height: clamp(58px, 5vw, 74px);
  }

  .social-link svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-height: 620px) {
  .countdown {
    gap: 6px;
    padding: 6px 10px;
  }

  .countdown-item {
    min-width: 38px;
  }

  .countdown-value {
    font-size: clamp(16px, 3vw, 20px);
  }

  .countdown-label {
    font-size: 9px;
  }

  .logo-overlay {
    padding-top: 64px;
    padding-bottom: 84px;
  }

  .logo-svg-wrap {
    width: min(78vw, 600px);
  }

  .tagline-word {
    font-size: clamp(16px, 2vw, 24px);
  }

  .socials {
    gap: 8px;
    padding: 6px 10px;
  }

  .social-link {
    width: 50px;
    height: 50px;
  }

  .social-link svg {
    width: 24px;
    height: 24px;
  }
}
