* {
  box-sizing: border-box;
}

html,
body {
  width: 320px;
  height: 250px;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: 'proxima-nova', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.banner {
  position: relative;
  display: block;
  width: 320px;
  height: 250px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #021e40 url('assets/bg.png') center / cover no-repeat;
}

.banner:focus-visible {
  outline: 2px solid #ff6422;
  outline-offset: -2px;
}

.logo {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 142px;
  height: auto;
}

.event-date {
  position: absolute;
  top: 17px;
  right: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.frames {
  position: absolute;
  top: 62px;
  right: 18px;
  bottom: 78px;
  left: 18px;
}

.frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: rotate-copy 12s ease-in-out infinite;
}

.frame-2 {
  animation-delay: 4s;
}

.frame-3 {
  animation-delay: 8s;
}

.cta-block {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-align: right;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.cta-copy {
  max-width: 205px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.cta-copy span {
  color: #ff6422;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 24px;
  background: #ff6422;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
}

@keyframes rotate-copy {
  0%,
  25% {
    opacity: 1;
  }
  33.333%,
  91.667% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

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

  .frame-1 {
    opacity: 1;
  }
}
