:root {
  --bg-color: #000000;
  --text-main: rgba(255, 255, 255, 0.9);
  --text-sub: rgba(255, 255, 255, 0.6);
  --ui-scale: 1;
  --ease-cubic: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: "SartSansBold";
  src:
    url("/assets/font/SartSans-Bold.woff2") format("woff2"),
    url("/assets/font/SartSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.viewport {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.bg-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
  opacity: 0;
  transform: translate3d(var(--bg-start-x, 46px), 0, 0);
  transition: opacity 700ms var(--ease-cubic), transform 700ms var(--ease-cubic);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform, opacity;
}

.bg-cover.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.stage {
  position: absolute;
  width: 1280px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--ui-scale));
  transform-origin: center center;
  background: transparent;
  z-index: 2;
  opacity: 0;
}

.stage.is-ready {
  opacity: 1;
  transition: opacity 120ms linear;
}

.bg-layer {
  position: absolute;
  inset: 0;
}

.char-layer {
  position: absolute;
  left: 600px;
  top: 29px;
  width: 800px;
  height: 800px;
}

.char-image {
  position: absolute;
  left: 0;
  bottom: 110px;
  width: 800px;
  height: 800px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
}

.anim-char {
  opacity: 0;
  transform: translate3d(var(--char-start-x, 220px), 0, 0);
  transition: opacity 900ms var(--ease-cubic), transform 900ms var(--ease-cubic);
}

.anim-char.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.content-layer {
  position: absolute;
  left: 131px;
  top: 141px;
  width: 420px;
}

.logo-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 180px;
  height: 59.25px;
  background-size: contain;
  background-position: left top;
  background-repeat: no-repeat;
}

.headline {
  position: absolute;
  left: 0;
  top: 100px;
  width: 520px;
}

.headline-line {
  margin: 0;
  white-space: nowrap;
  font-weight: 700;
  font-style: normal;
  font-size: 60px;
  line-height: 72px;
  color: var(--text-main);
  letter-spacing: 0;
  font-family: "SartSansBold", "Arial Narrow", sans-serif;
}

.wishlist-btn {
  position: absolute;
  left: 0;
  top: 258px;
  height: 64px;
  min-width: 340px;
  max-width: 420px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid #116db2;
  background: linear-gradient(180deg, #154366 0%, #0f3552 100%);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  transition: border-color 260ms ease, transform 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.wishlist-btn::before {
  content: "";
  position: relative;
  inset: 0;
  background: linear-gradient(120deg, rgba(56, 130, 186, 0.12), rgba(255, 255, 255, 0.14));
  transform: translateX(-100%);
  transition: transform 360ms var(--ease-cubic);
}

.wishlist-icon,
.wishlist-text {
  position: relative;
  z-index: 1;
}

.wishlist-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.wishlist-text {
  font-size: 32px;
  letter-spacing: 0;
  color: #ffffff;
  font-weight: 700;
  font-family: "SartSansBold", "Arial Narrow", sans-serif;
  white-space: nowrap;
  transform: translateY(3px);
}

html[lang="en"] .wishlist-text {
  transform: translateY(0px);
}


.wishlist-btn:hover,
.wishlist-btn:focus-visible {
  border-color: #32a1f2;
  transform: translateY(-2px);
  background: linear-gradient(180deg, #1b5a87 0%, #154a70 100%);
  box-shadow: 0 8px 20px rgba(18, 98, 160, 0.35);
}

.wishlist-btn:active {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #236a9c 0%, #1b5681 100%);
  box-shadow: 0 8px 20px rgba(18, 98, 160, 0.42);
}

.wishlist-btn:hover::before,
.wishlist-btn:focus-visible::before {
  transform: translateX(0);
}

.community-label {
  position: absolute;
  left: 0;
  top: 362px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-sub);
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans", sans-serif;
}

.social-row {
  position: absolute;
  left: 0;
  top: 406px;
  display: flex;
  gap: 15px;
}

.social-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.social-icon {
  width: 48px;
  height: 48px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.social-btn:hover,
.social-btn:focus-visible {
  background: rgba(17, 109, 178, 0.26);
  border-color: rgba(64, 167, 247, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
}

.anim-item {
  opacity: 0;
  transform: translate3d(52px, 0, 0);
  transition: opacity 560ms var(--ease-cubic), transform 560ms var(--ease-cubic);
}

.anim-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Keep wishlist lift effect even after anim-item.is-visible sets transform. */
.wishlist-btn.anim-item.is-visible:hover,
.wishlist-btn.anim-item.is-visible:focus-visible,
.wishlist-btn.anim-item.is-visible:active {
  transform: translate3d(0, -4px, 0);
}

html[lang="en"] .wishlist-btn,
html[lang="en-HK"] .wishlist-btn {
    min-width: 312px;
}

html[lang="zh-hans"] .wishlist-btn {
    min-width: 274px;
}

html[lang="zh-hants"] .wishlist-btn {
  min-width: 290px;
}
