/* ============================================================
   신앙 정원 — 화면 스타일 (점토·파스텔, modu/style.css clay 토큰을 --g- 접두사로)
   · 데스크톱(≥1001px): position:fixed 격자 "study plot rail" / "bar bar bar", 장면은 뒤 전체
   · 태블릿(761~1000px): 장면 52dvh 위 고정 + 패널 2열
   · 폰(≤760px): 1열, 장면 56dvh, 하단 탭바(safe-area), 모달은 시트
   · 모든 조작 ≥44px, overflow-x hidden, prefers-reduced-motion 이면 시차·흔들림·입자 끔
   ============================================================ */
:root {
  --g-bg: #F6EFE5; --g-panel: #FFFAF3; --g-panel2: #F3EADF; --g-line: #EADFD0; --g-line2: #F0E6D9;
  --g-fg: #4A3B31; --g-fg2: #7C6A5D; --g-fg3: #A39282;
  --g-accent: #B5553A; --g-accent-bg: #FBE6DC; --g-mark: #F8DD8E;
  --g-coral: #E9805F; --g-coral-h: #DF7454; --g-coral-p: #CC6546; --g-coral-ring: rgba(233,128,95,.20);
  --g-sage: #D4E5D9; --g-sage-line: #C2D8C8; --g-sage-ink: #4F6455; --g-pill: #FFF9F0; --g-soft: #FBF4EA;
  --g-mint: #D6EBDD; --g-peach: #F9DDD0; --g-butter: #FBEBC4; --g-sky: #D7E4F1; --g-pink: #F8DEE5; --g-lilac: #E6DEF2;
  --g-shadow: 0 8px 22px rgba(185,164,140,.28), 0 1px 0 rgba(255,255,255,.65) inset;
  --g-shadow2: 0 24px 56px rgba(150,118,88,.30), 0 1px 0 rgba(255,255,255,.7) inset;
  --g-shadow-s: 0 3px 9px rgba(185,164,140,.26), 0 1px 0 rgba(255,255,255,.7) inset;
  --g-r: 22px; --g-r2: 26px; --g-pill-r: 999px;
  --g-font: "Pretendard", "Noto Sans KR", "맑은 고딕", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --g-hdr: 72px; --g-bar: 64px; --g-panel-w: 340px;
}

/* ===== 바탕·머리글 ===== */
body.garden { background: var(--g-bg); color: var(--g-fg); font-family: var(--g-font); overflow-x: hidden; }
body.garden .footer, body.garden .install-bar { display: none !important; }
body.garden #header { transition: background .4s ease, box-shadow .4s ease; }
body.garden #header.scrolled { background: rgba(246,239,229,.78); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 rgba(74,59,49,.08); }
body.garden #header.scrolled .logo-kr { color: var(--g-fg); }
body.garden #header.scrolled .nav-menu a { color: var(--g-fg); }
body.garden #header.scrolled .hdr-dash-btn { color: var(--g-fg); background: rgba(74,59,49,.06); border-color: rgba(74,59,49,.18); }
body.garden #header.scrolled .auth-btn, body.garden #header.scrolled a.auth-name { color: var(--g-fg) !important; border-color: var(--g-line); background: var(--g-pill); }
body.g-modal-open { overflow: hidden; }
body.garden [hidden] { display: none !important; }
.g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== 격자(데스크톱) ===== */
.g-root { position: relative; min-height: 100dvh; }
.g-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #b9dcf6; }
.g-panel {
  position: fixed; top: calc(var(--g-hdr) + 12px); bottom: calc(var(--g-bar) + 24px); width: var(--g-panel-w); z-index: 2;
  background: var(--g-panel); border-radius: var(--g-r2); box-shadow: var(--g-shadow); padding: 18px 18px 22px;
  overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch;
}
.g-study { left: 16px; }
.g-study.has-shelf { background: var(--g-shelf) center / cover no-repeat; }
.g-study.has-shelf > * { position: relative; z-index: 1; }
/* 책장 벽이 보이게(참고 그림의 왼쪽 서재) — 위쪽만 살짝 밝혀 제목을 읽게 하고, 카드·단추는 제 바탕을 갖는다 */
.g-study.has-shelf::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,250,243,.62) 0, rgba(255,250,243,.18) 110px, rgba(255,250,243,0) 45%); }
.g-study.has-shelf .g-ptitle { display: inline-block; background: rgba(255,250,243,.88); padding: 4px 10px; border-radius: 999px; color: var(--g-fg2); }
.g-study.has-shelf .g-link { background: rgba(255,250,243,.92); box-shadow: var(--g-shadow-s, 0 3px 9px rgba(185,164,140,.26)); }
.g-rail { right: 16px; transition: transform .3s ease; }
/* 오른쪽 메뉴 손잡이: 메뉴 왼쪽 가장자리에 붙어 있고, 숨기면 메뉴는 오른쪽 밖으로, 손잡이는 화면 오른쪽 끝으로 */
.g-rail-tog { position: fixed; z-index: 3; top: 50%; right: calc(16px + var(--g-panel-w)); width: 26px; height: 64px; margin-top: -32px; padding: 0; border: 1px solid var(--g-line2); border-right: 0;
  border-radius: 12px 0 0 12px; background: var(--g-panel); box-shadow: -4px 4px 12px rgba(80,60,40,.12); cursor: pointer; transition: right .3s ease; }
.g-rail-tog-ic { display: block; width: 8px; height: 8px; margin: 0 auto; border-right: 2px solid var(--g-fg2); border-top: 2px solid var(--g-fg2); transform: translateX(-1px) rotate(45deg); }
.g-root.is-rail-hidden .g-rail { transform: translateX(calc(100% + 24px)); }
.g-root.is-rail-hidden .g-rail-tog { right: 0; }
.g-root.is-rail-hidden .g-rail-tog-ic { transform: translateX(2px) rotate(-135deg); }
.g-root[data-mode="gate"] .g-rail-tog, .g-root[data-mode="loading"] .g-rail-tog { display: none; }
@media (max-width: 1000px) { .g-rail-tog { display: none; } .g-root.is-rail-hidden .g-rail { transform: none; } }
.g-root[data-mode="gate"] .g-panel, .g-root[data-mode="gate"] .g-bar, .g-root[data-mode="gate"] .g-banner { display: none; }
.g-root[data-mode="loading"] .g-panel, .g-root[data-mode="loading"] .g-bar { visibility: hidden; }
.g-root[data-mode="loading"]::after {
  content: ""; position: fixed; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 6;
  border-radius: 50%; border: 5px solid rgba(255,255,255,.6); border-top-color: var(--g-coral); animation: g-spin 1s linear infinite;
}
@keyframes g-spin { to { transform: rotate(360deg); } }

