/* EMBERIA: 게임 화면의 말을 그대로 쓴 페이지(2026-11-03 사용자 지시 "COZY 게임 같게, Farmily·Stop! Taco처럼 고유하게").
   - 바탕은 노을빛 자주 → 따뜻한 코코아 갈색 + 반딧불 같은 노란 점(2026-11-03 사용자 "남색은 COZY 느낌이 덜하다"). 첫 그림은 아래를 밤색으로 흐려 타이틀로 이어진다(흙 무늬는 지저분해 보여 뺐다).
   - 글 묶음은 게임 HUD 나무 판(진갈 #4b2d23, 윗줄 밝은 갈 #8b5b45, 테두리 #2a1611), 번호는 단축바 칸(선택 칸은 노란 테두리 #f2b54a).
   - 세계관은 크림색 편지지(#f3e3c3) 위 진갈 글자.
   - 글자 대비: 크림 #fbe7bf 는 밤 #141027 위 15:1, 나무 판 #4b2d23 위 9:1. 흐린 글 #d6c9e6 은 밤 위 11:1. 편지 글 #3b2418 은 편지지 위 11:1. 주황 단추 #ec7a2e 위 진갈 #2a1208 6.6:1.
   - 픽셀 그림(아이콘·아이템·흙·풀)은 image-rendering: pixelated + 정수 배. 스크린샷은 자르지 않고 16:9 원본. */
@font-face { font-family: 'NeoDunggeunmo'; src: url('../fonts/neodgm.ttf') format('truetype'); font-display: swap; }
.emberia {
  color-scheme: dark;
  --night: #241816;
  --night-2: #2f201c;
  --cream: #fbe7bf;
  --muted: #e6d5c0;
  --wood: #4b2d23;
  --wood-hi: #8b5b45;
  --wood-lo: #3a2119;
  --wood-edge: #2a1611;
  --slot: #3b2219;
  --slot-rim: #6b4330;
  --gold: #f2b54a;
  --ember: #ec7a2e;
  --ember-hi: #f59a45;
  --soil-ink: #2a1208;
  --paper: #f3e3c3;
  --paper-ink: #3b2418;
  --px: 'NeoDunggeunmo', 'Pretendard Variable', monospace;
  --txt: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.emberia, .emberia *, .emberia *::before, .emberia *::after { box-sizing: border-box; }
html:has(body.emberia) { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--night); }
body.emberia { margin: 0; background: var(--night); color: #fff; font-family: var(--txt); font-size: 17px; line-height: 1.8; word-break: keep-all; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.emberia img { display: block; max-width: 100%; height: auto; }
.emberia a { color: inherit; }
.emberia .ico { width: 1.1em; height: 1.1em; flex: none; }
.e-wrap { position: relative; width: min(1160px, 100% - 32px); margin: 0 auto; }
.e-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.e-skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 8px 14px; background: var(--cream); color: var(--soil-ink); border-radius: 6px; }
.e-skip:focus { top: 12px; }

/* 밤하늘 픽셀 별: 네모 점(2·3px)을 여러 크기 타일로 흩뿌리고, 한 겹만 천천히 깜빡인다 */
/* 바탕: 단색 코코아. 넓고 옅은 그라데이션은 8비트 색에서 줄무늬로 깨져 보여(2026-11-03 사용자 "잘리고 깨지는 느낌") 쓰지 않는다.
   분위기는 천천히 떠다니며 깜빡이는 반딧불(작은 점) 두 겹으로만 */
