/* butterplace.kr — build.py 가 아래 두 자리표시자를 채우고 이름에 내용 해시를 붙여 dist/assets/ 에 쓴다.
   @FONTS@     : 쓰인 글자만 남긴 깡총고딕 @font-face
   @GENERATED@ : 게임마다의 색 변수 · 첫 화면 캐릭터 높이 · 녹는 버터 그림 주소 */
@font-face { font-family: "Kkangchong Black"; src: url("/assets/fonts/kkangchong-black.940448c75e.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Kkangchong"; src: url("/assets/fonts/kkangchong.71b0410042.woff2") format("woff2"); font-display: swap; }

:root {
  --butter: #FFD23F;
  --butter-deep: #F2B526;
  --crust: #2B1A10;
  --crust-soft: #5C4330;
  --milk: #FFFFFF;
  --line: rgba(43, 26, 16, 0.14);
  --focus: var(--crust);
  --wrap: 1180px;
  --pad: 24px;
  --display: "Kkangchong Black", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --text: "Kkangchong", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--milk);
  color: var(--crust);
  font: 17px/1.65 var(--text);
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--butter); color: var(--crust); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 10px;
  background: var(--butter); color: var(--crust); font-family: var(--display); text-decoration: none;
}
.skip:focus { top: 12px; }

/* 윗줄 */
.top { background: var(--crust); color: var(--milk); --focus: var(--butter); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--butter); font-family: var(--display); font-size: 23px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a, .lang { text-decoration: none; font-size: 16px; }
.nav a:hover, .lang:hover { color: var(--butter); }
.lang { padding: 5px 14px; border: 2px solid rgba(255, 210, 63, 0.55); border-radius: 999px; }

