/* 텔레고치 사이트 — A3 옛날 컴퓨터 창 스타일 */
@font-face { font-family: 'Galmuri11'; src: url('../fonts/Galmuri11.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Galmuri11'; src: url('../fonts/Galmuri11-Bold.woff2') format('woff2'); font-weight: bold; font-display: swap; }
@font-face { font-family: 'Galmuri9'; src: url('../fonts/Galmuri9.woff2') format('woff2'); font-display: swap; }
:root {
  --bg: #c9b7f2; --bg-check: #bda8ee; --win: #efe9ff; --ink: #2b1f4a; --bevel: #a592d6;
  --title: #6a4fd0; --ok: #4cc38a; --away: #f2a33a; --off: #e5534b;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); font: 15px/1.75 'Galmuri11', 'Galmuri9', monospace;
  background-color: var(--bg);
  background-image: linear-gradient(45deg, var(--bg-check) 25%, transparent 25%, transparent 75%, var(--bg-check) 75%),
    linear-gradient(45deg, var(--bg-check) 25%, transparent 25%, transparent 75%, var(--bg-check) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
a { color: var(--title); }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; }
.win { background: var(--win); border: 3px solid var(--ink); box-shadow: inset -3px -3px 0 var(--bevel), inset 3px 3px 0 #fff; margin: 0 0 24px; }
.win > h2 { margin: 0; background: var(--title); color: #fff; font-size: 13px; font-weight: normal; padding: 4px 8px; display: flex; justify-content: space-between; }
.win > h2::after { content: '_ □ ×'; }
.win > .body { padding: 18px; }
.btn { display: inline-block; text-decoration: none; color: var(--ink); background: var(--win); border: 3px solid var(--ink);
  box-shadow: inset -2px -2px 0 var(--bevel), inset 2px 2px 0 #fff; padding: 8px 14px; margin: 4px; }
.btn.primary { background: var(--title); color: #fff; box-shadow: inset -2px -2px 0 #3b2a8a, inset 2px 2px 0 #9b87e8; }
.btn:active { box-shadow: inset 2px 2px 0 var(--bevel), inset -2px -2px 0 #fff; }
.stage { background: #fff; border: 2px solid var(--ink); display: flex; gap: 16px; justify-content: center; align-items: flex-end; padding: 12px; flex-wrap: wrap; }
canvas.pet { image-rendering: pixelated; }
.desk { position: relative; height: 200px; background: linear-gradient(#dfe9f7, #c9dbf2); border: 2px solid var(--ink); overflow: hidden; }
.tag { background: rgba(43,31,74,.85); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.dot-ok { color: var(--ok); } .dot-away { color: var(--away); } .dot-off { color: var(--off); }
.note { font-size: 12px; opacity: .75; }
footer { text-align: center; font-size: 13px; }

/* 목록: 번호·점 없이 줄마다 */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li + li { margin-top: 4px; }
/* 자주 묻는 질문: 한 줄에 "Q. 질문 — 답" */
.faq { margin: 0; }
.faq dt { float: left; clear: left; margin-right: .5em; }
.faq dd { margin: 0 0 4px; }
.faq dd::before { content: '— '; }

/* 1. 첫 화면 */
.hero { text-align: center; }
.hero h1 { margin: 0; font-size: 34px; font-weight: normal; line-height: 1.3; }
.hero .lead { margin: 4px 0 0; }
.hero .stage { margin: 14px 0; }
/* 캔버스 위쪽의 빈칸을 겹쳐서 펫끼리 붙어 보이게 */
.stage .pet { margin: -28px -10px 0; }
.dl { display: flex; flex-wrap: wrap; justify-content: center; }
#dl-info { margin: 6px 0 0; }
#dl-mobile { margin: 8px 0 0; font-size: 13px; }

/* 3. 자라는 모습 */
.grow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; align-items: end; background: #fff; border: 2px solid var(--ink); padding: 8px 4px; margin: 0; }
.grow figure { margin: 0; text-align: center; }
.grow .pet { display: block; margin: -28px auto 0; }
.grow figcaption { font-size: 13px; }

/* 4. 친구 장면 — 폭에 맞춰 줄어든다 */
.friends .body { container-type: inline-size; }
.desk { height: min(200px, 34cqw); --pet: min(96px, 17cqw); }
.desk .doc { position: absolute; left: 3%; top: 7%; width: 30%; height: 36%; background: #fff; border: 1px solid #999; box-shadow: 2px 2px 0 rgba(0,0,0,.15); }
.desk .doc::before { content: ''; display: block; height: 10px; background: #ddd; }
.desk .doc span { display: block; padding: 2px 6px; font: 10px/1.5 'Galmuri9', monospace; color: #999; }
.mate { position: absolute; bottom: 2px; display: flex; flex-direction: column; align-items: center; }
.mate .tag { font-family: 'Galmuri9', monospace; font-size: clamp(9px, 2.2cqw, 11px); position: relative; z-index: 1; }
/* 머리 위 빈칸만큼 이름표를 내린다 (모습·동작마다 머리 높이가 달라서) */
.mate { --head: .3; }
.mate.junho { --head: .36; } .mate.sua { --head: .5; }
.mate .pet { width: var(--pet); height: var(--pet); margin-top: calc(var(--pet) * var(--head) * -1); }
.mate.me { left: 5%; } .mate.minji { left: 29%; } .mate.junho { left: 53%; } .mate.sua { left: 76%; }
.mate .dot-me { color: #fff; }
.bubble { position: absolute; bottom: 100%; left: 40%; margin-bottom: 4px; background: #fff; border: 2px solid var(--ink); border-radius: 8px;
  padding: 1px 8px; font-size: clamp(9px, 2.2cqw, 12px); white-space: nowrap; }
.zz { position: absolute; right: -2px; top: 30%; font-size: 11px; }
.ball { position: absolute; left: 21%; bottom: calc(var(--pet) * .5); width: 12px; height: 12px; border-radius: 50%; background: #7fd6a0; border: 2px solid var(--ink); }
.ball::before { content: '⤴'; position: absolute; left: -18px; top: 4px; font-size: 12px; font-style: normal; }
.friends ul { margin-top: 12px; }

/* 개인정보처리방침 */
.policy h1 { margin: 0 0 8px; font-size: 22px; font-weight: normal; line-height: 1.4; }
.policy h3 { margin: 18px 0 4px; font-size: 15px; }
.policy ul, .policy p { margin: 0 0 6px; }
.policy ul { padding-left: 20px; }

footer p { margin: 0; }
footer .sep { margin: 0 6px; }

@media (max-width: 520px) {
  body { font-size: 14px; }
  main { padding: 16px 10px 32px; }
  .win > .body { padding: 12px; }
  .hero h1 { font-size: 28px; }
  .grow { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
}
