/* Activation page: Figma 16530:772304. Background and effects follow Santa. */
body.activation_page {
  padding-top: 0;
  background: #142048;
}
.activation_page header {
  background: #142048;
  backdrop-filter: none;
}
.activation_container {
  position: relative;
  overflow: hidden;
  padding-top: 108px;
  background-color: #004a66;
  background-image:
    url(../images/2026images/pp-xmas-2026-bottom-bg.png),
    linear-gradient(180deg, #211b53 0%, #09357e 49.52%, #004a66 100%);
  background-position:
    bottom -125px center,
    center;
  background-repeat: no-repeat;
  background-size:
    100% auto,
    100% 100%;
}
.activation_title {
  position: relative;
  z-index: 1;
  width: 575px;
  height: 165px;
  margin: 0 auto 16px;
}
.activation_bookshelf {
  position: absolute;
  top: 43px;
  left: 28px;
  width: 519px;
  height: 99px;
}
.activation_bookshelf img {
  position: absolute;
}
.activation_shelf_shadow {
  position: absolute;
  top: 85px;
  left: 0;
  width: 518px;
  height: 14px;
  background: rgba(26, 23, 27, 0.68);
  filter: blur(12px);
}
.activation_shelf {
  top: 70px;
  left: 0;
  width: 518px;
  height: 29px;
  box-shadow: 0 11px 12.3px rgba(0, 0, 0, 0.25);
}
.activation_books_left {
  top: 0;
  left: 6px;
  width: 61.98px;
  height: 83.26px;
}
.activation_books_right {
  top: 0.93px;
  left: 422px;
  width: 86.909px;
  height: 82.335px;
}
.activation_book_shadow_left {
  top: 66.4px;
  left: -1.42px;
  transform: rotate(180deg);
}
.activation_book_shadow_right {
  top: 66.4px;
  left: 396.58px;
}
.activation_bookshelf h1 {
  position: absolute;
  top: auto;
  bottom: 43.6px;
  left: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 354px;
  height: auto;
  margin: 0;
  padding: 0;
  color: #f1c683;
  font-family: "Playfair Display", "Noto Sans TC", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(42, 25, 5, 0.65);
}
.activation_story {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: min(608px, calc(100% - 32px));
  margin: 0 auto;
  color: #fcfcfc;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}
.activation_story p {
  width: 100%;
  margin: 0;
}
.activation_card_frame {
  width: 532px;
  max-width: 100%;
  padding: 20px 24px;
  box-sizing: border-box;
}
.activation_card {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  min-height: 600px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #180a1e;
  text-align: left;
}
/* Only the paper is distorted; photographs and text remain sharp. */
.activation_card::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  pointer-events: none;
  background: url(../images/2026images/activation-card-paper.svg) center / 100%
    100% no-repeat;
}
.activation_photo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 436 / 294;
  border-radius: 16px;
  overflow: hidden;
  background: #c6bdb5;
}
.activation_photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activation_card_text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.activation_card_stars {
  position: relative;
  height: 36px;
}
.activation_card_stars img {
  position: absolute;
  display: block;
}
.activation_card_star_large {
  left: 0;
  top: 5px;
}
.activation_card_star_small {
  left: 30px;
  top: 0;
  transform: rotate(180deg) scaleY(-1);
}
.activation_card_text p {
  overflow-wrap: break-word;
}
.activation_card_text .activation_card_location {
  margin-top: auto;
  text-align: left;
}
/* Keep the location clear of the raccoon art in the bottom-right corner. */
.activation_card[data-page="4"] .activation_card_location,
.activation_card[data-page="5"] .activation_card_location,
.activation_card[data-page="6"] .activation_card_location,
.activation_card[data-page="7"] .activation_card_location {
  padding-right: 115px;
  box-sizing: border-box;
}
.activation_pagination {
  display: flex;
  align-items: center;
  gap: 36px;
  width: 238px;
  height: 52px;
}
.activation_page_count {
  width: 70px;
  flex-shrink: 0;
  color: #f1c683;
  font-family: "Playfair Display", "Noto Sans TC", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.activation_page_button {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 85% 85% at 50% 22%,
    #fef1c0 20%,
    #ffd188 60%,
    #ffc06b 80%,
    #ffb04f 100%
  );
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #fcfcfc;
}
.activation_page_button > img {
  display: block;
}
.activation_page_button:disabled {
  background: transparent;
  box-shadow: none;
  cursor: default;
}
.activation_page_button:focus-visible {
  outline: 2px solid #fcfcfc;
  outline-offset: 4px;
}
.activation_bottom_deco {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1440 / 548;
  margin-top: 46px;
  overflow: hidden;
}
.activation_bottom_deco > img {
  display: block;
  width: 100%;
  height: auto;
}

