/* ROBLIX platform. Layout: fixed topbar + left rail on desktop, bottom nav on phones; content is a card grid. */
:root {
  --bg: #f1f2f5; --panel: #ffffff; --panel2: #e9ebf0; --line: #d8dbe2; --text: #15171c; --muted: #5d6471;
  --accent: #e5352b; --accent-ink: #ffffff; --blue: #2d62e3; --play: #0e9f5b; --play-ink: #ffffff; --warn: #c98100; --danger: #d63333;
  --shadow: 0 1px 2px rgba(20, 24, 33, .06), 0 6px 18px rgba(20, 24, 33, .06);
  --f-ui: "Figtree", "Segoe UI", system-ui, sans-serif; --f-display: "Fredoka", "Figtree", system-ui, sans-serif; --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 12px; --top: 56px; --rail: 220px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1114; --panel: #181b20; --panel2: #21252c; --line: #2b3039; --text: #eff1f5; --muted: #9aa1ad;
  --accent: #ff4b3e; --blue: #5b8cff; --play: #13b46a; --warn: #ffb020; --danger: #ff5a5a; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0f1114; --panel: #181b20; --panel2: #21252c; --line: #2b3039; --text: #eff1f5; --muted: #9aa1ad;
  --accent: #ff4b3e; --blue: #5b8cff; --play: #13b46a; --warn: #ffb020; --danger: #ff5a5a; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); color-scheme: dark;
}
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--f-ui); margin: 0; -webkit-font-smoothing: antialiased; }
#app { min-height: 100%; }
a { color: var(--blue); cursor: pointer; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1 { font: 700 28px/1.15 var(--f-display); margin: 0; text-wrap: balance; letter-spacing: .005em; }
h2 { font: 600 20px/1.2 var(--f-display); margin: 0; }
h3 { font: 700 15px/1.3 var(--f-ui); margin: 14px 0 8px; }
.muted { color: var(--muted); }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; }
.boot svg { width: 72px; height: 72px; }
.boot b { font: 700 30px var(--f-display); letter-spacing: .06em; }
.rx-spin { width: 30px; height: 30px; border-radius: 50%; border: 3.5px solid color-mix(in srgb, var(--text) 15%, transparent); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 60px 0; }

