/* Kit Commit 소개 사이트. 앱과 같은 크림색 · 갈색 잉크 · 주황 포인트, 도트 느낌의 두꺼운 테두리 */
:root {
  --bg: #faf6ef;
  --panel: #fffdf9;
  --ink: #3a2118;
  --muted: #7d6253;
  --soft: #efe4d6;
  --soft-2: #f5ece0;
  --accent: #d97757;
  --accent-ink: #a94d2c; /* 작은 글자용 (크림 바탕 대비 5:1 넘게) */
  --accent-btn: #b4532f; /* 흰 글자를 얹는 단추 (대비 5:1) */
  --accent-2: #e89a7c;
  --gold: #e9b93a;
  --good: #3fa37a;
  --line: 3px solid var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --r: 14px;
  --pixel: 'Galmuri11', 'Pretendard', monospace;
  --body: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas { image-rendering: pixelated; }
a { color: inherit; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
.pixel { font-family: var(--pixel); letter-spacing: 0; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1, h2, .lead { text-wrap: balance; }
:lang(ko) { word-break: keep-all; }
h2 { font-size: clamp(26px, 4vw, 38px); }
.eyebrow { font-family: var(--pixel); color: var(--accent-ink); font-size: 14px; margin-bottom: 8px; display: block; }
.lead { color: var(--muted); font-size: 18px; margin: 12px 0 0; max-width: 640px; }
section { padding: 88px 0; }
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: 20;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: 18px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 18px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.lang { font-family: var(--pixel); font-size: 13px; border: 2px solid var(--ink); border-radius: 8px; padding: 3px 8px; text-decoration: none; }
.top .btn.sm { padding: 9px 14px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; border-radius: 10px; }
.lang.view { background: none; color: inherit; line-height: 1.65; cursor: pointer; }
.view .to-desktop { display: none; }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } .lang + .lang { margin-left: 0; } }
.mobile-note { margin-top: 14px; padding: 12px 14px; border: 2px dashed var(--accent); border-radius: 12px; background: #fff7f1; font-size: 14px; }
.mobile-note button { font: 700 13px var(--body); margin-left: 6px; padding: 5px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--panel); color: var(--ink); cursor: pointer; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 16px/1 var(--body);
  padding: 14px 20px;
  border: var(--line); border-radius: 12px;
  background: var(--panel); color: var(--ink);
  box-shadow: var(--pop);
  text-decoration: none; cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.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 small { font-weight: 400; opacity: 0.85; font-size: 13px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- 첫 화면 ---------- */
.hero { padding: 64px 0 0; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .meta { margin-top: 12px; font-size: 13px; color: var(--muted); }
.hint { font-family: var(--pixel); font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.hint b { color: var(--accent-ink); font-weight: 400; }

/* 고양이가 돌아다니는 바닥 */
.stage {
  position: relative;
  height: 300px;
  margin-top: 36px;
  touch-action: pan-y;
  user-select: none;
}
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); }
.hero { padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
/* 첫 화면 오른쪽: 터미널 창 + 그 아래 고양이 바닥 */
.screen { background: var(--panel); border: var(--line); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.screen .bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: var(--line); background: var(--soft); }
.screen .bar i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--accent-2); }
.screen .bar i + i { background: var(--gold); }
.screen .bar i + i + i { background: var(--good); }
.screen .bar span { margin-left: 8px; font: 13px ui-monospace, 'Consolas', monospace; color: var(--muted); }
.term { background: #2b211c; color: #f4e9df; font: 14px/1.7 ui-monospace, 'Consolas', 'D2Coding', monospace; padding: 14px 16px; height: 176px; overflow: hidden; }
.term div { white-space: pre-wrap; }
.term .p { color: #fff; }
.term .p::before { content: '> '; color: var(--accent-2); }
.term .o { color: #cbb8aa; }
.term .o::before { content: '● '; color: #8fc2e3; }
.term .a { color: #ffd65a; }
.term .a::before { content: '? '; }
.term .d { color: #78e06a; }
.term .d::before { content: '✓ '; }
.term .cur::after { content: '▍'; animation: blink 1s steps(1) infinite; color: var(--accent-2); }
@keyframes blink { 50% { opacity: 0; } }
.screen .stage { margin: 0; height: 250px; background: linear-gradient(transparent 62%, var(--soft) 62%); }
.screen .pet { width: 192px; height: 192px; }
.hero .hint { margin-top: 14px; display: flex; justify-content: center; }
.desk {
  position: absolute; bottom: 3px; right: 8%; width: 180px; height: 70px;
  border: var(--line); border-bottom: none; border-radius: 10px 10px 0 0; background: var(--panel);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
  font-family: var(--pixel); font-size: 12px; color: var(--muted);
}

.pet { position: absolute; bottom: 3px; width: 288px; height: 288px; cursor: grab; transform-origin: 50% 100%; touch-action: none; }
.pet.dragging { cursor: grabbing; }
.pet canvas { width: 100%; height: 100%; display: block; }
.pet .bubble { bottom: 44%; }
.pet.flip canvas { transform: scaleX(-1); }

/* 말풍선 (앱과 같은 모양) */
.bubble {
  position: absolute; left: 50%; bottom: 100%;
  transform: translate(-50%, -4px) scale(0.9);
  background: #fff; border: var(--line); border-radius: 14px;
  padding: 8px 14px; font-size: 15px; line-height: 1.4; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 3;
}
.bubble::after {
  content: ''; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px;
  background: #fff; border-right: var(--line); border-bottom: var(--line);
  transform: translate(-50%, -6px) rotate(45deg);
}
.bubble.show { opacity: 1; transform: translate(-50%, -8px) scale(1); }
.bubble.notify { background: #fff4d6; }
.bubble.notify::after { background: #fff4d6; }
@media (max-width: 560px) { .bubble { white-space: normal; width: max-content; max-width: 70vw; } }

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

/* 던진 장난감 (앱의 도트 그림) */
.toyitem { position: absolute; width: 48px; height: 48px; z-index: 4; cursor: grab; touch-action: none; image-rendering: pixelated; -webkit-user-drag: none; }
.toyitem:active { cursor: grabbing; }
.food { position: absolute; width: 48px; height: 48px; z-index: 2; pointer-events: none; image-rendering: pixelated; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.go { position: absolute; z-index: 5; transform: translateX(-50%); font: 13px var(--pixel); padding: 6px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--gold); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; white-space: nowrap; }
.go:disabled { background: var(--soft); color: var(--muted); cursor: default; }
.stage.tool { cursor: none; }
/* 던진 공 */
.ball { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); z-index: 2; }

/* ---------- 카드 · 격자 ---------- */
.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid.g6 { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: var(--line); border-radius: var(--r);
  box-shadow: var(--pop); padding: 20px;
}
.card h3 { font-size: 19px; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .sp-box { background: var(--soft); border-radius: 10px; display: flex; justify-content: center; align-items: flex-end; height: 200px; position: relative; overflow: visible; }
.card .sp-box canvas { width: 216px; height: 216px; margin-bottom: -6px; }

/* 기능 3개 */
.feature .sp-box { height: 220px; }
.feature .sp-box canvas { width: 240px; height: 240px; }

/* ---------- 놀이터 ---------- */
.play { margin-top: 40px; }
.play .stage { --floor: 47px; margin: 0; height: 440px; background: var(--panel); border: var(--line); border-radius: var(--r); box-shadow: var(--pop); overflow: hidden; }
.play .stage::after { left: 0; right: 0; bottom: calc(var(--floor) - 3px); }
.play .pet { left: calc(50% - 120px); bottom: var(--floor); width: 240px; height: 240px; z-index: 2; }
.play .caption { position: absolute; left: 12px; right: 12px; bottom: 11px; text-align: center; font-family: var(--pixel); font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .play .stage { --floor: 61px; height: 400px; } .play .pet { width: 192px; height: 192px; } .play .caption { white-space: normal; bottom: 8px; line-height: 1.35; font-size: 12px; } }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.actions .btn { padding: 12px 16px; font-size: 15px; }
.actions .btn .ico { font-size: 19px; }
.actions .btn small { font-family: var(--pixel); font-size: 12px; opacity: 0.7; }
.actions .btn.on { background: var(--gold); }

/* ---------- 하루 타임라인 ---------- */
.day { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 44px; }
.moment { position: relative; padding-top: 18px; }
.moment .time { font-family: var(--pixel); font-size: 13px; background: var(--ink); color: var(--bg); padding: 3px 10px; border-radius: 6px; position: absolute; top: 0; left: 18px; z-index: 2; }
.moment .card { padding-top: 26px; height: 100%; }
.moment .card h3 { text-align: center; }
.moment .sp-box { margin-top: 60px; overflow: visible; }
.moment .bubble { opacity: 1; transform: translate(-50%, -6px); white-space: normal; width: max-content; max-width: 210px; text-align: center; font-size: 14px; }
.moment .bubble.notify { background: #fff4d6; }

/* ---------- 모션 · 코스튬 갤러리 ---------- */
.tile { background: var(--panel); border: var(--line); border-radius: 12px; padding: 10px 10px 12px; text-align: center; box-shadow: 3px 3px 0 var(--ink); }
.tile canvas { width: 144px; height: 144px; background: var(--soft); border-radius: 8px; display: block; margin: 0 auto 8px; }
.tile b { font-size: 14px; display: block; line-height: 1.35; }
.tile small { color: var(--muted); font-size: 12px; }
/* 동네 친구: 그림 아래에 짧은 소개 */
.tile.friend { padding: 12px 14px 16px; }
.tile.friend b { font-size: 16px; }
.tile.friend em { display: block; font-style: normal; font-family: var(--pixel); font-size: 12px; color: var(--accent-ink); margin: 2px 0 8px; }
.tile.friend p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tile.friend p i { font-style: normal; color: var(--ink); font-weight: 700; margin-right: 4px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.tabs button { font: 700 14px var(--body); padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--panel); color: var(--ink); cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--bg); }
.tabs button i { font-style: normal; font-family: var(--pixel); font-weight: 400; font-size: 12px; opacity: 0.7; margin-left: 2px; }
.tab-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.tabs button i .of { opacity: 0.6; }
.gal-more { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.grid[data-panel] { margin-top: 22px; }

/* ---------- 숫자 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 40px; }
.stat { background: var(--panel); border: var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.stat b { font-family: var(--pixel); font-size: 32px; color: var(--accent-ink); display: block; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }

/* 할 거리 */
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 28px; }
.todo .card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; box-shadow: 3px 3px 0 var(--ink); }
.todo .ico { font-size: 26px; line-height: 1.2; flex: none; }
.todo h3 { margin: 0 0 4px; font-size: 17px; }
/* 스크린샷 */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 1100px) { .shots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.shots img { height: auto; transition: transform 0.12s; }
.shot:hover img { transform: translate(-2px, -2px); }
.shots figure { margin: 0; }
.shots img { width: 100%; border: var(--line); border-radius: 12px; box-shadow: var(--pop); image-rendering: auto; display: block; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- 두 도구 ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.tools .card { display: flex; flex-direction: column; gap: 14px; }
.tools canvas { width: 100%; height: 150px; object-fit: contain; flex: none; background: var(--soft); border-radius: 10px; }
.tools h3 { margin: 6px 0 6px; }
.where { display: inline-block; font-family: var(--pixel); font-size: 12px; color: var(--accent-ink); border: 2px solid var(--accent); border-radius: 999px; padding: 1px 9px; }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } .tools .card { flex-direction: row; align-items: center; } .tools canvas { width: 120px; height: 120px; } }

/* ---------- 받기 ---------- */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
@media (max-width: 760px) { .dl { grid-template-columns: 1fr; } }
.dl .card { padding: 28px 28px 26px; }
.dl .card h3 { margin-top: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.dl .card h3 svg { width: 26px; height: 26px; flex: none; }
.dl .card ol, .dl .card ul { color: var(--muted); padding-left: 20px; margin: 18px 0 24px; font-size: 15px; }
.dl .card li + li { margin-top: 6px; }
.dl .card .note { margin-top: 26px; }
.dl .btn { margin-top: 0; }
.sha { font: 12px/1.6 ui-monospace, monospace; color: var(--muted); word-break: break-all; margin: 10px 0 0; padding-top: 12px; border-top: 2px dashed var(--soft); }
.sha:empty { display: none; }
.note { font-size: 14px; color: var(--muted); margin-top: 18px; }
.official { margin-top: 40px; padding: 18px 22px; line-height: 1.7; border: 2px dashed var(--accent); border-radius: 12px; background: #fff7f1; font-size: 15px; }

/* ---------- 개인정보 · FAQ ---------- */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { background: var(--panel); border: var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-family: var(--pixel); color: var(--accent-ink); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- 마지막 권유 · 바닥글 ---------- */
.cta { text-align: center; }
.cta .lead { margin-inline: auto; }
.cta .ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.cta .stage { height: 270px; max-width: 560px; margin: 30px auto 0; }
.cta .pet { left: calc(50% - 144px); cursor: pointer; }
footer { border-top: var(--line); padding: 36px 0 60px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 10px; }
footer a { color: var(--ink); }
/* 놀이터는 손을 드는 모션이 있어 말풍선을 조금 더 위에 */
.play .pet .bubble { bottom: 60%; }
/* 두 카드의 받기 버튼이 같은 높이에 오게: 설치 순서가 남는 공간을 차지한다 */
.dl .card { display: flex; flex-direction: column; align-items: flex-start; }
.dl .card ol { flex: 1; }
.dl .card .note, .dl .card .sha { align-self: stretch; }
.dl .card .sha { min-height: 3.2em; }

/* ---------- 모바일 보기 ----------
   html 의 data-view="mobile" 일 때만 (머리의 작은 스크립트가 화면 폭 · 고른 값으로 정한다).
   넓은 화면에서 모바일 보기를 고르면 가운데 430px 기둥으로 보인다. */
html[data-view="mobile"] { background: var(--soft); }
[data-view="mobile"] body { max-width: 430px; margin-inline: auto; min-height: 100vh; box-shadow: 0 0 0 3px var(--ink); }
[data-view="mobile"] .view .to-mobile { display: none; }
[data-view="mobile"] .view .to-desktop { display: inline; }
[data-view="mobile"] section { padding: 48px 0; }
[data-view="mobile"] h2 { font-size: 25px; }
[data-view="mobile"] .lead { font-size: 16px; margin-top: 8px; }
[data-view="mobile"] .eyebrow { font-size: 13px; margin-bottom: 6px; }
[data-view="mobile"] .grid { margin-top: 24px; gap: 12px; }

/* 머리줄: 메뉴와 받기 버튼을 빼고 언어 · 보기 방식만 */
[data-view="mobile"] .nav, [data-view="mobile"] .top .btn.sm { display: none; }
[data-view="mobile"] .top .wrap { gap: 8px; height: 56px; }
[data-view="mobile"] .brand { font-size: 16px; gap: 8px; margin-right: auto; }
[data-view="mobile"] .brand img { width: 30px; height: 30px; }
[data-view="mobile"] .lang { margin-left: 0; }

/* 첫 화면: 제목 → 고양이 → 설명 순서 (왼쪽 칸을 풀어 순서를 바꾼다) */
[data-view="mobile"] .hero { padding: 26px 0 44px; }
[data-view="mobile"] .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
[data-view="mobile"] .hero-grid > div:first-child { display: contents; }
[data-view="mobile"] .hero-grid > div:last-child { order: 1; margin-top: 18px; }
[data-view="mobile"] .hero h1 { font-size: 28px; }
[data-view="mobile"] .hero .lead { order: 2; font-size: 16px; margin-top: 22px; }
[data-view="mobile"] .hero .ctas { order: 3; margin-top: 18px; gap: 12px; }
[data-view="mobile"] .hero .mobile-note { order: 3; margin: 16px 0 0; }
[data-view="mobile"] .hero .meta { order: 4; }
[data-view="mobile"] .hero .ctas .btn { width: 100%; justify-content: center; }
[data-view="mobile"] .term { height: 150px; font-size: 12px; line-height: 1.6; padding: 10px 14px; }
[data-view="mobile"] .screen .stage { height: 180px; }
[data-view="mobile"] .screen .pet { width: 144px; height: 144px; }
[data-view="mobile"] .hero .hint { margin-top: 12px; font-size: 12px; }
[data-view="mobile"] .bubble { white-space: normal; width: max-content; max-width: 250px; font-size: 14px; }
/* 휴대폰에서는 받을 수 없으니 받기 버튼 대신 "PC 에서 열기" 안내만 */
[data-view="mobile"][data-phone] .hero .ctas, [data-view="mobile"][data-phone] .cta .ctas { display: none; }
[data-view="mobile"] .mobile-note button { display: block; margin: 10px 0 0; width: 100%; padding: 11px; font-size: 15px; background: var(--accent-btn); color: #fff; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }

/* 기능 3개: 그림은 왼쪽에 작게, 글은 오른쪽 */
[data-view="mobile"] .grid.g3 { grid-template-columns: minmax(0, 1fr); }
[data-view="mobile"] .feature { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; align-content: center; padding: 14px; }
[data-view="mobile"] .feature .sp-box { grid-row: 1 / 3; height: 104px; overflow: hidden; }
[data-view="mobile"] .feature .sp-box canvas { width: 120px; height: 120px; margin-bottom: -4px; }
[data-view="mobile"] .feature h3 { font-size: 17px; margin: 0 0 4px; align-self: end; }
[data-view="mobile"] .feature p { font-size: 14px; line-height: 1.5; }

/* 놀이터 */
[data-view="mobile"] .play { margin-top: 24px; }
[data-view="mobile"] .play .stage { --floor: 61px; height: 330px; }
[data-view="mobile"] .play .pet { width: 168px; height: 168px; }
[data-view="mobile"] .play .caption { white-space: normal; bottom: 8px; line-height: 1.35; font-size: 12px; }
[data-view="mobile"] .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
[data-view="mobile"] .actions .btn { padding: 11px 10px; font-size: 14px; gap: 6px; justify-content: center; flex-wrap: wrap; box-shadow: 3px 3px 0 var(--ink); }
[data-view="mobile"] .actions .btn:last-child { grid-column: 1 / -1; }
[data-view="mobile"] .actions .btn .ico { font-size: 17px; }
[data-view="mobile"] .actions .btn small:empty { display: none; }

/* 하루: 옆으로 넘겨 본다 */
[data-view="mobile"] .day { display: flex; gap: 14px; margin: 24px -16px 0; padding: 0 16px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
[data-view="mobile"] .day::-webkit-scrollbar, [data-view="mobile"] .shots::-webkit-scrollbar { display: none; }
[data-view="mobile"] .moment { flex: 0 0 78%; scroll-snap-align: start; }
[data-view="mobile"] .moment .card { padding: 22px 14px 14px; }
[data-view="mobile"] .moment .sp-box { height: 168px; margin-top: 62px; }
[data-view="mobile"] .moment .sp-box canvas { width: 180px; height: 180px; }
[data-view="mobile"] .moment .card h3 { font-size: 17px; }
[data-view="mobile"] .moment .bubble { max-width: 200px; }
.swipe { display: none; }
[data-view="mobile"] .swipe { display: block; font-family: var(--pixel); font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* 갤러리: 3열 */
[data-view="mobile"] .tabs { margin-top: 18px; gap: 6px; }
[data-view="mobile"] .tabs button { font-size: 13px; padding: 7px 11px; }
[data-view="mobile"] .tab-note, [data-view="mobile"] .gal-more { font-size: 13px; }
[data-view="mobile"] .grid.g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
[data-view="mobile"] .g6 .tile { padding: 6px 5px 8px; border-width: 2px; border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
[data-view="mobile"] .g6 .tile canvas { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 5px; border-radius: 6px; }
[data-view="mobile"] .g6 .tile b { font-size: 11.5px; line-height: 1.3; overflow-wrap: anywhere; }
/* 동네 친구: 한 줄에 하나, 그림 왼쪽 · 소개 오른쪽 */
[data-view="mobile"] .grid.g4 { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
[data-view="mobile"] .tile.friend { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; align-content: center; text-align: left; padding: 10px 12px; }
[data-view="mobile"] .tile.friend canvas { grid-row: 1 / 5; width: 92px; height: 92px; margin: 0; align-self: center; }
[data-view="mobile"] .tile.friend b { font-size: 15px; }
[data-view="mobile"] .tile.friend em { margin: 0 0 4px; }

/* 숫자 · 할 거리 · 스크린샷 */
[data-view="mobile"] .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
[data-view="mobile"] .stat { padding: 10px 4px; border-width: 2px; }
[data-view="mobile"] .stat b { font-size: 24px; }
[data-view="mobile"] .stat span { font-size: 12px; line-height: 1.3; display: block; }
[data-view="mobile"] .todo { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
[data-view="mobile"] .todo .card { padding: 12px 14px; gap: 12px; }
[data-view="mobile"] .todo .ico { font-size: 22px; }
[data-view="mobile"] .todo h3 { font-size: 16px; }
[data-view="mobile"] .todo p { font-size: 14px; line-height: 1.5; }
[data-view="mobile"] .shots { display: flex; gap: 14px; margin: 24px -16px 0; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
[data-view="mobile"] .shots figure { flex: 0 0 84%; scroll-snap-align: start; }
[data-view="mobile"] .note { margin-top: 10px; font-size: 13px; }

/* 두 도구 · 받기 · FAQ · 마지막 */
[data-view="mobile"] .tools { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
[data-view="mobile"] .tools .card { padding: 14px; gap: 14px; flex-direction: row; align-items: center; }
[data-view="mobile"] .tools canvas { width: 96px; height: 96px; }
[data-view="mobile"] .tools h3 { font-size: 17px; margin: 0 0 4px; }
[data-view="mobile"] .tools p { font-size: 14px; line-height: 1.5; }
[data-view="mobile"] .dl { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 24px; }
[data-view="mobile"] .dl .card { padding: 18px; }
[data-view="mobile"] .dl .card h3 { font-size: 19px; }
[data-view="mobile"] .dl .card ol { margin: 12px 0 18px; font-size: 14px; }
[data-view="mobile"] .dl .btn { width: 100%; justify-content: center; padding: 13px 12px; font-size: 15px; }
[data-view="mobile"] .dl .card .note { margin-top: 16px; }
[data-view="mobile"] .dl .card .sha { min-height: 0; }
[data-view="mobile"] .official { margin-top: 20px; padding: 14px 16px; font-size: 14px; }
[data-view="mobile"] .faq { margin-top: 24px; }
[data-view="mobile"] .faq details { padding: 0 14px; margin-bottom: 8px; }
[data-view="mobile"] .faq summary { padding: 13px 0; font-size: 15px; }
[data-view="mobile"] .faq details p { font-size: 14px; }
[data-view="mobile"] .cta .ctas .btn { width: 100%; justify-content: center; }
[data-view="mobile"] .cta .stage { height: 210px; margin-top: 12px; }
[data-view="mobile"] .cta .pet { width: 216px; height: 216px; left: calc(50% - 108px); }
[data-view="mobile"] footer { padding: 26px 0 40px; font-size: 13px; }

/* 휴대폰 'PC로 보내기' (8차) */
.mobile-note .mail { margin: 0 4px; }
.mobile-note [hidden] { display: none !important; }
[data-view="mobile"] .mobile-note .mail { display: block; margin: 10px 0 0; text-align: center; font-weight: 700; color: var(--ink); }

/* ---------- 0.5.0: 새 소식 띠 ---------- */
.news { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 18px; padding: 5px 12px 5px 5px; border: 2px solid var(--ink); border-radius: 999px; background: var(--panel); box-shadow: 2px 2px 0 var(--ink); text-decoration: none; font-size: 14px; transition: transform 0.1s, box-shadow 0.1s; }
.news:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.news b { font-family: var(--pixel); font-weight: 400; font-size: 12px; background: var(--accent-btn); color: #fff; border-radius: 999px; padding: 2px 9px; flex: none; }
.news span { min-width: 0; }
.news i { font-style: normal; color: var(--accent-ink); font-weight: 700; flex: none; }
/* 하루: 말 대신 하는 행동 */
.moment .bubble.act { font-style: italic; color: var(--muted); background: var(--soft-2); }
.moment .bubble.act::after { background: var(--soft-2); }

/* ---------- 0.5.0: 고양이와 대화 ---------- */
.talk-grid { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 48px; align-items: start; }
@media (max-width: 960px) { .talk-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .talk-demo { max-width: 480px; margin-inline: auto; width: 100%; } }
.talk-copy .lead { max-width: none; }
.talk-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.talk-points li { display: flex; gap: 12px; align-items: flex-start; }
.talk-points .ico { font-size: 22px; line-height: 1.3; flex: none; width: 30px; text-align: center; }
.talk-points h3 { font-size: 17px; margin: 0 0 2px; }
.talk-points p { margin: 0; color: var(--muted); font-size: 15px; }
.connect { margin-top: 26px; padding: 18px 20px; border: var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--pop); }
.connect h3 { font-size: 17px; margin: 0 0 10px; }
.connect ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.connect li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--soft-2); font-size: 13px; color: var(--muted); line-height: 1.45; }
.connect li b { color: var(--ink); font-size: 15px; }
.connect .note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .connect ol { grid-template-columns: minmax(0, 1fr); } }
.talk-demo > .note { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* 맛보기 대화창 (앱 대화창과 비슷한 모양) */
.chatdemo { display: flex; flex-direction: column; height: 560px; border: var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--pop); overflow: hidden; text-align: left; }
.cd-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 2px solid var(--soft); background: var(--soft-2); }
.cd-head canvas { width: 84px; height: 84px; flex: none; margin: -30px -16px -12px -18px; }
.cd-head b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 15px; }
.cd-head span { font-size: 12px; color: var(--muted); }
.cd-persona { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 8px 12px; border-bottom: 2px solid var(--soft); }
.cd-persona::-webkit-scrollbar { display: none; }
.cd-persona > span { font-size: 12px; color: var(--muted); flex: none; margin-right: 2px; }
.cd-persona button, .cd-chips button, .cd-row button, .cd-signs button { font: 600 13px var(--body); color: var(--ink); background: var(--panel); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 11px; cursor: pointer; flex: none; white-space: nowrap; transition: background 0.1s; }
.cd-persona button:hover, .cd-chips button:hover, .cd-row button:hover:not(:disabled), .cd-signs button:hover:not(:disabled) { background: var(--soft-2); }
.cd-persona button { padding: 3px 9px; font-size: 12.5px; }
.cd-persona button[aria-checked="true"] { background: var(--ink); color: #fff; }
.cd-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; overscroll-behavior: contain; }
.cd-msg { max-width: 86%; font-size: 14.5px; line-height: 1.5; }
.cd-msg.cat { align-self: flex-start; background: var(--soft-2); border: 2px solid var(--ink); border-radius: 4px 14px 14px 14px; padding: 8px 12px; }
.cd-msg.me { align-self: flex-end; background: var(--accent-btn); color: #fff; border-radius: 14px 4px 14px 14px; padding: 7px 12px; }
.cd-msg.sys { align-self: center; max-width: 100%; text-align: center; font-size: 12px; color: var(--muted); }
.cd-msg .dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.cd-msg .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: 0.18; animation: cdDot 1s infinite; }
.cd-msg .dots i:nth-child(2) { animation-delay: 0.15s; }
.cd-msg .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cdDot { 0%, 60%, 100% { opacity: 0.18; } 30% { opacity: 0.5; } }
.cd-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cd-row button { white-space: normal; text-align: left; border-radius: 12px; }
.cd-signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.cd-signs button { display: flex; flex-direction: column; align-items: center; border-radius: 10px; padding: 4px; line-height: 1.25; }
.cd-signs small { font-size: 10px; font-weight: 400; opacity: 0.7; }
.chatdemo button:disabled { opacity: 0.45; cursor: default; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 2px solid var(--soft); }
.cd-chips button { padding: 4px 10px; font-size: 12.5px; }
.cd-input { display: flex; gap: 8px; padding: 0 12px 12px; }
.cd-input input { flex: 1; min-width: 0; font: 14px var(--body); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 9px 12px; background: #fff; }
.cd-input input::placeholder { color: #b49c8d; }
.chatdemo.quiz .cd-input input { border-color: var(--accent); box-shadow: 0 0 0 3px #f6d9cd; }
.cd-input button { font: 700 14px var(--body); color: #fff; background: var(--accent-btn); border: 2px solid var(--ink); border-radius: 12px; padding: 0 14px; cursor: pointer; }
/* 냥운세 카드 (앱과 같은 모양) */
.fortune { margin-top: 8px; padding: 10px 12px 9px; border-radius: 10px; border: 2px solid var(--ink); background: #fff8e8; font-family: var(--pixel); box-shadow: 3px 3px 0 var(--ink); min-width: 220px; }
.fortune .f-top { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.75; }
.fortune .f-sign { text-align: center; font-size: 14px; font-weight: 700; margin-top: 6px; }
.fortune .f-grade { font-size: 26px; font-weight: 700; text-align: center; color: #d85a3a; letter-spacing: 1px; }
.fortune.g0 .f-grade { color: #e0952a; text-shadow: 1px 1px 0 #ffe08a; }
.fortune.g3 .f-grade, .fortune.g4 .f-grade { color: #6a7a8c; }
.fortune .f-stars { display: flex; justify-content: center; gap: 2px; margin-bottom: 6px; color: #e9b93a; font-size: 13px; }
.fortune .f-stars span { opacity: 0.2; }
.fortune .f-stars span.on { opacity: 1; }
.fortune dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 12px; }
.fortune dt { opacity: 0.7; }
.fortune dd { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.fortune .swatch { width: 10px; height: 10px; border: 1.5px solid var(--ink); display: inline-block; }
.fortune .f-msg { margin: 8px 0 0; padding-top: 6px; border-top: 1px dashed #c9b28d; font-size: 12.5px; font-family: var(--body); }
.fortune .f-change { display: block; margin: 6px auto 0; font: 12px var(--body); color: #9a7b58; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 2px; }
/* 모바일 보기 */
[data-view="mobile"] .talk-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
[data-view="mobile"] .talk-points { margin-top: 18px; gap: 10px; }
[data-view="mobile"] .talk-points p { font-size: 14px; }
[data-view="mobile"] .connect { padding: 14px; }
[data-view="mobile"] .connect ol { grid-template-columns: minmax(0, 1fr); gap: 6px; }
[data-view="mobile"] .connect li { flex-direction: row; flex-wrap: wrap; gap: 0 8px; align-items: baseline; padding: 8px 10px; }
[data-view="mobile"] .chatdemo { height: 500px; }
[data-view="mobile"] .news { font-size: 13px; margin-bottom: 14px; }

/* 첫 화면 터미널 속 말풍선은 줄을 바꿔 무대 밖으로 잘리지 않게 */
.screen .bubble { white-space: normal; width: max-content; max-width: min(260px, 70vw); text-align: center; }

/* ---------- 다듬기 2 (10-18) ---------- */
/* 첫 화면 받기 단추 두 개가 영어에서도 한 줄에 */
.hero .ctas { gap: 12px; }
.hero .ctas .btn { padding: 14px 16px; gap: 8px; }
/* 터미널 첫 줄을 기다리는 동안에도 빈 상자로 안 보이게 */
.term:empty::before { content: '▍'; color: var(--accent-2); animation: blink 1s steps(1) infinite; }
/* 휴대폰: 무슨 앱인지(소개 문구)를 먼저, 그다음 움직이는 터미널 */
[data-view="mobile"] .hero .lead { order: 0; margin-top: 12px; }
[data-view="mobile"] .hero-grid > div:last-child { order: 1; margin-top: 20px; }
[data-view="mobile"] .hero .ctas { order: 2; }
[data-view="mobile"] .hero .mobile-note { order: 2; }
[data-view="mobile"] .hero .meta { order: 3; }
/* 도구 칸: 첫 화면 바로 아래라 더 가볍게 */
.tools canvas { height: 128px; }
.tools .card p { font-size: 14.5px; }
/* 대화 섹션 끝 받기 단추 */
.talk-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 0; }
.talk-cta span { color: var(--muted); font-size: 14px; }
[data-view="mobile"] .talk-cta .btn { width: 100%; justify-content: center; }
[data-view="mobile"] .talk-cta span { width: 100%; text-align: center; font-size: 13px; }
/* 메뉴로 건너뛸 때 머리줄에 제목이 가리지 않게 */
section[id] { scroll-margin-top: 56px; }

/* 스크린샷 크게 보기 */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(42, 26, 18, 0.72); cursor: zoom-out; }
.lightbox img { max-width: min(560px, 100%); max-height: calc(100vh - 110px); width: auto; height: auto; border: var(--line); border-radius: 14px; box-shadow: var(--pop); background: var(--panel); image-rendering: auto; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 15px; }
.lightbox button { position: absolute; top: 16px; right: 16px; font: 700 14px var(--body); padding: 8px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; }

/* 길이 줄이기: 섹션 사이 여백 · 하루 칸 높이 */
section { padding: 72px 0; }
.moment .sp-box { height: 170px; }
.moment .sp-box canvas { width: 192px; height: 192px; }

/* ---------- 첫 화면 모니터 (10-18): 모니터 속 AI 채팅 앱 + 화면 아래를 걷는 고양이 ---------- */
.monitor { display: flex; flex-direction: column; align-items: center; }
.mon-screen { position: relative; width: 100%; height: 430px; border: var(--line); border-width: 10px; border-color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 rgba(58, 33, 24, 0.25);
  background: linear-gradient(160deg, #ffe9d6 0%, #fbd9c4 45%, #f3cdb6 100%); }
.mon-neck { width: 70px; height: 34px; background: var(--ink); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.mon-foot { width: 190px; height: 12px; background: var(--ink); border-radius: 8px 8px 4px 4px; }
.app { position: absolute; left: 16px; right: 16px; top: 14px; height: 262px; 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); }
.app-body { flex: 1; display: flex; min-height: 0; }
.app-side { width: 92px; 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; }
.app-side span { height: 7px; border-radius: 4px; background: var(--soft); }
.app-side span:nth-child(3) { width: 70%; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-log { flex: 1; overflow: hidden; padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.app-log .m { font-size: 12.5px; line-height: 1.45; max-width: 88%; }
.app-log .me { align-self: flex-end; background: var(--soft); border-radius: 12px 12px 4px 12px; padding: 5px 10px; }
.app-log .ai { align-self: flex-start; padding: 1px 2px; }
.app-log .ai::before { content: '✦'; color: var(--accent); margin-right: 6px; font-size: 12px; }
.app-log .ai p { margin: 0 0 1px; display: inline; }
.app-log .ai p + p { display: block; margin-left: 18px; }
.app-log .ai small { display: block; margin: 3px 0 0 18px; font-size: 11px; color: var(--muted); }
.app-log .dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.app-log .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0.18; animation: cdDot 1s infinite; }
.app-log .dots i:nth-child(2) { animation-delay: 0.15s; }
.app-log .dots i:nth-child(3) { animation-delay: 0.3s; }
.app-input { margin: 4px 10px 10px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: 10px; padding: 6px 8px 6px 10px; font-size: 12.5px; min-height: 32px; text-align: left; }
.app-input span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.app-input span.ph::before { content: attr(data-ph); color: #b49c8d; }
.app-input span.cur::after { content: '▍'; color: var(--accent); animation: blink 1s steps(1) infinite; }
.app-input i { font-style: normal; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-btn); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.mon-screen .stage { position: absolute; left: 0; right: 0; bottom: 22px; height: 160px; margin: 0; }
.mon-screen .stage::after { display: none; }
.mon-screen .pet { width: 144px; height: 144px; }
.mon-screen .bubble { white-space: normal; width: max-content; max-width: min(250px, 66vw); text-align: center; font-size: 14px; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: rgba(58, 33, 24, 0.82); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.taskbar i { width: 12px; height: 12px; border-radius: 3px; background: #f3e3d3; opacity: 0.85; }
.taskbar i:first-child { background: var(--accent-2); }
.taskbar span { margin-left: auto; font-family: var(--pixel); font-size: 10px; color: #f3e3d3; }
[data-view="mobile"] .mon-screen { height: 360px; border-width: 8px; }
[data-view="mobile"] .app { left: 10px; right: 10px; top: 10px; height: 218px; }
[data-view="mobile"] .app-side { display: none; }
[data-view="mobile"] .mon-screen .pet { width: 120px; height: 120px; }
[data-view="mobile"] .mon-screen .stage { height: 130px; }
[data-view="mobile"] .mon-neck { width: 54px; height: 22px; }
[data-view="mobile"] .mon-foot { width: 140px; height: 9px; }

/* ---------- 대화 섹션: 오른쪽 대화창 높이를 왼쪽 설명과 맞춘다 ---------- */
@media (min-width: 961px) {
  [data-view="desktop"] .talk-grid { align-items: stretch; }
  [data-view="desktop"] .talk-demo { display: flex; flex-direction: column; }
  [data-view="desktop"] .chatdemo { flex: 1; height: auto; min-height: 520px; }
}
/* 도구 칸 고양이를 조금 크게 */
.tools canvas { height: 172px; }
@media (max-width: 900px) { .tools canvas { height: 120px; } }

/* 하루 8칸이 줄마다 고르게 (4 · 2 열, 3열이면 마지막 줄에 2칸만 남았다) */
.day { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .day { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 스크린샷 5장: 넓으면 한 줄, 좁으면 3 + 2 로 가운데 맞춤 */
.shots { display: flex; flex-wrap: wrap; justify-content: center; }
.shots figure { flex: 0 0 calc((100% - 64px) / 5); }
@media (max-width: 1100px) { .shots figure { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 760px) { .shots figure { flex-basis: 100%; } }
[data-view="mobile"] .shots { flex-wrap: nowrap; justify-content: flex-start; }
[data-view="mobile"] .shots figure { flex: 0 0 84%; }

/* 놀이터 단추 7개를 4 + 3 으로 (6 + 1 로 하나만 떨어지지 않게) */
.play .actions .br { flex-basis: 100%; height: 0; }
[data-view="mobile"] .play .actions .br { display: none; }
