/* PLAYORA 강아지 키우기 */
:root {
  --cocoa: #3f2b23; --cocoa-2: #4b352b; --cocoa-3: #5c4336; --cocoa-line: #6f5546;
  --d-ink: #fbf3e8; --d-ink-2: #e8d5c2; --d-ink-3: #bea48d;
  --paper: #fbf6ee; --paper-2: #f4eadb; --paper-3: #eadcc8; --p-ink: #3b2a24; --p-ink-2: #6d5a4e; --p-ink-3: #9a8578; --p-line: #e5d6c2;
  --acc: #e0533d; --acc-2: #c4432f; --acc-ink: #fffaf4;
  --gold: #f2c14e; --mint: #4fae6d;
  --m-full: #f08c3a; --m-clean: #4aa8e0; --m-happy: #e8607a; --m-rest: #8b74d6;
  --page: #f7f0e6; --page-ink: #2c211c; --page-2: #6b5a4f; --page-line: #e4d6c6;
  --f-body: "IBM Plex Sans KR", "Pretendard", system-ui, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --f-disp: "Jua", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r1: 8px; --r2: 12px; --r3: 16px; --r4: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@supports (color: oklch(0 0 0)) {
  :root {
    --cocoa: oklch(0.31 0.035 45); --cocoa-2: oklch(0.35 0.038 45); --cocoa-3: oklch(0.41 0.04 46); --cocoa-line: oklch(0.47 0.04 46);
    --d-ink: oklch(0.97 0.014 75); --d-ink-2: oklch(0.88 0.03 65); --d-ink-3: oklch(0.74 0.04 60);
    --paper: oklch(0.975 0.011 80); --paper-2: oklch(0.94 0.02 78); --paper-3: oklch(0.9 0.028 76); --p-ink: oklch(0.29 0.03 40); --p-ink-2: oklch(0.47 0.03 45); --p-line: oklch(0.88 0.03 78);
    --acc: oklch(0.62 0.17 33); --acc-2: oklch(0.55 0.16 33);
    --page: oklch(0.96 0.015 78); --page-line: oklch(0.89 0.024 75);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--page-ink); font: 400 16px/1.7 var(--f-body); word-break: keep-all; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: 0.38; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 페이지 머리 */
.mast { display: flex; align-items: baseline; gap: var(--s4); padding: var(--s3) clamp(var(--s4), 3vw, var(--s6)); border-bottom: 1px solid var(--page-line); }
.mast-brand { text-decoration: none; font-size: 14px; color: var(--page-2); white-space: nowrap; }
.mast-brand b { font-weight: 700; letter-spacing: 0.1em; color: var(--page-ink); margin-right: 6px; }
.mast-more { margin-left: auto; font-size: 14px; color: var(--page-2); white-space: nowrap; }
.head { max-width: 1240px; margin: 0 auto; padding: var(--s4) clamp(var(--s3), 3vw, var(--s6)) var(--s3); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); }
.head h1 { margin: 0; font: 400 clamp(32px, 4.2vw, 46px)/1.1 var(--f-disp); letter-spacing: 0.01em; color: var(--cocoa); }
.head p { margin: 0; color: var(--page-2); font-size: 15px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(0px, 2vw, var(--s5)); }

/* ---------------------------------------------------------------- 게임 틀 */
.pp { position: relative; width: 100%; height: clamp(560px, calc(100svh - 132px), 860px); background: var(--cocoa); color: var(--d-ink); overflow: hidden; border-radius: var(--r2);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; font: 400 14px/1.45 var(--f-body); }
@media (max-width: 640px) { .pp { border-radius: 0; height: calc(100svh - 96px); min-height: 560px; } .head { padding-top: var(--s3); } .head p { display: none; } }
html.embed, html.embed body { height: 100%; overflow: hidden; background: var(--cocoa); }
html.embed .mast, html.embed .head, html.embed .about, html.embed .foot { display: none !important; }
html.embed .wrap { padding: 0; max-width: none; }
html.embed .pp { position: fixed; inset: 0; width: auto; height: auto; min-height: 0; border-radius: 0; }
.pp:fullscreen { border-radius: 0; }
.pp button:focus-visible, .pp input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nojs { padding: var(--s6); text-align: center; }
.pp canvas { display: block; }

/* 위 막대 */
.bar { position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 6; display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s2) 0 var(--s3); background: var(--cocoa); border-bottom: 1px solid rgba(0, 0, 0, 0.25); }
.pp.short .bar { height: 40px; }
.bar-l { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; overflow: hidden; }
.bar-t { font: 400 21px/1 var(--f-disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--d-ink); min-width: 0; letter-spacing: 0.01em; }
.bar-dog { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%; height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--cocoa-line); background: var(--cocoa-2); color: var(--d-ink); }
.pp.short .bar-dog { height: 30px; }
.bd-n { font: 400 19px/34px var(--f-disp); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pp.short .bd-n { line-height: 30px; }
.bd-s { font-size: 12.5px; color: var(--d-ink-2); white-space: nowrap; }
.pp.tiny .bd-s { display: none; }
.bar-r { display: flex; align-items: center; gap: 6px; flex: none; }
.tb { height: 34px; padding: 0 10px; gap: 5px; border-radius: var(--r1); border: 1px solid var(--cocoa-line); background: transparent; color: var(--d-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.tb.icon { width: 36px; padding: 0; }
.pp.short .tb { height: 30px; } .pp.short .tb.icon { width: 32px; }
.tb svg { width: 18px; height: 18px; flex: none; }
.tb:hover { border-color: var(--d-ink-3); background: rgba(255, 255, 255, 0.06); }
.pp.narrow .tb.back span { display: none; } .pp.narrow .tb.back { width: 36px; padding: 0; }
.pp.tiny .bar-r { gap: 4px; } .pp.tiny .tb.icon { width: 32px; }
.view { position: absolute; top: 46px; left: 0; right: 0; bottom: 0; }
.pp.short .view { top: 40px; }

/* 큰 단추 */
.big { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 28px; background: var(--acc); color: var(--acc-ink); font: 400 22px/1 var(--f-disp); letter-spacing: 0.01em; box-shadow: 0 4px 0 var(--acc-2); transition: transform 0.12s var(--ease); }
.big svg { width: 24px; height: 24px; }
.big:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--acc-2); }
.pp.short .big { min-height: 48px; font-size: 20px; }

/* ---------------------------------------------------------------- 처음 화면 */
.v-start { background: var(--paper); color: var(--p-ink); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); }
.pp.port .v-start { display: flex; flex-direction: column; }
.st-art { position: relative; min-height: 0; overflow: hidden; }
.pp.port .st-art { flex: 1 1 auto; min-height: 150px; }
.st-art > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-side { min-width: 0; min-height: 0; padding: var(--s5) clamp(var(--s4), 3vw, var(--s6)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s3); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pp.port .st-side { flex: 0 1 auto; padding: var(--s3) var(--s4) var(--s4); align-items: stretch; max-height: 62%; justify-content: flex-start; }
.st-t { margin: 0; font: 400 clamp(34px, 5vw, 52px)/1 var(--f-disp); color: var(--cocoa); letter-spacing: 0.01em; }
html:not(.embed) .st-t { display: none; }
.pp.port .st-t { font-size: 30px; }
.st-d { margin: 0; color: var(--p-ink-2); font-size: 15px; max-width: 28em; }
.pp.port.has-dogs .st-d, .pp.short .st-d { display: none; }
.pp.port .st-t, .pp.short.has-dogs .st-t { display: none; }
.st-n { margin: 0; font-size: 13px; color: var(--p-ink-2); }
.dogs { display: grid; gap: var(--s2); width: 100%; }
.dogs:empty { display: none; }
.pp.port .dogs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.dogc { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: var(--s3); padding: 6px 14px 6px 6px; border-radius: var(--r3); border: 2px solid var(--p-line); background: #fff; color: var(--p-ink); text-align: left; white-space: normal; transition: transform 0.14s var(--ease); }
.dogc:hover { transform: translateX(3px); }
.dogc.cur { border-color: var(--acc); }
.dc-art { width: 64px; height: 64px; border-radius: 12px; background: var(--paper-2); }
.dc-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.dc-t b { font: 400 21px/1.2 var(--f-disp); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-t span { font-size: 12.5px; color: var(--p-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp.port .dogc { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 6px; }
.pp.port .dc-t { align-items: center; max-width: 100%; }
.pp.port .dc-t span:last-child { display: none; }
.pp.port .dc-art { width: 56px; height: 56px; }
.pp.port .big { width: 100%; }

/* ---------------------------------------------------------------- 강아지 고르기 */
.v-adopt { background: var(--paper); color: var(--p-ink); display: flex; flex-direction: column; }
.v-h { margin: 0; padding: var(--s3) var(--s4) var(--s2); font: 400 24px/1.2 var(--f-disp); color: var(--cocoa); }
.pp.short .v-h { font-size: 20px; padding: var(--s2) var(--s4) var(--s1); }
.breeds { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: var(--s1) var(--s4) var(--s4); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); align-content: start; scrollbar-width: thin; }
.pp.port .breeds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); padding: var(--s1) var(--s3) var(--s3); }
.brd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 6px 10px; border: 2px solid var(--p-line); border-radius: var(--r3); background: #fff; color: var(--p-ink); white-space: normal; transition: transform 0.14s var(--ease), border-color 0.14s; }
.brd:hover { transform: translateY(-2px); border-color: var(--acc); }
.brd-art { width: 100%; max-width: 150px; height: auto; aspect-ratio: 220 / 200; }
.brd-n { font: 400 19px/1.2 var(--f-disp); }
.brd-s { font-size: 12px; line-height: 1.35; color: var(--p-ink-2); text-align: center; }
.pp.short .brd-s, .pp.tiny .brd-s { display: none; }
.pp.short .brd-art { max-width: 96px; }

/* ---------------------------------------------------------------- 이름 짓기 */
.v-name { background: var(--paper); color: var(--p-ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.pp.port .v-name { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.nm-art { position: relative; min-height: 0; overflow: hidden; }
.nm-art > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nm-side { min-width: 0; padding: var(--s4) var(--s5); display: flex; flex-direction: column; justify-content: center; gap: var(--s2); overflow: auto; overscroll-behavior: contain; }
.pp.port .nm-side { padding: var(--s3) var(--s4) var(--s4); }
.pp.short .nm-side { padding: var(--s2) var(--s4); gap: 6px; }
.nm-b { margin: 0; font-size: 13.5px; color: var(--p-ink-2); }
.pp.short .nm-b { display: none; }
.nm-lab { font-size: 13px; font-weight: 700; color: var(--p-ink-2); }
.coats { display: flex; flex-wrap: wrap; gap: var(--s2); }
.coat { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border-radius: 22px; border: 2px solid var(--p-line); background: #fff; color: var(--p-ink); font-weight: 600; font-size: 14px; }
.coat i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--p-ink); }
.coat.on { border-color: var(--acc); background: #fff2ee; }
.nm-in { display: flex; gap: var(--s2); }
.nm-in input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: var(--r2); border: 2px solid var(--p-line); background: #fff; color: var(--p-ink); font: 400 22px/1 var(--f-disp); }
.nm-in input:focus { border-color: var(--acc); outline: none; }
.tb.dk { height: 52px; width: 52px; border-color: var(--p-line); color: var(--p-ink); background: #fff; }
.tb.dk svg { width: 24px; height: 24px; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 40px; padding: 0 14px; border-radius: 20px; border: 2px solid var(--p-line); background: #fff; color: var(--p-ink); font: 400 17px/1 var(--f-disp); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--acc); }
.chip.on { border-color: var(--acc); background: #fff2ee; }
.chip svg { width: 16px; height: 16px; }
.pp.short .chip { height: 36px; }
.pp.short .coat { height: 38px; }
.pp.short .nm-in input, .pp.short .tb.dk { height: 44px; }
.pp.short .tb.dk { width: 44px; }
.nm-side .big { margin-top: var(--s2); }

/* ---------------------------------------------------------------- 돌보기·놀이 화면 */
.v-play { display: flex; flex-direction: column; background: var(--cocoa); }
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pet { position: absolute; touch-action: none; cursor: grab; z-index: 1; border-radius: 40%; }
.pet:active { cursor: grabbing; }
.stats { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; gap: 6px; max-width: calc(100% - 16px); }
.stat { display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 9px 0 5px; border-radius: 17px; background: rgba(251, 246, 238, 0.94); color: var(--p-ink); box-shadow: 0 2px 6px -3px rgba(40, 20, 10, 0.5); }
.stat .ic { width: 22px; height: 22px; flex: none; }
.stat .hi { display: grid; place-items: center; color: var(--m-happy); }
.stat .hi svg { width: 20px; height: 20px; fill: var(--m-happy); stroke: #3b2a24; stroke-width: 1.6; }
.stat .m { width: 46px; height: 9px; border-radius: 5px; background: var(--paper-3); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(59, 42, 36, 0.25); }
.stat .m u { display: block; height: 100%; border-radius: 5px; transition: width 0.5s var(--ease); }
.s-full .m u { background: var(--m-full); } .s-clean .m u { background: var(--m-clean); } .s-happy .m u { background: var(--m-happy); } .s-rest .m u { background: var(--m-rest); }
.stat.low { animation: wob 1.6s ease-in-out infinite; }
@keyframes wob { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
.pp.narrow .stat .m { width: 34px; }
.pp.tiny .stats { gap: 4px; } .pp.tiny .stat { padding: 0 7px 0 4px; gap: 4px; } .pp.tiny .stat .m { width: 30px; }
.hud { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: calc(100% - 16px); pointer-events: none; }
.hint { margin: 0; padding: 5px 14px; border-radius: 16px; background: rgba(251, 246, 238, 0.94); color: var(--p-ink); font-size: 14px; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 6px -3px rgba(40, 20, 10, 0.5); }
.cnt { margin: 0; padding: 3px 12px; border-radius: 14px; background: var(--gold); color: #4a3507; font: 400 17px/1.3 var(--f-disp); }
.steps { display: flex; gap: 4px; margin: 0; padding: 4px; list-style: none; border-radius: 18px; background: rgba(251, 246, 238, 0.94); box-shadow: 0 2px 6px -3px rgba(40, 20, 10, 0.5); }
.steps li { padding: 3px 12px; border-radius: 14px; color: var(--p-ink-3); font: 400 16px/1.3 var(--f-disp); white-space: nowrap; }
.steps li.now { background: var(--m-clean); color: #fff; }
.steps li.done { color: var(--mint); }
.steps li.done::before { content: "✓ "; }
.prog { width: min(240px, 60vw); height: 14px; border-radius: 7px; background: rgba(251, 246, 238, 0.94); box-shadow: inset 0 0 0 2px var(--p-ink); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--mint); transition: width 0.6s var(--ease); }

/* 아래 단추 줄 */
.dock { flex: none; display: flex; justify-content: center; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--cocoa-2); border-top: 1px solid rgba(0, 0, 0, 0.3); min-height: 80px; }
.pp.port .dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 60px; align-content: start; min-height: calc(136px + env(safe-area-inset-bottom, 0px)); }
.pp.port .dock[data-m="bath"], .pp.port .dock[data-m="ball"], .pp.port .dock[data-m="walk"], .pp.port .dock[data-m="sleeping"] { min-height: calc(76px + env(safe-area-inset-bottom, 0px)); }
.pp.port .dock[data-m="walk"], .pp.port .dock[data-m="sleeping"] { grid-template-columns: minmax(0, 220px); justify-content: center; }
.db { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 84px; min-width: 0; height: 64px; padding: 2px 4px; border-radius: var(--r2); border: 0; background: var(--paper); color: var(--p-ink); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); transition: transform 0.1s var(--ease); }
.pp.port .db { width: auto; height: 60px; }
.db .ic { width: 40px; height: 40px; flex: none; pointer-events: none; }
.db i.ic { display: grid; place-items: center; color: var(--p-ink-2); }
.db i.ic svg { width: 28px; height: 28px; }
.db span { font: 400 15px/1.1 var(--f-disp); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.db:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.db.on { background: #fff3c9; box-shadow: 0 0 0 3px var(--gold), 0 3px 0 rgba(0, 0, 0, 0.3); }
.db.want::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 3px var(--gold); animation: pulse 1.3s ease-in-out infinite; pointer-events: none; }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.db.drag { touch-action: none; cursor: grab; }
.db.bk { background: var(--cocoa-3); color: var(--d-ink); }
.db.bk span { color: var(--d-ink); }
.db.bk i.ic { color: var(--d-ink); }
.dock[data-m="sleeping"] .db { width: 180px; background: #fff3c9; }
.pp.short .dock { min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
.pp.short .db { height: 52px; width: 76px; }
.pp.short .db .ic { width: 32px; height: 32px; }
.pp.short .db span { font-size: 14px; }

/* ---------------------------------------------------------------- 꾸미기 */
.v-dress { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 46%); background: var(--cocoa); }
.pp.port .v-dress { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 46%); }
.d-stage { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; }
.d-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-tools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.fb { height: 48px; min-width: 48px; padding: 0 6px; border-radius: 24px; border: 0; background: var(--paper); color: var(--p-ink); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.fb .ic { width: 30px; height: 30px; }
.fb.go { padding: 0 18px; background: var(--acc); color: var(--acc-ink); font: 400 19px/1 var(--f-disp); }
.d-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--p-ink); }
.d-tabs { flex: none; display: flex; gap: 4px; padding: 8px 8px 0; }
.dt { flex: 1; height: 44px; border: 0; border-radius: var(--r2) var(--r2) 0 0; background: var(--paper-3); color: var(--p-ink-2); font: 400 18px/1 var(--f-disp); }
.dt.on { background: #fff; color: var(--p-ink); box-shadow: inset 0 3px 0 var(--acc); }
.d-cols { flex: none; display: flex; gap: 6px; padding: 8px; background: #fff; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.d-cols::-webkit-scrollbar { display: none; }
.cc { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--p-ink); background: var(--c); }
.cc.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--acc); }
.d-grid { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); grid-auto-rows: max-content; gap: 8px; background: #fff; align-content: start; scrollbar-width: thin; touch-action: pan-y; }
.it { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 4px 6px; border-radius: var(--r2); border: 2px solid var(--p-line); background: var(--paper); color: var(--p-ink); white-space: normal; }
.it canvas { width: 72px; height: 72px; }
.it span { font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center; }
.it.on { border-color: var(--acc); background: #fff2ee; }
.it.none { justify-content: center; color: var(--p-ink-2); }
.it.none svg { width: 34px; height: 34px; margin: 19px 0; }
.it.lock canvas { opacity: 0.35; filter: grayscale(0.8); }
.lk { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 10px; background: var(--cocoa); color: var(--d-ink); font-style: normal; }
.lk svg { width: 13px; height: 13px; }
.lk em { font-style: normal; font-size: 12px; font-weight: 700; }
.pp.short .d-tabs .dt { height: 38px; font-size: 16px; }
.pp.short .d-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
.pp.short .it canvas { width: 56px; height: 56px; }
.pp.short .it.none svg { margin: 11px 0; }
.pp.port .d-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.pp.port .it canvas { width: 60px; height: 60px; }
.pp.port .it.none svg { margin: 13px 0; }

/* ---------------------------------------------------------------- 창 */
.modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: var(--s3); background: rgba(30, 18, 12, 0.55); opacity: 0; transition: opacity 0.18s var(--ease); }
.modal.on { opacity: 1; }
.card { position: relative; width: min(460px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain; padding: var(--s5) var(--s5) var(--s4); border-radius: var(--r4); background: var(--paper); color: var(--p-ink); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); scrollbar-width: thin; }
.card.wide { width: min(620px, 100%); }
.pp.short .card { padding: var(--s3) var(--s4); }
.card h3 { margin: 0 44px 4px 0; font: 400 26px/1.2 var(--f-disp); color: var(--cocoa); }
.pp.short .card h3 { font-size: 22px; }
.card .lead { margin: 0 0 var(--s3); color: var(--p-ink-2); font-size: 14.5px; }
.x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--p-ink); display: grid; place-items: center; }
.x svg { width: 20px; height: 20px; }
.mb { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 23px; border: 2px solid var(--p-line); background: #fff; color: var(--p-ink); font-weight: 700; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }
.btn.pri { border-color: var(--acc); background: var(--acc); color: var(--acc-ink); }
.btn.warn { color: #b23a2b; }
.pp.short .btn { height: 42px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .wd { text-align: center; font-size: 12px; color: var(--p-ink-3); font-weight: 700; }
.cal .day { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; }
.pp.short .cal .day { aspect-ratio: auto; height: 30px; }
.cal .day em { position: absolute; top: 2px; left: 5px; font-style: normal; font-size: 12px; color: var(--p-ink-3); line-height: 1.2; }
.cal .day svg { width: 64%; height: 64%; color: var(--acc); margin-top: 6px; }
.pp.short .cal .day svg { width: 22px; height: 22px; margin: 4px 0 0 14px; }
.cal .day.on { background: #ffe3dc; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--acc); }
.cal .day.fresh svg { animation: stamp 0.55s var(--ease) both; }
@keyframes stamp { 0% { transform: scale(2.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(0.9) rotate(4deg); opacity: 1; } 100% { transform: none; } }
.gift { display: flex; align-items: center; gap: 6px; margin: var(--s3) 0 0; font-size: 14px; color: var(--p-ink-2); }
.gift.new { color: var(--mint); font-weight: 700; }
.gift svg { width: 18px; height: 18px; flex: none; }
.grow { margin: var(--s2) 0 0; font-size: 13.5px; color: var(--p-ink-2); }
.gcv { width: 100%; height: auto; border-radius: var(--r2); }
.ph { display: grid; place-items: center; }
.ph canvas { width: min(100%, 360px); height: auto; aspect-ratio: 1; border-radius: 4px; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.5); }
.pp.short .ph canvas { width: min(100%, 190px); }
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s3); }
.card .chip { height: 38px; font-size: 16px; }
.chip.lock { color: var(--p-ink-3); }
.al { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ali { padding: 0; border: 0; border-radius: 6px; background: none; }
.ali canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; box-shadow: 0 3px 10px -6px rgba(0, 0, 0, 0.6); }
.empty { color: var(--p-ink-2); font-size: 14.5px; }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th { text-align: left; font-weight: 600; color: var(--p-ink-2); padding: 5px 10px 5px 0; white-space: nowrap; }
.kv td { padding: 5px 0; }
.kv tr + tr { border-top: 1px solid var(--p-line); }
.ren { display: flex; gap: var(--s2); margin-top: var(--s3); }
.ren input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--p-line); font: 400 19px/1 var(--f-disp); color: var(--p-ink); background: #fff; }
.toast { position: absolute; left: 50%; top: 56px; z-index: 30; transform: translate(-50%, -8px); max-width: calc(100% - 24px); padding: 8px 16px; border-radius: 20px; background: var(--cocoa); color: var(--d-ink); font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.ghost { position: absolute; left: 0; top: 0; z-index: 25; width: 64px; height: 64px; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.3)); }
.ghost .ic { width: 64px; height: 64px; }
.flash { position: absolute; inset: 0; z-index: 40; background: #fff; pointer-events: none; animation: flash 0.45s ease-out forwards; }
@keyframes flash { from { opacity: 0.9; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .stat.low, .db.want::after, .cal .day.fresh svg { animation: none; }
  .big, .dogc, .brd, .db, .toast, .modal { transition: none; }
  .flash { display: none; }
}

/* ---------------------------------------------------------------- 소개 글 */
.about { max-width: 1240px; margin: 0 auto; padding: var(--s6) clamp(var(--s4), 3vw, var(--s6)) var(--s7); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: var(--s6) clamp(var(--s5), 4vw, var(--s7)); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about-main { min-width: 0; max-width: 46em; }
.about h2 { margin: var(--s6) 0 var(--s3); font: 400 28px/1.25 var(--f-disp); color: var(--cocoa); letter-spacing: 0.01em; }
.about h2:first-child { margin-top: 0; }
.about h3 { margin: var(--s5) 0 var(--s2); font: 700 18px/1.4 var(--f-body); color: var(--page-ink); }
.about p, .about li, .about dd { color: #3e322c; }
.about ol, .about ul { padding-left: 1.3em; }
.about li { margin: 6px 0; }
.about dl { margin: 0; }
.about dt { margin-top: var(--s4); font-weight: 700; }
.about dd { margin: 4px 0 0; }
.about .more { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--page-line); font-size: 14.5px; line-height: 2; color: var(--page-2); }
.about-side { min-width: 0; align-self: start; position: sticky; top: var(--s4); padding: var(--s4) var(--s5); border-left: 4px solid var(--acc); background: #fffaf3; }
@media (max-width: 860px) { .about-side { position: static; } }
.about-side h3 { margin-top: var(--s4); }
.about-side h3:first-child { margin-top: 0; }
.keytab { width: 100%; border-collapse: collapse; font-size: 14px; }
.keytab th { text-align: left; font-weight: 600; padding: 6px 10px 6px 0; vertical-align: top; color: var(--page-ink); white-space: nowrap; }
.keytab td { padding: 6px 0; color: var(--page-2); }
.keytab tr + tr { border-top: 1px solid var(--page-line); }
.foot { max-width: 1240px; margin: 0 auto; padding: var(--s5) clamp(var(--s4), 3vw, var(--s6)) var(--s7); border-top: 1px solid var(--page-line); font-size: 13.5px; color: var(--page-2); }
.foot a { margin-right: var(--s4); display: inline-block; }
.foot p { margin: var(--s3) 0 0; }
