/* 다방 (Davang) 웹앱 공통 스타일
   레이아웃: 휴대폰은 세로 한 줄 + 아래 고정 메뉴, PC(960px 이상)는 위쪽 가로 메뉴 + 넓은 여러 칸 배치 */
:root {
  /* 색: 주인님 로고의 커피색(갈색)과 퍼즐 조각의 크림색에서 가져옴 */
  --bg: #faf5ee;
  --surface: #ffffff;
  --ink: #2b1a10;
  --muted: #5b4738;
  --line: #e4d6c4;
  --tea: #844414;
  --tea-strong: #5e2f0e;
  --tea-soft: #f5e8d5;
  --on-tea: #ffffff;
  color-scheme: light;
  --gold: #b7790a;
  --gold-soft: #fbefd2;
  --gold-ink: #6b4500;
  --danger: #b3261e;
  --danger-soft: #fbe3e1;
  --kakao: #fee500;
  --kakao-ink: #191600;
  --shadow: 0 1px 2px rgba(20, 40, 32, .06), 0 6px 18px rgba(20, 40, 32, .07);

  --font-display: "IBM Plex Sans KR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: "IBM Plex Sans KR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --radius: 18px;
  --tap: 60px;
  --base-size: 20px;
}
:root[data-size="big"] { --base-size: 23px; }

* { box-sizing: border-box; }
html { font-size: var(--base-size); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-text-size-adjust: 100%;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--surface);
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea, select { color: var(--ink); -webkit-text-fill-color: var(--ink); caret-color: var(--tea); }
input::placeholder, textarea::placeholder { color: var(--muted); -webkit-text-fill-color: var(--muted); opacity: .8; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 머리글 ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 10px;
  display: flex; align-items: center; gap: 12px;
}
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; }
.logo-img { display: block; height: 46px; width: auto; max-width: 100%; }
.logo-mark { font-family: var(--font-display); font-size: 1.75rem; color: var(--tea); line-height: 1; }
.logo-sub { font-size: .6rem; letter-spacing: .18em; color: var(--muted); font-weight: 700; }
.top-nav { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; flex: none;
  border: 2px solid transparent; background: none; cursor: pointer;
}
.chip-points { background: var(--gold-soft); color: var(--gold-ink); }
.chip-points .p-badge {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--surface);
  display: grid; place-items: center; font-size: .7rem; font-weight: 900;
}
.chip-me { background: var(--tea-soft); color: var(--tea-strong); }
.chip-size { border-color: var(--line); color: var(--muted); padding: 0 12px; }
.chip-size b { font-size: 1.05rem; }

/* ---------- 본문 ---------- */
.page {
  max-width: 1240px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px calc(110px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 28px;
}
.demo-note {
  font-size: .8rem; color: var(--muted); background: var(--surface);
  border: 1px dashed var(--line); border-radius: 12px; padding: 8px 14px;
}
.section { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.more { font-weight: 700; color: var(--tea); text-decoration: none; font-size: .9rem; padding: 8px 4px; }
.lead { color: var(--muted); font-size: .95rem; }
.back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 48px;
  padding: 0 16px 0 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface);
  text-decoration: none; font-weight: 700; font-size: .9rem;
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 24px; border-radius: 14px; border: 2px solid transparent;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--tea); color: var(--on-tea); }
.btn-primary:hover { background: var(--tea-strong); }
.btn-gold { background: var(--gold); color: var(--surface); }
.btn-line { background: var(--surface); border-color: var(--tea); color: var(--tea-strong); }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 200px; }

/* ---------- 홈 ---------- */
.home-grid { display: grid; gap: 28px; }
.hero {
  background: var(--tea); color: var(--on-tea); border-radius: 24px; padding: 26px 22px;
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid currentColor; opacity: .08;
}
.hero h1 { font-size: 1.8rem; }
.hero p { font-size: 1rem; opacity: .92; }
.hero .btn { background: var(--surface); color: var(--tea-strong); align-self: flex-start; }
.hero-text { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.hero-shot {
  position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 16px; overflow: hidden; text-decoration: none;
  background: linear-gradient(135deg, var(--g, #844414), color-mix(in srgb, var(--g, #844414) 55%, #000));
  border: 4px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.hero-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shot-glyph { font-size: 4.5rem; font-weight: 800; color: #fff; opacity: .9; }
.hero-shot-tag {
  position: absolute; left: 10px; top: 10px; font-style: normal; font-weight: 700; font-size: .95rem;
  background: rgba(255, 255, 255, .95); color: var(--tea-strong); padding: 6px 12px; border-radius: 999px;
  max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.today {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; min-width: 0;
}
.stat-label { font-size: .85rem; color: var(--muted); font-weight: 700; }
.stat-value { overflow-wrap: anywhere; font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .9rem; font-weight: 700; color: var(--muted); }
.stat-gold .stat-value { color: var(--gold); }
.services { display: grid; grid-template-columns: 1fr; gap: 12px; }
.service {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 84px;
}
.service .ico {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tea-soft); color: var(--tea-strong);
}
.service .ico svg { width: 28px; height: 28px; }
.service b { display: block; font-size: 1.05rem; }
.service span { color: var(--muted); font-size: .85rem; }

/* ---------- 게임 카드 ---------- */
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-width: 0; }
.game-art {
  aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--radius); background: var(--g);
  position: relative; overflow: hidden; display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow);
}
.game-art::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.22) 0 14%, transparent 15%),
    radial-gradient(circle at 85% 80%, rgba(0,0,0,.14) 0 26%, transparent 27%);
}
.game-art span { font-family: var(--font-display); font-size: 3.4rem; position: relative; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.game-art .tag {
  position: absolute; top: 10px; left: 10px; font-family: var(--font-body); font-size: .7rem; font-weight: 700;
  background: rgba(0,0,0,.35); padding: 2px 10px; border-radius: 999px; text-shadow: none;
}
.game-name { font-weight: 700; font-size: 1.05rem; }
.cat-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cat {
  flex: none; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.cat[aria-current="true"] { background: var(--tea); border-color: var(--tea); color: var(--on-tea); }

/* ---------- 게임 상세 / 플레이 ---------- */
.detail { display: grid; gap: 20px; }
.detail .game-art { max-width: 360px; width: 100%; }
.detail .game-art span { font-size: 6rem; }
.plays {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--tea-soft); border-radius: var(--radius); padding: 16px 18px;
}
.plays-dots { display: flex; gap: 8px; }
.plays-dots i { width: 26px; height: 26px; border-radius: 50%; background: var(--tea); }
.plays-dots i.used { background: transparent; border: 3px solid var(--line); }
.plays b { font-size: 1.1rem; }
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rank li { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank .pos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--tea-soft); color: var(--tea-strong); flex: none; }
.rank li:first-child .pos { background: var(--gold); color: var(--surface); }
.rank .who { flex: 1; min-width: 0; }
.rank .sc { font-weight: 700; font-variant-numeric: tabular-nums; }
.stage {
  border-radius: 24px; background: var(--g); color: #fff; min-height: 380px; padding: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center;
}
.stage .hearts { font-size: 2rem; letter-spacing: .2em; }
.stage .big { font-family: var(--font-display); font-size: 2.6rem; }
.stage p { max-width: 30ch; opacity: .95; }
.stage .btn { background: #fff; color: #17211d; }
.result { text-align: center; align-items: center; }
.result .score { font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.result .earn { font-size: 1.4rem; font-weight: 900; color: var(--gold); }

/* ---------- 게임만 보이는 화면 ---------- */
body.playing { overflow: hidden; }
.game-only { position: fixed; inset: 0; z-index: 50; background: #111; display: flex; flex-direction: column; }
.game-frame { flex: 1; min-height: 0; width: 100%; display: flex; }
.game-frame iframe { border: 0; width: 100%; height: 100%; display: block; }
.game-only .stage { flex: 1; border-radius: 0; min-height: 0; padding-top: 24px; }
/* 나가기 버튼은 게임 위에 겹치지 않게 얇은 띠로 따로 둬요 (점수·메뉴를 가리지 않음) */
.game-bar { flex: none; display: flex; align-items: center; background: #111; padding: calc(env(safe-area-inset-top, 0px) + 1px) calc(env(safe-area-inset-right, 0px) + 6px) 1px calc(env(safe-area-inset-left, 0px) + 6px); }
.game-exit {
  min-height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); color: #fff;
  font-weight: 700; font-size: .8rem; cursor: pointer;
}
.game-result { position: absolute; inset: 0; z-index: 3; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.game-result .card { width: 100%; max-width: 460px; }

/* ---------- 포인트 ---------- */
.balance {
  background: var(--gold-soft); color: var(--gold-ink); border-radius: 24px; padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.balance .amt { font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.2; }
.balance .amt small { font-size: 1.2rem; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger .d { color: var(--muted); font-size: .85rem; width: 54px; flex: none; font-variant-numeric: tabular-nums; }
.ledger .t { flex: 1; min-width: 0; }
.ledger .a { font-weight: 900; font-variant-numeric: tabular-nums; }
.ledger .plus { color: var(--tea); }
.ledger .minus { color: var(--danger); }
.streak { display: flex; gap: 6px; flex-wrap: wrap; }
.streak i {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal;
  font-size: .8rem; font-weight: 700; border: 2px solid var(--line); color: var(--muted);
}
.streak i.on { background: var(--tea); border-color: var(--tea); color: var(--on-tea); }
.rule-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .95rem; }

/* ---------- 상점 ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0;
}
.product-art {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: 12px; background: var(--tea-soft); color: var(--tea-strong);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem;
}
.product b { font-size: 1rem; }
.price { font-weight: 900; color: var(--gold); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 1rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 2px solid var(--line); padding-top: 8px; }
.notice {
  background: var(--gold-soft); color: var(--gold-ink); border-radius: 14px; padding: 14px 16px; font-size: .95rem;
}
.warn { background: var(--danger-soft); color: var(--danger); border-radius: 14px; padding: 14px 16px; font-weight: 700; }

/* ---------- 폼 ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input {
  min-height: var(--tap); padding: 0 16px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--surface); font-size: 1.05rem; width: 100%;
}
.field textarea {
  min-height: 200px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--surface); font-size: 1.05rem; width: 100%; resize: vertical; line-height: 1.6;
}
.field textarea:focus, .field input:focus { border-color: var(--tea); outline: none; box-shadow: 0 0 0 3px var(--tea-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 28px; height: 28px; flex: none; margin: 2px 0 0; accent-color: var(--tea); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth { max-width: 520px; width: 100%; margin: 0 auto; }

/* ---------- 구독 ---------- */
.plans { display: grid; gap: 14px; }
.plan { border: 2px solid var(--line); }
.plan.paid { border-color: var(--tea); }
.plan .cost { font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.plan .cost small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; font-weight: 900; color: var(--tea); flex: none; }
.plan li.no::before { content: "–"; color: var(--muted); }
.plan li.no { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; padding: 2px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--tea-soft); color: var(--tea-strong); align-self: flex-start;
}
.badge-gold { background: var(--gold-soft); color: var(--gold-ink); }

/* ---------- 내 정보 ---------- */
.profile { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--tea); color: var(--on-tea);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; flex: none;
}
.menu { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line); }
.menu a, .menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 68px; padding: 0 20px; text-decoration: none; background: none; border: 0; cursor: pointer;
  font-weight: 700; text-align: left;
}
.menu .sub { color: var(--muted); font-weight: 400; font-size: .9rem; }
.toggle {
  width: 64px; height: 36px; border-radius: 999px; background: var(--line); position: relative; flex: none;
}
.toggle::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); transition: transform .2s;
}
.toggle.on { background: var(--tea); }
.toggle.on::after { transform: translateX(28px); }
.mini-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mini-table th, .mini-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.mini-table th { color: var(--muted); font-weight: 700; font-size: .85rem; }
.mini-table td.r, .mini-table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* ---------- 게시판형 목록 ---------- */
.posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.post b { font-size: 1.02rem; }
.post span { color: var(--muted); font-size: .85rem; }

