
  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body { background: #232527; }
  body {
    font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
    color: #fff;
    display: flex;
    justify-content: center;
  }
  .phone {
    width: 100%;
    max-width: 390px;
    min-height: 100vh;
    background: #121217;
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
  }

  /* ---------- Top bar ---------- */
  .topbar {
    height: 65px; background: #232527;
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .topbar h1 { font-size: 25px; font-weight: 700; letter-spacing: .3px; }
  .x {
    position: absolute; left: 24px; top: 21px; width: 28px; height: 28px;
    background: none; border: 0; cursor: pointer; display: grid; place-items: center;
  }
  .x svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }

  /* ---------- Search ---------- */
  .search { height: 41px; padding: 0 15px; display: flex; align-items: center; gap: 8px; }
  .search input {
    flex: 1; min-width: 0; height: 30px; border-radius: 15px; border: 0; outline: 0;
    background: #25262b; color: #fff; padding: 0 14px;
    font-family: inherit; font-size: 14px; letter-spacing: .3px;
  }
  .search input::placeholder { color: #7f828a; }
  .search button {
    height: 30px; padding: 0 14px; border: 0; border-radius: 15px; cursor: pointer;
    background: #3a8030; color: #fff; font-family: inherit; font-weight: 700; font-size: 13px;
  }
  .search button:disabled { opacity: .6; cursor: default; }

  /* ---------- Avatar card ---------- */
  .card {
    margin: 40px 15px 0; height: 300px; border-radius: 14px; background: #25262b;
    position: relative; overflow: hidden;
  }
  #avatarImg {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: 300px; height: 300px; object-fit: contain;
    opacity: 0; transition: opacity .3s;
  }
  #avatarImg.show { opacity: 1; }
  .hint {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
    color: #8b8e95; font-size: 14px; padding: 0 50px; line-height: 1.4;
  }
  .hint.hide { display: none; }
  .btn3d {
    position: absolute; top: 12px; right: 12px; width: 43px; height: 48px;
    border: 0; border-radius: 12px; background: #3b3d46; color: #fff;
    font-family: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
  }

  /* ---------- Identity ---------- */
  .identity { position: relative; height: 83px; }
  .pfp {
    position: absolute; left: 16px; top: -21px; width: 87px; height: 87px; border-radius: 50%;
    background: #1c1d22; border: 4px solid #2c2d32;
  }
  .pfp .inner { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
  .pfp img { width: 100%; height: 100%; object-fit: cover; display: none; }
  .pfp img.show { display: block; }
  .pfp img.crop { transform: scale(2.6); transform-origin: 50% 15%; }
  .dot {
    position: absolute; right: 1px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%;
    background: #6f9bf7; display: none;
  }
  .dot.show { display: block; }
  .names { position: absolute; left: 115px; right: 12px; top: 1px; }
  .display { display: flex; align-items: center; gap: 3px; font-size: 27px; font-weight: 600; line-height: 30px; letter-spacing: .4px; color: #eceef1; }
  .display span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .badge { width: 20px; height: 20px; flex: none; display: none; object-fit: contain; }
  .badge.show { display: block; }
  .plus-badge { filter: brightness(0) invert(1); }
  .handle { font-size: 15px; line-height: 18px; margin-top: 1px; color: #d2d4d9; letter-spacing: .5px; }

  /* ---------- Stats ---------- */
  .stats { display: flex; gap: 9px; padding: 0 15px; }
  .pill {
    background: #25262b; border-radius: 20px; height: 32px; padding: 0 12px; white-space: nowrap;
    display: flex; align-items: center; font-size: 15.5px; font-weight: 600; color: #f4f5f7; letter-spacing: .3px;
  }
  .pill.dim { color: #8a8d94; }

  /* ---------- Bio ---------- */
  .bio { padding: 0 15px; margin-top: 16px; font-size: 16px; line-height: 20px; letter-spacing: .4px; }
  .bio .text { white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .bio.open .text { -webkit-line-clamp: unset; display: block; }
  .bio .more { display: inline-block; text-decoration: underline; cursor: pointer; }

  /* ---------- Buttons ---------- */
  .actions { display: flex; gap: 8px; padding: 0 15px; margin-top: 15px; }
  .abtn {
    height: 40px; border: 0; border-radius: 10px; background: #25262b; color: #fff; cursor: pointer;
    font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: .5px;
  }
  .abtn.wide { flex: 1; }
  .abtn.dots { width: 40px; display: grid; place-items: center; }
  .abtn.dots i { display: block; width: 4.5px; height: 4.5px; border-radius: 50%; background: #fff; box-shadow: -7px 0 #fff, 7px 0 #fff; }

  /* ---------- Tabs ---------- */
  .tabs { margin: 24px 15px 0; position: relative; display: flex; }
  .tabs::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #34353a; }
  .tab {
    text-align: center; font-size: 17px; line-height: 30px; padding-bottom: 10px; letter-spacing: .5px; color: #a1a4ab;
    border-bottom: 2px solid transparent; position: relative; z-index: 1; cursor: default; font-weight: 600;
  }
  .tab.active { color: #fff; border-color: #fff; flex: 0 0 168px; }
  .tab.rest { flex: 1; }

  /* ---------- Currently wearing ---------- */
  h2 { font-size: 23px; font-weight: 600; padding: 0 32px; margin-top: 21px; line-height: 28px; letter-spacing: .5px; }
  .items { display: flex; gap: 12px; padding: 0 31px; margin-top: 13px; overflow-x: auto; scrollbar-width: none; min-height: 160px; }
  .items::-webkit-scrollbar { display: none; }
  .item { flex: 0 0 93px; width: 93px; color: inherit; text-decoration: none; }
  .thumb { width: 93px; height: 93px; border-radius: 10px; background: #2b2c32; overflow: hidden; }
  .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .thumb.skeleton { animation: pulse 1.2s infinite ease-in-out; }
  @keyframes pulse { 50% { background: #35373e; } }
  .name { font-size: 14px; font-weight: 600; margin-top: 9px; line-height: 18px; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .price { display: inline-flex; align-items: center; justify-content: flex-start; gap: 0; width: max-content; max-width: 100%; margin-top: 5px; font-size: 15px; color: #cfd1d6; font-weight: 600; min-height: 20px; white-space: nowrap; }
  .robux {
    --s: 14px; /* compact Robux icon, aligned closely with the displayed price */
    width: var(--s);
    height: var(--s);
    margin-right: -2px;
    flex: none;
    display: block;
    overflow: hidden;
    background-image: url("https://images.rbxcdn.com/3a9b44283e65ae1ead90defcb0bdcb6e-economy_28x28_dark.svg");
    background-repeat: no-repeat;
    background-size: calc(var(--s) * 2) calc(var(--s) * 2);
    background-position: calc(var(--s) * -1) 0;
  }
  .empty { color: #8b8e95; font-size: 14px; padding-top: 14px; }

  /* ---------- Settings / load-user sheet ---------- */
  .sheet-backdrop {
    position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.58);
    opacity: 0; pointer-events: none; transition: opacity .18s ease;
  }
  .sheet-backdrop.open { opacity: 1; pointer-events: auto; }
  .settings-sheet {
    position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 105%);
    width: min(390px, 100%); max-height: 88vh; overflow-y: auto; scrollbar-width: none;
    background: #17181d; border-radius: 20px 20px 0 0; padding: 10px 15px 24px;
    transition: transform .22s ease;
  }
  .settings-sheet::-webkit-scrollbar { display: none; }
  .sheet-backdrop.open .settings-sheet { transform: translate(-50%, 0); }
  .sheet-grab { width: 42px; height: 4px; border-radius: 4px; background: #45464d; margin: 2px auto 15px; }
  .sheet-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
  .sheet-section { margin-top: 18px; }
  .sheet-section h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: #8d9098; margin: 0 3px 8px; }
  .load-form { display: flex; gap: 8px; }
  .load-form input {
    flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; border-radius: 11px;
    background: #25262b; color: #fff; padding: 0 13px; font: inherit; font-size: 14px;
  }
  .load-form button { height: 42px; border: 0; border-radius: 11px; padding: 0 16px; background: #3a8030; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
  .setting-row {
    min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 3px; border-bottom: 1px solid #292a30;
  }
  .setting-row:last-child { border-bottom: 0; }
  .setting-label { font-size: 15px; font-weight: 600; }
  .setting-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .setting-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #2a2b31; }
  .setting-icon img { width: 20px; height: 20px; object-fit: contain; display: block; }
  .setting-sub { display: block; font-size: 12px; color: #858890; font-weight: 400; margin-top: 2px; }
  .toggle { position: relative; width: 43px; height: 25px; flex: none; }
  .toggle input { opacity: 0; width: 0; height: 0; }
  .toggle-track { position: absolute; inset: 0; border-radius: 20px; background: #393a40; cursor: pointer; transition: .18s; }
  .toggle-track::after { content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .18s; }
  .toggle input:checked + .toggle-track { background: var(--accent, #3a8030); }
  .toggle input:checked + .toggle-track::after { transform: translateX(18px); }
  .color-row { display: flex; gap: 8px; align-items: center; }
  .color-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
  .color-dot.selected { border-color: #fff; box-shadow: 0 0 0 2px #17181d; }
  .color-input { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
  .badge-picker { max-height: 250px; overflow-y: auto; scrollbar-width: none; background: #202126; border-radius: 12px; padding: 4px 10px; }
  .badge-picker::-webkit-scrollbar { display: none; }
  .badge-row { min-height: 50px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #2d2e34; }
  .badge-row:last-child { border-bottom: 0; }
  .badge-row img { width: 34px; height: 34px; object-fit: contain; border-radius: 7px; }
  .badge-row span { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .badge-empty { color: #858890; font-size: 13px; padding: 12px 2px; }
  .sheet-actions { display: flex; gap: 8px; margin-top: 18px; }
  .sheet-action { flex: 1; height: 42px; border: 0; border-radius: 11px; background: #25262b; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
  .sheet-action.primary { background: var(--accent, #3a8030); }
  .sheet-note { color: #777a82; font-size: 11px; line-height: 15px; margin-top: 8px; }

  .roblox-badges { padding: 0 31px; margin-top: 20px; display: none; }
  .roblox-badges.show { display: block; }
  .roblox-badges h2 { padding: 0; margin: 0 0 12px; }
  .badge-list { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 3px; }
  .badge-list::-webkit-scrollbar { display: none; }
  .roblox-badge { flex: 0 0 72px; text-align: center; }
  .roblox-badge img { width: 58px; height: 58px; object-fit: contain; display: block; margin: 0 auto 6px; }
  .roblox-badge span { display: block; font-size: 11px; line-height: 14px; color: #d2d4d9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .toast {
    position: fixed; left: 50%; transform: translateX(-50%); top: 76px; z-index: 80;
    width: min(360px, calc(100% - 30px));
    background: rgba(170,45,45,.95); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; display: none;
  }
  .toast.show { display: block; }

  /* ---------- Edit profile text / avatar items ---------- */
  .ov { display: block; margin-bottom: 10px; }
  .ov span { display: block; font-size: 12px; color: #858890; margin: 0 3px 4px; }
  .ov input { width: 100%; height: 40px; border: 0; outline: 0; border-radius: 11px; background: #25262b; color: #fff; padding: 0 13px; font: inherit; font-size: 14px; }
  .mini { height: 30px; border: 0; border-radius: 8px; padding: 0 12px; background: #3a3b42; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

/* Reference-inspired Roblox mobile profile + avatar editor */
.profile-extra { padding: 0 15px; margin-top: 22px; }
.section-head { display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 0; }
.section-head h2 { padding:0;margin:0;font-size:21px; }
.section-link { color:#f5f5f5;background:none;border:0;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer; }
.friend-row { display:flex;gap:15px;overflow-x:auto;padding:14px 0 4px;scrollbar-width:none; }
.friend-row::-webkit-scrollbar {display:none}
.friend-card { flex:0 0 66px;text-align:center;font-size:11px;color:#d7d7db;overflow:hidden;cursor:pointer; }
.friend-avatar { width:58px;height:58px;border-radius:50%;position:relative;overflow:hidden;background:#292a30;display:grid;place-items:center;margin:0 auto 7px; }
.friend-avatar .friend-initial { width:100%;height:100%;display:grid;place-items:center;color:#dfe2e8;font-size:20px;font-weight:700;background:linear-gradient(145deg,#34363e,#24252b); }
.friend-avatar img { position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover;display:none;margin:0; }
.friend-avatar img.ready {display:block}
.friend-avatar.has-image .friend-initial {display:none}
.friend-card span {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.community-chip { display:inline-flex;align-items:center;gap:8px;background:#25262b;border-radius:10px;padding:9px 12px;margin:10px 6px 0 0;font-size:12px;font-weight:700; }
.community-chip b {background:#3a8030;border-radius:5px;padding:3px 6px;font-size:10px}
.community-card{display:flex;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid #25262b;color:#f4f5f7}.community-card:last-child{border-bottom:0}.community-card img,.community-icon{width:58px;height:58px;flex:none;border-radius:9px;background:#24252b;object-fit:cover}.community-icon{display:grid;place-items:center;font-size:21px;font-weight:800;color:#cfd1d6}.community-info{min-width:0;flex:1}.community-name{font-size:14px;font-weight:700;line-height:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.community-meta{font-size:11px;color:#a5a7ae;margin-top:4px}.community-role{font-size:10px;color:#d9dbe0;margin-top:2px}
.profile-footer {padding:18px 15px 0}
.profile-footer button {width:100%;height:40px;border:1px solid #62636b;background:transparent;color:#fff;border-radius:9px;font-family:inherit;font-size:14px;font-weight:600}
.editor-backdrop {position:fixed;inset:0;z-index:80;background:#101014;display:none;color:#fff;overflow:auto}
.editor-backdrop.open {display:block}
.editor-shell {width:min(100%,520px);min-height:100dvh;margin:auto;background:#141419;display:flex;flex-direction:column}
.editor-top {height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #292a30;position:sticky;top:0;background:#141419;z-index:3}
.editor-top button,.editor-top strong {border:0;background:none;color:#fff;font-family:inherit;font-size:14px;font-weight:600}
.editor-preview {height:43vh;min-height:260px;max-height:440px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#737982 0,#343941 40%,#18191e 78%);display:grid;place-items:center}
.editor-preview::after {content:"";position:absolute;bottom:18%;left:0;right:0;height:1px;background:#a6abb2;opacity:.25}
.editor-preview img {height:96%;max-width:90%;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 15px 15px #0008)}
.editor-preview .preview-close {position:absolute;z-index:2;top:14px;left:14px;border:0;border-radius:50%;width:34px;height:34px;background:#202126;color:#fff;font-size:20px}
.editor-preview .preview-rotate {position:absolute;z-index:2;right:14px;bottom:14px;border:0;border-radius:9px;background:#272930;color:#fff;padding:10px 12px}
.editor-tabs {display:flex;gap:20px;overflow-x:auto;padding:15px 16px 0;border-bottom:1px solid #303137;scrollbar-width:none}
.editor-tab {background:none;border:0;color:#a8a9af;padding:0 0 12px;white-space:nowrap;font-family:inherit;font-size:13px;font-weight:600;border-bottom:2px solid transparent}
.editor-tab.active {color:#fff;border-color:#fff}
.editor-content {padding:16px;flex:1}
.editor-subtitle {font-size:14px;font-weight:700;margin:0 0 12px}
.editor-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.editor-tile {border:1px solid #35363d;border-radius:10px;background:#23242a;min-height:88px;color:#fff;padding:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer}
.editor-tile img {width:54px;height:54px;object-fit:cover;border-radius:8px}
.editor-tile.selected {border:2px solid #fff;background:#303139}
.editor-empty {font-size:12px;color:#999ca4;line-height:1.5;padding:8px 0 16px}
.editor-bottom {position:sticky;bottom:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#17181d;border-top:1px solid #2b2c32;display:flex;gap:9px}
.editor-bottom button {height:43px;border:0;border-radius:9px;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.editor-bottom .secondary {flex:1;background:#292a30;color:#fff}
.editor-bottom .primary {flex:1;background:#335fff;color:#fff}
@media(min-width:600px){.editor-backdrop{background:#000b}.editor-shell{box-shadow:0 0 50px #0008}}



/* Accurate Roblox-style wordmark and persistent four-tab navigation */
.roblox-wordmark{gap:7px;font-size:20px;font-weight:950;letter-spacing:-1.05px;line-height:1;color:#f7f7f8}
.roblox-mark{width:29px;height:29px;display:block;flex:none}
.home-top{justify-content:flex-start;gap:14px}
.home-tools{margin-left:auto}
.bottom-nav{position:absolute;z-index:200;bottom:0;left:0;right:0;transform:none;width:100%;height:calc(62px + env(safe-area-inset-bottom));padding:0 0 env(safe-area-inset-bottom);box-sizing:border-box;background:#111114;flex:none}
.bottom-nav-item svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-screen,.profile-content,.utility-page{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.home-screen{min-height:100dvh;height:100dvh}
.profile-content{min-height:100dvh}
.utility-page{min-height:100dvh;background:#121217;color:#f7f7f8}
.drawer-backdrop{position:fixed;inset:0;z-index:110;background:rgba(0,0,0,.62);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s,visibility .18s}
.drawer-backdrop.open{opacity:1;visibility:visible;pointer-events:auto}
.drawer-panel{position:absolute;left:max(calc((100vw - 390px)/2),0px);top:0;bottom:0;width:min(270px,calc(100vw - 48px));overflow-y:auto;overscroll-behavior:contain;background:#111115;color:#f5f5f7;padding:18px 12px max(20px,env(safe-area-inset-bottom));transform:translateX(-102%);transition:transform .2s ease;box-shadow:12px 0 35px #0006}
.drawer-backdrop.open .drawer-panel{transform:translateX(0)}
.drawer-profile{display:flex;align-items:center;gap:10px;padding:6px 5px 14px;border-bottom:1px solid #292a30;margin-bottom:10px;cursor:pointer}.drawer-profile:active{opacity:.78}.drawer-profile #drawerClose{cursor:pointer;flex:none}
.drawer-profile img{width:40px;height:40px;object-fit:cover;border-radius:50%;background:#292a30}
.drawer-profile-copy{min-width:0;flex:1}.drawer-profile-copy strong,.drawer-profile-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer-profile-copy strong{font-size:13px}.drawer-profile-copy small{font-size:11px;color:#a5a7ae;margin-top:3px}
.drawer-balance{display:flex;align-items:center;gap:8px;padding:10px 8px;background:#17181d;border:1px solid #24252b;border-radius:9px;margin-bottom:10px;font-size:13px;font-weight:700}.drawer-balance .robux{--s:15px}.drawer-balance button{margin-left:auto;border:0;background:#292a30;color:#fff;border-radius:7px;padding:7px 9px;font-size:10px;font-weight:700}
.drawer-list{display:flex;flex-direction:column;gap:2px}.drawer-list button{height:36px;display:flex;align-items:center;gap:10px;padding:0 7px;border:0;border-radius:7px;background:transparent;color:#e6e7ea;text-align:left;font-family:inherit;font-size:12px;font-weight:500}.drawer-list button:active,.drawer-list button:hover{background:#25262b}.drawer-list button span:first-child{width:18px;text-align:center;font-size:15px;color:#c6c8cf}.drawer-list .drawer-separator{height:1px;background:#292a30;margin:8px 2px}.drawer-actions{display:grid;gap:8px;margin-top:14px}.drawer-actions button{height:36px;border:0;border-radius:7px;background:#25262b;color:#f4f4f6;font-family:inherit;font-size:12px;font-weight:500}.drawer-actions .logout{background:#351e22;color:#f3b6bc}.drawer-legal{display:flex;justify-content:center;gap:18px;margin-top:16px}.drawer-legal button{border:0;background:none;color:#9b9da5;font-size:10px}
.home-screen.hidden,.profile-content.hidden,.utility-page.hidden{display:none!important}
html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0}
.phone{height:100dvh;min-height:0;overflow:hidden;position:relative}
.home-screen{height:100%;min-height:0;overflow:hidden}
.home-scroll{min-height:0}
.profile-content{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none}
.profile-content::-webkit-scrollbar,.home-scroll::-webkit-scrollbar{display:none;width:0;height:0}
.phone{width:100%;max-width:390px;margin:0 auto}
@media(min-width:600px){body{display:flex;justify-content:center}.phone{width:min(100%,390px);margin:0 auto}.profile-content,.home-screen,.utility-page{width:100%;max-width:390px}}
.utility-header{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid #292a30}
.utility-header h1{font-size:22px;font-weight:800}.utility-header button{border:0;background:none;color:#fff;font-size:27px;padding:6px}
.utility-content{padding:20px 14px}.utility-content h2{font-size:19px;margin-bottom:7px}.utility-muted{color:#a5a7ae;font-size:13px;margin-bottom:17px}.utility-subhead{margin-top:25px}
.chart-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.chart-categories button{background:#25262b;color:#fff;border:1px solid #3a3b42;border-radius:9px;padding:15px;text-align:left;font-family:inherit;font-size:14px;font-weight:600}
.chat-empty{min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px}.chat-symbol{width:64px;height:64px;border-radius:50%;background:#25262b;display:grid;place-items:center;font-size:27px;margin-bottom:18px}.chat-empty h2{font-size:20px;margin-bottom:8px}.chat-empty p{color:#a5a7ae;font-size:14px;line-height:1.5;max-width:270px}.chat-empty button{margin-top:20px;background:#fff;color:#111;border:0;border-radius:8px;padding:11px 18px;font-weight:800}
#homeUser{cursor:pointer}
#homeUser:active,.bottom-nav-item:active{opacity:.72}
@media(min-width:600px){.bottom-nav{border-left:1px solid #292a30;border-right:1px solid #292a30}}

/* Home-first mobile layout */
.home-screen{height:100dvh;min-height:100vh;display:flex;flex-direction:column;background:#111114;color:#f7f7f8}
.home-top{height:56px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid #24252a;background:#111114}
.home-top button{border:0;background:none;color:#f7f7f8;font-size:24px;min-width:32px;height:40px;display:grid;place-items:center}.home-top button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.home-menu svg{width:22px;height:22px}.roblox-wordmark{font-size:22px;font-weight:1000;letter-spacing:-1.2px;display:flex;align-items:center;gap:7px}.rbx-diamond{font-size:25px;transform:rotate(12deg)}.home-tools{display:flex;gap:7px}.home-tools button{font-size:22px}
.home-scroll{flex:1;overflow-y:auto;padding-bottom:12px;overscroll-behavior:contain}.home-user{width:100%;display:flex;align-items:center;gap:11px;padding:14px 16px;border:0;background:none;color:#fff;text-align:left;font-family:inherit;font-size:15px;font-weight:600}.home-user img{width:38px;height:38px;border-radius:50%;background:#292a30;object-fit:cover}.home-user-names{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.15}.home-name-line{display:flex;align-items:center;gap:3px;min-width:0}.home-user-names strong{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-user-names small{font-size:10px;font-weight:500;color:#a5a7ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-verified-badge{width:12px!important;height:12px!important;flex:0 0 12px;object-fit:contain;display:block;border-radius:0!important}.home-user-arrow{margin-left:auto;font-size:25px;color:#a5a6ac}
.quick-friends{display:flex;gap:17px;overflow-x:auto;padding:5px 16px 18px;scrollbar-width:none}.quick-friend{flex:0 0 61px;border:0;background:none;color:#f4f4f6;display:flex;flex-direction:column;align-items:center;gap:6px}.quick-friend small{font-size:10px;white-space:nowrap}.quick-circle{width:53px;height:53px;border-radius:50%;background:#30323a;display:grid;place-items:center;font-size:21px;font-weight:700;overflow:hidden}.add-circle{border:1px dashed #777b86;background:#1b1c20;font-size:25px}.friend-blue{background:#294c7a}.friend-white{background:#eee;color:#292a30}.friend-dark{background:#4b3d65}
.home-section{padding:4px 14px 17px}.home-section h2{font-size:18px;padding:0;margin:0 0 11px;line-height:25px;display:flex;align-items:center;justify-content:space-between;letter-spacing:0}.section-link{border:0;background:none;color:#b9bbc2;font-size:12px;font-weight:600}
.game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 11px}.game-card{min-width:0;border:0;background:none;color:#f5f5f6;text-align:left;font:inherit;padding:0;overflow:hidden}.game-card img{width:100%;aspect-ratio:1.45;display:block;object-fit:cover;border-radius:9px;background:linear-gradient(135deg,#292b33,#464955)}.game-name{font-size:12px;font-weight:700;line-height:16px;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-rating{font-size:10px;color:#a8aab1;margin-top:3px}.continue-row{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none}.continue-row::-webkit-scrollbar{display:none}.continue-row .game-card{flex:0 0 112px}.continue-row .game-card img{aspect-ratio:1}
.bottom-nav{height:calc(62px + env(safe-area-inset-bottom));flex:none;display:flex;align-items:stretch;justify-content:space-around;background:#111114;border-top:1px solid #292a30;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav-item{flex:1;border:0;background:none;color:#a3a5ac;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.bottom-nav-item span{font-size:22px;line-height:24px}.bottom-nav-item small{font-size:10px}.bottom-nav-item.active{color:#fff}
.profile-content{background:#121217;min-height:100vh}.profile-content.hidden{display:none!important}.home-toast{position:absolute;z-index:120;top:62px;left:12px;right:12px;background:#303139;padding:12px;border-radius:9px;font-size:13px;display:none}.home-toast.show{display:block}
@media(min-width:600px){.home-screen{max-width:390px;margin:0 auto}.profile-content{max-width:390px;margin:0 auto}}@media(max-width:360px){.quick-friends{gap:12px}.home-top{padding:0 10px}.home-section{padding-left:10px;padding-right:10px}}


/* Profile-only fixes: the main app tabs are not part of the Roblox profile view. */
.phone.profile-open .bottom-nav{display:none!important}



/* Prevent horizontal page movement on Profile while preserving horizontal item/friend carousels. */
html, body { overflow-x: hidden !important; }
.phone, #profileScreen, .profile-content { max-width: 100%; overflow-x: clip !important; }
#profileScreen { width: 100%; box-sizing: border-box; }
.profile-content > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
