@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

:root {
  --bg: #f7f2e8;
  --surface: #ffffff;
  --surface-2: #efe7d6;
  --ink: #1f2a24;
  --muted: #5f6e66;
  --line: #e2d8c4;
  /* 로고의 올리브 · 세이지 톤 */
  --forest: #2f3b2c;
  --forest-2: #4a5b45;
  --leaf: #7d9670;
  --leaf-soft: #e4ebdc;
  --clay: #d9822b;
  --clay-soft: #fbe7d0;
  --sun: #f4b400;
  --sun-soft: #fff3c4;
  --danger: #b83227;
  --danger-soft: #fbe3e0;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 6px 20px rgba(31, 42, 36, 0.08);
  --shadow-lg: 0 14px 40px rgba(31, 42, 36, 0.16);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-play: 'Jua', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }
main { min-height: 60vh; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.section { padding: 56px 0; }
.section-tight { padding: 28px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 6px; letter-spacing: -0.02em; line-height: 1.3; }
.section-sub { color: var(--muted); margin: 0 0 24px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--forest-2); background: var(--leaf-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 헤더 ---------- */
.demo-ribbon { background: var(--sun-soft); color: #6b5200; text-align: center; font-size: 0.8rem; padding: 4px 8px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { height: 42px; width: auto; }
.brand-word { height: 24px; width: auto; }
.footer-logo { display: block; width: min(230px, 70%); height: auto; margin-bottom: 14px; }
.hero-mark { display: block; height: 72px; width: auto; margin-bottom: 14px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--forest); color: #fff; }
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; text-decoration: none; font-size: 1.2rem; background: var(--surface-2); }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--clay); color: #fff; font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.share-btn { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.share-btn:hover { background: var(--line); }
.me-link { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.me-link:hover { background: var(--line); }
.me-link.active { background: var(--forest); color: #fff; }
.brand, .share-btn, .me-link, .cart-link { flex: none; }
@media (min-width: 761px) {
  .header-inner { gap: 10px; }
  .nav { gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 8px 8px; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .share-btn-label, .me-link-label { display: none; }
  .share-btn, .me-link { width: 42px; padding: 0; justify-content: center; }
}
@media (max-width: 760px) {
  .share-btn { margin-left: auto; }
  .share-btn + .me-link + .cart-link, .share-btn + .cart-link { margin-left: 0; }
  .header-inner { flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  .nav { order: 3; width: 100%; margin: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 7px 12px; font-size: 0.92rem; }
  .cart-link { margin-left: auto; }
  .brand-mark { height: 36px; }
  .brand-word { height: 20px; }
}
@media (max-width: 420px) {
  .share-btn-label { display: none; }
  .share-btn, .me-link { padding: 0 9px; }
  .header-inner { gap: 6px; }
}
@media (max-width: 340px) { .me-link-label { display: none; } }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.12s ease, background 0.12s ease; background: var(--surface-2); color: var(--ink); text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .chip:focus-visible, .tab:focus-visible, .choice:focus-visible, .quiz-opt:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); }
.btn-accent { background: var(--clay); color: #fff; }
.btn-accent:hover { background: #c47220; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #fff; color: var(--forest); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.88rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.08rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- 메인 히어로 ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #243021 0%, #3d4c39 55%, #5d7154 100%); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 64px 0 96px; }
.hero .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.03em; }
.hero p { color: rgba(255, 255, 255, 0.86); font-size: 1.08rem; margin: 0 0 26px; }
.hero-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero-photos .img-wrap { aspect-ratio: 1; border-radius: 22px; box-shadow: var(--shadow-lg); }
.hero-photos .img-wrap:nth-child(even) { transform: translateY(22px); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 48px; gap: 28px; }
  .hero-photos { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hero-photos .img-wrap { border-radius: 14px; }
  .hero-photos .img-wrap:nth-child(even) { transform: none; }
}

/* ---------- 이미지 ---------- */
.img-wrap { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--leaf-soft), var(--sun-soft)); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-wrap.img-missing::after { content: attr(data-emoji); position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(2rem, 7vw, 3.4rem); }

/* ---------- 입구 카드 ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -52px; position: relative; z-index: 2; }
.entry-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); text-decoration: none; border: 1px solid var(--line); transition: transform 0.15s, box-shadow 0.15s; }
.entry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.entry-icon { font-size: 2.2rem; line-height: 1; }
.entry-card h3 { margin: 0; font-size: 1.25rem; }
.entry-card p { margin: 0; color: var(--muted); }
.entry-card .go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--forest-2); }
.entry-card.play { background: linear-gradient(160deg, #fff7d6, #ffe6c2); border-color: #f0d49c; }
.entry-card.play h3 { font-family: var(--font-play); font-weight: 400; font-size: 1.45rem; }
@media (max-width: 860px) { .entry-grid { grid-template-columns: 1fr; margin-top: 20px; } }

/* ---------- 가치 · 종 소개 · 진행 순서 ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.section-alt .value { background: var(--bg); }
.value-icon { font-size: 1.9rem; }
.value h3 { margin: 8px 0 6px; font-size: 1.12rem; }
.value p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

.species-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.species-card { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; transition: transform 0.15s; }
.species-card:hover { transform: translateY(-3px); }
.species-card .img-wrap { aspect-ratio: 1; }
.species-card .body { padding: 12px 14px 14px; }
.species-card h3 { margin: 0; font-size: 1rem; }
.species-card p { margin: 4px 0 0; font-size: 0.84rem; color: var(--muted); }
@media (max-width: 900px) {
  .species-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(170px, 46%); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .species-card { scroll-snap-align: start; }
}

.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; padding: 0; margin: 0; }
.howto li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.howto li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--clay); color: #fff; font-weight: 800; margin-bottom: 10px; }
.howto strong { display: block; margin-bottom: 4px; }
.howto span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .howto { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .howto { grid-template-columns: 1fr; } }

.info-box { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--forest); color: #fff; border-radius: var(--radius-lg); padding: 28px; }
.info-box h2 { margin: 0 0 6px; }
.info-box p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.phone-big { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); font-weight: 800; letter-spacing: 0.02em; margin: 8px 0; }
@media (max-width: 700px) { .info-box { grid-template-columns: 1fr; } }

/* ---------- 페이지 제목 ---------- */
.page-head { padding: 36px 0 12px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.3; }
.page-head p { margin: 0; color: var(--muted); }

/* ---------- 카드 목록 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cards > .empty { grid-column: 1 / -1; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card-media { position: relative; }
.card-media .img-wrap { aspect-ratio: 4 / 3; }
.card-media .status { position: absolute; top: 10px; left: 10px; z-index: 1; }
.example-flag { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; }
.card-body { padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; }
.card-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; color: var(--muted); font-size: 0.88rem; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; width: 100%; }
.card-actions .btn { flex: 1; padding-inline: 10px; }
.card.is-sold .card-media { filter: grayscale(0.7); opacity: 0.7; }
.price { font-weight: 800; font-size: 1.15rem; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.status-available, .status-approved { background: var(--leaf-soft); color: #1b6b43; }
.status-reserved, .status-pending { background: var(--sun-soft); color: #7a5a00; }
.status-sold { background: #e9e9e9; color: #555; }
.status-rejected { background: var(--danger-soft); color: var(--danger); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-emoji { font-size: 2.6rem; margin-bottom: 6px; }

/* ---------- 칩 · 탭 ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 0.92rem; }
.chip[aria-pressed='true'] { background: var(--forest); border-color: var(--forest); color: #fff; }
.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 20px; }
.tab { border: 0; background: transparent; padding: 9px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; color: var(--muted); white-space: nowrap; }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- 알림 박스 ---------- */
.notice { background: var(--leaf-soft); border-radius: 14px; padding: 14px 16px; color: #1d4d36; }
.notice-warn { background: var(--sun-soft); color: #5c4600; }
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.notice p { margin: 0; }
.notice strong { display: block; margin-bottom: 2px; }

/* ---------- 폼 ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > label, .field-label { font-weight: 700; font-size: 0.97rem; }
.hint { font-size: 0.84rem; color: var(--muted); margin: 0; }
input[type='text'], input[type='tel'], input[type='password'], input[type='number'], input[type='date'], input[type='email'], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 1rem;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.25); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--forest); flex: none; }
.pin-input { letter-spacing: 0.5em; text-align: center; font-size: 1.4rem !important; font-weight: 700; }
.error { color: var(--danger); font-weight: 600; font-size: 0.9rem; margin: 0; }
.toggle-group { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { display: inline-block; border: 1.5px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.toggle input:checked + span { background: var(--leaf-soft); border-color: var(--leaf); color: #1b5e3b; }
.toggle input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.toggle-lg span { font-size: 1.6rem; padding: 6px 12px; }
.counter { font-size: 0.8rem; color: var(--muted); text-align: right; }

/* ---------- 모달 · 토스트 ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(20, 28, 24, 0.55); display: grid; place-items: center; padding: 16px; animation: fade 0.15s; }
.modal { position: relative; background: #fff; border-radius: var(--radius-lg); width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 30px 22px 22px; box-shadow: var(--shadow-lg); animation: pop 0.18s ease; }
.modal-wide { width: min(860px, 100%); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; font-size: 1rem; z-index: 3; }
/* 공유하기 창 */
.hero-share { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 4px; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; opacity: 0.92; }
.hero-share:hover { opacity: 1; }
.share-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px; border-radius: 20px; background: var(--surface-2); }
.share-band .section-title, .share-band .section-sub { margin-bottom: 0; }
.share-band .section-sub { margin-top: 6px; }
.share-url { margin: 0 0 14px; word-break: break-all; }
.share-invite { margin: 0 0 10px; }
.share-native { margin-bottom: 14px; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.share-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 0.84rem; color: var(--ink); text-decoration: none; cursor: pointer; }
.share-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); font-size: 1.4rem; font-weight: 800; font-family: Arial, sans-serif; color: #fff; }
.share-item:hover .share-icon { filter: brightness(0.94); }
.share-kakao { background: #fee500; }
.share-sms, .share-copy { background: var(--surface-2); }
.share-band { background: #2db400; }
.share-naver { background: #03c75a; }
.share-facebook { background: #1877f2; }
.share-x { background: #111; }
.share-line { background: #06c755; }
.modal-title { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.35; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: 0.2s; z-index: 200; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.detail > .img-wrap { aspect-ratio: 1; border-radius: var(--radius); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; font-size: 0.95rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
.care { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.care summary { cursor: pointer; font-weight: 700; }
@media (max-width: 700px) { .detail { grid-template-columns: 1fr; } }

/* 책임 사육 서약 */
.pledge-q { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; margin: 0 0 12px; }
.pledge-q legend { font-weight: 700; padding: 0 6px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 6px 4px; cursor: pointer; }
.opt input { accent-color: var(--forest); width: 18px; height: 18px; flex: none; }
.pledge-q.wrong { border-color: var(--danger); background: var(--danger-soft); }
.pledge-q.right { border-color: var(--leaf); background: #f1fbf4; }
.pledge-explain { font-size: 0.88rem; margin: 6px 0 0; }

/* ---------- 예약 프로그램 ---------- */
.program-list { display: grid; gap: 14px; }
.program { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.program-icon { font-size: 2rem; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--leaf-soft); }
.program h3 { margin: 4px 0; font-size: 1.1rem; }
.program p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.program .row { gap: 6px; }
.point-flag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--sun-soft); color: #7a5a00; font-size: 0.78rem; font-weight: 700; }
@media (max-width: 640px) {
  .program { grid-template-columns: auto 1fr; }
  .program .btn, .program-actions { grid-column: 1 / -1; }
}

/* ---------- 장바구니 ---------- */
.layout-2 { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-item .img-wrap { width: 84px; height: 84px; border-radius: 12px; }
.cart-item.problem { opacity: 0.7; }
.cart-item-name { font-weight: 700; margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.link-btn { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 4px; font-size: 0.85rem; }
.summary { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.2rem; font-weight: 800; }
@media (max-width: 860px) { .layout-2 { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 480px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item .img-wrap { width: 64px; height: 64px; } .cart-item > :last-child { grid-column: 1 / -1; justify-self: end; } }

/* ---------- 푸터 ---------- */
.site-footer { background: #1f281d; color: rgba(255, 255, 255, 0.75); padding: 40px 0 28px; margin-top: 40px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.site-footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: flex-start; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   관찰 탐험대 (아이들용 화면)
   ========================================================= */
body.play { background: #fff8e6; }
.play h1, .play h2, .play-title { font-family: var(--font-play); font-weight: 400; letter-spacing: 0; }
.play .page-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.panel { background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); border: 2px solid #f1e3c2; }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin: 0 0 12px; font-size: 1.45rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }

.explorer-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.5rem; background: var(--sun-soft); border: 3px solid #fff; box-shadow: var(--shadow); flex: none; }
.level-name { font-family: var(--font-play); font-size: 1.6rem; line-height: 1.2; }
.progress { height: 14px; background: #f1e8d3; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--leaf), #b7c9a8); border-radius: 999px; transition: width 0.6s ease; }
.progress-gold .progress-bar { background: linear-gradient(90deg, #f4b400, #ffd666); }
.points-big { font-family: var(--font-play); font-size: 2.4rem; color: #a87600; line-height: 1.1; }
.can-redeem { animation: shine 1.6s ease-in-out infinite; }
@keyframes shine { 50% { box-shadow: 0 0 0 8px rgba(244, 180, 0, 0.28); } }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.dash-grid .panel + .panel { margin-top: 0; }
@media (max-width: 760px) {
  .dash-grid { grid-template-columns: 1fr; }
  .explorer-hero { grid-template-columns: auto 1fr; }
  .explorer-hero > :last-child { grid-column: 1 / -1; }
}

.profile-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.profile-btn { display: grid; justify-items: center; gap: 8px; padding: 18px 10px; border-radius: 20px; border: 3px solid transparent; background: #fff; box-shadow: var(--shadow); cursor: pointer; font-family: var(--font-play); font-size: 1.15rem; }
.profile-btn:hover { border-color: var(--clay); }
.profile-btn.add { border: 3px dashed #e5cf9f; box-shadow: none; background: transparent; color: var(--muted); }
.avatar-pick .toggle span { font-size: 1.8rem; padding: 6px 10px; }

.dex-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.dex-item { text-align: center; font-size: 0.8rem; }
.dex-item .img-wrap { aspect-ratio: 1; border-radius: 16px; border: 3px solid #fff; box-shadow: var(--shadow); margin-bottom: 4px; }
.dex-item.locked .img-wrap img { filter: brightness(0) opacity(0.22); }
.dex-item.locked .img-wrap { background: #eee6d4; }
.dex-item.locked .img-wrap.img-missing::after { filter: grayscale(1); opacity: 0.25; }
.dex-name { font-weight: 700; line-height: 1.3; }
.dex-count { color: var(--forest-2); font-weight: 700; }
@media (max-width: 520px) { .dex-grid { grid-template-columns: repeat(3, 1fr); } }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--sun-soft); }
.badge-emoji { font-size: 2rem; line-height: 1.2; }
.badge-name { font-weight: 700; font-size: 0.84rem; }
.badge-prog { font-size: 0.74rem; color: var(--muted); }
.badge.locked { background: #f3efe6; }
.badge.locked .badge-emoji { filter: grayscale(1); opacity: 0.4; }

.ticket-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: linear-gradient(120deg, #ffe9b8, #ffd6a5); border-radius: 20px; padding: 18px; }
.ticket-card .ticket-emoji { font-size: 2.4rem; }
.ticket-card h3 { margin: 0; font-family: var(--font-play); font-weight: 400; font-size: 1.35rem; }
.ticket-card p { margin: 0; font-size: 0.9rem; }
@media (max-width: 560px) { .ticket-card { grid-template-columns: auto 1fr; } .ticket-card .btn { grid-column: 1 / -1; } }
.code-input { text-transform: uppercase; letter-spacing: 0.3em; text-align: center; font-size: 1.4rem !important; font-weight: 800; }

.big-choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.choice { border: 3px solid transparent; background: #fff; border-radius: 20px; padding: 0; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); text-align: center; font-family: var(--font-play); font-size: 1.1rem; }
.choice .img-wrap { aspect-ratio: 1; }
.choice > span { display: block; padding: 10px 6px; }
.choice:hover, .choice[aria-pressed='true'] { border-color: var(--clay); }

.stepper { display: flex; gap: 6px; margin-bottom: 16px; }
.stepper span { flex: 1; height: 8px; border-radius: 999px; background: #f1e8d3; }
.stepper span.done { background: var(--leaf); }
.stepper span.now { background: var(--clay); }
.mission-top { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-bottom: 14px; }
.mission-top .img-wrap { aspect-ratio: 1; border-radius: 18px; }
.mission-icon { font-size: 2.2rem; line-height: 1; }
.mission-prompt { font-size: 1.12rem; margin: 6px 0 0; }
.divider-label { display: flex; align-items: center; gap: 10px; color: var(--clay); font-family: var(--font-play); font-size: 1.2rem; margin: 18px 0 8px; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 2px; background: #f1e3c2; }
.quiz-q { font-size: 1.18rem; font-weight: 700; margin: 4px 0 14px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 16px; font-size: 1.02rem; font-weight: 600; cursor: pointer; min-height: 54px; }
.quiz-opt:hover:not(:disabled) { border-color: var(--clay); }
.quiz-opt.correct { border-color: var(--leaf); background: var(--leaf-soft); }
.quiz-opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.quiz-opt:disabled { cursor: default; color: var(--ink); }
.quiz-explain { margin-top: 14px; }
.stars { font-size: 2.6rem; letter-spacing: 0.08em; }
@media (max-width: 520px) { .mission-top { grid-template-columns: 84px 1fr; } }

.celebrate { position: relative; z-index: 2; text-align: center; padding: 6px 4px; }
.celebrate-emoji { font-size: 4.5rem; line-height: 1.1; animation: bounce 1s ease infinite; }
.celebrate h2 { font-family: var(--font-play); font-weight: 400; font-size: 1.9rem; margin: 8px 0; }
@keyframes bounce { 50% { transform: translateY(-10px); } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.confetti i { position: absolute; top: -16px; width: 8px; height: 14px; border-radius: 2px; animation: drop 2s ease-in forwards; }
@keyframes drop { to { transform: translateY(520px) rotate(560deg); opacity: 0; } }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fbf4e3; border: 2px dashed #e2cfa5; display: grid; place-items: center; cursor: pointer; font-size: 0.85rem; color: var(--muted); text-align: center; padding: 6px; }
.photo-slot.filled { border-style: solid; padding: 0; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .plus { font-size: 1.8rem; display: block; }
.photo-remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.62); color: #fff; cursor: pointer; }

.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.album > .empty { grid-column: 1 / -1; }
.report-card { position: relative; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 2px solid #f1e3c2; cursor: pointer; text-align: left; padding: 0; font: inherit; }
.report-card .img-wrap { aspect-ratio: 4 / 3; }
.report-card .body { padding: 12px 14px 14px; }
.report-card h3 { margin: 0; font-family: var(--font-play); font-weight: 400; font-size: 1.2rem; }
.stamp { position: absolute; right: 10px; top: 10px; z-index: 2; transform: rotate(-10deg); border: 3px solid #1b6b43; color: #1b6b43; font-family: var(--font-play); font-size: 1rem; padding: 1px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.9); }
.stamp.pending { border-color: #a87600; color: #a87600; }
.stamp.rejected { border-color: var(--danger); color: var(--danger); }
.report-view .photo-grid img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---------- 관리자 ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: #fff; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.qr-box { display: grid; justify-items: center; gap: 10px; padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.qr-box canvas, .qr-box img { width: 220px; height: 220px; }
.code-big { font-size: 2.6rem; font-weight: 800; letter-spacing: 0.2em; font-family: ui-monospace, Consolas, monospace; }
.admin-report { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.admin-report + .admin-report { margin-top: 14px; }
.admin-report .photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 760px) { .admin-report { grid-template-columns: 1fr; } }

.img-wrap.thumb { width: 56px; height: 56px; border-radius: 10px; }
.img-wrap.thumb.img-missing::after { font-size: 1.6rem; }
.photo-preview { width: 120px; }
.photo-preview .img-wrap { aspect-ratio: 1; border-radius: 12px; }
.ledger { margin-top: 8px; }
.ledger .admin-table { font-size: 0.85rem; }
.delta-plus { color: #1b6b43; font-weight: 700; }
.delta-minus { color: var(--danger); font-weight: 700; }
details summary { cursor: pointer; }
.doc h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.doc p, .doc li { color: #34423b; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.92rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); }

/* ---------- 홈 화면 설치 안내 ---------- */
.install-sheet { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; width: min(560px, calc(100% - 24px)); display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow-lg); animation: pop 0.2s ease; }
.install-sheet img { border-radius: 12px; }
.install-text strong { display: block; }
.install-text p { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); }
.install-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- 랭킹 ---------- */
.rank-box { background: #fff; border: 2px solid #f1e3c2; border-radius: var(--radius-lg); padding: 18px 20px; }
.rank-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rank-head h3 { margin: 0; font-family: var(--font-play); font-weight: 400; font-size: 1.35rem; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--danger); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: shine 1.4s ease-in-out infinite; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank-list li { display: grid; grid-template-columns: 36px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fdf8ec; }
.rank-list li.me { background: var(--sun-soft); outline: 2px solid var(--sun); }
.rank-no { font-weight: 800; text-align: center; font-size: 1.1rem; }
.rank-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-pts { font-weight: 800; color: #a87600; }
.avatar-sm { width: 34px; height: 34px; font-size: 1.2rem; border-width: 2px; box-shadow: none; }

/* ---------- 오시는 길 ---------- */
.map-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch; }
.map-frame { position: relative; min-height: 360px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map-frame iframe, .map-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center; text-decoration: none; color: var(--ink);
  background-color: #eef1e8;
  background-image:
    linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, 0.95) 44%, rgba(255, 255, 255, 0.95) 48%, transparent 48%),
    linear-gradient(25deg, transparent 62%, rgba(255, 255, 255, 0.95) 62%, rgba(255, 255, 255, 0.95) 65%, transparent 65%),
    radial-gradient(circle at 24% 30%, rgba(125, 150, 112, 0.28), transparent 32%),
    linear-gradient(rgba(47, 59, 44, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 59, 44, 0.06) 1px, transparent 1px);
  background-size: auto, auto, auto, 28px 28px, 28px 28px;
}
.map-card img { height: 84px; width: auto; }
.map-card strong { font-size: 1.15rem; }
.map-card .pin-drop { font-size: 2.2rem; line-height: 1; }
.map-info { background: var(--forest); color: #fff; border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.map-info h3 { margin: 0; font-size: 1.3rem; }
.map-info p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.map-info .btn { margin-top: auto; }
@media (max-width: 760px) { .map-wrap { grid-template-columns: 1fr; } .map-frame { min-height: 300px; } }

/* ---------- 공지 · 후기 ---------- */
.notice-list { display: grid; gap: 12px; }
.notice-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.notice-item summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 700; }
.notice-item summary::-webkit-details-marker { display: none; }
.notice-item summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform 0.15s; }
.notice-item[open] summary::after { transform: rotate(180deg); }
.notice-body { padding: 0 18px 18px; white-space: pre-wrap; color: #34423b; }
.pin { font-size: 0.75rem; font-weight: 800; color: #fff; background: var(--clay); border-radius: 999px; padding: 2px 8px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.review-grid > .empty { grid-column: 1 / -1; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.review-card h3 { margin: 0; font-size: 1.05rem; }
.review-body { margin: 0; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-card.expanded .review-body { -webkit-line-clamp: unset; display: block; }
.review-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.review-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.stars-text { color: var(--sun); letter-spacing: 0.05em; font-size: 1.05rem; white-space: nowrap; }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick label { font-size: 2rem; color: #e2d8c4; cursor: pointer; line-height: 1; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--sun); }
.star-pick input:focus-visible + label { outline: 3px solid var(--leaf); border-radius: 6px; }
.type-pick { display: grid; gap: 8px; }
.type-pick label { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; cursor: pointer; }
.type-pick input { accent-color: var(--forest); width: 18px; height: 18px; }
.type-pick label:has(input:checked) { border-color: var(--leaf); background: #f1fbf4; }

/* ---------- 오늘의 활동 카드 ---------- */
.activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.activity-card { display: grid; gap: 2px; justify-items: start; align-content: start; padding: 16px; border-radius: 20px; background: #fff; border: 2px solid #f1e3c2; text-decoration: none; box-shadow: var(--shadow); transition: transform 0.15s; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.activity-card:hover { transform: translateY(-2px); border-color: var(--clay); }
.activity-card.done { border-color: var(--leaf); background: #f6faf2; }
.activity-emoji { font-size: 2rem; line-height: 1.1; }
.activity-card b { font-family: var(--font-play); font-weight: 400; font-size: 1.25rem; }
.activity-card span:last-child { font-size: 0.85rem; color: var(--muted); }
.activity-card.done span:last-child { color: #2f6b3c; font-weight: 700; }
@media (max-width: 860px) { .activity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) {
  .activity-card { padding: 12px; }
  .activity-card b { font-size: 1.1rem; }
}
.stepper span.right { background: var(--leaf); }
.stepper span.wrong { background: var(--danger); }

/* ---------- 내 도마뱀 키우기 ---------- */
.pet-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .pet-layout { grid-template-columns: 1fr; } }
.terra { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 8px solid #cdbf9f; box-shadow: var(--shadow); background: linear-gradient(#eef3f1, #d8e3de); }
.terra.bg-jungle { background: radial-gradient(circle at 12% 18%, rgba(58, 120, 60, 0.55) 0 16%, transparent 17%), radial-gradient(circle at 88% 14%, rgba(58, 120, 60, 0.5) 0 15%, transparent 16%), radial-gradient(circle at 62% 26%, rgba(90, 150, 80, 0.4) 0 12%, transparent 13%), linear-gradient(#d4ebc9, #8fbf7f); }
.terra.bg-desert { background: radial-gradient(ellipse at 18% 72%, #c98f55 0 22%, transparent 23%), radial-gradient(ellipse at 82% 68%, #b87a45 0 18%, transparent 19%), linear-gradient(#fde7bd, #e8b77a); }
.terra.bg-night { background: radial-gradient(circle at 20% 20%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 70% 28%, #fff 0 2px, transparent 3px), radial-gradient(circle at 45% 12%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 86% 52%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 30% 45%, #ffe9a8 0 2px, transparent 3px), linear-gradient(#1b2340, #434a85); }
.terra-sub { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; border-top: 4px solid rgba(0, 0, 0, 0.08); background: radial-gradient(#6f543a 1px, transparent 1.5px) 0 0 / 10px 10px, #8b6b4a; }
.terra.sub-moss .terra-sub { background: radial-gradient(circle, #86b163 0 5px, transparent 6px) 0 0 / 14px 14px, #5e8a42; }
.terra.sub-sand .terra-sub { background: radial-gradient(#f3d9a4 1px, transparent 1.5px) 0 0 / 8px 8px, #e6c98f; }
.terra.sub-bark .terra-sub { background: repeating-linear-gradient(35deg, #7a4e2d 0 8px, #8c5a35 8px 14px); }
.terra-item { position: absolute; line-height: 1; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.25)); }
.slot-light { top: 3%; left: 50%; transform: translateX(-50%); font-size: clamp(1.6rem, 5vw, 2.4rem); }
.slot-hide { left: 6%; bottom: 12%; font-size: clamp(2.6rem, 9vw, 4rem); }
.slot-plant1 { left: 2%; bottom: 24%; font-size: clamp(2.4rem, 8vw, 3.6rem); }
.slot-plant2 { right: 3%; bottom: 24%; font-size: clamp(2.4rem, 8vw, 3.6rem); }
.slot-decor1 { right: 20%; bottom: 7%; font-size: clamp(1.6rem, 5vw, 2.4rem); }
.slot-decor2 { left: 30%; bottom: 5%; font-size: clamp(1.4rem, 4.5vw, 2rem); }
.terra-pet { position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%); display: grid; justify-items: center; }
.pet-emoji { font-size: calc(clamp(3.6rem, 13vw, 6rem) * var(--scale, 1)); line-height: 1; display: inline-block; animation: pet-idle 2.4s ease-in-out infinite; }
.mood-great .pet-emoji { animation: pet-hop 1.3s ease-in-out infinite; }
.mood-sad .pet-emoji, .mood-gloomy .pet-emoji { animation: none; transform: translateY(6px) rotate(-8deg); opacity: 0.8; }
.pet-mood { position: absolute; right: -20px; top: -4px; font-size: 1.6rem; }
.bubble { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 10px; background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 0.85rem; font-weight: 600; width: max-content; max-width: min(280px, 72vw); text-align: center; box-shadow: var(--shadow); line-height: 1.4; }
.bubble::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }
@keyframes pet-idle { 50% { transform: translateY(-3px); } }
@keyframes pet-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } 60% { transform: translateY(-9px); } }
.gauge { display: grid; grid-template-columns: 5.5em 1fr 3.4em; gap: 8px; align-items: center; font-size: 0.9rem; margin: 6px 0; }
.gauge .progress { height: 12px; }
.gauge.low .progress-bar { background: linear-gradient(90deg, #e76f51, #f4a261); }
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.food-btn { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: 0.9rem; }
.food-btn:hover { border-color: var(--clay); }
.food-btn .emoji { font-size: 1.8rem; line-height: 1.2; }
.food-btn .price { font-size: 0.82rem; color: #a87600; }
.care-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.care-row .btn { padding-inline: 6px; }
.shop-slot + .shop-slot { margin-top: 16px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.shop-item { display: grid; gap: 4px; justify-items: center; align-content: start; text-align: center; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.shop-item.equipped { border-color: var(--leaf); background: #f3f8ef; }
.shop-item .emoji { font-size: 2rem; line-height: 1.2; }
.fit { font-size: 0.7rem; font-weight: 700; color: #3d5a2f; background: var(--leaf-soft); border-radius: 999px; padding: 1px 8px; }
.stars-comfort { color: var(--sun); letter-spacing: 0.05em; }

/* ---------- 성장 일기 ---------- */
.pet-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pet-card { background: #fff; border: 2px solid #f1e3c2; border-radius: 20px; overflow: hidden; text-align: left; padding: 0; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow); }
.pet-card:hover { border-color: var(--clay); }
.pet-card .img-wrap { aspect-ratio: 4 / 3; }
.pet-card .body { padding: 12px 14px 14px; }
.pet-card h3 { margin: 0; font-family: var(--font-play); font-weight: 400; font-size: 1.35rem; }
.pet-card.add { display: grid; place-items: center; min-height: 220px; border-style: dashed; background: transparent; box-shadow: none; color: var(--muted); text-align: center; font-weight: 700; }
.from-dc { display: inline-block; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--forest); border-radius: 999px; padding: 2px 9px; }
.chart { width: 100%; height: auto; background: #fdfaf2; border-radius: 14px; border: 1px solid var(--line); }
.log-list { display: grid; gap: 8px; }
.log-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* =========================================================
   3차: 커뮤니티 · 크루 · 챌린지 · 작품 갤러리 · 친구 초대
   ========================================================= */
.subnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 16px 0 2px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav-link { flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.92rem; background: #fff; border: 2px solid #f1e3c2; color: var(--muted); white-space: nowrap; }
.subnav-link:hover { border-color: var(--clay); color: var(--ink); }
.subnav-link.active { background: var(--forest); border-color: var(--forest); color: #fff; }

.author { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.author b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-xs { width: 26px; height: 26px; font-size: 0.95rem; border-width: 2px; box-shadow: none; }
.like-btn { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 0.88rem; cursor: pointer; min-height: 34px; }
.like-btn[aria-pressed='true'] { border-color: #f2a7a0; background: #fff1ef; }
.like-btn:disabled { opacity: 0.6; }
.meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.flag-btn { border: 0; background: none; color: var(--muted); font-size: 0.8rem; cursor: pointer; padding: 4px; text-decoration: underline; }

/* 자랑하기 · 작품 사진 카드 */
.brag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.brag-grid > .empty { grid-column: 1 / -1; }
.brag-card { text-decoration: none; display: flex; flex-direction: column; background: #fff; border: 2px solid #f1e3c2; border-radius: 20px; overflow: hidden; text-align: left; padding: 0; font: inherit; color: inherit; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.15s; }
.brag-card:hover { transform: translateY(-2px); border-color: var(--clay); }
.brag-card .img-wrap { aspect-ratio: 1; }
.brag-card .body { padding: 10px 12px 12px; display: grid; gap: 6px; }
.brag-card .snippet { margin: 0; font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brag-card h3 { margin: 0; font-family: var(--font-play); font-weight: 400; font-size: 1.2rem; }
.work-card { cursor: default; }
.work-card:hover { transform: none; }
.img-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
@media (max-width: 520px) { .brag-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .brag-card .body { padding: 8px 10px 10px; } }

/* 이야기 목록 */
.talk-list { display: grid; gap: 10px; }
.talk-item { display: grid; gap: 6px; background: #fff; border: 2px solid #f1e3c2; border-radius: 16px; padding: 14px 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.talk-item:hover { border-color: var(--clay); }
.talk-item h3 { margin: 0; font-size: 1.05rem; }
.talk-item .snippet { margin: 0; color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* 글 보기 · 댓글 */
.post-body { white-space: pre-wrap; margin: 0; font-size: 1.02rem; }
.post-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.post-photos img { width: 100%; border-radius: 14px; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.post-photos.single { grid-template-columns: 1fr; }
.post-photos.single img { aspect-ratio: auto; max-height: 460px; object-fit: contain; background: #f6f1e4; }
.comment-list { display: grid; gap: 8px; }
.comment { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #fdf8ec; }
.comment p { margin: 0; white-space: pre-wrap; font-size: 0.95rem; }

/* 크루 */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.crew-grid > .empty { grid-column: 1 / -1; }
.crew-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: #fff; border: 2px solid #f1e3c2; border-radius: 20px; padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform 0.15s; }
.crew-card:hover { transform: translateY(-2px); border-color: var(--clay); }
.crew-card.mine { border-color: var(--leaf); }
.crew-emoji { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; background: var(--sun-soft); }
.crew-card h3 { margin: 0; font-family: var(--font-play); font-weight: 400; font-size: 1.3rem; line-height: 1.25; }
.crew-card p { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); }
.streak { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: #c2410c; }
.streak.off { color: var(--muted); font-weight: 600; }
.crew-hero { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.crew-hero .crew-emoji { width: 84px; height: 84px; font-size: 3rem; border-radius: 24px; }
.crew-hero h2 { margin: 0; }
.big-streak { font-family: var(--font-play); font-size: 2rem; color: #c2410c; line-height: 1.1; }
.member-list { display: grid; gap: 8px; }
.member { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fdf8ec; }
.member.fed { background: #eef6e8; }
.member .check { font-size: 1.2rem; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.feed-grid > .empty { grid-column: 1 / -1; }
.feed-card { background: #fff; border: 2px solid #f1e3c2; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.feed-card .img-wrap { aspect-ratio: 1; cursor: zoom-in; }
.feed-card .body { padding: 8px 10px 10px; display: grid; gap: 4px; font-size: 0.88rem; }
.food-pick .toggle span { font-size: 0.92rem; }
@media (max-width: 520px) { .feed-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* 챌린지 */
.challenge-card { position: relative; overflow: hidden; background: linear-gradient(150deg, #fff7d6, #ffe2bd); border: 2px solid #f0d49c; border-radius: 28px; padding: 26px 22px; text-align: center; }
.challenge-emoji { font-size: 4rem; line-height: 1.1; }
.challenge-card h2 { font-family: var(--font-play); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 2vw, 2.3rem); margin: 6px 0; }
.challenge-goal { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.challenge-goal span { background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; box-shadow: var(--shadow); }
.claim-wall { display: flex; flex-wrap: wrap; gap: 8px; }
.claim-wall .author { background: #fdf8ec; border-radius: 999px; padding: 4px 12px 4px 4px; }

/* 친구 초대 */
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1; min-width: 0; font-size: 0.9rem !important; background: #fdfaf2 !important; }
.mod-thumb { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; cursor: zoom-in; }

/* =========================================================
   상담 · 문의 (Supabase + AI 상담)
   ========================================================= */
.consult-page { padding-bottom: 40px; }
.consult-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; margin-top: 18px; }
.consult-page .panel { border-color: var(--line); }
.consult-form-panel h2 { font-size: 1.25rem; }
.consult-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-panel { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: min(700px, calc(100dvh - 110px)); position: sticky; top: 80px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--forest); color: #fff; }
.chat-head h2 { margin: 0; font-size: 1.08rem; color: #fff; }
.chat-mark { font-size: 1.3rem; }
.chat-status { font-size: 0.74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); white-space: nowrap; }
.chat-status[data-status='waiting_admin'] { background: var(--sun); color: #3d2e00; }
.chat-forget { margin-left: auto; border: 0; background: none; color: rgba(255, 255, 255, 0.82); font-size: 0.8rem; text-decoration: underline; cursor: pointer; padding: 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #fbf8f1; overscroll-behavior: contain; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); max-width: 32ch; }
.chat-empty p { margin: 4px 0; }
.chat-empty-mark { font-size: 2.4rem; }
.msg { max-width: 86%; display: grid; gap: 3px; }
.msg-meta { font-size: 0.72rem; color: var(--muted); }
.msg-body { padding: 10px 13px; border-radius: 16px; white-space: pre-wrap; line-height: 1.6; font-size: 0.95rem; overflow-wrap: anywhere; }
.msg-customer { align-self: flex-end; justify-items: end; }
.msg-customer .msg-body { background: var(--forest); color: #fff; border-bottom-right-radius: 4px; }
.msg-customer.is-sending { opacity: 0.65; }
.msg-ai, .msg-admin { align-self: flex-start; }
.msg-ai .msg-body { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-admin .msg-body { background: var(--clay-soft); border: 1px solid #f0cfa6; border-bottom-left-radius: 4px; }
.msg-body.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg-body.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing-dot 1.2s infinite ease-in-out; }
.msg-body.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-body.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-divider { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.74rem; }
.chat-divider::before, .chat-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.chat-notice { font-size: 0.86rem; padding: 10px 12px; border-radius: 12px; background: var(--leaf-soft); color: #1d4d36; }
.chat-notice.warn { background: var(--sun-soft); color: #5c4600; }
.chat-notice.error { background: var(--danger-soft); color: var(--danger); }
.chat-notice .link-btn { color: inherit; font-weight: 700; padding: 0 2px; font-size: inherit; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; align-items: flex-end; }
.chat-compose textarea { min-height: 48px; max-height: 140px; resize: none; flex: 1; }
.chat-foot { margin: 0; padding: 0 14px 12px; background: #fff; font-size: 0.74rem; color: var(--muted); }
.consult-fab { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; border-radius: 999px; background: var(--clay); color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg); }
.consult-fab:hover { background: #c47220; }
@media (max-width: 899px) {
  .consult-layout { grid-template-columns: 1fr; }
  .chat-panel { position: static; height: min(640px, 80dvh); }
}
@media (max-width: 520px) {
  .consult-row { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .consult-fab { right: 12px; bottom: 12px; padding: 10px 14px; }
}
@media print { .consult-fab { display: none; } }

/* 관리자: 상담 기록 */
.consult-session { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.consult-session select { min-height: 36px; padding: 4px 10px; width: auto; }
.consult-thread { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; }
.admin-msg { padding: 8px 10px; border-radius: 10px; background: #f4f1e8; }
.admin-msg-ai { background: var(--leaf-soft); }
.admin-msg-admin { background: var(--clay-soft); }
.admin-msg-system { background: var(--danger-soft); font-size: 0.86rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
}

/* ---------- LIFE LAB 관찰 연구실 ---------- */
.ll-page { padding-bottom: 60px; }
.ll-badge { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: linear-gradient(90deg, #2f3b2c, #4f7a5b); padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; }
.ll-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 36px 0 24px; }
.ll-hero h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 12px; }
.ll-hero p { color: var(--muted); margin: 0 0 18px; }
.ll-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ll-steps li { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 0.86rem; color: var(--muted); }
.ll-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-soft); color: var(--forest); }
.ll-steps strong { display: block; color: var(--ink); font-size: 0.95rem; }
.ll-demo { background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.ll-demo-text { background: var(--surface-2); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-weight: 600; }
.ll-demo-arrow { font-weight: 800; color: var(--clay); text-align: center; }
.ll-demo-chips, .ll-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ll-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--leaf-soft); color: #22402e; font-size: 0.84rem; font-weight: 600; }
.ll-chip-warn { background: var(--sun-soft); color: #5c4600; }
.ll-auth { max-width: 560px; margin: 8px auto 0; }
.ll-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ll-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.ll-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.ll-stat-label { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.ll-stat-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; }
.ll-animals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ll-animal-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; box-shadow: var(--shadow); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ll-animal-card:hover { border-color: var(--leaf); }
.ll-animal-body { display: grid; gap: 3px; flex: 1; min-width: 0; }
.ll-animal-name { font-weight: 800; font-size: 1.08rem; }
.ll-mini-char { font-size: 0.88rem; font-weight: 700; color: var(--forest-2); }
.ll-progress-thin { height: 8px; }
.ll-add { justify-content: center; border-style: dashed; background: transparent; box-shadow: none; min-height: 112px; }
.ll-add-plus { font-size: 2rem; color: var(--leaf); }
.ll-avatar { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; background: var(--surface-2); }
.ll-avatar-emoji { display: grid; place-items: center; font-size: 2.2rem; }
.ll-avatar-lg { width: 104px; height: 104px; border-radius: 24px; font-size: 3rem; }
.ll-photo-pick { display: flex; align-items: center; gap: 14px; }
.ll-back { display: inline-block; margin: 20px 0 10px; font-weight: 700; color: var(--forest-2); text-decoration: none; }
.ll-profile { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.ll-profile h1 { margin: 0; font-size: 1.6rem; }
.ll-profile p { margin: 2px 0 10px; }
.ll-profile-actions { display: grid; gap: 8px; }
.ll-character { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 10px 14px; }
.ll-character-emoji { font-size: 2.2rem; }
.ll-character-body { flex: 1; display: grid; gap: 4px; }
.ll-character-name { font-weight: 800; }
.ll-compose textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; resize: vertical; min-height: 96px; background: #fffdf8; font-size: 1.02rem; }
.ll-days { margin-bottom: 10px; }
.ll-examples { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 8px 0 12px; }
.ll-compose-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ll-compose-actions .btn-accent { margin-left: auto; }
.ll-parsed { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 16px; display: grid; gap: 12px; }
.ll-parsed-head { display: grid; gap: 2px; }
.ll-edit summary { cursor: pointer; font-weight: 700; color: var(--forest-2); }
.ll-field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; align-items: end; }
.ll-field-grid input, .ll-field-grid select { width: 100%; }
.ll-chart { width: 100%; height: auto; display: block; }
.ll-axis { stroke: var(--line); stroke-width: 1.5; }
.ll-tick { fill: var(--muted); font-size: 12px; }
.ll-line { fill: none; stroke: var(--forest-2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ll-area { fill: rgba(125, 150, 112, 0.18); }
.ll-dot { fill: #fff; stroke: var(--clay); stroke-width: 3; }
.ll-chart-empty { background: var(--surface-2); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); }
.ll-timeline { display: grid; gap: 4px; }
.ll-record { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ll-record:last-child { border-bottom: 0; }
.ll-record-date { font-weight: 800; color: var(--forest-2); font-size: 0.92rem; padding-top: 2px; }
.ll-record-body p { margin: 0 0 6px; }
.ll-record-photo { max-width: 220px; border-radius: 12px; margin-top: 8px; }
.ll-record-meta { display: flex; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.ll-report-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ll-report-bar .tabs { margin: 12px 0; }
.ll-report-head { display: flex; gap: 18px; align-items: center; margin: 6px 0 16px; }
.ll-report-head h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.ll-report-head p { margin: 2px 0 0; }
.ll-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.ll-report-grid .panel + .panel { margin-top: 0; }
.ll-report .notice { margin: 18px 0; }
.ll-bar { display: grid; grid-template-columns: 110px 1fr 28px; gap: 8px; align-items: center; margin: 6px 0; font-size: 0.9rem; }
.ll-bar-track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.ll-bar-track div { height: 100%; background: linear-gradient(90deg, var(--leaf), #b7c9a8); border-radius: 999px; }
.ll-summary-text { font-size: 1.05rem; line-height: 1.8; white-space: pre-line; }
@media (max-width: 760px) {
  .ll-hero { grid-template-columns: 1fr; padding-top: 24px; }
  .ll-steps { grid-template-columns: 1fr; }
  .ll-profile { grid-template-columns: auto 1fr; }
  .ll-profile-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .ll-report-grid { grid-template-columns: 1fr; }
  .ll-record { grid-template-columns: 1fr; gap: 4px; }
  .ll-avatar-lg { width: 80px; height: 80px; font-size: 2.4rem; }
  .ll-head { flex-direction: column; }
}
@media print {
  .site-header, .site-footer, .consult-fab, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .ll-report .panel { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}

/* ---------- 예약 달력 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 16px; }
.bk-toolbar { align-items: center; gap: 8px; margin: 4px 0 12px; }
.bk-month { font-size: 1.15rem; min-width: 7.5em; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-head.sun, .cal-num.sun { color: #d0453a; }
.cal-head.sat, .cal-num.sat { color: #2f6fd6; }
.cal-cell { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 76px; padding: 6px 5px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; overflow: hidden; color: var(--ink); }
.cal-cell:hover { border-color: var(--leaf); }
.cal-blank { border: 0; background: none; cursor: default; }
.cal-cell.is-today { border-color: var(--clay); }
.cal-cell.is-selected { border-color: var(--forest); background: var(--leaf-soft); box-shadow: inset 0 0 0 1px var(--forest); }
.cal-cell.is-muted { background: var(--surface-2); color: var(--muted); }
.cal-cell.is-muted .cal-num { opacity: 0.55; }
.cal-num { font-weight: 800; font-size: 0.9rem; }
.cal-items { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-item { display: block; font-size: 0.7rem; line-height: 1.3; padding: 1px 4px; border-radius: 5px; background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--muted); }
.cal-item b { font-weight: 700; }
.chip-n { display: inline-block; min-width: 1.4em; margin-left: 2px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 0.8rem; text-align: center; }
.chip[aria-pressed='true'] .chip-n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.bk-list-head { margin: 4px 0 8px; font-size: 1.05rem; }
.bk-group { margin-top: 14px; }
.bk-group-title { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.cal-item.is-cancelled { text-decoration: line-through; opacity: 0.55; }
.cal-more { font-size: 0.7rem; color: var(--muted); }
.cal-free { font-size: 0.7rem; font-weight: 700; color: var(--forest); }
.cal-free.full { color: var(--danger); }
.src-site { border-left-color: var(--forest) !important; }
.src-naver { border-left-color: #03c75a !important; }
.src-ably { border-left-color: #ff4f6e !important; }
.src-phone { border-left-color: var(--clay) !important; }
.bk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.bk-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border-left: 10px solid var(--muted); }
.bk-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
.bk-summary span { display: block; font-size: 0.8rem; color: var(--muted); }
.bk-summary b { font-size: 1.35rem; }
.bk-day-title { margin: 20px 0 10px; font-size: 1.1rem; }
.bk-list { display: grid; gap: 12px; }
.bk-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.bk-card.is-cancelled { opacity: 0.6; }
.bk-card .row { gap: 6px; }
.bk-name { font-size: 1.2rem; font-weight: 800; margin: 8px 0 6px; }
.bk-dl { display: grid; grid-template-columns: 5em 1fr; gap: 4px 10px; margin: 0 0 12px; font-size: 0.93rem; }
.bk-dl dt { color: var(--muted); }
.bk-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.bk-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.bk-status.st-pending { background: var(--sun-soft); color: #7a5a00; }
.bk-status.st-confirmed { background: var(--leaf-soft); color: #1d4d36; }
.bk-status.st-done { background: #e6f0ff; color: #2456a6; }
.bk-status.st-cancelled { background: var(--danger-soft); color: var(--danger); }
.bk-src { display: inline-block; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--surface-2); border-left: 4px solid var(--muted); }
.bk-public-list { display: grid; gap: 6px; margin-bottom: 16px; }
.bk-public-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 0.93rem; }
.bk-form { padding-top: 4px; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.bk-time { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); }
.bk-time small { font-weight: 600; font-size: 0.72rem; color: var(--muted); }
.bk-time.is-on { border-color: var(--forest); background: var(--forest); color: #fff; }
.bk-time.is-on small { color: #e9f5ee; }
.bk-time:disabled { opacity: 0.45; cursor: not-allowed; }
.program-actions { min-width: 160px; }
@media (max-width: 640px) {
  .cal { gap: 2px; }
  .cal-cell { min-height: 58px; padding: 4px 3px; border-radius: 8px; }
  .cal-item, .cal-free, .cal-more { font-size: 0.62rem; }
  .cal-item { padding: 1px 2px; border-left-width: 2px; text-overflow: clip; text-align: center; }
  .cal-extra { display: none; }
  .bk-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cap-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 16px; background: var(--surface-2); text-align: center; cursor: pointer; }
.cap-drop:hover { border-color: var(--forest); }
.cap-rows { display: grid; gap: 12px; margin-top: 16px; max-height: 55vh; overflow-y: auto; padding-right: 4px; }
.cap-row { margin: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; }
.cap-row.is-dup { background: var(--surface-2); }
.cap-pick { margin-bottom: 8px; align-items: center; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.cap-grid label { display: grid; gap: 2px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.cap-grid .wide { grid-column: 1 / -1; }
.cap-grid input, .cap-grid select { font-size: 0.92rem; padding: 6px 8px; min-height: 0; }
.store-qr { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.store-qr-box { display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
@media (max-width: 640px) { .store-qr { grid-template-columns: 1fr; } }
.bk-status.st-noshow { background: #3a2a2a; color: #fff; }
.bk-card.is-noshow { opacity: 0.75; }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.bk-rules { margin: 10px 0 14px; display: grid; gap: 4px; }
.bk-mine { display: grid; gap: 6px; }
.bk-mine-actions { justify-content: flex-end; gap: 6px; }
.cal-off { display: inline-block; font-size: 0.7rem; font-weight: 800; color: var(--danger); }
.bk-day-head { align-items: center; gap: 8px; margin: 20px 0 10px; }
.bk-day-head .bk-day-title { margin: 0; }

/* ---------- 내 정보 ---------- */
.me-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.me-name { font-family: var(--font-play); font-size: 1.5rem; line-height: 1.2; }
.me-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.me-grid h2 { margin-top: 0; }
.me-list { list-style: none; margin: 0 0 12px; padding: 0; }
.me-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.me-list li > div { flex: 1; min-width: 0; }
.me-list li:last-child { border-bottom: 0; }
.me-emoji { font-size: 1.4rem; flex: none; }
.me-item-title { font-weight: 700; overflow-wrap: anywhere; }
.me-delta { font-weight: 800; white-space: nowrap; }
.me-delta.plus { color: #1b6b43; }
.me-delta.minus { color: var(--danger); }
.me-list .status, .me-list .bk-status { flex: none; }
@media (max-width: 760px) {
  .me-hero { grid-template-columns: auto 1fr; }
  .me-hero > .row { grid-column: 1 / -1; }
  .me-hero .avatar { width: 60px; height: 60px; font-size: 2rem; }
  .me-grid { grid-template-columns: 1fr; }
}

/* 이용 안내 */
.guide-jump { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 8px 0 8px; }
.guide-jump .chip { text-decoration: none; color: var(--ink); }
.guide-section { padding: 28px 0 4px; scroll-margin-top: 90px; }
.guide-section > h2 { font-size: 1.35rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.guide-section > .muted { margin: 0 0 14px; }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.guide-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--forest); }
.guide-card > span:last-child { color: var(--muted); font-size: 0.92rem; }
.guide-icon { font-size: 1.8rem; line-height: 1.2; }
@media (max-width: 860px) { .guide-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .guide-cards { grid-template-columns: 1fr; } }
.guide-steps { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.guide-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.95rem; }
.guide-table th, .guide-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.guide-table th { background: var(--surface-2); }
.guide-table td:last-child { font-weight: 800; color: var(--clay); white-space: nowrap; }
.guide-answer { padding: 0 18px 16px; color: var(--muted); }
.hero-links { gap: 0 18px; margin-top: 10px; }
.hero-links .hero-share { margin-top: 0; }