.e-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--night); }
.e-sky::before, .e-sky::after { content: ''; position: absolute; inset: -40px; background-repeat: repeat; }
.e-sky::before { opacity: 0.5; background-image: radial-gradient(#f3c48a 0 1px, transparent 1.4px), radial-gradient(#fbe7bf 0 1px, transparent 1.4px); background-size: 173px 149px, 263px 211px; background-position: 13px 71px, 120px 20px; animation: e-drift 60s linear infinite; }
.e-sky::after { opacity: 0.85; background-image: radial-gradient(#ffd27a 0 1.6px, transparent 2px), radial-gradient(#f5a86a 0 1.2px, transparent 1.6px); background-size: 311px 197px, 233px 271px; background-position: 41px 37px, 160px 110px; animation: e-drift 90s linear infinite reverse, e-twinkle 4s ease-in-out infinite; }
@keyframes e-drift { to { transform: translate(40px, -40px); } }
@keyframes e-twinkle { 50% { opacity: 0.35; } }

/* 나무 판(게임 HUD) */
.e-wood { background: var(--wood); border: 3px solid var(--wood-edge); border-radius: 6px; box-shadow: inset 0 3px 0 var(--wood-hi), inset 0 -3px 0 var(--wood-lo); color: var(--cream); }

/* 상단 막대 */
.e-nav { position: sticky; top: 0; z-index: 30; padding: 10px 0; background: linear-gradient(180deg, rgba(36, 24, 22, 0.94), rgba(36, 24, 22, 0.72)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.e-nav__row { display: flex; align-items: center; gap: 16px; }
.e-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--px); font-size: 20px; color: var(--cream); text-decoration: none; letter-spacing: 0.04em; }
.e-brand img { image-rendering: pixelated; border-radius: 6px; border: 2px solid var(--wood-edge); }
.e-nav__links { display: flex; margin-left: auto; padding: 2px 6px; }
.e-nav__links a { padding: 6px 12px; font-family: var(--px); font-size: 16px; line-height: 1.6; color: var(--cream); text-decoration: none; border-radius: 4px; }
.e-nav__links a:hover { background: rgba(0, 0, 0, 0.22); color: var(--gold); }
.e-nav__studio { padding: 8px 12px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.e-nav__studio:hover { color: #fff; }
/* 언어 버튼(EN/KO): STUDIO MUEIL 오른쪽 */
.e-nav .e-lang { height: 34px; color: var(--muted); }
.e-nav .e-lang:hover { color: #fff; }
.e-nav__row:has(.e-lang) .e-nav__studio { white-space: nowrap; }
@media (max-width: 480px) { .e-nav__row:has(.e-lang) { gap: 8px; } .e-nav__row:has(.e-lang) .e-nav__studio { padding-inline: 6px; font-size: 13px; } }

/* 첫 화면: 그림 → 풀 → 흙 위의 로고 간판 */
.e-hero__media { position: relative; }
.emberia .e-hero__art { width: 100%; height: clamp(260px, 32.3vw, 680px); object-fit: cover; object-position: 50% 62%; }
.e-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 24, 22, 0.25) 0%, rgba(36, 24, 22, 0) 22%, rgba(36, 24, 22, 0) 58%, rgba(36, 24, 22, 0.85) 88%, var(--night) 100%); pointer-events: none; }
/* 타이틀 구역: 흙 무늬 없이 맑은 밤 + 아래에서 번지는 모닥불 빛(2026-11-03 사용자 "땅이 보이니 지저분") */
.e-ground { position: relative; margin-top: clamp(-90px, -6vw, -40px); padding: 0 0 72px; }
.e-hero__in { z-index: 1; display: grid; justify-items: center; text-align: center; }
.e-logo { margin: 0 0 22px; width: min(600px, 86%); }
.e-logo img { filter: drop-shadow(0 0 16px rgba(245, 154, 69, 0.6)) drop-shadow(0 0 44px rgba(236, 122, 46, 0.35)); }
.e-hero__title { margin: 0 0 10px; font-family: var(--px); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5; color: var(--cream); text-shadow: 0 3px 0 var(--wood-edge); }
.e-hero__lede { margin: 0 0 22px; max-width: 36em; font-size: 16px; color: var(--muted); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
.e-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.e-badges li { padding: 3px 12px 4px; font-family: var(--px); font-size: 15px; line-height: 1.6; }

/* 단추 */
.e-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.e-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 6px; font-family: var(--px); font-size: 17px; text-decoration: none; border: 3px solid var(--wood-edge); }
.e-btn--ember { background: var(--ember); color: var(--soil-ink); box-shadow: inset 0 3px 0 #ffc58a; transition: background 0.15s, transform 0.15s var(--ease); }
.e-btn--ember:hover { background: var(--ember-hi); transform: translateY(-2px); }
.e-btn--ember:active { transform: translateY(1px); }
.e-btn--wood { background: var(--wood); color: var(--muted); box-shadow: inset 0 3px 0 var(--wood-hi); cursor: default; }

/* 구역 */
.e-sec { padding: 96px 0 0; }
.e-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 18px 7px; font-family: var(--px); font-weight: 400; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; color: var(--cream);
  background: var(--wood); border: 3px solid var(--wood-edge); border-radius: 6px; box-shadow: inset 0 3px 0 var(--wood-hi), inset 0 -3px 0 var(--wood-lo), 0 6px 0 rgba(0, 0, 0, 0.25); }
.e-tag i { font-style: normal; color: var(--gold); }
.e-sec__title { margin: 0 0 26px; font-family: var(--px); font-size: clamp(24px, 3.2vw, 36px); line-height: 1.4; color: var(--cream); }

/* 그림 틀: 게임 미니맵처럼 나무 테두리 */
.e-frame { display: block; margin: 0; padding: 6px; background: var(--wood); border: 3px solid var(--wood-edge); border-radius: 8px; box-shadow: inset 0 3px 0 var(--wood-hi), 0 14px 30px rgba(0, 0, 0, 0.35); }
.e-frame img { border-radius: 3px; }
.e-feat__shot, .e-custom__shot { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.e-feat__shot:hover, .e-custom__shot:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: inset 0 3px 0 var(--wood-hi), 0 22px 40px rgba(0, 0, 0, 0.45); }

/* 어떤 게임인가요: 장르 한 줄 + 하루의 흐름(낮→해 질 녘→밤→다음 날) */
.e-about { padding-top: 40px; }
.e-kicker { margin: 0 0 10px; font-family: var(--px); font-size: 16px; color: var(--gold); letter-spacing: 0.04em; }
.e-about__h { margin: 0 0 14px; font-family: var(--px); font-weight: 400; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.35; color: var(--cream); }
.e-about__lede { margin: 0 0 36px; color: var(--muted); }
.e-day { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: stretch; }
.e-day__view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.e-day__view img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 0.7s ease, transform 5.5s linear; }
.e-day__view img.is-on { opacity: 1; transform: scale(1); }
.e-day__clock { position: absolute; left: 18px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 5px; font-family: var(--px); font-size: 18px; line-height: 1.5; }
.e-day__clock i { font-style: normal; color: var(--gold); }
.e-day__steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.e-day__step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; width: 100%; padding: 14px 16px 16px; text-align: left; font: inherit; cursor: pointer; overflow: hidden; transition: transform 0.2s var(--ease), border-color 0.2s; }
.e-day__step:hover { transform: translateX(4px); }
.e-day__step.is-on { border-color: var(--gold); }
.e-day__n { display: grid; place-items: center; width: 38px; height: 38px; font-family: var(--px); font-size: 18px; color: var(--cream); background: var(--slot); border: 3px solid var(--slot-rim); border-radius: 6px; }
.e-day__step.is-on .e-day__n { border-color: var(--gold); color: var(--gold); }
.e-day__t b { display: block; font-family: var(--px); font-weight: 400; font-size: 18px; line-height: 1.4; color: var(--cream); }
.e-day__t span { display: block; font-size: 14px; line-height: 1.55; color: #e8cfa4; }
.e-day__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.e-day__step.is-on .e-day__bar { animation: e-bar var(--run, 0ms) linear forwards; }
.e-day.is-paused .e-day__step.is-on .e-day__bar { animation-play-state: paused; }
@keyframes e-bar { to { transform: scaleX(1); } }
/* 낮밤에 따라 화면 위에 아주 옅은 색을 얹는다 */
.e-day__view::after { content: ''; position: absolute; inset: 6px; pointer-events: none; transition: background 0.8s; border-radius: 3px; }
.e-day[data-tod='dusk'] .e-day__view::after { background: rgba(236, 122, 46, 0.08); }
.e-day[data-tod='night'] .e-day__view::after { background: rgba(40, 30, 80, 0.12); }

/* 영상 자리 */
.e-video { position: relative; }
.e-video img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; opacity: 0.4; }
.e-video p { position: absolute; inset: 6px; margin: 0; display: grid; place-content: center; justify-items: center; gap: 14px; font-family: var(--px); font-size: clamp(16px, 2vw, 20px); color: var(--cream); text-align: center; padding: 0 16px; }
.e-play { display: grid; place-items: center; width: 64px; height: 64px; background: var(--ember); color: var(--soil-ink); border: 3px solid var(--wood-edge); border-radius: 6px; box-shadow: inset 0 3px 0 #ffc58a; }
.e-play .ico { width: 26px; height: 26px; }

/* 세계관: 편지지 */
.e-letter { position: relative; max-width: 780px; padding: 40px 44px 36px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--wood-edge); border-radius: 6px;
  box-shadow: inset 0 0 0 6px #e8d2a8, 0 12px 0 rgba(0, 0, 0, 0.25);
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(139, 91, 69, 0.18) 33px 34px); background-position: 0 30px; }
.e-letter h3 { margin: 0 0 18px; font-family: var(--px); font-weight: 400; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; color: var(--wood); }
.e-letter p { margin: 0 0 14px; line-height: 2; }
.e-letter__end { margin-bottom: 0 !important; font-weight: 700; }

/* 게임 특징: 단축바 목차 + 그림·글 번갈아 */
.e-hotbar { display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 0 56px; padding: 8px; overflow-x: auto; scrollbar-width: none; }
.e-slot { position: relative; flex: none; display: grid; place-items: center; width: 60px; height: 60px; background: var(--slot); border: 3px solid var(--slot-rim); border-radius: 6px; box-shadow: inset 0 0 0 3px #2c1913; text-decoration: none; transition: border-color 0.15s; }
.e-slot b { position: absolute; top: -2px; left: 4px; font-family: var(--px); font-weight: 400; font-size: 13px; color: var(--cream); text-shadow: 0 2px 0 var(--wood-edge); }
.e-slot:hover { border-color: #a46a4c; }
.e-slot.is-on { border-color: var(--gold); box-shadow: inset 0 0 0 3px #b9802c; }
.e-item { image-rendering: pixelated; width: auto; height: auto; }
.e-feats { display: grid; gap: 80px; }
.e-feat { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.e-feat--flip .e-feat__shot { order: 2; }
.e-slot--mark { margin-bottom: 14px; border-color: var(--gold); box-shadow: inset 0 0 0 3px #b9802c; }
.e-feat__text h3 { margin: 0 0 12px; font-family: var(--px); font-weight: 400; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.45; color: var(--cream); }
.e-feat__text p { margin: 0; color: var(--muted); }

/* 스크린샷 */
.e-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 14px; margin: 0; padding: 0; list-style: none; }
.e-gallery .e-frame { padding: 4px; transition: transform 0.15s var(--ease), border-color 0.15s; }
.e-gallery .e-frame:hover { transform: translateY(-3px); border-color: var(--gold); }
.e-gallery span { display: block; margin-top: 8px; font-family: var(--px); font-size: 14px; color: var(--cream); text-align: center; }

/* 게임 정보: 가방 창처럼 나무 판 */
.e-info { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.e-panel { padding: 22px 24px; }
.e-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; }
.e-dl dt { font-family: var(--px); color: var(--gold); }
.e-dl dd { margin: 0; color: var(--cream); overflow-wrap: anywhere; }
.e-panel__h { margin: 0 0 12px; font-family: var(--px); font-weight: 400; font-size: 20px; color: var(--gold); }
.e-table { overflow-x: auto; }
.e-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.e-table th, .e-table td { padding: 8px 10px; text-align: left; border-bottom: 2px solid var(--wood-lo); vertical-align: top; color: var(--cream); }
.e-table thead th { font-family: var(--px); font-weight: 400; color: var(--gold); }
.e-table tbody th { font-weight: 500; white-space: nowrap; color: #e8cfa4; }
.e-note { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: #e8cfa4; }

/* 마무리: 모닥불 */
.e-cta { position: relative; margin-top: 120px; padding: 80px 0 96px; text-align: center; background: #2e1d17; border-top: 3px solid var(--wood-edge); }
.e-cta .e-wrap { z-index: 1; display: grid; justify-items: center; }
.e-fire { width: 18px; height: 18px; margin: 0 0 26px; background: #ffd27a; box-shadow:
  0 -6px 0 #ffd27a, 0 -12px 0 #f59a45, 6px 0 0 #f59a45, -6px 0 0 #f59a45, 6px -6px 0 #ec7a2e, -6px -6px 0 #ec7a2e, 0 -18px 0 #ec7a2e,
  12px 6px 0 #6b4330, -12px 6px 0 #6b4330, 6px 6px 0 #8b5b45, -6px 6px 0 #8b5b45, 0 6px 0 #8b5b45;
  animation: e-flicker 1.2s steps(2) infinite; image-rendering: pixelated; }
@keyframes e-flicker { 50% { transform: translateY(-2px) scaleY(1.08); } }
.e-cta__h { margin: 0 0 10px; font-family: var(--px); font-weight: 400; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.45; color: var(--cream); text-shadow: 0 3px 0 var(--wood-edge); }
.e-cta p { margin: 0 0 26px; color: var(--muted); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }

/* 바닥 */
.e-foot { padding: 56px 0 40px; background: #120c0a; border-top: 3px solid var(--wood-edge); }
.e-foot__h { margin: 0 0 16px; font-family: var(--px); font-weight: 400; font-size: 18px; color: var(--cream); }
.e-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.e-more__card { display: grid; gap: 4px; padding: 16px 18px; text-decoration: none; transition: transform 0.15s var(--ease); }
.e-more__card:hover { transform: translateY(-2px); }
.e-more__card strong { font-family: var(--px); font-weight: 400; font-size: 17px; color: var(--gold); }
.e-more__card span { font-size: 14px; line-height: 1.6; color: var(--cream); }
.e-foot__nav { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; font-size: 15px; }
.e-foot__nav a { color: var(--muted); text-decoration: none; }
.e-foot__nav a:hover { color: #fff; }
.e-foot__legal { margin: 18px 0 0; font-size: 13px; line-height: 1.75; color: #b8adc8; }
.e-foot__legal a { color: #b8adc8; }

:where(.emberia) a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .e-day { grid-template-columns: 1fr; }
  .e-nav__links { display: none; }
  .e-nav__studio { margin-left: auto; }
  .e-feat, .e-info { grid-template-columns: 1fr; gap: 22px; }
  .e-feat--flip .e-feat__shot { order: 0; }
  .e-gallery { grid-template-columns: repeat(2, 1fr); }
  .e-more { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body.emberia { font-size: 16px; }
  .emberia .e-hero__art { height: 220px; }
  .e-ground { padding-bottom: 56px; }
  .e-hero__lede br { display: none; }
  .e-sec { padding-top: 72px; }
  .e-feats { gap: 56px; }
  .e-letter { padding: 28px 22px 24px; }
  .e-hotbar { margin-bottom: 40px; }
  .e-slot { width: 52px; height: 52px; }
  .e-btn { height: 48px; padding: 0 18px; font-size: 16px; }
  .e-gallery span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.emberia) { scroll-behavior: auto; }
  .e-sky::before, .e-sky::after { animation: none; }
  .e-day__view img { transition: opacity 0.2s; transform: none; }
  .e-sky::after, .e-fire { animation: none; }
  .e-btn--ember, .e-gallery .e-frame, .e-more__card { transition: none; }
  .e-btn--ember:hover, .e-gallery .e-frame:hover, .e-more__card:hover { transform: none; }
}

/* ── 무대: 첫 화면 아래에서 돌아다니는 캐릭터(게임 원본 동작 스트립, 3배·모바일 2배) ── */
.e-stage { position: relative; height: 200px; margin-top: 8px; overflow-x: clip; overflow-y: visible; pointer-events: none; }
.e-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 18px; height: 3px; background: repeating-linear-gradient(90deg, rgba(251, 231, 191, 0.14) 0 9px, transparent 9px 18px); }
.e-actor { position: absolute; left: 0; bottom: 20px; width: 0; height: 0; transition: opacity 0.5s; will-change: transform; }
.e-actor > i { position: absolute; display: block; background-repeat: no-repeat; image-rendering: pixelated; transform-origin: center; }
.e-bubble { position: absolute; left: 0; bottom: 150px; transform: translateX(-50%); white-space: nowrap; padding: 2px 10px 3px; font-family: var(--px); font-size: 15px; line-height: 1.6; color: var(--wood-edge); background: var(--paper); border: 3px solid var(--wood-edge); border-radius: 4px; }
.e-bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 9px; height: 9px; margin-left: -6px; background: var(--paper); border-right: 3px solid var(--wood-edge); border-bottom: 3px solid var(--wood-edge); transform: rotate(45deg); }

/* ── 캐릭터와 옷 ── */
.e-custom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; }
.e-custom__text p { margin: 0 0 14px; color: var(--muted); }
.e-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.e-counts li { display: grid; justify-items: center; padding: 10px 6px 12px; text-align: center; }
.e-counts b { font-family: var(--px); font-weight: 400; font-size: 30px; line-height: 1.2; color: var(--gold); }
.e-counts span { font-size: 13px; color: var(--cream); }
.e-wardrobe { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; margin-top: 40px; padding: 26px 30px; }
.e-wardrobe__view { display: grid; justify-items: center; gap: 10px; }
.e-slot.e-wardrobe__stage { width: 220px; height: 270px; place-items: end center; padding-bottom: 14px; border-color: var(--gold); box-shadow: inset 0 0 0 3px #b9802c; }
.e-wardrobe__stage img { width: 160px; height: 208px; image-rendering: pixelated; }
.e-wardrobe__name { margin: 0; font-family: var(--px); font-size: 20px; color: var(--cream); }
.e-wardrobe__sex { display: flex; gap: 6px; }
.e-wardrobe__sex button { padding: 4px 14px 5px; font-family: var(--px); font-size: 15px; color: var(--cream); background: var(--slot); border: 3px solid var(--slot-rim); border-radius: 6px; cursor: pointer; }
.e-wardrobe__sex button[aria-pressed='true'] { border-color: var(--gold); color: var(--gold); }
.e-wardrobe__h { margin: 0 0 12px; font-family: var(--px); font-size: 18px; color: var(--gold); }
.e-wardrobe__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.e-wardrobe__grid .e-slot { width: auto; height: 108px; cursor: pointer; padding: 0; }
.e-wardrobe__grid .e-slot img { width: 80px; height: 104px; image-rendering: pixelated; }
.e-wardrobe__grid .e-slot.is-on { border-color: var(--gold); }

/* 마무리 구역: 모닥불 앞에 선 주인공(서 있기 8프레임) */
.e-camp { display: flex; align-items: flex-end; gap: 18px; margin: 0 0 26px; }
.e-camp .e-fire { margin: 0 0 6px; }
.e-idle { display: block; width: 80px; height: 104px; background: var(--sprite) 0 0 / 640px 104px no-repeat; image-rendering: pixelated; animation: e-idle 2s steps(8) infinite; }
@keyframes e-idle { to { background-position: -640px 0; } }

@media (max-width: 900px) {
  .e-custom { grid-template-columns: 1fr; gap: 22px; }
  .e-wardrobe { grid-template-columns: 1fr; justify-items: center; }
  .e-wardrobe__pick { width: 100%; }
}
@media (max-width: 560px) {
  .e-stage { height: 150px; margin-top: 4px; }
  .e-bubble { bottom: 102px; font-size: 13px; }
  .e-counts { grid-template-columns: repeat(2, 1fr); }
  .e-wardrobe { padding: 20px 16px; }
  .e-slot.e-wardrobe__stage { width: 180px; height: 222px; }
  .e-wardrobe__stage img { width: 120px; height: 156px; }
  .e-wardrobe__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .e-idle { animation: none; } }
