@font-face {
  font-family: "Village Pixel";
  src: url("assets/village-pixel.woff") format("woff");
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #37412e;
  --wood: #5b5b35;
  --paper: #f6f0d8;
  --gold: #ffd481;
  --display: "Village Pixel", "Malgun Gothic", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 "Segoe UI", "Malgun Gothic", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
:focus-visible { outline: 3px solid #d14e10; outline-offset: 3px; }
.wrap { width: min(89%, 73rem); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .download, .topbar { font-family: var(--display); font-weight: 400; }
.mast { position: absolute; inset: 0 0 auto; z-index: 2; background: linear-gradient(#233321ef, #293c29d9); color: #fff5d7; border-bottom: 1px solid #c7b777; }
.topbar, nav { display: flex; align-items: center; }
.topbar { justify-content: space-between; min-height: 3.6rem; }
.brand { display: inline-flex; align-items: center; padding: .3rem; }
.brand img { width: 2.4rem; image-rendering: pixelated; }
nav { gap: clamp(.75rem, 3vw, 2.5rem); }
nav a, nav select { font-size: 1.15rem; }
nav a:hover, nav select:hover { color: var(--gold); }
nav select { border: 1px solid #a29d70; padding: .18rem .4rem; background: #354936; color: #fff4d5; }
.hero { position: relative; isolation: isolate; background: #617c51; }
.river-scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, #172a1bd9 0%, #1e301eac 22%, #29352550 47%, transparent 76%),
              linear-gradient(0deg, #21342152, transparent 18%, transparent 85%, #21342144); }
.inner { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding-block: 4.6rem; }
.pitch { text-align: center; max-width: 48rem; }
.kicker { color: #ffdf96; font: 1rem/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; text-shadow: 1px 2px #26351e; }
h1 { font-size: clamp(3rem,6.3vw,6.5rem); line-height: 1.02; color: #ffe498; margin: .7rem 0 1.15rem; text-shadow: -2px -2px #39432b, 2px -2px #39432b, -2px 2px #39432b, 2px 2px #39432b, 0 4px #80603b, 0 6px #303b25; }
.intro { max-width: 31rem; margin: 0 auto; color: #fff9e4; font-weight: 600; line-height: 1.55; text-shadow: 0 1px 3px #1a271a; }
.download { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.3rem; padding: .5rem 1.3rem; background: #ffcc6b; color: #54321d; border: 3px solid #724230; box-shadow: inset 2px 2px #fff1aa, inset -2px -3px #d99143, 0 4px #543827; font-size: 1.26rem; }
.download:hover { background: #ffdf84; }
.windows { display: grid; grid-template: 1fr 1fr / 1fr 1fr; width: 1rem; height: 1rem; gap: 2px; }
.windows i { background: currentColor; }
.landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.winter { animation: snowfall 16s ease-in-out infinite alternate; opacity: 0; }
@keyframes snowfall { 0%, 12% { opacity: 0; } 88%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .winter { animation: none; } }
.gallery, .village { background-color: var(--paper); background-image: radial-gradient(#d9a75d38 .75px, transparent 1px); background-size: 6px 6px; }
.gallery { border-top: 3px solid #c1a567; padding: clamp(2.3rem,5vw,4.25rem) 0 1.25rem; }
.gallery .wrap { max-width: 56rem; }
h2 { font-size: clamp(2.15rem,4vw,3.35rem); line-height: 1.2; color: #495d32; text-align: center; text-shadow: 1px 2px #ffde97; }
.gallery h2 { margin: 0 0 1.4rem; }
.carousel { position: relative; }
.shot-view { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #293c29; outline: 3px solid #75472e; box-shadow: 0 0 0 7px #db9b5e, 0 0 0 9px #96623c, 0 7px 0 6px #be864e; touch-action: pan-y pinch-zoom; }
.shot-view a { position: absolute; inset: 0; }
.shot-view img { width: 100%; height: 100%; display: block; object-fit: contain; }
.shot-view span { position: absolute; left: .7rem; bottom: .7rem; border: 1px solid #c49159; background: #293c29ed; color: #fff2cc; padding: .08rem .6rem; }
.step, .play-toggle { cursor: pointer; background: #f6bf6a; color: #57351e; border: 2px solid var(--wood); box-shadow: inset 1px 1px #ffedac, 0 2px #784829; }
.step:hover, .play-toggle:hover { background: #ffdf8b; }
.step { position: absolute; top: calc((100% - 3.5rem) / 2); transform: translateY(-50%); z-index: 1; width: 2.6rem; height: 2.6rem; font: bold 2rem/1 Georgia, serif; }
.prev { left: -1.15rem; } .next { right: -1.15rem; }
.shot-controls { height: 3.5rem; padding-top: .65rem; display: flex; align-items: center; justify-content: center; gap: .75rem; font-family: var(--display); }
.play-toggle { width: 2rem; height: 1.6rem; line-height: 1; }
.village { padding: 1.5rem 0 4rem; }
.village .wrap { max-width: 64rem; }
.sectionhead { text-align: center; border-top: 2px dashed #c99155; padding-top: 2.25rem; }
.sectionhead p { max-width: 42rem; margin: .75rem auto 0; }
.features { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2.5rem; }
article { display: grid; grid-template-columns: 5rem 1fr; align-items: start; gap: 1rem; border-top: 1px solid #dcb97e; padding: 1.2rem 0; }
.sprite { display: grid; place-items: center; height: 5.25rem; }
.sprite img { max-width: 100%; max-height: 5.25rem; image-rendering: pixelated; }
.sprite.item img { width: 3rem; }
h3 { font-size: 1.45rem; line-height: 1.22; margin-bottom: .35rem; color: #495d32; }
html:lang(ko) { word-break: keep-all; }
@media (max-width: 740px) {
  h1 { font-size: clamp(2.9rem,8.5vw,4rem); }
  .landscape { object-position: 55% center; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .wrap { width: 90%; }
  nav { gap: .55rem; }
  nav a, nav select { font-size: .94rem; }
  .prev { left: -.65rem; } .next { right: -.65rem; }
  article { grid-template-columns: 3.6rem 1fr; gap: .8rem; }
}
