/* ============================================================
   Roblox section — styles (scoped to /roblox/*)
   ใช้ตัวแปรสี/ฟอนต์ร่วมกับ colors_and_type.css ของเว็บหลัก
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-sans); min-height: 100dvh; }

/* ── Header (สไตล์เดียวกับหน้า Blog) ── */
.b-head { display: flex; align-items: center; gap: 20px; padding: 18px 40px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 10; }
.b-back { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--fg); text-decoration: none; letter-spacing: -0.02em; }
.b-back img { height: 34px; width: auto; display: block; }
[data-theme="light"] .b-back img { filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3)); }
.b-nav { display: flex; gap: 4px; margin-left: 10px; }
.b-nav a { padding: 5px 12px; border-radius: 8px; font-size: 13.5px; color: var(--fg-muted); text-decoration: none; transition: background 0.15s, color 0.15s; }
.b-nav a:hover { background: var(--surface-2); color: var(--fg); }
.b-nav a.active { background: var(--surface-2); color: var(--fg); font-weight: 600; }
.b-head-right { margin-left: auto; }
.toggle { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background 0.15s; }
.toggle:hover { background: var(--surface-2); }
.thumb { width: 18px; height: 18px; display: block; background: var(--fg); mask-size: contain; mask-repeat: no-repeat; mask-position: center; }
[data-theme="dark"]  .thumb { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E"); }
[data-theme="light"] .thumb { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E"); }

/* ── Landing hero (หน้าฮับ) ── */
.rbx-landing { max-width: 980px; margin: 0 auto; padding: 64px 40px 100px; }
.hero { text-align: center; padding: 24px 0 48px; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero-title { font-family: var(--font-display); font-size: clamp(34px, 7vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; color: var(--fg); }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(15px, 2.4vw, 18px); line-height: 1.7; color: var(--fg-muted); margin: 18px auto 0; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-size: 14.5px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }

/* ── Section heading ── */
.sec { margin-top: 56px; }
.sec-head { margin-bottom: 22px; }
.sec-title { font-family: var(--font-display); font-size: clamp(22px, 4vw, 28px); font-weight: 800; letter-spacing: -0.025em; color: var(--fg); }
.sec-sub { font-size: 14.5px; color: var(--fg-muted); margin-top: 6px; }

/* ── Feature cards (เครื่องมือ) ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.feature-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); text-decoration: none; position: relative; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.feature-card.soon { opacity: 0.6; pointer-events: none; }
.feature-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); margin-bottom: 4px; }
.feature-ico img { width: 32px; height: 32px; image-rendering: pixelated; }
.btn-ico { width: 18px; height: 18px; image-rendering: pixelated; flex: 0 0 auto; }
.feature-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.feature-desc { font-size: 13px; line-height: 1.6; color: var(--fg-muted); }
.feature-badge { position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--fg-subtle); border: 1px solid var(--border); padding: 2px 7px; border-radius: 999px; }

/* ── How it works (steps) ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.step-num { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 14px; display: grid; place-items: center; margin-bottom: 12px; }
.step-title { font-weight: 700; font-size: 15px; color: var(--fg); margin-bottom: 5px; }
.step-desc { font-size: 13px; line-height: 1.6; color: var(--fg-muted); }

/* ── FAQ accordion (ใช้ <details> ไม่ต้องใช้ JS) ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 14.5px; color: var(--fg); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--fg-subtle); font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 18px 16px; font-size: 13.5px; line-height: 1.7; color: var(--fg-muted); }

/* ── Listing / Game hub wrap ── */
.rbx-wrap { max-width: 980px; margin: 0 auto; padding: 52px 40px 100px; }
.rbx-hero { margin-bottom: 40px; }
.rbx-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.rbx-title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; color: var(--fg); }
.rbx-sub { font-size: 15px; line-height: 1.7; color: var(--fg-muted); margin-top: 12px; max-width: 560px; }

/* ── Game cards grid (หน้า /roblox) ── */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.game-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); text-decoration: none; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.game-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.game-cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: linear-gradient(135deg, var(--blurple-500), var(--blurple-700)); }
.game-cover-fallback { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--blurple-400), var(--blurple-700)); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-align: center; padding: 0 16px; }
.game-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.game-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.game-desc { font-size: 13.5px; line-height: 1.6; color: var(--fg-muted); }
.game-meta { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); }

