/* 북막 마을 — 블록으로 만든 하얀 거리 소개 페이지 */

/* Galmuri11(OFL 1.1, fonts/OFL.md) — 이 페이지에 쓰는 글자만 남긴 서브셋(원본 505KB → 14KB).
   새 문구를 넣었는데 픽셀 글꼴이 아닌 글자로 보이면 서브셋을 다시 만든다. */
@font-face {
  font-family: "Galmuri11";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/ko/village/fonts/galmuri11-village.woff2") format("woff2");
}
:root {
  --bg: #f7f9fb;
  --surface: rgba(255, 255, 255, 0.94);
  --ink: #1f2933;
  --ink-2: #4b5765;
  --ink-3: #8592a0;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.14);
  --soft: #f3f5f7;
  --sage: #5f9e86;
  --sage-soft: #e6f2ec;
  --sage-ink: #2f6b55;
  --coral: #e07a62;
  --tag-bg: #fdf0e8;
  --tag-ink: #9a4a33;
  --ok-bg: #e6f2ec;
  --ok-ink: #2f6b55;
  --pixel: "Galmuri11", "Pretendard", sans-serif;
  --body: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --hud-h: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
body.can-mine { cursor: crosshair; }
body.can-talk { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }
kbd {
  font-family: var(--pixel);
  font-size: 11px;
  padding: 0 5px;
  color: var(--ink-2);
  background: var(--soft);
  border: 1px solid var(--line-2);
  border-radius: 3px;
}

.world {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  image-rendering: pixelated;
  touch-action: pan-y pinch-zoom;
}

/* ── HUD ─────────────────────────────────────────── */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: var(--hud-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 max(20px, env(safe-area-inset-left));
  pointer-events: none;
  box-shadow: none !important;
}
.hud > * { pointer-events: auto; }
.hud-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hud-brand img { width: auto; height: 22px; }
.hud-brand span { padding-left: 9px; border-left: 1px solid var(--line-2); line-height: 1; }
.hud-coord {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--ink-3);
}
.hud-coord::before { content: "📍 "; font-size: 11px; }
.hud-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hud-link {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  transition: background-color 140ms ease;
}
.hud-link:hover { background: rgba(255, 255, 255, 0.8); }

/* ── 버튼 ────────────────────────────────────────── */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--pixel);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}
.mc-btn:hover { background: var(--soft); }
.mc-btn:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.mc-btn--go { color: #fff; background: var(--ink); border-color: var(--ink); }
.mc-btn--go:hover { background: #33404d; }
.mc-btn--go::after { content: "→"; font-family: var(--body); opacity: 0.7; }
.mc-btn--sm { min-height: 36px; padding: 0 14px; font-size: 12px; border-radius: 999px; }
.mc-btn--sm::after { content: none; }
.mc-btn--lg { min-height: 52px; padding: 0 30px; font-size: 16px; }

/* ── 섹션·패널 ───────────────────────────────────── */
main { position: relative; z-index: 10; }
.zone {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--hud-h) + 28px) 40px 120px max(40px, 4vw);
  pointer-events: none;
}
.zone > .panel { pointer-events: auto; }

.panel {
  position: relative;
  width: 100%;
  max-width: 448px;
  padding: 28px 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -18px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
}
.panel--wide { max-width: 560px; }
.panel p { margin: 0 0 10px; color: var(--ink-2); }
.panel h2 {
  margin: 0 0 14px;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.42;
  letter-spacing: 0;
  color: var(--ink);
}
.panel h3 {
  margin: 0;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
}
.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px !important;
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--sage-ink) !important;
  letter-spacing: 0.02em;
}
.panel-tag::before { content: ""; width: 6px; height: 6px; background: var(--sage); }
.kicker {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--coral) !important;
  margin-bottom: 6px !important;
}
.note, .fine { font-size: 13px; color: var(--ink-3) !important; }
.fine { display: block; margin-top: 8px; }
.quote {
  font-family: var(--pixel);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink) !important;
  padding-left: 14px;
  border-left: 2px solid var(--sage);
  margin: 4px 0 14px !important;
}
.menu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.text-link {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--sage-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 107, 85, 0.3);
}
.text-link:hover { border-bottom-color: currentColor; }

