:root {
  color-scheme: light;
  --ground: #e4ccf6;
  --white: var(--art-ink);
  --muted: #594174;
  --line: #fff3e3a8;
  --apk-clearance: calc(70px + var(--apk-bottom));
  --jp-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --jp-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "MS PMincho", serif;
  font-family: var(--jp-sans);
}

::selection { background: #d6b4f3; color: #352047; }
h1, h2 { font-family: var(--jp-serif); line-break: strict; letter-spacing: .025em; }
h1 {
  color: #532e71;
  font-size: clamp(2.38rem, 10.5vw, 5.9rem);
  line-height: 1.1;
  text-shadow: 0 1px 0 #fff8ee;
}
@supports (background-clip: text) and (paint-order: stroke fill) {
  h1 {
    width: fit-content;
    background: linear-gradient(154deg, #48235b 9%, #673684 36%, #9c528c 66%, #603478 95%);
    background-clip: text;
    color: transparent;
    paint-order: stroke fill;
    -webkit-text-stroke: .85px #ffeed4e0;
    text-shadow: none;
  }
}
h2 { color: #4b2b66; font-size: clamp(1.68rem, 6.1vw, 4rem); line-height: 1.21; }
.play-copy h2 span, .burst-copy h2 span { display: inline-block; }
p { line-break: strict; }
.hero-copy p { max-width: 30em; margin-top: 10px; line-height: 1.6; text-wrap: balance; }
.play-copy p, .burst-copy p { margin-top: 8px; font-size: clamp(.84rem, 3.4vw, 1rem); }
main {
  background:
    radial-gradient(ellipse at 83% 43%, #fff1fb 0%, transparent 52%),
    radial-gradient(ellipse at 7% 77%, #e0c0f4, transparent 51%),
    linear-gradient(170deg, #c7adea 0%, #ebd5fa 46%, #f5d9ec 72%, #c7a4e7 100%);
}
.hero, .play, .burst { background: transparent; }
.header { color: #43265c; }
.wordmark span { border-color: #8c5c90; background: linear-gradient(135deg, #fff2d4, #eac1f4); }
.hero .pin { isolation: isolate; }
.hero-sky {
  position: absolute;
  z-index: -1;
  inset: -28px 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #fff1f6b8, #f9e9fbce 31%, #f8e8fa28 60%, #ecd4f800 75%, #e5ccf6 100%),
    url("assets/art-v01/hero/hero-background.webp") center 36% / cover no-repeat;
  mask-image: linear-gradient(#000 82%, transparent 100%);
}
.scroll-link { position: relative; color: #492e69; font-weight: 650; }
.header .wordmark { letter-spacing: .035em; }

.box-stage { perspective: 920px; }
.box-stage::before {
  inset: -10%;
  background:
    radial-gradient(ellipse at 50% 78%, #fff6ddad, transparent 48%),
    radial-gradient(ellipse at 50% 50%, #fff1f3a6, transparent 61%);
}
.box-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 17% 5%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #71439b4d, #c094e133 43%, transparent 70%);
}
.orbit { border-color: #fff1c9; }
.orbit-outer { width: min(83%, 60svh); opacity: .75; }
.orbit-inner { width: min(69%, 52svh); border-style: solid; opacity: .53; }
.hero-box, .hero-role, .stage-moon, .stage-sparkle {
  position: absolute;
  height: auto;
  object-fit: contain;
}
.hero-box {
  z-index: 2;
  width: min(73%, 470px);
  max-height: 93%;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
}
.hero-role {
  z-index: var(--depth);
  width: var(--role-width);
  max-height: 55%;
  left: var(--role-x);
  top: var(--role-y);
  transform: translate(-50%, -50%);
}
.role-one { --role-width: 39%; --role-x: 15%; --role-y: 35%; --depth: 1; --float: 7px; --beat: 7.6s; --phase: -1.5s; }
.role-four { --role-width: 32%; --role-x: 85%; --role-y: 24%; --depth: 1; --float: 10px; --beat: 8.2s; --phase: -3.3s; }
.role-two { --role-width: 38%; --role-x: 21%; --role-y: 80%; --depth: 3; --float: 5px; --beat: 6.4s; --phase: -2.4s; }
.role-three { --role-width: 39%; --role-x: 83%; --role-y: 79%; --depth: 3; --float: 6px; --beat: 7s; --phase: -.6s; }
.stage-moon { width: 20%; max-height: 31%; right: 19%; top: -4%; opacity: .8; }
.stage-sparkle { width: 15%; max-height: 22%; z-index: 4; left: 5%; top: 64%; }

.play-progress { background: #a982e851; }
.play-progress span { background: #8254a7; }
.play .pin, .burst .pin { isolation: isolate; }
.play .pin::before, .burst .pin::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .54;
  pointer-events: none;
  background:
    url("assets/art-v01/decor/sparkle.png") right 8% top 12% / clamp(44px, 8vw, 102px) auto no-repeat,
    url("assets/art-v01/decor/star.png") left 8% bottom 16% / clamp(38px, 6vw, 82px) auto no-repeat,
    url("assets/art-v01/decor/cloud.png") right -55px bottom -70px / clamp(265px, 47vw, 535px) auto no-repeat,
    url("assets/art-v01/decor/cloud.png") left -98px top -105px / clamp(260px, 41vw, 445px) auto no-repeat;
}
.burst .pin::before {
  background:
    url("assets/art-v01/decor/star.png") right 8% top 18% / clamp(37px, 7vw, 90px) auto no-repeat,
    url("assets/art-v01/decor/cloud.png") left -80px bottom -34px / clamp(235px, 44vw, 485px) auto no-repeat,
    url("assets/art-v01/decor/cloud.png") right -135px top -80px / clamp(265px, 46vw, 470px) auto no-repeat;
}
.play-frame { row-gap: 16px; }
.stack li {
  --step-size: clamp(68px, min(24vw, 13.5svh), 112px);
  grid-template-columns: var(--step-size) minmax(0, 1fr);
  gap: clamp(9px, 3vw, 18px);
  padding: 7px 11px 7px 7px;
  min-height: calc(var(--step-size) + 16px);
  border: 1px solid transparent;
  border-radius: 15px;
  background: linear-gradient(133deg, #fffaff, #f3defc 58%, #efd0ef) padding-box,
    linear-gradient(126deg, #fff7e6, #dfb8ef 43%, #eac491 81%, #fff6de) border-box;
  box-shadow: 0 4px 7px #68448020, inset 0 1px #fff7;
}
.stack li:nth-child(2) { background: linear-gradient(125deg, #fff7ff, #e8d2fa) padding-box, linear-gradient(132deg, #fff0ce, #d8b4eb 52%, #fff3d5) border-box; }
.stack li:nth-child(3) { background: linear-gradient(125deg, #fff6fc, #f6d3ec) padding-box, linear-gradient(130deg, #fff3da, #e0b2dc 43%, #ffebbf) border-box; }
.stack img { display: block; width: 100%; height: auto; border-radius: 10px; }
.stack h3 { color: #44215d; line-height: 1.26; }
.stack p { font-size: clamp(.76rem, 3.15vw, .9rem); line-height: 1.44; text-wrap: balance; }
.step-number { display: block; padding: 0; color: #76509a; font-size: .72rem; }

.burst-stage {
  height: clamp(283px, min(59svh, calc(100svh - 267px)), 560px);
  perspective: 560px;
  background:
    radial-gradient(circle at 28% 27%, #fff8dc 0 2px, transparent 4px),
    radial-gradient(circle at 76% 37%, #fff 0 2px, transparent 4px),
    radial-gradient(circle at 66% 62%, #fff2cb 0 2px, transparent 4px),
    radial-gradient(circle at 31% 79%, #fff 0 1px, transparent 3px),
    radial-gradient(ellipse at 50% 56%, #fff3e4a6, #ad7ce34d 48%, transparent 72%);
}
.burst-orbit {
  inset: 13% 10% 7%;
  border-width: 0;
  transform: rotate(-24deg);
  background:
    radial-gradient(ellipse at 55% 54%, transparent 48%, #fff1cb 49%, transparent 50%) 0 0 / 92% 90%,
    radial-gradient(ellipse at 42% 48%, transparent 54%, #fffcf3a6 55%, transparent 56%) 100% 88% / 95% 78%;
  background-repeat: no-repeat;
  mask-image: linear-gradient(146deg, #000 5%, transparent 35%, #000 67%, transparent 90%);
  opacity: .64;
}
.burst-core {
  background:
    url("assets/art-v01/decor/sparkle.png") center / 83% no-repeat,
    radial-gradient(circle, #fffdf3 2%, #ffe7b9 15%, #efd0ffad 36%, transparent 72%);
}
.burst-box { height: auto; object-fit: contain; background: none; }
.burst-box.far { width: clamp(52px, 17vw, 108px); filter: none; }
.burst-box.mid { width: clamp(63px, 20.5vw, 138px); }
.burst-box.near { width: clamp(79px, 25.2vw, 174px); filter: none; }

.apk-button.blindbox-art-cta {
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  padding: 9px clamp(13px, 4vw, 24px);
  font-family: var(--jp-sans);
  font-size: clamp(14px, 4.1vw, 17px);
  background: linear-gradient(110deg, #a43b85, #923da7 50%, #6739a7);
  overflow: visible;
  transition: none;
}
.apk-button.blindbox-art-cta::before, .apk-button.blindbox-art-cta::after { content: none; }
.apk-button.blindbox-art-cta:active { transform: none; }
.apk-button.blindbox-art-cta[aria-disabled="true"] { opacity: 1; }
.apk-button.blindbox-art-cta:focus-visible { outline-color: #4f2672; }
.apk-shimmer {
  position: absolute;
  inset: 2px;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(#fff4 0%, transparent 44%);
}
.apk-label, .apk-status { position: relative; z-index: 1; }
.apk-status { color: #fff; background: #492b7573; padding: 3px 7px; border-radius: 999px; }

@media (min-width: 760px) {
  .hero-sky {
    background:
      linear-gradient(90deg, #f3e2f9 0%, #f3e2f9eb 28%, #ead6f7a0 49%, #ead6f735 78%, #eddbf599),
      linear-gradient(0deg, #eedcf9 2%, transparent 23%),
      url("assets/art-v01/hero/hero-background.webp") 76% 50% / cover no-repeat;
  }
  .box-stage { height: clamp(350px, 58svh, 600px); }
  .hero-copy { align-self: end; }
  .hero-frame .scroll-link { align-self: start; margin-top: 14px; }
  .stack li { --step-size: clamp(97px, 9vw, 133px); padding-right: 20px; }
  .stack h3 { font-size: 1.23rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion .burst-box { opacity: 0; }
  .motion .burst-active .burst-box {
    animation: box-reveal 650ms var(--burst-delay, 0ms) both;
  }
}
@keyframes box-reveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--burst-x), var(--burst-y)) rotateY(24deg) scale(.42);
    animation-timing-function: cubic-bezier(.16, .7, .31, 1);
  }
  26% { opacity: 1; }
  71% {
    transform: translate(-50%, -50%) translate(calc(-.042 * var(--burst-x)), calc(-.042 * var(--burst-y)))
      rotate(var(--burst-spin)) rotateY(-9deg) scale(1.035);
    animation-timing-function: ease-out;
  }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--angle)); }
}
