/* 화타펫(HwataPet / 하야니) AI 데스크톱 펫 다운로드 전용 랜딩 페이지 스타일시트
 * KitCommit releases 페이지의 따뜻한 크림페이퍼 & 레트로 도트 감성을 완벽 패러디한 하이엔드 스타일
 */
:root {
  --bg: #faf6ef;
  --panel: #fffdf9;
  --ink: #3a2118;
  --muted: #7d6253;
  --soft: #efe4d6;
  --soft-2: #f5ece0;
  --accent: #d97757;
  --accent-ink: #a94d2c;
  --accent-btn: #b4532f;
  --accent-2: #e89a7c;
  --mint: #2a9d8f;
  --mint-light: #e8f7f5;
  --gold: #e9b93a;
  --good: #3fa37a;
  --line: 3px solid var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --pop-lg: 6px 6px 0 var(--ink);
  --r: 14px;
  --pixel: 'Galmuri11', 'Galmuri9', monospace;
  --body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.68 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, canvas { image-rendering: pixelated; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
.pixel { font-family: var(--pixel); letter-spacing: -0.02em; }

h1, h2, h3, h4 { line-height: 1.28; margin: 0; font-weight: 800; word-break: keep-all; }
h1, h2, .lead { text-wrap: balance; }
h2 { font-size: clamp(26px, 4vw, 36px); }
.eyebrow { font-family: var(--pixel); color: var(--accent-ink); font-size: 14px; margin-bottom: 8px; display: block; font-weight: 700; }
.lead { color: var(--muted); font-size: 18px; margin: 12px 0 0; max-width: 680px; }

section, [id] { scroll-margin-top: 76px; }
section { padding: 88px 0; position: relative; }
section.alt { background: var(--soft-2); border-block: var(--line); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .card, .center .faq, .center .official, .center .sha { text-align: left; }

/* ---------- 헤더 상단바 ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 66px; width: min(1180px, 100% - 28px); }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--pixel); font-size: 18px; font-weight: 900; white-space: nowrap; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--ink); background: #fff; flex-shrink: 0; }
.brand-badge {
  font-size: 11px; font-family: var(--pixel); padding: 3px 8px;
  background: var(--gold); border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink); color: var(--ink); font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
}
.nav { display: flex; align-items: center; gap: 15px; margin-left: auto; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.nav a { color: var(--muted); transition: color 0.15s; white-space: nowrap; flex-shrink: 0; }
.nav a:hover { color: var(--ink); }
.nav-badge { background: var(--mint-light); color: var(--mint); padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }

.lang {
  font-family: var(--pixel); font-size: 12.5px; border: 2px solid var(--ink);
  border-radius: 8px; padding: 5px 9px; background: var(--panel); cursor: pointer;
  white-space: nowrap; flex-shrink: 0; transition: background 0.12s, transform 0.08s;
}
.lang:hover { background: var(--soft); }
.lang.view { background: var(--panel); color: inherit; line-height: 1.5; }
.view .to-desktop { display: none; }
.view .to-mobile { display: inline; }
html[data-view="mobile"] .view .to-desktop { display: inline; }
html[data-view="mobile"] .view .to-mobile { display: none; }

.top .btn.sm { padding: 9px 15px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; border-radius: 10px; }

@media (max-width: 820px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- 모바일 뷰 토글 프리뷰 레이아웃 (html[data-view="mobile"]) ---------- */
html[data-view="mobile"] {
  background: #e6dacb;
}
html[data-view="mobile"] body {
  max-width: 430px;
  margin: 0 auto;
  border-inline: 3px solid var(--ink);
  box-shadow: 0 0 48px rgba(58, 33, 24, 0.22);
  background: var(--bg);
}
html[data-view="mobile"] .top .wrap {
  width: 100%;
  padding-inline: 12px;
  gap: 6px;
}
html[data-view="mobile"] .nav,
html[data-view="mobile"] .brand-badge {
  display: none;
}
html[data-view="mobile"] .lang {
  margin-left: auto;
  padding: 4px 7px;
  font-size: 11.5px;
}
html[data-view="mobile"] .lang.view {
  margin-left: 0;
}
html[data-view="mobile"] .top .btn.sm {
  padding: 7px 11px;
  font-size: 12.5px;
}
html[data-view="mobile"] .wrap {
  width: calc(100% - 28px);
}
html[data-view="mobile"] section {
  padding: 48px 0;
}
html[data-view="mobile"] .hero {
  padding: 32px 0 44px;
}
html[data-view="mobile"] .hero h1 {
  font-size: 27px;
}
html[data-view="mobile"] .hero .lead {
  font-size: 15.5px;
}
html[data-view="mobile"] .hero-grid,
html[data-view="mobile"] .talk-grid,
html[data-view="mobile"] .clinic-grid,
html[data-view="mobile"] .dl-grid,
html[data-view="mobile"] .tools-grid,
html[data-view="mobile"] .grid.g3 {
  grid-template-columns: 1fr !important;
  gap: 20px;
}
html[data-view="mobile"] .grid.g6 {
  grid-template-columns: repeat(2, 1fr) !important;
}
html[data-view="mobile"] .mon-screen {
  height: 390px;
}
html[data-view="mobile"] .clinic-card,
html[data-view="mobile"] .play-box {
  padding: 20px;
}

/* ---------- 버튼 공통 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--body);
  padding: 14px 22px;
  border: var(--line); border-radius: 12px;
  background: var(--panel); color: var(--ink);
  box-shadow: var(--pop);
  cursor: pointer; transition: transform 0.08s, box-shadow 0.08s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--accent-btn); color: #fff; }
.btn.mint { background: var(--mint); color: #fff; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn small { font-weight: 400; opacity: 0.9; font-size: 13px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- 첫 화면 (Hero) ---------- */
.hero { padding: 56px 0 76px; }
.news {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin-bottom: 16px;
  border: 2px solid var(--ink); border-radius: 20px;
  background: #fff; font-size: 13px; font-family: var(--pixel);
  box-shadow: 2px 2px 0 var(--ink); color: var(--ink);
}
.news b { background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 6px; font-size: 11px; }
.news i { font-style: normal; font-weight: bold; }

.hero h1 { font-size: clamp(32px, 4.8vw, 46px); letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 19px); line-height: 1.7; margin-top: 16px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .meta { margin-top: 14px; font-size: 13px; color: var(--muted); }

.mobile-note {
  margin-top: 16px; padding: 12px 16px; border: 2px dashed var(--accent);
  border-radius: 12px; background: #fff7f1; font-size: 14px;
}
.mobile-note button {
  font: 700 13px var(--body); margin-left: 8px; padding: 5px 12px;
  border: 2px solid var(--ink); border-radius: 8px; background: var(--panel);
  color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
  transition: background 0.15s, transform 0.08s;
}
.mobile-note button:hover { background: var(--gold); }
.mobile-note button.copied { background: var(--mint); color: #fff; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- 레트로 모니터 (KitCommit 시그니처) ---------- */
.monitor { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 500px; margin: 0 auto; }
.mon-screen {
  position: relative; width: 100%; height: 440px;
  border: 10px solid var(--ink); border-radius: 20px;
  overflow: hidden; box-shadow: 6px 6px 0 rgba(58, 33, 24, 0.25);
  background: linear-gradient(160deg, #ffe9d6 0%, #fbd9c4 45%, #f3cdb6 100%);
  user-select: none;
}
.mon-neck { width: 70px; height: 34px; background: var(--ink); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.mon-foot { width: 200px; height: 14px; background: var(--ink); border-radius: 8px 8px 4px 4px; box-shadow: 0 4px 0 rgba(58,33,24,0.15); }

/* 모니터 속 앱 창 */
.app {
  position: absolute; left: 16px; right: 16px; top: 14px; height: 260px;
  background: var(--panel); border: 2px solid var(--ink); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: 3px 3px 0 rgba(58, 33, 24, 0.3);
}
.app .bar {
  display: flex; align-items: center; gap: 6px; padding: 7px 10px;
  border-bottom: 2px solid var(--soft); background: var(--soft-2);
}
.app .bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--accent-2); }
.app .bar i + i { background: var(--gold); }
.app .bar i + i + i { background: var(--good); }
.app .bar span { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--muted); font-family: var(--pixel); }

.app-body { flex: 1; display: flex; min-height: 0; }
.app-side {
  width: 96px; flex: none; border-right: 2px solid var(--soft); padding: 8px;
  display: flex; flex-direction: column; gap: 7px; background: #fcf8f2;
}
.app-side b {
  font-size: 11px; padding: 4px 6px; border: 1.5px solid var(--ink);
  border-radius: 7px; text-align: center; white-space: nowrap; font-family: var(--pixel);
  cursor: pointer; background: var(--panel); transition: background 0.12s;
}
.app-side b:hover { background: var(--gold); }
.app-side span { height: 7px; border-radius: 4px; background: var(--soft); }
.app-side span:nth-child(3) { width: 75%; }
.app-side span:nth-child(4) { width: 55%; }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #fff; }
.app-log { flex: 1; padding: 10px; overflow-y: auto; font-size: 12px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }
.app-log .m { padding: 5px 9px; border-radius: 8px; max-width: 88%; word-break: keep-all; }
.app-log .m.user { align-self: flex-end; background: var(--soft); color: var(--ink); border: 1px solid var(--muted); }
.app-log .m.pet { align-self: flex-start; background: var(--mint-light); color: var(--ink); border: 1px solid var(--mint); }

.app-input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-top: 1.5px solid var(--soft); font-size: 12px; color: var(--muted);
  cursor: pointer; transition: background 0.12s;
}
.app-input:hover { background: #fff8f1; }
.app-input span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-input i {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: bold;
}

/* 모니터 속 작업표시줄 & 하단 스테이지 */
.mon-screen .stage { position: absolute; left: 0; right: 0; bottom: 34px; height: 120px; margin: 0; }
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background: var(--ink); color: #fff; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; font-family: var(--pixel); font-size: 12px;
}
.taskbar i { width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.taskbar span { margin-left: 4px; }
.taskbar-status { margin-left: auto; color: var(--gold); font-size: 11px; }

.hint { font-family: var(--pixel); font-size: 13px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; }
.hint b { color: var(--accent-ink); font-weight: 700; }

/* ---------- 펫 및 말풍선 ---------- */
.stage { position: relative; height: 260px; touch-action: pan-y; user-select: none; }
.pet {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 140px; height: 140px; cursor: pointer; transform-origin: 50% 100%;
  display: flex; align-items: center; justify-content: center;
}
.pet canvas, .pet img { width: 100%; height: 100%; display: block; object-fit: contain; image-rendering: pixelated; }
.pet .bubble {
  position: absolute; left: 50%; bottom: 92%;
  transform: translate(-50%, -4px) scale(0.95);
  background: #fff; border: var(--line); border-radius: 12px;
  padding: 8px 14px; font-size: 14px; line-height: 1.4; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink); opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; z-index: 10;
}
.play-stage .pet .bubble {
  white-space: normal;
  min-width: 220px;
  max-width: 340px;
  text-align: center;
}
.pet .bubble::after {
  content: ''; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px;
  background: #fff; border-right: var(--line); border-bottom: var(--line);
  transform: translate(-50%, -5px) rotate(45deg);
}
.pet .bubble.show { opacity: 1; transform: translate(-50%, -8px) scale(1); }
.pet .bubble.notify { background: #fff4d6; }
.pet .bubble.notify::after { background: #fff4d6; }

/* 떠오르는 하트/별 FX */
.fx {
  position: absolute; pointer-events: none; font-family: var(--pixel);
  color: var(--accent); animation: rise 1.1s ease-out forwards; z-index: 20;
}
@keyframes rise {
  from { opacity: 1; transform: translateY(0) scale(0.8); }
  to { opacity: 0; transform: translateY(-60px) scale(1.2); }
}

/* ---------- 툴 카드 (Tools) ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 40px; }
.tool-card {
  background: var(--panel); border: var(--line); border-radius: var(--r);
  box-shadow: var(--pop); padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.tool-card-head { display: flex; align-items: center; gap: 14px; }
.tool-icon {
  width: 52px; height: 52px; border: var(--line); border-radius: 12px;
  background: var(--soft); display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 2px 2px 0 var(--ink); flex: none;
}
.tool-card .where { font-family: var(--pixel); font-size: 12px; color: var(--accent-ink); font-weight: 700; }
.tool-card h3 { font-size: 19px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 기능 그리드 (Features) ---------- */
.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--panel); border: var(--line); border-radius: var(--r);
  box-shadow: var(--pop); padding: 22px;
}
.card.feature .sp-box {
  background: var(--soft); border-radius: 10px; border: 2px solid var(--ink);
  height: 180px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; margin-bottom: 16px;
}
.card.feature .sp-box img, .card.feature .sp-box canvas { width: 140px; height: 140px; object-fit: contain; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 실시간 놀이 체험 (Play Stage) ---------- */
.play-box {
  background: var(--panel); border: var(--line); border-radius: 18px;
  box-shadow: var(--pop-lg); padding: 28px; max-width: 860px; margin: 40px auto 0;
}
.play-stage {
  height: 240px; border: 2px dashed var(--ink); border-radius: 14px;
  background: linear-gradient(180deg, #faf6ef 0%, #f4e9db 100%);
  position: relative; overflow: hidden; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
}
.play-stage .pet { width: 160px; height: 160px; }
.play-stage .pet canvas { width: 132px; height: 132px; image-rendering: pixelated; }
.play-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.play-actions .btn { padding: 10px 16px; font-size: 14px; }
.play-actions .btn .ico { font-size: 16px; }

.species-pills {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--soft);
}
.species-pill {
  font-family: var(--pixel); font-size: 13px; font-weight: 700;
  padding: 6px 12px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--panel); cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.08s, background 0.12s;
}
.species-pill:hover { background: var(--soft); }
.species-pill.active { background: var(--accent); color: #fff; }

/* ---------- 대화 데모 & 성격 (Talk Demo) ---------- */
.talk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
@media (max-width: 860px) { .talk-grid { grid-template-columns: 1fr; } }

.talk-points { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 18px; }
.talk-points li { display: flex; gap: 14px; align-items: flex-start; }
.talk-points .ico {
  font-size: 24px; width: 44px; height: 44px; border: 2px solid var(--ink);
  border-radius: 10px; background: var(--soft); display: flex;
  align-items: center; justify-content: center; flex: none; box-shadow: 2px 2px 0 var(--ink);
}
.talk-points h3 { font-size: 17px; margin-bottom: 4px; }
.talk-points p { margin: 0; color: var(--muted); font-size: 14px; }

.chatdemo {
  background: var(--panel); border: var(--line); border-radius: var(--r);
  box-shadow: var(--pop-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.cd-head {
  display: flex; align-items: center; gap: 10px; padding-bottom: 12px;
  border-bottom: 2px solid var(--soft);
}
.cd-head img { width: 38px; height: 38px; border-radius: 8px; border: 2px solid var(--ink); }
.cd-head b { font-size: 16px; font-family: var(--pixel); }
.cd-head span { font-size: 12px; color: var(--muted); margin-left: 6px; }

.cd-persona {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px;
}
.cd-persona span { font-family: var(--pixel); color: var(--muted); margin-right: 4px; }
.cd-persona button {
  font-family: var(--pixel); font-size: 11px; padding: 4px 8px;
  border: 1.5px solid var(--ink); border-radius: 6px; background: var(--bg);
  cursor: pointer; transition: background 0.12s;
}
.cd-persona button:hover { background: var(--soft); }
.cd-persona button.active { background: var(--ink); color: #fff; }

.cd-log {
  height: 240px; overflow-y: auto; background: #fff; border: 2px solid var(--soft);
  border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
}
.cd-msg { padding: 8px 12px; border-radius: 10px; max-width: 88%; white-space: pre-line; line-height: 1.55; }
.cd-msg.user { align-self: flex-end; background: var(--soft); border: 1px solid var(--muted); }
.cd-msg.pet { align-self: flex-start; background: var(--mint-light); border: 1px solid var(--mint); }
.cd-inline-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cd-inline-btn {
  font: 700 12px var(--body); padding: 5px 10px; border: 1.5px solid var(--ink);
  border-radius: 7px; background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink); transition: transform 0.08s, background 0.12s;
}
.cd-inline-btn:hover { background: var(--gold); transform: translate(-1px, -1px); }
.cd-inline-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.cd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-chips button {
  font-size: 12px; font-weight: 700; padding: 6px 10px; border: 2px solid var(--ink);
  border-radius: 8px; background: var(--soft-2); cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
  transition: background 0.12s, transform 0.08s;
}
.cd-chips button:hover { background: var(--gold); }

.cd-input { display: flex; gap: 8px; }
.cd-input input {
  flex: 1; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 10px;
  font: 14px var(--body); outline: none;
}
.cd-input input:focus { border-color: var(--accent); }
.cd-input button {
  padding: 10px 18px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--accent-btn); color: #fff; font: 700 14px var(--body);
  cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- 하루 루틴 (Day Routine) ---------- */
.day-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding: 20px 4px 30px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.moment {
  flex: 0 0 250px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px;
}
.moment .time {
  font-family: var(--pixel); font-size: 13px; color: var(--accent-ink);
  font-weight: 700; align-self: flex-start;
}
.moment .card {
  height: 100%; display: flex; flex-direction: column; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.moment .card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.moment .sp-box {
  background: var(--soft); border-radius: 10px; height: 150px;
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  margin-bottom: 12px; border: 2px solid var(--ink); overflow: hidden;
}
.moment .sp-box img, .moment .sp-box canvas { width: 110px; height: 110px; object-fit: contain; }
.moment .bubble {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: #fff; border: 2px solid var(--ink); border-radius: 8px;
  padding: 5px 8px; font-size: 11px; white-space: normal; width: 85%;
  text-align: center; box-shadow: 2px 2px 0 var(--ink);
}
.moment h3 { font-size: 16px; margin-bottom: 4px; }
.moment p { font-size: 13px; color: var(--muted); }

/* ---------- 갤러리 탭 (Gallery) ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.tab-btn {
  font-family: var(--pixel); font-size: 14px; font-weight: 700;
  padding: 8px 16px; border: var(--line); border-radius: 10px;
  background: var(--panel); cursor: pointer; box-shadow: var(--pop);
}
.tab-btn.on { background: var(--accent-btn); color: #fff; }
.tab-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; font-weight: 600; }

.grid.g6 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 24px; }
.tile {
  background: var(--panel); border: var(--line); border-radius: 12px;
  box-shadow: var(--pop); padding: 14px; text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: #fff8f0; }
.tile:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.tile.active { border-color: var(--accent-btn); background: #fff3e8; box-shadow: 4px 4px 0 var(--accent-btn); }
.tile canvas, .tile img { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; }
.tile b { font-size: 14px; }
.tile small { font-size: 11px; color: var(--accent-ink); font-family: var(--pixel); }

/* ---------- 화이트스타일 33년 협진 & VIP 패스 ---------- */
.clinic-card {
  background: #fff; border: var(--line); border-radius: 18px;
  box-shadow: var(--pop-lg); padding: 36px; max-width: 960px; margin: 40px auto 0;
}
.clinic-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 820px) { .clinic-grid { grid-template-columns: 1fr; } }

.clinic-badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.clinic-pill {
  font-family: var(--pixel); font-size: 12px; font-weight: 700;
  padding: 4px 9px; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--soft); box-shadow: 2px 2px 0 var(--ink);
}
.clinic-pill.highlight { background: var(--gold); }

.vip-pass-form {
  background: var(--soft-2); border: 2px solid var(--ink); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow 0.2s, background 0.2s;
}
.vip-pass-form.is-highlighted {
  background: #fff9ec;
  box-shadow: 0 0 0 4px var(--gold), 5px 5px 0 var(--ink);
}
.vip-pass-form h3 { font-size: 18px; margin-bottom: 4px; }
.vip-pass-form p { font-size: 13px; color: var(--muted); margin: 0; }
.vip-pass-form input, .vip-pass-form select {
  padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px;
  font: 14px var(--body); background: #fff;
}
.vip-pass-status { font-size: 12px; color: var(--good); font-weight: bold; min-height: 18px; }

/* ---------- 다운로드 섹션 (Download) ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.dl-card {
  background: var(--panel); border: var(--line); border-radius: var(--r);
  box-shadow: var(--pop-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.dl-card.is-highlighted {
  background: #fff9ec;
  border-color: var(--accent-btn);
  box-shadow: 0 0 0 4px var(--gold), 6px 6px 0 var(--ink);
  transform: translateY(-3px);
}
.dl-card h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.dl-card ol { margin: 0; padding-left: 20px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.dl-card ol li { margin-bottom: 6px; }
.dl-card .btn { width: 100%; }
.sha-box {
  background: #f4ece4; border: 1.5px solid var(--muted); border-radius: 8px;
  padding: 8px 10px; font: 11px/1.4 ui-monospace, monospace; word-break: break-all;
  color: var(--ink); cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.sha-box:hover { background: #ebe0d4; border-color: var(--ink); }
.sha-box.copied { background: var(--mint-light); border-color: var(--mint); color: var(--mint); font-weight: 700; }
.official {
  margin-top: 32px; padding: 16px 20px; border: 2px dashed var(--accent);
  border-radius: 12px; background: #fff8f4; font-size: 14px; line-height: 1.6;
}

/* ---------- FAQ 아코디언 ---------- */
.faq-list { max-width: 820px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--panel); border: var(--line); border-radius: 12px;
  box-shadow: var(--pop); overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; font-weight: 700; font-size: 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-item summary::after { content: '+'; font-size: 20px; font-weight: bold; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 20px 18px; margin: 0; font-size: 15px; color: var(--muted);
  line-height: 1.65; border-top: 1.5px solid var(--soft); padding-top: 14px;
}

/* ---------- 푸터 ---------- */
footer {
  background: var(--panel); border-top: var(--line); padding: 56px 0 40px;
  font-size: 14px; color: var(--muted); line-height: 1.7;
}
footer .wrap { display: flex; flex-direction: column; gap: 16px; }
footer a { text-decoration: underline; text-underline-offset: 4px; }
.footer-facts {
  padding: 14px 18px; border: 2px solid var(--soft); border-radius: 10px;
  background: var(--soft-2); font-size: 13px; color: var(--ink);
}