/* ── Profile Checker ── */
.pc-search { display: flex; gap: 10px; margin: 24px 0 8px; max-width: 480px; }
.pc-input { flex: 1; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font-size: 15px; font-family: var(--font-sans); }
.pc-input:focus { outline: none; border-color: var(--accent); }
.pc-hint { font-size: 12.5px; color: var(--fg-subtle); margin-bottom: 8px; }
.pc-msg { font-size: 14px; color: var(--fg-muted); padding: 14px 0; }
.pc-msg.err { color: var(--status-dnd); }
.pc-card { display: flex; gap: 22px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); margin-top: 20px; align-items: flex-start; flex-wrap: wrap; }
.pc-avatar { width: 150px; height: 150px; border-radius: 16px; background: var(--surface-2); object-fit: cover; flex-shrink: 0; image-rendering: auto; }
.pc-info { flex: 1; min-width: 220px; }
.pc-name { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.025em; color: var(--fg); line-height: 1.1; }
.pc-username { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); margin-top: 2px; }
.pc-stats { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.pc-stat { background: var(--surface-2); border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 84px; }
.pc-stat-val { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--fg); }
.pc-stat-lbl { font-size: 11px; color: var(--fg-subtle); margin-top: 2px; }
.pc-bio { font-size: 13.5px; line-height: 1.6; color: var(--fg-muted); margin: 4px 0 14px; white-space: pre-line; }
.pc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-subtle); margin-top: 12px; }
@media (max-width: 520px) { .pc-card { flex-direction: column; align-items: center; text-align: center; } .pc-stats { justify-content: center; } .pc-actions { justify-content: center; } }

