* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #2d0304;
  --surface: #fff4e1;
  --surface-strong: #fff9ef;
  --text: #3c1408;
  --accent: #cf0e11;
  --accent-strong: #8f0000;
  --accent-light: #ffce63;
  --shadow: 0 18px 40px rgba(83, 9, 10, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    sans-serif;
  color: var(--text);
  background: #c70000;
}

.page {
  width: min(100%, 750px);
  margin: 0 auto;
  padding: 0 0 calc(118px + env(safe-area-inset-bottom));
}

.gallery {
  margin: 0;
}

.gallery__list {
  display: grid;
  gap: 0;
}

.gallery__card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gallery__image {
  display: block;
  width: 100%;
  border-radius: 0;
  object-fit: cover;
}

.gallery__empty {
  margin: 24px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 248, 235, 0.95);
  color: #6d2018;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: calc(5px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(calc(100vw - 16px), 750px);
  min-height: 84px;
  padding: 10px 14px;
  border: 2px solid rgba(255, 232, 190, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 36%, transparent 37%),
    linear-gradient(180deg, #ff6a3a 0%, #ef230d 58%, #d40000 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.45) inset,
    0 8px 18px rgba(93, 8, 5, 0.28);
  text-decoration: none;
  transform: translateX(-50%) scale(1);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  animation: ctaPulse 2.2s ease-in-out infinite;
}

.floating-cta--disabled {
  pointer-events: none;
  filter: grayscale(0.15);
}

.floating-cta__shine {
  position: absolute;
  inset: 0 auto 0 -34%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: ctaShine 2.8s linear infinite;
}

.floating-cta__badge {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 48px;
  padding: 5px 5px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 6px rgba(120, 11, 9, 0.18);
}

.floating-cta__text {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  color: #fff9ef;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(120, 11, 9, 0.22);
}

.floating-cta__hand {
  position: relative;
  flex: 0 0 auto;
  width: clamp(58px, 10vw, 92px);
  height: auto;
  transform-origin: 75% 70%;
  filter: drop-shadow(0 4px 8px rgba(120, 11, 9, 0.24));
  animation: handTap 1.2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.45) inset,
      0 8px 18px rgba(93, 8, 5, 0.28);
  }

  50% {
    transform: translateX(-50%) scale(1.025);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.6) inset,
      0 10px 24px rgba(93, 8, 5, 0.36),
      0 0 22px rgba(255, 204, 123, 0.3);
  }
}

@keyframes ctaShine {
  0% {
    left: -34%;
  }

  100% {
    left: 112%;
  }
}

@keyframes handTap {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  35% {
    transform: rotate(-10deg) scale(1.05);
  }

  55% {
    transform: rotate(2deg) scale(0.98);
  }

  75% {
    transform: rotate(-6deg) scale(1.03);
  }
}

@media (max-width: 360px) {
  .page {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .floating-cta {
    width: calc(100vw - 8px);
    min-height: 72px;
    gap: 10px;
    padding: 8px 10px;
  }

  .floating-cta__badge {
    min-width: 82px;
    min-height: 48px;
    padding: 6px 10px;
    font-size: 22px;
  }

  .floating-cta__text {
    font-size: 24px;
  }

  .floating-cta__hand {
    width: 52px;
  }
}
