/* 느티골 텃밭일기 — 화면 셸·HUD·대화창·시작 화면. 따뜻한 시골 톤(한지·나무색). 패널 스타일은 ui.css(UIPanels). */
@font-face {
  font-family: 'Galmuri11';
  src: url('assets/fonts/Galmuri11.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Galmuri11';
  src: url('assets/fonts/Galmuri11-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --wood-dk: #3d2616;
  --wood: #6b4226;
  --wood-md: #8a5a33;
  --wood-lt: #b98a55;
  --hanji: #f7edd5;
  --hanji-2: #efdfba;
  --hanji-3: #e3cc9c;
  --ink: #3a2717;
  --ink-2: #6b5039;
  --persimmon: #e07a2f;
  --persimmon-dk: #b35a1c;
  --leaf: #6d9b3a;
  --leaf-dk: #4a7226;
  --sky: #6fb3d9;
  --red: #c4503a;
  --gold: #f1c143;
  --silver: #c9d3dc;
  --shadow: 0 3px 0 rgba(30, 16, 6, 0.45), 0 6px 18px rgba(20, 10, 4, 0.35);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #1b140e; color: var(--ink);
  font-family: 'Galmuri11', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 14px;
  -webkit-user-select: none; user-select: none; touch-action: none; overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

#view {
  position: fixed; left: 0; top: 0; display: block;
  image-rendering: pixelated; image-rendering: crisp-edges;
  touch-action: none; cursor: pointer;
}

/* 나무 테두리 + 한지 판 */
.wood-frame, .clock-panel, .dlg-box, .tt-card, .err-card, .ld-card {
  background: linear-gradient(180deg, var(--hanji) 0%, var(--hanji-2) 100%);
  border: 3px solid var(--wood-dk);
  box-shadow: inset 0 0 0 2px var(--wood-lt), inset 0 0 0 4px rgba(255, 255, 255, 0.35), var(--shadow);
  border-radius: 6px;
}

/* 좌상단: 홈 · 소리 · 메뉴(설정) 버튼 한 줄 */
.home-btn {
  position: fixed; left: calc(8px + env(safe-area-inset-left, 0px)); top: calc(8px + var(--safe-t)); z-index: 40;
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px;
  background: var(--wood); color: var(--hanji); text-decoration: none; font-weight: 700; font-size: 13px; white-space: nowrap;
  border: 2px solid var(--wood-dk); border-radius: 6px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 2px 0 rgba(0, 0, 0, 0.35);
}
.home-btn:hover { background: var(--wood-md); }
.hud-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 36px; height: 36px; padding: 0 8px;
  background: var(--wood); color: var(--hanji); border: 2px solid var(--wood-dk); border-radius: 6px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 2px 0 rgba(0, 0, 0, 0.35); font-size: 16px;
}
.hud-btn:hover { background: var(--wood-md); }
.hud-btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); }
.hud-btn span { font-size: 12px; font-weight: 700; white-space: nowrap; }
#btnSound { position: fixed; top: calc(8px + var(--safe-t)); left: 150px; z-index: 40; }
#btnMenu { position: fixed; top: calc(8px + var(--safe-t)); left: 196px; z-index: 40; }
#btnMap { position: fixed; top: calc(8px + var(--safe-t)); left: 242px; z-index: 40; }