/* ===== 패널 공통 ===== */
.g-ptitle { font-size: .82rem; font-weight: 800; letter-spacing: .08em; color: var(--g-fg3); margin: 2px 0 12px; text-transform: uppercase; }
.g-stitle { font-size: .95rem; font-weight: 800; color: var(--g-fg); margin: 20px 0 10px; }
.g-empty { color: var(--g-fg3); font-size: .88rem; line-height: 1.6; margin: 8px 0; }
.g-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--g-soft); color: var(--g-fg2); font-size: .86rem; font-weight: 600; margin: 6px 6px 0 0; user-select: none; }
.g-link:hover { background: var(--g-panel2); color: var(--g-fg); }
.g-study-links { margin-top: 14px; }
.g-forms { margin-top: 12px; display: grid; gap: 8px; }
.g-forms[hidden] { display: none; }
.g-forms-t { margin: 0; justify-self: start; padding: 6px 14px; border-radius: 999px; background: rgba(255,250,243,.96); border: 1px solid var(--g-line2); box-shadow: var(--g-shadow-s); font-size: .86rem; font-weight: 800; color: var(--g-fg); }   /* 책장 그림 위에서도 읽히게 */
.g-form-card { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--g-r); background: var(--g-peach, #fbe3da); border: 1px solid var(--g-line2); text-decoration: none; color: var(--g-fg); box-shadow: var(--g-shadow-s); }
.g-form-card.is-mine { border-color: #3f7d4e; box-shadow: 0 0 0 2px rgba(63,125,78,.35), var(--g-shadow-s); }
.g-form-badge { justify-self: start; padding: 3px 10px; border-radius: 999px; background: #3f7d4e; color: #fff; font-size: .76rem; font-weight: 800; }
.g-form-name { font-size: .98rem; line-height: 1.4; word-break: keep-all; }
.g-form-when, .g-form-until { font-size: .8rem; color: var(--g-fg2); }
.g-form-until { font-weight: 700; color: var(--g-coral-p, #b5523a); }
.g-form-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.g-form-go, .g-form-pay { padding: 8px 14px; min-height: 36px; border-radius: 999px; font-size: .84rem; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; }
.g-form-go { background: var(--g-coral, #e9805f); color: #fff; }
.g-form-pay { background: #fff; color: var(--g-coral-p, #b5523a); border: 1.5px solid var(--g-coral, #e9805f); }
.g-form-pay.is-claimed { background: #3f7d4e; border-color: #3f7d4e; color: #fff; }
.g-form-go:focus-visible, .g-form-pay:focus-visible { outline: 3px solid var(--g-coral-ring, rgba(233,128,95,.35)); outline-offset: 2px; }

/* 단추 */
.g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; user-select: none;
  transition: background .2s, transform .15s, box-shadow .2s; -webkit-tap-highlight-color: transparent;
}
.g-btn:active { transform: translateY(1px); }
.g-btn-primary { background: var(--g-coral); color: #fff; box-shadow: var(--g-shadow-s); }
.g-btn-primary:hover { background: var(--g-coral-h); }
.g-btn-line { background: var(--g-pill); color: var(--g-fg); border-color: var(--g-sage-line); }
.g-btn-line:hover { background: var(--g-sage); color: var(--g-sage-ink); }
.g-btn[disabled] { opacity: .55; cursor: default; transform: none; }
.g-btn:focus-visible, .g-tab:focus-visible, .g-pill:focus-visible, .g-todo-btn:focus-visible, .g-mclose:focus-visible, .g-seed:focus-visible, .g-banner:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }

/* ===== 서재: 큐티 카드 ===== */
.g-qtcard { background: var(--g-soft); border: 1px solid var(--g-line2); border-radius: var(--g-r); padding: 16px 16px 14px; box-shadow: var(--g-shadow-s); }
.g-qt-badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--g-accent); background: var(--g-accent-bg); border-radius: 999px; padding: 4px 10px; }
.g-qt-title { font-family: "Noto Serif KR", serif; font-size: 1.12rem; line-height: 1.45; margin: 10px 0 4px; color: var(--g-fg); word-break: keep-all; }
.g-qt-ref { color: var(--g-fg2); font-size: .88rem; margin: 0 0 12px; }
.g-qt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.g-qt-actions .g-btn { flex: 1 1 auto; }
.g-qt-done { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--g-mint); color: var(--g-sage-ink); font-weight: 700; font-size: .88rem; text-align: center; }

/* ===== 레일 ===== */
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.g-pill, .g-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--g-pill); border: 1px solid var(--g-line); color: var(--g-fg); font-size: .9rem; font-weight: 600; user-select: none;
}
.g-pill { cursor: pointer; font: inherit; font-weight: 800; box-shadow: var(--g-shadow-s); background: var(--g-butter); border-color: #f1dca2; }
.g-pill:hover { background: #fde6ad; }
.g-pill b { font-size: 1.05rem; }
.g-pill-unit { font-weight: 600; color: var(--g-fg2); font-size: .82rem; }
.g-chip-wx { background: var(--g-sky); border-color: #c5d7ea; }
.g-chip-streak { background: var(--g-peach); border-color: #f1c9b8; }
.g-chip-off { background: var(--g-panel2); color: var(--g-fg2); font-size: .8rem; }
.g-chip-ic, .g-pill-ic { font-size: 1.05rem; line-height: 1; }

.g-todo-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.g-todo-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px 6px 8px; border-radius: 16px;
  border: 1px solid var(--g-line2); background: var(--g-soft); color: var(--g-fg); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; user-select: none;
  transition: background .2s;
}
.g-todo-btn:hover { background: var(--g-panel2); }
.g-todo-chk { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--g-sage-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 900; color: #fff; }
.g-todo-item.is-done .g-todo-chk { background: #4FA374; border-color: #4FA374; }
.g-todo-item.is-done .g-todo-label { color: var(--g-fg3); text-decoration: line-through; }
.g-todo-label { flex: 1 1 auto; font-weight: 600; }
.g-todo-xp { flex: 0 0 auto; font-size: .76rem; font-weight: 800; color: var(--g-accent); background: var(--g-accent-bg); border-radius: 999px; padding: 4px 9px; }
.g-todo-rw { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.g-todo-tal { font-size: .76rem; font-weight: 800; color: #8A6A1E; background: var(--g-butter); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.g-todo-rw .g-todo-xp { white-space: nowrap; }
.g-todo-label small { display: block; margin-top: 2px; font-size: .74rem; font-weight: 600; color: var(--g-fg3); text-decoration: none; }
.g-todo-item.is-done .g-todo-tal { opacity: .7; }
.g-todo-item.is-done .g-todo-xp { color: var(--g-sage-ink); background: var(--g-mint); }

.g-grow-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .86rem; }
.g-grow-stage { font-weight: 800; }
.g-grow-xp { color: var(--g-fg2); font-variant-numeric: tabular-nums; }
.g-bar-track { height: 14px; margin: 8px 0 6px; border-radius: 999px; background: var(--g-panel2); overflow: hidden; box-shadow: inset 0 1px 3px rgba(120,90,60,.12); }
.g-bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #a9d6a8, #4FA374); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.g-grow-done { font-size: .8rem; color: var(--g-fg3); margin: 0; }
.g-grow-mine { font-size: .84rem; color: var(--g-fg2); margin: 4px 0 0; line-height: 1.55; word-break: keep-all; }
.g-grow-mine[hidden] { display: none; }
/* 꽃·나무 자람 게이지(내 식물) — 담담하게 한 색 */
.g-gauges { display: grid; gap: 8px; margin: 8px 0 0; }
.g-gauges[hidden] { display: none; }
.g-gauge-n { font-size: .84rem; font-weight: 700; color: var(--g-fg); }
.g-gauge-track { height: 8px; margin-top: 4px; border-radius: 999px; background: var(--g-panel2); overflow: hidden; }
.g-gauge-fill { height: 100%; border-radius: 999px; background: #7fae84; }

/* ===== 예배 띠 ===== */
.g-banner {
  position: fixed; top: calc(var(--g-hdr) + 14px); left: 50%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: calc(100% - 2 * (var(--g-panel-w) + 40px));
  padding: 8px 14px 8px 18px; border-radius: 999px; background: rgba(74,59,49,.92); color: #fff; font-size: .9rem; font-weight: 700;
  box-shadow: var(--g-shadow); user-select: none; white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.g-banner[hidden] { display: none; }
.g-preach { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px;
  border-radius: 999px; background: #2f5d8a; color: #fff; font-size: .9rem; font-weight: 800; text-decoration: none; box-shadow: var(--g-shadow); white-space: nowrap; }
.g-preach small { font-size: .74rem; font-weight: 600; opacity: .85; }
.g-bcast { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px;
  border: 0; border-radius: 999px; background: #5b3a8a; color: #fff; font: inherit; font-size: .9rem; font-weight: 800; box-shadow: var(--g-shadow); white-space: nowrap; cursor: pointer; }
.g-bcast[hidden] { display: none; }
.g-bcast:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
.g-root[data-mode="gate"] .g-bcast { display: none; }
/* 예배 띠 아래 단추 묶음 — 종료·방송실·설교하기가 함께 뜨면 가운데에서 나란히(좁으면 다음 줄) */
.g-pills { position: fixed; top: calc(var(--g-hdr) + 72px); left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: calc(100% - 2 * (var(--g-panel-w) + 40px)); }
.g-pills .g-preach small { display: none; }
.g-end { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: #8a2f2f; color: #fff; font: inherit; font-size: .9rem; font-weight: 800; box-shadow: var(--g-shadow); white-space: nowrap; cursor: pointer; }
.g-end.is-undo { background: #fff; color: #8a2f2f; border: 1.5px solid #8a2f2f; font-weight: 700; }
.g-end[hidden] { display: none; }
.g-end:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
.g-end.is-busy { opacity: .6; pointer-events: none; }
.g-end.is-sure, .g-bc-end.is-sure { background: #c0392b; color: #fff; border-color: #c0392b; animation: g-pulse 1s ease-in-out infinite; }
.g-bcast.is-next { background: #2f7d4e; animation: g-pulse 2s ease-in-out infinite; }   /* 1부가 끝나 2부 카운트다운을 열 수 있을 때 */
.g-root[data-mode="gate"] ~ .g-pills, .g-root[data-mode="gate"] .g-end { display: none; }
/* 방송실 전체 화면 카운트다운 */
.g-bc { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4vh 4vw; color: #fff;
  background: radial-gradient(ellipse at 50% 30%, #5a3d2a 0%, #3a281c 55%, #241810 100%); cursor: none; }
.g-bc.is-live { background: radial-gradient(ellipse at 50% 30%, #b5523a 0%, #7d3a28 55%, #3a1d14 100%); }
.g-bc-end { position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); min-height: 48px; padding: 10px 26px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; opacity: 0; transition: opacity .3s; }
.g-bc:hover .g-bc-end, .g-bc-end:focus-visible { opacity: 1; }
.g-bc-end[hidden] { display: none; }
.g-bc-end.is-busy { pointer-events: none; opacity: .5; }
.g-bc-x { position: absolute; top: 2vh; right: 2vw; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.3rem; cursor: pointer; opacity: 0; transition: opacity .3s; }
.g-bc:hover .g-bc-x, .g-bc-x:focus-visible { opacity: 1; cursor: pointer; }
.g-bc:hover { cursor: default; }
.g-bc-eye { margin: 0; font-size: 1.5vw; letter-spacing: .3em; opacity: .75; }
.g-bc-title { margin: 2.2vh 0 0; font-size: 6.6vw; line-height: 1.25; font-weight: 800; word-break: keep-all; }
.g-bc-sub { margin: 2.4vh 0 0; font-size: 2.1vw; opacity: .9; }
.g-bc-sermon { margin: 1.8vh 0 0; font-size: 2.3vw; opacity: .9; }
.g-bc-sermon:empty { display: none; }
.g-bc-count { display: flex; justify-content: center; gap: 4.5vw; margin-top: 5vh; font-variant-numeric: tabular-nums; }
.g-bc-count[hidden] { display: none; }
.g-bc-count span { font-size: 1.7vw; opacity: .8; }
.g-bc-count b { display: block; font-size: 11vw; line-height: 1.05; font-weight: 800; opacity: 1; }
@media (max-width: 700px) { .g-bc-eye { font-size: 3.4vw; } .g-bc-title { font-size: 11vw; } .g-bc-sub { font-size: 4vw; } .g-bc-sermon { font-size: 4.2vw; } .g-bc-count span { font-size: 3.4vw; } .g-bc-count b { font-size: 19vw; } }
.g-preach[hidden] { display: none; }
/* 설교하기 단추가 예배 띠 아래 한 줄을 차지하면 그 아래 줄(정원 들어가기·날씨·돌리기·알림)을 한 줄만큼 내린다 — 태블릿·PC (폰은 위 규칙대로 띠 아래) */
@media (min-width: 761px) {
  body.g-has-banner.g-has-pill .g-wx-float { top: calc(var(--g-hdr) + 128px); }
  body.g-has-banner.g-has-pill .g-rotate { top: calc(var(--g-hdr) + 128px); }
  body.g-has-banner.g-has-pill .g-toast { top: calc(var(--g-hdr) + 132px); }
}
@media (min-width: 1001px) and (max-width: 1279px) { body.g-has-banner.g-has-pill .g-rotate { top: calc(var(--g-hdr) + 182px); } }
.g-preach:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
.g-root[data-mode="gate"] .g-preach { display: none; }
.g-banner.is-live { background: var(--g-coral); animation: g-pulse 2.4s ease-in-out infinite; }
.g-banner.is-busy { opacity: .7; pointer-events: none; }
.g-bn-c { font-variant-numeric: tabular-nums; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.g-bn-go { font-size: 1.3rem; line-height: 1; opacity: .8; }
@keyframes g-pulse { 0%, 100% { box-shadow: 0 8px 22px rgba(185,164,140,.28), 0 0 0 0 rgba(233,128,95,.45); } 50% { box-shadow: 0 8px 22px rgba(185,164,140,.28), 0 0 0 10px rgba(233,128,95,0); } }

/* ===== 하단 바 ===== */
.g-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4;
  display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(255,250,243,.9); box-shadow: var(--g-shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.g-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 16px;
  border-radius: 999px; border: 0; background: transparent; color: var(--g-fg2); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; user-select: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.g-tab:hover { background: var(--g-soft); color: var(--g-fg); }
.g-tab.is-on { background: var(--g-sage); color: var(--g-sage-ink); }
.g-tab-ic { font-size: 1.05rem; line-height: 1; }

/* ===== 안내판 ===== */
.g-gate { position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(74,59,49,.16); }
.g-gate[hidden] { display: none; }
.g-gate-box { width: 100%; max-width: 420px; background: var(--g-panel); border-radius: var(--g-r2); padding: 30px 26px 26px; text-align: center; box-shadow: var(--g-shadow2); }
.g-gate-ic { font-size: 2.4rem; line-height: 1; }
.g-gate-t { font-family: "Noto Serif KR", serif; font-size: 1.3rem; margin: 12px 0 6px; word-break: keep-all; }
.g-gate-m { color: var(--g-fg2); font-size: .92rem; line-height: 1.65; margin: 0 0 18px; word-break: keep-all; }
.g-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ===== 모달 공통 ===== */
.g-modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 24px; }
.g-modal[hidden] { display: none; }
.g-backdrop { position: absolute; inset: 0; background: rgba(74,59,49,.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: g-fade .25s ease; }
.g-mbox {
  position: relative; z-index: 1; width: 100%; max-width: 520px; max-height: min(86dvh, 780px); overflow: auto; overscroll-behavior: contain;
  background: var(--g-panel); border-radius: var(--g-r2); box-shadow: var(--g-shadow2); padding: 24px 24px 22px; animation: g-pop .3s ease;
  -webkit-overflow-scrolling: touch;
}
.g-mbox-qt.is-bubble { position: fixed; margin: 0; max-width: 440px; max-height: min(78dvh, 720px); }
.g-mbox-qt.is-bubble::before { content: ""; position: absolute; left: -13px; top: 44px; border: 13px solid transparent; border-right-color: var(--g-panel); border-left: 0; }
.g-grab { display: none; }
.g-mclose { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--g-soft); color: var(--g-fg2); font-size: 1.6rem; line-height: 1; cursor: pointer; user-select: none; z-index: 2; }
.g-mclose:hover { background: var(--g-panel2); color: var(--g-fg); }
.g-mhead { padding-right: 44px; margin-bottom: 12px; }
.g-mtitle { font-family: "Noto Serif KR", serif; font-size: 1.25rem; line-height: 1.4; margin: 8px 0 4px; word-break: keep-all; }
.g-msub { color: var(--g-fg2); font-size: .88rem; margin: 0 0 10px; }
.g-mbody { font-size: .95rem; line-height: 1.8; }
.g-mfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.g-mfoot-2 { justify-content: space-between; }
.g-step { font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--g-fg3); }
@keyframes g-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes g-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes g-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 큐티 본문 */
.g-bible { background: var(--g-soft); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.g-verse { display: flex; gap: 8px; align-items: baseline; font-family: "Noto Serif KR", serif; line-height: 1.8; }
.g-vn { flex: 0 0 auto; font-size: .72rem; font-weight: 800; color: var(--g-accent); min-width: 1.4em; }
.g-qh { font-size: .82rem; font-weight: 800; letter-spacing: .06em; color: var(--g-fg3); margin: 16px 0 6px; }
.g-qb p { margin: 0 0 10px; word-break: keep-all; }
.g-amen { margin-top: 16px; }
.g-amen-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 14px; background: var(--g-mint); border: 1px solid var(--g-sage-line); color: var(--g-sage-ink); font-weight: 700; font-size: .92rem; cursor: pointer; user-select: none; }
.g-amen-row input { width: 22px; height: 22px; accent-color: #4FA374; }
.g-amen.is-busy .g-amen-row { opacity: .6; }
.g-amen-done { padding: 12px 14px; border-radius: 14px; background: var(--g-mint); color: #1e7a45; font-weight: 800; font-size: .92rem; text-align: center; }
.g-amen-err, .g-ferr { color: #c0392b; font-size: .86rem; margin: 8px 0 0; }

/* 창고 */
.g-store-bal { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--g-butter); border: 1px solid #f1dca2; font-weight: 800; }
.g-store-bal b { font-size: 1.15rem; }
.g-led-list { list-style: none; margin: 8px 0 0; padding: 0; }
.g-led { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "k x t" "d x t"; column-gap: 10px; align-items: center; min-height: 48px; padding: 8px 4px; border-bottom: 1px solid var(--g-line2); font-size: .9rem; }
.g-led-k { grid-area: k; font-weight: 700; }
.g-led-d { grid-area: d; font-size: .78rem; color: var(--g-fg3); }
.g-led-x { grid-area: x; font-weight: 800; color: var(--g-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-led-t { grid-area: t; font-weight: 700; color: var(--g-sage-ink); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 5.5em; text-align: right; }
.g-led-total { font-size: .8rem; color: var(--g-fg3); text-align: right; margin: 8px 0 0; }

/* 첫 심기 */
.g-field { display: block; margin: 0 0 14px; }
.g-flabel { display: block; font-size: .82rem; font-weight: 800; color: var(--g-fg2); margin-bottom: 6px; }
.g-field input[type="text"] { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--g-line); background: #fff; font: inherit; font-size: 1rem; color: var(--g-fg); }
.g-field input[type="text"]:focus { outline: none; border-color: var(--g-coral); box-shadow: 0 0 0 4px var(--g-coral-ring); }
/* 내 모습 만들기(avatar.js, 2026-10-25) — 넓은 화면: 왼쪽 미리보기(따라 내려옴) + 오른쪽 갈래·고르기 / 폰: 미리보기·갈래가 위에 붙어 있고 아래로 고르기 */
.g-mbox-plant { max-width: 760px; }
.g-avx { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "pv tabs" "pv panel" "pv acts"; column-gap: 18px; align-items: start; }
.g-avx-head { display: contents; }
.g-avx-pv { grid-area: pv; position: sticky; top: 0; height: 300px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--g-line2); background: linear-gradient(180deg, #fffaf3 0, #f3eadf 100%); }
.g-avx-pv img { display: block; height: 292px; width: auto; margin-bottom: -4px; user-select: none; }
.g-avx-tabs { grid-area: tabs; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.g-avx-tab { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--g-line); background: var(--g-soft); color: var(--g-fg2); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.g-avx-tab:hover { border-color: var(--g-coral); color: var(--g-fg); }
.g-avx-tab[aria-selected="true"] { background: var(--g-coral); border-color: var(--g-coral); color: #fff; }
.g-avx-panel { grid-area: panel; min-height: 220px; }
.g-avx-row { margin: 0 0 14px; }
.g-avx-lb { display: block; font-size: .8rem; font-weight: 800; color: var(--g-fg2); margin: 0 0 6px; }
.g-avx-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
.g-avx-op { display: block; aspect-ratio: 1; width: 100%; padding: 0; border-radius: 14px; border: 2px solid var(--g-line); background: #fffaf3; overflow: hidden; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: border-color .15s, transform .15s; }
.g-avx-op img { display: block; width: 100%; height: 100%; pointer-events: none; }
.g-avx-op:hover { border-color: var(--g-coral-h); }
.g-avx-op[aria-checked="true"] { border-color: var(--g-coral); box-shadow: 0 0 0 3px var(--g-coral-ring); transform: translateY(-1px); }
.g-avx-sws { display: flex; flex-wrap: wrap; gap: 8px; }
.g-avx-sw { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: var(--c, #ccc); box-shadow: 0 0 0 1.5px var(--g-line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.g-avx-sw.is-link { border-style: dashed; border-color: var(--g-fg3); }
.g-avx-sw[aria-checked="true"] { box-shadow: 0 0 0 3px var(--g-coral); }
.g-avx-rg { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
.g-avx-rg .g-avx-lb { margin: 0; }
.g-avx-val { font-size: .82rem; font-weight: 700; color: var(--g-accent); }
.g-avx-rg input[type="range"] { grid-column: 1 / -1; width: 100%; height: 40px; margin: 0; accent-color: var(--g-coral); cursor: pointer; }
.g-avx-acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 8px; }
.g-avx-note { margin: -2px 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--g-butter); color: var(--g-fg2); font-size: .82rem; line-height: 1.5; word-break: keep-all; }
.g-avx-op:focus-visible, .g-avx-sw:focus-visible, .g-avx-tab:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
@media (max-width: 760px) {
  .g-avx { display: block; }
  .g-avx-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; position: sticky; top: -18px; z-index: 3; margin: 0 -2px 10px; padding: 6px 2px 8px; background: var(--g-panel); }
  .g-avx-pv, .g-avx-tabs { grid-area: auto; }
  .g-avx-pv { position: static; height: 144px; }
  .g-avx-pv img { height: 140px; margin-bottom: -2px; }
  .g-avx-tabs { margin: 0; gap: 5px; }
  .g-avx-tab { min-height: 36px; padding: 0 10px; font-size: .8rem; }
  .g-avx-opts { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
}
.g-seeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-seed { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 96px; padding: 12px 8px; border-radius: 18px; border: 2px solid var(--g-line); background: var(--g-soft); font: inherit; color: var(--g-fg); cursor: pointer; user-select: none; text-align: center; transition: border-color .2s, transform .15s; }
.g-seed b { font-size: .9rem; }
.g-seed small { font-size: .72rem; color: var(--g-fg3); line-height: 1.4; word-break: keep-all; }
.g-seed-ic { font-size: 1.8rem; line-height: 1; }
.g-seed.is-on { border-color: var(--g-coral); background: var(--g-accent-bg); transform: translateY(-2px); }

/* ===== 토스트(하나만) ===== */
.g-toast {
  position: fixed; left: 50%; top: calc(var(--g-hdr) + 14px); transform: translateX(-50%) translateY(-12px); z-index: 300;
  max-width: min(92vw, 520px); padding: 12px 20px; border-radius: 999px; background: rgba(74,59,49,.95); color: #fff; font-size: .92rem; font-weight: 600;
  box-shadow: 0 10px 26px rgba(0,0,0,.22); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; text-align: center; word-break: keep-all;
}
.g-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
body.g-has-banner .g-toast { top: calc(var(--g-hdr) + 76px); }
.g-toast[hidden] { display: none; }

/* ============================================================
   장면 층
   ============================================================ */
.g-stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; will-change: transform; }
.g-layer { position: absolute; inset: 0; }
.g-particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.g-l-sky { overflow: visible; }
.g-sky { position: absolute; inset: -60px -100px; background-size: cover; background-position: center bottom; transition: opacity 1.4s ease; }
.g-sky-b { opacity: 0; }
.g-skytint { position: absolute; inset: -60px -100px; background: #5a6678; mix-blend-mode: multiply; opacity: 0; transition: opacity 1.4s ease; }
.g-l-stars { pointer-events: none; }
.g-star { position: absolute; border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 6px rgba(255,255,255,.9); transition: opacity 1.2s ease; }
.g-moon { position: absolute; left: 1230px; top: 96px; width: 76px; height: 76px; border-radius: 50%; background: #fff6d8; opacity: 0; transition: opacity 1.2s; box-shadow: 0 0 36px rgba(255,246,216,.55), inset -18px -8px 0 0 #2c3773; }
.g-stage[data-phase="night"] .g-star { opacity: .95; animation: g-twinkle 3.2s ease-in-out infinite; }
.g-stage[data-phase="night"] .g-moon { opacity: 1; }
.g-stage[data-phase="dawn"] .g-star { opacity: .3; }
.g-stage[data-weather="cloudy"] .g-star, .g-stage[data-weather="rain"] .g-star, .g-stage[data-weather="snow"] .g-star, .g-stage[data-weather="fog"] .g-star { opacity: 0; animation: none; }
.g-stage[data-weather="rain"] .g-moon, .g-stage[data-weather="snow"] .g-moon { opacity: .25; }
@keyframes g-twinkle { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(.6); opacity: .5; } }

.g-l-clouds { transition: opacity 1.4s ease; }
.g-clouds-img { position: absolute; left: 0; top: 0; width: 1600px; height: auto; animation: g-drift 90s linear infinite alternate; }
.g-cloud { position: absolute; width: 240px; height: 90px; animation: g-drift 80s linear infinite alternate; filter: drop-shadow(0 8px 10px rgba(80,90,120,.12)); }
.g-cloud i { position: absolute; bottom: 0; border-radius: 50%; background: #fff; }
.g-cloud i:nth-child(1) { left: 0; width: 110px; height: 60px; }
.g-cloud i:nth-child(2) { left: 50px; width: 110px; height: 110px; bottom: 0; }
.g-cloud i:nth-child(3) { left: 120px; width: 130px; height: 80px; }
.g-cloud i:nth-child(4) { left: 20px; width: 220px; height: 50px; border-radius: 30px; }
.g-stage[data-phase="night"] .g-cloud i { background: #6c76a6; }
.g-stage[data-phase="dusk"] .g-cloud i { background: #ffd9c2; }
.g-stage[data-phase="dawn"] .g-cloud i { background: #ffe1d4; }
.g-stage[data-weather="rain"] .g-cloud i, .g-stage[data-weather="cloudy"] .g-cloud i, .g-stage[data-weather="snow"] .g-cloud i { background: #e4e8ee; }
.g-stage[data-weather="rain"][data-phase="night"] .g-cloud i, .g-stage[data-weather="cloudy"][data-phase="night"] .g-cloud i { background: #4e5679; }
@keyframes g-drift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }

/* 언덕(자리표시) */
.g-l-mid, .g-l-floor { transition: filter 1.4s ease; }
.g-hills-img { position: absolute; left: 0; top: 0; width: 1600px; height: auto; }   /* 그림의 땅 선은 설계 좌표 y≈700(78%) 에 맞춘다 */
.g-hills-ph { position: absolute; left: 0; top: 0; width: 1600px; height: 700px; }   /* bottom:0 = 땅 선(y 700) */
.g-hill { position: absolute; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.g-hill-far { background: linear-gradient(#d3e6cf, #bcd8b8); }
.g-hill-mid { background: linear-gradient(#b9d8b4, #9fc79b); }
.g-hill-near { background: linear-gradient(#a6cf9f, #86b982); }
.g-tree { position: absolute; width: 18px; height: 80px; border-radius: 9px; background: #8f6d4c; transform: scale(var(--s, 1)); transform-origin: 50% 100%; }
.g-tree::before { content: ""; position: absolute; left: 50%; top: -84px; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9ccb7e, #6ea560); box-shadow: inset -12px -10px 0 rgba(0,0,0,.06); }
.g-path { position: absolute; left: 560px; bottom: 0; width: 520px; height: 300px; background: linear-gradient(#ead9bd, #dbc7a4); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); opacity: .9; }
.g-stage[data-season="summer"] .g-hills-ph { filter: saturate(1.2); }
.g-stage[data-season="autumn"] .g-hills-ph { filter: sepia(.45) saturate(1.3) hue-rotate(-12deg); }
.g-stage[data-season="winter"] .g-hills-ph { filter: saturate(.25) brightness(1.18); }
.g-stage[data-phase="night"] .g-l-mid, .g-stage[data-phase="night"] .g-l-floor { filter: brightness(.55) saturate(.75); }
.g-stage[data-phase="dusk"] .g-l-mid, .g-stage[data-phase="dusk"] .g-l-floor { filter: brightness(.9) sepia(.15); }
.g-stage[data-phase="dawn"] .g-l-mid, .g-stage[data-phase="dawn"] .g-l-floor { filter: brightness(.92) sepia(.08); }
.g-stage[data-weather="rain"] .g-l-mid, .g-stage[data-weather="cloudy"] .g-l-mid, .g-stage[data-weather="rain"] .g-l-floor, .g-stage[data-weather="cloudy"] .g-l-floor { filter: brightness(.86) saturate(.8); }
.g-stage[data-weather="rain"][data-phase="night"] .g-l-mid, .g-stage[data-weather="cloudy"][data-phase="night"] .g-l-mid { filter: brightness(.45) saturate(.6); }

/* 바닥 */
.g-floor-img { position: absolute; left: 0; top: 660px; width: 1600px; height: auto; }
.g-floor-ph {
  position: absolute; left: -120px; right: -120px; top: 670px; height: 360px;
  background-color: #e6d8c0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.35) 2px, transparent 2px), linear-gradient(rgba(120,100,80,.14) 2px, transparent 2px);
  background-size: 130px 65px, 130px 65px;
}
.g-floor-ph::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(rgba(90,70,50,.18), transparent); }
.g-soil { position: absolute; width: 270px; height: 76px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #8a6a4a, #6a5036); transform: translate(-50%, -50%); box-shadow: 0 6px 14px rgba(80,60,40,.25); }

/* 안개 */
.g-l-fog { opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.g-fog-ph { position: absolute; inset: -60px -100px; background: linear-gradient(180deg, rgba(246,239,229,0) 0%, rgba(246,239,229,.5) 42%, rgba(246,239,229,.88) 100%); }

/* 내 자리: 캐릭터 */
.g-char-anchor, .g-plant-anchor { position: absolute; transform: translate(-50%, -100%); }
/* 메인 장면의 내 땅(밭) — 나무 뒤 땅에 밭두둑과 심은 것.
   .g-scene 안으로만: 첫 심기·내 모습 창의 입력 칸도 .g-field 라 같이 1600×900 절대 위치로 깨졌었다(2026-10-25) */
.g-scene .g-field { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; margin: 0; pointer-events: none; }
.g-fbed { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #8a6a4a, #6a5036); box-shadow: 0 3px 6px rgba(80,60,40,.18); }
.g-fbed.is-empty { background: radial-gradient(ellipse at 50% 40%, #9a7a56, #7d6043); opacity: .85; }
.g-fbed.is-dae { background: radial-gradient(ellipse at 50% 40%, #e6d8bc, #cdbb97); }
.g-fspr { position: absolute; width: auto; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 4px rgba(80,60,40,.2)); }
.g-fspr.is-dead { filter: grayscale(.85) brightness(.92); opacity: .8; }
.g-field.is-open .g-fbed, .g-field.is-open .g-fspr { pointer-events: auto; cursor: pointer; }
.g-np-anchor { position: absolute; transform: translate(-50%, 0); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.g-np-anchor.is-show { opacity: 1; }   /* 나무를 누르면 잠깐 (scene.js peekName) */
.g-plant-anchor, .g-soil { cursor: pointer; }
.g-char { position: relative; width: 220px; height: 330px; animation: g-bob 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.g-char-img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 330px; width: auto; filter: drop-shadow(0 14px 10px rgba(80,60,40,.22)); }
.g-char-ph { position: absolute; left: 0; bottom: 0; width: 220px; height: 330px; }
.g-cp-head { position: absolute; left: 50%; top: 0; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%; background: var(--skin); box-shadow: inset -12px -14px 0 rgba(0,0,0,.05), 0 10px 20px rgba(120,90,60,.18); z-index: 2; }
.g-cp-head::before { content: ""; position: absolute; left: 46px; top: 70px; width: 13px; height: 18px; border-radius: 50%; background: #4a3b31; box-shadow: 45px 0 0 #4a3b31; }
.g-cp-head::after { content: ""; position: absolute; left: 50%; top: 92px; width: 34px; height: 16px; margin-left: -17px; border: 0 solid #4a3b31; border-bottom-width: 5px; border-radius: 0 0 20px 20px; }
.g-cp-body { position: absolute; left: 50%; bottom: 22px; width: 160px; height: 176px; margin-left: -80px; border-radius: 80px 80px 64px 64px; background: var(--body); box-shadow: inset -16px -12px 0 rgba(0,0,0,.09); z-index: 1; }
.g-cp-body b { position: absolute; left: 0; right: 0; top: 44px; text-align: center; font-size: 50px; font-weight: 800; color: rgba(255,255,255,.8); line-height: 1; }
.g-cp-arm { position: absolute; bottom: 92px; width: 44px; height: 92px; border-radius: 22px; background: var(--body); box-shadow: inset -8px -6px 0 rgba(0,0,0,.08); }
.g-cp-arm-l { left: 4px; transform: rotate(18deg); } .g-cp-arm-r { right: 4px; transform: rotate(-18deg); }
.g-cp-shadow { position: absolute; left: 50%; bottom: -8px; width: 190px; height: 40px; margin-left: -95px; border-radius: 50%; background: rgba(80,60,40,.2); filter: blur(5px); }
@keyframes g-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 내 자리: 식물 */
.g-plant { position: relative; width: 320px; height: 380px; transform-origin: 50% 100%; }
.g-plant-img { position: absolute; left: 50%; bottom: -23px; transform: translateX(-50%); height: 380px; width: auto; filter: drop-shadow(0 12px 10px rgba(80,60,40,.2)); }  /* 흙 선 94% 높이 정렬 */
.g-plant.g-pop { animation: g-pop-plant .75s cubic-bezier(.2,.9,.3,1.3); }
@keyframes g-pop-plant { 0% { transform: scale(.55); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
.g-pp { position: absolute; left: 50%; bottom: 0; width: 300px; height: var(--h); margin-left: -150px; }
.g-pp-seed { position: absolute; left: 50%; bottom: 4px; width: 44px; height: 32px; margin-left: -22px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #dcb77c; box-shadow: inset -8px -6px 0 rgba(0,0,0,.12), 0 4px 8px rgba(60,40,20,.25); }
.g-pp-seed::after { content: ""; position: absolute; left: 50%; top: -22px; width: 14px; height: 26px; margin-left: -4px; border-radius: 0 50% 0 50%; background: #7cb97a; transform: rotate(-20deg); }
.g-pp-stem { position: absolute; left: 50%; bottom: 0; width: 20px; height: calc(var(--h) - 24px); margin-left: -10px; border-radius: 10px 10px 4px 4px; background: linear-gradient(90deg, var(--leaf2), var(--leaf)); }
.g-pp-leaf { position: absolute; left: 50%; bottom: calc(26px + var(--i) * 36px); width: 76px; height: 36px; border-radius: 0 50% 0 50%; background: var(--leaf); transform-origin: 0 50%; transform: rotate(-22deg); box-shadow: inset -8px -4px 0 rgba(0,0,0,.08); }
.g-pp-leaf:nth-of-type(even) { border-radius: 50% 0 50% 0; transform-origin: 100% 50%; transform: translateX(-100%) rotate(22deg); }
.g-pp-canopy { position: absolute; left: 50%; bottom: calc(var(--h) - 200px); width: 210px; height: 200px; margin-left: -105px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--leaf), var(--leaf2)); box-shadow: inset -14px -12px 0 rgba(0,0,0,.07), 0 12px 20px rgba(80,60,40,.15); animation: g-sway 4.2s ease-in-out infinite; transform-origin: 50% 100%; }
.g-pp-canopy2 { width: 150px; height: 140px; margin-left: -20px; bottom: calc(var(--h) - 120px); animation-delay: -1.3s; }
.g-pp-bloom, .g-pp-fruit { position: absolute; width: 36px; height: 36px; border-radius: 50%; }
.g-pp-bloom { background: var(--bloom); box-shadow: inset 0 0 0 9px var(--bloom), inset 0 0 0 15px var(--core); }
.g-pp-fruit { width: 26px; height: 30px; background: var(--fruit); box-shadow: inset -5px -5px 0 rgba(0,0,0,.14); }
.g-pp-4 .g-pp-bloom, .g-pp-5 .g-pp-bloom, .g-pp-5 .g-pp-fruit { z-index: 2; }
@keyframes g-sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }

/* 효과 */
.g-l-fx { pointer-events: none; }
.g-spark { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff3b0; box-shadow: 0 0 14px #ffe27a; animation: g-spark 1.3s ease-out forwards; }
.g-spark-big { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
@keyframes g-spark { 0% { transform: scale(0) translateY(0); opacity: 0; } 25% { opacity: 1; transform: scale(1.3) translateY(-10px); } 100% { transform: scale(0) translateY(-80px); opacity: 0; } }
.g-ring { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 6px solid rgba(255,228,140,.95); animation: g-ring 1.3s ease-out forwards; }
@keyframes g-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(11); opacity: 0; } }
.g-xp { position: absolute; transform: translate(-50%, -50%); padding: 6px 16px; border-radius: 999px; background: var(--g-butter); color: var(--g-fg); font: 800 34px/1.2 var(--g-font); white-space: nowrap; box-shadow: var(--g-shadow-s); animation: g-xp 1.45s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes g-xp { 0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 100% { transform: translate(-50%, -150%) scale(1); opacity: 0; } }

/* 이름판(SVG 고리) */
.g-np { width: 320px; height: 64px; filter: drop-shadow(0 6px 10px rgba(120,90,60,.22)); }
.g-np-bg { fill: #FFFAF3; stroke: #EADFD0; stroke-width: 2; }
.g-np-ring { fill: none; stroke: #E9805F; stroke-width: 5; }
.g-np-dot { fill: #D4E5D9; }
.g-np-text { font: 700 22px var(--g-font); fill: #4A3B31; }

/* 움직임 줄이기 */
.g-reduce .g-cloud, .g-reduce .g-clouds-img, .g-reduce .g-char, .g-reduce .g-pp-canopy, .g-reduce .g-star, .g-reduce .g-plant.g-pop, .g-reduce .g-banner.is-live { animation: none !important; }
.g-reduce .g-spark, .g-reduce .g-ring { display: none; }
.g-reduce .g-xp { animation: g-xp-fade 1.2s ease forwards; }
@keyframes g-xp-fade { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.g-reduce .g-layer { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .g-cloud, .g-clouds-img, .g-char, .g-pp-canopy, .g-star, .g-plant.g-pop, .g-banner.is-live, .g-mbox, .g-backdrop { animation: none !important; }
  .g-spark, .g-ring, .g-particles { display: none; }
  .g-sky, .g-skytint, .g-l-clouds, .g-l-fog, .g-l-mid, .g-l-floor, .g-bar-fill { transition: none; }
  .g-layer { transform: none !important; }
}

/* ============================================================
   태블릿 761~1000px: 장면 52dvh 위 고정 + 패널 2열
   ============================================================ */
@media (max-width: 1000px) {
  .g-root { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: calc(52dvh + 12px) 16px calc(var(--g-bar) + 28px); align-items: start; }
  .g-scene { position: fixed; top: 0; left: 0; right: 0; bottom: auto; height: 52dvh; }
  .g-panel { position: relative; top: auto; bottom: auto; width: auto; overflow: visible; }
  .g-study, .g-rail { left: auto; right: auto; }
  .g-banner { max-width: calc(100% - 32px); }
  .g-root[data-mode="loading"]::after { top: 26dvh; }
}

/* ============================================================
   폰 ≤760px: 1열, 장면 56dvh, 하단 탭바(safe-area), 모달은 시트
   ============================================================ */
@media (max-width: 760px) {
  :root { --g-bar: 66px; }
  /* 폰: 장면 → 달란트·할 일(레일) → 서재 (2026-10-23 담임목사 지시: 서재는 아래로) */
  .g-root { display: flex; flex-direction: column; align-items: stretch; padding: 0 0 calc(var(--g-bar) + env(safe-area-inset-bottom, 0px) + 18px); }   /* stretch: 태블릿 규칙의 align-items:start 가 남으면 장면 폭이 0 */
  .g-scene { order: 0; } .g-rail { order: 1; } .g-study { order: 2; }
  .g-scene { position: relative; height: 56dvh; min-height: 320px; top: auto; left: auto; right: auto; border-radius: 0 0 26px 26px; }
  .g-panel { margin: 12px 14px 0; padding: 16px 16px 18px; }
  .g-banner { top: calc(var(--g-hdr) + 6px); left: 12px; right: 12px; transform: none; max-width: none; justify-content: space-between; font-size: .86rem; }
  .g-pills { top: calc(var(--g-hdr) + 124px); left: 12px; right: 12px; transform: none; max-width: none; }   /* 휴대폰: 새로고침·정원 들어가기 줄 아래 */
  .g-bar {
    left: 0; right: 0; bottom: 0; transform: none; border-radius: 22px 22px 0 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around; background: rgba(255,250,243,.96); box-shadow: 0 -8px 22px rgba(185,164,140,.22);
  }
  .g-tab { flex: 1 1 0; flex-direction: column; gap: 2px; padding: 4px 2px; font-size: .7rem; min-height: 52px; }
  .g-tab-ic { font-size: 1.25rem; }
  .g-toast { top: calc(var(--g-hdr) + 10px); max-width: calc(100vw - 24px); }
  body.g-has-banner .g-toast { top: calc(var(--g-hdr) + 66px); }
  .g-modal { align-items: flex-end; padding: 0; }
  .g-mbox { max-width: none; max-height: 88dvh; border-radius: 26px 26px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px)); animation: g-sheet .3s ease; }
  .g-mbox-qt.is-bubble::before { display: none; }
  .g-grab { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--g-line); }
  .g-seeds { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .g-seed { min-height: 88px; padding: 10px 6px; }
  .g-led { grid-template-columns: 1fr auto; grid-template-areas: "k x" "d t"; }
  .g-led-t { text-align: right; min-width: 0; }
  .g-qt-actions .g-btn { flex: 1 1 100%; }
  .g-root[data-mode="loading"]::after { top: 28dvh; }
}
@media (max-width: 400px) { .g-seeds { grid-template-columns: 1fr 1fr 1fr; } .g-seed b { font-size: .8rem; } .g-seed small { display: none; } }

/* ===== 2026-10-23 담임목사 요청 =====
   · 날씨(기온)는 장면 하늘 위 — 오른쪽 패널 왼쪽 위. 예배 띠가 떠 있으면 그 아래로
   · 오늘의 할 일은 접을 수 있다(제목 단추, 완료 수 표시) */
.g-wx-float { position: fixed; z-index: 3; top: calc(var(--g-hdr) + 14px); right: calc(var(--g-panel-w) + 36px); display: flex; align-items: center; gap: 8px; }
.g-wx-float { pointer-events: none; }
.g-wx-float > * { pointer-events: auto; }
.g-wx-float > .g-chip { box-shadow: var(--g-shadow-s); }
/* 나의 정원에 들어가기(입체) — 날씨 왼쪽 */
.g-enter3d { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px 0 13px; border: 0; border-radius: 999px; background: var(--g-coral); color: #fff;
  font: inherit; font-size: .9rem; font-weight: 800; box-shadow: var(--g-shadow-s); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.g-enter3d:hover { background: var(--g-coral-h); }
.g-enter3d:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
.g-enter3d-ic { width: 18px; height: 18px; flex: 0 0 auto; }
.g-enter3d[hidden] { display: none; }
body.g-has-banner .g-wx-float { top: calc(var(--g-hdr) + 74px); }
.g-root[data-mode="gate"] .g-wx-float, .g-root[data-mode="loading"] .g-wx-float { display: none !important; }
.g-fold-h { margin: 14px 0 6px; }
.g-fold { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 8px 0 4px; border: 0; border-radius: 12px; background: none;
  font: inherit; font-size: .95rem; font-weight: 800; color: var(--g-fg); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.g-fold:hover { background: var(--g-soft); }
.g-fold:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
.g-fold-n { font-size: .76rem; font-weight: 800; color: var(--g-sage-ink); background: var(--g-mint); border-radius: 999px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
/* 펼쳐져 있으면 위(∧ 접기), 접혀 있으면 아래(∨ 펼치기) — 2026-10-23 담임목사 */
.g-fold-ic { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--g-fg2); border-bottom: 2px solid var(--g-fg2); transform: translateY(2px) rotate(-135deg); transition: transform .2s ease; }
.g-fold[aria-expanded="false"] .g-fold-ic { transform: translateY(-2px) rotate(45deg); }
@media (max-width: 1000px) { .g-wx-float { right: 16px; top: calc(var(--g-hdr) + 12px); } }
@media (max-width: 760px) {
  .g-wx-float { position: absolute; top: calc(var(--g-hdr) + 10px); right: 12px; left: 12px; justify-content: flex-end; flex-wrap: wrap; }
  .g-enter3d { min-height: 40px; padding: 0 14px 0 11px; font-size: .86rem; }
  body.g-has-banner .g-wx-float { top: calc(var(--g-hdr) + 66px); }
}
/* 화면 돌리기 — 장면 왼쪽 위, 서재 바로 오른쪽 (2026-10-23 담임목사). 폰에서는 글자 없이 둥근 단추 */
.g-rotate { position: fixed; z-index: 3; top: calc(var(--g-hdr) + 14px); left: calc(16px + var(--g-panel-w) + 20px); display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--g-line2); border-radius: 999px; background: var(--g-panel); color: var(--g-fg);
  font: inherit; font-size: .9rem; font-weight: 800; box-shadow: var(--g-shadow-s); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.g-rotate:hover { background: var(--g-soft); }
.g-rotate:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
.g-rotate-ic { width: 18px; height: 18px; flex: 0 0 auto; }
body.g-has-banner .g-rotate { top: calc(var(--g-hdr) + 74px); }
.g-root[data-mode="gate"] .g-rotate, .g-root[data-mode="loading"] .g-rotate { display: none !important; }
/* 1001~1279px: 두 패널 사이(1024px 에서 312px)가 좁아 '나의 정원에 들어가기'·날씨와 겹친다 → 한 줄 아래로 */
@media (min-width: 1001px) and (max-width: 1279px) {
  .g-rotate { top: calc(var(--g-hdr) + 68px); }
  body.g-has-banner .g-rotate { top: calc(var(--g-hdr) + 128px); }
}
@media (max-width: 1000px) { .g-rotate { left: 16px; top: calc(var(--g-hdr) + 12px); } }
@media (max-width: 760px) {
  .g-rotate { position: absolute; left: 12px; top: calc(var(--g-hdr) + 10px); width: 40px; min-height: 40px; height: 40px; padding: 0; justify-content: center; }
  .g-rotate-t { display: none; }
  body.g-has-banner .g-rotate { top: calc(var(--g-hdr) + 66px); }
  .g-wx-float { left: 60px; }   /* 돌리기 단추(12~52px) 자리를 비운다 — 좁으면 날씨가 다음 줄로 */
}

/* ============================================================
   내 땅(밭) · 열매 따기 (2026-10-23) — js/garden/farm.js, hud.js fruitMode
   마름모 칸 = clip-path 로 자른 점토 무늬(images/garden/farm/tex-*.webp), 칸 두께는 아래 옆면
   ============================================================ */
.g-farm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.g-farm-acts .g-btn { flex: 1 1 auto; }
/* 내 모습 칸(오른쪽 메뉴) — 장면에 서 있던 인물을 여기에. 장면의 인물은 숨긴다 */
.g-char-anchor { display: none; }
.g-me { display: flex; align-items: flex-end; gap: 14px; margin: 0 0 14px; padding: 12px 16px 0; border-radius: 16px; border: 1px solid var(--g-line2); background: var(--g-soft); overflow: hidden; }
.g-me-pic { position: relative; flex: 0 0 auto; width: 104px; height: 168px; }
.g-me-pic img { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); height: 178px; width: auto; filter: drop-shadow(0 8px 8px rgba(80,60,40,.18)); }
/* 내 모습 설정값(SVG)은 키 차이를 보이려고 큰 키·올림머리까지 들어가는 틀이라 조금 크게 */
.g-me-pic.is-avx { height: 184px; }
.g-me-pic.is-avx img { height: 196px; bottom: -8px; }
.g-me-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 18px; min-width: 0; }
.g-me-txt .g-stitle { margin: 0; }
.g-me-lv { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.g-me-lv[hidden] { display: none; }
.g-me-lv b { font-size: 1.02rem; font-weight: 800; color: var(--g-fg); word-break: keep-all; line-height: 1.35; }
.g-me-lv small { font-size: .78rem; color: var(--g-fg3); }
.g-me-name { font-size: 1.02rem; font-weight: 800; color: var(--g-fg); word-break: keep-all; }
.g-gallery { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 16px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--g-line2); background: var(--g-soft); color: var(--g-fg); text-decoration: none; transition: border-color .2s; }
.g-gallery:hover, .g-gallery:focus-visible { border-color: var(--g-coral); }
.g-gallery-t { font-weight: 800; font-size: .98rem; }
.g-gallery-go { margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--g-fg3); }
.g-gallery-s { flex: 1 1 100%; font-size: .82rem; color: var(--g-fg3); }
.g-mbox-farm { width: min(1100px, calc(100vw - 32px)); max-width: none; height: min(860px, calc(100dvh - 40px)); display: flex; flex-direction: column; padding: 18px 18px 14px; }
.gf-head { flex: 0 0 auto; }
.gf-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gf-bal { background: var(--g-butter); border-color: #f1dca2; font-weight: 800; }
.gf-bal span { font-weight: 600; color: var(--g-fg2); font-size: .82rem; }
.gf-wrap { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; margin-top: 12px; border-radius: 20px; background: #CFE6F2; padding: 12px; overscroll-behavior: contain; }
.gf-board { position: relative; margin: 0 auto; }
.gf-loading { padding: 40px 0; text-align: center; }
.gf-cell { position: absolute; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; --gf-d: calc(14px * var(--gf-s, 1)); }
.gf-hit, button.gf-buy { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); -webkit-tap-highlight-color: transparent; }
.gf-hit { z-index: 2; }
.gf-top, .gf-side { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; }
.gf-top { height: 100%; z-index: 2; overflow: hidden; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: #9FCB86; }
/* 정사각 무늬를 45° 돌리고 세로로 반 눌러 마름모 땅에 그대로 눕힌다(이랑이 칸 방향을 따른다) */
.gf-top::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70.72%; aspect-ratio: 1; background: inherit; background-size: cover; transform: translate(-50%, -50%) scaleY(.5) rotate(45deg); }
.gf-top-grass { background-color: #9FCB86; background-image: url(../images/garden/farm/tex-grass.webp); }
.gf-top-soil { background-color: #B98B62; background-image: url(../images/garden/farm/tex-soil.webp); }
.gf-top-grass, .gf-top-soil { background-size: 0 0; }
.gf-side { z-index: 1; height: calc(100% + var(--gf-d)); background: #8A6A4E;
  clip-path: polygon(0 calc((100% - var(--gf-d)) / 2), 50% calc(100% - var(--gf-d)), 100% calc((100% - var(--gf-d)) / 2),
                     100% calc((100% - var(--gf-d)) / 2 + var(--gf-d)), 50% 100%, 0 calc((100% - var(--gf-d)) / 2 + var(--gf-d))); }
.gf-hit:hover .gf-top, .gf-hit:focus-visible .gf-top { filter: brightness(1.08); }
.gf-hit:focus-visible { outline: none; }
.gf-hit:focus-visible .gf-top { box-shadow: inset 0 0 0 3px var(--g-coral); }
.gf-top-buy { background: rgba(255, 250, 243, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none'%3E%3Cpolygon points='50,1.5 98,25 50,48.5 2,25' fill='none' stroke='%23B5553A' stroke-width='1.6' stroke-dasharray='5 4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
button.gf-buy:hover .gf-top-buy, button.gf-buy:focus-visible .gf-top-buy { background-color: rgba(255, 250, 243, .78); }
button.gf-buy:focus-visible { outline: none; }
.gf-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; padding: 3px 9px; border-radius: 999px; background: rgba(255, 250, 243, .94);
  color: var(--g-accent); font-size: .76rem; font-weight: 800; white-space: nowrap; pointer-events: none; box-shadow: var(--g-shadow-s); }
.gf-stand { position: absolute; left: 50%; top: 60%; z-index: 4; width: 88%; height: 120%; transform: translate(-50%, -100%); pointer-events: none; }
.gf-is-tree .gf-stand { width: 120%; height: 220%; }
.gf-spr { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; user-select: none; }
.gf-ph { position: absolute; left: 30%; bottom: 0; width: 40%; height: 45%; border-radius: 50% 50% 8px 8px; background: #7FB46A; }
.gf-time { top: auto; bottom: -14px; transform: translateX(-50%); color: var(--g-fg2); }
.gf-fruit { position: absolute; z-index: 5; width: 22%; min-width: 26px; max-width: 36px; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer;
  border-radius: 50%; outline: none; animation: gf-bob 2.4s ease-in-out infinite; }
.gf-fruit::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.gf-fruit img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(74, 59, 49, .25)); pointer-events: none; }
.gf-fruit:hover img, .gf-fruit:focus-visible img { transform: scale(1.15); }
.gf-fruit:focus-visible { box-shadow: 0 0 0 3px var(--g-coral-ring); }
.gf-fruit.is-going, .g-fruit.is-going { animation: gf-pick .4s ease-in forwards; pointer-events: none; }
.gf-ripe .gf-hit .gf-top { box-shadow: inset 0 0 0 2px rgba(248, 221, 142, .9); }
.gf-gain { position: absolute; z-index: 300; transform: translate(-50%, -100%); color: var(--g-accent); font-weight: 900; font-size: .9rem; white-space: nowrap;
  text-shadow: 0 1px 0 #fff, 0 0 6px #fff; pointer-events: none; animation: gf-gain 1.1s ease-out forwards; }
.gf-sheet { flex: 0 0 auto; margin-top: 10px; padding: 14px; border-radius: 18px; background: var(--g-soft); border: 1px solid var(--g-line2); max-height: 46%; overflow: auto; }
.gf-s-t { margin: 0 0 6px; font-weight: 800; }
.gf-s-m { margin: 0 0 10px; color: var(--g-fg2); font-size: .9rem; }
.gf-s-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.gf-s-acts-l { justify-content: flex-start; margin-top: 4px; }
.gf-crops { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.gf-crop { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 6px 12px 6px 6px; border-radius: 16px; border: 1px solid var(--g-line); background: var(--g-panel);
  font: inherit; color: var(--g-fg); text-align: left; cursor: pointer; }
.gf-crop:hover { background: #fff; border-color: var(--g-sage-line); }
.gf-crop[disabled] { opacity: .55; cursor: default; }
.gf-crop img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 52px; }
.gf-crop-t { display: flex; flex-direction: column; gap: 2px; }
.gf-crop-t small { color: var(--g-fg2); font-size: .78rem; line-height: 1.35; }
/* 믿음 나무 열매(장면 위) */
.g-fruit-layer { z-index: 3; pointer-events: none; }
.g-fruit { position: absolute; width: 44px; height: 44px; padding: 0; border: 0; background: none; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer;
  animation: gf-bob 2.4s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.g-fruit img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(74, 59, 49, .3)); }
.g-fruit:focus-visible { outline: 3px solid var(--g-coral-ring); border-radius: 50%; }
@keyframes gf-bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -3px; } }
@keyframes gf-pick { to { opacity: 0; margin-top: 40px; transform: translate(-50%, -50%) scale(.6); } }
@keyframes gf-gain { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -36px; } }
@media (prefers-reduced-motion: reduce) { .gf-fruit, .g-fruit { animation: none; } .gf-gain { animation-duration: .01s; } }
@media (max-width: 760px) {
  .g-mbox-farm { width: 100vw; height: 92dvh; padding: 14px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .gf-wrap { padding: 8px; }
  .gf-crops { grid-template-columns: 1fr; }
}
.g-fruit.noimg, .gf-fruit.noimg { border-radius: 50%; background: #8E5A8A; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), 0 2px 4px rgba(74, 59, 49, .3); }
.g-fruit.noimg { width: 30px; height: 30px; }

/* ============================================================
   3단계 (2026-10-23): 마이월렛 · 물 주기 · 꽃집 · 땅 종류(전·대)·여러 칸 고르기
   ============================================================ */
/* 마이월렛 */
.g-wl-top { margin: 4px 0 10px; }
.g-wl-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.g-wl-sum > div { background: var(--g-soft); border: 1px solid var(--g-line2); border-radius: 14px; padding: 10px 12px; }
.g-wl-sum span { display: block; font-size: .76rem; color: var(--g-fg2); font-weight: 700; }
.g-wl-sum b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.g-wl-box { border: 1px solid var(--g-line2); border-radius: 14px; background: var(--g-panel); margin-bottom: 8px; }
.g-wl-box summary { cursor: pointer; padding: 10px 14px; font-weight: 800; font-size: .9rem; list-style-position: inside; }
.g-wl-list { list-style: none; margin: 0; padding: 0 14px 10px; display: grid; gap: 4px; }
.g-wl-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--g-line2); font-size: .88rem; }
.g-wl-list li:last-child { border-bottom: 0; }
.g-wl-list small { color: var(--g-fg3); font-size: .74rem; }
.g-wl-list b { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--g-accent); }
.g-wl-list b.is-out { color: var(--g-fg2); }
.g-wl-h { font-size: .9rem; margin: 14px 0 4px; }
/* 레일 단추 */
#gWaterBtn { background: #5E9BC9; }
#gWaterBtn:hover { background: #4F8BB8; }
#gWaterBtn[disabled] { background: var(--g-sky); color: var(--g-fg2); opacity: 1; }
/* 내 땅: 도구 줄 · 대지 · 고르기 · 식물 상태 */
.gf-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gf-tools .g-btn { min-height: 40px; padding: 0 14px; font-size: .84rem; }
.gf-top-dae { background-color: #D8C7AA; background-image: url(../images/garden/farm/tex-dae.webp); }
.gf-top-grass, .gf-top-soil, .gf-top-dae { background-size: 0 0; }
.gf-side-dae { background: #9C8667; }
.gf-cell.is-picked .gf-top { box-shadow: inset 0 0 0 4px var(--g-coral); filter: brightness(1.06); }
button.gf-buy.is-picked .gf-top-buy { background-color: rgba(233, 128, 95, .35); }
.gf-board.is-converting .gf-cell:not(.is-pickable):not(.gf-buy) { opacity: .55; }
.gf-board.is-converting .gf-cell.is-pickable .gf-top { box-shadow: inset 0 0 0 2px rgba(233, 128, 95, .7); }
.gf-pick { top: 50%; z-index: 6; background: var(--g-coral); color: #fff; }
.gf-st-dead { filter: grayscale(.85) sepia(.5) brightness(.85); transform-origin: bottom center; transform: rotate(-6deg); }
.gf-st-done, .gf-st-rest { filter: saturate(.55); }
.gf-st-full { filter: saturate(1.2) brightness(1.04); }
.gf-warn { top: auto; bottom: -14px; color: #fff; background: #8A6A4E; }
.gf-water { top: auto; bottom: -14px; color: #2F5F86; background: #E2F0FA; }
.gf-s-t2 { margin-top: 6px; }
.gf-s-list { margin: 0 0 6px; padding-left: 18px; color: var(--g-fg2); font-size: .9rem; line-height: 1.6; }
.gf-crop em { font-style: normal; color: var(--g-accent); font-weight: 800; }
.gf-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gf-prices label { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 700; color: var(--g-fg2); }
.gf-prices input { min-height: 44px; border-radius: 12px; border: 1px solid var(--g-line); padding: 0 12px; font: inherit; font-size: 1rem; color: var(--g-fg); background: #fff; }
/* 꽃집 */
.g-mbox-shop { width: min(980px, calc(100vw - 32px)); max-width: none; height: min(880px, calc(100dvh - 40px)); display: flex; flex-direction: column; padding: 18px 18px 12px; }
.gs-bag { max-width: 100%; white-space: normal; line-height: 1.4; }
.gs-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.gs-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--g-line); background: var(--g-panel); color: var(--g-fg2); font: inherit; font-weight: 800; font-size: .86rem; cursor: pointer; }
.gs-tab.is-on { background: var(--g-fg); border-color: var(--g-fg); color: #fff; }
.gs-tab.gs-soon { cursor: default; opacity: .6; font-weight: 700; }
.g-wl-note { margin: 4px 0 8px; font-size: .8rem; line-height: 1.55; color: var(--g-fg3); }
.gf-tag.gf-xp { background: #F3E6D2; color: #8A5A2E; }
.gs-when { display: block; margin-top: 4px; font-size: .76rem; font-weight: 700; color: var(--g-fg3); }
.gs-when.is-now { color: #4E7A4A; }
.gf-crop.gf-off small { color: #9A5A3A; }
.gs-tab.gs-soon small { font-size: .7rem; font-weight: 700; color: var(--g-fg3); }
@media (max-width: 640px) { .gs-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -4px; margin-right: -4px; padding: 0 4px 2px; } .gs-tabs::-webkit-scrollbar { display: none; } .gs-tab { flex: 0 0 auto; white-space: nowrap; } }
.gs-list { flex: 1 1 auto; min-height: 0; overflow: auto; margin-top: 12px; padding-right: 4px; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; align-content: start; }
.gs-lead, .gs-sub { grid-column: 1 / -1; margin: 0; }
.gs-lead { color: var(--g-fg2); font-size: .88rem; }
.gs-sub { font-size: .95rem; margin-top: 10px; }
.gs-card { background: var(--g-panel); border: 1px solid var(--g-line2); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.gs-card.is-no { background: var(--g-soft); }
.gs-card.is-no img { filter: grayscale(.6); opacity: .8; }
.gs-card-h { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; }
.gs-card-h img { width: 72px; height: 72px; object-fit: contain; }
.gs-card-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gs-card-t b { font-size: 1rem; }
.gs-card-t small { color: var(--g-fg2); font-size: .76rem; line-height: 1.4; }
.gs-fit { align-self: flex-start; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.gs-fit-good { background: var(--g-mint); color: var(--g-sage-ink); }
.gs-fit-ok { background: var(--g-butter); color: #7A5A1C; }
.gs-fit-no { background: var(--g-panel2); color: var(--g-fg3); }
.gs-price { text-align: right; white-space: nowrap; }
.gs-price b { font-size: 1.15rem; }
.gs-price span { display: block; font-size: .72rem; color: var(--g-fg2); font-weight: 700; }
.gs-admin input { width: 76px; min-height: 36px; border-radius: 10px; border: 1px solid var(--g-sage-line); padding: 0 8px; font: inherit; font-weight: 800; text-align: right; }
.gs-spec summary { cursor: pointer; font-size: .84rem; font-weight: 800; color: var(--g-sage-ink); }
.gs-spec dl { margin: 6px 0 0; display: grid; gap: 4px; }
.gs-spec dl > div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: .82rem; line-height: 1.45; }
.gs-spec dt { color: var(--g-fg3); font-weight: 700; }
.gs-spec dd { margin: 0; color: var(--g-fg); }
.gs-src { margin: 6px 0 0; font-size: .72rem; color: var(--g-fg3); word-break: break-all; }
.gs-buy { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.gs-have { flex: 1 1 auto; font-size: .78rem; color: var(--g-fg2); font-weight: 700; }
.gs-qty { display: inline-flex; align-items: center; border: 1px solid var(--g-line); border-radius: 999px; background: #fff; }
.gs-qty button { width: 36px; height: 40px; border: 0; background: none; font: inherit; font-size: 1.1rem; font-weight: 800; color: var(--g-fg); cursor: pointer; border-radius: 999px; }
.gs-qty b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.gs-go { min-height: 40px; padding: 0 14px; font-size: .84rem; }
@media (max-width: 760px) {
  .g-mbox-shop { width: 100vw; height: 92dvh; padding: 14px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .gs-list { grid-template-columns: 1fr; }
  .g-wl-sum b { font-size: 1rem; }
}

/* ============================================================
   나의 정원에 들어가기(입체) — js/garden/garden3d.js (2026-10-23 담임목사)
   넓은 화면: 창 전체를 덮는다(+ 전체 화면 단추). 휴대폰: 화면 전체(주소창까지), 위 막대는 그림 위에 얹는다
   ============================================================ */
html.g3d-open, html.g3d-open body { overflow: hidden; }
.g3d { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: #cfdcea; color: var(--g-fg); }
.g3d:fullscreen { width: 100%; height: 100%; }
.g3d-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 16px; background: var(--g-panel); border-bottom: 1px solid var(--g-line2); }
.g3d-title { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.g3d-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--g-fg2); font-size: .88rem; }
.g3d-grow { flex: 1 1 auto; }
.g3d-btn { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 1px solid var(--g-line); border-radius: 999px; background: var(--g-panel); color: var(--g-fg); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.g3d-btn:hover { background: var(--g-soft); }
.g3d-btn:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
.g3d-btn-close { background: var(--g-coral); border-color: var(--g-coral); color: #fff; }
.g3d-btn-close:hover { background: var(--g-coral-h); }
.g3d-body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.g3d-stage { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.g3d-cv { display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.g3d-cv.is-drag { cursor: grabbing; }
.g3d-load { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 700; color: var(--g-fg2); }
.g3d-wx, .g3d-tip, .g3d-hint { position: absolute; z-index: 1; padding: 7px 14px; border-radius: 999px; background: rgba(255,250,243,.9); border: 1px solid var(--g-line2); box-shadow: var(--g-shadow-s); font-size: .84rem; font-weight: 600; color: var(--g-fg); pointer-events: none; }
.g3d-wx { left: 14px; bottom: 14px; }
.g3d-harvest { position: absolute; z-index: 1; left: 14px; bottom: 58px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--g-line2); background: rgba(255,250,243,.9); box-shadow: var(--g-shadow-s); font: inherit; font-size: .9rem; font-weight: 800; color: var(--g-fg3); }
.g3d-harvest.is-on { background: var(--g-coral, #e8795a); border-color: transparent; color: #fff; cursor: pointer; }
.g3d-harvest:disabled { opacity: .7; cursor: default; }
.g3d-harvest[hidden] { display: none; }
.g3d.is-phone .g3d-harvest { left: 10px; bottom: calc(52px + env(safe-area-inset-bottom)); }
.g3d-hint { left: 14px; bottom: 112px; max-width: calc(100% - 140px); transition: opacity .6s ease; }
.g3d-hint.is-gone { opacity: 0; }
.g3d-hint[hidden] { display: none; }
.g3d-tip { left: 50%; top: 14px; transform: translateX(-50%); font-weight: 800; white-space: nowrap; }
.g3d-tip[hidden], .g3d-wx[hidden] { display: none; }
/* 확대·축소·돌리기 단추 (오른쪽 아래) */
.g3d-ctl { position: absolute; z-index: 1; right: 14px; bottom: 14px; display: grid; grid-template-columns: 44px 44px; gap: 8px; }
.g3d-ctl-b { width: 44px; height: 44px; padding: 0; border: 1px solid var(--g-line); border-radius: 50%; background: rgba(255,250,243,.94); box-shadow: var(--g-shadow-s);
  color: var(--g-fg); font: inherit; font-size: 1.35rem; font-weight: 700; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.g3d-ctl-b:hover { background: var(--g-soft); }
.g3d-ctl-b:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
/* 휴대폰: 막대를 그림 위에 얹어 그림이 화면 전체를 쓴다 */
.g3d.is-phone .g3d-top { position: absolute; left: 0; right: 0; top: 0; min-height: 0; padding: max(8px, env(safe-area-inset-top)) 10px 8px; gap: 6px; background: linear-gradient(rgba(255,250,243,.92), rgba(255,250,243,.78)); border-bottom: 0; }
.g3d.is-phone .g3d-sub { display: none; }
.g3d.is-phone .g3d-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.g3d.is-phone.has-side .g3d-top > .g3d-btn:not(.g3d-side-btn):not(.g3d-btn-close) { display: none; }   /* 좁은 막대: 방명록·닫기만 */
.g3d.is-phone .g3d-btn { min-height: 38px; padding: 0 12px; font-size: .84rem; }
.g3d.is-phone .g3d-tip { top: calc(max(8px, env(safe-area-inset-top)) + 58px); }
.g3d.is-phone .g3d-wx { left: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); font-size: .78rem; }
.g3d.is-phone .g3d-ctl { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); grid-template-columns: 44px 44px; grid-auto-flow: row; }
.g3d.is-phone .g3d-wx { max-width: calc(100% - 80px); }
.g3d.is-phone .g3d-hint { bottom: calc(104px + env(safe-area-inset-bottom)); left: 10px; transform: none; white-space: normal; width: max-content; max-width: calc(100% - 80px); font-size: .78rem; }

/* ============================================================
   정원 초대하기 · 이웃 정원 방문 · 방명록 — js/garden/visit.js (2026-10-23)
   ============================================================ */
.g-visit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.g-visit-row[hidden] { display: none; }
.g-visit-b { min-height: 44px; padding: 0 10px; font-size: .88rem; gap: 6px; }
.g-vbadge { padding: 2px 8px; border-radius: 999px; background: var(--g-coral); color: #fff; font-size: .72rem; font-weight: 800; }
.g-vbadge[hidden] { display: none; }
.g-mbox-invite { width: min(520px, calc(100vw - 32px)); max-height: min(820px, calc(100dvh - 40px)); overflow-y: auto; }
.g-mbox-visit { width: min(860px, calc(100vw - 32px)); max-width: none; max-height: min(860px, calc(100dvh - 40px)); overflow-y: auto; }
.gv-inv-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--g-soft); border: 1px solid var(--g-line2); }
.gv-state { font-weight: 800; color: var(--g-fg2); }
.gv-state.is-on { color: var(--g-sage-ink); }
.gv-share { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.gv-share input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-panel); color: var(--g-fg); font: inherit; font-size: .86rem; }
.gv-share-b { display: flex; gap: 8px; }
.gv-share-b .g-btn { flex: 1 1 0; }
.gv-share-b .g-btn[hidden] { display: none; }
.gv-preview { margin-top: 10px; }
.gv-myt { margin: 18px 0 8px; }
.gv-gb { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gv-gbi { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--g-panel); border: 1px solid var(--g-line2); }
.gv-gbi.is-mine { background: var(--g-soft); }
.gv-av { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--g-panel2); border: 1px solid var(--g-line2); }
.gv-av img { display: block; width: 230%; max-width: none; height: auto; margin: -8% 0 0 -65%; }   /* 얼굴만 */
.gv-av img.is-face { width: 100%; height: 100%; margin: 0; }   /* 내 모습 설정값은 얼굴만 그린 그림 */
.gv-gbt { min-width: 0; flex: 1 1 auto; }
.gv-gbm { display: flex; align-items: baseline; gap: 8px; }
.gv-gbm b { font-size: .9rem; }
.gv-gbm small { color: var(--g-fg3); font-size: .76rem; }
.gv-gbt p { margin: 3px 0 0; font-size: .92rem; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; white-space: pre-wrap; }
.gv-hide { margin-left: auto; min-height: 30px; padding: 0 10px; border: 1px solid var(--g-line); border-radius: 999px; background: none; color: var(--g-fg2); font: inherit; font-size: .76rem; cursor: pointer; }
.gv-hide.is-arm { border-color: var(--g-coral); color: var(--g-coral-p); font-weight: 800; }
.gv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gv-none { grid-column: 1 / -1; }
.gv-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 96px; padding: 12px 14px; border: 1px solid var(--g-line2); border-radius: 18px; background: var(--g-panel);
  box-shadow: var(--g-shadow-s); font: inherit; color: var(--g-fg); text-align: left; cursor: pointer; }
.gv-card:hover { background: var(--g-soft); }
.gv-card:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
.gv-sign { position: absolute; top: 10px; right: 12px; padding: 2px 9px; border-radius: 6px; background: var(--g-mint); color: var(--g-sage-ink); font-size: .72rem; font-weight: 800; }
.gv-pics { position: relative; flex: 0 0 auto; width: 74px; height: 70px; }
.gv-av-lg { position: absolute; left: 0; bottom: 0; width: 50px; height: 50px; }
.gv-tree { position: absolute; right: -4px; bottom: -2px; width: 46px; height: 46px; object-fit: contain; }
.gv-cardt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 34px; }
.gv-cardt b { font-size: .98rem; }
.gv-cardt small { color: var(--g-fg2); font-size: .8rem; }
.gv-cardt .gv-meta { color: var(--g-fg3); }
/* 방문 창 오른쪽 방명록 칸 */
.g3d-side { flex: 0 0 340px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 14px; background: var(--g-panel); border-left: 1px solid var(--g-line2); }
.gv-side-h { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.gv-n { padding: 1px 9px; border-radius: 999px; background: var(--g-mint); color: var(--g-sage-ink); font-size: .78rem; font-weight: 800; }
.gv-n:empty { display: none; }
.gv-form textarea { width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-bg); color: var(--g-fg); font: inherit; font-size: .92rem; resize: vertical; }
.gv-form textarea:focus { outline: 3px solid var(--g-coral-ring); border-color: var(--g-coral); }
.gv-form-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.gv-form-row small { color: var(--g-fg3); font-size: .76rem; }
.g3d-side-btn[hidden] { display: none; }
.g3d.is-phone .g3d-side { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-height: 62%; border-left: 0; border-top: 1px solid var(--g-line2); border-radius: 22px 22px 0 0;
  padding-bottom: calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(80,60,40,.18); transform: translateY(105%); transition: transform .28s ease; }
.g3d.is-phone.is-side .g3d-side { transform: none; }
@media (max-width: 760px) {
  .g-mbox-invite, .g-mbox-visit { width: 100vw; max-height: 88dvh; }
  .gv-list { grid-template-columns: 1fr; }
}
/* 이웃 신청 */
.gv-sign.is-nb { background: var(--g-peach); color: var(--g-coral-p); }
.gv-nbh { margin: 12px 0 6px; font-size: .86rem; color: var(--g-fg2); }
.gv-nbl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gv-nbi { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--g-panel); border: 1px solid var(--g-line2); }
.gv-nbt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.gv-nbt b { font-size: .9rem; }
.gv-nbt small { color: var(--g-fg2); font-size: .78rem; }
.gv-nba { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.gv-nb-b { min-height: 36px; padding: 0 12px; font-size: .84rem; }
.gv-nb-b[hidden] { display: none; }
.gv-nbbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--g-soft); border: 1px solid var(--g-line2); font-size: .84rem; color: var(--g-fg2); }
.gv-nbbar[hidden] { display: none; }
.gv-nbbar .gv-nb-b.is-arm { border-color: var(--g-coral); color: var(--g-coral-p); }
/* ============================================================
   안내 도우미 — js/garden/guide.js (2026-10-23)
   ============================================================ */
.g-guide-btn { margin-top: -2px; }
.g-guide-btn[hidden] { display: none; }
.g-mbox-guide { width: min(620px, calc(100vw - 32px)); max-height: min(880px, calc(100dvh - 40px)); overflow-y: auto; }
.gd-head { display: flex; align-items: flex-end; gap: 14px; padding-right: 40px; margin-bottom: 8px; }
.gd-pic { flex: 0 0 auto; width: 86px; height: 96px; overflow: hidden; border-radius: 18px; background: var(--g-soft); border: 1px solid var(--g-line2); }
.gd-pic img { display: block; width: 130%; max-width: none; margin: -4% 0 0 -15%; }
.gd-say .g-mtitle { margin: 0 0 4px; }
.gd-lead { margin: 0; color: var(--g-fg); font-size: .95rem; line-height: 1.6; word-break: keep-all; }
.gd-body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.gd-sec { padding: 12px 14px; border-radius: 16px; background: var(--g-panel); border: 1px solid var(--g-line2); }
.gd-h { margin: 0 0 8px; font-size: .86rem; color: var(--g-fg2); font-weight: 800; }
.gd-word { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; }
.gd-word small { color: var(--g-fg2); }
.gd-ok { margin: 0; color: var(--g-sage-ink); font-weight: 700; font-size: .9rem; }
.gd-todo { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gd-todo li { display: flex; align-items: center; gap: 10px; }
.gd-tt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gd-tt b { font-size: .92rem; }
.gd-tt small { color: var(--g-fg2); font-size: .78rem; }
.gd-tt .gd-rw { color: var(--g-coral-p); font-weight: 700; }
.gd-act { min-height: 38px; padding: 0 14px; font-size: .86rem; flex: 0 0 auto; }
.gd-list { margin: 0 0 10px; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; line-height: 1.55; word-break: keep-all; }
.gd-list .gd-ripe { color: var(--g-coral-p); font-weight: 700; }
.gd-next { margin-bottom: 0; }
.gd-next .gd-act { margin-left: 6px; min-height: 32px; }
.gd-wx, .gd-tip { margin: 0 0 6px; font-size: .9rem; line-height: 1.6; word-break: keep-all; }
.gd-tip { margin: 0; color: var(--g-fg2); }
.gd-banner { margin: 0 0 6px; font-weight: 700; font-size: .9rem; }
.gd-news { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.gd-news li { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.gd-news li b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-news li small { flex: 0 0 auto; color: var(--g-fg3); }
.gd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.gd-daily { display: flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--g-fg2); cursor: pointer; }
.gd-daily input { width: 18px; height: 18px; accent-color: var(--g-coral); }
@media (max-width: 760px) { .g-mbox-guide { width: 100vw; max-height: 90dvh; } .gd-pic { width: 70px; height: 80px; } }
/* 지갑: 수확과 투자 */
.g-wl-hsum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 10px; }
.g-wl-hsum > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--g-soft); border: 1px solid var(--g-line2); }
.g-wl-hsum span { font-size: .76rem; color: var(--g-fg2); }
.g-wl-hsum b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.g-wl-hsum .is-in { color: var(--g-sage-ink); }
.g-wl-hsum .is-out { color: var(--g-coral-p); }
@media (max-width: 520px) { .g-wl-hsum { grid-template-columns: 1fr 1fr; } }
/* 달란트 선물 */
.gv-gift { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; padding: 12px; border-radius: 14px; background: var(--g-soft); border: 1px solid var(--g-line2); }
.gv-gift b { font-size: .9rem; }
.gv-gift-row { display: flex; align-items: center; gap: 8px; }
.gv-gift input { min-height: 40px; padding: 0 10px; border: 1px solid var(--g-line); border-radius: 10px; background: var(--g-panel); color: var(--g-fg); font: inherit; font-size: .92rem; }
.gv-gift-row input { width: 110px; font-variant-numeric: tabular-nums; }
.gv-gift small { color: var(--g-fg2); font-size: .78rem; }
.gv-gift-b { display: flex; justify-content: flex-end; gap: 8px; }
.gv-gift-b .g-btn { min-height: 38px; padding: 0 14px; font-size: .86rem; }
.gv-nba .gv-nb-b { white-space: nowrap; }
.gd-grant { margin: 0; font-size: .92rem; line-height: 1.6; word-break: keep-all; }
.gd-gift { margin: 0; }
/* ============================================================
   내 땅 가꾸기를 입체 정원 안에서 (2026-10-23) — js/garden/farm.js 의 오른쪽 칸
   입체 창 위로도 스토어·안내 창·알림이 보이게 한다
   ============================================================ */
html.g3d-open .g-modal { z-index: 1100; }
html.g3d-open .g-toast { z-index: 1200; }
.gf3 { gap: 12px; }
.gf3-head { display: flex; flex-direction: column; gap: 10px; }
.gf3-t { margin: 0; font-family: "Noto Serif KR", serif; font-size: 1.15rem; }
.gf3 .gf-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.gf3 .gf-stats .g-chip { min-height: 36px; padding: 0 12px; font-size: .84rem; }
.gf3 .gf-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.gf3 .gf-tools[hidden] { display: none; }
.gf3 .gf-tools .g-btn { min-height: 38px; padding: 0 12px; font-size: .84rem; }
.gf3-sheet { position: static !important; display: block !important; max-height: none; margin: 0; padding: 12px; border-radius: 16px; background: var(--g-soft); border: 1px solid var(--g-line2); box-shadow: none; transform: none !important; }
.gf3-sheet:empty { display: none !important; }
.gf3-hint { margin: 0; color: var(--g-fg2); line-height: 1.6; }
.gf3 .gf-crops { grid-template-columns: 1fr; }
/* ============================================================
   주간 날씨 · 내 지역 — js/garden/weather.js · region.js (2026-10-23)
   ============================================================ */
button.g-chip-wx { font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.g-chip-wx:hover { background: #d9e8f6; }
button.g-chip-wx:focus-visible { outline: 3px solid var(--g-coral-ring); outline-offset: 2px; }
.g-mbox-weather { width: min(640px, calc(100vw - 32px)); max-height: min(860px, calc(100dvh - 40px)); overflow-y: auto; }
.gw-region { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.gw-region .g-btn { min-height: 40px; padding: 0 14px; font-size: .86rem; }
.gw-region .g-btn[hidden] { display: none; }
.gw-alert { margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: #f9ece7; border: 1px solid #f1c9b8; color: #9b4a33; font-weight: 700; font-size: .92rem; line-height: 1.55; word-break: keep-all; }
.gw-days { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gw-day { display: grid; grid-template-columns: 64px 34px 52px 82px 1fr; grid-template-areas: "d ic k t r" "d ic k t w" "warn warn warn warn warn"; align-items: center; column-gap: 8px; row-gap: 2px;
  padding: 10px 12px; border-radius: 14px; background: var(--g-panel); border: 1px solid var(--g-line2); }
.gw-day.is-sun { border-color: var(--g-coral); background: #fffaf3; }
.gw-day.is-warn1 { background: #f9eeda; }
.gw-day.is-warn2 { background: #fbebeb; border-color: #e7b3a8; }
.gw-d { grid-area: d; display: flex; flex-direction: column; }
.gw-d b { font-size: .98rem; }
.gw-d small { color: var(--g-fg2); font-size: .76rem; }
.gw-day.is-sun .gw-d b { color: var(--g-coral-p); }
.gw-ic { grid-area: ic; width: 34px; height: 34px; object-fit: contain; }
.gw-k { grid-area: k; font-size: .86rem; color: var(--g-fg2); }
.gw-t { grid-area: t; font-variant-numeric: tabular-nums; color: var(--g-fg2); font-size: .9rem; }
.gw-t b { color: var(--g-fg); font-size: 1.02rem; }
.gw-r { grid-area: r; font-size: .82rem; color: var(--g-fg2); }
.gw-w { grid-area: w; font-size: .82rem; color: var(--g-fg2); }
.gw-warn { grid-area: warn; margin-top: 4px; font-size: .82rem; font-weight: 800; color: #b5523a; }
.gw-credit { margin-top: 10px; }
.gd-alert { margin: 0 0 6px; font-weight: 700; color: #9b4a33; line-height: 1.55; }
.gd-alert[hidden] { display: none; }
.g-region-ov { z-index: 1300; }
@media (max-width: 520px) {
  .gw-day { grid-template-columns: 52px 30px 1fr auto; grid-template-areas: "d ic k t" "d ic r r" "d ic w w" "warn warn warn warn"; }
  .gw-ic { width: 30px; height: 30px; }
}
/* 부부(가족) 이웃 */
.gv-fam { margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: var(--g-mint); color: var(--g-sage-ink); font-size: .7rem; font-weight: 800; vertical-align: 1px; }

/* ===== 경제 가격표 · 나무 스토어 재고 · 나의 보관함 · 건축 미션 (2026-10-24) ===== */
.g-btn-danger { background: var(--g-panel); color: #A33A2A; border-color: #A33A2A; }
.g-btn-danger:hover { background: #FBEDEA; }
.gf-mk { font-size: .82rem; line-height: 1.5; }
.gf-mk.is-on { color: #9A5A3A; font-weight: 700; }
.gf-warn { color: #A33A2A; font-size: .84rem; }
/* 스토어: 거두면 받는 것 · 다 자란 나무(재고) */
.gs-yield { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--g-sage-ink); font-weight: 700; }
.gs-stock-lead { font-weight: 800; color: var(--g-fg); }
.gs-grown { margin-top: 2px; padding: 10px 12px; border-radius: 14px; background: var(--g-soft); border: 1px dashed var(--g-line); display: flex; flex-direction: column; gap: 6px; }
.gs-grown-t { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; }
.gs-left { font-size: .82rem; font-weight: 800; color: var(--g-sage-ink); white-space: nowrap; }
.gs-left.is-none { color: var(--g-fg3); }
.gs-grown-m { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--g-fg2); }
.gs-admin-stock { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: var(--g-fg2); }
.gs-admin-stock input { width: 64px; }
/* 오른쪽 메뉴: 다음 미션 */
.g-mission { margin-top: 16px; padding: 12px 14px 14px; border-radius: 18px; background: var(--g-soft); border: 1px solid var(--g-line2); }
.g-mission .g-stitle { margin: 0 0 6px; }
.g-mission-m { margin: 0; font-size: .88rem; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.g-mission-p { margin: 0 0 10px; font-size: .78rem; color: var(--g-fg2); }
.g-mission .g-btn { width: 100%; }
/* 나의 보관함 */
.gst-body { display: block; }
.gst-box summary { overflow: hidden; }
.gst-sum { float: right; font-size: .78rem; font-weight: 700; color: var(--g-fg3); }
.gst-total { display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 0 14px 6px; font-size: .86rem; color: var(--g-fg2); }
.gst-total b { font-size: 1.3rem; color: var(--g-fg); font-variant-numeric: tabular-nums; }
.gst-box .g-wl-note { padding: 0 14px; }
.gst-steps { list-style: none; margin: 0; padding: 0 14px 12px; display: grid; gap: 8px; }
.gst-step { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--g-line2); }
.gst-step:last-child { border-bottom: 0; }
.gst-chk { width: 24px; height: 24px; border-radius: 999px; border: 2px solid var(--g-sage-line); display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; }
.gst-step.is-done .gst-chk { background: #2F6B4F; border-color: #2F6B4F; }
.gst-st { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gst-st b { font-size: .9rem; }
.gst-st small { font-size: .78rem; line-height: 1.45; color: var(--g-fg2); word-break: keep-all; }
.gst-step.is-done .gst-st b { color: var(--g-fg2); }
.gst-step.is-soon { opacity: .7; }
.gst-soon { font-size: .7rem; font-weight: 700; color: var(--g-fg3); }
.gst-bar { display: block; height: 8px; margin: 4px 0 0; }
.gst-bar .g-bar-fill { display: block; }
.gst-go { min-height: 36px; padding: 0 12px; font-size: .8rem; white-space: nowrap; }
.g-wl-list b.is-in { color: var(--g-accent); }
@media (max-width: 520px) { .gst-step { grid-template-columns: 26px 1fr; } .gst-go { grid-column: 2; justify-self: start; } }
/* 품목 판의 단추가 셋 넘으면 줄을 바꾼다(거두기·베기·팔기·캐내기) */
.gf-s-acts { flex-wrap: wrap; }
.gf-s-acts .g-btn { flex: 0 1 auto; white-space: nowrap; }
.gs-grown .gs-buy { flex-wrap: wrap; justify-content: flex-end; }
.gs-grown .gs-have { display: none; }
.gs-grown .gs-go { white-space: nowrap; }
.gs-admin-stock { flex: 1 0 100%; }

/* 하우스(유리 온실) — 스토어 카드 · 내 땅 판 (20261024_0100) */
.gs-house { grid-column: 1 / -1; background: var(--g-soft); }
.gs-house-list { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: .84rem; line-height: 1.5; color: var(--g-fg2); }
.gf-house-m { color: var(--g-sage-ink); font-size: .84rem; line-height: 1.5; }
/* ── 건축(build.js): 건재상 모델하우스 · 교회 건축헌금 · 첫 화면 교회 (2026-10-23) ── */
.gb-model { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: start; }
.gb-model-img img { width: 132px; height: 132px; object-fit: contain; }
.gb-model-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gb-model-t { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.gb-model-t b { font-size: 1.02rem; }
.gb-model-t small { color: var(--g-fg2); font-size: .8rem; line-height: 1.4; }
.gb-need { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .84rem; color: var(--g-fg2); }
.gb-need li { display: flex; gap: 6px; align-items: baseline; }
.gb-need li.is-ok { color: #2F6B4F; }
.gb-chk { display: inline-block; width: 1em; flex: 0 0 1em; font-weight: 700; }
.gb-note { margin-top: 4px; }
.gb-church { grid-column: 1 / -1; }
.gb-church-imgs { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.gb-church-imgs .gb-site { width: 150px; height: 150px; object-fit: contain; }
.gb-church-imgs .gb-goal { width: 96px; height: 96px; object-fit: contain; opacity: .55; }
.gb-bar { display: block; }
.gb-bar .g-bar-fill { display: block; }
.gb-sum, .gb-mine { margin: 0; font-size: .9rem; }
.gb-sum { font-weight: 700; }
.gb-mine { color: var(--g-fg2); }
.gb-offer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gb-amt input { width: 120px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--g-line); background: #fff; font: inherit; font-size: 1rem; color: var(--g-fg); }
.gb-u { color: var(--g-fg2); font-size: .88rem; }
.gb-admin { border-top: 1px dashed var(--g-line); margin-top: 6px; padding-top: 10px; display: grid; gap: 8px; }
.gb-stop { justify-self: start; }
.gb-none { grid-column: 1 / -1; }
.gb-plans { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gb-plan { align-items: center; text-align: center; }
.gb-plan img { width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: contain; }
.gb-plan .gb-model-t { align-items: center; }
.gb-plan.is-open { grid-column: 1 / -1; }
.gb-start { display: grid; gap: 8px; justify-items: center; }
.gb-start label { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--g-fg2); }
.gb-start input { width: 130px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--g-line); background: #fff; font: inherit; font-size: 1rem; }
.gb-built { grid-column: 1 / -1; }
.gb-mine-s { color: var(--g-fg2); margin-left: 6px; }
@media (max-width: 560px) {
  .gb-model { grid-template-columns: 96px 1fr; }
  .gb-model-img img { width: 96px; height: 96px; }
  .gb-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .gb-plan { padding: 8px; }
  .gb-plan .gb-pick { font-size: .78rem; padding: 6px 8px; white-space: normal; }
}
/* 첫 화면 먼 언덕 위 교회(누르면 교회 건축) */
.g-church { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: flex-end; gap: 6px; }
.g-church-img { width: auto; filter: drop-shadow(0 4px 5px rgba(80,60,40,.22)); }
.g-church.is-open { cursor: pointer; }
.g-church.is-open:focus-visible { outline: 3px solid var(--g-coral); outline-offset: 4px; border-radius: 8px; }
/* 안내 풍선은 장면 층(plot) 맨 위에 따로 — 교회 받침 바로 아래 가운데(left·top 은 scene.js CHURCH_AT) */
.g-church-hint { position: absolute; z-index: 960; transform: translate(-50%, -100%); margin: 0; border: 0; font: inherit; white-space: nowrap; font-size: 15px; font-weight: 800; color: #fff; background: var(--g-coral, #e9805f); border-radius: 999px; padding: 7px 16px; box-shadow: 0 4px 12px rgba(80,60,40,.28); animation: g-church-bob 1.6s ease-in-out infinite; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.g-church-hint::after { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
@keyframes g-church-bob { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, -100%) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .g-church-hint { animation: none; } }
.g-church-tag { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); white-space: nowrap; font-size: 15px; font-weight: 700; color: #4a3b31; background: rgba(255,250,243,.92); border: 1px solid #e6d6c3; border-radius: 999px; padding: 2px 10px; }

/* ===== 첫 화면 맨 위 가운데 정돈 (2026-10-25 담임목사 "정리가 안 되어 있습니다") =====
   예배 띠 · 단추 줄(종료·방송실·설교하기) · 정원 들어가기+날씨 · 화면 돌리기를 한 묶음(.g-top)에 위에서 아래로 차례로 쌓는다.
   예전엔 각자 position: fixed 에 '띠가 있으면 몇 px 아래로' 규칙을 따로 줘서, 단추가 늘 때마다 서로 겹쳤다.
   · 태블릿·PC(761px~): 묶음이 두 패널 사이 가운데에 서고, 자식들은 흐름대로 배치(서로 밀어 줌)
   · 휴대폰(~760px): 묶음을 풀어(display: contents) 예전처럼 각자 제 자리 */
@media (min-width: 761px) {
  .g-top { position: fixed; z-index: 3; top: calc(var(--g-hdr) + 14px); left: 50%; transform: translateX(-50%);
    width: calc(100% - 2 * (var(--g-panel-w) + 40px)); min-width: 260px; max-width: 760px;
    display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
  .g-top > *, .g-top .g-wx-float > * { pointer-events: auto; }
  .g-top .g-banner { position: static; transform: none; max-width: 100%; }
  .g-top .g-pills { position: static; transform: none; max-width: 100%; }
  .g-top .g-wx-float, body.g-has-banner .g-top .g-wx-float, body.g-has-banner.g-has-pill .g-top .g-wx-float { position: static; top: auto; right: auto; left: auto; max-width: 100%; justify-content: center; flex-wrap: wrap; pointer-events: none; }
  .g-top .g-rotate, body.g-has-banner .g-top .g-rotate, body.g-has-banner.g-has-pill .g-top .g-rotate { position: static; top: auto; left: auto; }
  .g-top .g-rotate[hidden], .g-top .g-banner[hidden] { display: none; }
  .g-top .g-pills:not(:has(> :not([hidden]))), .g-top .g-wx-float:not(:has(> :not([hidden]))) { display: none; }   /* 보이는 단추가 하나도 없으면 줄 자체를 없앤다(빈 줄 간격 방지) */
  /* 알림(토스트)은 묶음과 겹치지 않게 아래쪽(하단 바 위)으로 */
  .g-toast, body.g-has-banner .g-toast, body.g-has-banner.g-has-pill .g-toast { top: auto; bottom: calc(var(--g-bar) + 34px); }
}
@media (max-width: 760px) { .g-top { display: contents; } }
.g-root[data-mode="gate"] .g-top, .g-root[data-mode="loading"] .g-top { display: none; }