/* 타이틀 화면 */
.zone--hero, .zone--end { justify-content: center; }
.panel--title {
  max-width: 560px;
  text-align: center;
  padding: 40px 36px 28px;
}
.eyebrow {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--ink-3) !important;
  margin-bottom: 12px !important;
}
.panel .title {
  margin: 0;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.panel .title--sm { font-size: clamp(28px, 5vw, 40px); }
.splash {
  position: absolute;
  top: 132px;
  right: -22px;
  margin: 0;
  padding: 3px 10px 2px;
  border: 0;
  border-radius: 999px;
  background: #fff6d6;
  font-family: var(--pixel);
  font-size: 13px;
  color: #8a5a00;
  box-shadow: 0 0 0 1px rgba(138, 90, 0, 0.14);
  transform: rotate(-8deg);
  animation: splash 0.9s ease-in-out infinite alternate;
  cursor: pointer;
}
@keyframes splash { from { scale: 1; } to { scale: 1.06; } }
@media (prefers-reduced-motion: reduce) { .splash { animation: none; } }
.lead { font-size: 16px; color: var(--ink-2) !important; margin-top: 18px !important; }
.panel--title .menu { justify-content: center; }
.panel--title .menu .mc-btn { min-width: 190px; }
.debug {
  margin-top: 24px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 13px;
  color: var(--ink-3) !important;
  font-variant-numeric: tabular-nums;
}
.debug b { color: var(--ink); font-weight: 600; }
.hint {
  font-size: 12px;
  color: var(--ink-3) !important;
  margin: 10px 0 0 !important;
}
.hint b { color: var(--ink); }

/* ── 슬롯·조합법 ─────────────────────────────────── */
.slot {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
}
.slot canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.slot i {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}
.slot--sm { width: 40px; height: 40px; background: var(--soft); border-color: transparent; }
.slot--sm canvas { width: 24px; height: 24px; }
.slot--out { width: 62px; height: 62px; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.slot--out canvas { width: 40px; height: 40px; }
.recipe {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 30px;
  padding: 16px 16px 32px;
  background: var(--soft);
  border-radius: 6px;
}
.recipe-in { display: flex; align-items: center; gap: 6px; }
.op { font-family: var(--pixel); font-size: 16px; color: var(--ink-3); }
.arrow { width: 26px; height: 14px; flex: none; position: relative; }
.arrow::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 2px; background: var(--ink-3); }
.arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  border: 7px solid transparent;
  border-left: 9px solid var(--ink-3);
  border-right: 0;
}
.grid4 { display: grid; grid-template-columns: repeat(4, 52px); gap: 6px; }

/* 아이템 목록 */
.inv { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.inv li { display: flex; gap: 12px; align-items: flex-start; }
.inv b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 14px; color: var(--ink); line-height: 1.5; }
.inv span:not(.slot) { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.inv--row { grid-template-columns: 1fr 1fr; }
.badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px 0;
  font-style: normal;
  font-size: 10px;
  color: var(--tag-ink);
  background: var(--tag-bg);
  border-radius: 999px;
  vertical-align: 2px;
}

.try-label { margin: 22px 0 8px !important; font-family: var(--pixel); font-size: 12px; color: var(--ink-3) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 13px;
  text-decoration: none;
  padding: 6px 12px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: border-color 140ms ease, color 140ms ease;
}
.chip::before { content: "🔍 "; font-size: 11px; }
.chip:hover { border-color: var(--sage); color: var(--sage-ink); }

/* 컬러링 액자 */
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; }
.frame {
  margin: 0;
  padding: 6px 6px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.frame img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; border-radius: 2px; }
.frame figcaption {
  font-family: var(--pixel);
  font-size: 11px;
  text-align: center;
  color: var(--ink-3);
  padding: 6px 0 7px;
}
.frame:nth-child(2) { transform: translateY(-6px); }

