@font-face {
  font-family: PeaceTitle;
  src: url('/fonts/game-title.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Comic Relief";
  src: url('/fonts/comic-relief-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Comic Relief";
  src: url('/fonts/comic-relief-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf7ef;
  --white: #fffdf8;
  --ink: #27362e;
  --muted: #526458;
  --green: #2c5847;
  --line: #deded0;
  --heading: PeaceTitle, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
html:lang(en) { --heading: "Comic Relief", sans-serif; font-family: "Comic Relief", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.24; word-break: keep-all; }
p, dd, li { overflow-wrap: anywhere; }
:lang(ko) p { word-break: keep-all; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #9f5839; outline-offset: 4px; }
.shell { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3; top: 8px; left: 8px; transform: translateY(-140%); padding: 12px 16px; background: var(--white); border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.header-content { min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 21px/1.25 var(--heading); }
.brand img { width: 42px; height: 42px; flex: none; border-radius: 12px; }
nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
nav a { white-space: nowrap; }
nav a:hover, .inline-link:hover { color: #266b54; }
.nav-download { padding: 8px 15px; border: 1px solid #c4d1be; border-radius: 12px; background: #edf0e1; }
.nav-download span { margin-left: 4px; }

.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.26fr); align-items: center; gap: clamp(24px, 4vw, 60px); padding-block: 58px 46px; }
.hero-copy { min-width: 0; }
.trailer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-block: 16px 32px; }
.trailer { display: flex; flex-direction: column; min-width: 0; }
.trailer-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.trailer-heading h2 { font-size: clamp(16px, 2vw, 24px); }
.trailer-heading .inline-link { margin: 0; }
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: auto; border-radius: 12px; background: #203b36; }
.category { font-size: 14px; font-weight: 700; color: #446752; }
h1 { margin: 12px 0 18px; font-size: clamp(48px, 5.4vw, 79px); line-height: 1.02; letter-spacing: -.055em; }
h1 span { display: block; margin-bottom: 11px; font-size: .42em; letter-spacing: -.035em; }
:lang(en) h1 { font-size: clamp(47px, 5.45vw, 81px); line-height: .98; letter-spacing: -.05em; }
.headline { font-size: clamp(17px, 1.65vw, 22px); font-weight: 700; line-height: 1.45; }
.family-message { color: var(--muted); font-size: 14px; margin-top: 15px; max-width: 390px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 25px; }
.button { display: inline-flex; width: max-content; max-width: 100%; min-height: 48px; align-items: center; gap: 9px; padding: 9px 14px; color: #fffdf4; background: var(--green); border: 1px solid var(--green); border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.35; transition: background .18s, box-shadow .18s; }
.button:hover { background: #367054; box-shadow: 0 4px 10px #263d2822; }
.download-gate { width: min(25rem, 90%); margin: 10vh auto; }
.download-gate form { display: grid; gap: .85rem; }
.download-gate input { min-height: 44px; padding: .5rem .75rem; font: inherit; border: 1px solid #819685; border-radius: 8px; }
.download-gate [role="alert"] { margin: 0; color: #913622; }
.button svg, .device-icon svg { width: 21px; height: 21px; flex: none; }
.button svg { color: #c8e3ed; }
.button-outline { color: var(--green); background: #fffef8; border-color: #c6d2bf; }
.button-outline svg { color: var(--green); }
.button-outline:hover { background: #edf4e8; }
.unavailable { color: var(--muted); background: #f0efe7; border-color: var(--line); }
.inline-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--green); font-size: 14px; text-underline-offset: 4px; text-decoration: underline; }
.hero-view { padding: 10px; border: 1px solid #dfd9e4; border-radius: 25px; background: #f3edf7; box-shadow: 0 16px 34px #342c3a1a, 0 4px 0 #e8dfea; }
.hero-view img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #d7cde8; }
.hero-view figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 6px 4px; }
.hero-view figcaption>span { font: 700 18px/1.3 var(--heading); }
.hero-view figcaption a { color: #5b4967; font-size: 13px; font-weight: 700; }
.hero-view figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }

.places-section { padding-block: 72px 58px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2, .friends h2 { font-size: clamp(30px, 3.65vw, 47px); letter-spacing: -.044em; }
.section-head p { max-width: 410px; color: var(--muted); font-size: 15px; }
.place-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.place { min-width: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 5px 16px #413b2b0b; overflow: hidden; }
.place.lavender { --chip: #f0e8f8; --chip-ink: #554260; }
.place.leaf { --chip: #eaf0db; --chip-ink: #405a35; }
.place.aqua { --chip: #dff1ed; --chip-ink: #2b615a; }
.place.peach { --chip: #f8ebdc; --chip-ink: #784d32; }
.place-image { position: relative; display: block; align-self: stretch; overflow: hidden; background: var(--chip); }
.place-image:focus-visible { outline-offset: -5px; }
.place-image img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.place-image:hover img { transform: scale(1.035); }
.expand { position: absolute; right: 11px; bottom: 11px; display: grid; width: 34px; height: 34px; place-items: center; background: #fffdf4f3; border-radius: 10px; box-shadow: 0 2px 8px #28302230; }
.place-info { padding: 18px 20px 21px; }
.place-info h3 { font-size: clamp(21px, 2.25vw, 29px); letter-spacing: -.03em; }
.place-info>p { margin: 8px 0 15px; color: var(--muted); font-size: 14px; }
.activities, .animals { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.activities li { color: var(--chip-ink); background: var(--chip); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 9px; }
.featured-place { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; background: #f3edf8; border-color: #ded1e7; }
.featured-place .place-info { padding: 23px clamp(22px, 4vw, 46px); }
.featured-place h3 { font-size: clamp(27px, 3.65vw, 46px); }
.featured-place p { font-size: 16px; }
.featured-place .activities li { background: #e8dcf3; }
.gift-album { margin-top: 10px; border: 1px solid #ded1e7; border-radius: 16px; background: var(--white); }
.gift-album summary { cursor: pointer; padding: 15px 20px; color: #554260; font: 700 17px/1.4 var(--heading); }
.gift-album summary:focus-visible { outline: 3px solid #9f5839; outline-offset: 2px; border-radius: 14px; }
.gift-album p { margin: 0 20px 16px; color: var(--muted); }
.gift-album ul { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px 12px; padding: 0 16px 18px; }
.gift-album a { display: block; border-radius: 12px; }
.gift-album img { aspect-ratio: 5 / 4; border-radius: 12px; }
.gift-album span { display: block; padding-top: 5px; text-align: center; font-weight: 700; }

.friends { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(25px, 5vw, 65px); align-items: center; padding-bottom: 64px; }
.friends-copy>p { margin-top: 14px; color: var(--muted); }
.friends-art { position: relative; display: flex; align-items: end; justify-content: center; min-height: 200px; aspect-ratio: 1.65; padding: 12% 5% 5%; background: #ebefda; border-radius: 46% 44% 35% 44%; }
.friends-art img { width: 38%; object-fit: contain; filter: drop-shadow(0 8px 4px #364b3124); }
.friends-art img:first-child { transform: rotate(-9deg) translateY(-9%); }
.friends-art img:nth-child(2) { z-index: 1; width: 32%; margin-inline: -7%; }
.friends-art img:last-child { transform: rotate(7deg) translateY(-7%); }
.animals { margin-top: 20px; }
.animals li { border: 1px solid #d5ddc8; border-radius: 999px; color: #3d5c49; font-size: 13px; padding: 4px 11px; }
.together-section { padding-block: 51px; color: #fbf8ed; background: #2a5145; }
.together-section .section-head p, .steps p { color: #dce7db; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.steps li { padding: 20px; background: #315b4e; border: 1px solid #4f7264; border-radius: 16px; }
.step-number { display: grid; width: 29px; height: 29px; place-items: center; color: #294436; background: #e5ebbf; border-radius: 50%; font-weight: 700; font-size: 14px; }
.steps h3 { margin-top: 12px; font-size: 21px; }
.steps p { margin-top: 8px; font-size: 14px; }

.install { padding-block: 56px; }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.install-card { min-width: 0; padding: 25px; background: #eff3f4; border: 1px solid #dae1e6; border-radius: 20px; }
.install-card.android { background: #edf2e3; border-color: #d9e3d0; }
.device-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; color: #245770; background: #dfebf2; }
.android .device-icon { color: #386345; background: #deead8; }
.install-card h3 { margin-top: 11px; font-size: 26px; }
.install-card p { color: var(--muted); margin-top: 7px; font-size: 14px; }
.install-card .button { margin-top: 15px; }
.install-card .version { font-weight: 700; }
.install-card .release-date { font-size: 12px; }
.installer-row { margin-top: 16px; border-top: 1px solid #d4dee3; }
.site-footer { border-top: 1px solid var(--line); }
.footer-content { flex-wrap: wrap; padding-block: 22px; }
.footer-content .brand { font-size: 18px; }
.footer-content .copyright { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.font-notices, .language-picker { font-size: 12px; color: var(--muted); }
.font-notices a { text-decoration: underline; text-underline-offset: 3px; }
.language-picker { display: flex; gap: 9px; align-items: center; }
.language-picker select, .language-picker button { min-height: 44px; padding: 5px 11px; border: 1px solid #b7c8b9; border-radius: 10px; color: var(--ink); background: #fffdf8; font: inherit; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 25px; }
  .place-grid { gap: 15px; }
  .place-info { padding: 16px; }
  .featured-place .place-info { padding: 20px; }
}
@media (max-width: 760px) {
  .gift-album ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header-content { min-height: 0; padding-block: 12px; flex-wrap: wrap; gap: 12px; }
  .brand { font-size: 18px; }
  nav { gap: 14px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 23px; padding-block: 34px 31px; }
  h1, :lang(en) h1 { font-size: clamp(43px, 9vw, 68px); }
  .hero-actions { margin-top: 20px; }
  .places-section { padding-block: 47px 40px; }
  .section-head { flex-direction: column; align-items: start; gap: 8px; margin-bottom: 18px; }
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-place { grid-template-columns: 1.05fr 1fr; }
  .featured-place a img { height: 100%; min-height: 175px; }
  .friends { padding-bottom: 45px; }
  .together-section, .install { padding-block: 40px; }
  .steps { gap: 10px; }
  .steps li, .install-card { padding: 16px; }
}
@media (max-width: 535px) {
  .shell { width: calc(100% - 32px); }
  .header-content { justify-content: center; }
  .header-content nav { width: 100%; justify-content: center; }
  .hero-view { border-radius: 18px; padding: 7px; }
  .hero-view img { border-radius: 12px; }
  .hero-view figcaption { padding: 9px 4px 3px; }
  .hero-view figcaption>span { font-size: 16px; }
  .featured-place, .place-grid, .steps, .friends, .install-grid { grid-template-columns: 1fr; }
  .featured-place a img { height: auto; min-height: 0; }
  .place-grid { gap: 12px; margin-top: 12px; }
  .friends { gap: 20px; }
  .friends-art { max-width: 360px; width: 100%; min-height: 0; margin: auto; }
  .footer-content { gap: 13px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .place-image img { transition: none; }
}
