/* v8.5.3 homepage cover review */
body:has(.life-cover:not(.hidden)) {
  background: #0b100f;
}

#life847:has(.life-cover:not(.hidden)) {
  max-width: none;
  padding: 0;
}

.panel.life-cover,
.life-cover {
  position: relative;
  display: grid !important;
  /* Keep the interactive deck in the normal flow until there is genuinely
     enough room for the two-column art direction. */
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 48px);
  min-height: 100vh;
  margin: 0 !important;
  padding: clamp(66px, 7vw, 108px) clamp(24px, 8vw, 132px) clamp(60px, 7vw, 104px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  isolation: isolate;
  overflow: hidden;
  color: #f4f3ed;
  background: #151814 url("./cover-bg-v2.png") center / cover no-repeat !important;
}

.life-cover.hidden {
  display: none !important;
}

.life-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 13, 11, .95) 0%, rgba(8, 13, 11, .86) 30%, rgba(8, 13, 11, .43) 57%, rgba(8, 13, 11, .12) 100%),
    linear-gradient(0deg, rgba(7, 10, 9, .58) 0%, transparent 35%, rgba(5, 8, 7, .2) 100%);
}

.life-cover-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 77% 69%, rgba(225, 189, 120, .16), transparent 24%),
    linear-gradient(115deg, transparent 0 57%, rgba(240, 226, 190, .08) 57.1% 57.3%, transparent 57.4% 100%);
  mix-blend-mode: screen;
}

.life-cover-copy {
  position: relative;
  z-index: 4;
  max-width: 610px;
}

.life-cover-kicker {
  margin: 0 0 18px;
  color: #d6c395;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.life-cover h1 {
  margin: 0;
  color: #f4f3ed;
  font-size: clamp(45px, 6.1vw, 96px);
  font-weight: 850;
  letter-spacing: -.085em;
  line-height: .99;
  text-shadow: 0 7px 24px rgba(0, 0, 0, .26);
}

.life-cover h1 em {
  color: #d2e0c9;
  font-style: normal;
}

.life-cover-lede {
  max-width: 520px;
  margin: 27px 0 0;
  color: #c0c2b5;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.8;
}

.life-cover-lede strong {
  color: #f4f0e5;
  font-weight: 800;
}

.life-cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-height: 50px;
  margin-top: 34px;
  padding: 13px 17px;
  border: 0;
  border-radius: 12px;
  color: #1b241d;
  background: #d7c28e;
  box-shadow: 0 14px 34px rgba(19, 24, 18, .3);
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.life-cover-cta span {
  font-size: 19px;
  transition: transform .2s ease;
}

.life-cover-cta:hover {
  background: #e2d0a3;
  box-shadow: 0 18px 40px rgba(19, 24, 18, .42);
  transform: translateY(-2px);
}

.life-cover-cta:hover span {
  transform: translateX(4px);
}

.life-cover-micro {
  margin: 18px 0 0;
  color: #abae9f;
  font-size: 11px;
  letter-spacing: .03em;
}

.life-cover-note {
  min-height: 18px;
  margin: 15px 0 0;
  color: #ead39a;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .26);
}

.life-cover-table {
  position: relative;
  z-index: 5;
  width: min(100%, 670px);
  min-width: 0;
  pointer-events: auto;
}

.life-cover-table-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(245, 238, 216, .28);
  color: #ead9ae;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.life-cover-table-label span:last-child {
  color: #f1eadb;
  font-weight: 700;
  letter-spacing: .08em;
}

.life-cover-card-intro {
  margin: 13px 0 0;
  color: #d2cbb9;
  font-size: 14px;
  line-height: 1.6;
}

.life-cover-card-stage {
  position: relative;
  height: clamp(390px, 41vw, 520px);
  min-height: 375px;
  margin: 0 -22px -12px;
  perspective: 1500px;
}

.life-cover-card-stage::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 4%;
  bottom: 10%;
  height: 22%;
  border-radius: 50%;
  background: rgba(8, 12, 9, .44);
  filter: blur(24px);
  transform: rotate(-4deg);
}

.life-cover-card-stage::after {
  content: "點一下，翻開你的第一個方向";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  color: rgba(245, 238, 216, .72);
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.life-cover-card {
  --card-tilt: 0deg;
  --card-lift: 0px;
  position: absolute;
  top: 0;
  display: block;
  width: clamp(170px, 15.4vw, 222px);
  height: clamp(252px, 22.2vw, 324px);
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #27302a;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  text-align: left;
  transform: translateY(var(--card-lift)) rotate(var(--card-tilt));
  transform-style: preserve-3d;
  transition: transform .42s cubic-bezier(.2, .85, .3, 1), filter .3s ease;
}

.life-cover-card:nth-child(1) { left: 5%; top: 14%; --card-tilt: -9deg; z-index: 1; }
.life-cover-card:nth-child(2) { left: 32%; top: 2%; --card-tilt: 1deg; z-index: 3; }
.life-cover-card:nth-child(3) { left: 59%; top: 15%; --card-tilt: 9deg; z-index: 2; }
.life-cover-card:hover { --card-lift: -14px; filter: brightness(1.04); }
.life-cover-card.is-selected { --card-lift: -21px; z-index: 8; filter: brightness(1.07); }
.life-cover-card:focus-visible { outline: 2px solid #f0d994; outline-offset: 6px; }

.life-cover-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .78s cubic-bezier(.2, .72, .25, 1);
}

.life-cover-card.is-flipped .life-cover-card-inner { transform: rotateY(180deg); }

.life-cover-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 25px rgba(3, 6, 4, .25), 0 4px 8px rgba(3, 6, 4, .18);
}