/* 교안 */
.craft {
  margin-top: 22px;
  padding: 20px 20px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.craft + .craft { margin-top: 12px; }
.craft-sub { font-size: 13px; color: var(--ink-3) !important; margin: 2px 0 0 !important; }
.craft .recipe { margin: 14px 0 14px; }
.timeline {
  display: flex;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  gap: 3px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.timeline li {
  flex: var(--w);
  min-width: 0;
  padding: 14px 2px 0;
  position: relative;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  border-radius: 2px;
  background: var(--c, #f4d36e);
}
.timeline li:nth-child(2) { --c: #8fc6ee; }
.timeline li:nth-child(3) { --c: #9fdcb4; }
.timeline li:nth-child(4) { --c: #f3a7b8; }
.timeline b { font-family: var(--pixel); font-weight: 400; color: var(--ink-2); }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; color: var(--ink-2); }
.ticks li { padding-left: 16px; position: relative; line-height: 1.75; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.7em;
  width: 6px; height: 6px;
  background: var(--sage);
}

/* 도서관 상태 */
.status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.status-card .slot--sm { background: var(--soft); }
.status-card b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 14px; }
.status-ok {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 9px 0;
  font-size: 12px;
  color: var(--ok-ink);
  background: var(--ok-bg);
  border-radius: 999px;
}
.status-ok::before { content: "● "; font-size: 8px; vertical-align: 1px; }

/* 제휴 */
.sub-h { margin-top: 30px !important; padding-top: 22px; border-top: 1px solid var(--line); }
.partners { display: grid; gap: 10px; margin-top: 12px; }
.partner {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.partner-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.partner-top b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 15px; }
.period { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.partner-logo img { height: 30px; width: auto; max-width: 130px; object-fit: contain; }
.partner p { font-size: 13.5px; }
.partner-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.libs { display: flex; gap: 6px; }
.libs img { height: 24px; width: auto; background: #fff; padding: 2px 4px; border: 1px solid var(--line); border-radius: 3px; }

/* 게시판 (bookmak-news.js 출력) */
.news-section__status { font-size: 13px; color: var(--ink-3) !important; }
.news-board { display: grid; gap: 8px; margin: 14px 0 16px; }
.news-board:empty { display: none; }
.news-row__link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 140ms ease;
}
.news-row__link:hover { border-color: var(--line-2); }
.news-row__thumb {
  width: 64px; height: 48px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 4px;
  display: grid; place-items: center;
  font-family: var(--pixel); font-size: 10px; color: var(--ink-3); text-align: center;
}
.news-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row__date { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.panel .news-row__title { margin: 0; font-family: var(--body); font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row__excerpt { display: none; }

/* ── 핫바 ────────────────────────────────────────── */
.hotbar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hotbar-name {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--ink-2);
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  opacity: 0;
}
.hotbar-name.show { animation: zoneName 2.4s ease forwards; }
@keyframes zoneName { 0% { opacity: 0; } 8% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
.hotbar-slots {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
}
.hotbar-slots button {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.hotbar-slots canvas { width: 26px; height: 26px; image-rendering: pixelated; }
.hotbar-slots kbd {
  position: absolute;
  left: 3px; top: 1px;
  padding: 0;
  font-size: 9px;
  background: none;
  border: 0;
  color: var(--ink-3);
}
.hotbar-slots button:hover { background: var(--soft); }
.hotbar-slots button.is-active { background: var(--sage-soft); box-shadow: inset 0 0 0 1px rgba(95, 158, 134, 0.45); }
.hotbar-slots button:focus-visible { outline: 2px solid var(--sage); }

/* 토스트 */
.toast {
  position: fixed;
  top: calc(var(--hud-h) + 6px);
  left: 50%;
  z-index: 40;
  transform: translate(-50%, -8px);
  max-width: min(92vw, 460px);
  padding: 10px 16px;
  font-family: var(--pixel);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#craftFoundWrap.pop b { display: inline-block; animation: pop 0.3s ease; }
@keyframes pop { 50% { transform: scale(1.4); } }

/* ── 푸터 ────────────────────────────────────────── */
.foot {
  position: relative;
  z-index: 10;
  background: #fff;
  color: var(--ink-3);
  padding: 44px max(20px, 4vw) 110px;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 14px; }
.foot-brand b { font-family: var(--pixel); font-weight: 400; font-size: 18px; color: var(--ink); margin-right: 10px; }
.foot-links, .foot-social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-biz { margin: 6px 0 0; line-height: 1.8; }
.foot-copy { margin: 0; color: #a7b1bb; }

/* ── 모달 ────────────────────────────────────────── */
.inquiry-modal, .letter-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.inquiry-modal.active, .letter-modal.active { display: flex; }
.inquiry-modal-overlay, .letter-modal-overlay { position: absolute; inset: 0; background: rgba(31, 41, 51, 0.32); backdrop-filter: blur(2px); }
.inquiry-modal-content, .letter-modal-content {
  position: relative;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
}
.inquiry-modal-close, .letter-modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px;
  border: 0; background: none; border-radius: 50%;
  font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer;
}
.inquiry-modal-close:hover, .letter-modal-close:hover { background: var(--soft); }
.inquiry-modal-title { margin: 0 0 8px !important; font-size: 20px !important; }
.inquiry-modal-desc { font-size: 14px; }
.inquiry-form { display: grid; gap: 12px; margin-top: 16px; }
.form-group { display: grid; gap: 5px; }
.form-group label { font-family: var(--pixel); font-size: 12px; color: var(--ink-2); }
.required { color: var(--coral); }
.optional { color: var(--ink-3); }
.form-group input, .form-group textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  transition: border-color 140ms ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.inquiry-submit { justify-self: start; margin-top: 4px; }
.inquiry-success { text-align: center; }
.inquiry-success-icon { font-size: 36px; color: var(--sage); }
.letter-icon-inline { display: inline-block; height: 22px; width: auto; vertical-align: middle; }
.letter-modal-content .mc-btn { margin-top: 12px; }

/* ── 반응형 ──────────────────────────────────────── */
@media (max-width: 899px) {
  :root { --hud-h: 52px; }
  body { font-size: 14.5px; }
  .hud { padding: 0 14px; }
  .hud-coord, .hud-link { display: none; }
  .zone {
    align-items: flex-end;
    padding: calc(var(--hud-h) + 16px) 14px 96px;
    min-height: 100svh;
  }
  .zone > .panel { margin-top: 46svh; }
  .zone--hero, .zone--end { align-items: center; }
  .zone--hero > .panel, .zone--end > .panel { margin-top: 0; }
  .panel { max-width: none; padding: 24px 20px 22px; }
  .panel h2 { font-size: 20px; }
  .splash { position: static; display: inline-block; margin: 12px auto 0; transform: rotate(-3deg); }
  .panel--title .menu .mc-btn { min-width: 0; flex: 1 1 140px; }
  .inv--row { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(4, 44px); }
  .grid4 .slot { width: 44px; height: 44px; }
  .grid4 .slot canvas { width: 26px; height: 26px; }
  .recipe { gap: 8px; padding: 14px 12px 30px; }
  .recipe .slot { width: 44px; height: 44px; }
  .recipe .slot canvas { width: 26px; height: 26px; }
  .recipe .slot--out { width: 52px; height: 52px; }
  .slot i { font-size: 10px; }
  .arrow { width: 18px; }
  .arrow::before { width: 10px; }
  /* 12칸 — 폭 = 12 × 칸 + 여백이 화면을 넘지 않게 칸 크기를 화면 폭에 맞춘다 */
  .hotbar-slots { gap: 1px; padding: 3px; }
  .hotbar-slots button { width: min(30px, calc((100vw - 40px) / 12)); height: min(30px, calc((100vw - 40px) / 12)); border-radius: 6px; }
  .hotbar-slots button + button { margin-left: 0; }
  .hotbar-slots canvas { width: 70%; height: 70%; }
  .hotbar-slots kbd { display: none; }
  .hint-keys { display: none; }
  .br-wide { display: none; }
  .timeline { font-size: 10px; }
}

