* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #202020;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #202020;
  color: #ece8e1;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.ad-page,
.empty-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.empty-page {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 174, 74, 0.18), rgba(255, 174, 74, 0) 28%),
    linear-gradient(135deg, rgba(255, 129, 39, 0.22), rgba(255, 129, 39, 0.04) 36%, rgba(24, 24, 24, 0) 68%),
    linear-gradient(180deg, #252525 0%, #1b1b1b 100%);
}

.ad-page {
  background:
    linear-gradient(160deg, rgba(255, 129, 39, 0.12), rgba(32, 32, 32, 0) 42%),
    #202020;
}

.ad-shell {
  width: min(100%, 520px);
  display: grid;
  gap: 14px;
  justify-items: center;
}

.brand-mark {
  color: #f0ece5;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 0 28px rgba(255, 129, 39, 0.28);
}

.brand-mark span {
  filter: drop-shadow(0 0 10px rgba(255, 174, 74, 0.38));
}

.contact-link {
  color: rgba(236, 232, 225, 0.52);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ad-image-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #2b2b2b;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

.ad-label {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.42);
  color: rgba(245, 241, 233, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
}

.ad-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.redirect-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.timer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(236, 232, 225, 0.62);
  font-size: 14px;
}

.timer span:first-child {
  color: #f1eee8;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.continue-button {
  min-width: 142px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 129, 39, 0.86);
  color: #171717;
  font-weight: 700;
  text-decoration: none;
}

.continue-button.is-disabled {
  cursor: wait;
  background: rgba(236, 232, 225, 0.16);
  color: rgba(236, 232, 225, 0.62);
}

.empty-state {
  width: min(100%, 560px);
  text-align: center;
}

.empty-state h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 7vw, 52px);
  color: #f0ece5;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(255, 129, 39, 0.22);
}

.empty-state p {
  margin: 0;
  color: rgba(236, 232, 225, 0.66);
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .ad-page,
  .empty-page {
    padding: 14px;
  }

  .redirect-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .continue-button {
    width: 100%;
  }
}