/* ── 오른쪽 위: 시계 패널 + 지금 할 일 ── */
.right-col {
  position: fixed; right: calc(8px + env(safe-area-inset-right, 0px)); top: calc(8px + var(--safe-t)); z-index: 30;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: min(300px, 52vw);
}
.clock-panel { position: relative; min-width: 172px; padding: 7px 10px 8px; display: flex; flex-direction: column; gap: 3px; }
.cp-date { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cp-date b { font-size: 14px; }
.cp-market { font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.cp-market.today { color: #fff; background: var(--persimmon); padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.cp-time { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.cp-time canvas { width: 32px; height: 32px; image-rendering: pixelated; background: rgba(111, 179, 217, 0.25); border-radius: 4px; border: 1px solid rgba(61, 38, 22, 0.25); }
.cp-money {
  align-self: stretch; text-align: right; font-weight: 700; font-size: 15px; padding: 2px 6px;
  background: rgba(61, 38, 22, 0.1); border-radius: 3px; color: var(--wood-dk); transition: color 0.2s;
}
.cp-money small { font-size: 11px; margin-left: 2px; }
.cp-money.up { animation: moneyUp 0.7s; }
.cp-money.down { animation: moneyDown 0.7s; }
@keyframes moneyUp { 0% { color: #3f8f2a; transform: scale(1.08); } 100% { color: var(--wood-dk); transform: none; } }
@keyframes moneyDown { 0% { color: var(--red); transform: scale(0.96); } 100% { color: var(--wood-dk); } }
/* 기력·물: 이름 · 막대 · 숫자(막대 밖, 12px 진한 글씨) */
.stat { display: flex; align-items: center; gap: 5px; }
.stat .lbl { flex: none; width: 26px; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.stat em { flex: none; min-width: 46px; text-align: right; font-size: 12px; font-weight: 700; font-style: normal; color: var(--ink); }
.bar { position: relative; flex: 1; height: 12px; border: 2px solid var(--wood-dk); border-radius: 3px; background: #3b2a1e; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transition: width 0.25s; }
.stat.energy .bar i { background: linear-gradient(180deg, #9fd45a, #5f9a2a); }
.stat.energy.low .bar i { background: linear-gradient(180deg, #f08a5a, #c4503a); animation: blink 0.9s infinite; }
.stat.energy.low em { color: var(--red); }
.stat.water .bar i { background: linear-gradient(180deg, #8fd0ff, #3f8ccc); }
@keyframes blink { 50% { opacity: 0.55; } }
.mail-dot {
  position: absolute; right: -9px; top: -9px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); color: #fff; font-style: normal; font-size: 13px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--wood-dk); animation: bob 1.2s ease-in-out infinite; pointer-events: none;
}
@keyframes bob { 50% { transform: translateY(-3px); } }
.goal {
  display: flex; align-items: flex-start; gap: 6px; max-width: 100%; padding: 5px 9px; text-align: left;
  background: rgba(247, 237, 213, 0.94); border: 2px solid var(--wood-dk); border-radius: 6px; box-shadow: 0 2px 0 rgba(30, 16, 6, 0.4);
  color: var(--ink); font-size: 12px; line-height: 1.35;
}
.goal-ico { flex: none; }
.goal-body { display: flex; flex-direction: column; min-width: 0; }
.goal-body b { font-size: 12px; overflow-wrap: anywhere; word-break: keep-all; }
.goal-body small { font-size: 11px; color: var(--ink-2); overflow-wrap: anywhere; word-break: keep-all; }
.goal-body small:empty { display: none; }
.goal.collapsed { padding: 4px 7px; }
.goal.collapsed .goal-body { display: none; }

/* ── 도구막대 ── */
.hotbar-wrap {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(8px + var(--safe-b)); z-index: 30;
  display: flex; align-items: flex-end; gap: 8px; max-width: calc(100vw - 16px);
}
.hotbar {
  display: flex; gap: 3px; padding: 5px; background: var(--wood); border: 3px solid var(--wood-dk); border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--wood-md), var(--shadow); overflow-x: auto; scrollbar-width: none; touch-action: pan-x;
}
.hotbar::-webkit-scrollbar { display: none; }
.slot {
  position: relative; flex: none; width: 46px; height: 46px; padding: 0;
  background: var(--hanji-2); border: 2px solid var(--wood-dk); border-radius: 4px; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.12);
}
.slot img { width: 32px; height: 32px; image-rendering: pixelated; display: block; margin: auto; pointer-events: none; }
.slot .key { position: absolute; left: 2px; top: 0; font-size: 11px; line-height: 1.1; color: var(--ink); font-weight: 700; opacity: 0.75; }
.slot .n { position: absolute; right: 2px; bottom: 0; font-size: 11px; color: #fff; text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000; }
.slot .q { position: absolute; left: 2px; bottom: 1px; font-size: 10px; font-style: normal; }
.slot .q1::after { content: '★'; color: var(--silver); text-shadow: 0 0 1px #000, 0 1px 0 #000; }
.slot .q2::after { content: '★'; color: var(--gold); text-shadow: 0 0 1px #000, 0 1px 0 #000; }
.slot.on { border-color: #fff4c0; box-shadow: 0 0 0 2px var(--persimmon), inset 0 0 0 2px var(--persimmon); background: #fff7dd; }

/* ── 토스트(패널·미니게임 위) ── */
#toasts {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + var(--safe-t)); z-index: 1200;
  display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; width: min(92vw, 420px);
}
.toast {
  display: flex; align-items: center; gap: 6px; padding: 5px 12px; max-width: 100%;
  background: rgba(61, 38, 22, 0.94); color: var(--hanji); border: 2px solid #22140a; border-radius: 6px;
  font-size: 13px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); animation: toastIn 0.25s ease-out; transition: opacity 0.4s, transform 0.4s;
}
.toast img { width: 24px; height: 24px; image-rendering: pixelated; }
.toast.item { background: rgba(250, 240, 212, 0.97); color: var(--ink); border-color: var(--wood-dk); }
.toast.gold { background: linear-gradient(135deg, #f0a03a, #d9692a); color: #fff; }
.toast.heart { background: #ffe1e8; color: #8a2a40; border-color: #8a2a40; }
.toast.out { opacity: 0; transform: translateY(-6px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 하트 이벤트 레터박스: 위아래 검은 띠, 그동안 HUD·조작부는 숨김 ── */
#letterbox { position: fixed; inset: 0; z-index: 1040; pointer-events: none; }
#letterbox i { position: absolute; left: 0; right: 0; height: 0; background: #0c0806; transition: height 0.45s ease; }
#letterbox .lb-top { top: 0; }
#letterbox .lb-bot { bottom: 0; }
body.scene #letterbox i { height: 11vh; }
body.scene #hud, body.scene #touchUi, body.scene .home-btn, body.scene #btnSound { visibility: hidden; }
body.scene #dialog { padding-bottom: calc(11vh + 8px); }

/* ── 대화창: 열려 있는 동안 화면 전체가 눌림(바깥을 눌러도 넘어감), 패널(1000) 위·미니게임(1100) 아래 ── */
#dialog { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: flex-end; justify-content: center; padding: 0 8px calc(76px + var(--safe-b)); cursor: pointer; }
.dlg-box {
  position: relative; pointer-events: auto; width: min(760px, 100%); min-height: 132px; padding: 14px 16px 18px;
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
}
.dlg-box.narr .dlg-text { font-style: italic; color: var(--ink-2); }
.dlg-title {
  position: absolute; left: 50%; top: -16px; transform: translateX(-50%); padding: 4px 14px; white-space: nowrap;
  background: #ffe1e8; color: #8a2a40; border: 2px solid #8a2a40; border-radius: 4px; font-weight: 700; font-size: 13px;
}
.dlg-portrait {
  flex: none; padding: 4px; background: #d9c39a; border: 3px solid var(--wood-dk); border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--wood-lt);
}
.dlg-portrait canvas { display: block; image-rendering: pixelated; background: linear-gradient(180deg, #f3e5c4, #e0c896); }
.dlg-body { flex: 1; min-width: 0; }
.dlg-name {
  display: inline-block; margin-bottom: 6px; padding: 2px 10px; background: var(--wood); color: var(--hanji);
  border: 2px solid var(--wood-dk); border-radius: 4px; font-weight: 700;
}
.dlg-name small { font-size: 12px; font-weight: 400; color: #f0dcb8; }
#dialog.choosing { cursor: default; }
.dlg-text { margin: 0; font-size: 16px; line-height: 1.6; min-height: 3.2em; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.dlg-next { position: absolute; right: 14px; bottom: 6px; color: var(--persimmon-dk); animation: bob 0.8s ease-in-out infinite; }
.dlg-choices { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.dlg-choice {
  display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 12px; min-height: 40px;
  background: var(--hanji); border: 2px solid var(--wood-md); border-radius: 4px; font-size: 15px;
}
.dlg-choice .num { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; background: var(--wood); color: var(--hanji); border-radius: 3px; font-size: 11px; }
.dlg-choice.on, .dlg-choice:hover { background: #fff3cf; border-color: var(--persimmon); }

/* ── 모바일 조작부 ── */
#touchUi { position: fixed; inset: 0; z-index: 25; pointer-events: none; }
#stickZone {
  position: absolute; left: 0; bottom: calc(70px + var(--safe-b)); width: 52vw; height: 40vh; max-height: 300px;
  pointer-events: auto; touch-action: none;
}
#stickBase {
  position: absolute; left: 90px; top: calc(100% - 90px); width: 104px; height: 104px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(247, 237, 213, 0.22); border: 3px solid rgba(61, 38, 22, 0.55);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18); transition: opacity 0.2s; opacity: 0.6;
}
#stickBase.on { opacity: 1; transition: none; }
#stickKnob {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 40% 35%, #c99863, var(--wood)); border: 3px solid var(--wood-dk);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.stick-hint { position: absolute; left: 90px; bottom: 6px; transform: translateX(-50%); font-size: 10px; color: rgba(255, 245, 220, 0.75); text-shadow: 0 1px 0 #000; white-space: nowrap; }
#btnAct {
  position: absolute; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(90px + var(--safe-b));
  width: 84px; height: 84px; border-radius: 50%; pointer-events: auto; touch-action: none;
  background: radial-gradient(circle at 40% 35%, #ffd9a0, var(--persimmon)); border: 4px solid var(--wood-dk);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.22), 0 4px 0 rgba(0, 0, 0, 0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0;
}
#btnAct.down { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22), 0 2px 0 rgba(0, 0, 0, 0.4); }
#btnAct.idle { filter: saturate(0.6); }
#btnAct img { width: 40px; height: 40px; image-rendering: pixelated; pointer-events: none; }
#btnActLabel { font-size: 11px; font-weight: 700; color: var(--wood-dk); pointer-events: none; }
#btnAct.noicon #btnActLabel { font-size: 16px; }

/* ── 버튼 공통 ── */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 42px; padding: 8px 18px; background: var(--hanji); color: var(--ink);
  border: 3px solid var(--wood-dk); border-radius: 6px; font-weight: 700; font-size: 15px;
  box-shadow: inset 0 -4px 0 rgba(61, 38, 22, 0.18), 0 3px 0 rgba(30, 16, 6, 0.45);
}
.btn:hover { background: #fff6dc; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(61, 38, 22, 0.18), 0 1px 0 rgba(30, 16, 6, 0.45); }
.btn.alt { background: var(--leaf); color: #fff; border-color: #2f4a17; }
.btn.alt:hover { background: #7fb046; }
.btn.danger { background: var(--red); color: #fff; border-color: #5a1c10; }
.btn.big { width: 100%; min-height: 54px; font-size: 18px; }

/* ── 시작 화면 ── */
#title {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(27, 20, 14, 0.05) 30%, rgba(27, 20, 14, 0.55) 100%);
}
.tt-card { width: min(420px, 100%); padding: 22px 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.tt-logo {
  margin: 0; font-size: 34px; line-height: 1.15; color: var(--leaf-dk); font-weight: 700;
  text-shadow: 2px 2px 0 #fff4d6, 4px 4px 0 rgba(61, 38, 22, 0.35); letter-spacing: 1px;
}
.tt-logo small { display: block; font-size: 13px; color: var(--persimmon-dk); text-shadow: none; letter-spacing: 3px; margin-bottom: 4px; }
.tt-main, .tt-name, .tt-confirm { display: flex; flex-direction: column; gap: 10px; }
.tt-save { font-size: 12px; font-weight: 400; color: var(--ink-2); }
.tt-help { margin: 2px 0 0; font-size: 12px; color: var(--ink-2); }
.tt-broken { margin: 0; padding: 8px; font-size: 12px; background: #fde2d8; border: 2px solid var(--red); border-radius: 4px; color: #7a2a1a; }
.tt-name label { font-weight: 700; }
.tt-name input {
  font: inherit; font-size: 18px; text-align: center; padding: 10px; border: 3px solid var(--wood-dk); border-radius: 6px;
  background: #fffaf0; color: var(--ink); -webkit-user-select: text; user-select: text; touch-action: manipulation;
}
.tt-row { display: flex; gap: 10px; justify-content: center; }
.tt-row .btn { flex: 1; }

/* ── 로딩·오류 ── */
#loading { position: fixed; inset: 0; z-index: 1900; display: flex; align-items: center; justify-content: center; background: #1b140e; }
.ld-card { padding: 14px 22px; font-size: 16px; }
#err { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 12, 6, 0.85); }
.err-card { width: min(420px, 100%); padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.err-card h2 { margin: 0; color: var(--red); }
.err-card p { margin: 0; line-height: 1.5; word-break: keep-all; }
.err-card .tt-row { flex-wrap: wrap; }
.err-home { color: var(--wood); font-size: 13px; }
.noscript { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--hanji); text-align: center; }

/* ── 좁은 화면(폰 세로) ── */
@media (max-width: 760px) {
  .home-txt { display: none; }
  #btnSound { left: 56px; }
  #btnMenu { left: 102px; }
  #btnMap { left: 148px; }
  .right-col { gap: 4px; }
  .clock-panel { min-width: 150px; padding: 5px 8px 6px; }
  .cp-time { font-size: 14px; }
  .cp-time canvas { width: 24px; height: 24px; }
  .goal { font-size: 11px; padding: 4px 7px; }
  .goal-body b { font-size: 11px; }
  .goal-body small { display: none; }
  /* 토스트는 시계 패널을 피해 왼쪽 위 버튼 줄 아래에 */
  #toasts { left: 8px; transform: none; top: calc(54px + var(--safe-t)); width: calc(100vw - 186px); align-items: flex-start; }
  .hotbar-wrap { left: 6px; right: 6px; transform: none; bottom: calc(6px + var(--safe-b)); max-width: none; gap: 6px; }
  /* 도구막대: 칸 44px, 넘겨 볼 수 있다는 표시로 양 끝을 흐리게 */
  .hotbar {
    flex: 1; min-width: 0; padding: 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
  }
  .slot { width: 44px; height: 44px; }
  .hud-btn.wide { flex-direction: column; height: 56px; min-width: 48px; gap: 0; padding: 0 4px; font-size: 16px; }
  .hud-btn.wide span { font-size: 11px; }
  #dialog { padding-bottom: calc(68px + var(--safe-b)); }
  .dlg-box { min-height: 120px; padding: 12px 12px 18px; gap: 10px; }
  .dlg-text { font-size: 15px; }
  .tt-logo { font-size: 30px; }
}

/* ── 손가락 입력: 누르는 곳은 44px 이상 ── */
@media (pointer: coarse) {
  .home-btn, .hud-btn { min-height: 44px; min-width: 44px; height: 44px; }
  .home-btn { justify-content: center; }
  #btnSound { left: 60px; }
  #btnMenu { left: 112px; }
  #btnMap { left: 164px; }
  #view { cursor: default; }
}
@media (pointer: coarse) and (min-width: 761px) {
  #btnSound { left: 150px; }
  #btnMenu { left: 202px; }
  #btnMap { left: 254px; }
}
/* 좁은 화면: 시계 패널이 왼쪽 위 버튼 줄(터치면 🗺 끝 208px)을 넘지 않게, 장날·축제 표시는 날짜 아래 줄로 */
@media (max-width: 760px) {
  .right-col { max-width: calc(100vw - 216px - env(safe-area-inset-right, 0px)); }
  .clock-panel { min-width: 0; }
  .cp-date { flex-wrap: wrap; row-gap: 0; }
  .cp-date b { white-space: nowrap; }
  .cp-market { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}

/* ── 가로 폰(높이 500 이하): 대화창을 낮고 좁게, 행동 버튼 왼쪽에 ── */
@media (max-height: 500px) {
  #dialog { justify-content: flex-start; padding: 0 0 calc(8px + var(--safe-b)) calc(8px + env(safe-area-inset-left, 0px)); }
  .dlg-box { min-height: 0; width: min(620px, calc(100% - 130px)); padding: 10px 12px 14px; gap: 10px; }
  .dlg-text { font-size: 14px; line-height: 1.5; min-height: 0; }
  .dlg-choice { min-height: 36px; padding: 6px 10px; font-size: 14px; }
  .right-col { flex-direction: row; align-items: flex-start; max-width: none; }
  .goal { max-width: 220px; }
  .clock-panel { padding: 4px 8px 5px; gap: 2px; }
  .cp-time canvas { width: 22px; height: 22px; }
  .cp-money { font-size: 13px; padding: 1px 6px; }
  #stickZone { bottom: calc(64px + var(--safe-b)); height: 55vh; }
  #btnAct { bottom: calc(76px + var(--safe-b)); width: 76px; height: 76px; }
}
