/* After editing this file: increment assets/VERSION and ?v= in all *.html */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+HK:wght@400;500;700&display=swap");

:root {
  --site-body-bg: #f8f9fa;
  --site-card-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans HK", "Arial Unicode MS", Arial, sans-serif;
  line-height: 1.75;
  color: #333;
  background: linear-gradient(to bottom, var(--site-body-bg), #e9ecef);
  padding: 20px 10px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--site-card-bg);
  border-radius: 0;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.18),
    0 10px 20px -10px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.content {
  padding: 40px 30px;
}

h1 {
  font-size: clamp(24px, 5.5vw, 32px);
  text-align: center;
  margin-bottom: 2.2rem;
  color: #222;
  line-height: 1.3;
  font-weight: 700;
}

h1 .accent {
  color: #ff9900;
}

h2 {
  font-size: clamp(20px, 4.5vw, 26px);
  text-align: center;
  margin: 2.8rem 0 1.6rem;
  color: #d32f2f;
  font-weight: 700;
}

p {
  margin-bottom: 1.6rem;
  font-size: clamp(15.5px, 4vw, 18px);
  text-align: justify;
}

.center {
  text-align: center;
}

img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Images span full card width; transparent PNGs use card background */
.content img {
  width: calc(100% + 60px);
  max-width: calc(100% + 60px);
  margin-left: -30px;
  margin-right: -30px;
  background-color: var(--site-card-bg);
}

.content a:has(> img) {
  display: block;
  background-color: var(--site-card-bg);
}

/* Clickable CTA images: gentle up/down float only */
.cta-float-link {
  display: block;
  cursor: pointer;
  animation: cta-float-bounce 2.4s ease-in-out infinite;
  transition:
    filter 0.2s ease,
    background-color 0.2s ease;
  background-color: transparent;
}

.content a.cta-float-link img {
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.cta-float-link:hover {
  filter: brightness(1.06);
  animation-duration: 1.8s;
  background-color: var(--site-card-bg);
}

.content a.cta-float-link:hover img {
  background-color: var(--site-card-bg);
}

.cta-float-link:active {
  filter: brightness(0.98);
  transform: translateY(2px);
}

@keyframes cta-float-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.caption {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  /* margin-top: -8px; */
  margin-bottom: 2rem;
  font-style: italic;
  line-height: 1.5;
}

.highlight {
  background: #fff8e1;
  padding: 24px;
  border-left: 6px solid #ff9800;
  margin: 2.5rem 0;
  border-radius: 0;
}

.media-fullbleed {
  width: calc(100% + 60px);
  margin: 2.5rem -30px 0;
}

.media-fullbleed img {
  width: calc(100% + 60px);
  max-width: calc(100% + 60px);
  margin: 0 -30px;
}

/* 2×2 image grid (overrides full-bleed rules on .content img) */
.content .img-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px;
  margin: 0 -30px;
  width: calc(100% + 60px);
}

.content .img-row img {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

@media (max-width: 768px) {
  .content {
    padding: 28px 20px;
  }

  .content img {
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }

  .content .img-row {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }

  .content .img-row img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .media-fullbleed {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }

  .media-fullbleed img {
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }
}

/* Promo code (optional per page) */
.promo-code-box {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

.promo-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.promo-code-row p {
  margin-bottom: 0 !important;
  text-align: center;
}

.promo-code-title {
  padding: 6px 12px;
  border-radius: 12px;
}

.code-reveal-btn {
  font-weight: 900;
  cursor: pointer;
  font-size: clamp(1.35rem, 4.8vw, 2.05rem);
  padding: 30px 26px 18px;
  border: 0;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  margin-inline: auto;
  background: linear-gradient(135deg, #ff0000 0%, #ff3b30 38%, #ff6a5c 100%);
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  position: relative;
  isolation: isolate;
  z-index: 1;
  outline: none;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
  animation: promoPulse 1.15s ease-in-out infinite;
}

.code-reveal-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.08) brightness(1.03);
  box-shadow: 0 34px 62px rgba(0, 0, 0, 0.4);
}

.code-reveal-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.34);
}

.code-reveal-btn:focus-visible {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.55),
    0 0 0 8px rgba(0, 0, 0, 0.18),
    0 34px 62px rgba(0, 0, 0, 0.4);
}

.code-reveal-btn__text {
  display: inline-block;
  font-size: clamp(1.25rem, 4.2vw, 1.75rem);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.code-reveal-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-130%) skewX(-18deg);
  opacity: 0.85;
  z-index: -1;
  animation: promoShine 2.6s ease-in-out infinite;
}

@keyframes promoPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes promoShine {
  0%,
  55% {
    transform: translateX(-130%) skewX(-18deg);
    opacity: 0;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(130%) skewX(-18deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-reveal-btn {
    animation: none;
  }
  .code-reveal-btn::after {
    animation: none;
    display: none;
  }
}

.code-reveal-value {
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #d32f2f;
  margin: 0.6rem 0 1.2rem !important;
  text-align: center;
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.code-reveal-value[hidden] {
  display: none !important;
}
