:root {
  --night: #0b1030; --deep: #141c4d; --cobalt: #1f2b6e; --sky: #24357f;
  --cream: #fff3dc; --paper: #fffaf0; --ink: #14163a; --ink-2: #3d3f63;
  --sun: #f7c325; --sun-d: #c9930c; --tomato: #e8382f; --tomato-d: #a8231c; --mint: #1d9a6c;
  --blue: #2b55c8; --pink: #d9468f; --moon: #ffe39a;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font-family: var(--body); font-size: 17px; line-height: 1.7;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--sun); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
h1, h2, figcaption, .tagline, .brand span { font-family: var(--display); font-weight: var(--dw); }

html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
html[lang="ja"] body, html[lang^="zh"] body { line-break: strict; }
html[lang="ja"] h1, html[lang="ja"] h2 { word-break: auto-phrase; }
body { overflow-wrap: break-word; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px; background: rgba(11, 16, 48, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 243, 220, .12);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 2px var(--ink); flex: none; }
.brand span { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.langpick { position: relative; font-size: .85rem; flex: none; }
.langpick summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; line-height: 1.3;
  border: 1px solid rgba(255, 243, 220, .35); color: var(--cream);
}
.langpick summary span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick[open] summary { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.langpick ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  min-width: 13em; max-height: 70vh; overflow: auto; border-radius: 16px;
  background: var(--paper); color: var(--ink); box-shadow: 0 0 0 3px var(--ink), 0 18px 40px rgba(0, 0, 0, .45);
}
.langpick li a, .langpick li span { display: block; padding: 6px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.langpick li a:hover { background: #fdecc0; }
.langpick li [aria-current] { background: var(--sun); font-weight: 700; }

.hero {
  position: relative; overflow: hidden; padding: 56px 0 0;
  background: radial-gradient(120% 80% at 50% 0%, var(--sky) 0%, var(--cobalt) 38%, var(--deep) 72%, var(--night) 100%);
}
.sky, .sky::before, .sky::after { position: absolute; inset: 0; pointer-events: none; }
.sky::before, .sky::after { content: ""; }
.sky::before {
  background-image:
    radial-gradient(1.6px 1.6px at 20px 30px, #fff3dc 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 140px 90px, #fff3dc 50%, transparent 51%),
    radial-gradient(2px 2px at 230px 160px, #ffe39a 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 80px 210px, #fff3dc 50%, transparent 51%);
  background-size: 270px 250px; opacity: .7;
}
.sky::after {
  background-image:
    radial-gradient(1.4px 1.4px at 60px 50px, #fff3dc 50%, transparent 51%),
    radial-gradient(2.2px 2.2px at 300px 120px, #fff3dc 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 190px 300px, #ffe39a 50%, transparent 51%);
  background-size: 370px 340px; opacity: .55; animation: twinkle 5s ease-in-out infinite alternate;
}
.moon {
  position: absolute; z-index: 0; top: -2%; left: calc(50% + 10px); width: clamp(150px, 42vw, 270px); aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fff1c2 0%, var(--moon) 55%, #f4c95d 100%);
  box-shadow: 0 0 60px 18px rgba(255, 227, 154, .28), 0 0 160px 60px rgba(255, 227, 154, .12);
}
.hero .wrap { position: relative; display: grid; gap: 34px; align-items: center; padding-bottom: 56px; }
.copy { position: relative; z-index: 2; }
.hero h1 {
  margin: 0 0 6px; font-size: clamp(2.7rem, 7.4vw, 5.4rem); line-height: 1.08; letter-spacing: -.01em;
  color: var(--sun); text-shadow: 0 4px 0 var(--tomato-d), 0 8px 0 var(--ink), 0 14px 30px rgba(0, 0, 0, .45);
}
.tagline { margin: 18px 0 10px; font-size: clamp(1.2rem, 2.6vw, 1.65rem); line-height: 1.35; color: var(--cream); }
.lead { margin: 0 0 26px; max-width: 34em; font-size: 1.06rem; color: var(--cream); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: inline-block; border-radius: 10px; transition: transform .2s; }
.stores a:hover { transform: translateY(-3px); }
.stores img { display: block; height: 52px; width: auto; }

.stage { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.phone {
  position: relative; z-index: 2; border-radius: 34px; overflow: hidden; background: var(--deep);
  border: 6px solid var(--cream); box-shadow: 0 0 0 4px var(--ink), 0 24px 60px rgba(5, 8, 30, .7), 0 0 80px rgba(247, 195, 37, .18);
}
.phone video, .phone img { display: block; width: 100%; height: auto; }
.stage .phone { width: min(300px, 70vw); transform: rotate(2deg); }
.stick { position: absolute; z-index: 1; width: clamp(40px, 6vw, 62px); height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
.stick.s1 { left: calc(50% - min(270px, 52vw)); top: 18%; transform: rotate(-24deg); animation: float1 4.6s ease-in-out infinite; }
.stick.s2 { right: calc(50% - min(270px, 52vw)); top: 34%; transform: rotate(18deg); animation: float2 5.4s ease-in-out infinite; }

.band {
  position: relative; height: 26px;
  background: linear-gradient(to bottom,
    var(--tomato) 0 16.6%, var(--sun) 16.6% 33.3%, var(--mint) 33.3% 50%,
    #fbf7ee 50% 66.6%, var(--blue) 66.6% 83.3%, var(--pink) 83.3% 100%);
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink);
}

.mat { background: var(--deep); padding: 34px 0 56px; text-align: center; }
.parade { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0px, 1vw, 12px); padding: 0 10px; flex-wrap: nowrap; }
.parade img { width: clamp(38px, 10vw, 104px); height: auto; animation: hop 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.3s); }
.parade.small img { width: clamp(30px, 7vw, 66px); }
.intro { max-width: 46em; margin-top: 18px; font-size: 1.12rem; }
.intro p { margin: .55em 0; }

.gallery { padding: 64px 0 70px; background: linear-gradient(var(--night), var(--deep)); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 250px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 22px 22px; scrollbar-width: thin;
}
.rail figure { margin: 0; scroll-snap-align: center; }
.rail figcaption {
  min-height: 3.1em; margin-bottom: 14px; text-align: center; font-size: 1.12rem; line-height: 1.3; color: var(--sun);
}
.rail .phone { border-radius: 26px; border-width: 5px; }
.rail figure:nth-child(odd) .phone { transform: rotate(-1.6deg); }
.rail figure:nth-child(even) .phone { transform: rotate(1.6deg) translateY(10px); }

.features { position: relative; overflow: hidden; padding: 70px 0 80px; background: var(--deep); }
.features .board {
  position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); transform: translate(-50%, -50%) rotate(-8deg);
  opacity: .07; pointer-events: none;
}
.grid { position: relative; display: grid; gap: 22px; }
.card {
  background: var(--paper); color: var(--ink); border-radius: 24px; padding: 24px 24px 18px;
  border-top: 10px solid var(--c, var(--tomato)); box-shadow: 0 0 0 3px var(--ink), 0 14px 30px rgba(0, 0, 0, .35);
}
.card:nth-child(6n+2) { --c: var(--sun); } .card:nth-child(6n+3) { --c: var(--mint); }
.card:nth-child(6n+4) { --c: var(--blue); } .card:nth-child(6n+5) { --c: var(--pink); }
.card:nth-child(6n) { --c: var(--sun-d); }
.card h2 { margin: 0 0 10px; font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.3; color: var(--ink); }
.card p { margin: .45em 0; }
.card ul { margin: .5em 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 26px; margin: .35em 0; }
.card li::before {
  content: ""; position: absolute; left: 4px; top: .42em; width: 9px; height: 18px; border-radius: 5px;
  background: var(--birch, #f6e7c8); box-shadow: inset 0 0 0 2px var(--ink); transform: rotate(-18deg);
}
.card li:nth-child(even)::before { background: var(--sun); }

.close {
  position: relative; text-align: center; padding: 70px 0 30px;
  background: radial-gradient(90% 70% at 50% 100%, var(--sky), var(--cobalt) 45%, var(--night));
}
.close .wrap { max-width: 44em; }
.app-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 0 4px var(--ink), 0 0 60px rgba(247, 195, 37, .35); }
.close h2 { margin: 18px 0 10px; font-size: clamp(2rem, 5vw, 3rem); color: var(--sun); text-shadow: 0 3px 0 var(--tomato-d), 0 6px 0 var(--ink); }
.close p { font-size: 1.08rem; margin: .5em 0; }
.close .stores { justify-content: center; margin: 26px 0 34px; }

footer { padding: 26px 22px 40px; text-align: center; font-size: .9rem; color: var(--cream); background: var(--night); }
footer a { color: var(--cream); }
.foot-langs { margin-top: 12px; line-height: 2; opacity: .85; }
.foot-langs [aria-current] { color: var(--sun); font-weight: 700; }

@media (min-width: 760px) {
  .grid { display: block; columns: 2; column-gap: 22px; }
  .card { break-inside: avoid; margin-bottom: 22px; }
}
@media (min-width: 920px) {
  .hero { padding-top: 70px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; padding-bottom: 80px; }
  .stage .phone { width: 310px; }
  .stick.s1 { left: 2%; } .stick.s2 { right: 2%; }
}
@media (min-width: 1100px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: auto; overflow: visible;
          max-width: var(--wrap); margin: 0 auto; }
}
@media (max-width: 919px) {
  .hero .copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .stores img { height: 44px; }
  .brand span { max-width: 46vw; }
}

@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14%); } 55% { transform: translateY(0); } }
@keyframes float1 { 50% { transform: rotate(-16deg) translateY(-14px); } }
@keyframes float2 { 50% { transform: rotate(26deg) translateY(12px); } }
@keyframes twinkle { to { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
