@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --night: #cbd9d6;
  --panel: #e0e9e4;
  --signal: #496b64;
  --paper: #202a27;
  --ash: #77827c;
}

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

html, body {
  background: var(--night);
  color: var(--paper);
  overflow-x: hidden;
  min-height: 100%;
  width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
}

body {
  background-image: linear-gradient(90deg, transparent 49.9%, rgb(32 42 39 / 3%) 50%, transparent 50.1%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgb(32 42 39 / 3%) 40px);
}

.container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px 24px;
  text-align: center;
  position: relative;
  isolation: isolate;
}

/* Title */
.title-box {
  position: relative;
  padding: 14px 24px 13px;
  margin-bottom: 22px;
  background: transparent;
  border-block: 1px solid rgb(73 107 100 / 35%);
}

.title-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--signal);
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: 0.16em;
}

.title-box h1 {
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 900;
  color: var(--paper);
  line-height: 0.95;
  text-transform: uppercase;
}

.title-box h1 span {
  color: var(--signal);
}

/* Countdown */
.countdown-link {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 16px;
}

.countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 3vw, 20px);
  justify-content: center;
  padding: 12px 0;
  margin-bottom: 15px;
  background: transparent;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.countdown-unit .num {
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 700;
  color: var(--signal);
  line-height: 1;
}

.countdown-unit .label {
  font-size: clamp(8px, 2vw, 11px);
  color: var(--ash);
  letter-spacing: 0.12em;
  font-weight: 600;
  font-family: 'DM Mono', monospace;
}

.countdown-sep {
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 700;
  color: var(--ash);
  line-height: 1;
  padding-top: 2px;
}

/* Tagline */
.tagline {
  font: 500 clamp(11px, 3vw, 13px) 'DM Mono', monospace;
  color: var(--ash);
  margin-bottom: 16px;
  letter-spacing: 0.12em;
}

/* Circle Image */
.circle-img {
  width: clamp(190px, 54vw, 238px);
  height: clamp(190px, 54vw, 238px);
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 7px;
  background: var(--panel);
  border: 1px solid rgb(73 107 100 / 42%);
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgb(73 107 100 / 8%);
}

.circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
}

/* Telegram Button */
.tg-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #087bb6;
  color: #fff;
  font-weight: 500;
  font-size: clamp(13px, 4vw, 16px);
  padding: 14px 20px;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0;
  width: fit-content;
  max-width: 92vw;
  justify-content: center;
  margin-bottom: 12px;
  box-sizing: border-box;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 4px 0 rgb(4 69 105 / 22%), 0 0 0 4px rgb(8 123 182 / 16%), 0 9px 22px rgb(8 123 182 / 30%);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  animation: button-pulse 2.8s ease-in-out infinite;
}

.tg-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.tg-btn:hover {
  transform: translateY(-2px);
  background: #066fa5;
  box-shadow: 0 5px 0 rgb(4 69 105 / 20%), 0 0 0 5px rgb(8 123 182 / 20%), 0 12px 26px rgb(8 123 182 / 36%);
}

.tg-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgb(4 69 105 / 22%), 0 0 0 3px rgb(8 123 182 / 14%), 0 4px 10px rgb(8 123 182 / 20%);
}

@keyframes button-pulse {
  0%, 100% {
    box-shadow: 0 4px 0 rgb(4 69 105 / 22%), 0 0 0 3px rgb(8 123 182 / 13%), 0 8px 18px rgb(8 123 182 / 24%);
  }
  50% {
    box-shadow: 0 4px 0 rgb(4 69 105 / 22%), 0 0 0 7px rgb(8 123 182 / 22%), 0 11px 25px rgb(8 123 182 / 36%);
  }
}

.tg-btn:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .tg-btn {
    animation: none;
    transition: none;
  }
}

/* Bottom Text */
.bottom-text {
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--paper);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.06em;
}

.bottom-text span {
  color: var(--signal);
  padding-inline: 5px;
}

/* Divider */
.divider {
  width: min(90vw, 380px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(73 107 100 / 48%), transparent);
}

.agency-footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45em;
  margin-top: 16px;
  padding: 10px 8px;
  background: rgb(32 42 39 / 5%);
  color: var(--ash);
  font-size: clamp(12px, 3.5vw, 15px);
  line-height: 1.4;
  text-align: center;
}

.agency-footer strong {
  color: var(--signal);
  font-weight: 800;
}

.footer-separator {
  color: var(--ash);
  font-weight: 400;
}

.footer-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
}

.agency-footer a {
  color: var(--signal);
  font-weight: 700;
  text-decoration: none;
}

.tg-btn:hover,
.agency-footer a:hover {
  filter: brightness(1.08);
}

@media (max-width: 480px) {
  .agency-footer {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .title-box {
    padding-right: 16px;
    padding-left: 16px;
  }

  .countdown {
    gap: 8px;
  }

  .bottom-text {
    width: min(92vw, 380px);
    font-size: 11px;
    letter-spacing: 0;
  }

}
