@font-face {
  font-family: "Smiley Sans";
  src: url("assets/fonts/SmileySans-Oblique.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffae8;
  --yellow: #ffc72e;
  --ink: #121212;
  --muted: #524a3d;
  --coral: #ff785e;
  --green: #abc261;
  --line: #e4ddc7;
  --display: "Smiley Sans", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; }
p { text-wrap: pretty; }
::selection { color: var(--ink); background: var(--yellow); }
:focus-visible { outline: 3px solid #805000; outline-offset: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px 20px; background: var(--ink); color: white; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 100px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.brand img { border-radius: 12px; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; font-size: 14px; font-weight: 600; }
.brand, .language-control { flex-shrink: 0; }
.main-nav a, .site-footer nav a { padding-block: 10px; text-underline-offset: 6px; }
.main-nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.language-control { display: flex; align-items: center; gap: 7px; }
.language-control svg { width: 18px; height: 18px; }
.language-control select { border: 0; background: transparent; max-width: 160px; min-height: 44px; font-size: 13px; cursor: pointer; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding-top: 42px; padding-bottom: 84px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 18px; }
.intro { margin-bottom: 24px; font-size: 15px; color: var(--muted); }
h1 { font-size: clamp(52px, 5.5vw, 78px); line-height: 1.2; letter-spacing: -2px; }
.hero-description { max-width: 385px; margin-top: 30px; font-size: 18px; line-height: 1.9; color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 58px; padding: 15px 25px; border-radius: 16px; font-weight: 650; transition: transform 160ms ease, background-color 160ms ease; }
.button svg { width: 22px; height: 22px; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #353025; transform: translateY(-2px); }
.button-dark:active { transform: translateY(1px); }
.text-link { display: inline-flex; align-items: center; gap: 14px; padding-block: 10px; font-size: 15px; font-weight: 600; text-underline-offset: 6px; }
.text-link:hover { text-decoration: underline; }
.text-link > span:last-child { font-size: 22px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 42px; font-size: 13px; color: var(--muted); }
.little-spark { color: #795c00; font-size: 25px; line-height: 1; }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; padding-block: 20px; }
.hero-disc { position: absolute; width: 108%; aspect-ratio: 1; background: #ffdf76; border-radius: 50%; }
.hero-disc::after { content: ""; position: absolute; inset: -19px; border: 1px dashed #d7c891; border-radius: 50%; }
.phone { position: relative; width: 270px; flex-shrink: 0; padding: 7px; background: #29271f; border-radius: 42px; box-shadow: 0 5px 0 #726c5b, 0 24px 48px #473a1d1c; }
.phone img { width: 100%; border-radius: 35px; }
.hero-phone { width: min(310px, 68%); transform: rotate(7deg); }
.choice-sticker { position: absolute; z-index: 2; padding: 10px 20px; border: 2px solid var(--ink); border-radius: 12px; font-family: var(--display); font-size: 23px; box-shadow: 3px 4px 0 var(--ink); white-space: nowrap; }
.sticker-question { top: 12%; left: -1%; background: var(--coral); transform: rotate(-9deg); }
.sticker-answer { bottom: 14%; right: -1%; background: var(--green); transform: rotate(8deg); }
.hero-doodle { position: absolute; bottom: 8%; left: 0; width: 100px; transform: rotate(12deg); }

.scenes { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(32px, 3.3vw, 46px); line-height: 1.3; }
.section-heading p { margin-top: 16px; color: var(--muted); }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.scene-item + .scene-item { border-left: 1px solid var(--line); padding-left: 36px; }
.scene-illustration { display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 25px; border-radius: 25px; font-size: 42px; }
.food { background: #ffe79c; transform: rotate(-7deg); }
.outdoors { background: #e0e8b8; transform: rotate(5deg); }
.party { background: #ffd3be; transform: rotate(-5deg); }
.scene-item h3 { margin-bottom: 13px; font-size: 21px; line-height: 1.5; letter-spacing: -.5px; }
.scene-item p { font-size: 15px; line-height: 1.9; color: var(--muted); max-width: 310px; }
.option-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 23px; font-size: 12px; }
.option-tags span { padding: 4px 13px; border: 1px solid #d8cfb8; border-radius: 20px; }

.play-section { background: #f3eedb; }
.play-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.play-flower { color: #aabf64; font-size: 92px; line-height: 1; }
.mode-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.mode-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 25px; border: 1px solid #cec7b3; background: transparent; border-radius: 30px; cursor: pointer; font-size: 16px; transition: background-color 150ms ease, border-color 150ms ease; }
.mode-tabs button > span:first-child { font-size: 23px; line-height: 1; }
.mode-tabs button:hover { border-color: var(--ink); }
.mode-tabs button[aria-selected="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.mode-stage { border-radius: 32px; background: var(--paper); overflow: hidden; }
.mode-indicators { display: flex; justify-content: center; margin-top: 16px; }
.mode-indicators button { display: grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mode-indicators span { width: 8px; height: 8px; border-radius: 8px; background: #bdb59c; }
.mode-indicators button[aria-current="true"] span { width: 24px; background: var(--ink); }
.mode-panel { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; min-height: 660px; }
.mode-copy { padding: 60px; }
.mode-kicker { display: inline-block; padding: 4px 0; margin-bottom: 20px; font-size: 14px; border-bottom: 3px solid var(--yellow); }
.mode-copy h3 { font: 400 clamp(30px, 3vw, 42px)/1.4 var(--display); margin-bottom: 22px; }
.mode-copy > p:not(.mode-kicker) { color: var(--muted); font-size: 16px; max-width: 360px; }
.feature-list { padding: 0; margin: 26px 0; list-style: none; font-size: 14px; color: var(--muted); }
.feature-list li { display: flex; gap: 10px; margin-block: 9px; }
.feature-list li::before { content: "✓"; color: #5c701e; font-weight: 700; }
.mode-visual { position: relative; isolation: isolate; align-self: stretch; display: grid; place-items: center; min-width: 0; padding: 40px 30px; }
.mode-visual::before { content: ""; position: absolute; z-index: -1; width: 85%; aspect-ratio: 1; border-radius: 50%; background: #ffe394; }
.mode-visual .phone { width: 250px; transform: rotate(3deg); }
.visual-word { position: absolute; top: 30px; right: 35px; z-index: 1; color: #716321; font: 400 24px var(--display); transform: rotate(8deg); }
#panel-cards .mode-visual::before { background: #e0e8b8; }
#panel-fortune .mode-visual::before { background: #ffd6c9; }
#panel-together .mode-visual::before { background: #e0e8b8; }

.story-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.story { position: relative; display: grid; grid-template-rows: auto 332px; align-content: start; min-width: 0; min-height: 555px; overflow: hidden; border-radius: 28px; }
.story-solo { background: #ede9d8; }
.story-friends { background: #e1e8bc; }
.story-copy { position: relative; z-index: 2; max-width: 430px; padding: 36px 40px 0; }
.story-symbol { display: block; margin-bottom: 16px; font-size: 36px; line-height: 1; letter-spacing: -7px; }
.story h3 { font: 400 34px/1.3 var(--display); margin-bottom: 14px; }
.story p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.story-screenshot { position: relative; align-self: start; margin: 32px 65px 0 auto; width: 250px; padding: 6px; background: #353228; border-radius: 34px; transform: rotate(-9deg); box-shadow: 0 16px 32px #2924111a; }
.story-screenshot img { width: 100%; border-radius: 28px; }
.story-friends .story-screenshot { margin-right: 60px; transform: rotate(9deg); }

.download-section { background: var(--yellow); }
.download-inner { position: relative; text-align: center; padding-block: 76px 84px; }
.download-icon { margin: 0 auto 24px; border-radius: 22px; transform: rotate(-8deg); box-shadow: 3px 4px 0 #997d2259; }
.download-inner h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.35; }
.download-inner p { margin: 20px 0 28px; color: #433615; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; column-gap: 26px; row-gap: 16px; padding-block: 32px; }
.footer-brand { font-size: 21px; }
.footer-brand img { border-radius: 9px; }
.site-footer p { color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 10px; margin-left: auto; font-size: 12px; }

@media (min-width: 1440px) {
  .hero { padding-top: 64px; padding-bottom: 100px; }
  .hero-phone { width: 330px; }
}

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 8px; }
  h1 { font-size: 57px; }
  .hero-phone { width: 270px; }
  .hero-disc { width: 96%; }
  .choice-sticker { font-size: 20px; padding: 8px 13px; }
  .sticker-question { left: -5%; }
  .sticker-answer { right: -3%; }
  .hero-doodle { width: 75px; }
  .mode-copy { padding: 40px 32px; }
  .mode-panel { min-height: 635px; }
  .scene-grid { gap: 24px; }
  .scene-item + .scene-item { padding-left: 24px; }
  .scene-item h3 { font-size: 18px; }
  .story-copy { padding: 30px 30px 0; }
  .story-screenshot { margin-right: 45px; }
  .story-friends .story-screenshot { margin-right: 35px; }
  .story h3 { font-size: 30px; }
  .site-footer nav { margin-left: 0; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 82px; gap: 16px; }
  .brand { font-size: 24px; gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .main-nav { display: none; }
  .section-space { padding-block: 64px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 62px; }
  .hero-copy { padding-bottom: 0; }
  .intro { font-size: 13px; margin-bottom: 20px; }
  h1 { font-size: clamp(44px, 8.2vw, 64px); letter-spacing: -1px; }
  .hero-description { margin-top: 22px; max-width: 420px; font-size: 16px; }
  .hero-actions { margin-top: 26px; gap: 22px; }
  .hero-note { margin-top: 24px; font-size: 12px; }
  .button { min-height: 54px; padding: 13px 20px; font-size: 15px; }
  .hero-art { width: min(460px, 100%); margin-inline: auto; margin-top: 24px; padding: 20px 0; }
  .hero-phone { width: min(270px, 64%); }
  .hero-disc { width: 94%; }
  .hero-disc::after { inset: -10px; }
  .sticker-question { left: 1%; top: 13%; }
  .sticker-answer { right: 0; bottom: 13%; }
  .hero-doodle { left: 2%; width: 65px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading p { font-size: 14px; margin-top: 12px; }
  .scene-grid { grid-template-columns: 1fr; gap: 28px; }
  .scene-item { display: grid; grid-template-columns: 62px 1fr; column-gap: 20px; align-items: start; }
  .scene-item + .scene-item { padding-left: 0; padding-top: 28px; border-left: 0; border-top: 1px solid var(--line); }
  .scene-illustration { grid-column: 1; grid-row: 1 / 4; width: 60px; height: 60px; font-size: 32px; border-radius: 20px; margin: 0; }
  .scene-item h3, .scene-item p, .option-tags { grid-column: 2; }
  .scene-item h3 { font-size: 19px; margin-bottom: 8px; }
  .scene-item p { font-size: 14px; max-width: 100%; }
  .option-tags { margin-top: 15px; }
  .play-flower { font-size: 56px; }
  .mode-tabs { gap: 8px; }
  .mode-tabs button { flex: 1 0 auto; padding: 9px 13px; min-height: 46px; font-size: 14px; gap: 7px; }
  .mode-tabs button > span:first-child { font-size: 19px; }
  .mode-stage { border-radius: 24px; }
  .mode-panel { grid-template-columns: 1fr; min-height: 0; }
  .mode-copy { padding: 16px 26px 32px; }
  .mode-kicker { margin-bottom: 16px; font-size: 13px; }
  .mode-copy h3 { font-size: 34px; margin-bottom: 16px; }
  .mode-copy > p:not(.mode-kicker) { font-size: 15px; max-width: 100%; }
  .feature-list { margin-block: 20px; font-size: 13px; }
  .mode-visual { padding: 36px 22px; }
  .mode-visual .phone { width: 235px; }
  .mode-visual::before { width: min(88%, 380px); }
  .visual-word { top: 8px; right: 22px; font-size: 20px; }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
  .story { min-height: 510px; }
  .story-copy { padding: 28px 28px 0; max-width: 480px; }
  .story-screenshot, .story-friends .story-screenshot { margin-right: max(30px, 18%); width: 230px; }
  .download-inner { padding-block: 56px 64px; }
  .download-inner h2 { font-size: clamp(30px, 6.5vw, 44px); }
  .download-inner p { font-size: 14px; }
  .download-icon { width: 68px; height: 68px; border-radius: 18px; }
  .site-footer { column-gap: 18px; padding-block: 28px; }
  .site-footer p { flex-basis: 100%; }
  .site-footer nav { font-size: 13px; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 42px; }
  .hero-actions { gap: 12px; }
  .button { padding-inline: 16px; font-size: 14px; }
  .text-link { font-size: 14px; gap: 8px; }
  .choice-sticker { font-size: 18px; padding: 6px 10px; }
  .scene-item { column-gap: 16px; grid-template-columns: 48px 1fr; }
  .scene-illustration { width: 48px; height: 48px; font-size: 28px; }
  .scene-item h3 { font-size: 17px; }
  .mode-copy { padding-inline: 22px; }
  .mode-copy h3 { font-size: 30px; }
  .mode-visual .phone { width: 210px; }
  .story-copy { padding: 24px 24px 0; }
  .story h3 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Longer translations wrap within their column instead of pushing the layout. */
.hero-copy, .mode-copy, .section-heading > div { min-width: 0; }
h1, h2, h3, .mode-tabs button { overflow-wrap: anywhere; }
html:not(:lang(zh)) h1 { font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -1px; }
html:lang(ja) { --display: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
html:lang(ko) { --display: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; }
html:lang(zh-Hant) { --display: "PingFang TC", "Microsoft JhengHei", sans-serif; }
.choice-sticker { max-width: 75%; white-space: normal; }

@media (max-width: 760px) {
  html:not(:lang(zh)) h1 { font-size: clamp(38px, 7.5vw, 56px); }
  .language-control select { max-width: 140px; }
  .play-flower { flex-shrink: 0; }
}

@media (max-width: 360px) {
  .language-control { gap: 4px; }
  .language-control select { max-width: 124px; }
}

.site-footer .language-links { flex-basis: 100%; margin-left: 0; flex-wrap: wrap; }