/* ---------- 커뮤니티 ---------- */
.board-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.post-row { text-decoration: none; }
.post-row:hover { border-color: var(--tea); }
.post-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.article { gap: 16px; }
.article .body { font-size: 1.05rem; line-height: 1.8; white-space: pre-line; }
.like {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer;
}
.like .heart { color: var(--muted); font-size: 1.3rem; line-height: 1; }
.like.on { border-color: var(--danger); background: var(--danger-soft); }
.like.on .heart { color: var(--danger); }
.text-btn { background: none; border: 0; color: var(--muted); font-size: .9rem; text-decoration: underline; cursor: pointer; min-height: 48px; padding: 0 8px; }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.comments li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.comments li:last-child { border-bottom: 0; }
.comments .who { font-weight: 700; }
.comments .when { color: var(--muted); font-size: .8rem; }
.pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pick label {
  min-height: 52px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); display: inline-flex;
  align-items: center; gap: 8px; font-weight: 700; cursor: pointer; background: var(--surface);
}
.pick input { width: 22px; height: 22px; accent-color: var(--tea); margin: 0; }
.pick label:has(input:checked) { border-color: var(--tea); background: var(--tea-soft); }
.club { background: var(--tea-soft); border-color: transparent; }
.fab-write { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); align-self: flex-end; box-shadow: var(--shadow); z-index: 5; }

/* ---------- 건강·여행 정보 ---------- */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.info-card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.info-card:hover { border-color: var(--tea); }
.info-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.info-text b { font-size: 1.05rem; line-height: 1.4; }
.info-text > span:not(.badge):not(.post-meta) { color: var(--muted); font-size: .9rem; }
.article-art {
  aspect-ratio: 1 / 1; max-width: 100%; border-radius: 12px; background: var(--g); color: #fff; overflow: hidden;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem;
}
.article-art img { width: 100%; height: 100%; object-fit: cover; }
.article-art.big { aspect-ratio: 16 / 9; font-size: 3rem; border-radius: 14px; }
.article-body { display: flex; flex-direction: column; gap: 12px; font-size: 1.05rem; line-height: 1.8; }
.source { color: var(--muted); font-size: .85rem; }