/* top bar */
.topbar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: var(--top); z-index: 30; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font: 700 21px var(--f-display); letter-spacing: .06em; text-decoration: none !important; }
.rx-logo-cube { width: 30px; height: 30px; }
.tb-burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; padding: 4px 8px; }
.tb-nav { display: flex; gap: 4px; }
.tb-nav a { color: var(--text); font-weight: 700; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.tb-nav a:hover, .tb-nav a.on { background: var(--panel2); }
.tb-search { flex: 1; min-width: 0; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--panel2); border-radius: 10px; padding: 0 12px; height: 38px; color: var(--muted); }
.tb-search svg { width: 18px; height: 18px; flex: none; }
.tb-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font: inherit; }
.tb-search.inline { max-width: 360px; margin: 6px 0 12px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-bux { display: flex; align-items: center; gap: 6px; background: var(--panel2); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 800; font-variant-numeric: tabular-nums; }
.tb-bux svg { width: 18px; height: 18px; color: #f7b500; }
.tb-me { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 2px 8px 2px 2px; border-radius: 999px; font-weight: 700; }
.tb-me:hover { background: var(--panel2); }
.tb-me img { width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); }

/* sidebar */
.sidebar { position: fixed; top: calc(var(--top) + env(safe-area-inset-top, 0px)); left: 0; bottom: 0; width: var(--rail); padding: 12px 10px; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; background: var(--bg); z-index: 20; }
.sidebar a { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; padding: 10px 12px; border-radius: 10px; text-decoration: none; position: relative; }
.sidebar a svg { width: 22px; height: 22px; flex: none; }
.sidebar a:hover { background: var(--panel2); }
.sidebar a.on { background: var(--panel); box-shadow: var(--shadow); }
.sidebar em { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; font: 700 11px var(--f-ui); padding: 2px 7px; font-style: normal; }
.sb-foot { margin-top: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.sb-online { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.sb-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--play); }

/* page */
.page { margin-left: var(--rail); padding: calc(var(--top) + 22px) 28px 60px; max-width: 1360px; box-sizing: border-box; outline: none; }
.bottomnav { display: none; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head a { font-weight: 700; margin-left: auto; }
.row-sec { margin: 30px 0; }
.row-sec > h2 { margin-bottom: 12px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-card { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.empty-card span { color: var(--muted); }
.empty-card .btn { margin-top: 8px; }

/* hello */
.hello { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hello-av { width: 88px; height: 88px; border-radius: 50%; background: var(--panel); box-shadow: var(--shadow); }
.hello h1 { font-size: 32px; }
.hello-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; background: var(--panel2); color: var(--text); text-decoration: none !important; min-height: 40px; box-sizing: border-box; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--danger); }
.btn.sm { padding: 6px 12px; min-height: 32px; font-size: 13.5px; }
.btn.big { padding: 14px 22px; font-size: 16px; }
.btn.play { background: var(--play); color: var(--play-ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 0; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.chip.on { background: var(--text); color: var(--bg); box-shadow: none; }
.chips.sort .chip.on { background: var(--blue); color: #fff; }

/* game cards */
.grow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 220px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.gcard { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none !important; scroll-snap-align: start; min-width: 0; }
.gthumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r); background: var(--panel2) center/cover no-repeat; box-shadow: var(--shadow); transition: transform .15s; overflow: hidden; }
.gthumb.nothumb { background-image: linear-gradient(135deg, color-mix(in srgb, var(--accent) 60%, var(--panel2)), var(--panel2)); }
.gcard:hover .gthumb { transform: translateY(-2px); }
.gcard b { font-weight: 700; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gmeta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.gmeta .up svg { width: 14px; height: 14px; vertical-align: -2px; }
.gmeta em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--accent); }
.glive { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; display: flex; align-items: center; gap: 5px; }
.glive i { width: 7px; height: 7px; border-radius: 50%; background: #2fe07f; }

/* game page */
.gpage { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.gp-media { aspect-ratio: 16/9; border-radius: 16px; background: var(--panel2) center/cover; box-shadow: var(--shadow); }
.gp-info { display: flex; flex-direction: column; gap: 14px; }
.gp-info h1 { font-size: 32px; }
.gp-by { margin: -6px 0 0; color: var(--muted); font-weight: 600; }
.badge { font-style: normal; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: .05em; }
.btn.play#playbtn { min-height: 64px; border-radius: 14px; font-size: 18px; }
.btn.play#playbtn svg { width: 30px; height: 30px; }
.gp-votes { display: flex; align-items: center; gap: 8px; }
.vote { display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; color: var(--muted); font-weight: 700; padding: 6px; border-radius: 8px; }
.vote svg { width: 20px; height: 20px; }
.vote.on { color: var(--blue); }
.vote.fav.on { color: #f7b500; }
.vote:hover { background: var(--panel2); }
.vbar { flex: 1; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--danger) 55%, var(--panel2)); overflow: hidden; }
.vbar i { display: block; height: 100%; background: var(--play); }
.vbar.none { background: var(--panel2); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 28px 0 16px; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; font-weight: 700; cursor: pointer; color: var(--muted); }
.tab.on { color: var(--text); border-color: var(--text); }
.tab em { font-style: normal; background: var(--panel2); border-radius: 999px; padding: 1px 7px; font-size: 12px; }
.gp-desc { max-width: 70ch; white-space: pre-wrap; }
.gp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 18px 0 0; }
.gp-stats div { background: var(--panel); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); }
.gp-stats dt { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.gp-stats dd { margin: 2px 0 0; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.srv { display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.srv-p { display: flex; }
.srv-p span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); margin-left: -6px; border: 2px solid var(--panel); font-weight: 800; font-size: 13px; }
.srv .btn { margin-left: auto; }
.srv .btn + .btn { margin-left: 8px; }
/* the server manager bar (owners / community editors) */
.srv-admin { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--panel); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); border-left: 3px solid #e0a040; }
.srv-admin div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.srv-admin span { font-size: 13px; opacity: .75; }

/* profile */
.prof { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.prof-av { width: 220px; height: 220px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.prof-info { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.prof-info h1 { font-size: 34px; }
.prof-stats { display: flex; gap: 24px; }
.prof-stats div { display: flex; flex-direction: column; }
.prof-stats b { font-size: 20px; }
.prof-stats span { color: var(--muted); font-size: 13px; font-weight: 600; }
.prof-bio { max-width: 60ch; margin: 4px 0; }
.prof-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.online-dot { color: var(--play); font-weight: 700; margin-left: 8px; }
.online-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--play); margin-right: 5px; }
.wear { display: flex; gap: 12px; flex-wrap: wrap; }
.witem { width: 110px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.witem img { width: 110px; height: 110px; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }

/* friends */
.frow { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.fbub { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; color: var(--text); text-decoration: none !important; position: relative; font-size: 13px; font-weight: 600; }
.fbub img { width: 72px; height: 72px; border-radius: 50%; background: var(--panel); box-shadow: var(--shadow); }
.fbub i { position: absolute; top: 54px; right: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--play); border: 3px solid var(--bg); }
.fbub i.ingame { background: var(--blue); }
.fbub span { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ucard { background: var(--panel); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow); text-align: center; }
.ucard a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); text-decoration: none !important; min-width: 0; max-width: 100%; }
.ucard img { width: 80px; height: 80px; border-radius: 50%; background: var(--panel2); }
.ucard b, .ucard span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* create */
.create-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, color-mix(in srgb, var(--blue) 18%, var(--panel)), var(--panel)); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.create-hero > div { flex: 1; min-width: 240px; }
.create-hero p { max-width: 56ch; margin: 8px 0 0; }
.mylist { display: flex; flex-direction: column; gap: 10px; }
.myg { display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); flex-wrap: wrap; }
.myg-t { width: 160px; aspect-ratio: 16/9; border-radius: 10px; background: var(--panel2) center/cover; flex: none; }
.myg-i { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.myg-a { display: flex; gap: 6px; flex-wrap: wrap; }
.learn { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.learn div { background: var(--panel); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.learn span { color: var(--muted); font-size: 14px; }
code { font: 13px var(--f-mono); background: var(--panel2); padding: 1px 5px; border-radius: 5px; }

/* settings */
.settings { max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.field input, .field textarea, .field select { font: 15px var(--f-ui); padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.set-info { display: flex; flex-direction: column; gap: 4px; color: var(--muted); background: var(--panel); border-radius: 12px; padding: 14px; }
.set-info b { color: var(--text); }
.sb-online.invis i { background: var(--muted); box-shadow: inset 0 0 0 2px var(--panel); }
/* Settings → Privacy */
.prv-box .field { margin-top: 6px; }
.prv-box.busy { opacity: .7; pointer-events: none; }
.prv-note { font-size: 13px; line-height: 1.4; }
.prv-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.prv-list[hidden] { display: none; }
.prv-head { display: flex; flex-direction: column; gap: 2px; }
.prv-chips, .prv-fr { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prv-chip, .prv-fadd { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: 600 13px var(--f-ui); max-width: 100%; }
.prv-chip img, .prv-fadd img { width: 24px; height: 24px; border-radius: 50%; background: var(--line); flex: none; }
.prv-chip b, .prv-fadd b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prv-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 2px 4px; border-radius: 50%; }
.prv-chip button:hover { color: var(--text); background: var(--line); }
.prv-fadd { cursor: pointer; }
.prv-fadd:hover { border-color: var(--blue); }
.prv-fadd i { font-style: normal; color: var(--blue); font-weight: 800; }
.prv-add { display: flex; gap: 8px; }
.prv-add input { flex: 1; min-width: 0; font: 15px var(--f-ui); padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); outline: none; }
.prv-add input:focus { border-color: var(--blue); }

/* avatar editor */
.aved { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.av-stage { position: sticky; top: calc(var(--top) + 16px); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--blue) 22%, var(--panel)), var(--panel)); border-radius: 18px; box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
#av-canvas { width: 100%; aspect-ratio: 3/4; touch-action: none; cursor: grab; }
.av-tools { display: flex; gap: 8px; }
.av-panel { min-width: 0; }
.av-items h3:first-child { margin-top: 0; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.bodyparts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.bodyparts label { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 10px; padding: 8px 10px; font-weight: 600; box-shadow: var(--shadow); }
.bodyparts input { width: 36px; height: 30px; border: 0; background: none; padding: 0; cursor: pointer; }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.icard { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 0; border-radius: 14px; padding: 8px; cursor: pointer; text-align: left; box-shadow: var(--shadow); min-width: 0; }
.icard img { width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--panel2); }
.icard span { font-weight: 700; font-size: 13.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icard.worn { box-shadow: 0 0 0 2.5px var(--blue), var(--shadow); }
.icard em { position: absolute; top: 12px; left: 12px; background: var(--blue); color: #fff; font: 800 11px var(--f-ui); padding: 2px 7px; border-radius: 999px; font-style: normal; }
.price { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.price svg, .bux-pill svg, .itemm-price svg { width: 16px; height: 16px; color: #f7b500; }
.price .owned { color: var(--play); font-style: normal; }
.more { margin-top: 14px; }
.bux-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow); font-weight: 600; }
.itemm { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.itemm img { width: 200px; height: 200px; border-radius: 16px; background: var(--panel2); }
.itemm-price { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 20px; }
.okmsg { color: var(--play); font-weight: 700; } .errmsg { color: var(--danger); font-weight: 600; max-width: 32ch; }

/* modal & toasts */
#modal { position: fixed; inset: 0; z-index: 900; background: rgba(8, 10, 14, .55); display: grid; place-items: center; padding: 16px; }
#modal[hidden] { display: none; }
.mbox { background: var(--panel); border-radius: 18px; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.mbox.wide { width: min(620px, 100%); }
.mbody { padding: 22px 22px 8px; }
.mbody h2, .mbody h3 { margin-top: 0; }
.mactions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; flex-wrap: wrap; }
.signup { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.su-av { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.su-av img { width: 170px; height: 170px; border-radius: 16px; background: var(--panel2); }
.su-form { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.su-form small.err { color: var(--danger); }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateY(10px); }

/* full screen overlays (game / studio) */
#overlay.full { position: fixed; inset: 0; z-index: 500; background: #0b0d12; }
.playwrap, .gamebox, .studio-host { position: absolute; inset: 0; }
body.in-game, body.in-studio { overflow: hidden; }

@media (max-width: 1000px) {
  :root { --rail: 0px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: 240px; box-shadow: var(--shadow); background: var(--panel); }
  .sidebar.open { transform: none; }
  .tb-burger { display: block; }
  .gpage { grid-template-columns: 1fr; }
  .aved { grid-template-columns: 1fr; }
  .av-stage { position: relative; top: 0; max-width: 420px; }
}
@media (max-width: 700px) {
  .tb-nav, .tb-me span { display: none; }
  .brand span { display: none; }
  .tb-search { height: 36px; padding: 0 10px; }
  .topbar { gap: 8px; padding: 0 10px; }
  .tb-me img { width: 30px; height: 30px; }
  .tb-bux { padding: 6px 9px; }
  .page { padding: calc(var(--top) + 16px) 16px 90px; }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; }
  .bottomnav a svg { width: 22px; height: 22px; }
  .bottomnav a.on { color: var(--text); }
  h1 { font-size: 24px; } .hello h1 { font-size: 26px; } .hello-actions { margin-left: 0; }
  .grow { grid-auto-columns: minmax(150px, 46%); }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prof-av { width: 150px; height: 150px; }
  .myg-t { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition: none !important; } }

.buxhero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--panel); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.buxbig { display: flex; align-items: center; gap: 10px; font: 700 44px var(--f-display); font-variant-numeric: tabular-nums; }
.buxbig svg { width: 46px; height: 46px; color: #f7b500; }
.buxhero p { max-width: 50ch; margin: 0; }
.redeem { display: flex; gap: 8px; margin-top: 6px; }
.redeem input { flex: 1; min-width: 0; font: 600 14px var(--f-ui); padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); text-transform: uppercase; }

/* badges */
.gp-h { font-size: 18px; margin: 18px 0 10px; }
.bdg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.bdg { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card, rgba(127,127,127,.08)); border: 1px solid var(--line, rgba(127,127,127,.18)); position: relative; min-width: 0; }
.bdg > i { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 22px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); filter: grayscale(.85) opacity(.75); }
.bdg.own > i, .prof ~ .row-sec .bdg > i { filter: none; }
.bdg > div { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.bdg b { font-size: 14px; }
.bdg span { font-size: 12.5px; opacity: .8; }
.bdg small { font-size: 11.5px; }
.bdg em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 11px; font-weight: 800; color: #00b06f; }

.pass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 10px; }
.pass { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 12px; border-radius: 14px; background: var(--card, rgba(127,127,127,.08)); border: 1px solid var(--line, rgba(127,127,127,.18)); }
.pass > i { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; font-style: normal; font-size: 34px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.3); }
.pass span { font-size: 12.5px; opacity: .8; flex: 1; }
.pass .btn svg { width: 15px; height: 15px; }

/* communities */
.grpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.grpcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 10px; border-radius: 14px; background: var(--card, rgba(127,127,127,.08)); border: 1px solid var(--line, rgba(127,127,127,.18)); cursor: pointer; color: inherit; text-decoration: none; min-width: 0; }
.grpcard:hover { filter: brightness(1.08); }
.grpcard b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grpcard span { font-size: 12px; }
.grp-emb { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font-style: normal; font-size: 34px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.28); flex: none; }
.grp-emb.big { width: 132px; height: 132px; border-radius: 28px; font-size: 64px; }
.grp-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.grp-info { min-width: 0; flex: 1; }
.grp-info h1 { margin: 0 0 4px; font-size: 30px; word-break: break-word; }
.fbub small { font-size: 11px; }
.wall-post { display: flex; gap: 8px; align-items: flex-end; margin: 6px 0 12px; }
.wall-post textarea { flex: 1; min-width: 0; resize: vertical; border-radius: 10px; padding: 9px 11px; font: inherit; background: var(--card, rgba(127,127,127,.08)); color: inherit; border: 1px solid var(--line, rgba(127,127,127,.25)); }
.wall { display: flex; flex-direction: column; gap: 8px; }
.wpost { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card, rgba(127,127,127,.08)); position: relative; }
.wpost img { width: 40px; height: 40px; border-radius: 50%; background: rgba(127,127,127,.2); }
.wpost > div { min-width: 0; flex: 1; }
.wpost p { margin: 4px 0 0; word-break: break-word; white-space: pre-wrap; }
.wdel { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: inherit; opacity: .5; cursor: pointer; }
.wdel:hover { opacity: 1; }
.cg-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cg-pick button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid transparent; background: rgba(127,127,127,.12); font-size: 20px; cursor: pointer; }
.cg-pick button.on { border-color: var(--accent, #3d8bff); }
.myg-t.tc-t { display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, #40c4ff55, #69f0ae55); }

.auth-tabs { display: flex; gap: 4px; background: var(--card, rgba(127,127,127,.1)); padding: 4px; border-radius: 10px; margin-bottom: 10px; }
.auth-tabs button { flex: 1; border: 0; background: none; color: inherit; font: 700 14px inherit; padding: 8px; border-radius: 8px; cursor: pointer; }
.auth-tabs button.on { background: var(--accent, #3d8bff); color: #fff; }

/* ===== staff names & tags ===== */
.uname.role-owner { color: #ff2d2d !important; font-weight: 800; text-shadow: 0 0 10px rgba(255, 45, 45, .35); }
.uname.role-admin { color: #ff9f1c !important; font-weight: 800; }
.uname.role-mod { color: #3fa9ff !important; font-weight: 800; }
.role-tag { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 900; font-size: 11px; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; color: #fff; white-space: nowrap; }
.role-tag.sm { font-size: 9.5px; padding: 1px 5px; margin-left: 4px; }
.role-tag.role-owner { background: linear-gradient(135deg, #ff2d2d, #b3001b); box-shadow: 0 0 0 1px rgba(255, 210, 80, .55) inset, 0 2px 8px rgba(255, 30, 30, .35); }
.role-tag.role-admin { background: linear-gradient(135deg, #ffb020, #e07a00); }
.role-tag.role-mod { background: linear-gradient(135deg, #3fa9ff, #1f6fd1); }
.prof-info h1 .role-tag { font-size: 13px; padding: 3px 9px; }
.staff-only { display: none !important; }
.rx-staff .staff-only { display: flex !important; }
.sidebar .staff-only { color: #ff4b3e; }
.gfeat { position: absolute; right: 8px; top: 8px; background: #ffb020; color: #1a1200; font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.price .excl { color: #ff4b3e; font-style: normal; font-weight: 800; }
.price .promo { color: var(--warn); font-style: normal; font-weight: 800; }
.boot.banned { text-align: center; padding: 24px; gap: 10px; }
.boot.banned p { max-width: 420px; color: var(--muted); }

/* ===== popups above everything (Bux transfer, ban) ===== */
.rx-pop { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 16px; background: rgba(6, 8, 12, .6); backdrop-filter: blur(3px); animation: rxfade .2s ease; }
.rx-pop-box { background: var(--panel); color: var(--text); border-radius: 22px; width: min(380px, 100%); padding: 24px 22px 20px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: rxpop .28s cubic-bezier(.2, 1.4, .4, 1); }
.rx-pop-box h2 { margin: 0 0 8px; }
.xfer-av { width: 84px; height: 84px; border-radius: 50%; background: var(--panel2); object-fit: cover; margin: -6px auto 6px; display: block; }
.xfer-from { margin: 4px 0; font-size: 16px; }
.xfer-amt { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 6px; color: #12b76a; }
.xfer-amt svg { width: 38px; height: 38px; }
.xfer-amt b { font: 800 42px var(--f-display); color: var(--text); }
.xfer-amt span { font-weight: 800; color: var(--muted); align-self: flex-end; margin-bottom: 8px; }
.xfer-note { font-style: italic; color: var(--muted); margin: 4px 0 8px; }
.xfer-q { font-weight: 800; font-size: 18px; margin: 10px 0 14px; }
.xfer-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.xfer-btns .btn { min-height: 48px; font-size: 15px; }
@keyframes rxpop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rxfade { from { opacity: 0; } to { opacity: 1; } }

/* ===== global announcement ===== */
.rx-announce { position: fixed; left: 50%; top: 12px; transform: translate(-50%, -140%); z-index: 1200; max-width: min(640px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 14px; background: linear-gradient(135deg, #2a0b0e, #4a0d14); color: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 80, 80, .5) inset; transition: transform .45s cubic-bezier(.2, 1.2, .4, 1); }
.rx-announce.in { transform: translate(-50%, 0); }
.rx-announce { width: max-content; }   /* centred with left:50% it only got half the screen and the text broke into a narrow column */
.rx-announce span { min-width: 0; overflow-wrap: anywhere; }
.rx-announce.gift { background: linear-gradient(135deg, #0b3a24, #0f5a37); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(80, 255, 160, .45) inset; }
.rx-announce b { white-space: nowrap; color: #ffd166; font-size: 13px; }
.rx-announce span { flex: 1; font-weight: 600; }
.rx-announce button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; flex: none; }
@media (max-width: 560px) { .rx-announce { flex-wrap: wrap; } .rx-announce b { width: 100%; } }

/* ===== Bux page ===== */
.xlist, .xhist { display: flex; flex-direction: column; gap: 8px; }
.xrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--panel); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); }
.xrow > span { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.bxi { display: inline-flex; color: #12b76a; } .bxi svg { width: 18px; height: 18px; }
.xhist > div { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; background: var(--panel); border-radius: 10px; }
.xhist .pos { color: #12b76a; } .xhist .neg { color: var(--danger); }
.sb-friends { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.sb-f { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: var(--panel2); border-radius: 12px; padding: 8px; min-width: 72px; cursor: pointer; color: var(--text); font-weight: 600; font-size: 12px; }
.sb-f img { width: 44px; height: 44px; border-radius: 50%; }
.sb-f.on { box-shadow: 0 0 0 2px var(--blue) inset; }
.sb-confirm { text-align: center; }

/* ===== Create: MCP card ===== */
.mcp-card { display: flex; gap: 18px; align-items: flex-start; margin: 18px 0; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(217, 119, 87, .16), rgba(217, 119, 87, .04)); box-shadow: 0 0 0 1px rgba(217, 119, 87, .35) inset; }
.mcp-card h2 { margin: 0 0 4px; }
.mcp-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #d97757; color: #fff; }
.mcp-ic svg { width: 32px; height: 32px; }
@media (max-width: 560px) { .mcp-card { flex-direction: column; } }

/* ===== Docs ===== */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.dk-toc { position: sticky; top: calc(var(--top) + 12px); display: flex; flex-direction: column; gap: 2px; }
.dk-toc a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none; }
.dk-toc a:hover { background: var(--panel2); }
.dk-toc i { font-style: normal; width: 22px; text-align: center; }
.dk-body { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dk-sec { background: var(--panel); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--top) + 12px); line-height: 1.55; }
.dk-sec h2 { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; } .dk-sec h2 i { font-style: normal; }
.dk-sec h4 { margin: 14px 0 6px; }
.dk-sec code, .dk-tools code { font-family: var(--f-mono); font-size: 12.5px; background: var(--panel2); padding: 1px 6px; border-radius: 6px; }
.dk-code { font-family: var(--f-mono); font-size: 12.5px; background: #0f1218; color: #e6edf3; padding: 12px 14px; border-radius: 10px; overflow-x: auto; white-space: pre; margin: 6px 0; }
.dk-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; align-items: center; }
kbd { font-family: var(--f-mono); font-size: 12px; background: var(--panel2); border-radius: 6px; padding: 2px 6px; box-shadow: 0 1px 0 var(--line); }
.dk-note { background: var(--panel2); border-radius: 10px; padding: 10px 12px; }
.dk-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.dk-tools > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--panel2); border-radius: 10px; }
.dk-tools span { color: var(--muted); font-size: 13px; }
.dk-actions { margin: 10px 0; }
@media (max-width: 800px) { .docs { grid-template-columns: 1fr; } .dk-toc { position: static; flex-direction: row; overflow-x: auto; } .dk-toc a { white-space: nowrap; background: var(--panel); } }

/* ===== Admin panel ===== */
.rx-admin { position: fixed; inset: 0; z-index: 880; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 8, .62); backdrop-filter: blur(4px); animation: rxfade .15s ease; color-scheme: dark; }
.adm-box { width: min(1100px, 100%); height: min(760px, calc(100vh - 32px)); display: grid; grid-template-rows: auto 1fr; grid-template-columns: 210px 1fr; background: #121418; color: #eceff4; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 60, 60, .25) inset; font-family: var(--f-ui); }
.adm-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; background: linear-gradient(90deg, #3a0a10, #16181d 60%); border-bottom: 1px solid #262a31; }
.adm-head > b { font: 700 18px var(--f-display); }
.adm-me { color: #ff6b6b; font-weight: 800; }
.adm-mode { margin-left: auto; color: #8f97a6; }
.adm-x { border: 0; background: #252a32; color: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.adm-tabs { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; background: #0e1014; border-right: 1px solid #22262d; overflow-y: auto; }
.adm-tabs button { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: #c3c9d4; font: 600 14px var(--f-ui); padding: 9px 10px; border-radius: 10px; cursor: pointer; text-align: left; }
.adm-tabs button i { font-style: normal; width: 22px; text-align: center; }
.adm-tabs button:hover { background: #1b1f26; }
.adm-tabs button.on { background: linear-gradient(90deg, rgba(255, 45, 45, .22), rgba(255, 45, 45, .05)); color: #fff; box-shadow: 2px 0 0 #ff3b3b inset; }
.adm-body { overflow-y: auto; padding: 18px 22px 30px; min-width: 0; }
.adm-body h2 { margin: 0 0 12px; font: 700 22px var(--f-display); }
.adm-body h3 { margin: 18px 0 8px; font-size: 15px; color: #c3c9d4; }
.adm-body h4 { margin: 16px 0 6px; color: #c3c9d4; }
.adm-body .muted { color: #8f97a6; }
.adm-load { display: grid; place-items: center; padding: 60px; }
.adm-empty { color: #8f97a6; padding: 16px; text-align: center; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.adm-tile { background: #1a1d23; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 0 0 1px #242931 inset; }
.adm-tile i { font-style: normal; font-size: 20px; } .adm-tile b { font: 700 24px var(--f-display); } .adm-tile span { color: #8f97a6; font-size: 12.5px; }
.adm-list { display: flex; flex-direction: column; gap: 4px; }
.adm-row { display: flex; align-items: center; gap: 6px; border: 0; background: #1a1d23; color: #eceff4; padding: 9px 12px; border-radius: 10px; cursor: pointer; text-align: left; font: 600 14px var(--f-ui); }
.adm-row:hover { background: #222731; }
.adm-row .muted { margin-left: auto; font-weight: 500; font-size: 12.5px; }
.adm-ban { font-style: normal; font-size: 10px; font-weight: 900; background: #5a1118; color: #ff8a8a; padding: 1px 6px; border-radius: 999px; }
.adm-search input, .adm-body input, .adm-body select, .adm-body textarea { background: #0e1014; color: #eceff4; border: 1px solid #2a2f38; border-radius: 9px; padding: 8px 10px; font: 500 14px var(--f-ui); min-width: 0; box-sizing: border-box; }
.adm-search input { width: 100%; margin-bottom: 10px; }
.adm-body textarea { width: 100%; resize: vertical; }
.adm-split { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 14px; align-items: start; }
.adm-split > .adm-list { max-height: 560px; overflow-y: auto; }
.adm-detail { background: #16191f; border-radius: 14px; padding: 14px; min-height: 200px; box-shadow: 0 0 0 1px #22262d inset; }
.adm-uhead { display: flex; gap: 12px; align-items: center; }
.adm-uhead img { width: 64px; height: 64px; border-radius: 50%; background: #22262d; }
.adm-uhead h3 { margin: 0 0 2px; color: #fff; font-size: 18px; }
.adm-ban-box { background: #3a0d12; color: #ffb3b3; padding: 6px 10px; border-radius: 8px; margin: 6px 0 0; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 12px; }
.adm-card { background: #1a1d23; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 1px #242931 inset; }
.adm-card > b { font-size: 14px; }
.adm-inline { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.adm-inline input, .adm-inline select { flex: 1; min-width: 80px; }
.adm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-chips .chip { background: #22262d; color: #eceff4; border: 0; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.adm-hist > div { display: grid; grid-template-columns: 80px 70px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; background: #1a1d23; border-radius: 9px; margin-bottom: 4px; font-size: 13.5px; }
.adm-table > div { display: grid; grid-template-columns: minmax(110px, auto) 1fr auto auto auto; gap: 10px; align-items: center; padding: 7px 10px; background: #1a1d23; border-radius: 9px; margin-bottom: 4px; font-size: 13.5px; }
.adm-table.cmds > div { grid-template-columns: minmax(200px, 280px) 1fr; }
.adm-table code { font-family: var(--f-mono); color: #ffb3b3; }
.adm-hist .pos { color: #3ddc84; font-weight: 800; } .adm-hist .neg { color: #ff6b6b; font-weight: 800; } .adm-hist em { color: #8f97a6; font-style: normal; }
.adm-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.adm-item { background: radial-gradient(circle at 50% 30%, #3a1016, #17191e 70%); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; box-shadow: 0 0 0 1px rgba(255, 80, 80, .25) inset; }
.adm-item img { width: 110px; height: 110px; object-fit: contain; }
.adm-item small { color: #ff9a9a; font-size: 11.5px; } .adm-item em { color: #3ddc84; font-style: normal; font-size: 12px; font-weight: 800; }
.adm-formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.adm-formgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #8f97a6; font-weight: 600; }
.adm-body kbd { background: #22262d; color: #fff; box-shadow: none; }
@media (max-width: 760px) {
  .rx-admin { padding: 0; }
  .adm-box { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; height: 100vh; height: 100dvh; border-radius: 0; }
  .adm-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #22262d; padding: 6px; }
  .adm-tabs button { white-space: nowrap; padding: 8px 10px; }
  .adm-tabs button span { display: none; } .adm-tabs button.on span { display: inline; }
  .adm-split { grid-template-columns: 1fr; } .adm-split > .adm-list { max-height: 240px; }
  .adm-mode, .adm-me { display: none; }
  .adm-table > div, .adm-hist > div { grid-template-columns: 1fr 1fr; }
  .adm-body { padding: 14px 14px 30px; }
}
.toast.err { background: var(--danger); color: #fff; }
.mbody h3 > svg { width: 24px; height: 24px; vertical-align: -5px; color: #12b76a; }

/* live pages: new things fade in, nothing else moves */
.rx-new { animation: rxnew .45s ease both; }
@keyframes rxnew { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rx-new { animation: none; } }

/* guests: can only play */
.rx-guest .no-guest { display: none !important; }
.role-tag.role-guest { background: #5d6471; }
.tb-signup { min-height: 34px; }
.guest-wall { max-width: 560px; margin: 40px auto; text-align: center; background: var(--panel); border-radius: 20px; padding: 32px 24px; box-shadow: var(--shadow); }
.guest-wall h1 { margin: 8px 0; }
.guest-wall .hello-actions { justify-content: center; flex-wrap: wrap; }
.gw-ic { font-size: 44px; }
.auth-guest { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 12px; text-align: center; }
.auth-guest > span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.auth-guest .btn { width: 100%; }
.sb-foot a[data-auth] { cursor: pointer; text-decoration: underline; }

/* Gift Bux */
.btn.gift-btn { background: linear-gradient(135deg, #12b76a, #0b8f52); color: #fff; }
.gift-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.gift-head .xfer-av { margin: 0; width: 72px; height: 72px; flex: none; }
.gift-head h3 { margin: 0 0 4px; }
.gift-head h3 svg { width: 22px; height: 22px; vertical-align: -4px; }
.at-field { display: flex; align-items: center; gap: 0; }
.at-field i { font-style: normal; font-weight: 800; color: var(--muted); padding: 0 8px; background: var(--panel2); border-radius: 10px 0 0 10px; align-self: stretch; display: flex; align-items: center; }
.at-field input { flex: 1; min-width: 0; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }

/* "you got Bux" notification cards */
#rx-buxnote { position: fixed; top: 70px; right: 16px; z-index: 9000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: calc(100vw - 32px); }
.rx-buxcard { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 360px; padding: 12px 16px 12px 12px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #2b2410, #1d1a12); border: 1px solid rgba(255, 200, 61, .45); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 200, 61, .08);
  animation: rxBuxIn .45s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .45s, transform .45s; }
.rx-buxcard img { width: 40px; height: 40px; flex: none; animation: rxBuxSpin 1s ease-out; }
.rx-buxcard b { display: block; font-size: 14.5px; line-height: 1.25; }
.rx-buxcard span { display: block; font-size: 12.5px; color: #e9d9a8; margin-top: 2px; }
.rx-buxcard.out { opacity: 0; transform: translateX(30px); }
@keyframes rxBuxIn { from { opacity: 0; transform: translateX(60px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes rxBuxSpin { from { transform: rotateY(0) scale(.6); } to { transform: rotateY(720deg) scale(1); } }
.xfer-amt { animation: rxBuxPop .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes rxBuxPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.bux-notify { display: inline-flex; align-items: center; gap: 8px; }

/* ===== ROBLIX MOD panel (moderators) ===== */
.rx-mod .adm-head { background: linear-gradient(90deg, #06284a, #16181d 60%); }
.rx-mod .adm-tabs button.on { background: linear-gradient(90deg, rgba(63, 169, 255, .24), rgba(63, 169, 255, .05)); box-shadow: 2px 0 0 #3fa9ff inset; }
.rx-mod .adm-tabs button { position: relative; }
.mod-badge { margin-left: auto; font-style: normal; background: #ff3b3b; color: #fff; font: 800 11px var(--f-ui); padding: 1px 7px; border-radius: 10px; }
.mod-toadm { margin-left: 4px; }
.mod-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mod-top h2 { margin: 0; }
.mod-seg { display: inline-flex; background: #0e1014; border-radius: 10px; padding: 3px; gap: 2px; }
.mod-seg button { border: 0; background: none; color: #aeb6c4; font: 700 13px var(--f-ui); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.mod-seg button.on { background: #1f2a38; color: #fff; }
.mod-seg em { font-style: normal; background: #3fa9ff; color: #04121f; padding: 0 6px; border-radius: 8px; margin-left: 4px; font-size: 11px; }
.mod-rep { background: #171a20; border: 1px solid #262b33; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; transition: opacity .3s, transform .3s; }
.mod-rep.gone { opacity: 0; transform: translateX(30px); }
.mod-rep header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mod-reason { background: #3a1a1e; color: #ffb4b4; font: 800 11px var(--f-ui); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 7px; }
.mod-target { font-size: 15px; cursor: pointer; text-decoration: underline dotted; }
.mod-many { font-style: normal; background: #ff8a1c; color: #1b0d00; font: 800 11px var(--f-ui); padding: 2px 7px; border-radius: 7px; }
.mod-det { margin: 8px 0 0; color: #dfe4ec; }
.mod-chat { margin-top: 8px; background: #0e1014; border-radius: 10px; padding: 8px 10px; max-height: 170px; overflow-y: auto; font-size: 12.5px; line-height: 1.5; }
.mod-chat .me { opacity: .6; }
.mod-chat b { color: #9fd0ff; }
.mod-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.mod-why { flex: 1 1 200px; min-width: 0; background: #0e1014; border: 1px solid #2a3039; color: #e6e9ef; border-radius: 8px; padding: 6px 9px; font: 13px var(--f-ui); }
.btn.mod-w { background: #4a3a10; color: #ffd76a; } .btn.mod-m { background: #10334a; color: #8fd1ff; } .btn.mod-k { background: #3a2a14; color: #ffb36a; }
.mod-done { margin: 8px 0 0; color: #8fe0a8; font-size: 13px; }
.mod-muted { font-style: normal; background: #10334a; color: #8fd1ff; font: 800 10px var(--f-ui); padding: 1px 6px; border-radius: 6px; }
.mod-mute-box { background: #0f2638; color: #9fd8ff; border-radius: 8px; padding: 6px 10px; margin: 6px 0 0; }
.mod-bio { color: #c9cfd9; font-style: italic; margin: 6px 0 0; }
.mod-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.mod-li { padding: 6px 0; border-bottom: 1px solid #22262d; font-size: 13px; }
.mod-li small { display: block; color: #8b93a1; }
.mod-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mod-guide > div { background: #171a20; border: 1px solid #262b33; border-radius: 12px; padding: 12px; }
.mod-guide b { display: block; margin-bottom: 4px; color: #9fd0ff; }
.mod-guide span { color: #c3c9d4; font-size: 13px; }
.mod-link .mod-ham { font-style: normal; width: 22px; text-align: center; }
html:not(.rx-adminrank) .adminrank-only { display: none !important; }
.rx-modq .mod-link span::after { content: var(--modq); margin-left: 6px; background: #ff3b3b; color: #fff; font: 800 10px var(--f-ui); padding: 1px 6px; border-radius: 8px; }
/* reporting */
.mod-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 8px; }
.mod-reasons label { display: flex; align-items: center; gap: 8px; background: var(--card, #1b1e24); border: 1px solid var(--line, #2a2f37); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 13.5px; }
.mod-reasons label:has(input:checked) { border-color: #ff5d5d; background: rgba(255, 93, 93, .08); }
.report-btn { color: #ff8a8a; }
.mod-reportpop { position: absolute; z-index: 60; }
.mod-report { max-width: 460px; text-align: left; }
.mod-report h3 { margin: 0 0 4px; }
.mod-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.rx-mp .rx-report { margin-left: auto; font-size: 12px; padding: 5px 10px; }
/* warnings */
.rx-warnpop .rx-pop-box { max-width: 440px; text-align: center; border: 1px solid rgba(255, 196, 0, .45); }
.mod-warn-ic { font-size: 46px; line-height: 1; }
.mod-warn-r { font-size: 17px; font-weight: 700; color: #ffd76a; background: rgba(255, 196, 0, .08); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 700px) { .mod-cols, .mod-reasons { grid-template-columns: 1fr; } }


.dk-roles { display: grid; gap: 8px; margin: 6px 0 10px; }
.dk-roles > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: start; background: var(--panel2); border-radius: 10px; padding: 10px 12px; }
.dk-roles span { color: var(--muted); font-size: 14px; }
@media (max-width: 520px) { .dk-roles > div { grid-template-columns: 1fr; gap: 4px; } }

/* ================= any screen: phones, landscape phones, tablets, laptops, big monitors ================= */
/* notch / rounded corners (viewport-fit=cover): the bar fills the area above it, content starts below it */
.topbar { top: 0; height: calc(var(--top) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); box-sizing: border-box; }
.page { padding-top: calc(var(--top) + env(safe-area-inset-top, 0px) + 22px); padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
.av-stage { top: calc(var(--top) + env(safe-area-inset-top, 0px) + 16px); }
.dk-toc { top: calc(var(--top) + env(safe-area-inset-top, 0px) + 12px); }
/* the side menu scrolls when the screen is short */
.sidebar { overflow-y: auto; overscroll-behavior: contain; padding-left: max(10px, env(safe-area-inset-left, 0px)); }
.sb-scrim { display: none; }
/* dialogs and pop-ups never taller than the screen */
.mbox { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
#modal { padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.rx-pop { overflow-y: auto; }
.rx-pop-box { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; }
.adm-box { height: min(760px, calc(100vh - 32px)); height: min(760px, calc(100dvh - 32px)); }
/* the in-game Report dialog sits above the game's menu and can be clicked */
.mod-reportpop { pointer-events: auto; z-index: 150; }
/* rows that could run off a phone screen wrap instead */
.srv { flex-wrap: wrap; }
.srv-p { flex-wrap: wrap; min-width: 0; padding-left: 6px; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; flex: none; }
.gp-votes { flex-wrap: wrap; }
.hello h1, .prof-info h1, .gp-info h1 { overflow-wrap: anywhere; }
.rx-buxcard { min-width: 0; }

/* tablets / small laptops: the side menu is a drawer and the top bar keeps only what fits */
@media (max-width: 1000px) {
  .tb-nav, .tb-me span, .brand span { display: none; }
  .sidebar { z-index: 40; }
  .sb-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(6, 8, 12, .45); }
  .sidebar.open + .sb-scrim { display: block; animation: rxfade .2s ease; }
  .adm-split { grid-template-columns: 1fr; }
  .adm-split > .adm-list { max-height: 260px; }
  .adm-table.cmds > div { grid-template-columns: 1fr; gap: 2px; }
}
/* admin / mod panels between phone and desktop: icon-only tabs leave room for the content */
@media (min-width: 761px) and (max-width: 1000px) {
  .adm-box { grid-template-columns: 64px 1fr; }
  .adm-tabs button { justify-content: center; padding: 10px 6px; }
  .adm-tabs button span, .adm-tabs .mod-badge { display: none; }
  .adm-tabs button i { width: auto; font-size: 18px; }
}
/* phones */
@media (max-width: 700px) {
  .topbar { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .page { padding-top: calc(var(--top) + env(safe-area-inset-top, 0px) + 16px); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  /* the drawer stops above the bottom bar */
  .sidebar { bottom: calc(57px + env(safe-area-inset-bottom, 0px)); }
  .sb-scrim { bottom: calc(57px + env(safe-area-inset-bottom, 0px)); }
  #toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 24px); }
  .toast { max-width: 100%; text-align: center; box-sizing: border-box; }
  #rx-buxnote { top: calc(var(--top) + env(safe-area-inset-top, 0px) + 8px); right: 12px; left: 12px; max-width: none; }
  .rx-buxcard { max-width: none; }
  .rx-announce { top: calc(8px + env(safe-area-inset-top, 0px)); }
  .bottomnav a { min-height: 48px; justify-content: center; }
  .gp-info h1 { font-size: 26px; }
  .prof { gap: 16px; }
  .prof-info { min-width: 0; }
  .prof-info h1 { font-size: 26px; }
  .prof-stats { gap: 16px; flex-wrap: wrap; }
  .create-hero { padding: 20px; }
  .buxhero { padding: 18px; gap: 14px; }
  .buxbig { font-size: 36px; }
  .itemm img { width: 150px; height: 150px; }
  .su-av img { width: 130px; height: 130px; }
  .mbody { padding: 18px 16px 6px; }
  .mactions { padding: 12px 16px 16px; }
  .mactions .btn { flex: 1 1 auto; }
  .rx-pop-box { padding: 20px 16px 16px; border-radius: 18px; }
  .xrow > span { min-width: 0; flex-basis: 100%; }
  .grp-emb.big { width: 96px; height: 96px; font-size: 46px; border-radius: 22px; }
  .grp-info h1 { font-size: 24px; }
  .bdg-list { grid-template-columns: 1fr; }
  .igrid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .ugrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 480px) {
  .xhist > div { grid-template-columns: 1fr auto; }
  .xhist > div > :first-child { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
  .tb-bux span { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; }
  .ggrid { gap: 10px; }
  .gcard b { font-size: 14px; }
  .xfer-btns { grid-template-columns: 1fr; }
  .adm-hist > div, .adm-table > div { grid-template-columns: 1fr; gap: 2px; }
}
/* landscape phones and other short screens */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --top: 48px; }
  .tb-search { height: 34px; }
  .tb-me img { width: 30px; height: 30px; }
  .page { padding-top: calc(var(--top) + env(safe-area-inset-top, 0px) + 12px); }
  .sidebar a { padding: 8px 12px; }
  .aved { grid-template-columns: minmax(200px, 36%) minmax(0, 1fr); }
  .av-stage { position: sticky; max-width: none; }
  #av-canvas { max-height: calc(100vh - var(--top) - 90px); max-height: calc(100dvh - var(--top) - 90px); }
  .gpage { grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr); }
  .btn.play#playbtn { min-height: 52px; }
  .hello-av { width: 64px; height: 64px; }
  .mbox { max-height: calc(100dvh - 16px); }
  #modal { padding-top: 8px; padding-bottom: 8px; }
}
/* touch screens: everything you tap is at least ~40px */
@media (pointer: coarse) {
  .btn.sm { min-height: 40px; }
  .chip { min-height: 38px; padding: 8px 15px; }
  .vote { min-height: 40px; min-width: 40px; justify-content: center; }
  .wdel { min-width: 36px; min-height: 36px; opacity: .7; }
  .rx-announce button { width: 38px; height: 38px; }
  .adm-x { width: 40px; height: 40px; }
  .mod-seg button { padding: 9px 13px; }
  .tab { padding: 12px 16px; }
  .swatches button { width: 42px; height: 42px; }
  .sidebar a { min-height: 44px; box-sizing: border-box; }
  /* 16px inputs: iPhones don't zoom the page when you tap them */
  .field input, .field textarea, .field select, .tb-search input, .redeem input, .adm-search input, .adm-body input, .adm-body select, .adm-body textarea, .mod-box input, .mod-box textarea, .mod-box select { font-size: 16px; }
}
/* big monitors: the content is centred and the cards grow instead of a narrow column on the left */
@media (min-width: 1800px) {
  .page { max-width: 1680px; margin-left: calc(var(--rail) + max(0px, (100vw - var(--rail) - 1680px) / 2)); }
  .grow { grid-auto-columns: minmax(210px, 270px); }
  .ggrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .tb-search { max-width: 640px; }
}
@media (min-width: 2400px) {
  :root { --rail: 260px; --top: 64px; }
  body { font-size: 17px; }
  .page { max-width: 2000px; margin-left: calc(var(--rail) + max(0px, (100vw - var(--rail) - 2000px) / 2)); }
  .grow { grid-auto-columns: minmax(260px, 330px); }
  .ggrid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .igrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .sidebar a { font-size: 17px; padding: 12px 14px; }
  .aved { grid-template-columns: minmax(320px, 560px) minmax(0, 1fr); }
}

/* sound settings (Settings page) */
.snd-box { gap: 8px; }
.snd-row { display: grid; grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) 46px 40px; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.snd-row input[type=range] { width: 100%; accent-color: var(--blue); }
.snd-row b { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); font-weight: 700; }
.snd-row .btn.sm { padding: 0; min-width: 36px; }
.snd-box .field { margin-top: 4px; }
@media (max-width: 480px) { .snd-row { grid-template-columns: 1fr 46px 40px; } .snd-row > span { grid-column: 1 / -1; } }

/* ---------- Admin panel / Owner panel (js/platform/admin.js) ---------- */
.adm-switch { border: 0; background: #252a32; color: #fff; padding: 7px 12px; border-radius: 10px; cursor: pointer; font: 700 13px var(--f-ui); white-space: nowrap; }
.adm-switch:hover { background: #2f3540; }
.adm-switch.gold, .adm-actions .gold { background: linear-gradient(135deg, #ffd34e, #ff9f1c); color: #1a1205; }
.rx-admin.owner .adm-head { background: linear-gradient(90deg, #3d2a05, #16181d 60%); }
.rx-admin.owner .adm-tabs button.on { background: linear-gradient(90deg, rgba(255, 196, 46, .24), rgba(255, 196, 46, .05)); box-shadow: 2px 0 0 #ffc42e inset; }
.rx-admin.owner .adm-me { color: #ffd34e; }
.adm-lbl { min-width: 58px; color: #c3c9d4; font-weight: 600; }
.adm-srv { display: flex; flex-direction: column; gap: 6px; }
.adm-srvrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: #1a1d23; border-radius: 12px; padding: 9px 12px; box-shadow: 0 0 0 1px #242931 inset; }
.adm-srvrow > .muted { font-size: 12.5px; }
.adm-srvbtns { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.adm-srvbtns button { border: 0; background: #252a32; color: #eceff4; padding: 5px 9px; border-radius: 8px; cursor: pointer; font: 600 12.5px var(--f-ui); }
.adm-srvbtns button:hover { background: #303643; }
.adm-srvbtns button.danger { background: #4a1016; color: #ffb3b3; }
.adm-bt { flex-direction: row; align-items: center; gap: 16px; }
.adm-bt > div { flex: 1; }
.adm-bt .btn { flex: none; }
.adm-body h2 small { font: 500 13px var(--f-ui); margin-left: 6px; }
@media (max-width: 700px) { .adm-bt { flex-direction: column; align-items: stretch; } .adm-srvbtns { margin-left: 0; } .adm-head .adm-switch { padding: 6px 8px; font-size: 12px; } }

/* ---------- a friend's game invite (js/platform/invite.js) ---------- */
.rx-invite { position: fixed; right: 16px; bottom: 16px; z-index: 9500; display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 14px; background: #16191f; color: #eceff4; border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08) inset; transform: translateY(20px); opacity: 0; transition: transform .25s, opacity .25s; }
.rx-invite.in { transform: none; opacity: 1; }
.rx-invite img { width: 48px; height: 48px; border-radius: 50%; background: #22262d; flex: none; }
.rx-invite .rx-inv-txt { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.rx-invite .rx-inv-txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-invite .rx-inv-txt em { font-style: normal; font-weight: 700; color: #ffd34e; }
.rx-invite .rx-inv-btns { display: flex; flex-direction: column; gap: 6px; margin-left: auto; }
@media (max-width: 480px) { .rx-invite { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- Buy Bux (real money through AgentaOS, js/platform/app.js buyBux) ---------- */
.bx-buy h2 { margin-bottom: 10px; }
.bx-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bx-pack { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px 12px; border: 0; border-radius: 16px; background: var(--card, #1a1d23); color: inherit; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; transition: transform .12s, box-shadow .12s; font: inherit; }
.bx-pack:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px #00b06f inset; }
.bx-pack[disabled] { opacity: .6; cursor: wait; transform: none; }
.bx-pack .bxi { width: 34px; height: 34px; display: grid; place-items: center; }
.bx-pack .bxi svg { width: 34px; height: 34px; }
.bx-pack > b { font: 800 22px var(--f-display, inherit); }
.bx-pack > span { color: var(--muted, #8f97a6); font-size: 12.5px; margin-top: -2px; }
.bx-pack em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #00b06f; min-height: 15px; }
.bx-pack strong { margin-top: 6px; width: 100%; padding: 8px 0; border-radius: 10px; background: #00b06f; color: #fff; font-weight: 800; }
.bx-note { padding: 10px 12px; border-radius: 12px; background: rgba(255, 196, 46, .1); box-shadow: 0 0 0 1px rgba(255, 196, 46, .3) inset; margin-bottom: 10px; font-size: 13.5px; }
.bx-note.test { background: rgba(0, 162, 255, .1); box-shadow: 0 0 0 1px rgba(0, 162, 255, .3) inset; }
.bx-legal { font-size: 12px; margin-top: 8px; }
.bx-check { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: rgba(0, 176, 111, .1); box-shadow: 0 0 0 1px rgba(0, 176, 111, .35) inset; margin-bottom: 10px; }
.bx-check.warn { background: rgba(255, 196, 46, .1); box-shadow: 0 0 0 1px rgba(255, 196, 46, .3) inset; flex-direction: column; align-items: flex-start; gap: 2px; }
.bx-check .rx-spin { width: 20px; height: 20px; }
/* Owner panel → ROBLIX AI host */
.ai-host .ai-on { color: var(--play); }
.ai-host .ai-off { color: var(--muted); }
.ai-code { font: 700 18px/1 "JetBrains Mono", monospace; letter-spacing: 2px; color: var(--text); margin-left: 10px; }
/* Owner panel → ROBLIX AI (everyone's chats live, stop, limits, models; the panel is always dark) */
.ail-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.ail-def { display: flex; align-items: center; gap: 8px; color: #e8eaee; font-size: 13px; font-weight: 600; }
.ail-def select { min-width: 180px; }
.ail-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #9aa1ad; font-size: 12.5px; font-weight: 600; }
.ail-live i { width: 8px; height: 8px; border-radius: 50%; background: #2fd36b; box-shadow: 0 0 0 0 rgba(47, 211, 107, .6); animation: ail-pulse 1.8s infinite; }
@keyframes ail-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 211, 107, .55); } 70% { box-shadow: 0 0 0 7px rgba(47, 211, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 211, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .ail-live i { animation: none; } }
.ail-row { align-items: flex-start; }
.ail-row.on { background: #262c37; box-shadow: 0 0 0 1px #3a4250 inset; }
.ail-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4a505c; margin-top: 6px; }
.ail-dot.busy { background: #2fd36b; }
.ail-who { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ail-who small { color: #9aa1ad; font-weight: 500; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.ail-row .muted { text-align: right; line-height: 1.35; flex: none; }
.ail-detail { display: flex; flex-direction: column; gap: 10px; min-width: 0; }   /* (min-width 0: a long line never widens the grid column) */
.ail-head { display: flex; gap: 12px; align-items: center; }
.ail-head img { width: 48px; height: 48px; border-radius: 50%; background: #22262d; }
.ail-head h3 { margin: 0 0 2px; color: #fff; font-size: 17px; }
.ail-head p { margin: 0; }
.ail-on { color: #2fd36b; }
.ail-off { color: #ff8a65; }
.ail-ctl { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ail-ctl input[type=number] { max-width: 90px; }
.ail-ctl #ail-reason { width: 100%; }
.ail-chat { min-width: 0; background: #0f1115; border-radius: 12px; box-shadow: 0 0 0 1px #22262d inset; padding: 12px; max-height: 460px; min-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ail-more { align-self: center; }
.ail-msg { display: flex; flex-direction: column; gap: 4px; max-width: 86%; min-width: 0; }
.ail-msg time, .ail-line time { font-size: 11px; color: #6f7683; }
.ail-msg.user { align-self: flex-end; align-items: flex-end; }
.ail-msg.bot { align-self: flex-start; }
.ail-b { padding: 8px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; color: #eceff4; overflow-wrap: anywhere; min-width: 0; }
.ail-b ul { margin: 2px 0; padding-inline-start: 18px; }
.ail-b .ail-gap { height: 6px; }
.ail-b code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); font: 12px "JetBrains Mono", monospace; unicode-bidi: isolate; }
.ail-msg.user .ail-b { background: #2b4f8a; border-bottom-right-radius: 4px; }
.ail-msg.bot .ail-b { background: #1f232b; border-bottom-left-radius: 4px; }
.ail-b pre, .ail-res pre { margin: 6px 0 0; padding: 8px; border-radius: 8px; background: #0a0c0f; color: #cfd6e2; font: 12px/1.4 "JetBrains Mono", monospace; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
.ail-msg small { font-size: 11.5px; color: #8a919d; }
.ail-call { min-width: 0; overflow: hidden; display: flex; gap: 8px; align-items: baseline; padding: 5px 9px; border-radius: 8px; background: #171a20; box-shadow: 0 0 0 1px #262b34 inset; font-size: 12.5px; color: #dfe3ea; max-width: 100%; }
.ail-call b { flex: none; color: #9ec5ff; font-weight: 700; }
.ail-call code { color: #aab2bf; font: 11.5px/1.35 "JetBrains Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ail-res { min-width: 0; align-self: flex-start; display: flex; flex-direction: column; gap: 3px; padding-left: 10px; border-left: 2px solid #262b34; max-width: 86%; }
.ail-res details summary { cursor: pointer; font-size: 12.5px; color: #c4cad4; display: flex; gap: 6px; align-items: center; }
.ail-res details summary i { font-style: normal; font-weight: 800; width: 14px; text-align: center; }
.ail-res i.ok { color: #2fd36b; }
.ail-res i.bad { color: #ff6b5b; }
.ail-res small { font-size: 11.5px; color: #8a919d; }
.ail-line { align-self: center; display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; text-align: center; }
.ail-line.err { color: #ff8a80; background: rgba(255, 82, 82, .1); }
.ail-line.stop { color: #ffb74d; background: rgba(255, 167, 38, .12); }
.ail-line.rule { color: #b8c0cc; background: #1a1d23; }

/* Create → Make a game with ROBLIX AI (js/studio/aigame.js) */
.ai-make { margin-top: 16px; padding: 18px; border-radius: 18px; background: var(--panel); box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, #ff8a00 45%, transparent); display: flex; flex-direction: column; gap: 12px; }
.ai-make-t { display: flex; flex-direction: column; gap: 4px; }
.ai-make-t b { font-size: 17px; }
.ai-make-row { display: flex; gap: 8px; }
.ai-make-row input { flex: 1; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 600 15px inherit; font-family: inherit; padding: 0 14px; }
.ai-make-row input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.ai-make-row .btn { min-height: 44px; padding: 0 22px; }
.ai-make-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-make-ex button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 99px; padding: 5px 11px; font: 600 12.5px inherit; font-family: inherit; cursor: pointer; }
.ai-make-ex button:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 520px) { .ai-make-row { flex-direction: column; } }

/* Communities 2.0 (js/platform/groups.js) */
.gfee { font-style: normal; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.gfee-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); }
.gfee-note .neg { color: var(--danger); }
.grp-pitch { margin: 8px 0 4px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--blue) 14%, var(--panel)), var(--panel)); box-shadow: var(--shadow); }
.grp-pitch div { display: flex; flex-direction: column; gap: 4px; }
.grp-pitch span { color: var(--muted); font-size: 14px; max-width: 80ch; }
.gnote { margin: 0 0 12px; font-size: 14px; }
.grole-tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--panel2); color: var(--text); white-space: nowrap; }
.grole-tag.big { font-size: 13px; padding: 6px 12px; }
.grole-tag.r-owner { background: #f7b500; color: #1b1b1b; }
.grole-tag.r-coowner { background: #ff9f1c; color: #1b1b1b; }
.grole-tag.r-admin { background: var(--danger); color: #fff; }
.grole-tag.r-developer { background: var(--blue); color: #fff; }
.grole-tag.r-playtester { background: var(--play); color: #fff; }
.gmem-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.gmem { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); flex-wrap: wrap; }
.gmem img { width: 44px; height: 44px; border-radius: 50%; background: var(--panel2); display: block; }
.gmem-i { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 2px; }
.gmem-role { font: 14px var(--f-ui); padding: 7px 10px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); }
.grole-list { display: flex; flex-direction: column; gap: 8px; }
.grole { display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); flex-wrap: wrap; }
.grole-rank { width: 46px; height: 46px; border-radius: 12px; background: var(--panel2); display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.grole-i { flex: 1; min-width: 200px; }
.gperms { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.gperms span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel2); }
.gperms span.none { color: var(--muted); }
.gperm-pick { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.gperm-pick label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--panel2); cursor: pointer; font-weight: 400; }
.gperm-pick label.off { opacity: .5; cursor: not-allowed; }
.gperm-pick span { display: flex; flex-direction: column; gap: 1px; }
.gperm-pick small { color: var(--muted); font-size: 12.5px; }
.gperm-pick input { margin-top: 3px; }
.gset { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.gset .set-info b { color: var(--text); }
.gset .set-info.danger { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 55%, transparent); }
.gset-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gset-row select { font: 14px var(--f-ui); padding: 7px 10px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); min-width: 180px; }

/* "ROBLIX was updated" bar (App.outdated) */
.upd-bar { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 9000; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px); padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 10px 40px rgba(0, 0, 0, .35), 0 0 0 1.5px var(--blue); font-size: 14px; }
.upd-bar span { flex: 1; min-width: 0; }
.upd-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 6px; }

/* limiteds (Marketplace) */
.icard.lim { position: relative; box-shadow: inset 0 0 0 1.5px #00b06f; }
.lim-tag { font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .08em; color: #fff; background: linear-gradient(90deg, #00b06f, #00d084); border-radius: 4px; padding: 2px 6px; vertical-align: middle; }
.icard .lim-tag { position: absolute; left: 8px; top: 8px; z-index: 1; }
.lim-stock { margin: 10px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.lim-stock > div { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.lim-stock > i { display: block; height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; position: relative; }
.lim-stock > i::after { content: ""; position: absolute; inset: 0; width: var(--p); background: linear-gradient(90deg, #00b06f, #ffb300); }

/* the installable app (js/platform/pwa.js) */
.pwa-ok { color: var(--play); font-weight: 700; }
#pwa-push { flex-wrap: wrap; align-items: center; gap: 8px; }
.pwa-card { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 8000; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--panel); color: var(--text); box-shadow: 0 12px 40px rgba(0, 0, 0, .35), 0 0 0 1px var(--line); }
.pwa-card img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.pwa-card div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pwa-card span { color: var(--muted); font-size: 13px; }
.pwa-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 6px; }

/* tablets held upright / touch screens up to 1000px: the bottom bar too (with More → the drawer) */
@media (max-width: 1000px) and (pointer: coarse) {
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 0; min-height: 48px; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; }
  .bottomnav a svg { width: 22px; height: 22px; }
  .bottomnav a.on { color: var(--text); }
  .page { padding-bottom: 90px; }
}
/* the staff panels on small / short screens: the header wraps instead of crowding, landscape phones get the full-screen layout */
@media (max-width: 400px) { .adm-head { flex-wrap: wrap; row-gap: 6px; padding: 10px 12px; } }
@media (max-height: 500px) and (pointer: coarse) {
  .rx-admin { padding: 0; }
  .adm-box { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; height: 100vh; height: 100dvh; border-radius: 0; }
  .adm-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #22262d; padding: 6px; }
  .adm-tabs button { white-space: nowrap; padding: 8px 10px; }
}
.ring-row { display: flex; gap: 8px; align-items: center; } .ring-row select { flex: 1; min-width: 0; }
.ring-sw { display: flex; align-items: center; gap: 8px; color: var(--text); margin-top: 6px; cursor: pointer; } .ring-sw input { width: 18px; height: 18px; }
.btn.call-btn { background: linear-gradient(135deg, #3d8bff, #2a62d6); color: #fff; }

/* ---------- Chats (js/platform/chats.js): the list on the left, the conversation on the right (one at a time on phones) ---------- */
.chats { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 14px; height: calc(100vh - var(--top) - 48px); height: calc(100dvh - var(--top) - 48px); min-height: 420px; }
.ch-list, .ch-thread { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.ch-list { padding: 12px; gap: 10px; }
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ch-head h1 { margin: 0; font-size: 24px; }
/* (the search bar: its flex: 1 is for the top bar's width — in this column it stretched to half the screen) */
.ch-list .tb-search { flex: none; height: 40px; max-width: none; margin: 0; }
.ch-new { display: flex; gap: 6px; }
.ch-items { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; padding: 0 6px; flex: 1; min-height: 0; }
.ch-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; color: var(--text); text-decoration: none !important; cursor: pointer; }
.ch-item:hover { background: var(--panel2); }
.ch-item.on { background: var(--panel2); box-shadow: inset 3px 0 0 #3d8bff; }
.ch-item > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-item b, .ch-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-item small { color: var(--muted); font-size: 13px; }
.ch-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ch-meta em { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ch-un, .chat-badge { background: #e5484d; color: #fff; border-radius: 99px; font-weight: 800; font-size: 11px; padding: 2px 6px; font-style: normal; min-width: 8px; text-align: center; }
.sidebar .chat-badge { margin-left: auto; }
.bottomnav a { position: relative; }
.bottomnav .chat-badge { position: absolute; top: 4px; left: calc(50% + 6px); }
.ch-face, .ch-ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; position: relative; font-style: normal; font-size: 22px; }
.ch-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ch-face i { font-style: normal; font-weight: 800; }
.ch-face.on::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #3fd16c; box-shadow: 0 0 0 2.5px var(--panel); }
.ch-ic.big, .ch-face.big { width: 40px; height: 40px; flex-basis: 40px; }
.ch-empty { color: var(--muted); padding: 20px 8px; text-align: center; }
.ch-pick { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 6px; padding: 30px; }
.ch-pick div { font-size: 44px; }
.ch-pick b { color: var(--text); font-size: 18px; }
.ch-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ch-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-title b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-title small { color: var(--muted); font-size: 12.5px; }
.ch-back { display: none; border: 0; background: transparent; color: var(--text); font-size: 30px; line-height: 1; padding: 0 6px 4px 0; cursor: pointer; }
.ch-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 6px; }
.ch-more { align-self: center; border: 0; background: var(--panel2); color: var(--text); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: 13px; cursor: pointer; margin-bottom: 6px; }
.cm { display: flex; align-items: flex-end; gap: 6px; max-width: 78%; }
.cm.me { align-self: flex-end; flex-direction: row-reverse; }
.cm-face { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: var(--panel2); overflow: hidden; }
.cm-face img { width: 100%; height: 100%; }
.cm-b { background: var(--panel2); border-radius: 16px 16px 16px 5px; padding: 7px 11px 5px; display: flex; flex-direction: column; min-width: 0; }
.cm.me .cm-b { background: #3d8bff; color: #fff; border-radius: 16px 16px 5px 16px; }
.cm-who { font-style: normal; font-size: 12px; font-weight: 800; color: #7fb2ff; }
.cm-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.35; }
.cm time { align-self: flex-end; font-size: 10.5px; opacity: .6; margin-top: 2px; }
.cm-sys { align-self: center; color: var(--muted); font-size: 12.5px; background: var(--panel2); border-radius: 99px; padding: 4px 12px; text-align: center; }
.cm-invite { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.cm-invite img, .cm-invite > i { width: 64px; height: 42px; border-radius: 8px; object-fit: cover; background: rgba(0, 0, 0, .25); display: grid; place-items: center; font-style: normal; font-size: 20px; flex: 0 0 64px; }
.cm-invite div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-invite small { opacity: .8; font-size: 12px; }
.cm-call { font-weight: 700; }
.ch-send { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.ch-send textarea { flex: 1; resize: none; border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 18px; padding: 10px 14px; font-size: 15px; font-family: inherit; max-height: 140px; outline: none; }
.ch-send textarea:focus { border-color: #3d8bff; }
.ch-send .btn { border-radius: 50%; width: 44px; height: 44px; padding: 0; font-size: 18px; flex: 0 0 44px; }
.ch-pickl { display: flex; flex-direction: column; gap: 4px; max-height: 46vh; overflow-y: auto; margin: 6px 0; }
.ch-pf { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; background: var(--panel2); }
.ch-pf img, .ch-pf > i { width: 34px; height: 34px; border-radius: 50%; background: var(--panel); }
.ch-pf b { flex: 1; }
.ch-pf em { font-style: normal; font-size: 12px; color: #3fd16c; }
.ch-pf input { width: 18px; height: 18px; }
.ch-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-icons button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid transparent; background: var(--panel2); font-size: 20px; cursor: pointer; }
.ch-icons button.on { border-color: #3d8bff; }
.ch-mem { display: flex; flex-direction: column; gap: 4px; max-height: 30vh; overflow-y: auto; margin-bottom: 8px; }
.ch-mrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--panel2); }
.ch-mrow img, .ch-mrow > i { width: 30px; height: 30px; border-radius: 50%; background: var(--panel); }
.ch-mrow b { flex: 1; }
.ch-mrow em { font-style: normal; font-size: 12px; color: #ffcf3a; }
.ch-gnow { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 2px solid #3fd16c; background: rgba(63, 209, 108, .08); color: var(--text); cursor: pointer; margin-bottom: 10px; font: inherit; }
.ch-gnow small { color: var(--muted); }
.ch-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; }
.ch-games button { display: flex; flex-direction: column; gap: 4px; border: 0; background: var(--panel2); border-radius: 12px; padding: 6px; color: var(--text); cursor: pointer; font-weight: 600; font-size: 12.5px; text-align: left; font-family: inherit; }
.ch-games img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--panel); }
@media (max-width: 760px) {
  .chats { grid-template-columns: 1fr; height: calc(100vh - var(--top) - 120px); height: calc(100dvh - var(--top) - 120px); }
  .chats .ch-thread { display: none; }
  .chats.open .ch-list { display: none; }
  .chats.open .ch-thread { display: flex; }
  .ch-back { display: block; }
  .cm { max-width: 88%; }
}
/* ---------- Calls tab ---------- */
.cl-list { display: flex; flex-direction: column; gap: 6px; }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.cl-row img, .cl-row > i { width: 42px; height: 42px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-style: normal; flex: 0 0 42px; }
.cl-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-row small { color: var(--muted); }
.cl-row > em { font-style: normal; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.cl-row.miss b, .cl-row.miss .cl-ic { color: #ff6b6b; }
.cl-row.in .cl-ic { color: #3fd16c; }
.cl-row.out .cl-ic { color: #7fb2ff; }
.cl-live { background: rgba(63, 209, 108, .12); border: 1px solid rgba(63, 209, 108, .4); color: var(--text); padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; }

/* ---------- special titles: FIRST ROBLIXIAN (js/platform/bank.js RX.Titles) ---------- */
.title-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 3px 10px; border-radius: 99px; font-style: normal; font-weight: 900; font-size: 12px; letter-spacing: .06em; color: #fff; vertical-align: middle; white-space: nowrap;
  background: linear-gradient(120deg, #ffd166, #f72585 45%, #7209b7); background-size: 200% 100%; box-shadow: 0 0 14px rgba(247, 37, 133, .45), inset 0 0 0 1px rgba(255, 255, 255, .25); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); animation: rxshine 4s ease-in-out infinite; }
.title-tag.sm { font-size: 10px; padding: 2px 7px; margin-left: 5px; }
h1 .title-tag { font-size: 13px; padding: 4px 12px; }
@keyframes rxshine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- chat pictures: photos and GIFs (js/platform/chats.js) ---------- */
.ch-att { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel2); cursor: pointer; font-size: 18px; line-height: 1; display: grid; place-items: center; transition: background .15s, transform .15s; }
.ch-att:hover { background: rgba(61, 139, 255, .22); transform: translateY(-1px); }
.ch-prev { display: flex; align-items: center; gap: 12px; margin: 0 12px; padding: 8px 10px; border-radius: 12px 12px 0 0; background: var(--panel2, rgba(127, 127, 127, .12)); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .2); }
.ch-prev[hidden] { display: none; }
.ch-pv { position: relative; flex: 0 0 auto; }
.ch-pv img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 9px; background: #0003; }
.ch-pv em, .cm-pic em { position: absolute; left: 4px; bottom: 4px; font: 900 9px/1 "Figtree", sans-serif; letter-spacing: .06em; color: #fff; background: #000a; padding: 2px 4px; border-radius: 4px; font-style: normal; }
.ch-pvt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-pvt small { color: var(--muted, #9aa0ad); }
.ch-pvx { border: 0; background: transparent; color: inherit; opacity: .6; font-size: 16px; cursor: pointer; padding: 6px; }
.ch-pvx:hover { opacity: 1; }
.rx-spin.sm { width: 20px; height: 20px; border-width: 3px; }
.ch-thread.drop { outline: 3px dashed #3d8bff; outline-offset: -8px; }
.cm-pic { position: relative; display: block; max-width: 100%; border-radius: 12px; overflow: hidden; background: rgba(127, 127, 127, .18); cursor: zoom-in; margin: 2px 0; }
.cm-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-cap { margin-top: 4px; }
.ch-lb { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 24px; background: rgba(5, 6, 10, .88); opacity: 0; transition: opacity .18s; cursor: zoom-out; }
.ch-lb.in { opacity: 1; } .ch-lb.out { opacity: 0; }
.ch-lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); cursor: default; }
.ch-lbx { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff2; color: #fff; font-size: 18px; cursor: pointer; }

/* ---------- the ban window (js/platform/app.js bannedScreen) ---------- */
.ban-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 50% -10%, rgba(255, 59, 92, .18), transparent 60%), var(--bg); }
.ban-card { width: min(520px, 100%); background: var(--panel); border-radius: 22px; padding: 26px 26px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 59, 92, .25); text-align: center; animation: banIn .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes banIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.ban-top { position: relative; width: 72px; height: 72px; margin: 0 auto 10px; }
.ban-top svg { width: 72px; height: 72px; opacity: .9; }
.ban-ic { position: absolute; right: -10px; bottom: -6px; font-size: 30px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
/* ROBLIX is down (servers / database unreachable): like the ban window, calm colours */
.down-wrap { background: radial-gradient(1200px 600px at 50% -10%, rgba(80, 140, 255, .16), transparent 60%), var(--bg); }
.down-card { box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(80, 140, 255, .25); }
.down-card h1 { color: var(--text, #fff) !important; }
.down-ic svg { width: 54px; height: 54px; }
.down-try { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 6px; opacity: .8; }
.ban-card h1 { margin: 6px 0 6px; font: 800 28px var(--f-display, inherit); color: #ff3b5c; letter-spacing: .01em; }
.ban-sub { margin: 0 auto 16px; max-width: 400px; color: var(--muted); }
.ban-reason { text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(255, 59, 92, .09); box-shadow: inset 3px 0 0 #ff3b5c; margin-bottom: 10px; }
.ban-reason small, .ban-grid small, .ban-timer small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.ban-reason b { font-size: 16px; word-break: break-word; }
.ban-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; text-align: left; }
.ban-grid > div { padding: 10px 12px; border-radius: 12px; background: var(--panel2); }
.ban-grid b { font-size: 14px; }
.ban-timer { padding: 14px 10px 16px; border-radius: 16px; background: var(--panel2); margin-bottom: 14px; }
.ban-clock { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.ban-clock span { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.ban-clock b { font: 800 36px/1.05 var(--f-display, inherit); padding: 6px 8px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-width: 54px; }
.ban-clock em { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 700; }
.ban-clock i { font-style: normal; font: 800 30px/1.4 var(--f-display, inherit); color: var(--muted); }
.ban-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 0 6px; }
.ban-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff3b5c, #ffb703); border-radius: 99px; transition: width 1s linear; }
.ban-inf { font: 800 76px/1 var(--f-display, inherit); color: #ff3b5c; margin: 2px 0 6px; animation: banPulse 2.4s ease-in-out infinite; }
@keyframes banPulse { 50% { transform: scale(1.06); text-shadow: 0 0 24px rgba(255, 59, 92, .45); } }
.ban-done { font-size: 52px; margin: 4px 0 6px; }
.ban-card.over h1 { color: #2fbf5b; }
.ban-card.over { box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(47, 191, 91, .45); }
.ban-acts { display: flex; justify-content: center; gap: 10px; }
@media (max-width: 420px) { .ban-card { padding: 20px 16px 16px; } .ban-clock span { min-width: 44px; } .ban-clock b { font-size: 26px; min-width: 40px; padding: 5px 4px; } .ban-clock i { font-size: 22px; } .ban-grid { grid-template-columns: 1fr; } }

/* ---------- activity / status (js/platform/presence.js) ---------- */
.act { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: currentColor; }
.act-web { color: var(--play); } .act-play { color: #3d8bff; } .act-studio { color: #ff9f1c; } .act-call { color: #a26bff; } .act-afk { color: #e0b100; } .act-dnd { color: #e5484d; } .act-off { color: var(--muted); }
.act-dnd::before { box-shadow: inset 0 -3px 0 -1px #fff8; }
.online-act { margin-left: 8px; }
.fbub i.act-dot { background: var(--play); }
.fbub i.act-play { background: #3d8bff; } .fbub i.act-studio { background: #ff9f1c; } .fbub i.act-call { background: #a26bff; } .fbub i.act-afk { background: #e0b100; } .fbub i.act-dnd { background: #e5484d; }
.ch-face.act-play::after { background: #3d8bff !important; } .ch-face.act-studio::after { background: #ff9f1c !important; } .ch-face.act-call::after { background: #a26bff !important; } .ch-face.act-afk::after { background: #e0b100 !important; } .ch-face.act-dnd::after { background: #e5484d !important; }
#sb-status { cursor: pointer; border-radius: 8px; padding: 4px 6px; margin: -4px -6px; transition: background .15s; }
#sb-status:hover { background: var(--panel2); }
#sb-status[data-k=play] i { background: #3d8bff; } #sb-status[data-k=studio] i { background: #ff9f1c; } #sb-status[data-k=call] i { background: #a26bff; } #sb-status[data-k=afk] i { background: #e0b100; } #sb-status[data-k=dnd] i { background: #e5484d; }
.act-pick { position: fixed; z-index: 9500; width: 290px; background: var(--panel); border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line); animation: banIn .18s ease-out; }
.act-ph { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 4px; }
.act-pick button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--text); text-align: left; padding: 8px 10px; border-radius: 10px; cursor: pointer; font: inherit; }
.act-pick button:hover { background: var(--panel2); }
.act-pick button.on { background: color-mix(in srgb, #3d8bff 14%, transparent); }
.act-pick i { font-style: normal; font-size: 18px; width: 24px; text-align: center; }
.act-pick span { flex: 1; display: flex; flex-direction: column; } .act-pick small { color: var(--muted); font-size: 12px; }
.act-pick em { font-style: normal; color: #3d8bff; font-weight: 900; }
/* ---------- one account, one place (RX.Session) ---------- */
.sess-wrap { position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; padding: 20px; background: rgba(8, 9, 13, .82); backdrop-filter: blur(6px); }
.sess-card { width: min(440px, 100%); background: var(--panel); border-radius: 20px; padding: 26px 24px 22px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); animation: banIn .35s cubic-bezier(.2, .9, .3, 1.2); }
.sess-ic { font-size: 34px; display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 6px; }
.sess-ic span { font-size: 22px; color: var(--muted); }
.sess-card h2 { margin: 6px 0 8px; }
.sess-card p { color: var(--muted); margin: 0 0 18px; }
.sess-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- message ticks: sending / sent / delivered / read (js/platform/chats.js) ---------- */
.cm-meta { align-self: flex-end; display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; }
.cm-meta time { margin-top: 0; }
.cm-tick { display: inline-flex; align-items: center; height: 12px; line-height: 0; }
.cm-tick svg { width: 15px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cm-tick.got svg, .cm-tick.read svg { width: 19px; }
.cm-tick.sending, .cm-tick.sent, .cm-tick.got { opacity: .72; }
.cm-tick.sending { animation: tickPulse .9s ease-in-out infinite alternate; }
@keyframes tickPulse { from { opacity: .35; } to { opacity: .85; } }
.cm-tick.read { color: #8dffc0; opacity: 1; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .25)); }
.cm-tick.failed { color: #ffd2d2; opacity: 1; }
.cm.me.pending .cm-b { opacity: .8; }
.cm.me.failed .cm-b { background: #d4515a; cursor: pointer; }
.ch-item small .cm-tick { color: var(--muted); margin-right: 3px; vertical-align: -1px; }
.ch-item small .cm-tick.read { color: #3d8bff; filter: none; }

/* ---------- reactions + replies (js/platform/chats.js) ---------- */
.cm { position: relative; }
.cm-acts { align-self: center; display: flex; gap: 2px; opacity: 0; pointer-events: none; transition: opacity .12s; flex: none; }
.cm:hover .cm-acts { opacity: 1; pointer-events: auto; }
.cm-acts button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--panel2); color: var(--text); cursor: pointer; font-size: 14px; line-height: 1; display: grid; place-items: center; }
.cm-acts button:hover { background: var(--line); }
@media (hover: none) { .cm-acts { display: none; } }
.cm-reacts { display: flex; flex-wrap: wrap; gap: 4px; }
.cm-reacts:not(:empty) { margin-top: 4px; }
.cm-rx { display: inline-flex; align-items: center; gap: 3px; border: 0; border-radius: 99px; padding: 1px 7px; font-size: 14px; line-height: 20px; cursor: pointer; background: rgba(127, 127, 127, .2); color: inherit; }
.cm-rx b { font-size: 11.5px; font-weight: 800; }
.cm-rx.on { background: rgba(61, 139, 255, .3); box-shadow: inset 0 0 0 1.5px #3d8bff; }
.cm.me .cm-rx { background: rgba(255, 255, 255, .2); }
.cm.me .cm-rx.on { background: rgba(255, 255, 255, .38); box-shadow: inset 0 0 0 1.5px #fff; }
.cm-rep { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 5px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .14); box-shadow: inset 3px 0 0 #7fb2ff; text-decoration: none !important; color: inherit; cursor: pointer; max-width: 100%; }
.cm.me .cm-rep { background: rgba(255, 255, 255, .16); box-shadow: inset 3px 0 0 #fff; }
.cm-rep b { font-size: 12px; color: #7fb2ff; }
.cm.me .cm-rep b { color: #fff; }
.cm-rep span { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm.flash .cm-b { animation: cmFlash 1.2s ease-out; }
@keyframes cmFlash { 0%, 40% { box-shadow: 0 0 0 3px #ffb703; } 100% { box-shadow: 0 0 0 3px transparent; } }
.cm-picker { position: absolute; z-index: 20; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 99px; background: var(--panel); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line); animation: banIn .14s ease-out; }
.cm-picker button { border: 0; background: transparent; font-size: 22px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; transition: transform .1s; }
.cm-picker button:hover { transform: scale(1.22); background: var(--panel2); }
.cm-picker button.on { background: rgba(61, 139, 255, .25); }
.cm-picker .cm-pr { width: auto; padding: 0 12px; font: 700 13px "Figtree", sans-serif; color: var(--text); border-radius: 99px; background: var(--panel2); margin-left: 4px; }
.ch-thread { position: relative; }
.ch-reply { display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 7px 10px; border-radius: 12px 12px 0 0; background: var(--panel2); box-shadow: inset 3px 0 0 #3d8bff; }
.ch-reply[hidden] { display: none; }
.ch-reply > i { font-style: normal; color: #3d8bff; font-size: 18px; }
.ch-rq { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-rq b { font-size: 12.5px; color: #3d8bff; }
.ch-rq span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- @ pings in Chats ---------- */
.cm-at { font-style: normal; font-weight: 800; color: #7fb2ff; }
.cm.me .cm-at { color: #fff; text-decoration: underline; }
.cm-at.me { color: #ffb703; }
.cm.ping .cm-b { box-shadow: inset 3px 0 0 #ffb703; background: color-mix(in srgb, #ffb703 14%, var(--panel2)); }
.ch-sugg { display: flex; flex-direction: column; gap: 1px; margin: 0 12px 6px; padding: 5px; border-radius: 12px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }
.ch-sugg[hidden] { display: none; }
.ch-sugg button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text); text-align: left; padding: 6px 8px; border-radius: 8px; cursor: pointer; font: inherit; }
.ch-sugg button.on, .ch-sugg button:hover { background: color-mix(in srgb, #3d8bff 20%, transparent); }
.ch-sugg img { width: 24px; height: 24px; border-radius: 50%; background: var(--panel); }
.ch-sugg small { color: var(--muted); }

/* ---- the home page's event plaque (js/platform/event.js): JOIN THE EVENT NOW! + REGISTER ---- */
.evb-sec { margin: 22px 0 26px; }
.evb { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 22px 28px; border-radius: 18px; color: #fff;
  background: radial-gradient(circle at 10% 55%, rgba(255, 140, 0, .38), transparent 42%), radial-gradient(circle at 92% 0%, rgba(168, 85, 247, .35), transparent 40%), linear-gradient(120deg, #13071f 0%, #2e0f45 45%, #7c2d12 85%, #c2410c 100%);
  border: 1px solid rgba(255, 160, 60, .35); box-shadow: 0 12px 34px rgba(124, 45, 18, .28); }
.evb.ph-live { background: radial-gradient(circle at 10% 55%, rgba(255, 70, 70, .4), transparent 42%), linear-gradient(120deg, #1a0710 0%, #45101f 50%, #b91c1c 100%); border-color: rgba(255, 90, 90, .45); }
.evb-main { min-width: 0; position: relative; z-index: 1; }
.evb-tag { display: inline-block; font: 800 12px/1.2 "Figtree", sans-serif; letter-spacing: .12em; color: #ffb36b; }
.evb-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; }
.evb-live { display: inline-block; font: 800 12px/1 "Figtree", sans-serif; letter-spacing: .1em; color: #fff; background: #ef4444; padding: 5px 10px; border-radius: 99px; animation: evbBlink 1.2s ease-in-out infinite; }
.evb h2 { margin: 6px 0 6px; font-size: clamp(24px, 3.3vw, 38px); font-weight: 900; letter-spacing: .02em; line-height: 1.02; color: #fff; text-shadow: 0 3px 0 #7c2d12, 0 0 22px rgba(255, 140, 0, .55); }
.evb p { margin: 0 0 12px; color: rgba(255, 255, 255, .84); font-size: 14px; max-width: 560px; }
.evb-cd { display: flex; gap: 8px; flex-wrap: wrap; }
.evb-cd span { display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; padding: 7px 10px 6px; border-radius: 11px; background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .13); }
.evb-cd b { font: 900 24px/1 "Figtree", sans-serif; font-variant-numeric: tabular-nums; }
.evb-cd small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-top: 3px; }
.evb-cd .evb-ends { min-width: 0; flex-direction: row; font: 800 15px/1 "Figtree", sans-serif; padding: 9px 14px; font-variant-numeric: tabular-nums; }
.evb-side { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 180px; position: relative; z-index: 1; text-align: center; }
.evb-reg { font: 900 19px/1 "Figtree", sans-serif; letter-spacing: .08em; padding: 15px 32px; border: 0; border-radius: 13px; cursor: pointer; color: #2a0d00;
  background: linear-gradient(180deg, #ffc46b, #ff7a00); box-shadow: 0 6px 0 #a1450b, 0 0 26px rgba(255, 140, 0, .6); animation: evbPulse 1.8s ease-in-out infinite; transition: transform .08s, box-shadow .08s; }
.evb-reg:hover { filter: brightness(1.07); }
.evb-reg:active { transform: translateY(4px); box-shadow: 0 2px 0 #a1450b, 0 0 18px rgba(255, 140, 0, .5); }
.evb-reg:disabled { opacity: .75; cursor: default; }
.evb-reg.done { background: linear-gradient(180deg, #4ade80, #16a34a); color: #fff; box-shadow: 0 6px 0 #166534; animation: none; }
.evb-reg.pop { animation: evbPop .6s ease-out; }
.evb-note, .evb-n { font-size: 12px; color: rgba(255, 255, 255, .78); }
.evb-note a { color: #ffb36b; cursor: pointer; text-decoration: underline; }
@keyframes evbPulse { 50% { box-shadow: 0 6px 0 #a1450b, 0 0 40px rgba(255, 140, 0, .9); } }
@keyframes evbPop { 35% { transform: scale(1.12); } }
@keyframes evbBlink { 50% { opacity: .55; } }
@media (max-width: 760px) {
  .evb { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 12px; padding: 20px 16px; }
  .evb-cd { justify-content: center; } .evb p { margin-left: auto; margin-right: auto; }
  .evb-cd span { min-width: 52px; } .evb-side { min-width: 0; width: 100%; } .evb-reg { width: 100%; max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) { .evb-reg, .evb-live { animation: none; } }
/* ROBLIX's own chat (api/_chats.js newsTo): event reminders and news; nobody replies there */
.ch-ic.news { background: linear-gradient(135deg, #e2231a, #ff6a3d); color: #fff; }
.ch-ic.news b { display: inline-block; font: 900 1em/1 "Figtree", sans-serif; transform: rotate(-12deg); }
.cm-news b { display: block; font-size: 15px; margin-bottom: 4px; }
.cm-news p { margin: 0 0 6px; line-height: 1.4; }
.cm-news p b { display: inline; font-size: inherit; margin: 0; }
.cm-news .btn { margin-top: 4px; }
#ch-thread [hidden] { display: none !important; }   /* (the ROBLIX chat: no composer, no call / invite buttons) */
.ch-ro { padding: 12px 16px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); background: var(--panel); }

/* Owner panel → Players: Give all / Take all items */
.adm-allrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid #2a2f38; }
.adm-card .ring-sw { color: #e8eaee; font-size: 13px; margin-top: 0; }   /* (the panel's cards are always dark) */
.adm-card small.muted { color: #9aa1ad; }

/* item tags, top-right on an item card (js/engine/avatar.js itemTag): HWLN = Halloween event item, OWNR = owner exclusive */
.item-tag { font-style: normal; font: 900 10.5px/1 "Figtree", sans-serif; letter-spacing: .06em; color: #fff; border-radius: 5px; padding: 3px 6px 3px 7px; white-space: nowrap; vertical-align: middle; }
.item-tag.ev { background: linear-gradient(90deg, #ff8a1f, #c2410c); box-shadow: 0 0 0 1px rgba(255, 170, 80, .55) inset; }
.item-tag.own { background: linear-gradient(90deg, #d10f24, #7a0012); color: #ffd36b; box-shadow: 0 0 0 1px rgba(255, 211, 107, .5) inset; }
.icard .item-tag, .adm-item .item-tag { position: absolute; top: 8px; right: 8px; z-index: 1; }
.adm-item { position: relative; }
.itemm h2 .item-tag { font-size: 12px; position: relative; top: -2px; }

/* the Avatar editor's OWNR ONLY / HWLN ONLY tabs (js/platform/avatar_ui.js), in their tags' colours */
.chip.tab-own { background: linear-gradient(90deg, #d10f24, #7a0012); color: #ffd36b; box-shadow: none; letter-spacing: .04em; font-weight: 900; }
.chip.tab-ev { background: linear-gradient(90deg, #ff8a1f, #c2410c); color: #fff; box-shadow: none; letter-spacing: .04em; font-weight: 900; }
.chip.tab-own.on, .chip.tab-ev.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px currentColor; }

/* a server of one of the game's other places (js/platform/app.js game page) */
.srv-place { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--panel2); border-radius: 999px; padding: 2px 9px; }

/* ---------- Roblox 2022–2026 look (owner asked 2026-10-21): Roblox's own surfaces and blue, bold Builder-Sans-like
   headings (Figtree 800 instead of the rounded Fredoka), 8 px tiles with 👍 % · 👤 playing under the title, the home
   header = your headshot + display name ---------- */
:root { --f-display: "Figtree", "Segoe UI", system-ui, sans-serif; --bg: #f7f7f8; --panel: #ffffff; --panel2: #eceef1; --line: #dcdee3; --text: #121215; --muted: #5b5e66; --blue: #335fff; --play: #00a86b; --r: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #111216; --panel: #1c1d22; --panel2: #27292f; --line: #2d2f36; --text: #f7f7f8; --muted: #a6a9b2; --blue: #4a75ff; --play: #00b06f; } }
:root[data-theme="dark"] { --bg: #111216; --panel: #1c1d22; --panel2: #27292f; --line: #2d2f36; --text: #f7f7f8; --muted: #a6a9b2; --blue: #4a75ff; --play: #00b06f; }
h1 { font: 800 30px/1.15 var(--f-display); letter-spacing: -.01em; }
h2 { font: 800 21px/1.2 var(--f-display); letter-spacing: -.005em; }
.brand { font: 900 21px var(--f-display); letter-spacing: .04em; }
.boot b { font: 900 30px var(--f-display); }
.topbar { background: var(--bg); border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line); }
.tb-nav a { font-size: 15.5px; padding: 8px 12px; }
.tb-search { border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.tb-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--text); }
.sidebar a { font-size: 15.5px; border-radius: 8px; padding: 9px 12px; }
.sidebar a.on { background: var(--panel2); box-shadow: none; }
.btn { border-radius: 8px; }
.btn.primary { background: var(--blue); }
.sec-head h2 { display: inline-flex; align-items: center; gap: 6px; }
.sec-head > a[data-go] { color: var(--text); font-size: 14.5px; }
.sec-head > a[data-go]::after { content: " ›"; font-size: 1.2em; }
/* home header */
.hello { gap: 22px; margin-bottom: 4px; }
.hello-av-link { display: block; border-radius: 50%; text-decoration: none !important; }
.hello-av { width: 116px; height: 116px; background: var(--panel2); box-shadow: none; display: block; }
.hello-av-link[data-go]:hover .hello-av { filter: brightness(1.06); }
.hello-name { min-width: 0; }
.hello h1 { font-size: 34px; font-weight: 800; }
/* tiles */
.gthumb { border-radius: 8px; box-shadow: none; }
.gcard { gap: 5px; }
.gcard:hover .gthumb { transform: none; filter: brightness(1.08); }
.gcard b { font-size: 15.5px; font-weight: 700; margin-top: 3px; }
.gmeta { gap: 12px; font-size: 13.5px; font-weight: 600; }
.gm-rate, .gm-play { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.gm-play i svg { width: 14px; height: 14px; display: block; }
.gmeta em { font-size: 10.5px; }
/* friends row: big round headshots */
.fbub { width: 96px; }
.fbub img { width: 88px; height: 88px; background: var(--panel2); box-shadow: none; }
.fbub i { top: 66px; right: 6px; width: 16px; height: 16px; }
.fbub span { max-width: 96px; font-size: 13.5px; }
@media (max-width: 700px) {
  h1 { font-size: 24px; }
  .hello { gap: 14px; }
  .hello-av { width: 76px; height: 76px; }
  .hello h1 { font-size: 26px; }
  .fbub { width: 78px; } .fbub img { width: 70px; height: 70px; } .fbub i { top: 52px; right: 4px; } .fbub span { max-width: 78px; }
}

/* ROBLOX IN ROBLIX (js/platform/rir.js): its page, your applications, and Owner panel → ROBLOX IN ROBLIX */
.rir-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.rir-hero p { margin: 6px 0 0; max-width: 640px; }
.rir-empty .btn { align-self: flex-start; }
.rir-mine { display: flex; flex-direction: column; gap: 8px; }
.rir-app { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border-radius: 10px; box-shadow: 0 0 0 1px var(--line) inset; }
.rir-app-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rir-app-t a { color: var(--text); font-weight: 700; }
.rir-why { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.rir-st { flex: none; font: 800 11.5px/1 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.rir-st.ok { background: color-mix(in srgb, var(--play) 18%, transparent); color: var(--play); }
.rir-st.no { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.rir-own { display: flex; flex-direction: column; gap: 12px; }
.rir-own .adm-card > b { display: flex; align-items: center; gap: 8px; }
.rir-n { font-style: normal; background: #e2231a; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.rir-arow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; background: #14171c; border-radius: 10px; }
.rir-th { width: 96px; aspect-ratio: 16 / 9; border-radius: 7px; background: #0e1014 center / cover no-repeat; }
.rir-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rir-info a, .rir-drow a { color: #fff; font-weight: 700; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rir-info small, .rir-drow small { color: #9aa1ad; font-size: 12.5px; overflow-wrap: anywhere; }
.rir-info p { margin: 4px 0 0; color: #c9cdd6; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rir-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.adm-body .rir-reason { width: 220px; max-width: 100%; padding: 6px 9px; }
.rir-drow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-width: 0; flex-wrap: wrap; }
.rir-own .rir-st { background: rgba(255, 176, 32, .16); color: #ffb020; }
.rir-own .rir-st.ok { background: rgba(19, 180, 106, .16); color: #2fd68a; }
.rir-own .rir-st.no { background: rgba(255, 90, 90, .14); color: #ff7a7a; }
@media (max-width: 700px) {
  .rir-arow { grid-template-columns: 72px minmax(0, 1fr); }
  .rir-th { width: 72px; }
  .rir-btns { grid-column: 1 / -1; justify-content: flex-start; }
  .rir-app { flex-wrap: wrap; }
}

/* ---------- home like Roblox's (owner 2026-10-22): square game icons, "Title" + arrow headings with an info button ---------- */
.sec-head.rbx { align-items: center; margin-bottom: 10px; gap: 8px; }
.sec-head.rbx .sec-t { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none !important; cursor: pointer; min-width: 0; }
.sec-head.rbx .sec-t:not([data-go]) { cursor: default; }
.sec-head.rbx .sec-t h2 { font: 700 20px/1.2 var(--f-display); }
.sec-head.rbx .sec-t svg { width: 22px; height: 22px; flex: none; transition: transform .15s; }
.sec-head.rbx .sec-t[data-go]:hover svg { transform: translateX(3px); }
.sec-i { margin-left: auto; position: relative; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: var(--text); cursor: help; border-radius: 50%; padding: 0; }
.sec-i svg { width: 20px; height: 20px; }
.sec-i:hover, .sec-i:focus-visible { background: var(--panel2); }
.sec-i[data-tip]:hover::after, .sec-i[data-tip]:focus::after { content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: #191a1f; color: #f7f7f8; font: 500 13px/1.35 var(--f-ui); text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); white-space: normal; }
.grow { grid-auto-columns: 150px; gap: 14px; scrollbar-width: none; padding-bottom: 4px; }
.grow::-webkit-scrollbar { display: none; }
.ggrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; }
.gthumb { aspect-ratio: 1 / 1; border-radius: 8px; }
.gcard { gap: 4px; }
.gcard b { font-size: 15px; font-weight: 500; line-height: 1.3; margin-top: 4px; min-height: 2.6em; }
.gmeta { gap: 14px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.gmeta .up svg, .gm-play i svg { width: 13px; height: 13px; }
.gmeta em { font-size: 10px; }
@media (min-width: 1500px) { .grow { grid-auto-columns: 170px; } .ggrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (max-width: 700px) { .grow { grid-auto-columns: 128px; gap: 10px; } .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gcard b { font-size: 14px; } }

/* ---------- Marketplace 2.0 (js/platform/market.js) ---------- */
.mk-head { align-items: center; }
.mk-cart { position: relative; margin-left: 8px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--panel2); color: var(--text); cursor: pointer; flex: none; }
.mk-cart svg { width: 22px; height: 22px; }
.mk-cart:hover { filter: brightness(1.08); }
.mk-cartn { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; box-sizing: border-box; padding: 0 5px; border-radius: 9px; background: #11891f; color: #fff; font: 800 11px/18px var(--f-ui); font-style: normal; text-align: center; }
.mk-cartn[hidden] { display: none; }
.mk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; }
.mk-q { flex: 1 1 260px; max-width: 420px; margin: 0; }
.mk-sort { height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 14px var(--f-ui); padding: 0 10px; }
.mk-card { text-decoration: none !important; color: var(--text); }
.mk-card .mk-by { display: block; color: var(--muted); font-size: 12.5px; margin-top: -2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-card .price { display: flex; align-items: center; gap: 4px; }
.mk-fav { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-weight: 600; font-size: 12px; }
.mk-fav svg { width: 13px; height: 13px; }
.mk-cartl { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; margin: 8px 0 12px; }
.mk-cartr { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; background: var(--panel2); }
.mk-cartr img { width: 56px; height: 56px; border-radius: 8px; background: var(--panel); object-fit: contain; }
.mk-cartr > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mk-cartr small svg, .mk-carttot svg { width: 14px; height: 14px; vertical-align: -2px; color: #f7b500; }
.mk-carttot { display: flex; justify-content: space-between; align-items: center; font-size: 16px; padding: 6px 2px; border-top: 1px solid var(--line); }

/* ---------- the item page (#item.<id>), like Roblox's ---------- */
.itp { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1040px; }
.itp-left { display: flex; flex-direction: column; gap: 10px; }
.itp-prev { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; background: color-mix(in srgb, var(--text) 7%, var(--panel)); overflow: hidden; }
.itp-prev img, .itp-prev canvas { width: 100%; height: 100%; display: block; object-fit: contain; touch-action: none; }
.itp-pbtns { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.itp-pb { border: 0; border-radius: 8px; padding: 8px 12px; background: color-mix(in srgb, var(--text) 16%, var(--panel)); color: var(--text); font: 600 14px var(--f-ui); cursor: pointer; }
.itp-pb:hover { filter: brightness(1.08); }
.itp-pb.on { background: var(--text); color: var(--bg); }
.itp-fav { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text); font: 500 14px var(--f-ui); cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.itp-fav svg { width: 22px; height: 22px; color: var(--muted); }
.itp-fav.on svg { color: #f7b500; }
.itp-fav:hover { background: var(--panel2); }
.itp-head { display: flex; align-items: flex-start; gap: 12px; }
.itp-head h1 { flex: 1; font: 700 30px/1.15 var(--f-display); overflow-wrap: anywhere; }
.itp-by { margin: 6px 0 14px; font-size: 15px; color: var(--muted); }
.itp-by a { color: var(--text); font-weight: 600; }
.itp-rbx { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.itp-rbx svg { width: 16px; height: 16px; }
.itp-rows { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.itp-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 15px; }
.itp-row > span { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.itp-i svg { width: 16px; height: 16px; color: var(--text); vertical-align: -3px; }
.itp-i { font-style: normal; cursor: help; }
.itp-price { font: 700 20px var(--f-ui); display: flex; align-items: center; gap: 6px; }
.itp-bux svg { width: 20px; height: 20px; color: var(--text); display: block; }
.itp-buys { display: flex; flex-direction: column; gap: 10px; }
.itp-buy, .itp-cartb { width: 100%; min-height: 50px; font-size: 19px; font-weight: 600; border-radius: 8px; }
.itp-buy { background: #11891f; color: #fff; }
.itp-buy.owned { background: var(--panel2); color: var(--muted); opacity: 1; }
.itp-cartb { background: #24262c; color: #fff; }
.itp-desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.itp-confirm { display: flex; gap: 16px; align-items: center; }
.itp-confirm img { width: 110px; height: 110px; border-radius: 10px; background: var(--panel2); object-fit: contain; flex: none; }
.itp-confirm svg { width: 15px; height: 15px; vertical-align: -2px; }
@media (max-width: 860px) { .itp { grid-template-columns: 1fr; } .itp-left { max-width: 460px; width: 100%; } .itp-row { grid-template-columns: 110px minmax(0, 1fr); } .itp-head h1 { font-size: 26px; } }

/* your item's controls (creativity.js manageHtml) */
.itm { margin-top: 22px; padding: 16px; border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset; display: flex; flex-direction: column; gap: 12px; }
.itm-head { display: flex; align-items: center; gap: 10px; }
.itm-head h3 { margin: 0; font-size: 17px; }
.itm-sale { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.itm-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--panel2); cursor: pointer; }
.itm-opt input { margin-top: 3px; accent-color: var(--blue); }
.itm-opt span { display: flex; flex-direction: column; gap: 2px; }
.itm-opt small { color: var(--muted); font-size: 12.5px; }
.itm-opt:has(input:checked) { box-shadow: 0 0 0 2px var(--blue) inset; }
.itm-price input { max-width: 200px; }
.itm-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.itm-give { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.itm-giverow { display: flex; gap: 8px; margin-top: 4px; }
.itm-giverow input { flex: 1; min-width: 0; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 0 10px; font: 500 14px var(--f-ui); }
@media (max-width: 560px) { .itm-sale { grid-template-columns: 1fr; } }

/* ---------- Creativity (#creativity) ---------- */
.cr-hero { margin-bottom: 18px; }
.cr-hero p { margin: 6px 0 0; max-width: 680px; }
.cr-new { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 8px; }
.cr-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.cr-kind:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--blue) inset; }
.cr-ki svg { width: 48px; height: 48px; }
.cr-kind b { font-size: 17px; }
.cr-kind small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.cr-kind em { margin-top: auto; font-style: normal; font-weight: 700; color: var(--blue); padding-top: 6px; }
.cr-sold { margin-left: auto; font-size: 13.5px; }
.cr-card { display: flex; flex-direction: column; gap: 6px; }
.cr-open { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none !important; }
.cr-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.cr-meta svg { width: 13px; height: 13px; }
.cr-st { font-style: normal; font: 800 10.5px/1 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--panel2); color: var(--muted); }
.cr-st.ok { background: color-mix(in srgb, var(--play) 18%, transparent); color: var(--play); }
.cr-edit { align-self: flex-start; }

/* ---------- a profile's "Wearing right now" ---------- */
.cw-box { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; background: var(--panel); border-radius: 12px; padding: 14px; box-shadow: 0 0 0 1px var(--line) inset; }
.cw-av { border-radius: 10px; background: color-mix(in srgb, var(--text) 6%, var(--panel)); display: grid; place-items: center; aspect-ratio: 1 / 1; }
.cw-av img { width: 100%; height: 100%; object-fit: contain; }
.cw-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; align-content: start; }
.cw-item { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none !important; font-size: 13.5px; font-weight: 500; }
.cw-th { aspect-ratio: 1 / 1; border-radius: 8px; background: color-mix(in srgb, var(--text) 6%, var(--panel)); display: grid; place-items: center; overflow: hidden; }
.cw-th img { width: 100%; height: 100%; object-fit: contain; }
.cw-item span:last-child { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cw-item:hover .cw-th { filter: brightness(1.08); }
@media (max-width: 700px) { .cw-box { grid-template-columns: 1fr; } .cw-av { max-width: 260px; margin: 0 auto; width: 100%; } .cw-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* (the row headings: no old "See all ›" arrow, title on the left) */
.sec-head.rbx > a.sec-t { margin-left: 0; font-size: inherit; }
.sec-head.rbx > a.sec-t::after { content: none; }
/* Marketplace cards: the price row says Owned / Exclusive / Code only in words, not as a corner badge */
.icard .price em { position: static; background: none; padding: 0; border-radius: 0; font: 700 13px var(--f-ui); }
.icard .price .owned { color: var(--play); } .icard .price .excl { color: #d10f24; } .icard .price .promo { color: var(--warn); }
.mk-bal svg, .itp-row .muted svg { width: 14px; height: 14px; vertical-align: -2px; color: #f7b500; }

/* Owner panel → Games: rename any game */
.og-list { display: flex; flex-direction: column; gap: 6px; }
.og-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; background: #1a1d23; box-shadow: 0 0 0 1px #242931 inset; }
.og-th { width: 56px; height: 56px; border-radius: 8px; background: #0e1014 center / cover no-repeat; }
.og-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.og-info b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-info small { color: #9aa1ad; font-size: 12.5px; }
.og-acts { display: flex; gap: 6px; }
.adm-body .og-name { width: 100%; max-width: 360px; }
@media (max-width: 600px) { .og-row { grid-template-columns: 48px minmax(0, 1fr); } .og-th { width: 48px; height: 48px; } .og-acts { grid-column: 1 / -1; } }


/* ---------- scrollbars everywhere (owner 2026-10-22: no browser scrollbar with arrows — our own, or none) ----------
   Chrome / Edge / Safari: a thin rounded thumb on nothing, no arrow buttons; it gets stronger when you point at it.
   (Don't put scrollbar-width: thin / scrollbar-color on elements: in Chrome they bring the browser's own bar back.)
   Firefox: its own thin bar in the same colours. */
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner, ::-webkit-scrollbar-track-piece { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { background-color: rgba(128, 133, 146, .38); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; min-height: 36px; min-width: 36px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(128, 133, 146, .62); }
::-webkit-scrollbar-thumb:active { background-color: rgba(128, 133, 146, .8); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(128, 133, 146, .5) transparent; } }
/* in a game: the chat's bar is invisible until you point at the chat (Roblox's chat has none) */
.rx-core .rx-chat-log::-webkit-scrollbar { width: 6px; }
.rx-core .rx-chat-log::-webkit-scrollbar-thumb { background-color: transparent; border: 1px solid transparent; }
.rx-core .rx-chat-log:hover::-webkit-scrollbar-thumb, .rx-core .rx-chat.active .rx-chat-log::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .35); }
.rx-core .rx-chat-log::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .55); }
@supports not selector(::-webkit-scrollbar) { .rx-chat-log { scrollbar-width: none; } }
/* the game's other overlays (people list, menus): a light thumb on the dark glass */
.rx-core ::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .25); }
.rx-core ::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .45); }