/* ── Avatar Battles ── */
.bt-submit { display: flex; gap: 10px; margin: 20px 0 8px; max-width: 480px; flex-wrap: wrap; }
.bt-arena { display: flex; align-items: stretch; gap: 16px; margin: 24px 0; }
.bt-card { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; border: 2px solid var(--border); border-radius: 18px; background: var(--surface); cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; text-align: center; }
.bt-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 36px rgba(0,0,0,0.16); }
.bt-avatar { width: 160px; height: 160px; max-width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--surface-2); object-fit: cover; }
.bt-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--fg); letter-spacing: -0.02em; line-height: 1.1; }
.bt-user { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
.bt-wins { font-size: 12px; color: var(--fg-subtle); }
.bt-vs { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--fg-subtle); flex-shrink: 0; }
.bt-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.bt-h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--fg); margin: 0 0 4px; letter-spacing: -0.02em; }
.bt-challenge { padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.bt-card.voted { border-color: var(--accent); }
.bt-votes { font-weight: 700; font-size: 14px; }
.bt-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin: 16px 0 6px; }
.bt-bar-a { background: var(--accent); transition: width 0.3s; }
.bt-bar-b { background: #fb7185; transition: width 0.3s; }
.bt-champ { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid rgba(245,180,0,0.45); border-radius: 18px; background: color-mix(in srgb, #f5b400 9%, var(--surface)); text-decoration: none; position: relative; margin: 6px 0 22px; transition: border-color 0.15s, transform 0.15s; }
.bt-champ:hover { border-color: #f5b400; transform: translateY(-2px); }
.bt-champ-crown { position: absolute; top: -9px; left: 18px; font-family: var(--font-mono); font-size: 11px; font-weight: 800; color: #0b0d1a; background: #f5b400; padding: 2px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.bt-champ-av { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; border: 2px solid #f5b400; background: var(--surface-2); }
.bt-champ-main { min-width: 0; }
.bt-champ-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--fg); letter-spacing: -0.02em; }
.bt-champ-sub { font-size: 12.5px; color: var(--fg-muted); }
@media (max-width: 560px) { .bt-arena { flex-direction: column; } .bt-vs { padding: 4px 0; } }

/* ── Leaderboard ── */
.lb-list { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.lb-rank { width: 30px; flex-shrink: 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--fg-muted); }
.lb-row.top1 .lb-rank { color: #f5b400; } .lb-row.top2 .lb-rank { color: #9aa3ad; } .lb-row.top3 .lb-rank { color: #cd7f32; }
.lb-row.top1 { border-color: rgba(245,180,0,0.5); }
.lb-av { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); object-fit: cover; flex-shrink: 0; }
.lb-main { flex: 1; min-width: 0; }
.lb-name { font-weight: 700; font-size: 14.5px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-user { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-subtle); }
.lb-stat { text-align: right; flex-shrink: 0; }
.lb-wins { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--accent); }
.lb-rate { font-size: 11px; color: var(--fg-subtle); }

/* ── Card Creator ── */
.card-stage { display: flex; justify-content: center; padding: 26px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; margin: 20px 0 16px; overflow: auto; }
.card-stage canvas { border-radius: 16px; box-shadow: 0 14px 50px rgba(0,0,0,0.3); max-width: 100%; height: auto; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.card-empty { color: var(--fg-subtle); font-size: 14px; text-align: center; padding: 60px 20px; }

/* ── Article list (หน้า /roblox/<game>) ── */
.article-list { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.article-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.article-card:hover { border-color: var(--accent); background: var(--surface-2); }
.article-card.soon { opacity: 0.55; pointer-events: none; }
.article-tag { flex-shrink: 0; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; letter-spacing: 0.04em; }
.article-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.article-title { font-size: 15px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.article-sub { font-size: 12.5px; color: var(--fg-subtle); }
.article-date { flex-shrink: 0; margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); white-space: nowrap; }
.article-soon-badge { margin-left: auto; flex-shrink: 0; font-size: 11px; color: var(--fg-subtle); font-family: var(--font-mono); }

/* ── Article page (เนื้อหา — สไตล์เดียวกับ Blog post) ── */
.post-wrap { max-width: 680px; margin: 0 auto; padding: 52px 40px 100px; }
.post-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--fg-muted); text-decoration: none; margin-bottom: 36px; transition: color 0.15s; }
.post-back:hover { color: var(--accent); }
.post-back svg { width: 14px; height: 14px; }
.post-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; margin-bottom: 24px; display: block; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.post-tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; letter-spacing: 0.04em; }
/* "อัปเดตล่าสุด" — มาตรฐานบังคับทุกบทความหมวด Roblox */
.post-updated { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--status-idle); background: color-mix(in srgb, var(--status-idle) 14%, transparent); padding: 4px 10px; border-radius: 999px; }
.post-title { font-family: var(--font-display); font-size: clamp(26px, 5vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; color: var(--fg); margin: 14px 0 36px; }
.post-body { font-size: 15.5px; line-height: 1.9; color: var(--fg-muted); }
.post-body p { margin-bottom: 22px; }
.post-body h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; line-height: 1.3; margin: 40px 0 14px; }
.post-body h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; color: var(--fg); margin: 28px 0 10px; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--accent-hover); }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 22px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { border-left: 3px solid var(--accent); padding-left: 18px; margin: 0 0 22px; color: var(--fg-muted); font-style: italic; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.placeholder-note { font-size: 13px; color: var(--fg-subtle); font-style: italic; }

/* ── Tier badge (Power Score) ── */
.rbx-tier { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 5px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid var(--tc); line-height: 1; vertical-align: middle; }
.rbx-tier-ico { width: 26px; height: 26px; image-rendering: pixelated; flex: 0 0 auto; }
.rbx-tier-name { font-family: var(--font-mono); font-weight: 800; font-size: 12.5px; letter-spacing: 0.05em; color: var(--tc); }
.rbx-tier-pw { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--fg-muted); }
.rbx-tier-sm { padding: 2px 9px 2px 3px; gap: 5px; }
.rbx-tier-sm .rbx-tier-ico { width: 20px; height: 20px; }
.rbx-tier-sm .rbx-tier-name { font-size: 10.5px; }

