:root {
  font-family: "Arial Black", "Franklin Gothic Medium", system-ui, sans-serif;
  background-color: #fff1f2;
  color: #111827;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(circle at top left, #ffe4e6 0%, #fff7cd 30%, #ffe1f0 60%, #fff1f2 100%);
  padding: 0 1rem 7rem;
}

.site-header {
  text-align: center;
  padding: 1.75rem 1rem 1.5rem;
  background: linear-gradient(120deg, #fff7aa 0%, #ffd700 45%, #ff9b05 100%);
  border-bottom: 4px solid #ff006e;
  box-shadow: 0 10px 22px rgba(255, 0, 110, 0.35);
  z-index: 10;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
}

.header-tagline {
  margin: 0.75rem auto 0;
  max-width: 32rem;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b91c1c;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem 1rem 4rem;
  width: min(100%, 72rem);
  margin: 0 auto;
}

.gallery h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-status {
  margin: 0.25rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1rem;
  border: 3px dashed #f97316;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.gallery-ring {
  display: grid;
  grid-template-areas:
    "top top top"
    "left gallery right"
    "bottom bottom bottom";
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

.gallery-ring__grid {
  grid-area: gallery;
}

.gallery-ring__edge {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-ring__edge--top {
  grid-area: top;
  flex-direction: column;
  text-align: center;
}

.gallery-ring__edge--top h3 {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.5rem;
}

.gallery-ring__edge--left {
  grid-area: left;
  flex-direction: column;
}

.gallery-ring__edge--right {
  grid-area: right;
  flex-direction: column;
}

.gallery-ring__edge--bottom {
  grid-area: bottom;
  flex-direction: column;
}

.gallery-ring__edge--left .ad-card,
.gallery-ring__edge--right .ad-card {
  width: min(100%, 18rem);
}

.gallery-ring__edge--bottom .ad-card {
  width: min(100%, 28rem);
}

.gallery-item {
  background: repeating-linear-gradient(
    45deg,
    #ffffff 0,
    #ffffff 18px,
    #ffe4e6 18px,
    #ffe4e6 36px
  );
  border: 4px solid #f97316;
  border-radius: 1rem;
  padding: 0.85rem;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  border-radius: 0.75rem;
  background: #e2e8f0;
  border: 2px solid #f97316;
}

.gallery-item figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  word-break: break-word;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.affiliate {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1.25rem;
}

.ad-card {
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    #fff5f7 0,
    #fff5f7 14px,
    #ffe3ec 14px,
    #ffe3ec 28px
  );
  border: 3px solid #ff006e;
  border-radius: 1rem;
  padding: 1.5rem 1rem 1.75rem;
  text-align: center;
  box-shadow: 0 14px 26px rgba(255, 0, 110, 0.35);
  transition: transform 0.2s ease;
  animation: flash 3.6s linear infinite;
}

.ad-card--clone {
  animation-delay: 0.6s;
}

.ad-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.ad-card h4 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ad-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.affiliate {
  border: 4px solid #f97316;
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.28);
}

.affiliate h3 {
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.5rem;
  text-align: center;
}

.affiliate-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.affiliate-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff8ed;
  border: 3px solid #f97316;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
  text-align: center;
}

.affiliate-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 2px solid #f97316;
  background: #fff;
}

.affiliate-card h4 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.affiliate-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.affiliate-cta,
.ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #0f172a;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(15, 23, 42, 0.5);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.affiliate-cta::after,
.ad-cta::after {
  content: "➜";
  font-size: 1.1rem;
}

.affiliate-cta:hover,
.ad-cta:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

.affiliate-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #6b7280;
}

.site-footer {
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(120deg, #ffd700 0%, #ff9b05 60%, #ff006e 100%);
  border-top: 4px solid #0f172a;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.25);
}

.ad-unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #ffef5a 0%, #ff006e 48%, #ffef5a 100%);
  color: #0f172a;
  padding: 1.15rem 1.5rem;
  border: 4px solid #ff006e;
  border-radius: 1.25rem;
  box-shadow: 0 16px 32px rgba(255, 0, 110, 0.4);
  z-index: 9000;
  animation: pulse 2s ease-in-out infinite alternate;
  text-align: center;
}

.ad-label {
  display: inline-block;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.ad-banner {
  position: sticky;
  top: 0;
  margin: 0 -1rem 1rem;
  border-radius: 0;
  border-left: none;
  border-right: none;
  animation-duration: 3s;
}

.ad-banner .ad-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.ad-rail {
  position: fixed;
  width: clamp(11rem, 18vw, 15rem);
  top: 5.5rem;
  bottom: 6.5rem;
  overflow-y: auto;
  padding: 1.35rem;
  border-radius: 1.5rem;
}

.ad-rail-left {
  left: 1rem;
}

.ad-rail-right {
  right: 1rem;
}

.ad-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 24rem);
  padding: 1.75rem 1.5rem;
  z-index: 9500;
  animation-duration: 1.5s;
  box-shadow: 0 20px 40px rgba(255, 0, 110, 0.45);
}

.ad-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  animation-duration: 2.4s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(255, 0, 110, 0.4);
  }
  100% {
    transform: scale(1.03);
    box-shadow: 0 20px 38px rgba(255, 0, 110, 0.55);
  }
}

@keyframes flash {
  0%,
  100% {
    box-shadow: 0 14px 26px rgba(255, 0, 110, 0.35);
  }
  50% {
    box-shadow: 0 14px 36px rgba(255, 0, 110, 0.6);
  }
}

@media (max-width: 1080px) {
  .ad-rail {
    display: none;
  }

  body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 900px) {
  .gallery-ring {
    grid-template-areas:
      "top"
      "gallery"
      "left"
      "right"
      "bottom";
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-ring__edge {
    flex-direction: column;
  }

  .gallery-ring__edge--left .ad-card,
  .gallery-ring__edge--right .ad-card,
  .gallery-ring__edge--bottom .ad-card {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .ad-overlay {
    top: auto;
    bottom: 6.5rem;
    transform: translate(-50%, 0);
  }

  .ad-sticky-bottom {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
  }
}
