:root {
  --blue: #2f80ed;
  --blue-top: #2b8cff;
  --blue-mid: #4da3ff;
  --purple: #6c5ce7;
  --purple-deep: #5b4ed4;
  --ink: #1c2430;
  --muted: #8a94a6;
  --sheet: #f4f6f8;
  --card: #ffffff;
  --star: #ffc107;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--sheet);
}

.hero.guide-hero { padding-bottom: 48px; }
.guide-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
}
.back {
  color: white;
  font-weight: 750;
  text-decoration: none;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 14px;
}
.guide {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 20px 48px;
  text-align: start;
}
html[dir="rtl"] .guide ul { padding-left: 0; padding-right: 1.2rem; }
.guide article {
  background: white;
  border-radius: 22px;
  padding: 18px 20px 20px;
  margin-top: 12px;
}
.guide h2 { margin: 0 0 8px; font-size: 20px; }
.guide h2 time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  margin-inline-start: 8px;
}
.guide p, .guide li { color: #526074; line-height: 1.5; font-size: 16px; }
.guide p { margin: 0 0 10px; }
.guide p:last-child { margin-bottom: 0; }
.guide ul { margin: 0; padding-left: 1.2rem; }
.guide li + li { margin-top: 6px; }
.hero {
  position: relative;
  background:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.22) 0 18px, transparent 19px),
    radial-gradient(circle at 28% 48%, rgba(255,255,255,.16) 0 22px, transparent 23px),
    radial-gradient(circle at 48% 18%, rgba(255,255,255,.18) 0 16px, transparent 17px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.2) 0 24px, transparent 25px),
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.16) 0 18px, transparent 19px),
    radial-gradient(circle at 18% 78%, rgba(255,255,255,.12) 0 20px, transparent 21px),
    radial-gradient(circle at 82% 72%, rgba(255,255,255,.14) 0 16px, transparent 17px),
    linear-gradient(180deg, var(--blue-top) 0%, var(--blue-mid) 100%);
  color: white;
  padding: 22px 20px 92px;
  overflow: visible;
}
.nums {
  position: absolute;
  inset: 0;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0;
  color: rgba(255,255,255,.28);
  pointer-events: none;
  user-select: none;
  line-height: 1.55;
  padding: 8px 14px;
}
.topbar, .wrap, .cards { position: relative; z-index: 1; }
.topbar {
  z-index: 4;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: white;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(10, 40, 90, .18);
}
.langbox { position: relative; }
.lang {
  color: white;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 14px;
}
.lang::-webkit-details-marker { display: none; }
.langmenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 196px;
  max-height: 70vh;
  overflow: auto;
  background: white;
  color: var(--ink);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(10, 40, 90, .28);
  display: grid;
}
[dir="rtl"] .langmenu { right: auto; left: 0; }
.langmenu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
}
.langmenu a[aria-current="page"] { background: #e7f1ff; color: var(--blue); }
.langmenu a:hover { background: #f3f6fb; }
html[lang="zh"] .rule,
html[lang="zh"] .kicker,
html[lang="zh"] .play,
html[lang="zh"] .pill,
html[lang="ja"] .rule,
html[lang="ja"] .kicker,
html[lang="ja"] .play,
html[lang="ja"] .pill,
html[lang="ko"] .rule,
html[lang="ko"] .kicker,
html[lang="ko"] .play,
html[lang="ko"] .pill { letter-spacing: 0.02em; }
.wrap {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.logo-title {
  margin: 22px 0 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
}
.logo {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(10, 40, 90, .28);
}
.lead {
  margin: 16px auto 0;
  max-width: 34rem;
  text-align: center;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255,255,255,.95);
}

.cards {
  max-width: 880px;
  margin: -64px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card {
  border-radius: 26px;
  padding: 22px 20px 18px;
  min-height: 168px;
  box-shadow: 0 14px 30px rgba(28, 36, 48, .12);
  transition: transform .2s ease;
}
a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.card:hover { transform: translateY(-4px); }
a.card:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.card.purple {
  background: linear-gradient(160deg, #7a6cf0, var(--purple-deep));
  color: white;
}
.card.white { background: var(--card); color: var(--ink); }
.kicker {
  margin: 14px 0 6px;
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 750;
  opacity: .8;
}
.card h2 { margin: 0 0 14px; font-size: 22px; font-weight: 750; }
.pill {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 750;
  font-size: 13px;
  letter-spacing: .04em;
}
.card.purple .pill { background: rgba(255,255,255,.22); color: white; }
.card.white .pill { background: #e7f1ff; color: var(--blue); }
.bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.card.purple .bubble { background: rgba(255,255,255,.2); color: white; }
.card.white .bubble { background: #e8f1ff; color: var(--blue); }
.bubble svg { display: block; }

.sheet { max-width: 880px; margin: 0 auto; padding: 28px 20px 48px; }
.rule {
  text-align: center;
  color: var(--muted);
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 750;
  margin: 28px 0 8px;
}
.big {
  text-align: center;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  margin: 0 0 22px;
}
.big span { color: var(--star); }

.play {
  display: block;
  max-width: 520px;
  margin: 8px auto 28px;
  background: var(--blue);
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 18px;
  border-radius: 999px;
  padding: 18px 24px;
  box-shadow: 0 10px 24px rgba(47, 128, 237, .35);
}

.stage {
  max-width: 1040px;
  margin: 4px auto 0;
  padding: 0 16px 8px;
}
.stage .rule { margin-top: 4px; }
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  min-height: 360px;
  padding: 26px 4px 4px;
}
.phone {
  --tilt: 0deg;
  flex: 0 0 128px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transform: rotate(var(--tilt)) translateY(12px);
  transition: transform .55s cubic-bezier(.2, .85, .2, 1), flex-basis .55s cubic-bezier(.2, .85, .2, 1);
}
.phone:nth-child(1) { --tilt: -7deg; }
.phone:nth-child(2) { --tilt: -3.5deg; }
.phone:nth-child(3) { --tilt: 0deg; }
.phone:nth-child(4) { --tilt: 3.5deg; }
.phone:nth-child(5) { --tilt: 7deg; }
.phone.is-on {
  flex-basis: 188px;
  z-index: 2;
  transform: rotate(0deg) translateY(-26px);
}
.bezel {
  display: block;
  position: relative;
  background: linear-gradient(180deg, #2c3446, #121722);
  border-radius: 28px;
  padding: 16px 8px 14px;
  box-shadow: 0 16px 28px rgba(28, 36, 48, .16);
}
.bezel::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 46px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #0c1018;
}
.phone.is-on .bezel {
  animation: phone-glow 2.6s ease-in-out infinite;
}
@keyframes phone-glow {
  0%, 100% {
    box-shadow: 0 26px 46px rgba(47, 128, 237, .32), 0 0 0 3px rgba(108, 92, 231, .4);
  }
  50% {
    box-shadow: 0 34px 58px rgba(47, 128, 237, .5), 0 0 0 5px rgba(255, 193, 7, .45);
  }
}
.screen { position: relative; display: block; }
.screen img, .screen video {
  width: 100%;
  aspect-ratio: 392 / 854;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: #d7e4f6;
}
.screen video {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity .45s ease;
}
.phone.is-on video.is-playing { opacity: 1; }
.phone-name {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--muted);
}
.phone.is-on .phone-name { color: var(--ink); }
.phone:focus-visible { outline: none; }
.phone:focus-visible .bezel { outline: 3px solid var(--blue); outline-offset: 4px; }

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.points article {
  background: white;
  border-radius: 22px;
  padding: 16px 16px 18px;
}
.points h3 { margin: 0 0 6px; font-size: 16px; }
.points p { margin: 0; color: #526074; line-height: 1.4; font-size: 14px; }

footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 20px 36px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
footer a { color: var(--blue); font-weight: 700; text-decoration: none; }

@media (max-width: 860px) {
  .phones {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 22px 12px 8px;
  }
  .phone, .phone.is-on {
    flex-basis: 168px;
    scroll-snap-align: center;
    transform: none;
  }
  .phone.is-on { transform: translateY(-12px); }
}
@media (max-width: 720px) {
  .cards, .points { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .phone, .phone.is-on, .bezel, .screen video, .card { transition: none; animation: none; }
  .phone, .phone.is-on, a.card:hover { transform: none; }
}
