/* ร้าน Real City (หน้า /rc) — ใช้โทเคนสีของร้านเดิม (style.css / theme-fm5.css) */
.rc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; }
.rc-bar { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
.rc-bar .cc-panel { margin-top: 0; }
.rc-coins { font-family: var(--font-display, inherit); font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--amber, #f5c542); }
.rc-coins small { font-size: 0.8rem; font-weight: 600; color: var(--text-2); margin-left: 0.35rem; }
.rc-select { width: 100%; }
.rc-wallets { display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.rc-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.rc-wallet .cc-input { width: 7.5rem; min-height: 40px; }
.rc-wallet > span:first-child { flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; }

.rc-tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.25rem 0 0.35rem; margin-top: 0.85rem; scrollbar-width: thin; }
.rc-tab { flex: 0 0 auto; min-height: 44px; padding: 0 0.95rem; border: 1px solid var(--cc-radius-line); background: var(--bg-card); color: var(--text-2); font-weight: 600; cursor: pointer; white-space: nowrap; }
.rc-tab[aria-selected='true'] { color: #fff; background: var(--blue); border-color: var(--blue); }
.rc-tab small { display: block; font-size: 0.66rem; font-weight: 500; opacity: 0.75; line-height: 1.1; }

.rc-sec-desc { color: var(--text-2); margin: 0.4rem 0 0; font-size: 0.92rem; }
.rc-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin-top: 0.85rem; }
.rc-card { background: var(--bg-card); padding: 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; border: 1px solid var(--cc-radius-line); }
.rc-card h3 { margin: 0; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.rc-card .rc-sub { color: var(--text-3, var(--text-2)); font-size: 0.78rem; }
.rc-card p { margin: 0; color: var(--text-2); font-size: 0.86rem; flex: 1 1 auto; }
.rc-price { font-weight: 800; color: var(--amber, #f5c542); font-size: 1.1rem; display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.rc-price s { color: var(--text-muted, #7b8794); font-weight: 500; font-size: 0.8rem; }
.rc-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.45rem; background: var(--emerald, #1fbf75); color: #04140b; }
.rc-img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; background: #101822; display: block; }
.rc-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.4rem; }
.rc-actions .btn { flex: 1 1 auto; }
.rc-pieces { margin: 0; padding-left: 1.1rem; font-size: 0.8rem; color: var(--text-2); }
.rc-search { max-width: 22rem; margin-top: 0.85rem; }
.rc-odds { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 0.4rem; }
.rc-odds th, .rc-odds td { text-align: left; padding: 0.25rem 0.35rem; border-bottom: 1px solid var(--cc-radius-line); }
.rc-odds td:last-child, .rc-odds th:last-child { text-align: right; }
.rc-r-common { color: var(--text-2); } .rc-r-rare { color: #5aa9ff; } .rc-r-epic { color: #b76cff; } .rc-r-legendary { color: #ffb02e; font-weight: 700; }
details.rc-det summary { cursor: pointer; font-size: 0.82rem; color: var(--cyan-bright); min-height: 32px; display: flex; align-items: center; }

.rc-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 0.4rem; margin-top: 0.6rem; }
.rc-day { background: var(--bg-elevated); padding: 0.4rem 0.35rem; font-size: 0.72rem; text-align: center; border: 1px solid var(--cc-radius-line); }
.rc-day b { display: block; font-size: 0.78rem; color: var(--cyan-bright); }
.rc-day.rc-special { border-color: var(--amber, #f5c542); }
.rc-list { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--text-2); font-size: 0.9rem; }
.rc-form { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.rc-form label { font-size: 0.8rem; color: var(--text-2); display: grid; gap: 0.2rem; }
.rc-tabs-link { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.rc-hist { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 0.5rem; }
.rc-hist th, .rc-hist td { text-align: left; padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--cc-radius-line); overflow-wrap: anywhere; }
.rc-note { font-size: 0.78rem; color: var(--text-muted, #7b8794); margin-top: 0.6rem; }

.rc-dialog-bg { position: fixed; inset: 0; background: rgba(2, 6, 12, 0.72); z-index: 400; display: grid; place-items: center; padding: 1rem; }
.rc-dialog { background: var(--bg-elevated); width: min(100%, 26rem); padding: 1.2rem; border: 1px solid var(--cc-line-strong); max-height: 90dvh; overflow: auto; }
.rc-dialog h3 { margin: 0 0 0.5rem; }
.rc-dialog dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.8rem; margin: 0.6rem 0; font-size: 0.9rem; }
.rc-dialog dt { color: var(--text-2); } .rc-dialog dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.rc-dialog .rc-actions { margin-top: 1rem; }

@media (min-width: 720px) {
  .rc-bar { grid-template-columns: 1.2fr 1fr 1.4fr; }
}

.rc-model { height: 18rem; display: grid; place-items: center; background: var(--bg-elevated); border: 1px solid var(--cc-line-strong); margin-top: 0.6rem; }
.rc-model model-viewer { width: 100%; height: 100%; --poster-color: transparent; }

.rc-ico { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--bg-elevated); border: 1px solid var(--cc-line-strong); color: var(--accent, #0ea5ff); }
.rc-ico .rc-icon { line-height: 1; }
.rc-inl { display: inline-flex; align-items: center; gap: 0.3rem; vertical-align: middle; }
.rc-inl svg, .rc-inl .rc-icon { flex: none; opacity: 0.85; }
.rc-pieces { list-style: none; padding-left: 0; }
.rc-odds td:first-child .rc-inl { white-space: nowrap; }

/* โปรไฟล์สาธารณะ: ปุ่มแชร์ใต้โมเดลตัวละคร */
.rc-share { margin-top: 12px; display: grid; gap: 8px; }
.rc-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
