* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #f5f3fa;
  background: #1a1927;
  --surface: #262437;
  --line: #49445c;
  --muted: #d1cadd;
  --accent: #ad1938;
}

body {
  margin: 0;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
video:focus-visible {
  outline: 2px solid #ffb8c9;
  outline-offset: 4px;
}

img,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
  text-align: left;
}

h1,
h2,
h3 {
  line-height: 1.35;
}

h1 {
  font-size: clamp(1.55rem, 4vw, 2.4rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

p {
  color: var(--muted);
}

.wrap {
  width: min(100% - 2rem, 65rem);
  margin-inline: auto;
}

.site-header {
  background: #821128;
  padding-block: .75rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding-block: .75rem;
}

.brand,
.gift-logo {
  display: block;
  width: 96%;
  margin-inline: auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.gift-logo {
  height: auto;
  margin-top: 1rem;
}

.brand img,
.gift-logo {
  /* Center the visible artwork inside the asymmetrically padded WebP. */
  transform: translateX(-1.3117%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem 1.15rem;
  border-radius: .6rem;
  background: var(--accent);
  color: white;
  font-weight: 650;
}

.button:hover {
  background: #93132e;
}

.hero,
.download-section {
  text-align: center;
  background: linear-gradient(145deg, #87142e, #331e39 55%, #1a1927);
}

.hero {
  padding-block: clamp(1rem, 3vw, 2rem) 2rem;
}

.hero h1,
.section p,
.hero p {
  margin-top: .55rem;
}

.hero p,
.centered p {
  max-width: 38rem;
}

.hero .button,
.download-section .button,
.gift .button,
.vr-media .button {
  margin-top: 1rem;
}

.preview {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: .75rem;
  background: #2e293b;
}

.video-player {
  position: relative;
  min-width: 0;
  border-radius: .75rem;
}

.preview-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(145deg, #57374e, #302b40);
  cursor: pointer;
}

.preview-cover[hidden] {
  display: none;
}

.preview-cover canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .video-player {
  max-width: 44rem;
  margin: 0 auto 1rem;
}

.section {
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}

.centered {
  text-align: center;
}

.activity-list,
.gift-steps {
  max-width: 44rem;
  margin: 1rem auto 0;
  text-align: left;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, .9rem);
}

.activity-item {
  min-width: 0;
  padding: clamp(.45rem, 2vw, .85rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface);
}

.activity-item h3 {
  font-size: 1.05rem;
  font-weight: 650;
}

.activity-item .video-player {
  margin-top: .65rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
}

.card img {
  width: 100%;
  height: auto;
  margin: .8rem auto 0;
  border-radius: .5rem;
}

.gift-steps,
.feature-list {
  padding-left: 1.6rem;
}

.gift-steps {
  margin-inline: 0;
}

.feature-list {
  margin: .9rem 0 0;
}

.feature-list li,
.gift-steps li {
  padding: .2rem 0;
}

.split {
  display: grid;
  align-items: center;
  gap: 1rem 2rem;
}

.feature-image {
  width: 100%;
  height: auto;
  max-width: 42rem;
  margin: 1rem auto 0;
  border-radius: .75rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}

.model-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: .55rem;
  background: var(--surface);
}

.site-footer {
  padding-block: .5rem 1.25rem;
  background: #211f2e;
  font-size: .88rem;
}

.site-footer p + p {
  margin-top: .45rem;
}

@media (min-width: 44rem) {
  .split {
    grid-template-columns: minmax(12rem, 2fr) minmax(0, 3fr);
  }

  .split .feature-image {
    margin-top: 0;
  }
}

.raffle-section {
  text-align: center;
  color: #202437;
  background: linear-gradient(135deg, #fff7ed, #ecfdf5);
}

.raffle-section p {
  color: #465469;
}

.raffle-wheel-wrap {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1;
  margin: 1.25rem auto 0;
}

.raffle-wheel {
  position: absolute;
  inset: 5px;
  padding: 4px;
  border: 9px solid #facc15;
  border-radius: 50%;
  background: #08b957;
  box-shadow: 0 0 0 5px #f97316, 0 14px 26px #0004;
}

.raffle-wheel svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.raffle-pointer {
  position: absolute;
  z-index: 1;
  top: -7px;
  left: 50%;
  border: 15px solid transparent;
  border-top: 28px solid #fff;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 3px #555);
}

.raffle-center {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #c2410c;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 3px 12px #0005;
  transform: translate(-50%, -50%);
}

.raffle-center:disabled {
  opacity: .8;
  cursor: default;
}

.raffle-instructions {
  display: inline-block;
  margin: 1.15rem auto 0;
  padding-left: 1.25rem;
  text-align: left;
}

.raffle-winner {
  position: relative;
  overflow: hidden;
  max-width: 26rem;
  margin: 1rem auto 0;
  padding: 1rem;
  border: 2px solid #facc15;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(90deg, #b9460b, #a12838, #b9460b);
}

.raffle-winner strong {
  display: block;
  font-size: 1.75rem;
}

.raffle-winner a {
  position: relative;
  z-index: 1;
  margin-top: .8rem;
}

.raffle-winner p {
  color: inherit;
}

.raffle-winner .burst {
  position: absolute;
  color: #ffdd54;
  font-size: 1.15rem;
  pointer-events: none;
  animation: raffle-burst 1.15s ease-out infinite;
}

@keyframes raffle-burst {
  0% { transform: scale(.35) rotate(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1.45) rotate(180deg); opacity: 0; }
}
