/* 동물농장: 크림색 종이·풀잎·햇살의 그림책. 외부 자원 없이, RTL은 논리 속성으로 배치한다. */
@font-face { font-family: 'Farm Rounded'; src: url('/assets/fonts/Fredoka.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
:root { --cream: #fffaf1; --paper: #fffef9; --ink: #29483b; --muted: #657267; --green: #3c6546; --light-green: #eaf0df; --yellow: #f6cc58; --line: #e4e5d6; --radius: 26px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans', sans-serif; color: var(--ink); background: var(--cream); font-size: 16px; line-height: 1.7; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: 110px; }
body { margin: 0; }
body.dialog-open { overflow: hidden; }
img, video { display: block; max-inline-size: 100%; block-size: auto; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, select, a { touch-action: manipulation; }
a { color: var(--green); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, select:focus-visible, video:focus-visible { outline: 3px solid #ba6b27; outline-offset: 5px; }
button:disabled { opacity: .45; cursor: default; }
[hidden] { display: none !important; }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { display: inline-block; inline-size: 24px; block-size: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { inline-size: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 92px; }
h1, h2, h3, .brand { font-family: 'Farm Rounded', ui-rounded, 'Apple SD Gothic Neo', system-ui, sans-serif; }
h1, h2, h3, p { margin-block-start: 0; }
h2 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 550; line-height: 1.15; letter-spacing: -.025em; margin-block-end: 24px; text-wrap: balance; }
h3 { font-weight: 550; line-height: 1.25; }
p { color: var(--muted); }
::selection { background: #f8df8f; color: var(--ink); }
.skip-link { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; padding: 12px 24px; z-index: 100; background: var(--ink); color: white; border-radius: 12px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
/* 공통 메뉴: 작은 화면에서는 버튼으로 펼치며 키보드로도 닫을 수 있다. */
.top { position: sticky; inset-block-start: 0; z-index: 20; background: rgb(255 250 241 / .96); border-block-end: 1px solid rgb(228 229 214 / .7); }
.top-in { inline-size: min(1320px, calc(100% - 80px)); margin-inline: auto; display: flex; align-items: center; gap: 28px; min-block-size: 86px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 25px; font-weight: 600; line-height: 1; white-space: nowrap; }
.brand img { inline-size: 44px; block-size: 44px; border-radius: 50%; }
.brand-farm { color: #699258; margin-inline-start: 4px; }
.menu { display: flex; align-items: center; justify-content: center; gap: 30px; margin-inline-start: auto; }
.menu a { display: inline-block; position: relative; padding-block: 18px; font-size: 14px; font-weight: 650; color: var(--ink); text-decoration: none; }
.menu a::after { content: ''; position: absolute; inset-block-end: 10px; inset-inline: 0; block-size: 2px; background: var(--green); transform: scaleX(0); transition: transform .2s ease; }
.menu a:hover::after, .menu a[aria-current='location']::after { transform: scaleX(1); }
.lang { display: flex; align-items: center; gap: 4px; padding-inline: 12px 4px; border: 1px solid #dadfce; border-radius: 999px; min-block-size: 42px; background: var(--paper); }
.lang .icon { inline-size: 18px; block-size: 18px; }
.lang select { inline-size: 122px; min-block-size: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); padding-inline: 4px; font-size: 13px; cursor: pointer; }
.icon-button { display: inline-grid; place-items: center; inline-size: 46px; block-size: 46px; padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 50%; text-decoration: none; transition: background .2s; }
.icon-button:hover { background: var(--light-green); }
.menu-toggle { display: none; }
/* 그림과 문구를 넓게 엮고 일러스트임을 작은 표식으로 구분한다. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #fbf3dc; }
.hero-art { position: absolute; z-index: -2; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 58%; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(255 250 241 / .98) 0%, rgb(255 250 241 / .93) 24%, rgb(255 250 241 / .68) 39%, transparent 58%); }
.hero::after { content: ''; position: absolute; inset-block-end: -31px; inset-inline: -3%; block-size: 65px; background: var(--cream); border-radius: 50% 50% 0 0; pointer-events: none; }
.hero-inner { display: flex; align-items: center; min-block-size: 678px; padding-block: 70px 90px; }
.hero-copy { max-inline-size: 548px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-block-end: 22px; color: var(--green); font-size: 12px; line-height: 1.5; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow > span:first-child { color: #7e9073; }
.hero-eyebrow { font-size: 11px; gap: 9px; flex-wrap: wrap; }
.hero-eyebrow .icon { color: #b2842f; inline-size: 22px; block-size: 22px; }
.eyebrow-dot { color: #b59556 !important; }
.hero h1 { font-size: clamp(52px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -.025em; font-weight: 550; margin-block-end: 25px; text-wrap: balance; }
.hero h1 > span { display: block; }
.hero-accent { color: #658447; }
.tagline { max-inline-size: 420px; font-size: 16px; line-height: 1.85; margin-block-end: 30px; color: #4f6150; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-block-size: 54px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; padding: 14px 24px; transition: transform .2s, box-shadow .2s, background .2s; }
.button.primary { color: #304432; background: var(--yellow); border: 1px solid #efc248; box-shadow: 0 5px 0 #c9a345; }
.button.primary:hover { transform: translateY(-3px); background: #fadc7c; box-shadow: 0 8px 0 #c9a345; }
.button.secondary { border: 1px solid #bdc5a4; background: rgb(255 250 241 / .75); color: var(--ink); }
.button.secondary:hover { background: var(--paper); transform: translateY(-2px); }
.button .icon { inline-size: 18px; block-size: 18px; }
.art-note { position: absolute; inset-inline-end: 36px; inset-block-end: 50px; font-size: 10px; color: #344535; background: rgb(255 250 241 / .78); border-radius: 99px; padding: 3px 10px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 32px; border-block-end: 1px solid var(--line); }
.values > div { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; font-weight: 650; }
.values > div + div { border-inline-start: 1px solid var(--line); }
.values .icon { color: #879557; }
/* 이야기: 액자와 사진 모서리 장식은 게임 화면을 가리지 않는다. */
.story-section { display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px; align-items: center; padding-block-end: 44px; }
.story-picture { position: relative; margin: 10px 0; }
.story-picture::before { content: ''; position: absolute; inset: -12px 7px 7px -12px; background: #e7edda; border-radius: 100px 30px 70px 30px; transform: rotate(-3deg); z-index: -1; }
.story-picture > img { inline-size: 100%; block-size: 360px; object-fit: cover; border-radius: 88px 28px 65px 28px; }
.picture-note { position: absolute; inset-inline-start: 22px; inset-block-end: -20px; display: flex; gap: 10px; align-items: center; background: var(--paper); padding: 12px 20px; border: 1px solid #e0e6d3; border-radius: 12px; box-shadow: 0 8px 28px rgb(41 72 59 / .07); font-size: 13px; font-weight: 650; transform: rotate(-4deg); }
.picture-note .icon { color: #cf8c68; inline-size: 20px; block-size: 20px; }
.picture-flower { position: absolute; inset-inline-end: -30px; inset-block-start: -26px; font-size: 85px; line-height: 1; color: #e3bc53; transform: rotate(13deg); }
.story-copy p:not(.eyebrow) { font-size: 15px; margin-block-end: 26px; }
.text-link { display: inline-flex; align-items: center; gap: 14px; color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; padding-block: 8px; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { inline-size: 20px; block-size: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-block-end: 38px; }
.section-heading h2 { margin-block-end: 0; }
.section-heading .eyebrow { margin-block-end: 16px; }
.section-intro { max-inline-size: 420px; font-size: 14px; margin-block-end: 0; }
.centered { display: block; text-align: center; max-inline-size: 720px; margin-inline: auto; margin-block-end: 48px; }
.centered .eyebrow { justify-content: center; }
.centered h2 { margin-block-end: 20px; }
.centered > p:last-child { max-inline-size: 580px; margin-inline: auto; font-size: 15px; }
.animals-section { padding-block-start: 74px; }
.animal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.animal-card { overflow: hidden; border-radius: 24px; border: 1px solid #e3e4d2; background: #f4ecd8; }
.animal-cat { background: #f2e6de; }
.animal-dog { background: #e7edde; }
.animal-photo { position: relative; overflow: hidden; }
.animal-photo img { inline-size: 100%; block-size: 224px; object-fit: cover; transition: transform .5s ease; }
.animal-card:hover img { transform: scale(1.045); }
.animal-number { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; inline-size: 32px; block-size: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; background: var(--paper); color: var(--ink); font-weight: 700; }
.animal-label { display: flex; align-items: center; padding: 21px 22px; gap: 12px; min-block-size: 84px; }
.animal-label h3 { margin: 0; font-size: 23px; }
.animal-label .icon { inline-size: 22px; block-size: 22px; color: #8c9464; }
.animal-mark, .animal-status { margin-inline-start: auto; white-space: nowrap; font-size: 12px; color: #576a4c; }
.animal-mark { font-size: 17px; letter-spacing: .12em; }
.animal-status { font-size: 10px; font-weight: 650; border-radius: 30px; border: 1px solid #bdcaa8; padding: 4px 8px; }
/* 성장의 다섯 걸음: 별도 카드 대신 점선 길을 따라 읽는다. */
.grow { background: #edf1e3; position: relative; }
.grow::before, .grow::after { content: ''; position: absolute; inset-inline: 0; block-size: 10px; background: radial-gradient(circle at 10px 0, var(--cream) 10px, transparent 11px) repeat-x; background-size: 20px 12px; }
.grow::before { inset-block-start: 0; }
.grow::after { inset-block-end: 0; transform: rotate(180deg); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 25px; margin: 0; padding: 0; list-style: none; position: relative; }
.steps::before { content: ''; position: absolute; inset-inline: 8%; inset-block-start: 63px; border-block-start: 2px dashed #b4bea0; }
.steps li { text-align: center; position: relative; }
.step-visual { position: relative; display: grid; place-items: center; inline-size: 116px; block-size: 116px; margin: 0 auto 28px; background: #fffaf1; border: 6px solid #edf1e3; border-radius: 50%; }
.step-visual .icon { inline-size: 43px; block-size: 43px; stroke-width: 1.4; color: #698052; }
.steps li:nth-child(2) .step-visual { background: #fae8b3; }
.steps li:nth-child(3) .step-visual { background: #d6e3c8; }
.steps li:nth-child(4) .step-visual { background: #f3dccc; }
.steps li:nth-child(5) .step-visual { background: #f9d77a; }
.step-number { position: absolute; inset-block-end: -8px; inline-size: 27px; block-size: 27px; display: grid; place-items: center; background: var(--green); color: white; border: 3px solid #edf1e3; border-radius: 50%; font-size: 10px; font-weight: 700; }
.steps h3 { font-size: 20px; margin-block-end: 12px; }
.steps p { font-size: 12px; line-height: 1.85; margin: 0; }
/* 농장 생활은 넓은 여백과 작은 선 그림으로 읽는다. */
.heading-flower { color: #e6bc4d; font-size: 64px; line-height: 1; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 38px; }
.feature { display: flex; align-items: start; gap: 17px; border-block-start: 1px solid var(--line); padding-block-start: 28px; }
.feature-icon { inline-size: 48px; block-size: 48px; display: grid; place-items: center; background: #f3e8c9; color: #867a45; border-radius: 16px; flex-shrink: 0; }
.feature:nth-child(3n+2) .feature-icon { background: #e8eddb; color: #69814f; }
.feature:nth-child(3n) .feature-icon { background: #f0e2d9; color: #a47d68; }
.feature-icon .icon { inline-size: 26px; block-size: 26px; }
.feature h3 { font-size: 21px; margin-block-end: 12px; }
.feature p { font-size: 13px; margin: 0; line-height: 1.85; }
.family-section { background: #f1e9d9; }
.family-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.family-copy h2 { max-inline-size: 480px; }
.check-list { list-style: none; margin: 0 0 22px; padding: 0; }
.check-list li { display: flex; align-items: start; gap: 13px; font-size: 14px; color: #566652; margin-block-end: 15px; }
.check-list .icon { margin-block-start: 1px; inline-size: 20px; block-size: 20px; color: #547551; }
.howto { background: var(--paper); padding: 36px; border: 1px solid #e5dcc6; border-radius: 30px; box-shadow: 10px 10px 0 #e6dcc7; }
.howto-heading { display: flex; align-items: center; gap: 18px; padding-block-end: 23px; border-block-end: 1px solid var(--line); }
.howto-heading > .icon { inline-size: 40px; block-size: 40px; color: #ab975a; }
.howto-heading h3 { margin: 0; font-size: 27px; }
.howto ol { list-style: none; margin: 25px 0 0; padding: 0; }
.howto li { display: flex; gap: 16px; align-items: start; font-size: 13px; color: var(--muted); }
.howto li + li { margin-block-start: 20px; }
.howto-number { font-size: 11px; color: #83916c; font-weight: 700; padding-block-start: 3px; }
/* 실제 게임 화면과 영상, 키보드로도 움직이는 사진 확대. */
.trailer-frame { overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: var(--paper); margin-block-end: 44px; }
.trailer-frame video { inline-size: 100%; aspect-ratio: 16 / 9; background: #1c3025; }
.video-caption { display: flex; align-items: center; gap: 12px; padding: 18px 24px; font-size: 13px; font-weight: 650; }
.video-caption .icon { inline-size: 17px; block-size: 17px; }
.video-caption > span:last-child { margin-inline-start: auto; color: #798568; font-size: 10px; letter-spacing: .14em; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.shot { margin: 0; }
.shot-open { display: block; inline-size: 100%; position: relative; padding: 0; border: 0; border-radius: 20px; background: #e4ecd5; overflow: hidden; }
.shot-open img { inline-size: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .35s ease; }
.shot-open:hover img { transform: scale(1.04); }
.shot-expand { position: absolute; inset-inline-end: 12px; inset-block-end: 12px; display: grid; place-items: center; inline-size: 34px; block-size: 34px; background: rgb(255 250 241 / .93); border-radius: 50%; color: var(--ink); }
.shot-expand .icon { inline-size: 17px; block-size: 17px; }
.shot figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 13px 3px 0; font-size: 12px; font-weight: 650; }
.shot figcaption > span:last-child { color: #86957a; font-size: 10px; font-weight: 400; }
.lightbox { inline-size: min(1160px, calc(100% - 48px)); max-block-size: calc(100dvh - 40px); padding: 16px 20px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--cream); overflow: auto; }
.lightbox::backdrop { background: rgb(16 36 26 / .8); backdrop-filter: blur(7px); }
.lightbox-top, .lightbox-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox-top { padding-block-end: 12px; }
.lightbox-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox-image img { inline-size: 100%; max-block-size: calc(100dvh - 214px); object-fit: contain; border-radius: 12px; }
.lightbox-bottom { padding-block-start: 14px; }
.lightbox-caption { margin: 0; font-size: 14px; color: var(--ink); text-align: center; }
:dir(rtl) .text-link .icon, :dir(rtl) .button.secondary .icon { transform: scaleX(-1); }
/* 모든 안내 페이지에 같은 종이 느낌과 읽기 쉬운 목차를 적용한다. */
.doc { padding-block: 40px 100px; }
.doc-back { margin-block-end: 35px; color: var(--muted); }
.doc-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 65px; align-items: start; }
.doc-aside { position: sticky; inset-block-start: 124px; }
.doc-emblem { display: grid; place-items: center; inline-size: 74px; block-size: 74px; border-radius: 24px; background: #edf0df; color: #77905f; margin-block-end: 28px; }
.doc-emblem .icon { inline-size: 35px; block-size: 35px; }
.doc-toc { display: grid; gap: 2px; }
.doc-toc a { text-decoration: none; font-size: 12px; color: var(--muted); padding: 8px 12px; border-inline-start: 2px solid var(--line); }
.doc-toc a:hover { color: var(--green); background: var(--light-green); border-color: #899e68; }
.doc-body { min-inline-size: 0; }
.doc article { padding: 48px 54px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; }
.doc article + article { margin-block-start: 30px; }
.doc h1 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 50px); font-weight: 550; line-height: 1.15; letter-spacing: -.02em; }
.doc .meta { font-size: 12px; color: #7c886a; padding-block-end: 28px; margin-block-end: 30px; border-block-end: 1px solid var(--line); }
.doc h2 { font-family: inherit; font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.5; margin-block: 36px 15px; }
.doc p, .doc li { font-size: 14px; line-height: 1.95; }
.doc p { margin-block-end: 20px; }
.doc ul, .doc ol { padding-inline-start: 22px; color: var(--muted); }
.doc li + li { margin-block-start: 12px; }
.doc strong { color: #425740; font-weight: 650; }
.doc a { overflow-wrap: anywhere; }
.doc-toc:empty, .doc-page:not(.has-js) .doc-aside { display: none; }
.doc-page:not(.has-js) .doc-layout { grid-template-columns: 1fr; max-inline-size: 850px; margin-inline: auto; }
/* 바닥: 연락·개인정보·계정 삭제는 모든 화면에서 접근 가능하다. */
.foot { background: #e8eddd; padding: 46px max(40px, calc((100vw - 1200px) / 2)) 28px; }
.footer-top { display: flex; align-items: center; gap: 28px; padding-block-end: 32px; }
.footer-top p { font-size: 13px; margin: 0; }
.back-top { margin-inline-start: auto; background: transparent; border-color: #cad5bc; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-block-start: 1px solid #cdd6be; padding-block-start: 24px; font-size: 11px; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a { text-decoration: none; color: #52644a; }
.footer-bottom a:hover { text-decoration: underline; }
/* 한국어 제목은 자소가 답답하지 않게, RTL은 문구를 그림 반대편에 둔다. */
:lang(ko) h1, :lang(ko) h2 { line-height: 1.3; font-weight: 800; letter-spacing: -.045em; word-break: keep-all; }
:lang(ko) h3 { font-weight: 750; word-break: keep-all; }
:lang(ja) h1, :lang(zh) h1, :lang(zh-hant) h1 { line-height: 1.2; font-weight: 750; font-size: clamp(48px, 5.3vw, 72px); }
:lang(hi) h1, :lang(th) h1 { line-height: 1.35; font-size: clamp(44px, 4.9vw, 66px); }
:dir(rtl) .hero-art { transform: scaleX(-1); }
:dir(rtl) .hero::before { background: linear-gradient(270deg, rgb(255 250 241 / .98) 0%, rgb(255 250 241 / .93) 24%, rgb(255 250 241 / .68) 39%, transparent 58%); }
@media (min-width: 1700px) { .hero-art { object-position: 50% 62%; } .hero-inner { min-block-size: 740px; } }
@media (max-width: 1100px) {
  .top-in { gap: 20px; } .menu { gap: 20px; } .brand { font-size: 23px; }
  .hero-copy { max-inline-size: 490px; } .hero h1 { font-size: 66px; }
  .hero-inner { min-block-size: 640px; } .story-section { gap: 55px; }
  .family-layout { gap: 45px; } .feature-grid { gap: 32px 26px; }
  .animal-label { padding-inline: 17px; gap: 8px; } .animal-label h3 { font-size: 21px; }
  .doc-layout { gap: 35px; grid-template-columns: 180px minmax(0, 1fr); }
  .doc article { padding: 40px; }
}
@media (max-width: 900px) {
  .wrap, .top-in { inline-size: calc(100% - 48px); } .section { padding-block: 70px; }
  .top-in { min-block-size: 76px; flex-wrap: wrap; gap: 12px; }
  .lang { margin-inline-start: auto; } .lang select { inline-size: 104px; }
  .menu { order: 4; flex-basis: 100%; margin: 0; flex-wrap: wrap; gap: 10px 30px; padding-block-end: 12px; }
  .has-js .menu-toggle { display: inline-grid; }
  .has-js .menu { display: none; } .has-js .top.menu-open .menu { display: flex; }
  .hero-inner { min-block-size: 600px; padding-block: 60px 76px; }
  .hero h1 { font-size: 58px; } .hero-copy { max-inline-size: 430px; }
  .hero::before { background: linear-gradient(90deg, rgb(255 250 241 / .98) 0%, rgb(255 250 241 / .87) 30%, rgb(255 250 241 / .5) 48%, transparent 73%); }
  .hero-art { object-position: 56% 60%; }
  .tagline { max-inline-size: 350px; font-size: 15px; }
  .values > div { font-size: 11px; gap: 8px; } .values .icon { inline-size: 21px; block-size: 21px; }
  .story-section { gap: 40px; } .story-picture > img { block-size: 340px; }
  .section-heading { gap: 24px; } .section-intro { max-inline-size: 320px; font-size: 13px; }
  .animal-grid { gap: 17px; } .animal-photo img { block-size: 180px; }
  .animal-label { flex-wrap: wrap; padding: 16px; min-block-size: 94px; }
  .animal-label .icon { display: none; } .animal-status { margin-inline-start: 0; }
  .steps { gap: 15px; } .step-visual { inline-size: 96px; block-size: 96px; }
  .steps::before { inset-block-start: 52px; } .steps h3 { font-size: 18px; }
  .steps p { font-size: 11px; } .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-layout { gap: 35px; } .howto { padding: 28px; } .howto-heading h3 { font-size: 23px; }
  .shots { gap: 24px 18px; } .shot figcaption { font-size: 11px; }
  .doc-layout { grid-template-columns: 1fr; } .doc-aside { position: static; }
  .doc-emblem { display: none; } .doc-aside .eyebrow { margin-block-end: 12px; }
  .doc-toc { display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-toc a { border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; font-size: 11px; }
  .doc-back { margin-block-end: 24px; } .foot { padding-inline: 24px; }
}
@media (max-width: 640px) {
  html { scroll-padding-block-start: 92px; } .wrap, .top-in { inline-size: calc(100% - 40px); }
  .section { padding-block: 58px; } h2 { font-size: 33px; } .top-in { min-block-size: 72px; gap: 9px; }
  .brand { font-size: 22px; gap: 7px; } .brand img { inline-size: 36px; block-size: 36px; }
  .lang { padding-inline: 8px 2px; min-block-size: 44px; } .lang .icon { inline-size: 15px; block-size: 15px; }
  .lang select { inline-size: 78px; min-block-size: 42px; font-size: 11px; }
  .menu-toggle { inline-size: 44px; block-size: 44px; } .menu a { padding-block: 12px; font-size: 13px; }
  .hero { padding-block-end: 360px; }
  .hero-inner { min-block-size: auto; padding-block: 45px 30px; text-align: center; position: relative; z-index: 2; }
  .hero-copy { max-inline-size: 100%; margin-inline: auto; }
  .hero-eyebrow { justify-content: center; margin-block-end: 20px; font-size: 10px; gap: 8px; }
  .hero h1 { font-size: clamp(46px, 10.4vw, 64px); line-height: 1.05; margin-block-end: 20px; }
  .tagline { font-size: 14px; line-height: 1.8; max-inline-size: 360px; margin: 0 auto 23px; }
  .hero-actions { justify-content: center; gap: 10px; } .button { min-block-size: 50px; font-size: 12px; padding: 12px 20px; }
  .hero-art { inset-block-start: auto; inset-block-end: 0; block-size: 420px; object-position: 85% 78%; }
  .hero::before, :dir(rtl) .hero::before { background: linear-gradient(180deg, var(--cream) 0%, var(--cream) calc(100% - 380px), transparent calc(100% - 290px)); z-index: 0; }
  .hero::after { block-size: 43px; inset-block-end: -24px; } .art-note { inset-block-end: 26px; inset-inline-end: 20px; font-size: 9px; }
  .values { grid-template-columns: repeat(2, 1fr); gap: 20px 0; padding-block: 26px; }
  .values > div { justify-content: start; gap: 9px; font-size: 11px; }
  .values > div:nth-child(odd) { border: 0; } .values > div:nth-child(even) { padding-inline-start: 16px; }
  .story-section { grid-template-columns: 1fr; gap: 46px; padding-block-end: 25px; }
  .story-picture { margin-inline: 9px; } .story-picture > img { block-size: auto; aspect-ratio: 4 / 3; border-radius: 66px 24px 46px 24px; }
  .picture-flower { font-size: 63px; inset-inline-end: -15px; inset-block-start: -19px; }
  .picture-note { padding: 10px 16px; font-size: 12px; }
  .eyebrow { margin-block-end: 17px; font-size: 10px; } .story-copy p:not(.eyebrow) { font-size: 14px; }
  .section-heading { display: block; margin-block-end: 28px; }
  .section-heading h2 { margin-block-end: 17px; } .section-intro { max-inline-size: 100%; font-size: 13px; }
  .animal-grid { grid-template-columns: 1fr; gap: 22px; }
  .animal-photo img { block-size: auto; aspect-ratio: 16/9; }
  .animal-label { min-block-size: 76px; padding: 18px 22px; }
  .animal-label h3 { font-size: 25px; } .animal-label .icon { display: inline-block; }
  .animal-status { margin-inline-start: auto; font-size: 11px; }
  .centered > p:last-child { font-size: 13px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { inset-inline-start: 43px; inset-inline-end: auto; inset-block: 44px; border-block-start: 0; border-inline-start: 2px dashed #b4bea0; }
  .steps li { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 22px; text-align: start; align-items: center; }
  .step-visual { inline-size: 90px; block-size: 90px; margin: 0; grid-row: span 2; }
  .steps h3 { font-size: 23px; margin-block-end: 9px; align-self: end; }
  .steps p { font-size: 12px; align-self: start; }
  .feature-grid { grid-template-columns: 1fr; gap: 26px; }
  .feature { padding-block-start: 24px; gap: 20px; } .feature h3 { font-size: 23px; margin-block-end: 10px; }
  .feature p { font-size: 13px; } .heading-flower { display: none; }
  .family-layout { grid-template-columns: 1fr; gap: 28px; }
  .howto { padding: 28px; box-shadow: 6px 6px 0 #e6dcc7; } .howto-heading h3 { font-size: 25px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .shot-open { border-radius: 14px; } .shot-open img { aspect-ratio: 4 / 3; }
  .shot figcaption { font-size: 11px; } .shot figcaption > span:last-child { display: none; }
  .shot-expand { inline-size: 28px; block-size: 28px; inset-inline-end: 8px; inset-block-end: 8px; }
  .trailer-frame { border-radius: 18px; margin-block-end: 28px; } .video-caption { padding: 13px 15px; font-size: 11px; }
  .video-caption > span:last-child { font-size: 8px; }
  .lightbox { inline-size: calc(100% - 24px); padding: 12px; border-radius: 18px; }
  .lightbox-caption { font-size: 12px; } .lightbox .icon-button { inline-size: 42px; block-size: 42px; }
  .footer-top { flex-wrap: wrap; gap: 16px; padding-block-end: 26px; }
  .footer-top p { order: 3; flex-basis: 100%; font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 17px; font-size: 10px; } .footer-bottom nav { gap: 16px; }
  .doc { padding-block: 28px 60px; } .doc-layout { gap: 26px; }
  .doc article { padding: 28px 22px; border-radius: 20px; }
  .doc h1 { font-size: 35px; } .doc h2 { font-size: 17px; }
  .doc p, .doc li { font-size: 13px; } .doc .meta { font-size: 10px; }
  :lang(ko) .hero h1 { font-size: clamp(40px, 10vw, 56px); } :lang(ja) .hero h1, :lang(zh) .hero h1, :lang(zh-hant) .hero h1 { font-size: 46px; }
  :lang(hi) .hero h1, :lang(th) .hero h1 { font-size: 42px; }
}
@media (max-width: 360px) {
  .top-in { inline-size: calc(100% - 24px); gap: 6px; } .brand { font-size: 19px; gap: 4px; }
  .brand img { inline-size: 32px; block-size: 32px; } .lang select { inline-size: 66px; }
  .lang .icon { display: none; } .lang { padding-inline-start: 5px; }
  .hero h1 { font-size: 44px; } .hero-actions .button { padding-inline: 16px; }
  .hero-eyebrow { letter-spacing: .035em; } .hero-eyebrow .icon { inline-size: 18px; }
  .steps li { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; } .step-visual { inline-size: 80px; block-size: 80px; }
  .steps::before { inset-inline-start: 38px; } .step-visual .icon { inline-size: 35px; block-size: 35px; }
  .howto { padding: 23px; } .howto-heading { gap: 12px; } .video-caption > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