/* ---------- 아래 메뉴 (휴대폰) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 76px; text-decoration: none; font-size: .78rem; font-weight: 700; color: var(--muted);
}
.bottom-nav svg { width: 30px; height: 30px; }
.bottom-nav a[aria-current="page"] { color: var(--tea); }
.bottom-nav a[aria-current="page"] svg { stroke-width: 2.6; }

/* ---------- 알림 ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 14px; font-weight: 700;
  max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow);
}
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: var(--surface); border-radius: 24px 24px 0 0; width: 100%; max-width: 560px;
  padding: 26px max(20px, env(safe-area-inset-left, 0px)) calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 16px;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
}

/* ---------- PC 화면 ---------- */
@media (max-width: 959px) {
  .topbar-inner { gap: 8px; }
  .logo-sub { display: none; }
  .logo-img { height: 38px; }
  .chip { padding: 0 12px; }
  .chip-size .size-word { display: none; }
}
@media (min-width: 720px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; align-items: start; }
  .today { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .top-nav { display: flex; gap: 4px; margin-right: auto; }
  .logo { margin-right: 20px; }
  .top-nav a {
    min-height: 52px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 12px;
    text-decoration: none; font-weight: 700; color: var(--muted);
  }
  .top-nav a:hover { background: var(--tea-soft); color: var(--tea-strong); }
  .top-nav a[aria-current="page"] { color: var(--tea-strong); background: var(--tea-soft); }
  .bottom-nav { display: none; }
  .page { padding-block: 28px 64px; gap: 36px; }
  .toast { bottom: 40px; }
  .fab-write { bottom: 32px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-card { grid-template-columns: 140px minmax(0, 1fr); }
  .community-wrap { max-width: 860px; width: 100%; margin-inline: auto; }
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 24px; }

  .home-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .home-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
  .home-side .today { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; }
  .hero { padding: 36px 36px; }
  .hero h1 { font-size: 2.2rem; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wide-games .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail { grid-template-columns: 360px minmax(0, 1fr); align-items: start; gap: 36px; }
  .two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .my-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
}
@media (min-width: 1200px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 28px; }
  .wide-games .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- 처음 화면 · 로그인 · 가입 ---------- */
.auth-page { min-height: 100%; display: flex; flex-direction: column; }
.auth-top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.auth-top-inner {
  max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.auth-main {
  width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px;
  padding-block: 24px calc(40px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.auth-box { gap: 18px; }
.welcome { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: 12px; }
.welcome-logo { width: min(300px, 80%); height: auto; }
.welcome h1 { font-size: 1.75rem; }
.welcome-actions { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 6px; }
.kakao-bubble { width: 22px; height: 20px; background: var(--kakao-ink); border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%; position: relative; flex: none; }
.kakao-bubble::after { content: ""; position: absolute; left: 4px; bottom: -4px; border: 5px solid transparent; border-top-color: var(--kakao-ink); border-left-width: 2px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.inline .btn { flex: none; padding: 0 16px; font-size: .95rem; }
.hint { color: var(--muted); font-size: .85rem; }
.agree { display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--line); border-radius: 14px; padding: 16px; }
.check-all { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.agree .more { padding: 0 4px; font-size: .85rem; }
.done-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--tea); color: var(--on-tea); display: grid; place-items: center; font-size: 2.6rem; font-weight: 900; }
.kakao-sheet { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.kakao-head { background: var(--kakao); color: var(--kakao-ink); display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-size: 1.1rem; }
.kakao-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.kakao-app { display: flex; justify-content: center; padding: 6px 0; }
.kakao-logo { height: 56px; width: auto; }
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  background: var(--tea-soft); border-radius: var(--radius); padding: 16px 18px;
}
.banner div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 240px; }
.banner span { color: var(--muted); font-size: .9rem; }
.banner-gold { background: var(--gold-soft); }
.banner .btn { flex: none; }

/* ---------- 결제 ---------- */
.pay-wrap { max-width: 640px; width: 100%; margin-inline: auto; }
.pay-methods { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.pay-methods legend { font-weight: 700; margin-bottom: 10px; font-size: 1.1rem; }
.pay-method {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 14px; min-width: 0; overflow-wrap: anywhere;
  font-weight: 700; cursor: pointer; background: var(--surface);
}
.pay-method input { width: 22px; height: 22px; accent-color: var(--tea); margin: 0; flex: none; }
.pay-method:has(input:checked) { border-color: var(--tea); background: var(--tea-soft); }
.pm-mark { width: 26px; height: 26px; border-radius: 8px; flex: none; background: var(--line); }
.pm-kakaopay { background: var(--kakao); }
.pm-naverpay { background: #03c75a; }
.pm-tosspay { background: #3182f6; }
.pm-card { background: var(--tea); }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px; font-size: 1.1rem; }
.pay-total b { font-size: 1.8rem; color: var(--tea-strong); }
.paying { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 10px 0; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 6px solid var(--tea-soft); border-top-color: var(--tea); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fold summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--tea); }
.fold[open] summary::after { content: "−"; }
.fold > :not(summary) { margin-top: 10px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq .fold { padding: 10px 18px; gap: 0; }
.phone-big { font-size: 1.8rem; font-weight: 900; color: var(--tea-strong); }
.install { display: flex; flex-direction: column; gap: 14px; align-items: stretch; text-align: center; }
.install-logo { height: 64px; width: auto; align-self: center; }
.steps { text-align: left; margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }

/* ---------- 관리자 ---------- */
.adm { min-height: 100%; background: var(--bg); }
.adm-top { background: var(--ink); color: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.adm-top-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.adm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; margin-right: auto; }
.adm-logo { height: 34px; width: auto; background: var(--surface); border-radius: 8px; padding: 2px 6px; }
.adm-who { font-size: .8rem; opacity: .8; }
.adm-exit { font-weight: 700; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid currentColor; text-decoration: none; }
.adm-body { display: flex; flex-direction: column; }
.adm-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); }
.adm-nav a { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--muted); }
.adm-nav a[aria-current="page"] { background: var(--tea); color: var(--on-tea); }
.adm-count { background: var(--danger); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 7px; line-height: 1.6; }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-size: .9rem;
  padding-block: 20px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-head h1 { font-size: 1.5rem; }
.adm-live { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 700; }
.adm-live b { font-size: 1.2rem; color: var(--tea-strong); }
.adm-dot { width: 12px; height: 12px; border-radius: 50%; background: #2e9d5b; box-shadow: 0 0 0 0 rgba(46,157,91,.5); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46,157,91,0); } 100% { box-shadow: 0 0 0 0 rgba(46,157,91,0); } }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.adm-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-tile-label { color: var(--muted); font-weight: 700; font-size: .8rem; }
.adm-tile-value { font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); font-weight: 900; overflow-wrap: anywhere; line-height: 1.3; }
.adm-tile-sub { color: var(--muted); font-size: .8rem; }
.adm-tile.gold .adm-tile-value { color: var(--gold); }
.adm-tile.warn { border-color: var(--danger); }
.adm-tile.warn .adm-tile-value { color: var(--danger); }
.adm-grid2 { display: grid; gap: 16px; }
.adm-bars { display: flex; align-items: flex-end; gap: 4px; height: 200px; padding-top: 22px; }
.adm-bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.adm-bar-fill { width: 100%; max-width: 44px; background: var(--tea-soft); border-radius: 6px 6px 0 0; }
.adm-bar-fill.today { background: var(--tea); }
.adm-bar-val { font-size: 11px; color: var(--muted); white-space: nowrap; letter-spacing: -.02em; }
.adm-bar-label { font-size: .8rem; font-weight: 700; }
.adm-table { font-size: .88rem; }
.adm-table td, .adm-table th { white-space: nowrap; }
.adm-pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--tea-soft); color: var(--tea-strong); }
.adm-pill.ok { background: #e2f3e8; color: #1d6b3c; }
.adm-pill.warn { background: var(--danger-soft); color: var(--danger); }
.adm-pill.info { background: var(--gold-soft); color: var(--gold-ink); }
.adm-switch { width: 52px; height: 30px; border-radius: 999px; background: var(--line); border: 0; position: relative; cursor: pointer; }
.adm-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); transition: transform .2s; }
.adm-switch.on { background: var(--tea); }
.adm-switch.on::after { transform: translateX(22px); }
.adm-thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--g); color: #fff; display: grid; place-items: center; font-family: var(--font-display); }
.adm-link { background: none; border: 0; color: var(--tea); font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 40px; }
.adm-select, .adm-input { min-height: 40px; border: 2px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--surface); font-size: .88rem; }
.adm-input { width: 150px; }
.adm-tools { display: flex; flex-direction: column; gap: 10px; }
.adm-tools .field input { min-height: 52px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); width: 100%; max-width: 420px; }
.adm-todo { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.adm-todo a { color: var(--tea-strong); }
.adm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.adm-report-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.adm-form-grid { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .adm-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .adm-body { flex-direction: row; align-items: flex-start; }
  .adm-nav { flex-direction: column; width: 220px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); min-height: calc(100vh - 60px); position: sticky; top: 60px; padding: 16px 12px; overflow: visible; }
  .adm-nav a { min-height: 48px; }
  .adm-main { padding-left: 28px; padding-right: 28px; }
  .adm-grid2 { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- 동호회 · 순위 · 출석 달력 ---------- */
.club-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.club-card:hover { border-color: var(--tea); }
.club-art { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; overflow: hidden; }
.club-art img { width: 100%; height: 100%; object-fit: cover; }
.club-art.big { width: 120px; font-size: 3rem; }
.club-hero { align-items: center; text-align: center; }
.club-hero .post-meta { justify-content: center; }
.reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.req { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: 0; }
.req > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.req > span:first-child span { color: var(--muted); font-size: .9rem; }
.req .btn-row { flex-wrap: nowrap; }
.req .btn { min-height: 48px; padding: 0 16px; }
.rank-full li { padding: 10px 2px; }
.my-rank { background: var(--tea); color: var(--on-tea); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.my-rank b { font-size: 2rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; max-width: 380px; width: 100%; margin-inline: auto; }
.cal-w { font-size: .8rem; color: var(--muted); font-weight: 700; padding-bottom: 4px; }
.cal-d { aspect-ratio: 1 / 1; width: 84%; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cal-d.on { background: var(--tea); color: var(--on-tea); font-weight: 700; }
.cal-d.is-today { outline: 3px solid var(--gold); outline-offset: 1px; }
.cal-d.future { color: var(--line); }
.expire-amt { font-size: 1.8rem; font-weight: 900; color: var(--danger); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* 관리자 사진 올리기 */
.adm-thumb { overflow: hidden; background: var(--g, var(--cream, #f3e6d3)); color: var(--g, #fff); }
.adm-thumb:not([style]) { background: #f3e6d3; color: var(--tea); font-size: 11px; }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.img-prev { width: 96px; height: 96px; border-radius: 14px; background: #f3e6d3; color: var(--ink-soft, #7a6a5a); display: grid; place-items: center; overflow: hidden; font-size: .9rem; border: 1px dashed #cbb59a; }
.img-prev.wide { width: 128px; height: 96px; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 서버에서 불러오는 동안 */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; }

/* ---------- 꾸미기 ---------- */
.deco-title { display: inline-block; padding: 2px 10px; margin-right: 6px; border-radius: 999px; background: #f3e6d3; color: var(--tea); font-size: .8em; font-weight: 800; vertical-align: middle; white-space: nowrap; }
.deco-title.vip { background: linear-gradient(135deg, #f7d978, #c99a1e); color: #4a3200; }
.deco-name { font-weight: 800; }
.deco-name.gold { background: linear-gradient(135deg, #b8860b, #f2c94c 45%, #b8860b); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.deco-badge { display: inline-block; vertical-align: middle; margin-left: 6px; flex: none; }
.deco-avatar { background-size: cover; background-position: center; }
.deco-avatar.frame-solid { box-shadow: 0 0 0 4px var(--tea); }
.deco-avatar.frame-double { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2f6b4f, 0 0 0 9px #fff, 0 0 0 11px #2f6b4f; }
.deco-avatar.frame-dotted { outline: 4px dotted #d0607e; outline-offset: 3px; }
.deco-avatar.frame-gold { box-shadow: 0 0 0 4px #e2b53a, 0 0 0 7px #fff3c4, 0 0 14px 6px rgba(226, 181, 58, .55); animation: deco-shine 2.4s ease-in-out infinite; }
.deco-avatar { position: relative; }
.deco-avatar.frame-img::after { content: ""; position: absolute; inset: -14%; background: var(--frame) center / contain no-repeat; pointer-events: none; }
@keyframes deco-shine { 50% { box-shadow: 0 0 0 4px #f2c94c, 0 0 0 7px #fffbe6, 0 0 22px 9px rgba(242, 201, 76, .7); } }
@media (prefers-reduced-motion: reduce) { .deco-avatar.frame-gold { animation: none; } }
.deco-me { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px; }
.deco-me-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.deco-me-name { font-size: 1.35rem; line-height: 1.5; overflow-wrap: anywhere; }
.deco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.deco-item { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; padding: 16px; min-width: 0; }
.deco-item > b { font-size: 1.05rem; }
.deco-item .badge { align-self: center; }
.deco-item .game-art { aspect-ratio: 1; }
.deco-prev { height: 96px; display: grid; place-items: center; background: #fbf6ef; border-radius: 14px; overflow: hidden; }
.deco-prev .avatar { width: 64px; height: 64px; font-size: 1.6rem; }
.board-swatch { width: 70%; height: 64px; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); background-image: linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px); background-size: 12px 12px; }
.game-card.locked .game-art { filter: grayscale(.65); opacity: .75; }
.deco-item .btn { padding-left: 8px; padding-right: 8px; font-size: 1rem; }
.deco-avatar.frame-solid { box-shadow: 0 0 0 3px #fff, 0 0 0 7px #c48a3a; }
.deco-me-text { flex: 1 1 220px; }
.adm-deco-prev .deco-prev { height: 60px; width: 90px; background: transparent; }
.adm-deco-prev .deco-prev .avatar { width: 44px; height: 44px; font-size: 1.1rem; }
.adm-deco-prev .board-swatch { height: 40px; width: 70px; }

/* 커뮤니티 서버 연결 */
.post-img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; background: #f3e6d3; }
.club-post-body { white-space: pre-wrap; color: var(--ink); }
.report-why { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.text-btn.inline { min-height: 0; padding: 4px 6px; font-size: .85rem; }
.member-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.loading-note { padding: 18px 0; }
.comments .when { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

/* 약관·사업자 정보 */
.legal-body h3 { margin-top: 18px; font-size: 1.1rem; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body ul { margin: 6px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.legal-body p, .legal-body li { line-height: 1.7; }
.legal-date { margin-top: 18px; font-size: .9rem; }
.biz-dl { grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); }
.biz-dl dd { text-align: left; word-break: keep-all; overflow-wrap: anywhere; }
.legal-sheet { max-height: 65vh; overflow: auto; margin-bottom: 12px; }
.legal-sheet .community-wrap { gap: 12px !important; }
.site-foot { margin-top: 48px; padding: 24px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; line-height: 1.7; word-break: keep-all; }
.site-foot a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.foot-links a { color: var(--ink); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- 첫 화면 문구 액자 ---------- */
.slogan {
  position: relative; display: flex; align-items: center; gap: 18px;
  background: #fffaf0; border: 5px solid var(--tea); border-radius: 28px;
  padding: 22px 22px; box-shadow: 0 8px 0 var(--tea-soft), 0 14px 30px rgba(94, 47, 14, .12); margin-bottom: 8px;
}
.slogan::before { content: ""; position: absolute; inset: 7px; border: 2px dashed #e7c98f; border-radius: 20px; pointer-events: none; }
.slogan-text { position: relative; flex: 1; min-width: 0; }
.slogan h1 { font-family: var(--font-display); font-weight: 700; color: var(--tea-strong); font-size: 2rem; line-height: 1.35; margin: 0; }
.slogan .hl { background: linear-gradient(transparent 58%, #ffd84d 58%); padding: 0 4px; }
.slogan .brand { color: var(--tea); }
.slogan p { margin: 10px 0 0; font-size: 1.05rem; color: var(--muted); font-weight: 700; }
.slogan img { position: relative; height: auto; flex: none; width: 110px; }
@media (max-width: 959px) { .slogan { flex-direction: column; align-items: flex-start; gap: 6px; } .slogan img { order: -1; } }
@media (min-width: 960px) {
  .slogan { padding: 30px 40px; gap: 32px; }
  .slogan h1 { font-size: 2.6rem; }
  .slogan p { font-size: 1.25rem; }
  .slogan img { width: 150px; }
}

/* ---------- 오늘의 운세: 첫 화면 작은 칸 ---------- */
.fortune-mini {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 2px solid var(--gold); border-radius: 20px; padding: 16px 18px; margin-bottom: 8px;
}
.fm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fm-head b { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--tea-strong); }
.fm-head span { color: var(--muted); font-weight: 700; font-size: .9rem; }
.fm-saying { margin: 0; font-size: 1rem; color: var(--ink); }
.fm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-label { font-weight: 700; color: var(--gold-ink); font-size: .9rem; }
.fortune-mini .nums span { width: 40px; height: 40px; font-size: 1.1rem; border-width: 2px; }
.fm-color { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.fortune-mini .swatch { width: 32px; height: 32px; border-radius: 10px; }
.fm-go { align-self: flex-end; font-weight: 800; color: var(--tea); }
@media (min-width: 960px) {
  .fortune-mini { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; padding: 14px 24px; }
  .fm-head { flex-direction: column; gap: 0; }
  .fm-go { align-self: center; }
}

/* ---------- 오늘의 운세: 자세히 화면 ---------- */
.fortune { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.fortune-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fortune-head h1 { margin: 0; }
.fortune-date { color: var(--muted); font-weight: 700; }
.saying { margin: 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--tea-strong); background: var(--tea-soft); border-radius: 16px; padding: 14px 16px; text-align: center; line-height: 1.5; }
.lucky { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lucky-box { border-radius: 18px; padding: 14px 16px; background: var(--gold-soft); }
.lucky-box > b { display: block; color: var(--gold-ink); margin-bottom: 8px; }
.nums { display: flex; gap: 10px; }
.nums span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; background: #fff; color: var(--tea-strong); border: 3px solid var(--gold); }
.color-row { display: flex; align-items: center; gap: 14px; }
.color-row strong { color: var(--tea-strong); }
.swatch { display: inline-block; width: 56px; height: 56px; border-radius: 16px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); flex: none; }
.z-title { margin: 4px 0 0; }
.ztabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ztab { min-height: 72px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-family: var(--font-display); font-size: 1.05rem; color: var(--tea-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; line-height: 1.2; cursor: pointer; }
.ztab[aria-current="true"] { background: var(--tea); color: #fff; border-color: var(--tea); }
.ztab i { font-style: normal; font-size: 1.2rem; letter-spacing: 2px; }
.zgroup { border: 2px solid var(--tea-soft); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.zrow { display: flex; gap: 12px; align-items: flex-start; }
.zico { width: 52px; height: 52px; border-radius: 50%; background: var(--tea-soft); display: grid; place-items: center; font-size: 1.8rem; flex: none; }
.zrow b { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--tea-strong); }
.zrow p { margin: 4px 0 0; font-size: 1rem; line-height: 1.65; }
.fortune-note { font-size: .85rem; color: var(--muted); text-align: right; margin: 0; }
@media (min-width: 960px) {
  .fortune { padding: 28px 32px; max-width: 1000px; }
  .lucky { grid-template-columns: auto 1fr; }
  .ztabs { grid-template-columns: repeat(4, 1fr); }
  .zgroup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .zrow { flex-direction: column; align-items: center; text-align: center; }
}
/* 문구 액자 살짝 작게 (주인님 요청 11-22) */
.slogan { padding: 18px 20px; border-width: 4px; }
.slogan h1 { font-size: 1.75rem; }
.slogan p { font-size: 1rem; margin-top: 6px; }
.slogan img { width: 90px; }
@media (min-width: 960px) {
  .slogan { padding: 22px 34px; }
  .slogan h1 { font-size: 2.2rem; }
  .slogan p { font-size: 1.15rem; }
  .slogan img { width: 120px; }
}
/* 운세 작은 칸 자리: 휴대폰은 큰 소개 칸 아래, PC는 오른쪽 칸 맨 위 */
.side-mini { display: none; }
@media (min-width: 960px) {
  .home-mini { display: none; }
  .side-mini { display: block; }
  .side-mini .fortune-mini { display: flex; padding: 16px 18px; margin: 0; }
  .side-mini .fm-head { flex-direction: row; }
  .side-mini .fm-go { align-self: flex-end; }
}
.slogan { margin-bottom: 0; }
@media (min-width: 960px) {
  .side-mini .fortune-mini { align-items: stretch; gap: 10px; }
  .side-mini .fm-head { justify-content: space-between; align-items: baseline; }
}
.fm-row { row-gap: 8px; }
.fm-row .fm-color { margin-right: 4px; }
@media (max-width: 959px) {
  .slogan img { display: none; }
  .slogan h1 { font-size: 1.6rem; }
}
@media (min-width: 960px) {
  .m-br { display: none; }
  .slogan { padding: 18px 34px; }
  .slogan h1 { font-size: 2.1rem; }
  .slogan p { margin-top: 4px; }
  .slogan img { width: 104px; }
}

/* 동호회 만들기 열쇠(모은 포인트 막대) */
.meter-bar{height:18px;border-radius:10px;background:#f1e7d6;overflow:hidden;margin:10px 0 6px}
.meter-bar i{display:block;height:100%;background:linear-gradient(90deg,#f0a84a,#e0792a);border-radius:10px}

/* ===== 홈 화면 새 디자인 (시안 B) ===== */
.hi small { display: block; color: var(--gold); font-weight: 700; font-size: .95rem; }
.hi h1 { font-size: 1.95rem; line-height: 1.3; margin-top: 6px; }
.hi h1 em { font-style: normal; background: linear-gradient(transparent 62%, #ffe08a 62%); }
.big-game { border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: 0 14px 34px rgba(60, 30, 10, .16); display: flex; flex-direction: column; }
.big-pic { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--g, #1f5a3a); }
.big-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.big-tag { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--tea); border-radius: 14px; padding: 6px 12px; font-weight: 700; font-size: .85rem; font-style: normal; }
.big-in { padding: 18px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.big-in h2 { font-size: 1.7rem; }
.big-in p { margin: 0 0 6px; color: var(--muted); font-size: .98rem; }
.btn-start { box-shadow: 0 6px 14px rgba(183, 121, 10, .35); }
.m-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-tile { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 14px 16px; text-decoration: none; color: inherit; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.m-tile b { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--tea-strong); }
.m-tile span { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-soon { display: grid; place-items: center; text-align: center; border: 1.5px dashed var(--line); border-radius: 20px; color: var(--muted); background: var(--bg); min-height: 130px; }
.m-title { font-size: 1.4rem; margin: 10px 0 0; }
@media (max-width: 959px) { .pc-only, .side-mini { display: none !important; } .home-mini { display: none; } }
@media (min-width: 960px) {
  .m-minis, .m-title { display: none; }
  .hi h1 { font-size: 2.5rem; }
  .big-game { flex-direction: row; }
  .big-pic { flex: 0 0 52%; aspect-ratio: auto; min-height: 280px; }
  .big-in { padding: 30px; }
  .big-in h2 { font-size: 2rem; }
  .big-in .btn-start { max-width: 320px; }
}
.slogan-band { background: linear-gradient(100deg, #7a3d10, #a35a18); border-radius: 20px; padding: 15px 14px; text-align: center; font-family: var(--font-display); color: #fff; font-size: 1.25rem; line-height: 1.35; box-shadow: 0 8px 18px rgba(94, 47, 14, .28); }
.slogan-band b { font-weight: 400; color: #ffd84d; font-size: 1.5rem; }
@media (max-width: 400px) { .slogan-band { font-size: 1.1rem; } .slogan-band b { font-size: 1.35rem; } }
@media (min-width: 960px) { .slogan-band { font-size: 1.9rem; padding: 22px 30px; border-radius: 24px; } .slogan-band b { font-size: 2.3rem; } }
.slogan-band span { display: block; }
.slogan-band .sb1 { font-size: 1.1rem; opacity: .95; }
.slogan-band .sb2 { font-size: 1.4rem; margin-top: 2px; }
.slogan-band .sb2 b { font-size: 1.75rem; }
@media (min-width: 720px) { .slogan-band span { display: inline; } .slogan-band .sb1, .slogan-band .sb2 { font-size: inherit; opacity: 1; margin: 0; } .slogan-band .sb2 b { font-size: 1.5rem; } }
@media (min-width: 960px) { .slogan-band .sb2 b { font-size: 2.3rem; } }
.emo { font-style: normal; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; line-height: 1; }
.bottom-nav .emo { font-size: 1.7rem; }
.bottom-nav a[aria-current="page"] .emo { filter: drop-shadow(0 2px 0 rgba(132, 68, 20, .35)); transform: scale(1.12); }
.service .ico .emo { font-size: 1.7rem; }
.service .ico { background: #fbefd2; border-radius: 50%; }

.bottom-nav a { font-size: .72rem; }
.bottom-nav .emo { font-size: 1.5rem; }

.deco-name.grad { -webkit-background-clip: text; background-clip: text; color: transparent; }
.club-dot { display: grid; place-items: center; width: 100%; height: 100%; }
.club-dot svg { width: 72%; height: 72%; image-rendering: pixelated; }
.theme-swatch { display: block; width: 130px; height: 48px; line-height: 48px; border-radius: 14px; color: #fff; font-family: var(--font-display); text-shadow: 0 1px 3px rgba(0,0,0,.35); text-align: center; }
.club-banner { display: block; background: linear-gradient(110deg, #7a3d10, #a35a18); color: #fff; font-family: var(--font-display); font-size: 1.2rem; text-align: center; padding: 12px 16px; border-radius: 14px; }
.club-hero .club-banner { align-self: stretch; margin-bottom: 8px; }
.fx-prev { font-family: var(--font-display); font-size: 1.3rem; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-pick label { cursor: pointer; position: relative; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick .club-art { width: 64px; border: 3px solid transparent; }
.icon-pick input:checked + .club-art { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.cat-row.wrap { flex-wrap: wrap; overflow: visible; }
.club-hero .club-banner, .club-banner { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.deco-badge.dot { display: inline-block; vertical-align: -4px; margin-left: 4px; }
.deco-badge.dot svg { width: 100%; height: 100%; image-rendering: pixelated; display: block; }

.more-games{display:block;text-align:center;margin-top:12px;border:2px solid #844414;color:#844414;background:#fff;border-radius:14px;padding:13px;font-weight:700;font-size:1.05rem;text-decoration:none}
.home-chips{margin-bottom:10px}

/* 페이지 머리띠(커뮤니티·건강·여행) */
.page-head{position:relative;overflow:hidden;border-radius:22px;padding:18px 18px 16px;background:var(--ph);color:#2b1a10;box-shadow:0 8px 18px rgba(60,30,10,.12)}
.page-head h1{font-size:1.7rem;margin:0;padding-right:70px}
.page-head p{margin:6px 0 0;font-size:1rem;padding-right:70px;font-weight:500}
.page-head .ph-emo{position:absolute;right:12px;top:6px;font-size:4.2rem;line-height:1}
.board-tabs .cat,.cat-row .cat{font-weight:700}
.posts .post{border-left:6px solid #ee8a2b}
.posts li:nth-child(3n+2) .post{border-left-color:#3f9f6a}
.posts li:nth-child(3n) .post{border-left-color:#3f7fd0}
.info-card{border-left:6px solid #3f9f6a}
.badge.walk{background:#e4f3e8;color:#2f7a45}.badge.read{background:#eef3fb;color:#3a5a99}
@media (min-width:960px){.page-head h1{font-size:2.1rem}.page-head .ph-emo{font-size:5.5rem}}

.ph-pts{display:flex;justify-content:space-between;align-items:center;background:#fff;border-radius:14px;margin-top:12px;padding:10px 14px;font-weight:700;color:#2b1a10;text-decoration:none;max-width:420px}
.ph-pts b{font-size:1.3rem;color:#b7790a}
.feat-card{display:flex;gap:14px;align-items:center;border-radius:20px;padding:14px;background:linear-gradient(120deg,#5a3ea6,#8a63c9);color:#fff;box-shadow:0 8px 18px rgba(80,50,140,.25)}
.feat-card h3{margin:0 0 4px;font-size:1.15rem}.feat-card p{margin:0 0 8px;font-size:.95rem}
.feat-ic{flex:none;width:90px;height:90px;border-radius:18px;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;overflow:hidden}
.feat-ic > *{transform:scale(.8)}
.deco-item{border-radius:18px}

.deco-tabs{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 12px rgba(60,30,10,.06)}
.deco-tabs h3{margin:0;font-size:1.05rem;color:#844414}.deco-tabs h3 small{font-weight:500;color:var(--muted);font-size:.85rem;margin-left:6px}
.deco-tab-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;margin-bottom:6px}
.deco-tab{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:16px;border:1.5px solid #eadfce;background:#fbf7f0;font:inherit;font-weight:700;font-size:.95rem;color:#2b1a10;cursor:pointer}
.deco-tab .dt-emo{font-size:1.8rem;line-height:1}
.deco-tab[aria-current="true"]{background:linear-gradient(135deg,#844414,#a35a18);border-color:#844414;color:#fff;box-shadow:0 6px 14px rgba(132,68,20,.3)}

/* ===== 2026-11-23 화면 마무리: 커뮤니티·건강·여행 카드, 내 모습 카드, 관리자 표 ===== */
.sub-h { font-size: 1.2rem; margin: 6px 0 -4px; }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.sub-head .sub-h { margin: 0; }
.sub-head a { color: var(--tea); font-weight: 700; text-decoration: none; }
.pop-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid #d9961f; border-radius: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.pop-card b { font-size: 1.25rem; line-height: 1.4; }
.pop-meta { color: #a8650c; font-weight: 700; font-size: .9rem; }
.club-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mini-club { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: inherit; text-align: center; box-shadow: var(--shadow); }
.mini-club .club-art { width: 64px; font-size: 1.6rem; }
.mini-club b { font-size: 1rem; line-height: 1.3; }
.mini-club span { color: var(--muted); font-size: .85rem; }
/* 건강 */
.tip-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid #3f9a63; border-radius: 18px; box-shadow: var(--shadow); }
.tip-k { color: #2f7a45; font-weight: 700; font-size: .9rem; }
.tip-card b { font-size: 1.25rem; line-height: 1.4; }
.tip-card span:last-child { color: var(--muted); }
.topic-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.topic-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; border: 3px solid transparent; border-radius: 20px; background: var(--tc); color: #fff; font-weight: 800; font-size: 1.1rem; cursor: pointer; font-family: inherit; box-shadow: 0 6px 14px rgba(0,0,0,.14); }
.topic-tile .emo { font-size: 2.2rem; line-height: 1; font-style: normal; }
.topic-tile[aria-pressed="true"] { border-color: #fff; outline: 4px solid var(--tc); }
@media (min-width: 720px) { .topic-tiles { grid-template-columns: repeat(4, 1fr); } }
.badge.walk.normal { background: #fbefd2; color: #7a4f00; }
.badge.walk.hard { background: #fbe3e1; color: #a02a22; }
/* 여행: 이번 주 추천 코스 */
.feat-course { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.fc-pic { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8; background: var(--g, #8a6238); color: #fff; font-family: var(--font-display); font-size: 3rem; }
.fc-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-pic i { font-style: normal; }
.fc-tag { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--tea-strong); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .85rem; }
.fc-in { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.fc-in > b { font-size: 1.35rem; line-height: 1.35; }
.fc-in > span { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fc-in em { font-style: normal; color: var(--muted); }
@media (min-width: 720px) { .feat-course { flex-direction: row; } .fc-pic { flex: 0 0 48%; aspect-ratio: auto; min-height: 240px; } .fc-in { justify-content: center; padding: 24px; } }
/* 꾸미기 가게 '내 모습' 카드: 가로로 정리, 빈 공간 없앰 */
.deco-me { flex-direction: row; flex-wrap: nowrap; gap: 16px; padding: 14px 18px; }
.deco-me .avatar.big { width: 64px; height: 64px; font-size: 1.7rem; margin: 6px; }
.deco-me-text { flex: 1 1 0; }
.deco-me-name { font-size: 1.2rem; }
/* 관리자 표: 위쪽 좌우 막대 + 휴대폰 카드형 */
.tscroll-top { overflow-x: auto; overflow-y: hidden; height: 18px; margin-bottom: 4px; }
.tscroll-top > div { height: 1px; }
.table-wrap { scrollbar-width: auto; }
@media (max-width: 700px) {
  .tscroll-top { display: none !important; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table thead { display: none; }
  .adm-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; margin-bottom: 10px; }
  .adm-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border: 0; border-bottom: 1px dashed var(--line); white-space: normal; text-align: right; }
  .adm-table td:last-child { border-bottom: 0; }
  .adm-table td::before { content: attr(data-label); color: var(--muted); font-weight: 700; font-size: .8rem; text-align: left; flex: none; }
  .adm-table td:not([data-label])::before { content: none; }
  .adm-table td.r { text-align: right; }
}
.badge.walk.unknown { background: #eceae6; color: #5b4738; }
.info-text .src { color: #2f7a45 !important; font-size: .8rem !important; font-weight: 700; }
.fc-in .src { color: #2f7a45; font-weight: 700; font-size: .8rem; }
/* 여행 글 인포그래픽 카드 */
.facts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.fact { display: flex; gap: 10px; align-items: flex-start; background: #f3f8f4; border: 1px solid #d5e8da; border-radius: 14px; padding: 12px 14px; min-width: 0; }
.fact i { font-style: normal; font-size: 1.5rem; line-height: 1.2; }
.fact span { display: flex; flex-direction: column; min-width: 0; }
.fact small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.fact b { font-size: .98rem; line-height: 1.45; overflow-wrap: anywhere; }
.fact a { color: var(--tea-strong); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1100px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact .badge { white-space: nowrap; }
.article-art { position: relative; } .article-art img { position: absolute; inset: 0; z-index: 1; } .article-art .art-fallback { position: relative; }
.fc-pic i { position: relative; } .fc-pic img { z-index: 1; }

.caution{margin:0;padding:12px 14px;border-radius:12px;background:#fff1e0;color:#7a3b0a;font-weight:700;line-height:1.5}
.article-art>span{font-size:44px}

a.tip-card{text-decoration:none;color:inherit;display:flex}

.wx-card{background:#fff;border:1px solid var(--line,#eadfce);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 2px 10px rgba(90,60,20,.06)}
.wx-card .sub-h{margin:0}
.wx-chips{display:flex;gap:8px;flex-wrap:wrap}
.wx-chip{min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid #e2d3bd;background:#fbf6ee;font:inherit;font-weight:700;color:#5a3a14;cursor:pointer}
.wx-chip[aria-pressed="true"]{background:#844414;border-color:#844414;color:#fff}
.wx-main{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.wx-ico{font-size:54px;line-height:1}
.wx-t{display:flex;flex-direction:column}.wx-t b{font-size:38px;line-height:1.05;color:#3a2410}.wx-t em{font-style:normal;font-weight:700;color:#6a4a2a}
.wx-r{display:flex;flex-direction:column;gap:4px;color:#5a4a3a;font-weight:600}
.wx-tip{margin:0;padding:10px 12px;border-radius:12px;background:#eef6ee;color:#2d5a3a;font-weight:700;line-height:1.5}
.wx-src{color:#8a7a68}

/* 홈 작은 카드(운세·출석): 로고 색(커피·크림·금)에 맞춘 차분한 카드 */
.m-tile{position:relative;overflow:hidden;background:#fffdf9;border:1px solid #e8d9bf;box-shadow:0 6px 18px rgba(98,62,22,.08),inset 0 1px 0 #fff;gap:6px;padding:16px 16px 14px}
.m-tile::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,#c9992f,#e8c872,#c9992f)}
.m-tile .mt-emo{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;font-style:normal;font-size:1.45rem;line-height:1;margin-bottom:4px;background:radial-gradient(circle at 30% 25%,#fff8e6,#f3e2bd);box-shadow:0 0 0 1.5px #d9b866,0 3px 8px rgba(160,110,30,.2)}
.m-tile b{letter-spacing:-.01em}
.m-tile span{color:#7a6650;font-size:.95rem;line-height:1.5}
.mt-fortune,.mt-attend{background:#fffdf9;border-color:#e8d9bf}
.mt-attend.done{background:#faf8f4;border-color:#e4ddd0}
.mt-attend.done .mt-emo{filter:grayscale(.6);opacity:.8}
.mt-attend.done::before{background:#d8d0c0}
a.m-tile:hover,.m-tile-btn:hover{box-shadow:0 8px 22px rgba(98,62,22,.14),inset 0 1px 0 #fff}

.wx-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.wx-date{color:#8a6a3a;font-weight:700}
.wx-all{margin:0;color:#4a3a28;font-weight:700;line-height:1.5}
.wx-wait{margin:0;padding:14px;border-radius:12px;background:#faf5ea;color:#6a5a44;font-weight:600;line-height:1.5}

.stop{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--line,#eadfce)}
.stop-n{flex:0 0 34px;height:34px;border-radius:50%;background:#844414;color:#fff;font-weight:800;display:grid;place-items:center}
.stop-in{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.stop-in img{width:100%;max-height:260px;object-fit:cover;border-radius:14px;background:#eee}
.stop-in b{font-size:1.1rem;color:#3a2410}.stop-in p{margin:0}
.credit-p{font-size:.85rem;color:#8a7a68;line-height:1.5;overflow-wrap:anywhere}

.lt-card{display:flex;flex-direction:column;gap:10px;background:#fffdf9;border:1px solid #e8d9bf;border-radius:18px;padding:14px;text-decoration:none;color:inherit;box-shadow:0 6px 18px rgba(98,62,22,.08);position:relative;overflow:hidden}
.lt-card::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,#c9992f,#e8c872,#c9992f)}
.lt-head{font-weight:800;color:#844414;font-size:1rem}
.lt-pic{display:block;border-radius:14px;overflow:hidden;background:#eee;aspect-ratio:16/9}
.lt-pic img{width:100%;height:100%;object-fit:cover;display:block}
.lt-title{font-size:1.15rem;line-height:1.4;color:#3a2410;overflow-wrap:anywhere}
.lt-more{color:#b7790a;font-weight:700;font-size:.9rem}

.lt-row{display:flex;gap:12px;align-items:center}.lt-col{display:flex;flex-direction:column;gap:2px;min-width:0}
.lt-sub{color:#7a6650;font-size:.92rem}.lt-desc{color:#5a4632;font-size:.95rem;line-height:1.5}
.lt-last{background:#f6ecd8;border-radius:10px;padding:8px 10px;font-size:.9rem;color:#5a4632;overflow-wrap:anywhere}
.lt-club .club-art{flex:0 0 64px;width:64px;height:64px}

.contact-box{margin:18px 0 4px;background:#fffdf9;border:1px solid #e8d9bf;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 4px 14px rgba(98,62,22,.07)}
.contact-box h3{margin:0;font-size:1.15rem;color:#844414}
.ct-row{display:flex;gap:12px;align-items:flex-start}.ct-row i{font-style:normal;font-size:1.4rem;line-height:1.3}
.ct-row span{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}.ct-row small{color:#8a7a68;font-size:.85rem}
.ct-row b{font-size:1.05rem;color:#3a2410}
.ct-tel{display:inline-block;align-self:flex-start;background:#844414;color:#fff;font-weight:800;font-size:1.2rem;padding:10px 18px;border-radius:14px;text-decoration:none}
.ct-map{color:#b7790a;font-weight:700;text-decoration:none;margin-top:4px}

.stop-contact{display:flex;flex-direction:column;gap:4px;background:#f8f1e3;border-radius:12px;padding:10px 12px;font-size:.95rem;color:#4a3824}
.sc-row{display:flex;gap:8px;align-items:flex-start;overflow-wrap:anywhere}.sc-row i{font-style:normal}
.sc-row a{color:#844414;font-weight:700}

.lt-grid{display:flex;flex-direction:column;gap:14px}
.lt-pc{display:none}
@media (min-width:960px){.lt-pc{display:grid;grid-template-columns:1fr 1fr;gap:16px}.lt-mobile{display:none}.lt-pc .lt-card{height:100%}}

.ct-tel{background:none;color:#3a2410;padding:0;font-size:1.05rem;font-weight:700;border-radius:0}
.ct-tel a,.sc-row a{color:#844414;font-weight:800;text-decoration:underline}

.sc-t{flex:1;min-width:0;line-height:1.5}
.sc-row a{white-space:nowrap}
@media (max-width:520px){.stop{gap:8px}.stop-n{flex-basis:28px;height:28px;font-size:.9rem}}

.body-h{margin:22px 0 4px;font-size:1.25rem;color:#844414;border-left:4px solid #c9992f;padding-left:10px}

.place{display:flex;flex-direction:column;gap:6px;margin:10px 0;background:#fffdf9;border:1px solid #e8d9bf;border-radius:16px;overflow:hidden}
.place img{width:100%;max-height:240px;object-fit:cover;display:block;background:#eee}
.place-in{padding:10px 14px 12px;display:flex;flex-direction:column;gap:4px}.place-in b{font-size:1.15rem;color:#3a2410}.place-in p{margin:0}
.place-in small{color:#8a7a68;font-size:.78rem;overflow-wrap:anywhere}

.pl-intro{font-weight:700;color:#5a3a1a}
.pl-row{display:flex;flex-direction:column;gap:2px;background:#f8f1e3;border-radius:10px;padding:8px 10px;font-size:.98rem;overflow-wrap:anywhere}
.pl-k{font-size:.82rem;font-weight:800;color:#844414}

/* 사진이 있는 칸은 사진이 뜨기 전에 이름·색 칸이 먼저 보이지 않게: 연한 바탕만 보이다가 사진이 나옴 */
.article-art.has-img{background:#efe6d6}
.article-art.has-img .art-fallback{display:none}
.article-art.has-img.noimg{background:var(--g,#8a6238)}
.article-art.has-img.noimg .art-fallback{display:inline}
.fc-pic.has-img{background:#efe6d6}
.fc-pic.has-img i{display:none}
.fc-pic.has-img.noimg{background:var(--g,#8a6238)}
.fc-pic.has-img.noimg i{display:inline}

.rec-strip{display:flex;gap:12px;align-items:center;background:#fffdf9;border:1px solid #e8d9bf;border-left:5px solid #c9992f;border-radius:16px;padding:10px 12px;margin-top:-6px;text-decoration:none;color:inherit;box-shadow:0 4px 12px rgba(98,62,22,.06)}
.rs-pic{width:84px;height:56px;border-radius:10px;overflow:hidden;background:var(--g,#8a6238);display:grid;place-items:center;color:#fff;flex:0 0 84px}
.rs-pic img{width:100%;height:100%;object-fit:cover;display:block}.rs-pic i{font-style:normal;font-size:1.6rem}
.rs-t{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rs-t em{font-style:normal;font-size:.78rem;font-weight:800;color:#b7790a}.rs-t b{font-size:1.1rem;color:#3a2410}
.rs-go{background:#b7790a;color:#fff;border-radius:12px;padding:9px 14px;font-weight:800;font-size:.92rem;white-space:nowrap}

/* 선물하기 */
.pm-bank { background: #5b7fa6; }
.gift-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.gift-plan input { position: absolute; opacity: 0; }
.gift-plan > span { display: block; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 4px; text-align: center; min-height: 64px; }
.gift-plan b { display: block; font-size: 1.05rem; }
.gift-plan small { display: block; color: var(--muted); font-size: .85rem; }
.gift-plan em { display: block; font-style: normal; font-size: .78rem; color: var(--gold); font-weight: 700; }
.gift-plan input:checked + span { border-color: var(--gold); background: var(--gold-soft); }
.gift-plan input:focus-visible + span { outline: 3px solid var(--tea); outline-offset: 2px; }
.gift-card { background: linear-gradient(135deg, #844414, #a35a1a); color: #fff; border-radius: 20px; padding: 20px 16px; text-align: center; width: 100%; display: grid; gap: 4px; }
.gift-card i { font-style: normal; font-size: 2.6rem; }
.gift-card b { color: #ffd96a; font-size: 1.3rem; }
.gift-card .gc-from { font-size: .95rem; opacity: .95; }
.gift-card em { font-style: normal; font-size: .95rem; }
.btn.gift-kakao { background: #fee500; color: #2b1a10; }
.gift-entry { display: grid; gap: 10px; }

.pm-mark { display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; line-height: 1; }
.pm-card { background: var(--tea-soft); }
.pm-naverpay { background: #d5f5e0; }
.pm-tosspay { background: #dbe8ff; }
.pm-bank { background: #dfe8f3; }

/* 아이템 가게: 종류를 고르면 그 종류만 보이는 화면의 위쪽 */
.deco-back { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .6rem 0 .4rem; }
.deco-back h2 { margin: 0; font-size: 1.3rem; color: var(--brown, #844414); }

/* 게임 끝났을 때 다방 결과: 파일 있는 게임은 위쪽 얇은 띠(게임 자체 끝 화면을 가리지 않음) */
.game-result.slim { position: static; order: -1; flex: none; inset: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 4px) 10px 4px; background: rgba(17,17,17,.92); color: #fff; font-size: .95rem; white-space: nowrap; z-index: 6; }
.game-result.slim .btn { min-height: 36px; padding: 4px 14px; font-size: .95rem; background: #fff; }

/* ===== 2026-11-28 주인님 UI 키트 반영: 배너 그림 + 입체(Tactile) 버튼 ===== */
.page-banner { margin: 0; }
.page-banner img { display: block; width: 100%; height: auto; border-radius: 22px; filter: drop-shadow(0 8px 14px rgba(60, 30, 10, .16)); }
.pts-row { margin-top: 12px; }
.slogan-band.img { background: none; padding: 0; border-radius: 0; box-shadow: none; }
.slogan-band.img img { display: block; width: 100%; height: auto; }
.img-btn { display: block; width: 100%; text-align: center; -webkit-tap-highlight-color: transparent; transition: transform .14s cubic-bezier(.34, 1.56, .64, 1), filter .2s; }
.img-btn img { display: block; width: 100%; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 10px rgba(110, 30, 5, .28)); }
.img-btn.narrow { max-width: 340px; margin: 0 auto; }
.img-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.img-btn:active { transform: translateY(4px) scale(.985); }
/* 입체 버튼 공통 */
.btn { border-radius: 18px; font-weight: 800; letter-spacing: -.02em; transform: translateY(0); -webkit-tap-highlight-color: transparent; transition: transform .14s cubic-bezier(.34, 1.56, .64, 1), box-shadow .14s cubic-bezier(.34, 1.56, .64, 1), background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); }
.btn-primary { color: #fff; text-shadow: 0 1px 2px rgba(45, 20, 3, .45); background: linear-gradient(180deg, #8d4914 0%, #6e360a 100%); border: 2px solid #9e561d;
  box-shadow: 0 5px 0 #472104, 0 10px 20px rgba(92, 45, 8, .28), inset 0 2px 2px rgba(255, 220, 180, .35); }
.btn-primary:hover { background: linear-gradient(180deg, #9a5319 0%, #7a3d0d 100%); box-shadow: 0 7px 0 #472104, 0 14px 24px rgba(92, 45, 8, .34), inset 0 2px 2px rgba(255, 220, 180, .45); }
.btn-primary:active { box-shadow: 0 1px 0 #472104, 0 4px 10px rgba(92, 45, 8, .25), inset 0 2px 4px rgba(38, 17, 2, .35); }
.btn-gold { color: #3b281a; background: linear-gradient(180deg, #f2b830 0%, #c88a16 100%); border: 1.5px solid #e3a928;
  box-shadow: 0 5px 0 #875705, 0 9px 16px rgba(184, 125, 20, .28), inset 0 2px 2px rgba(255, 255, 255, .55); }
.btn-gold:active { box-shadow: 0 1px 0 #875705, 0 3px 6px rgba(184, 125, 20, .2), inset 0 2px 4px rgba(135, 87, 5, .25); }
.btn-line { color: #4a3525; background: linear-gradient(180deg, #fff 0%, #faf3e8 100%); border: 1.5px solid #efe3d0;
  box-shadow: 0 5px 0 #dfceb4, 0 8px 14px rgba(74, 53, 37, .1), inset 0 2px 1px rgba(255, 255, 255, .95); }
.btn-line:active { box-shadow: 0 1px 0 #dfceb4, 0 3px 6px rgba(74, 53, 37, .1), inset 0 2px 4px rgba(74, 53, 37, .12); }
.btn[disabled], .btn[aria-disabled="true"] { box-shadow: none; transform: none; text-shadow: none; }
.btn-block, .btn-row > .btn { margin-bottom: 5px; }
/* 칩·카테고리 알약 버튼 */
.cat { border-radius: 9999px; font-weight: 800; color: #3d2817; background: linear-gradient(180deg, #fff 0%, #fbf7f0 100%); border: 2px solid #ddd3c5; box-shadow: 0 4px 0 #d3c6b4, inset 0 2px 1px #fff; transition: transform .14s cubic-bezier(.34, 1.56, .64, 1), box-shadow .14s; }
.cat:active { transform: translateY(3px); box-shadow: 0 1px 0 #d3c6b4; }
.cat[aria-current="true"], .cat.on { color: #fff; text-shadow: 0 1px 2px rgba(45, 20, 3, .45); background: linear-gradient(180deg, #8d4914 0%, #6e360a 100%); border-color: #9e561d; box-shadow: 0 4px 0 #472104, 0 8px 16px rgba(92, 45, 8, .25), inset 0 2px 2px rgba(255, 220, 180, .35); }
.cat-row { padding-bottom: 8px; }
.chip { box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.chip-points { background: linear-gradient(180deg, #fdf4e3 0%, #f5e5c6 100%); border-color: #e8cfa2; box-shadow: 0 4px 0 #d2b482, inset 0 2px 2px rgba(255, 255, 255, .9); }
/* PC 크기에서 소개바가 너무 커지지 않게 + 맨 위 메뉴 버튼 입체 스타일 */
.page-banner { max-width: 760px; margin-left: auto; margin-right: auto; }
.pts-row { max-width: 760px; margin-left: auto; margin-right: auto; }
@media (min-width: 960px) {
  .top-nav { gap: 10px; }
  .top-nav a { min-height: 48px; border-radius: 16px; color: #4a3525; font-weight: 800; letter-spacing: -.02em;
    background: linear-gradient(180deg, #fff 0%, #faf3e8 100%); border: 1.5px solid #efe3d0;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, .95), inset 0 -2px 3px rgba(213, 192, 158, .35), 0 4px 0 #dfceb4, 0 7px 12px rgba(74, 53, 37, .1);
    transition: transform .14s cubic-bezier(.34, 1.56, .64, 1), box-shadow .14s cubic-bezier(.34, 1.56, .64, 1); }
  .top-nav a:hover { background: linear-gradient(180deg, #fff 0%, #f7ecda 100%); color: #3b281a; transform: translateY(-2px);
    box-shadow: inset 0 2px 2px #fff, inset 0 -2px 3px rgba(213, 192, 158, .4), 0 6px 0 #dfceb4, 0 11px 16px rgba(74, 53, 37, .14); }
  .top-nav a:active { transform: translateY(3px); box-shadow: inset 0 2px 4px rgba(74, 53, 37, .12), 0 1px 0 #dfceb4; }
  .top-nav a[aria-current="page"] { color: #3b281a; background: linear-gradient(180deg, #fbf2e1 0%, #f0dec0 100%); border-color: #e5cfaf;
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, .9), inset 0 -2px 4px rgba(195, 168, 127, .45), 0 4px 0 #cbb18b, 0 8px 14px rgba(138, 102, 54, .18); }
  .top-nav a[aria-current="page"]:active { transform: translateY(3px); box-shadow: inset 0 2px 4px rgba(74, 53, 37, .15), 0 1px 0 #cbb18b; }
}
.chip-me, .chip-size { background: linear-gradient(180deg, #fff 0%, #faf3e8 100%); border: 1.5px solid #efe3d0; color: #4a3525; box-shadow: 0 4px 0 #dfceb4, inset 0 2px 1px #fff; }
.chip-me:active, .chip-size:active { transform: translateY(3px); box-shadow: 0 1px 0 #dfceb4; }
/* 아이템 가게 종류 버튼: 입체 + 작게 */
.deco-tab-row { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; margin-bottom: 10px; }
.deco-tab { padding: 10px 4px; border-radius: 18px; font-size: .9rem; background: linear-gradient(180deg, #fbf3e4 0%, #f5e9d3 100%); border: 1.5px solid #e5d3b3;
  box-shadow: 0 4px 0 #d5c09e, 0 7px 12px rgba(74, 53, 37, .1), inset 0 2px 1px rgba(255, 255, 255, .9); transition: transform .14s cubic-bezier(.34, 1.56, .64, 1), box-shadow .14s; }
.deco-tab:hover { transform: translateY(-2px); }
.deco-tab:active { transform: translateY(3px); box-shadow: 0 1px 0 #d5c09e, inset 0 2px 3px rgba(74, 53, 37, .12); }
.deco-tab .dt-emo { font-size: 1.5rem; }
.deco-tab[aria-current="true"] { color: #fff; text-shadow: 0 1px 2px rgba(45, 20, 3, .45); background: linear-gradient(180deg, #8d4914 0%, #6e360a 100%); border-color: #9e561d; box-shadow: 0 4px 0 #472104, 0 8px 16px rgba(92, 45, 8, .25), inset 0 2px 2px rgba(255, 220, 180, .35); }
.deco-tabs { max-width: 760px; margin-left: auto; margin-right: auto; width: 100%; }
/* 맨 위 메뉴 글자가 두 줄로 꺾이지 않게 */
.top-nav a { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1259px) { .top-nav { gap: 6px; } .top-nav a { padding: 0 11px; font-size: .95rem; } .logo { margin-right: 8px; } }
/* 건강 주제 4색 입체 카드 (주인님 키트) */
.topic-tile { position: relative; min-height: 150px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 26px; gap: 8px; font-size: 1.25rem; text-shadow: 0 2px 4px rgba(0, 0, 0, .24); transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), box-shadow .16s;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 82%, #fff) 0%, var(--tc) 55%, color-mix(in srgb, var(--tc) 82%, #000) 100%);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .45), inset 0 -3px 6px rgba(0, 0, 0, .25), 0 7px 0 color-mix(in srgb, var(--tc) 62%, #000), 0 14px 22px rgba(0, 0, 0, .18); }
.topic-tile:hover { transform: translateY(-4px); box-shadow: inset 0 2px 4px rgba(255, 255, 255, .55), inset 0 -3px 6px rgba(0, 0, 0, .25), 0 11px 0 color-mix(in srgb, var(--tc) 62%, #000), 0 18px 26px rgba(0, 0, 0, .22); }
.topic-tile:active { transform: translateY(4px); box-shadow: inset 0 3px 7px rgba(0, 0, 0, .35), 0 2px 0 color-mix(in srgb, var(--tc) 62%, #000), 0 5px 10px rgba(0, 0, 0, .18); }
.topic-tile .emo img { display: block; width: 72px; height: 72px; filter: drop-shadow(0 8px 10px rgba(24, 16, 8, .28)); }
.topic-tile[aria-pressed="true"] { border: 2.5px solid #fff; outline: none; }
.topic-tiles { gap: 16px; padding-bottom: 8px; }

/* ===== 입체(Tactile) 카드 전체 적용 (11/28) ===== */
.m-tile, .card, .service, .stat, .post, .tip-card, .banner, .plan, .notice {
  background: linear-gradient(180deg, #fff 0%, #fbf5ea 100%); border: 1.5px solid #efe3d0; border-radius: 24px;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .95), inset 0 -2px 3px rgba(213, 192, 158, .28), 0 5px 0 #dfceb4, 0 10px 18px rgba(74, 53, 37, .1);
}
.m-tile, .service, .post-row, a.card, .tip-card { transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), box-shadow .16s cubic-bezier(.34, 1.56, .64, 1); }
.m-tile:hover, .service:hover, a.post:hover, a.card:hover, a.tip-card:hover { transform: translateY(-3px); box-shadow: inset 0 2px 2px #fff, inset 0 -2px 3px rgba(213, 192, 158, .35), 0 8px 0 #dfceb4, 0 14px 22px rgba(74, 53, 37, .14); }
.m-tile:active, .service:active, a.post:active, a.card:active, a.tip-card:active { transform: translateY(4px); box-shadow: inset 0 2px 4px rgba(74, 53, 37, .12), 0 1px 0 #dfceb4; }
.m-tile { padding: 18px 18px 16px; }
.m-tile::before { height: 5px; border-radius: 24px 24px 0 0; }
.m-tile b { font-weight: 800; font-size: 1.2rem; color: #4a2b10; }
.m-tile .mt-emo { width: 58px; height: 58px; font-size: 1.9rem; background: linear-gradient(180deg, #fff8e6 0%, #f6dfa3 100%); border: 2px solid #e5c36a; box-shadow: 0 4px 0 #c9992f, inset 0 2px 2px #fff; filter: drop-shadow(0 4px 5px rgba(80, 50, 10, .2)); }
.m-minis { gap: 18px; }
.service .ico { width: 56px; height: 56px; box-shadow: 0 4px 0 #d9b96a, inset 0 2px 2px #fff; filter: drop-shadow(0 4px 5px rgba(80, 50, 10, .2)); }
.post { border-left-width: 1.5px; position: relative; overflow: hidden; }
.posts .post::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: #ee8a2b; }
.posts li:nth-child(3n+2) .post::before { background: #3f9f6a; }
.posts li:nth-child(3n) .post::before { background: #3f7fd0; }
.posts .post { border-left: 1.5px solid #efe3d0; padding-left: 26px; }
.posts { gap: 16px; }
.banner-gold { background: linear-gradient(180deg, #fdf4e3 0%, #f5e5c6 100%); border-color: #e8cfa2; box-shadow: 0 5px 0 #d2b482, 0 10px 18px rgba(184, 125, 20, .16), inset 0 2px 2px rgba(255, 255, 255, .95); }
.notice { border-radius: 18px; }
.plan.paid { border-color: #9e561d; box-shadow: 0 6px 0 #6e360a, 0 12px 22px rgba(92, 45, 8, .22), inset 0 2px 1px rgba(255, 255, 255, .9); }
.section-head h2, .section h2 { letter-spacing: -.02em; }

/* ===== 운세 페이지 입체 디자인 ===== */
.fortune { background: linear-gradient(180deg, #fffdf9 0%, #fbf3e2 100%); border: 1.5px solid #efe0c2; border-radius: 28px; padding: 22px; gap: 18px;
  box-shadow: inset 0 2px 1px #fff, 0 6px 0 #dfceb4, 0 14px 24px rgba(74, 53, 37, .12); }
.fortune-head h1 { font-size: 1.9rem; color: #4a2b10; }
.fortune-date { background: linear-gradient(180deg, #fdf4e3 0%, #f5e5c6 100%); border: 1.5px solid #e8cfa2; border-radius: 9999px; padding: 6px 14px; box-shadow: 0 3px 0 #d2b482; color: #6e360a; }
.saying { background: linear-gradient(180deg, #fbf2e1 0%, #f0dec0 100%); border: 1.5px solid #e5cfaf; border-radius: 20px; padding: 18px; font-size: 1.3rem; color: #4a2b10;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .9), inset 0 -2px 4px rgba(195, 168, 127, .4), 0 5px 0 #cbb18b; }
.lucky { gap: 16px; padding-bottom: 6px; }
.lucky-box { border-radius: 22px; padding: 16px 18px; background: linear-gradient(180deg, #fff8e6 0%, #f9e6b4 100%); border: 1.5px solid #ecd391;
  box-shadow: inset 0 2px 2px #fff, 0 5px 0 #d6b45a, 0 10px 16px rgba(184, 125, 20, .15); }
.lucky-box > b { color: #6e4a06; font-size: 1.05rem; }
.nums span { width: 60px; height: 60px; font-weight: 800; color: #5c3a06; border: 0;
  background: radial-gradient(circle at 30% 28%, #fff3c4 0%, #f2b830 55%, #c88a16 100%); box-shadow: 0 4px 0 #875705, inset 0 2px 2px rgba(255, 255, 255, .7), 0 8px 12px rgba(135, 87, 5, .25); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.swatch { width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .18), 0 8px 12px rgba(0, 0, 0, .15); }
.z-title { font-size: 1.5rem; color: #4a2b10; }
.ztabs { gap: 14px; }
.ztab { min-height: 96px; border-radius: 22px; border: 1.5px solid #efe3d0; color: #4a3525; font-weight: 800; gap: 6px;
  background: linear-gradient(180deg, #fff 0%, #faf3e8 100%); box-shadow: 0 5px 0 #dfceb4, 0 9px 14px rgba(74, 53, 37, .1), inset 0 2px 1px #fff;
  transition: transform .14s cubic-bezier(.34, 1.56, .64, 1), box-shadow .14s; }
.ztab i { font-size: 2.1rem; letter-spacing: 4px; filter: drop-shadow(0 4px 4px rgba(60, 30, 10, .25)); }
.ztab:hover { transform: translateY(-2px); }
.ztab:active { transform: translateY(4px); box-shadow: 0 1px 0 #dfceb4, inset 0 2px 4px rgba(74, 53, 37, .12); }
.ztab[aria-current="true"] { color: #fff; text-shadow: 0 1px 2px rgba(45, 20, 3, .45); border-color: #9e561d; background: linear-gradient(180deg, #8d4914 0%, #6e360a 100%);
  box-shadow: 0 5px 0 #472104, 0 10px 18px rgba(92, 45, 8, .28), inset 0 2px 2px rgba(255, 220, 180, .35); }
.zgroup { border: 1.5px solid #efe0c2; border-radius: 24px; padding: 16px; gap: 14px; background: #fffdf9; box-shadow: inset 0 2px 6px rgba(184, 125, 20, .08); }
.zrow { background: linear-gradient(180deg, #fff 0%, #fbf5ea 100%); border: 1.5px solid #efe3d0; border-radius: 22px; padding: 14px; gap: 14px; align-items: center;
  box-shadow: 0 4px 0 #e6d8c0, 0 8px 12px rgba(74, 53, 37, .08), inset 0 2px 1px #fff; }
.zico { width: 76px; height: 76px; font-size: 2.7rem; background: radial-gradient(circle at 30% 25%, #fffdf5 0%, #f8e2a6 100%); border: 2.5px solid #e5c36a;
  box-shadow: 0 4px 0 #c9992f, inset 0 2px 2px #fff; filter: drop-shadow(0 5px 6px rgba(80, 50, 10, .22)); }
.zrow b { font-weight: 800; font-size: 1.3rem; color: #4a2b10; }
.fortune-note { margin-top: 4px; }
@media (min-width: 720px) { .ztabs { grid-template-columns: repeat(4, 1fr); } }
.ztab i { font-size: 1.75rem; letter-spacing: 0; white-space: nowrap; }
.zico { width: 64px; height: 64px; font-size: 2.3rem; }
.zrow { padding: 12px; gap: 12px; }
@media (min-width: 720px) { .zico { width: 76px; height: 76px; font-size: 2.7rem; } .ztab i { font-size: 2.1rem; } }

/* 글꼴 통일: IBM 플렉스 산스 KR (제목 굵게, 본문 보통). 로고 글자만 주아 */
.logo-mark, .logo-text { font-family: "Jua", "IBM Plex Sans KR", sans-serif; font-weight: 400; }
.saying, .nums span, .m-tile b, .fortune-head h1 { font-family: var(--font-display); }
.saying { font-weight: 500; }
body { font-weight: 400; letter-spacing: -.01em; }
.intro-tag { margin: 0; padding: 8px 12px; border-radius: 14px; background: linear-gradient(180deg, #fff8e6 0%, #f9e6b4 100%); border: 1.5px solid #ecd391; font-weight: 800; color: #6e4a06; box-shadow: 0 3px 0 #d6b45a; }

/* 싱글·커플 표시 */
.rel-tag{display:inline-flex;align-items:center;gap:3px;margin-left:6px;padding:1px 8px 1px 6px;border-radius:999px;font-size:.78rem;font-weight:700;vertical-align:middle;white-space:nowrap;background:var(--tea-soft);color:var(--tea-strong);border:1px solid var(--line)}
.rel-tag.rel-couple{background:var(--gold-soft);color:var(--gold-ink);border-color:#e6cf93}
.rel-tag i{font-style:normal;font-size:.9em}
.rel-card{display:grid;gap:10px}.rel-card h3{margin:0}.rel-card .lead{margin:0;font-size:.95rem}
.rel-pick{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 12px;padding-bottom:6px}
/* 오늘의 알뜰 상품 */
.deal-list{display:grid;gap:14px}
.deal{display:grid;grid-template-columns:84px 1fr;gap:14px;align-items:start}
.deal-pic{display:grid;place-items:center;width:84px;height:84px;border-radius:18px;background:var(--tea-soft);font-size:2.6rem}
.deal-in{display:grid;gap:6px;min-width:0}.deal-in h3{margin:0;font-size:1.15rem}
.deal-cat{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.85rem}
.deal-cat em{font-style:normal;padding:0 7px;border-radius:6px;border:1px solid var(--line);font-size:.75rem}
.deal-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0}.deal-price b{font-size:1.35rem;color:var(--tea-strong)}.deal-price span{color:var(--muted);font-size:.9rem}
.deal-meta{margin:0;color:var(--muted);font-size:.88rem}
.deal-ad{font-size:.9rem;line-height:1.55}
@media (max-width:380px){.deal{grid-template-columns:1fr}}

.rel-btn{flex-direction:column;gap:2px;min-height:104px;padding:10px 4px 12px;font-size:1.1rem}
.rel-btn{overflow:hidden;padding:0 0 10px;gap:4px;min-height:0;background:#ebd7b6;border:3px solid #d9c19a}
.rel-btn.btn-line{background:#ebd7b6;border-color:#d9c19a}
.rel-btn.btn-gold{background:#ebd7b6;border-color:#c88a16;box-shadow:0 5px 0 #875705,0 9px 16px rgba(184,125,20,.28)}
.rel-btn.btn-gold b{background:linear-gradient(180deg,#f2b830,#c88a16);color:#3b281a}
.rel-btn b{padding:2px 14px;border-radius:999px}
.rel-ico{display:grid;place-items:center;width:100%;aspect-ratio:512/570;height:auto;border-radius:0}
.rel-ico i{font-size:2.4rem}.rel-ico i{font-style:normal;font-size:2rem}
.has-rel-img .rel-ico{background:url(assets/ui/status-3.png) no-repeat;background-size:300% 100%}
.has-rel-img .rel-ico-0{background-position:0 50%}.has-rel-img .rel-ico-1{background-position:50% 50%}.has-rel-img .rel-ico-2{background-position:100% 50%}
.has-rel-img .rel-ico i{display:none}
.service-btn{width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer}

.deals-mini{display:grid;gap:12px}.dm-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.dm-head h2{margin:0}
.dm-head em{font-style:normal;padding:0 7px;border-radius:6px;border:1px solid var(--line);font-size:.75rem;color:var(--muted)}
.deals-mini ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.deals-mini li{display:flex;align-items:center;gap:10px}
.dm-pic{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--tea-soft);font-size:1.5rem}
.dm-t{flex:1;min-width:0;display:grid}.dm-t b{font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-t span{color:var(--muted);font-size:.82rem}
.dm-p{font-weight:800;color:var(--tea-strong);white-space:nowrap}
.deals-mini small{color:var(--muted);font-size:.78rem}

/* 홈 맨 위 큰 설치 버튼 */
.install-top { margin: 0 0 16px; }
.install-top .btn { flex-direction: column; gap: 2px; min-height: 72px; font-size: 1.4rem; box-shadow: 0 4px 0 var(--tea-strong); }
.install-top .btn small { font-size: 1rem; font-weight: 500; opacity: .92; }
.welcome-actions .install-top { width: 100%; margin: 0; }

/* 폰 큰 배너: 폰에서는 글씨·그림을 위아래로 쌓은 큰 배너 사용(그림이 잘리지 않아요) */
.page-banner picture, .slogan-band.img picture { display: block; }
@media (max-width: 700px) {
  .page-banner, .slogan-band.img { margin-left: -6px; margin-right: -6px; }
  .page-banner img, .slogan-band.img img { border-radius: 26px; }
  .page-head { padding: 30px 20px 26px; border-radius: 26px; min-height: 150px; }
  .page-head h1 { font-size: 2.3rem; padding-right: 84px; }
  .page-head p { font-size: 1.25rem; padding-right: 84px; margin-top: 10px; }
  .page-head .ph-emo { font-size: 5.6rem; right: 12px; top: 18px; }
}