.life-cover-card-back {
  justify-content: space-between;
  padding: 19px 17px 16px;
  border: 1px solid rgba(239, 221, 179, .56);
  color: #ecdcae;
  background: #254b3d url("./card-back-v2.png") center / cover no-repeat;
}

.life-cover-card-back::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(239, 221, 179, .32);
  border-radius: 4px;
}

.life-cover-card-back-top,
.life-cover-card-back-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.life-cover-card-back-bottom {
  color: rgba(239, 221, 179, .75);
  letter-spacing: .08em;
}

.life-cover-card-front {
  padding: 18px 17px 16px;
  border: 1px solid rgba(51, 55, 43, .25);
  color: #29322b;
  background: #e7dcc5 url("./card-paper-v2.png") center / cover no-repeat;
  transform: rotateY(180deg);
}

.life-cover-card-front-top {
  display: flex;
  justify-content: space-between;
  color: #68705f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.life-cover-card-front-main {
  margin-top: auto;
  color: #243c2e;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 900;
  letter-spacing: -.1em;
  line-height: 1;
}

.life-cover-card-front-line {
  max-width: 165px;
  margin-top: 19px;
  color: #49554a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.life-cover-card-front-rule {
  width: 30px;
  height: 1px;
  margin: 17px 0 12px;
  background: #79917b;
}

.life-cover-card-front-footer,
.life-cover-card-front-number {
  color: #68705f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.life-cover-card-front-number {
  margin-top: auto;
  color: #697664;
  font-weight: 900;
  letter-spacing: .08em;
}

.life-cover-caption,
.life-cover-version {
  position: absolute;
  bottom: 24px;
  z-index: 3;
  margin: 0;
  color: rgba(241, 232, 208, .68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.life-cover-caption { left: clamp(24px, 8vw, 130px); }
.life-cover-version { right: clamp(24px, 8vw, 132px); letter-spacing: .14em; }

/* Two-column cover only on wide screens. This prevents a scaled browser or
   tablet viewport from pushing the cards outside the touchable viewport. */
@media (min-width: 1400px) {
  .panel.life-cover,
  .life-cover {
    grid-template-columns: minmax(300px, .82fr) minmax(480px, 1.18fr);
    gap: clamp(26px, 5vw, 84px);
  }

  .life-cover-table {
    width: min(100%, 670px);
  }
}

@media (max-width: 560px) {
  .panel.life-cover,
  .life-cover {
    min-height: 100svh;
    padding: 76px 20px 64px !important;
    gap: 30px;
  }

  .life-cover h1 { font-size: clamp(43px, 14vw, 68px); }
  .life-cover-lede { font-size: 14px; }
  .life-cover-cta { width: 100%; justify-content: center; margin-top: 27px; }
  .life-cover-table-label { font-size: 10px; }
  .life-cover-card-intro { font-size: 13px; }
  .life-cover-card-stage {
    height: 318px;
    min-height: 300px;
    margin: 0;
    width: 100%;
  }
  .life-cover-card-stage::after { bottom: 0; font-size: 9px; letter-spacing: .08em; }
  .life-cover-card { width: clamp(116px, 31vw, 160px); height: clamp(177px, 43vw, 230px); }
  .life-cover-card:nth-child(1) { top: 15%; }
  .life-cover-card:nth-child(2) { top: 4%; }
  .life-cover-card:nth-child(3) { top: 16%; }
  .life-cover-card-back { padding: 12px 10px 10px; }
  .life-cover-card-back-top, .life-cover-card-back-bottom { font-size: 7px; letter-spacing: .1em; }
  .life-cover-card-back::before { inset: 5px; }
  .life-cover-card-front { padding: 12px 11px 10px; }
  .life-cover-card-front-top { font-size: 7px; }
  .life-cover-card-front-main { font-size: 30px; }
  .life-cover-card-front-line { margin-top: 12px; font-size: 11px; }
  .life-cover-card-front-rule { margin: 11px 0 8px; }
  .life-cover-card-front-footer, .life-cover-card-front-number { font-size: 8px; }
  .life-cover-caption { left: 20px; bottom: 18px; font-size: 9px; }
  .life-cover-version { right: 20px; bottom: 18px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .life-cover *,
  .life-cover *::before,
  .life-cover *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