/* ── MaShow Coins chip ── */
.rbx-coin { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 5px; border-radius: 999px; background: color-mix(in srgb, #fbbf24 16%, transparent); border: 1px solid color-mix(in srgb, #fbbf24 55%, transparent); font-family: var(--font-mono); font-weight: 800; font-size: 12.5px; color: #f5b400; line-height: 1; vertical-align: middle; }
.rbx-coin-ico { width: 18px; height: 18px; image-rendering: pixelated; flex: 0 0 auto; }

/* ── โปรไฟล์ของฉัน (hub) ── */
.me-unlock { max-width: 460px; margin: 26px auto 0; padding: 30px 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); text-align: center; }
.me-unlock-ico { width: 56px; height: 56px; image-rendering: pixelated; margin: 0 auto 10px; display: block; }
.me-unlock h2 { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--fg); margin: 0 0 6px; }
.me-unlock p { font-size: 14px; color: var(--fg-muted); margin: 0 0 18px; line-height: 1.6; }
.me-hub { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 22px; }
.me-cardcol { display: flex; flex-direction: column; gap: 14px; }
.me-cardcol canvas { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.22); display: block; }
.me-cardbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.me-cardbtns .btn { flex: 1; min-width: 130px; justify-content: center; }
.me-panel { display: flex; flex-direction: column; gap: 16px; }
.me-block { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 18px 20px; }
.me-block-h { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); margin: 0 0 12px; }
.me-block-h img { width: 18px; height: 18px; image-rendering: pixelated; }
.me-id { display: flex; align-items: center; gap: 14px; }
.me-id-av { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 2px solid var(--tc, var(--border)); flex: 0 0 auto; }
.me-id-name { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--fg); line-height: 1.1; }
.me-id-user { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-muted); margin: 2px 0 8px; }
.me-wallet-bal { display: flex; align-items: center; gap: 12px; }
.me-wallet-coin { width: 44px; height: 44px; image-rendering: pixelated; flex: 0 0 auto; }
.me-wallet-num { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: #f5b400; line-height: 1; }
.me-wallet-lbl { font-size: 12px; color: var(--fg-muted); margin-top: 3px; }
.me-wallet-note { font-size: 12px; color: var(--fg-subtle); margin-top: 12px; line-height: 1.55; }
.me-flex-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.me-flex-num { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--fg); line-height: 1; }
.me-flex-num small { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--fg-subtle); margin-left: 6px; }
.me-bar { height: 9px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, transparent); overflow: hidden; }
.me-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--tc, var(--accent)); }
.me-bar-cap { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-subtle); margin-top: 7px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.me-stat { border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px; text-align: center; }
.me-stat-val { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--fg); }
.me-stat-lbl { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.me-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 12px 10px; }
.me-badge { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.me-badge-img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; border: 2px solid var(--bc, var(--border)); background: color-mix(in srgb, var(--bc, var(--fg)) 12%, transparent); box-shadow: 0 2px 8px color-mix(in srgb, var(--bc, #000) 22%, transparent); }
.me-badge-name { font-size: 10px; line-height: 1.25; color: var(--fg-muted); width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.me-badge-tag { font-family: var(--font-mono); font-size: 8.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bc); }
@media (max-width: 760px) { .me-hub { grid-template-columns: 1fr; } .me-cardcol { max-width: 380px; margin: 0 auto; width: 100%; } }

@media (max-width: 600px) {
  .b-head { padding: 14px 18px; }
  .b-nav { display: none; }
  .rbx-wrap { padding: 36px 20px 72px; }
  .post-wrap { padding: 36px 20px 72px; }
}
