.wrap { max-width: 90%; margin: 0 auto; padding: 14px 16px 40px; }
.top-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-title { font-size: 1.25rem; font-weight: 800; color: var(--text-main); }
.page-sub { font-size: 0.74rem; color: var(--text-dim); }
.market-closed { display: none; font-size: 0.76rem; color: #ffb26a; background: rgba(255,178,106,0.08); border: 1px solid rgba(255,178,106,0.3); border-radius: 8px; padding: 4px 12px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-dim); text-decoration: none; padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: transparent; }
.back-btn:hover { color: var(--text-main); border-color: var(--border-strong); }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.section-gap { margin-top: 14px; }
.modal p { white-space: pre-line; }
.up { color: #ff7070; }
.sub-note { font-weight: 400; color: var(--text-dim); font-size: 0.7rem; }
/* 공용 .section-label은 글자를 대문자로 바꾸는데, 안에 든 설명·가게 이름(영문)까지 대문자가 되던 것 */
.section-label .sub-note { text-transform: none; letter-spacing: normal; }

/* 첫걸음 가이드 (참여자 첫 방문) */
.quickstart { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.qs-title { font-size: 0.86rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.qs-step { display: flex; gap: 10px; align-items: baseline; font-size: 0.82rem; color: var(--text-sub); line-height: 1.6; margin-bottom: 6px; }
.qs-step > b:first-child { color: var(--brand); flex-shrink: 0; }
.qs-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.qs-btn { font-size: 0.76rem; padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-sub); cursor: pointer; }
.qs-btn:hover { color: var(--brand); border-color: var(--brand); }
.join-box, .login-box { background: var(--bg-card); border: 1px dashed var(--border); border-radius: 12px; padding: 26px 20px; text-align: center; margin: 16px 0; }
.join-box h3, .login-box h3 { color: #ddd; font-size: 1rem; margin: 0 0 10px; }
.join-box p, .login-box p { color: var(--text-dim); font-size: 0.82rem; margin: 0 0 16px; line-height: 1.7; }
.big-btn { display: inline-block; padding: 10px 26px; background: rgba(var(--brand-rgb), 0.12); color: var(--brand); border: 1px solid rgba(var(--brand-rgb), 0.4); border-radius: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer; text-decoration: none; }
.big-btn:hover { background: rgba(var(--brand-rgb), 0.22); }
.big-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.shop-name-input { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); padding: 10px 14px; font-size: 0.9rem; width: min(320px, 90%); text-align: center; margin-bottom: 6px; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 14px auto 18px; max-width: 900px; }
.biz-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px; cursor: pointer; background: var(--bg-deep, rgba(255,255,255,0.03)); text-align: center; color: inherit; font-family: inherit; width: 100%; }
.biz-card:hover { border-color: var(--border-strong); }
.biz-card.active { border-color: var(--brand); background: rgba(var(--brand-rgb), 0.07); }
.biz-name { display: block; font-size: 0.92rem; font-weight: 800; color: var(--text-main); }
.biz-desc { display: block; font-size: 0.7rem; color: var(--text-dim); margin-top: 6px; line-height: 1.6; }

/* 가게 대시보드 */
.shop-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.shop-title { font-size: 1.15rem; font-weight: 900; color: var(--text-main); }
.shop-biz { font-size: 0.76rem; color: var(--text-dim); }
.stars { color: #ffd76a; font-size: 0.85rem; letter-spacing: 0.05em; }
.title-badge { font-size: 0.66rem; font-weight: 800; color: #b18aff; border: 1px solid rgba(177,138,255,0.45); border-radius: 5px; padding: 1px 7px; white-space: nowrap; }
.prestige-badge { font-size: 0.66rem; font-weight: 800; color: #ffd76a; border: 1px solid rgba(255,215,106,0.45); border-radius: 5px; padding: 1px 7px; white-space: nowrap; }
.boost-badge { font-size: 0.66rem; font-weight: 800; color: #7db4ff; border: 1px solid rgba(125,180,255,0.45); border-radius: 5px; padding: 1px 7px; white-space: nowrap; }
.dash-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.dash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.dash-label { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 4px; }
.dash-value { font-size: 1.05rem; font-weight: 800; color: var(--text-main); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dash-value.brand { color: var(--brand); }
.dash-sub { font-size: 0.68rem; color: var(--text-dim); margin-top: 3px; }
.fame-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); margin-top: 6px; overflow: hidden; }
.fame-fill { height: 100%; background: #f2c94c; border-radius: 3px; }
.stock-warn { color: #ff8a8a; font-weight: 700; }

.invest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.invest-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.invest-card.owned { border-color: rgba(var(--brand-rgb), 0.4); }
.invest-card.locked { opacity: 0.55; }
.invest-title { font-size: 0.82rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.invest-desc { font-size: 0.7rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 8px; }
.invest-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.act-btn { padding: 7px 14px; font-size: 0.78rem; font-weight: 700; border-radius: 8px; cursor: pointer; border: 1px solid rgba(var(--brand-rgb), 0.35); background: rgba(var(--brand-rgb), 0.1); color: var(--brand); }
.act-btn:hover:not(:disabled) { background: rgba(var(--brand-rgb), 0.2); }
.act-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.act-btn.ghost { background: transparent; color: var(--text-sub); border-color: var(--border-strong); }
.act-btn.gold { border-color: rgba(255,215,106,0.45); background: rgba(255,215,106,0.1); color: #ffd76a; }
.act-btn.gold:hover:not(:disabled) { background: rgba(255,215,106,0.2); }
.stock-input { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); padding: 7px 10px; font-size: 0.8rem; width: 110px; }
.ad-badge { font-size: 0.66rem; font-weight: 800; color: #f2c94c; border: 1px solid rgba(242,201,76,0.4); border-radius: 5px; padding: 1px 7px; }
.owned-chip { font-size: 0.62rem; font-weight: 800; color: var(--brand); border: 1px solid rgba(var(--brand-rgb), 0.4); border-radius: 4px; padding: 0 6px; }
.lv-chip { font-size: 0.62rem; font-weight: 700; color: var(--text-dim); border: 1px solid var(--border); border-radius: 4px; padding: 0 6px; }
.mode-select { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); padding: 6px 10px; font-size: 0.78rem; max-width: 100%; }
.hours-custom { display: none; gap: 6px; align-items: center; flex-wrap: wrap; }
.hours-custom.on { display: flex; }
.hours-custom .hint { font-size: 0.78rem; color: var(--text-dim); }

/* 로그·리뷰 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.log-item { display: flex; gap: 8px; align-items: baseline; padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.76rem; }
.log-item .l-time { color: #666; font-size: 0.66rem; white-space: nowrap; }
.log-item .l-title { color: var(--text-sub); flex: 1; line-height: 1.6; }
.log-item .l-amount { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.log-tag { font-size: 0.6rem; font-weight: 800; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.log-tag.settle { background: rgba(var(--ok-rgb), 0.12); color: var(--ok); }
.log-tag.event { background: rgba(242,201,76,0.15); color: #f2c94c; }
.log-tag.action { background: rgba(255,255,255,0.08); color: #aaa; }
.review-item { padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.review-head { display: flex; gap: 8px; align-items: baseline; font-size: 0.74rem; }
.review-head .rv-name { font-weight: 700; color: var(--text-sub); }
.review-head .rv-time { color: #666; font-size: 0.64rem; margin-left: auto; }
.review-text { font-size: 0.78rem; color: var(--text-dim); margin-top: 3px; line-height: 1.6; }
.log-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }

/* 7일 매출 추이 */
.chart-row { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 6px 4px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.chart-bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, rgba(var(--ok-rgb), 0.7), rgba(var(--ok-rgb), 0.25)); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart-bar.today { background: linear-gradient(180deg, #f2c94c, rgba(242,201,76,0.3)); }
.chart-val { font-size: 0.6rem; color: var(--text-sub); font-variant-numeric: tabular-nums; margin-bottom: 3px; white-space: nowrap; }
.chart-day { font-size: 0.64rem; color: var(--text-dim); margin-top: 4px; white-space: nowrap; }
.chart-sum { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.72rem; color: var(--text-dim); margin-top: 8px; }
.chart-sum b { color: var(--text-main); }

/* 메뉴 */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.menu-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--bg-card); }
.menu-card.owned-menu { border-color: rgba(var(--brand-rgb), 0.4); }
.menu-card.owned-menu.paused { border-color: var(--border-strong); border-style: dashed; opacity: 0.7; }
.paused-tag { font-size: 0.62rem; font-weight: 800; color: var(--text-dim); border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 6px; margin-left: auto; white-space: nowrap; }
.menu-card.locked { opacity: 0.5; }
.menu-card.featured { box-shadow: inset 0 0 0 1px rgba(242,201,76,0.35); }
.menu-name { font-size: 0.86rem; font-weight: 800; color: var(--text-main); }
.menu-meta { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.tier-tag { font-size: 0.62rem; font-weight: 800; padding: 1px 6px; border-radius: 5px; }
.tier-1 { background: rgba(255,255,255,0.08); color: #ccc; }
.tier-2 { background: rgba(125,180,255,0.15); color: #7db4ff; }
.tier-3 { background: rgba(177,138,255,0.15); color: #b18aff; }
.tier-4 { background: rgba(255,215,106,0.15); color: #ffd76a; }
.tier-5 { background: linear-gradient(90deg, rgba(255,120,120,0.2), rgba(255,215,106,0.2)); color: #ffb0a0; }
.featured-tag { font-size: 0.6rem; font-weight: 800; color: #f2c94c; border: 1px solid rgba(242,201,76,0.45); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.owned-tag { font-size: 0.62rem; font-weight: 800; color: var(--brand); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-size: 0.74rem; color: var(--text-dim); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { font-size: 0.8rem; color: var(--text-sub); padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-1 td { color: #ffd76a; font-weight: 700; }
.rank-tabs { display: flex; gap: 6px; padding: 12px 14px 0; flex-wrap: wrap; }
.flt-btn { padding: 5px 12px; font-size: 0.76rem; font-weight: 700; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-dim); cursor: pointer; }
.flt-btn.active { border-color: var(--brand); color: var(--brand); background: rgba(var(--brand-rgb), 0.08); }

.guide-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.guide-card h3 { font-size: 0.92rem; color: var(--brand); margin: 0 0 8px; }
.npc-chip { font-size: 0.58rem; font-weight: 800; color: #9ab; border: 1px solid rgba(150,170,190,0.4); border-radius: 4px; padding: 0 4px; vertical-align: middle; flex-shrink: 0; }
#npc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.npc-card { background: var(--bg-deep, rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.npc-card .nc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.npc-card .nc-name { font-size: 0.86rem; font-weight: 800; color: var(--text-main); }
.npc-card .nc-assets { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.npc-card .nc-desc { font-size: 0.72rem; color: var(--text-dim); margin-top: 3px; line-height: 1.5; }
.npc-card .nc-props { font-size: 0.72rem; color: var(--text-sub); margin-top: 5px; line-height: 1.6; }
.npc-card .nc-props b { color: var(--brand); font-weight: 700; }
@media (max-width: 760px) { #npc-list { grid-template-columns: 1fr; } }
.guide-card p, .guide-card li { font-size: 0.8rem; color: var(--text-sub); line-height: 1.8; }
.guide-card ul { margin: 0; padding-left: 18px; }
.guide-card b { color: var(--text-main); }

/* v43.6.0 대확장 */
.day-banner { display: none; align-items: center; gap: 8px; margin: 12px 0 0; padding: 9px 14px; border: 1px solid rgba(242,201,76,0.35); background: rgba(242,201,76,0.06); border-radius: 10px; font-size: 0.78rem; color: #f2c94c; font-weight: 700; flex-wrap: wrap; }
.day-banner .db-sub { color: var(--text-dim); font-weight: 400; font-size: 0.72rem; }
.choice-card { display: none; margin-bottom: 14px; padding: 14px 16px; border: 1px solid rgba(125,180,255,0.45); background: rgba(125,180,255,0.07); border-radius: 12px; }
.choice-card .cc-title { font-size: 0.9rem; font-weight: 800; color: #7db4ff; margin-bottom: 6px; }
.choice-card .cc-desc { font-size: 0.78rem; color: var(--text-sub); line-height: 1.7; margin-bottom: 10px; }
.choice-card .cc-until { font-size: 0.68rem; color: var(--text-dim); margin-left: auto; }
.goal-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.78rem; }
.goal-item:last-child { border-bottom: none; }
.goal-name { color: var(--text-sub); }
.goal-prog { color: var(--text-dim); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.goal-done { color: var(--ok); font-weight: 700; font-size: 0.7rem; }
.goal-bar { flex: 1; min-width: 60px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.goal-fill { height: 100%; background: var(--brand); border-radius: 3px; }
.trait-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 0.78rem; }
.trait-name { font-weight: 700; color: var(--text-main); width: 74px; flex-shrink: 0; }
.trait-desc { color: var(--text-dim); font-size: 0.7rem; flex: 1; line-height: 1.5; }
.trait-pips { letter-spacing: 2px; color: var(--brand); font-size: 0.72rem; white-space: nowrap; }
.trait-pips .off { color: #444; }
.regular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.regular-card { border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; background: var(--bg-deep, rgba(255,255,255,0.03)); }
.regular-card.lv0 { opacity: 0.45; }
.regular-name { font-size: 0.74rem; font-weight: 700; color: var(--text-sub); }
.regular-meta { font-size: 0.66rem; color: var(--text-dim); margin-top: 3px; font-variant-numeric: tabular-nums; }
.regular-lv { color: #f2c94c; font-weight: 800; }
.branch-no { font-size: 0.66rem; font-weight: 800; color: #b18aff; border: 1px solid rgba(177,138,255,0.4); border-radius: 5px; padding: 1px 7px; }
/* ══ 2026-09-21 가게 이동 바 — 본점·지점을 같은 화면에서 운영 ══ */
.store-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.sb-label { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 800; color: var(--text-dim); white-space: nowrap; }
.sb-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }
.sb-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.sb-chip { display: flex; align-items: center; gap: 6px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 9px; padding: 6px 11px; cursor: pointer; color: var(--text-sub); font-size: 0.78rem; font-weight: 700; transition: border-color 0.15s, color 0.15s; }
.sb-chip:hover { border-color: var(--border-strong); color: var(--text-main); }
.sb-chip.active { border-color: var(--brand); color: var(--text-main); background: rgba(var(--brand-rgb), 0.12); }
.sb-chip .sb-no { font-size: 0.62rem; font-weight: 800; color: #b18aff; }
.sb-chip.active .sb-no { color: var(--brand); }
.sb-chip .sb-meta { font-size: 0.66rem; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.sb-chip .sb-warn { color: #ff8a8a; font-weight: 800; }
/* 긴 가게 이름에 '본점'·'품절 1개'가 한 글자씩 세로로 눌리던 것 — 번호·상태는 고정, 이름만 말줄임 */
.sb-chip { max-width: 100%; min-width: 0; font-family: inherit; }
.sb-chip .sb-no, .sb-chip .sb-meta { flex-shrink: 0; white-space: nowrap; }
.sb-chip .sb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-done { font-size: 0.74rem; color: var(--text-dim); align-self: center; }
.modal-back { display: none; position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; padding: 16px; }
.modal-back.open { display: flex; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px; padding: 18px; width: min(720px, 100%); max-height: 80vh; overflow-y: auto; }
.modal-box h3 { margin: 0 0 12px; font-size: 0.95rem; color: var(--text-main); }
.hall-review { margin: 10px 4px 4px; padding: 12px 14px; border: 1px solid rgba(255,215,106,0.3); background: rgba(255,215,106,0.05); border-radius: 10px; font-size: 0.78rem; color: var(--text-sub); line-height: 1.7; }
.hall-review b { color: #ffd76a; }
.biz-select { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); padding: 8px 12px; font-size: 0.8rem; }

/* v43.7.0 재료 창고·메뉴 개편 */
.portion-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.portion-chip { font-size: 0.72rem; color: var(--text-sub); border: 1px solid var(--border); border-radius: 7px; padding: 3px 9px; background: var(--bg-deep, rgba(255,255,255,0.03)); }
.portion-chip b { color: var(--brand); font-variant-numeric: tabular-nums; }
.portion-chip.low { border-color: rgba(255,138,138,0.45); }
.portion-chip.low b { color: #ff8a8a; }
.ing-table td { padding: 6px 10px; }
.ing-table .ing-low td:first-child { color: #ff8a8a; }
.ing-table .ing-uses { font-size: 0.68rem; font-weight: 400; color: var(--text-dim); margin-top: 2px; }
.ing-unused { font-size: 0.6rem; color: #777; border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; }
.act-btn.mini { padding: 4px 9px; font-size: 0.7rem; }
.ing-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
.ing-tools .tool-label { font-size: 0.74rem; font-weight: 700; color: var(--text-sub); margin-right: 2px; }
.menu-recipe { font-size: 0.68rem; color: var(--text-dim); margin-top: 5px; line-height: 1.6; }
.menu-recipe .rc-cost { color: #888; }
.portion-badge { font-size: 0.62rem; font-weight: 800; color: var(--brand); margin-left: auto; white-space: nowrap; }
.portion-badge.low { color: #ff8a8a; }

/* 도전과제 */
.ach-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ach-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--bg-card); }
.ach-card.done { border-color: rgba(255,215,106,0.45); background: rgba(255,215,106,0.04); }
.ach-card.todo { opacity: 0.6; }
.ach-name { font-size: 0.84rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ach-desc { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; line-height: 1.6; }
.ach-reward { font-size: 0.7rem; color: var(--brand); margin-top: 5px; font-variant-numeric: tabular-nums; }
.ach-done-tag { font-size: 0.6rem; font-weight: 800; color: #ffd76a; border: 1px solid rgba(255,215,106,0.45); border-radius: 4px; padding: 0 5px; }

/* 채팅 오버레이 (stock.html 패턴) */
/* ── 연간 시즌 배너 · 명예의 전당 ── */
.season-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 8px; font-size: 0.66rem; font-weight: 700; background: rgba(255,215,106,0.14); color: #ffd76a; border: 1px solid rgba(255,215,106,0.35); vertical-align: middle; white-space: nowrap; }

/* ══ 2026-09-18 대형 고도화 ══ */
/* SVG 아트 — public/img/tycoon/<분류>/<이름>.png (생성기 scratchpad/tycoon-icons-gen.js) */
.ty-ico { width: 1.3em; height: 1.3em; vertical-align: -0.32em; flex-shrink: 0; }
.ty-ico.sm { width: 1.05em; height: 1.05em; vertical-align: -0.2em; }
.ty-ico.lg { width: 2.1em; height: 2.1em; vertical-align: -0.68em; }
.tab-btn .ty-ico { width: 1.1em; height: 1.1em; vertical-align: -0.22em; margin-right: 5px; }
.dash-label .ty-ico, .section-label .ty-ico, .invest-title .ty-ico, .cc-title .ty-ico { width: 1.15em; height: 1.15em; vertical-align: -0.24em; margin-right: 4px; }
.log-item .ty-ico { width: 1.05em; height: 1.05em; vertical-align: -0.2em; margin-right: 3px; }
.biz-card .ty-ico { width: 40px; height: 40px; vertical-align: middle; margin-right: 8px; }

/* 가게 외관 — 업종·인테리어·확장·간판·평점·영업 시간·광고·배달을 그대로 그려 주는 장면 */
.store-panel { padding: 0; overflow: hidden; margin-bottom: 14px; }
.store-scene { display: block; width: 100%; height: auto; max-height: 330px; background: #070a10; }
.store-caps { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 12px; border-top: 1px solid var(--border); }
.store-cap { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; color: var(--text-sub); background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.store-cap b { color: var(--text-main); font-weight: 800; }
.store-cap.on { border-color: rgba(var(--ok-rgb), 0.45); color: var(--ok); }
.store-cap.off { color: var(--text-dim); }

/* 오늘의 식자재 시세 */
.mk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-chip { display: inline-flex; align-items: baseline; gap: 5px; font-size: 0.72rem; border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; background: var(--bg-elev); color: var(--text-sub); font-variant-numeric: tabular-nums; }
.mk-chip b { color: var(--text-main); font-weight: 700; }
.mk-chip .mk-d { font-weight: 800; }
.mk-chip.up { border-color: rgba(255,120,120,0.4); }
.mk-chip.up .mk-d { color: #ff8a8a; }
.mk-chip.down { border-color: rgba(var(--ok-rgb), 0.4); }
.mk-chip.down .mk-d { color: var(--ok); }
.mk-chip.flat .mk-d { color: var(--text-dim); }
.mk-chip.unused { opacity: 0.5; }
.ing-mult { font-size: 0.68rem; font-weight: 800; margin-left: 4px; }
.ing-mult.up { color: #ff8a8a; }
.ing-mult.down { color: var(--ok); }

/* 레시피 연구 */
.rs-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; font-size: 0.7rem; color: var(--text-dim); }
.rs-pips { letter-spacing: 1px; color: #ffd76a; font-size: 0.78rem; }
.rs-pips .off { color: rgba(255,255,255,0.16); }
.rs-tag { font-size: 0.64rem; font-weight: 800; color: #1a1205; background: linear-gradient(135deg,#ffe9b0,#d99a20); border-radius: 5px; padding: 1px 6px; }
.rs-bar { flex: 1 1 100%; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.07); overflow: hidden; }
.rs-fill { height: 100%; background: linear-gradient(90deg,#ffd76a,#ff9a3d); }

/* 메뉴별 판매 리포트 */
.msales-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.07); overflow: hidden; min-width: 70px; }
.msales-fill { height: 100%; background: linear-gradient(90deg,var(--brand),var(--brand-hover)); }
.data-table td.msales-cell { width: 34%; }

/* ══ 2026-10-02 주간 요리 대회 · 가게 꾸미기 · 동네 상점가 ══ */
.flt-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ct-stores { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ct-menu { display: block; width: 100%; text-align: left; font-family: inherit; color: inherit; cursor: pointer; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg-deep, rgba(255,255,255,0.03)); }
.ct-menu:hover { border-color: var(--border-strong); }
.ct-menu.active { border-color: var(--brand); background: rgba(var(--brand-rgb), 0.08); }
.ct-menu .ct-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.84rem; font-weight: 800; color: var(--text-main); }
.ct-menu .ct-meta { display: block; font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.ct-base { margin-left: auto; font-size: 0.8rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-theme-tag { font-size: 0.6rem; font-weight: 800; color: #f2c94c; border: 1px solid rgba(242,201,76,0.45); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.ct-efforts { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 10px; align-items: center; }
.ct-go { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ct-expect { font-size: 0.76rem; color: var(--text-sub); }
.ct-expect b { color: var(--brand); font-variant-numeric: tabular-nums; }
.ct-result { border: 1px solid rgba(255,215,106,0.4); background: rgba(255,215,106,0.05); border-radius: 10px; padding: 12px 14px; font-size: 0.8rem; color: var(--text-sub); line-height: 1.7; }
.ct-result .ct-score { font-size: 1.3rem; font-weight: 900; color: #ffd76a; font-variant-numeric: tabular-nums; }
.ct-entries { margin-top: 12px; }
.ct-medal { width: 18px; height: 18px; vertical-align: -0.25em; margin-right: 3px; }
.ct-mine td { background: rgba(var(--brand-rgb), 0.06); }
.decor-thumb { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.street-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-items: start; }
.street-box { width: min(760px, 100%); }
.sv-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sv-scene { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.sv-caps { padding: 10px 0 0; border-top: 0; }
@media (max-width: 640px) {
    .street-grid, .ct-grid { grid-template-columns: minmax(0, 1fr); }
    .ct-go .act-btn { flex: 1 1 100%; }
    /* 탭 8개 — 휴대폰에서 한 줄 4칸씩 두 줄 (줄바꿈이면 3줄이 되던 것) */
    .wrap > .tab-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wrap > .tab-bar .tab-btn { padding: 6px 3px; font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .wrap > .tab-bar .tab-btn .ty-ico { margin-right: 3px; }
}

/* ══ 2026-09-24 페이지 고도화 3차 — 태블릿·휴대폰·터치 ══ */
/* 랭킹 표 — 휴대폰에서는 사장님·업종·명성을 가게 이름 아래 한 줄로 모은다(매출 칸이 화면 밖으로 밀려 안 보이던 것) */
.rk-m { display: none; }
@media (max-width: 1024px) {
    /* 태블릿: 대시보드 6칸을 4+2 대신 3+3으로 */
    .dash-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 터치 화면: 작은 조작 버튼도 손가락으로 누르기 쉽게 */
@media (pointer: coarse) {
    .act-btn, .flt-btn, .qs-btn, .sb-chip, .hbs-bar .hbs-open, .season-box .sx-close, .chat-close, .stock-input, .mode-select { min-height: 38px; }
    .act-btn.mini { min-height: 36px; padding: 6px 12px; font-size: 0.76rem; }
}
@media (max-width: 640px) {
    .wrap { max-width: 100%; padding: 12px 12px 40px; }
    .dash-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dash-card { padding: 10px 12px; }
    .dash-value { font-size: 1rem; }
    /* 본문 글자 — 휴대폰에서 너무 작지 않게 */
    .invest-desc, .menu-meta, .menu-recipe, .ach-desc, .biz-desc, .trait-desc, .dash-sub, .sub-note, .rs-line, .regular-meta,
    .npc-card .nc-desc, .npc-card .nc-props, .review-text, .log-item, .goal-item, .store-cap, .mk-chip, .chart-sum { font-size: 0.78rem; }
    .guide-card p, .guide-card li { font-size: 0.84rem; }
    .portion-badge, .lv-chip, .sb-chip .sb-no, .chart-day { font-size: 0.68rem; }
    .log-item .l-time, .review-head .rv-time, .sb-chip .sb-meta { font-size: 0.72rem; }
    /* 업종 고르기: 한 줄에 둘 */
    .join-box, .login-box { padding: 20px 14px; }
    .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .biz-card { padding: 12px 8px; }
    .biz-card .ty-ico { display: block; width: 34px; height: 34px; margin: 0 auto 4px; }
    /* 가게 이동: 칩 두 개씩, 이름 아래에 평점·품절 */
    .store-bar { padding: 10px 12px; gap: 8px; }
    .sb-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; flex: 1 1 100%; }
    .sb-chip { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; row-gap: 1px; align-items: center; text-align: left; padding: 7px 10px; }
    .sb-chip .sb-no { grid-row: 1 / span 2; }
    .sb-chip .sb-meta { grid-column: 2; }
    .sb-tools { margin-left: 0; width: 100%; }
    .sb-tools .act-btn { flex: 1 1 auto; }
    /* 재료 창고 표 → 재료마다 두 줄 (구매·되팔기 버튼이 화면 밖으로 밀려 옆으로 밀어야 보이던 것) */
    .ing-table thead { display: none; }
    .ing-table, .ing-table tbody { display: block; width: 100%; }
    .ing-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "n q p" "b b s"; gap: 6px 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--border-dim); }
    .ing-table td { display: block; padding: 0; border: 0; white-space: normal; }
    .ing-table td:nth-child(1) { grid-area: n; font-weight: 700; color: var(--text-main); }
    .ing-table td:nth-child(2) { grid-area: q; }
    .ing-table td:nth-child(3) { grid-area: p; text-align: right; }
    .ing-table td:nth-child(4) { grid-area: b; display: flex; gap: 6px; flex-wrap: wrap; }
    .ing-table td:nth-child(5) { grid-area: s; justify-self: end; }
    .ing-table td[data-label]::before { content: attr(data-label) " "; color: var(--text-dim); font-size: 0.7rem; }
    /* 메뉴별 판매 — 비중 막대는 PC에서만 */
    .msales-table th:nth-child(4), .msales-table td:nth-child(4) { display: none; }
    .msales-table th, .msales-table td { padding: 8px 6px; }
    /* 랭킹 표 */
    .rank-table .rk-hide { display: none; }
    .rank-table .rk-m { display: block; margin-top: 2px; font-size: 0.72rem; font-weight: 400; color: var(--text-dim); white-space: normal; }
    .rank-table td.rk-shop { white-space: normal; overflow-wrap: anywhere; }
    .rank-table th, .rank-table td { padding: 8px 6px; }
    .rank-tabs { padding: 10px 12px 0; }
    /* 명예의 전당(시즌) 표 */
}

/* ══ 2026-10-08 고도화 — 오늘 할 일 · 창업 길잡이 · 단골 주문 · 재료 예보 · 투자 계산기 ══ */
/* PC 대시보드 6칸이 5+1로 갈라지던 것 — 3+3, 아주 넓으면 한 줄 */
@media (min-width: 1025px) { .dash-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .dash-row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.todo-panel { padding: 10px 16px; margin-bottom: 14px; }
.todo-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.todo-head .section-label { margin: 0; }
.todo-list { display: grid; gap: 6px; margin-top: 8px; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-deep, rgba(255,255,255,0.03)); font-size: 0.78rem; color: var(--text-sub); line-height: 1.5; }
.todo-item.warn { border-color: rgba(255,138,138,0.45); }
.todo-item.good { border-color: rgba(var(--ok-rgb), 0.4); }
.todo-item .td-text { flex: 1; min-width: 0; }
.todo-item .td-text b { color: var(--text-main); }
.todo-item .td-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.todo-empty { font-size: 0.76rem; color: var(--text-dim); }
.todo-more { font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; }
.starter-panel { padding: 12px 16px; margin-bottom: 14px; border-left: 3px solid var(--brand); }
.starter-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.starter-head .section-label { margin: 0; }
.starter-head .goal-bar { max-width: 200px; }
.st-step { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--border-dim, rgba(255,255,255,0.04)); font-size: 0.78rem; }
.st-step:last-child { border-bottom: 0; }
.st-no { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; border: 1px solid var(--border-strong); color: var(--text-dim); }
.st-step.done .st-no { border-color: var(--brand); color: var(--brand); }
.st-step.claimed .st-no { background: rgba(var(--ok-rgb), 0.15); border-color: rgba(var(--ok-rgb), 0.5); color: var(--ok); }
.st-body { flex: 1; min-width: 0; }
.st-label { font-weight: 700; color: var(--text-main); }
.st-desc { font-size: 0.7rem; color: var(--text-dim); margin-top: 1px; line-height: 1.5; }
.st-step.claimed .st-label { color: var(--text-dim); font-weight: 600; }
.st-done-sum { font-size: 0.72rem; color: var(--text-dim); padding: 6px 2px 0; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.order-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg-deep, rgba(255,255,255,0.03)); display: flex; flex-direction: column; gap: 4px; }
.order-card.done { opacity: 0.6; }
.order-card .oc-who { font-size: 0.74rem; color: var(--text-dim); }
.order-card .oc-who b { color: var(--text-sub); }
.order-card .oc-what { font-size: 0.86rem; font-weight: 800; color: var(--text-main); }
.order-card .oc-pay { font-size: 0.74rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.order-card .oc-lack { font-size: 0.7rem; color: #ff8a8a; }
.order-card .invest-actions { margin-top: 4px; }
.fc-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg-deep, rgba(255,255,255,0.03)); }
.fc-box.warn { border-color: rgba(255,138,138,0.45); }
.fc-line { font-size: 0.8rem; color: var(--text-sub); line-height: 1.6; }
.fc-line b { color: var(--text-main); }
.fc-box.warn .fc-line b.fc-h { color: #ff8a8a; }
.fc-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fc-note { font-size: 0.68rem; color: var(--text-dim); margin-top: 6px; }
.roi-line { font-size: 0.7rem; color: var(--text-dim); margin: -2px 0 8px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.roi-line b { color: var(--ok); font-weight: 800; }
.roi-line b.neg { color: var(--text-dim); }
.roi-best { font-size: 0.6rem; font-weight: 800; color: var(--brand-ink); background: var(--brand); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.invest-card.best { border-color: rgba(var(--brand-rgb), 0.55); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), 0.25); }
.mode-compare { font-size: 0.7rem; color: var(--text-dim); margin-top: 6px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.mode-compare b { color: var(--text-main); }
.mode-compare .mc-best { color: var(--ok); font-weight: 800; }
.advice-sum { font-size: 0.74rem; color: var(--text-dim); margin: 0 0 10px; line-height: 1.6; }
.advice-sum b { color: var(--text-main); font-variant-numeric: tabular-nums; }
.reg-toggle { margin-top: 8px; }
@media (max-width: 640px) {
    .todo-item { flex-wrap: wrap; }
    .todo-item .td-acts { width: 100%; justify-content: flex-start; }
    .order-grid { grid-template-columns: minmax(0, 1fr); }
    .fc-btns .act-btn { flex: 1 1 0; min-width: 0; padding: 7px 6px; font-size: 0.74rem; white-space: normal; line-height: 1.35; }
    .st-step { flex-wrap: wrap; }
    .st-step .act-btn { margin-left: 32px; }
    .todo-item, .st-step, .fc-line, .order-card .oc-what { font-size: 0.8rem; }
    .st-desc, .roi-line, .mode-compare, .fc-note, .order-card .oc-who, .order-card .oc-lack, .advice-sum { font-size: 0.76rem; }
}

/* ══ 2026-10-20 고도화 — 출근 도장 · 그룹 현황판 · 라이벌 · 지난주 보고서 · 리뷰 답글 · 도감 · 후원 · 응원 ══ */
.attend-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.attend-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.12); display: inline-block; }
.attend-dots i.on { background: var(--brand); }
.attend-dots i.gold { box-shadow: 0 0 0 1px #ffd76a; }
.todo-head .act-btn { margin-left: auto; }
.grp-table td, .grp-table th { white-space: nowrap; }
.grp-table tr.cur td { background: rgba(var(--brand-rgb), 0.07); }
.grp-table .grp-warn { color: #ff8a8a; font-weight: 700; }
.grp-table .grp-ok { color: var(--ok); }
.grp-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.grp-tools .tool-label { font-size: 0.74rem; font-weight: 700; color: var(--text-sub); }
.vs-row { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; margin: 6px 0; }
.vs-name { width: 34%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-sub); }
.vs-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.07); overflow: hidden; }
.vs-fill { height: 100%; border-radius: 4px; background: var(--brand); }
.vs-fill.them { background: #ff8a8a; }
.vs-val { width: 92px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-main); font-weight: 700; }
.rival-cands { display: grid; gap: 6px; margin-top: 6px; }
.rival-cand { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-deep, rgba(255,255,255,0.03)); font-size: 0.78rem; }
.rival-cand .rc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-main); font-weight: 700; }
.rival-cand .rc-rev { color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.rep-cell { border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; background: var(--bg-deep, rgba(255,255,255,0.03)); }
.rep-cell .rc-l { font-size: 0.68rem; color: var(--text-dim); }
.rep-cell .rc-v { font-size: 0.92rem; font-weight: 800; color: var(--text-main); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rep-cell .rc-v.up { color: var(--ok); }
.rep-cell .rc-v.down { color: #ff8a8a; }
.rep-notes { font-size: 0.74rem; color: var(--text-sub); margin-top: 8px; line-height: 1.7; }
.rv-reply { margin-top: 5px; padding: 5px 9px; border-left: 2px solid var(--brand); background: rgba(var(--brand-rgb), 0.05); border-radius: 0 6px 6px 0; font-size: 0.74rem; color: var(--text-sub); }
.rv-reply b { color: var(--brand); }
.rv-acts { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.book-biz { margin-top: 10px; }
.book-biz-head { font-size: 0.76rem; font-weight: 700; color: var(--text-sub); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.book-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.book-chip { font-size: 0.7rem; border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; color: var(--text-dim); background: var(--bg-deep, rgba(255,255,255,0.03)); }
.book-chip.got { color: var(--text-main); border-color: rgba(var(--brand-rgb), 0.45); background: rgba(var(--brand-rgb), 0.08); }
.book-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.book-step { font-size: 0.7rem; border: 1px solid var(--border); border-radius: 7px; padding: 3px 9px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.book-step.ready { border-color: var(--brand); color: var(--brand); font-weight: 800; }
.book-step.claimed { border-color: rgba(var(--ok-rgb), 0.45); color: var(--ok); }
.donate-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.donate-badge { font-size: 0.64rem; font-weight: 800; color: #7fe0c0; border: 1px solid rgba(127,224,192,0.45); border-radius: 5px; padding: 1px 7px; white-space: nowrap; }
.cheer-n { font-size: 0.7rem; color: #ffb0c8; font-weight: 700; white-space: nowrap; }
.mk-chip .mk-t { font-size: 0.64rem; color: var(--text-dim); }
@media (max-width: 640px) {
    /* 그룹 현황판 → 가게마다 카드 한 장 */
    .grp-table thead { display: none; }
    .grp-table, .grp-table tbody { display: block; width: 100%; }
    .grp-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 9px 2px; border-bottom: 1px solid var(--border-dim, rgba(255,255,255,0.05)); }
    .grp-table td { display: block; padding: 0; border: 0; white-space: normal; }
    .grp-table td:first-child { grid-column: 1 / -1; font-weight: 700; color: var(--text-main); }
    .grp-table tr.cur { background: rgba(var(--brand-rgb), 0.07); border-radius: 8px; }
    .grp-table tr.cur td { background: transparent; }
    .grp-table td[data-label]::before { content: attr(data-label) " "; color: var(--text-dim); font-size: 0.7rem; }
    .grp-tools .act-btn { flex: 1 1 0; min-width: 0; padding: 7px 6px; font-size: 0.74rem; }
    .vs-name { width: 30%; }
    .vs-val { width: 78px; font-size: 0.74rem; }
    .rep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body[data-hb-chat] :is(.chat-fab, .chat-panel) { --chat-accent: #f2c94c; --chat-accent-ink: var(--brand-ink); } /* 채팅 단추·창 공용 규칙(style.css)에 넘기는 이 게임 색 */
