@font-face {
  font-family: Flame;
  src: url("assets/Flame-Regular.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html, body {
  width: 970px;
  height: 250px;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.ad {
  --orange: #ff8732;
  --red: #d62300;
  --cream: #f5ebdc;
  --brown: #502314;
  position: relative;
  width: 970px;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(115deg, #ff9c45, #ff7a22 62%, #f2661b);
  color: var(--brown);
  font-family: Flame, Arial, sans-serif;
  cursor: pointer;
}

.grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(#7a29130e 1px, transparent 1px);
  background-size: 8px 8px;
}

.rays {
  position: absolute;
  width: 450px;
  height: 450px;
  left: 430px;
  top: -105px;
  border-radius: 50%;
  background: repeating-conic-gradient(#ffd08a22 0 8deg, transparent 8deg 17deg);
  animation: turn 40s linear infinite;
}

.bottom-shape {
  position: absolute;
  border-radius: 50% 50% 0 0;
  bottom: -98px;
  transform: rotate(-2deg);
}

.red {
  left: -80px;
  width: 740px;
  height: 150px;
  background: var(--red);
}

.brown {
  left: 430px;
  width: 650px;
  height: 132px;
  background: var(--brown);
  transform: rotate(3deg);
}

.logo {
  position: absolute;
  z-index: 5;
  left: 20px;
  top: 16px;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 #aa321a);
}

.message {
  position: absolute;
  z-index: 5;
  left: 110px;
  top: 18px;
  width: 360px;
}

.eyebrow {
  display: inline-block;
  background: var(--cream);
  color: var(--red);
  padding: 6px 13px 5px;
  border-radius: 22px;
  font: 900 13px/1 Flame, Arial;
}

.message h1 {
  margin: 22px 0 0;
  font: 900 58px/.75 Flame, Arial;
  color: var(--brown);
  letter-spacing: -2px;
  text-shadow:
    -3px -3px 0 var(--cream),
    3px -3px 0 var(--cream),
    -3px 3px 0 var(--cream),
    3px 3px 0 var(--cream),
    0 8px 0 #9f2f18;
}

.message h1 span {
  display: block;
}

.message h1 span:last-child {
  margin-top: 8px;
  color: var(--cream);
  font-size: 50px;
  text-shadow: 0 7px 0 #9f2f18;
}

.message p {
  margin: 12px 0 0;
  color: var(--cream);
  font: 700 14px/1.25 Flame, Arial;
  text-shadow: 0 2px 0 #842816;
}

.products {
  position: absolute;
  z-index: 5;
  left: 404px;
  top: -10px;
  width: 505px;
  height: 252px;
}

.product-item {
  position: absolute;
  top: 0;
  width: 270px;
  height: 100%;
}

.product-item.left {
  left: -14px;
}

.product-item.right {
  left: 236px;
}


.product-item .side {
    position: absolute;
    left: 31px;
    top: -5px;
    width: 59%;
    object-fit: contain;
    filter: drop-shadow(0 10px 8px #5c1d1060);
    animation: float 3.6s ease-in-out infinite;
}

.product-item .burger {
  position: absolute;
  left: 16%;
  bottom: 22px;
  width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 13px 10px #5c1d1060);
  animation: float 3.6s ease-in-out infinite;
  z-index: 1;
}

.caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  color: var(--cream);
  font: 900 11px Flame;
  text-shadow: 0 2px 0 #7a2712;
}

.badge {
  position: absolute;
  left: 181px;
  top: 34px;
  width: 108px;
  color: var(--cream);
  text-align: center;
  transform: rotate(2deg);
  text-shadow: 0 3px 0 #982d18;
}

.badge small,
.badge b,
.badge strong {
  display: block;
}

.badge small {
  font: 900 9px Flame;
}

.badge b {
  font: 900 14px/1 Flame;
}

.badge strong {
  font: 900 11px Flame;
}

.controls {
  position: absolute;
  z-index: 9;
  left: 116px;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}

.switcher button {
  height: 25px;
  border: 1.5px solid var(--cream);
  border-radius: 14px;
  background: transparent;
  color: var(--cream);
  padding: 0 9px;
  font: 900 8px Flame;
  cursor: pointer;
  transition: .15s;
}

.switcher button.active {
  background: var(--cream);
  color: var(--red);
  transform: translateY(-2px);
}

#cta {
  height: 28px;
  border: 0;
  border-radius: 16px;
  background: var(--cream);
  color: var(--red);
  padding: 0 15px;
  font: 900 9px Flame, Arial;
  box-shadow: 0 4px 0 var(--brown);
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
}

#cta:hover {
  transform: translateY(-2px);
}

.legal {
  position: absolute;
  z-index: 9;
  right: 10px;
  bottom: 4px;
  margin: 0;
  color: #ffd8bd;
  font: 7px Arial;
}

.ad.flash .message {
  animation: pop .28s ease;
}

.ad.flash .product-item .burger {
  animation: productPop .3s ease;
}

@keyframes float {
  50% { transform: translateY(-5px) rotate(.5deg); }
}

@keyframes turn {
  to { transform: rotate(360deg); }
}

@keyframes pop {
  50% { transform: scale(1.035); }
}

@keyframes productPop {
  50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