/* 첫 화면: 버터 바탕 · 가운데 이름 · 마주 보는 두 무리 */
.hero { background: var(--butter); text-align: center; padding-top: clamp(48px, 8vw, 88px); overflow: hidden; }
.wordmark { font-size: clamp(64px, 13.5vw, 184px); line-height: 0.95; letter-spacing: -0.035em; }
.hero-line { margin-top: 20px; font-size: clamp(18px, 2.2vw, 23px); color: var(--crust-soft); }
.btn {
  display: inline-block; margin-top: 28px; padding: 14px 28px; border-radius: 999px;
  background: var(--crust); color: var(--butter); font-family: var(--display); font-size: 18px; text-decoration: none;
}
.btn:hover { background: #4A2E1C; }

.cast { --k: 0.0625vw; display: flex; justify-content: center; align-items: flex-end; gap: clamp(36px, 9vw, 150px); margin-top: clamp(32px, 5vw, 56px); }
.side { display: flex; align-items: flex-end; gap: clamp(2px, 1vw, 14px); }
.side-l { flex-direction: row-reverse; }
/* --ch = 넓은 화면에서의 높이(단위 없음). 화면 폭에 맞춰 줄고, 1600px 넘으면 원래 높이 */
.cast img { width: auto; height: min(calc(var(--ch) * 1px), calc(var(--ch) * var(--k))); animation: rise 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
.side > :nth-child(1) { animation-delay: 0.12s; }
.side > :nth-child(2) { animation-delay: 0.2s; }
.side > :nth-child(3) { animation-delay: 0.28s; }
.side > :nth-child(4) { animation-delay: 0.36s; }
.side > :nth-child(5) { animation-delay: 0.44s; }
@keyframes rise { from { transform: translateY(36px); opacity: 0; } }
.side > :nth-child(5) { display: none; }
@media (min-width: 1600px) { .side > :nth-child(5) { display: block; } }

.drip { height: 72px; background-repeat: repeat-x; background-position: left top; background-size: 520px 72px; }

/* 게임 */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-title { font-size: clamp(36px, 5vw, 48px); margin-bottom: 32px; }
.games { padding-top: clamp(24px, 4vw, 40px); }
.game-list { display: grid; gap: 32px; }

.game {
  --focus: var(--butter);
  display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(20px, 3.5vw, 44px); border-radius: 28px;
  background: var(--g-bg); color: var(--g-ink);
}
.game-poster img { width: 100%; border-radius: 18px; }
.game-head { display: flex; align-items: center; gap: 18px; }
.icon { flex: none; border-radius: 22%; }
.game-head .icon { width: 84px; height: 84px; }
.game-name { font-size: clamp(26px, 3.2vw, 36px); }
.game-name a { text-decoration: none; }
.game-name a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--g-accent); }
.sub { margin-top: 6px; font-size: clamp(17px, 1.8vw, 21px); color: var(--g-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { padding: 3px 12px; border: 2px solid color-mix(in srgb, var(--g-soft) 45%, transparent); border-radius: 999px; font-size: 14px; color: var(--g-soft); }
.pitch { margin-top: 18px; font-size: 18px; max-width: 34em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store {
  display: inline-flex; flex-direction: column; min-width: 168px; padding: 9px 18px 10px; border-radius: 14px;
  background: var(--g-ink); color: var(--g-bg); text-decoration: none; line-height: 1.25;
}
.store-k { font-size: 13px; }
.store-v { font-family: var(--display); font-size: 21px; }
a.store:hover { background: var(--milk); }
.store.is-soon { background: transparent; color: var(--g-soft); border: 2px dashed color-mix(in srgb, var(--g-soft) 60%, transparent); padding: 7px 16px 8px; }

.more {
  display: inline-block; margin-top: 26px; font-family: var(--display); font-size: 18px;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; text-decoration-color: var(--g-accent);
}
.more:hover { color: var(--milk); }

/* 회사 소개 */
/* 구역 사이 선: 글 폭에 맞춘 2px (wrap 의 좌우 여백까지 그어지지 않게) */
.rule { background: linear-gradient(var(--line), var(--line)) top center / calc(100% - var(--pad) * 2) 2px no-repeat; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.about .section-title { margin: 0; }
.about-text { display: grid; gap: 14px; font-size: 19px; max-width: 36em; }

/* 아랫줄 */
.foot { background: var(--crust); color: var(--milk); --focus: var(--butter); }
.foot-in { display: grid; grid-template-columns: 1.2fr 1.4fr 1.4fr; gap: 40px; padding-block: 56px 40px; }
.foot h2 { font-size: 21px; color: var(--butter); margin-bottom: 12px; }
.foot p { color: rgba(255, 255, 255, 0.78); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--butter); }
.foot .brand { font-size: 26px; }
.mail { display: inline-block; margin-top: 10px; font-family: var(--display); font-size: 19px; color: var(--butter); }
.foot-games li + li { margin-top: 14px; }
.foot-game { font-family: var(--display); font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.foot-bottom { padding-block: 18px 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* 게임 상세 */
.ghero { --focus: var(--butter); background: var(--g-bg); color: var(--g-ink); padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.ghero-in { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.ghero-poster { border-radius: 22px; }
.crumb { font-size: 15px; margin-bottom: 18px; }
.crumb a { color: var(--g-soft); }
.ghero .icon { width: 96px; height: 96px; margin-bottom: 20px; }
.ghero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.story { margin-top: 20px; font-size: 19px; max-width: 32em; }

.shots-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.shots-head .section-title { margin: 0; }
.hint { color: var(--crust-soft); font-size: 15px; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; overscroll-behavior-x: contain; }
.rail li { flex: 0 0 auto; width: clamp(180px, 21vw, 252px); scroll-snap-align: start; }
.rail img { width: 100%; border-radius: 20px; border: 1px solid var(--line); }

.quote { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: 8px clamp(56px, 8vw, 96px); }
.quote-face { width: clamp(112px, 16vw, 168px); aspect-ratio: 1; border-radius: 50%; background: var(--butter); overflow: hidden; display: grid; place-items: end center; }
.quote-face img { width: 88%; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(24px, 3.2vw, 36px); line-height: 1.3; max-width: 22em; }
.quote figcaption { margin-top: 12px; color: var(--crust-soft); }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.feature h3 { font-size: 24px; margin-bottom: 10px; }
.feature p { max-width: 34em; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.facts .section-title { font-size: 28px; margin-bottom: 20px; }
.fact-list { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
.fact-list dt { color: var(--crust-soft); }
.fact-list dd { margin: 0; }
.link-list { display: flex; flex-wrap: wrap; gap: 10px; }
.link-list a { display: inline-block; padding: 8px 16px; border: 2px solid var(--crust); border-radius: 999px; text-decoration: none; }
.link-list a:hover { background: var(--butter); }

/* 찾을 수 없음 */
.lost { text-align: center; }
.lost .section-title { margin-bottom: 14px; }
.lost p { color: var(--crust-soft); }

@media (max-width: 900px) {
  .cast { --k: 0.1vw; }
  .side > :nth-child(4) { display: none; }
  .ghero-in { grid-template-columns: 1fr; }
  .ghero-poster { max-width: 320px; }
  .about, .facts { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .game { grid-template-columns: 1fr; }
  .game-poster img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 4%; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .top-in { gap: 14px; min-height: 56px; }
  .brand { font-size: 20px; }
  .brand img { width: 28px; height: 28px; }
  .nav { gap: 14px; }
  .nav a, .lang { font-size: 14px; }
  .lang { padding: 3px 10px; }
  .cast { --k: 0.105vw; gap: 24px; }
  .drip { height: 54px; background-size: 390px 54px; }
  .feature-list { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .nav a[href$="#about"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cast img { animation: none; }
}

.drip { background-image: url("/assets/drip.02ec727722.svg"); }
.g-yongsa-defense { --g-bg: #3D1E3F; --g-panel: #4A2550; --g-accent: #F0532E; --g-ink: #FFF4E2; --g-soft: #E3C9E6; }
.c-goblin_chief { --ch: 152; }
.c-imp_mage { --ch: 100; }
.c-slime_king { --ch: 122; }
.c-skeleton_knight { --ch: 150; }
.c-jelly_slime { --ch: 84; }
.c-hero_arthur { --ch: 160; }
.c-hero_brunhild { --ch: 150; }
.c-hero_celeste { --ch: 154; }
.c-hero_ironheart { --ch: 156; }
.c-hero_pio { --ch: 150; }

