:root {
  color-scheme: light;
  --ink: #3b2a20; --ink-2: #6b4d39; --cream: #fff1dc; --card: #fffdf7;
  --teal: #2c9a94; --tomato: #e2614c; --cheese: #efbd45;
  --check: rgb(226 150 90 / .20);
  --disp: "Jua", "Baloo 2", "M PLUS Rounded 1c", "ZCOOL KuaiLe", "Chiron GoRound TC", "Mitr", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(0deg, var(--check) 0 44px, transparent 44px 88px),
    repeating-linear-gradient(90deg, var(--check) 0 44px, transparent 44px 88px);
}
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; }
h1, h2, .tag, .brand span, .close-name, .cards span, figcaption { font-family: var(--disp); font-weight: 400; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] .tag, html[lang="ja"] figcaption, html[lang="ja"] .cards span, html[lang="ja"] .close-name, html[lang="ja"] .brand span { font-weight: 800; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 14px 20px; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); }
.brand span { font-size: 1.25rem; 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; background: var(--card); border: 2px solid var(--ink);
}
.langpick summary::-webkit-details-marker { display: none; }
.langpick ul {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  min-width: 200px; max-height: 70vh; overflow: auto; background: var(--card);
  border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 var(--ink);
}
.langpick li a, .langpick li span { display: block; padding: 6px 12px; border-radius: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.langpick li a:hover, .langpick li a:focus-visible { background: rgb(44 154 148 / .14); }
.langpick [aria-current] { font-weight: 700; }

main { overflow: hidden; }   

.hero { max-width: 1180px; margin: 0 auto; padding: 24px 20px 56px; display: grid; gap: 28px; align-items: center; position: relative; }
.hero::before {           
  content: ""; position: absolute; inset: -10% -20%; z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgb(255 250 235 / .95), rgb(255 250 235 / 0) 62%);
}
.title { text-align: center; }
.mark { margin: 0; font-size: clamp(2.6rem, 10vw, 5.6rem); line-height: 1.08; color: #fff; letter-spacing: .01em;
  text-shadow:
    -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink),
    0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink),
    0 9px 0 var(--tomato), 0 12px 0 var(--ink), 0 18px 22px rgb(80 40 10 / .3); }
.tag { margin: 18px auto 0; max-width: 34rem; }
.tag span { display: inline-block; background: linear-gradient(#ff7a62, var(--tomato)); color: #fff; border: 3px solid var(--ink);
  border-radius: 14px; padding: .25em .9em .32em; font-size: clamp(1.05rem, 3.6vw, 1.45rem); line-height: 1.35; box-shadow: 0 5px 0 var(--ink); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.stores img { height: 54px; width: auto; display: block; }
@media (max-width: 420px) { .stores img { height: 46px; } }   

.lineup { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 0 4% 18px; }
.lineup .mat { position: absolute; left: 2%; right: 2%; bottom: 0; height: 22%; border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(ellipse at 50% 30%, #fff4dc, #f2d29e); box-shadow: 0 6px 0 var(--ink); }
.lineup img { position: relative; width: 22%; margin: 0 -3.5%; filter: drop-shadow(0 5px 0 rgb(59 42 32 / .22));
  transform: translateY(calc(var(--i) * 0px)); animation: hop 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.43s); }
.lineup img:nth-child(odd) { transform: translateY(-6%); }
@keyframes hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4%; } }
@media (prefers-reduced-motion: reduce) { .lineup img { animation: none; } }

section h2 { text-align: center; margin: 0 0 28px; font-size: clamp(1.8rem, 6.4vw, 3rem); line-height: 1.18; color: #fff;
  text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink),
    0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), 0 7px 0 var(--teal), 0 9px 0 var(--ink); }
.cast { max-width: 1180px; margin: 0 auto; padding: 40px 20px 56px; }
.cast-body { display: grid; gap: 32px; align-items: center; justify-items: center; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; width: 100%; max-width: 640px; }
.cards li { position: relative; aspect-ratio: 1 / .92; border-radius: 26px; border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink);
  background: radial-gradient(circle at 60% 35%, #fffaf0 0, var(--t) 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 8px 12px; overflow: hidden;
  rotate: calc((var(--i) - 2.5) * .5deg); }
.cards li::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .38) 5px, transparent 6px); background-size: 34px 34px; }
.cards img { position: relative; width: 78%; margin-bottom: -6%; }
.cards span { position: relative; background: var(--ink); color: #fff; border-radius: 999px; padding: .12em .9em .2em; font-size: clamp(.95rem, 3.4vw, 1.2rem);
  max-width: 100%; text-align: center; line-height: 1.3; border: 2px solid #fff; }

.phone { width: min(78vw, 300px); padding: 12px; border-radius: 40px; background: linear-gradient(160deg, #5a4434, #2d2018);
  border: 3px solid var(--ink); box-shadow: 0 10px 0 var(--ink), 0 22px 30px rgb(90 40 10 / .3); }
.phone img { display: block; width: 100%; border-radius: 28px; }

.shots { padding: 24px 0 64px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 20px 28px; max-width: 1180px; margin: 0 auto; }
.rail figure { margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rail figcaption { text-align: center; font-size: clamp(1.25rem, 4.6vw, 1.6rem); line-height: 1.25; min-height: 2.6em; display: flex; align-items: center; }
.rail .phone { width: 100%; rotate: calc((var(--i) - 1) * 1.5deg); }

.close { text-align: center; padding: 40px 20px 72px; position: relative; }
.close::before { content: ""; position: absolute; inset: 0 -20%; z-index: -1; background: radial-gradient(ellipse at 50% 45%, rgb(255 250 235 / .95), rgb(255 250 235 / 0) 60%); }
.app-icon { width: 120px; height: 120px; border-radius: 28px; border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); }
.close-name { margin: 18px 0 0; font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.2; }

footer { background: var(--card); border-top: 3px solid var(--ink); padding: 22px 20px 40px; text-align: center; font-size: .88rem; color: var(--ink-2); }
footer > a { color: var(--ink); }
.foot-langs { margin-top: 12px; line-height: 1.9; }
.foot-langs [aria-current] { font-weight: 700; }

@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
  .rail .phone { width: min(100%, 300px); }
}
@media (min-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding-top: 48px; }
  .title { text-align: left; }
  .hero .tag { margin-left: 0; }
  .hero .stores { justify-content: flex-start; }
  .mark { font-size: min(5.4vw, 5.6rem); }
  .cast-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