.activation_bg_stars {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 1440px;
  height: 1707px;
  transform: translateX(-50%) scale(min(1, calc(100vw / 1440px)));
  transform-origin: top center;
  pointer-events: none;
}
.activation_page .santa-starfield-canvas {
  opacity: 0.55;
}
.activation_bg_star {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--star-width);
  height: var(--star-height);
  transform: var(--star-transform);
  transform-origin: 0 0;
  translate: 0 var(--star-parallax-y, 0px);
  will-change: translate;
  overflow: hidden;
}
.activation_bg_star img {
  position: absolute;
  top: calc(50% - var(--star-width) * 0.5577);
  left: -4.54%;
  width: 109.08%;
  height: calc(var(--star-width) * 1.1462);
}
@media (max-width: 767px) {
  .activation_container {
    padding-top: 100px;
    background-image:
      url(../images/2026images/pp-xmas-2026-bottom-bg.png),
      linear-gradient(180deg, #211b53 0%, #09357e 49.52%, #004a66 100%);
    background-position:
      bottom center,
      center;
    background-size:
      100% auto,
      100% 100%;
  }
  .activation_title {
    width: calc(100% - 32px);
    height: calc((100vw - 32px) * 165 / 575);
    margin-bottom: 24px;
  }
  .activation_bookshelf {
    left: 50%;
    top: 0;
    transform: translateX(-50%) scale(calc((100vw - 32px) / 575px));
    transform-origin: center top;
    margin-top: calc((100vw - 32px) * 43 / 575);
  }
  .activation_bookshelf h1 {
    bottom: calc(29px + 12px / ((100vw - 32px) / 575px));
    font-size: 34.7px;
  }
  .activation_card_frame {
    width: 358px;
    padding: 0;
  }
  .activation_card {
    min-height: 588px;
    padding: 16.15px;
    gap: 4px;
  }
  .activation_card::before {
    inset: -2px;
  }
  .activation_card_text {
    gap: 8px;
  }
  .activation_story {
    gap: 36px;
  }
  .activation_bottom_deco {
    margin-top: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .activation_bg_star {
    translate: none;
    will-change: auto;
  }
}
@media (max-width: 1023px) {
  .activation_bg_stars {
    display: none;
  }
}
/* Card variants: Figma 17258:426136 and 17258:426135. */
.activation_card_raccoon {
  display: none;
  position: absolute;
  z-index: 1;
  left: 351px;
  bottom: 33px;
  width: 106px;
  height: 118px;
  pointer-events: none;
}
.activation_card[data-page="4"] .activation_card_raccoon,
.activation_card[data-page="5"] .activation_card_raccoon,
.activation_card[data-page="6"] .activation_card_raccoon,
.activation_card[data-page="7"] .activation_card_raccoon {
  display: block;
}
.activation_card_raccoon img {
  display: block;
  width: 100%;
  height: 100%;
}
.activation_card_wishes_art {
  display: none;
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 493px;
  height: 573px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.activation_card_wishes_art img {
  display: block;
  width: 100%;
  height: 100%;
}
.activation_card[data-page="8"] {
  justify-content: center;
}
.activation_card[data-page="8"] .activation_photo,
.activation_card[data-page="8"] .activation_card_stars {
  display: none;
}
.activation_card[data-page="8"] .activation_card_wishes_art {
  display: block;
}
.activation_card[data-page="8"] .activation_card_text {
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  width: 300px;
  margin: 0 auto;
}
.activation_card[data-page="8"] .activation_card_text p {
  color: #fcfcfc;
  text-align: center;
}
@media (max-width: 767px) {
  .activation_card_raccoon {
    left: auto;
    right: 15px;
    bottom: 22px;
  }
  .activation_card[data-page="8"] .activation_card_text {
    width: 240px;
    margin: 0 auto;
  }
  .activation_card_wishes_art {
    width: 392px;
    height: 455.6px;
  }
}
