
:root{
  --bg:#f6f7fb;
  --surface:#ffffff;
  --surface-soft:#fbfbfe;
  --line:#e7e9f1;
  --line-strong:#dce0e9;
  --text:#202534;
  --muted:#727d8d;
  --muted-2:#929cab;
  --purple:#6f4cf5;
  --purple-2:#835af6;
  --purple-soft:#f0ecff;
  --amber:#f4a71d;
  --amber-soft:#fff4df;
  --green:#1fac68;
  --blue:#4d88ec;
  --pink:#dc67ae;
  --shadow:0 10px 30px rgba(43,49,76,.065);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0}
html,body,button,input,select,textarea{font-family:"Noto Sans Thai",sans-serif}
body{
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-size:16px;
  font-weight:400;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-size:15px}
h1,h2,h3,h4,h5,h6{font-weight:600;letter-spacing:-.02em}
strong,b{font-weight:600}

/* shell */
.community-shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}
.left-sidebar{
  position:sticky;top:0;height:100vh;
  padding:18px 14px;
  display:flex;flex-direction:column;justify-content:space-between;
  background:#fff;border-right:1px solid var(--line)
}
.brand{height:64px;display:flex;align-items:center;gap:10px;padding:5px 8px 13px}
.brand img{max-width:178px;max-height:48px;object-fit:contain}
.brand-mark{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background:#171c28;color:#fff;border:3px solid var(--amber);
  font-size:20px;font-weight:700
}
.brand-copy{display:flex;flex-direction:column;line-height:1.05}
.brand-copy strong{font-size:19px;font-weight:700}
.brand-copy strong span{color:var(--amber)}
.brand-copy small{font-size:10px;color:var(--muted-2);margin-top:5px}

.main-nav{display:grid;gap:6px;margin-top:8px}
.main-nav a{
  min-height:47px;
  display:flex;align-items:center;gap:11px;
  padding:0 12px;border-radius:12px;
  color:#3c4554;font-size:14px;font-weight:500;
  transition:.18s ease
}
.main-nav a:hover{background:#f7f7fb}
.main-nav a.active{background:var(--purple-soft);color:var(--purple)}
.nav-icon{
  width:29px;height:29px;border-radius:9px;
  display:grid;place-items:center;background:#f7f8fb;
  color:#4a5363;font-size:11px
}
.main-nav a.active .nav-icon{background:#e7e0ff;color:var(--purple)}

.sidebar-bottom{display:grid;gap:10px}
.robux-side-cta{
  min-height:45px;display:flex;align-items:center;justify-content:center;gap:7px;
  border-radius:12px;background:linear-gradient(135deg,var(--purple),var(--purple-2));
  color:#fff;font-size:13px;font-weight:600;box-shadow:0 8px 20px rgba(111,76,245,.17)
}
.login-side-card{
  display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center;
  padding:10px;border:1px solid var(--line);border-radius:13px;background:#fff
}
.login-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#f0f2f7;color:#5a6472;font-size:12px}
.login-side-card strong{display:block;font-size:12px}
.login-side-card small{display:block;font-size:10px;color:var(--muted-2);margin-top:1px}

.site-main{min-width:0}
.topbar{
  height:72px;display:flex;align-items:center;gap:14px;
  padding:0 24px;position:sticky;top:0;z-index:70;
  background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);
  backdrop-filter:blur(16px)
}
.menu-toggle{
  display:none;width:42px;height:42px;border-radius:11px;
  border:1px solid var(--line);background:#fff;color:#333
}
.top-search{
  flex:1;max-width:590px;height:44px;
  display:flex;align-items:center;gap:10px;
  padding:0 15px;border-radius:23px;
  border:1px solid var(--line-strong);background:#fff
}
.top-search>span{color:#7b8595;font-size:16px}
.top-search input{width:100%;border:0;outline:0;color:#303746;background:transparent;font-size:14px}
.top-search input::placeholder{color:#9aa3b2}

.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.create-post{
  min-height:42px;display:flex;align-items:center;gap:5px;
  padding:0 17px;border-radius:21px;
  background:linear-gradient(135deg,var(--purple),#884ff5);
  color:#fff;font-size:13px;font-weight:600
}
.top-icon{
  width:41px;height:41px;border-radius:50%;display:grid;place-items:center;
  border:1px solid var(--line);background:#fff;color:#606979
}
.account-chip{
  min-height:44px;display:flex;align-items:center;gap:9px;
  padding:4px 11px 4px 4px;border-radius:22px;background:#fff
}
.account-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#22283a;color:#fff;font-size:11px}
.account-copy{display:flex;flex-direction:column;line-height:1.15}
.account-copy strong{font-size:11px}
.account-copy small{font-size:9px;color:var(--muted-2);margin-top:2px}

.page-content{width:100%;max-width:1420px;margin:0 auto;padding:22px 24px 44px}

/* homepage */
.home-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px}
.home-center{min-width:0;display:grid;gap:18px}
.right-rail{display:grid;align-content:start;gap:18px}

.hero-slider{
  position:relative;overflow:hidden;
  border-radius:20px;background:#e7e9ff;box-shadow:var(--shadow)
}
.slides{display:flex;transition:transform .72s cubic-bezier(.2,.8,.2,1)}
.slide{position:relative;min-width:100%;height:360px;overflow:hidden}
.slide>img{width:100%;height:100%;object-fit:cover;display:block}
.banner-click-layer{position:absolute;inset:0;z-index:2}
.hero-overlay{
  position:absolute;inset:0;z-index:3;
  background:linear-gradient(90deg,rgba(250,251,255,.96),rgba(250,251,255,.70) 43%,rgba(250,251,255,.02) 74%)
}
.hero-no-banner{
  background:
    radial-gradient(circle at 77% 42%,rgba(111,76,245,.20),transparent 22%),
    radial-gradient(circle at 89% 72%,rgba(244,167,29,.20),transparent 18%),
    linear-gradient(135deg,#e8e9ff,#f5eefe 58%,#fff4df)
}
.hero-shapes{position:absolute;right:8%;top:50%;transform:translateY(-50%);width:300px;height:240px}
.hero-shapes span{position:absolute;border-radius:38% 62% 60% 40%;background:linear-gradient(145deg,#8d69fb,#6844ef);opacity:.9}
.hero-shapes span:nth-child(1){width:160px;height:160px;right:60px;top:16px}
.hero-shapes span:nth-child(2){width:86px;height:86px;right:5px;bottom:18px;background:linear-gradient(145deg,#ffc853,#f0a31b)}
.hero-shapes span:nth-child(3){width:66px;height:66px;left:25px;bottom:2px;background:linear-gradient(145deg,#75a5f7,#4d83e8)}

.hero-copy{position:absolute;left:40px;top:50%;transform:translateY(-50%);z-index:4;max-width:470px}
.hero-label{
  display:inline-flex;padding:6px 9px;border-radius:999px;
  background:rgba(111,76,245,.10);color:var(--purple);
  font-size:10px;font-weight:600;letter-spacing:.09em
}
.hero-title{
  margin:11px 0 10px;
  font-size:44px;line-height:1.18;font-weight:700;color:#151925;letter-spacing:-.04em
}
.hero-copy p{margin:0;max-width:430px;color:#4d5868;font-size:15px;line-height:1.8}
.hero-cta{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;margin-top:20px;padding:0 20px;border-radius:21px;
  background:linear-gradient(135deg,var(--purple),#8755f4);
  color:#fff;font-size:13px;font-weight:600;box-shadow:0 9px 22px rgba(111,76,245,.17)
}
.slider-dots{position:absolute;left:40px;bottom:15px;display:flex;gap:5px;z-index:5}
.slider-dots button{border:0;width:7px;height:7px;border-radius:50%;padding:0;background:rgba(70,76,94,.28)}
.slider-dots button.active{width:24px;border-radius:6px;background:var(--purple)}

.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}
.quick-grid>a{
  min-height:84px;display:grid;grid-template-columns:42px 1fr;gap:11px;align-items:center;
  padding:13px;background:#fff;border:1px solid var(--line);border-radius:15px;
  box-shadow:0 5px 18px rgba(40,47,76,.035);transition:.18s ease
}
.quick-grid>a:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.quick-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:14px;font-weight:600}
.violet{background:#f0ebff;color:var(--purple)}
.blue{background:#ebf3ff;color:var(--blue)}
.pink{background:#fff0f8;color:var(--pink)}
.amber{background:var(--amber-soft);color:#d88f09}
.quick-grid strong{display:block;font-size:13px}
.quick-grid small{display:block;font-size:10.5px;color:var(--muted-2);margin-top:2px}

.panel,.activity-panel,.seo-panel,.rail-card,.chat-workspace,.find-games-section{
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);box-shadow:0 5px 18px rgba(40,47,76,.035)
}
.panel{padding:16px}
.panel-heading,.section-title-row{
  display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:13px
}
.panel-heading span,.section-title-row .eyebrow{font-size:9px;letter-spacing:.10em;color:#9b8ed4}
.panel-heading h2,.section-title-row h2{margin:2px 0 0;font-size:20px;font-weight:600}
.panel-heading>a{font-size:11px;color:var(--purple);font-weight:500}

/* real Roblox API game thumbnails */
.game-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.game-item{text-align:center;min-width:0}
.game-item img{
  width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:50%;display:block;
  background:#f1f2f7;border:4px solid #fff;box-shadow:0 4px 16px rgba(40,47,76,.10)
}
.game-item strong{display:block;margin-top:8px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-item small{display:block;font-size:10px;color:var(--muted-2);margin-top:2px}

/* product cards: no fabricated image; square visual tile */
.product-rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.product-card{
  overflow:hidden;display:flex;flex-direction:column;min-width:0;
  background:#fff;border:1px solid var(--line);border-radius:14px;transition:.18s ease
}
.product-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.product-visual{
  position:relative;width:100%;aspect-ratio:1/1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 42% 35%,rgba(255,255,255,.65),transparent 28%),
    linear-gradient(145deg,#fff6df,#f6b438 52%,#dfa01f)
}
.product-visual:before{
  content:"";position:absolute;width:48%;height:48%;border-radius:50%;
  border:14px solid rgba(255,255,255,.64);box-shadow:inset 0 0 0 10px rgba(112,75,8,.15)
}
.product-visual .robux-symbol,.product-visual>strong{position:relative;z-index:2;color:#563904;text-shadow:0 1px 0 rgba(255,255,255,.3)}
.robux-symbol{font-size:12px;font-weight:700}
.product-visual>strong{font-size:28px;line-height:1;margin-top:2px}
.discount-badge{
  position:absolute;right:8px;top:8px;z-index:3;
  padding:4px 7px;border-radius:999px;background:#6f4cf5;color:#fff;font-size:8px;font-weight:700
}
.product-body{display:flex;flex:1;flex-direction:column;padding:10px 11px 11px}
.product-kicker{font-size:9px;color:#9d89e6}
.product-body h3{margin:2px 0 7px;font-size:12px;font-weight:600}
.price-row{display:flex;align-items:baseline;gap:6px;margin-bottom:8px}
.price-row strong{font-size:17px;color:#e4960b}
.price-row span{font-size:9px;color:var(--muted-2);text-decoration:line-through}
.product-action{
  margin-top:auto;min-height:33px;display:flex;align-items:center;justify-content:center;
  border-radius:8px;background:#f3f0ff;color:var(--purple);font-size:10px;font-weight:600
}

.activity-panel{padding:16px}
.activity-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.activity-grid>a{
  min-height:108px;display:flex;flex-direction:column;padding:13px;border-radius:13px;
  background:linear-gradient(135deg,#f4edff,#fff)
}
.activity-grid>a:nth-child(2){background:linear-gradient(135deg,#e9f8f1,#fff)}
.activity-grid>a:nth-child(3){background:linear-gradient(135deg,#eef2ff,#fff)}
.activity-grid>a:nth-child(4){background:linear-gradient(135deg,#fff1d7,#fff)}
.activity-grid span{font-size:9px;color:#746893}
.activity-grid strong{display:block;font-size:12px;margin-top:5px}
.activity-grid small{display:block;margin-top:auto;color:var(--muted);font-size:10px}

.rail-card{padding:16px}
.rail-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.rail-heading h3{margin:0;font-size:15px}
.rail-heading span{font-size:9px;color:var(--muted-2)}
.room-list{display:grid;gap:9px}
.room-row{display:grid;grid-template-columns:42px 1fr auto;gap:9px;align-items:center;padding:6px;border-radius:10px}
.room-row:hover{background:#f8f8fc}
.room-row img{width:42px;height:42px;border-radius:11px;object-fit:cover;background:#f1f2f7}
.room-row strong{display:block;font-size:11px}
.room-row small{display:block;font-size:9px;color:var(--muted-2)}
.room-row>span{color:var(--purple);font-size:11px}
.rail-button{
  min-height:36px;margin-top:12px;display:flex;align-items:center;justify-content:center;
  border:1px solid #d9d0ff;border-radius:10px;color:var(--purple);font-size:10px;font-weight:600
}
.login-community-card{text-align:center;padding:22px 17px}
.community-orb{
  width:52px;height:52px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;
  background:var(--purple-soft);color:var(--purple);font-size:16px;font-weight:700
}
.login-community-card h3{margin:0;font-size:14px}
.login-community-card p{margin:7px 0 13px;color:var(--muted);font-size:10.5px;line-height:1.75}
.login-community-card a{
  min-height:36px;display:flex;align-items:center;justify-content:center;border-radius:10px;
  background:var(--purple);color:#fff;font-size:10px;font-weight:600
}

/* homepage SEO: actual H1 lives here */
.seo-panel{
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(270px,.75fr);
  gap:21px;padding:19px
}
.eyebrow{font-size:9px;letter-spacing:.11em;color:#9785df}
.homepage-seo h1,.seo-panel-copy h1{
  margin:5px 0 8px;font-size:23px;line-height:1.35;font-weight:600;color:#202534
}
.seo-panel-copy h2{margin:5px 0 8px;font-size:21px;font-weight:600}
.seo-panel-copy p{margin:0;max-width:76ch;color:var(--muted);font-size:12.5px;line-height:1.9}
.seo-link-list{display:grid;gap:8px}
.seo-link-list a{
  display:grid;grid-template-columns:1fr auto;column-gap:8px;
  padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fbfbfe
}
.seo-link-list strong{font-size:11px}
.seo-link-list span{grid-column:1/2;font-size:9px;color:var(--muted-2)}
.seo-link-list b{grid-column:2/3;grid-row:1/3;align-self:center;color:var(--purple);font-size:9px}

/* generic pages */
.page-hero,.surface,.market-card,.article-grid>a,.avatar-showcase>article,.notice-box,.seo-link-hub{
  background:#fff!important;border:1px solid var(--line)!important;border-radius:var(--radius)!important;box-shadow:none!important
}
.page-hero{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  padding:23px 25px;margin-bottom:16px
}
.page-hero h1{margin:5px 0 7px;font-size:34px;font-weight:650;line-height:1.2}
.page-hero p{margin:0;color:var(--muted);font-size:13px;max-width:760px}
.page-hero.compact h1{font-size:30px}
.btn{
  min-height:40px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 15px;border:1px solid var(--line);border-radius:10px;background:#fff;
  font-size:12px;font-weight:600
}
.btn.primary{border-color:transparent;background:var(--purple);color:#fff}
.surface{padding:19px}

.game-grid,.market-grid,.article-grid,.avatar-showcase{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px
}
.market-card,.article-grid>a,.avatar-showcase>article{
  padding:13px;background:#fff;border:1px solid var(--line);border-radius:14px
}
.game-cover{
  height:120px;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(135deg,#eee9ff,#d9d0ff);color:var(--purple);font-size:24px
}
.market-card h3,.article-grid h3{font-size:13px}
.article-grid p,.prose,.faq-list p,.seo-longform p{color:var(--muted);font-size:13px;line-height:1.9}
.article-grid span,.prose a,.seo-longform a{color:var(--purple)}
.empty-state{text-align:center;padding:42px 20px}
.empty-state p{color:var(--muted);font-size:13px}
.avatar-placeholder{
  width:105px;height:105px;border-radius:50%;margin:0 auto 10px;
  display:grid;place-items:center;background:#f0ecff;color:var(--purple);font-size:26px
}
.faq-list details{border-bottom:1px solid var(--line);padding:12px 0}
.faq-list summary{cursor:pointer;font-size:13px;font-weight:600}
.notice-box{padding:15px}
.seo-longform h2{font-size:20px;margin:23px 0 7px}
.seo-link-hub{padding:15px;margin:15px 0}
.seo-link-hub-title h2{font-size:18px;margin:3px 0 9px}
.seo-link-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.seo-link-hub-grid a{padding:9px;border:1px solid var(--line);border-radius:10px;background:#fbfbfe}
.seo-link-hub-grid strong{display:block;font-size:11px}
.seo-link-hub-grid span{display:block;font-size:9px;color:var(--muted-2)}

/* FIND FRIENDS — chat first */
.chat-workspace{
  display:grid;grid-template-columns:260px minmax(0,1fr);
  min-height:520px;overflow:hidden;margin-bottom:18px
}
.chat-channel-list{padding:14px;border-right:1px solid var(--line);background:#fcfcff}
.chat-section-title{padding:4px 5px 12px}
.chat-section-title strong{display:block;font-size:13px}
.chat-section-title small{display:block;font-size:10px;color:var(--muted-2);margin-top:2px}
.chat-channel{
  display:grid;grid-template-columns:46px 1fr;gap:10px;align-items:center;
  padding:8px;border-radius:11px;margin-bottom:4px
}
.chat-channel:hover{background:#f6f4ff}
.chat-channel.active{background:var(--purple-soft)}
.chat-channel img{width:46px;height:46px;object-fit:cover;border-radius:11px;background:#f1f2f7}
.chat-channel strong{display:block;font-size:11.5px}
.chat-channel small{display:block;font-size:9px;color:var(--muted-2);margin-top:1px}
.chat-panel{display:flex;flex-direction:column;min-width:0}
.chat-header{
  min-height:67px;display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:0 18px;border-bottom:1px solid var(--line)
}
.chat-header strong{display:block;font-size:14px}
.chat-header small{display:block;font-size:10px;color:var(--muted-2);margin-top:1px}
.chat-status{padding:5px 8px;border-radius:999px;background:#f4f5f8;color:#7f8998;font-size:9px}
.chat-empty{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:34px
}
.chat-empty-icon{
  width:62px;height:62px;border-radius:19px;
  display:grid;place-items:center;background:var(--purple-soft);font-size:25px
}
.chat-empty h2{margin:13px 0 6px;font-size:20px}
.chat-empty p{max-width:530px;margin:0 0 15px;color:var(--muted);font-size:12px;line-height:1.8}
.chat-composer{
  display:grid;grid-template-columns:1fr 72px;gap:8px;
  padding:12px;border-top:1px solid var(--line)
}
.chat-composer input{
  height:40px;border:1px solid var(--line);border-radius:11px;padding:0 12px;background:#f7f8fb;color:#9aa3b2
}
.chat-composer button{border:0;border-radius:10px;background:#e9eaf0;color:#9aa3b2}
.find-games-section{padding:17px;margin-bottom:18px}
.friend-game-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px
}
.friend-game-card{
  min-width:0;overflow:hidden;display:flex;flex-direction:column;
  background:#fff;border:1px solid var(--line);border-radius:14px
}
.friend-game-image{display:block;width:100%;aspect-ratio:1/1;overflow:hidden;background:#f1f2f7}
.friend-game-image img{width:100%;height:100%;object-fit:cover;display:block}
.friend-game-body{display:flex;flex:1;flex-direction:column;padding:11px}
.friend-game-body h3{margin:0;font-size:12px}
.friend-game-body p{margin:5px 0 9px;color:var(--muted);font-size:10px;line-height:1.6}
.friend-game-body>a{margin-top:auto;color:var(--purple);font-size:10px;font-weight:600}

/* footer */
.site-footer-new{
  display:grid;grid-template-columns:1.4fr repeat(3,1fr);
  gap:20px;margin:28px 24px 0;padding:22px 0 30px;border-top:1px solid var(--line)
}
.site-footer-new>div{display:flex;flex-direction:column;gap:6px}
.site-footer-new strong{font-size:11px}
.site-footer-new a{font-size:10px;color:var(--muted)}
.footer-brand strong{font-size:16px}
.footer-brand p{margin:3px 0 0;max-width:240px;color:var(--muted-2);font-size:10px}
.mobile-bottom-nav{display:none}

/* responsive */
@media(max-width:1200px){
  .home-dashboard{grid-template-columns:1fr}
  .right-rail{grid-template-columns:1fr 1fr}
  .friend-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:960px){
  .community-shell{grid-template-columns:1fr}
  .left-sidebar{
    position:fixed;left:0;top:0;bottom:0;width:240px;z-index:120;
    transform:translateX(-105%);transition:.22s ease
  }
  .left-sidebar.open{transform:translateX(0)}
  .menu-toggle{display:block}
  .page-content{padding:16px 14px 84px}
  .topbar{padding:0 14px}
  .create-post span{display:none}
  .quick-grid{grid-template-columns:repeat(2,1fr)}
  .activity-grid{grid-template-columns:repeat(2,1fr)}
  .right-rail{grid-template-columns:1fr}
  .chat-workspace{grid-template-columns:220px minmax(0,1fr)}
  .game-grid,.market-grid,.article-grid,.avatar-showcase{grid-template-columns:repeat(2,minmax(0,1fr))}
  .seo-link-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mobile-bottom-nav{
    display:grid;grid-template-columns:repeat(5,1fr);
    position:fixed;left:10px;right:10px;bottom:8px;z-index:100;
    min-height:60px;padding:5px;border-radius:18px;
    background:rgba(255,255,255,.95);border:1px solid var(--line);
    box-shadow:0 14px 38px rgba(44,48,73,.14);backdrop-filter:blur(16px)
  }
  .mobile-bottom-nav a{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:1px;border-radius:12px;color:#9aa3b2
  }
  .mobile-bottom-nav a.active{background:var(--purple-soft);color:var(--purple)}
  .mobile-bottom-nav span{font-size:12px}
  .mobile-bottom-nav small{font-size:8px}
}
@media(max-width:720px){
  body{font-size:15px}
  .topbar{height:62px}
  .top-search{height:39px}
  .top-icon{display:none}
  .account-copy{display:none}
  .account-chip{padding-right:4px}
  .page-content{padding:13px 11px 82px}

  .slide{height:320px}
  .hero-copy{left:20px;right:20px;max-width:290px}
  .hero-title{font-size:31px}
  .hero-copy p{font-size:12px}
  .hero-cta{min-height:37px;font-size:10.5px}
  .hero-shapes{opacity:.35;right:-25px}

  .quick-grid{gap:8px}
  .quick-grid>a{min-height:68px;padding:9px;grid-template-columns:34px 1fr}
  .quick-icon{width:34px;height:34px;border-radius:10px;font-size:11px}
  .quick-grid strong{font-size:10.5px}
  .quick-grid small{font-size:8.5px}

  .game-list{
    display:flex;overflow-x:auto;gap:10px;
    scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:2px
  }
  .game-list::-webkit-scrollbar{display:none}
  .game-item{flex:0 0 27%;scroll-snap-align:start}
  .game-item strong{font-size:9px}
  .game-item small{font-size:7.5px}

  /* 3 product cards visible on mobile + smooth swipe */
  .product-rail{
    display:flex;overflow-x:auto;gap:6px;
    scroll-snap-type:x mandatory;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;padding-bottom:3px
  }
  .product-rail::-webkit-scrollbar{display:none}
  .product-card{flex:0 0 calc((100% - 12px)/3);scroll-snap-align:start;border-radius:10px}
  .product-body{padding:7px 6px}
  .product-kicker{font-size:6.5px}
  .product-body h3{font-size:8px;margin:1px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .price-row{gap:3px;margin-bottom:4px;flex-wrap:wrap}
  .price-row strong{font-size:11px}
  .price-row span{font-size:6px}
  .product-action{min-height:26px;border-radius:6px;font-size:6.8px}
  .product-visual .robux-symbol{font-size:7px}
  .product-visual>strong{font-size:17px}
  .product-visual:before{border-width:7px;box-shadow:inset 0 0 0 5px rgba(112,75,8,.15)}
  .discount-badge{right:4px;top:4px;padding:2px 4px;font-size:5.5px}

  .panel{padding:12px}
  .panel-heading h2,.section-title-row h2{font-size:16px}
  .activity-grid{gap:7px}
  .activity-grid>a{min-height:91px;padding:9px}
  .seo-panel{grid-template-columns:1fr;padding:16px}
  .homepage-seo h1{font-size:19px}

  /* chat becomes stacked */
  .chat-workspace{grid-template-columns:1fr;min-height:auto}
  .chat-channel-list{
    border-right:0;border-bottom:1px solid var(--line);
    display:flex;gap:7px;overflow-x:auto;padding:10px;scrollbar-width:none
  }
  .chat-channel-list::-webkit-scrollbar{display:none}
  .chat-section-title{display:none}
  .chat-channel{
    flex:0 0 155px;grid-template-columns:38px 1fr;
    margin:0;padding:7px;border:1px solid var(--line)
  }
  .chat-channel img{width:38px;height:38px;border-radius:9px}
  .chat-channel strong{font-size:9px}
  .chat-channel small{font-size:7.5px}
  .chat-header{min-height:58px;padding:0 12px}
  .chat-header strong{font-size:12px}
  .chat-header small{font-size:8px}
  .chat-status{font-size:7px}
  .chat-empty{min-height:270px;padding:25px 14px}
  .chat-empty h2{font-size:17px}
  .chat-empty p{font-size:10px}
  .chat-composer{grid-template-columns:1fr 60px;padding:9px}
  .chat-composer input{height:36px;font-size:10px}

  .friend-game-grid{
    display:flex;overflow-x:auto;gap:7px;
    scroll-snap-type:x mandatory;scrollbar-width:none
  }
  .friend-game-grid::-webkit-scrollbar{display:none}
  .friend-game-card{flex:0 0 42%;scroll-snap-align:start}
  .friend-game-body{padding:8px}
  .friend-game-body h3{font-size:9.5px}
  .friend-game-body p{font-size:8px}
  .friend-game-body>a{font-size:8px}

  .game-grid,.market-grid,.article-grid,.avatar-showcase{grid-template-columns:1fr}
  .seo-link-hub-grid{grid-template-columns:1fr}
  .site-footer-new{grid-template-columns:1fr 1fr;margin:20px 12px 0}
  .footer-brand{grid-column:1/-1}
}
@media(max-width:440px){
  .top-search{display:none}
  .hero-title{font-size:28px}
  .game-item{flex-basis:30%}
  .friend-game-card{flex-basis:44%}
}


/* =========================================================
   RobuxTH v3.2.0 refinement
   ========================================================= */

body{font-size:16px}
.panel-title,.section-display-title,.rail-title{font-weight:600;color:var(--text);letter-spacing:-.02em}
.panel-title,.section-display-title{font-size:20px}
.rail-title{font-size:15px}
.account-avatar-img{width:36px;height:36px;border-radius:50%;object-fit:cover;display:block;background:#f1f2f7}

/* Homepage heading hierarchy */
.home-dashboard .panel-heading h2,
.home-dashboard .rail-heading h3{display:none}

/* Horizontal rails */
.game-horizontal-rail,.product-rail,.all-games-rail{
  display:flex;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;
  scroll-snap-type:x proximity;scrollbar-width:none;-ms-overflow-style:none;
  overscroll-behavior-inline:contain
}
.game-horizontal-rail::-webkit-scrollbar,.product-rail::-webkit-scrollbar,.all-games-rail::-webkit-scrollbar{display:none}

.game-horizontal-rail{gap:13px;padding:2px 1px 5px}
.game-horizontal-rail .game-item{flex:0 0 116px;scroll-snap-align:start}
.game-horizontal-rail .game-item img{width:96px;height:96px;margin:0 auto;aspect-ratio:1/1}

/* Compact Robux rail */
.horizontal-rail-shell{position:relative}
.product-rail{gap:10px;padding:2px 1px 5px}
.product-rail .product-card{flex:0 0 170px;scroll-snap-align:start;border-radius:13px}
.product-visual{
  position:relative;width:100%;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(150deg,#fff7e5,#ffd675 55%,#f1ad29)
}
.robux-ring{
  position:relative;z-index:2;width:58%;aspect-ratio:1/1;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:rgba(255,255,255,.38);border:8px solid rgba(255,255,255,.60);
  box-shadow:inset 0 0 0 7px rgba(135,87,7,.13)
}
.robux-ring i{font-style:normal;font-size:10px;color:#73500e;font-weight:700}
.robux-ring b{font-size:23px;line-height:1;color:#664309}
.product-body{padding:9px 10px 10px}
.product-name{font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.price-row{margin:5px 0 7px;gap:6px}
.price-row strong{font-size:16px}
.price-row span{font-size:9px}
.product-action{min-height:30px;font-size:9px}
.discount-badge{font-size:7px;padding:3px 6px}

.rail-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:34px;height:34px;border-radius:50%;
  border:1px solid var(--line);background:rgba(255,255,255,.96);color:#595f70;font-size:23px;line-height:1;
  box-shadow:0 7px 18px rgba(40,47,76,.09);cursor:pointer
}
.rail-prev{left:-10px}.rail-next{right:-10px}
.rail-controls{display:flex;gap:6px}
.rail-controls button{width:32px;height:32px;border-radius:9px;border:1px solid var(--line);background:#fff;color:#6b7383;font-size:18px;cursor:pointer}

/* Chat */
.chat-workspace{grid-template-columns:280px minmax(0,1fr);min-height:610px}
.chat-channel-list{max-height:610px;overflow-y:auto;scrollbar-width:thin}
.chat-channel-global{grid-template-columns:46px 1fr}
.channel-global-icon{
  width:46px;height:46px;border-radius:12px;display:grid;place-items:center;
  background:linear-gradient(135deg,#ece7ff,#f8f6ff);color:var(--purple);font-size:17px
}
.chat-message-list{flex:1;min-height:0;max-height:474px;overflow-y:auto;padding:16px 18px;background:#fcfcfe}
.chat-message{display:grid;grid-template-columns:38px 1fr;gap:10px;margin-bottom:14px}
.chat-message>img,.chat-avatar-empty{width:38px;height:38px;border-radius:50%;object-fit:cover}
.chat-avatar-empty{display:grid;place-items:center;background:var(--purple-soft);color:var(--purple)}
.chat-message-meta{display:flex;align-items:baseline;gap:7px}
.chat-message-meta strong{font-size:11px}.chat-message-meta small{font-size:8px;color:var(--muted-2)}
.chat-message p{margin:2px 0 0;color:#3e4654;font-size:12px;line-height:1.65}
.chat-empty-title{font-size:18px;font-weight:600;margin-top:12px}
.chat-composer a{display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--purple);color:#fff;font-size:10px;font-weight:600}

/* All games */
.game-browser{padding:17px;margin-bottom:18px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.all-games-rail{gap:10px;padding-bottom:4px}
.friend-game-card{
  flex:0 0 150px;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff;scroll-snap-align:start
}
.friend-game-card>img{width:100%;aspect-ratio:1/1;display:block;object-fit:cover;background:#f2f3f7}
.friend-game-card>div{padding:8px 9px 9px}
.friend-game-card strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.friend-game-card small{display:block;font-size:8px;color:var(--muted-2);margin-top:2px}
.games-api-note{margin:9px 0 0;color:var(--muted-2);font-size:9px}

/* Community */
.community-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}
.community-feed-column{min-width:0;display:grid;gap:13px}
.community-side-column{display:grid;gap:14px;position:sticky;top:90px}
.composer-card,.feed-post,.feed-empty{background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.composer-card{padding:15px}
.composer-user{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;margin-bottom:11px}
.composer-user img{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#f1f2f7}
.composer-user strong{display:block;font-size:11px}.composer-user small{display:block;font-size:9px;color:var(--muted-2)}
.community-composer-form textarea{
  width:100%;min-height:92px;resize:vertical;border:1px solid var(--line);border-radius:13px;
  padding:12px 13px;outline:0;background:#fbfbfe;color:var(--text);font-size:12px;line-height:1.7
}
.community-composer-form textarea:focus{border-color:#cfc6ff;background:#fff}
.composer-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}
.composer-options label>span{display:block;font-size:8.5px;color:var(--muted);margin:0 0 4px 2px}
.composer-options select{width:100%;height:38px;border:1px solid var(--line);border-radius:10px;padding:0 9px;background:#fff;color:#3d4553;font-size:10px}
.composer-bottom{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;margin-top:10px}
.image-upload-button{min-height:37px;display:flex;align-items:center;gap:6px;padding:0 10px;border-radius:10px;border:1px solid var(--line);color:var(--purple);cursor:pointer}
.image-upload-button input{display:none}.image-upload-button span{font-size:10px;font-weight:600}.image-upload-button small{font-size:7px;color:var(--muted-2)}
.image-selection-text{font-size:8.5px;color:var(--muted-2)}
.composer-bottom button{min-width:86px;height:38px;border:0;border-radius:10px;background:var(--purple);color:#fff;font-size:10px;font-weight:600;cursor:pointer}
.form-error{margin-bottom:9px;padding:8px 10px;border-radius:9px;background:#fff0f0;color:#b14a4a;font-size:9px}
.composer-login-state{display:grid;grid-template-columns:48px 1fr auto;gap:11px;align-items:center}
.composer-login-state strong{display:block;font-size:12px}.composer-login-state p{margin:2px 0 0;font-size:9px;color:var(--muted)}
.composer-login-state>a{min-height:36px;padding:0 12px;display:flex;align-items:center;border-radius:10px;background:var(--purple);color:#fff;font-size:9px;font-weight:600}

.feed-filter-bar{display:flex;gap:6px;padding:4px;width:max-content;max-width:100%;border:1px solid var(--line);border-radius:11px;background:#fff}
.feed-filter-bar a{padding:6px 10px;border-radius:8px;color:#727b8a;font-size:9px}
.feed-filter-bar a.active{background:var(--purple-soft);color:var(--purple);font-weight:600}
.community-feed{display:grid;gap:12px}
.feed-empty{text-align:center;padding:40px 20px}.feed-empty>span{font-size:24px;color:#a894fb}
.feed-empty strong{display:block;margin-top:6px;font-size:13px}.feed-empty p{max-width:480px;margin:4px auto 0;color:var(--muted);font-size:10px}

.feed-post{padding:14px}
.feed-post-head{display:grid;grid-template-columns:42px 1fr;gap:9px;align-items:center}
.feed-post-head>img,.post-avatar-empty{width:42px;height:42px;border-radius:50%;object-fit:cover}
.post-avatar-empty{display:grid;place-items:center;background:var(--purple-soft);color:var(--purple)}
.feed-post-head strong{display:block;font-size:11px}.feed-post-head small{display:block;font-size:8px;color:var(--muted-2);margin-top:1px}
.feed-post-body{margin:11px 0 0;color:#353d4b;font-size:12px;line-height:1.8}
.post-hashtags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.post-hashtags span{font-size:9px;color:var(--purple)}
.post-image-grid{display:grid;gap:5px;margin-top:10px;overflow:hidden;border-radius:12px}
.post-image-grid.count-1{grid-template-columns:1fr}.post-image-grid.count-2{grid-template-columns:1fr 1fr}
.post-image-grid.count-3,.post-image-grid.count-4{grid-template-columns:1fr 1fr}
.post-image-grid img{width:100%;height:220px;object-fit:cover;display:block;background:#f2f3f7}
.post-image-grid.count-3 img:first-child{grid-row:span 2;height:445px}
.post-game-card{margin-top:10px;display:grid;grid-template-columns:72px 1fr;gap:10px;padding:8px;border:1px solid var(--line);border-radius:11px;background:#fafaff}
.post-game-card img{width:72px;height:72px;border-radius:10px;object-fit:cover}
.post-game-card>div{display:flex;flex-direction:column;justify-content:center}
.post-game-card span{font-size:7.5px;color:#9a8bd8}.post-game-card strong{font-size:10.5px;margin-top:2px}.post-game-card small{font-size:8px;color:var(--purple);margin-top:3px}
.feed-post-footer{margin-top:11px;padding-top:9px;border-top:1px solid var(--line);color:var(--muted-2);font-size:8px}

@media(max-width:960px){
  .community-layout{grid-template-columns:1fr}
  .community-side-column{position:static}
}
@media(max-width:720px){
  .rail-arrow{display:none}
  .product-rail .product-card{flex:0 0 calc((100% - 12px)/3);border-radius:10px}
  .robux-ring{border-width:5px;box-shadow:inset 0 0 0 4px rgba(135,87,7,.13)}
  .robux-ring i{font-size:6px}.robux-ring b{font-size:14px}
  .product-body{padding:6px}.product-name{font-size:7px}
  .price-row{gap:3px;margin:3px 0 4px;flex-wrap:wrap}.price-row strong{font-size:10px}.price-row span{font-size:5.7px}
  .product-action{min-height:25px;font-size:6.5px}.discount-badge{right:4px;top:4px;font-size:5px;padding:2px 4px}
  .game-horizontal-rail .game-item{flex-basis:92px}.game-horizontal-rail .game-item img{width:76px;height:76px}

  .composer-options{grid-template-columns:1fr}
  .composer-bottom{grid-template-columns:1fr auto}.image-selection-text{grid-column:1/-1;grid-row:2}
  .composer-login-state{grid-template-columns:42px 1fr}.composer-login-state>a{grid-column:1/-1;justify-content:center}
  .post-image-grid img{height:145px}.post-image-grid.count-3 img:first-child{height:295px}

  .chat-workspace{grid-template-columns:1fr;min-height:520px}
  .chat-channel-list{max-height:none;border-right:0;border-bottom:1px solid var(--line);display:flex;overflow-x:auto;gap:6px;padding:9px;scrollbar-width:none}
  .chat-channel-list::-webkit-scrollbar{display:none}.chat-section-title{display:none}
  .chat-channel{flex:0 0 150px;grid-template-columns:36px 1fr;margin:0;padding:6px;border:1px solid var(--line)}
  .chat-channel img,.channel-global-icon{width:36px;height:36px;border-radius:9px}
  .chat-message-list{max-height:360px}
  .friend-game-card{flex-basis:128px}
}

@media(max-width:960px){.mobile-bottom-nav{grid-template-columns:repeat(6,1fr)}}


/* ==========================================================
   v3.3.0 readability + search + lazy games + layout fixes
   ========================================================== */

body{font-size:17px}
.page-content{max-width:1480px}
.home-full{display:grid;gap:20px;min-width:0}
.home-dashboard{display:block}
.right-rail{display:none!important}
.hero,.hero-slider,.slide{max-width:100%;min-width:0}
.hero-slider{overflow:hidden}
.hero-shapes{overflow:hidden;pointer-events:none}
.hero-action-row{display:flex;align-items:center;gap:12px;margin-top:20px}
.hero-action-row .hero-cta{margin-top:0}
.hero-link{font-size:13px;font-weight:600;color:var(--purple)}

.eyebrow{font-size:11px}
.panel-heading span,.section-title-row .eyebrow{font-size:11px}
.panel-title,.section-display-title{font-size:22px}
.panel-heading>a{font-size:13px}
.quick-grid strong{font-size:15px}
.quick-grid small{font-size:12px}
.main-nav a{font-size:15px}
.brand-copy small{font-size:12px}
.login-side-card strong{font-size:13px}
.login-side-card small{font-size:11px}
.account-copy strong{font-size:12px}
.account-copy small{font-size:11px}

.site-footer-new strong{font-size:14px}
.site-footer-new a{font-size:13px}
.footer-brand strong{font-size:19px}
.footer-brand p{font-size:13px}

.page-hero p,.seo-longform p,.prose,.faq-list p,.article-grid p{font-size:15px}
.page-hero h1{font-size:36px}
.seo-longform h2{font-size:23px}
.seo-link-hub-grid strong{font-size:13px}
.seo-link-hub-grid span{font-size:12px}

/* universal search */
.global-search-wrap{position:relative;flex:1;max-width:640px}
.global-search-wrap .top-search{max-width:none;width:100%}
.search-autocomplete{
  position:absolute;left:0;right:0;top:50px;z-index:150;
  max-height:520px;overflow-y:auto;
  padding:8px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 20px 50px rgba(43,49,76,.18)
}
.search-autocomplete[hidden]{display:none!important}
.search-auto-row{
  display:grid;grid-template-columns:48px 1fr auto;
  gap:11px;align-items:center;
  padding:8px;border-radius:11px
}
.search-auto-row:hover,.search-auto-row.active{background:#f7f5ff}
.search-auto-row img,.search-auto-icon{
  width:48px;height:48px;border-radius:11px;object-fit:cover;background:#f1f2f7
}
.search-auto-icon{display:grid;place-items:center;color:var(--purple);font-size:16px}
.search-auto-row .search-type{display:block;font-size:10px;color:#9a8cd8}
.search-auto-row strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-auto-row small{display:block;font-size:12px;color:var(--muted);margin-top:1px}
.search-auto-arrow{font-size:14px;color:var(--purple)}
.search-auto-empty,.search-auto-loading{padding:18px;text-align:center;color:var(--muted);font-size:13px}

.search-page-form{
  display:grid;grid-template-columns:1fr auto;gap:8px;
  margin:0 0 15px
}
.search-page-form input{
  height:48px;border:1px solid var(--line-strong);border-radius:13px;
  padding:0 15px;background:#fff;font-size:15px;outline:0
}
.search-page-form button{
  min-width:100px;border:0;border-radius:12px;background:var(--purple);
  color:#fff;font-size:13px;font-weight:600
}
.search-page-results{display:grid;gap:8px}
.search-result-card{
  display:grid;grid-template-columns:58px 1fr auto;gap:12px;align-items:center;
  padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fff
}
.search-result-card img,.search-result-icon{width:58px;height:58px;border-radius:12px;object-fit:cover;background:#f1f2f7}
.search-result-icon{display:grid;place-items:center;color:var(--purple)}
.search-result-card span{font-size:10px;color:#9887df}
.search-result-card strong{display:block;font-size:15px}
.search-result-card small{display:block;font-size:12px;color:var(--muted)}
.search-result-card>b{color:var(--purple)}

/* Robux home rail */
.product-rail .product-card{flex-basis:154px}
.robux-ring{width:54%}
.product-name{font-size:13px}
.price-row strong{font-size:17px}
.price-row span{font-size:11px}
.product-action{font-size:11px;min-height:32px}

/* Full Robux page: all products / multi-row */
.product-grid-full{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px
}
.product-grid-full .product-card{min-width:0}
.product-grid-full .product-visual{aspect-ratio:1/1}
.product-grid-full .robux-ring{width:52%}
.product-grid-full .product-name{font-size:15px}
.product-grid-full .price-row strong{font-size:20px}
.product-grid-full .price-row span{font-size:12px}
.product-grid-full .product-action{min-height:38px;font-size:13px}

/* Full SEO homepage */
.seo-home-full{
  padding:28px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 5px 18px rgba(40,47,76,.035)
}
.seo-home-full h1{
  margin:7px 0 10px;
  max-width:980px;
  font-size:30px;
  line-height:1.35
}
.seo-lead{
  max-width:1000px;
  margin:0;
  color:#5f6978;
  font-size:16px;
  line-height:1.95
}
.seo-home-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px 30px;
  margin-top:28px
}
.seo-home-grid article{min-width:0}
.seo-home-grid h2{margin:0 0 8px;font-size:22px}
.seo-home-grid p{margin:0 0 10px;color:#677282;font-size:15px;line-height:1.95}
.seo-home-grid a,.seo-trust-note a{color:var(--purple);font-weight:600}
.seo-trust-note{
  margin-top:18px;padding:14px 16px;border-radius:12px;
  background:#faf9ff;color:#697382;font-size:13px;line-height:1.8
}

/* public member */
.member-public-card{
  display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:center;
  padding:20px;margin-bottom:16px;
  border:1px solid var(--line);border-radius:18px;background:#fff
}
.member-public-card>img{width:120px;height:120px;border-radius:50%;object-fit:cover}
.member-public-card h1{margin:3px 0 2px;font-size:28px}
.member-public-card p{margin:0 0 7px;color:var(--muted);font-size:14px}
.member-public-card a{color:var(--purple);font-size:13px;font-weight:600}
.muted-copy{color:var(--muted)}
.member-post-row{
  display:flex;justify-content:space-between;gap:15px;
  padding:11px 0;border-bottom:1px solid var(--line)
}
.member-post-row strong{font-size:14px}
.member-post-row small{font-size:12px;color:var(--muted)}

/* Find Friends */
.chat-workspace{grid-template-columns:300px minmax(0,1fr)}
.chat-section-title strong{font-size:15px}
.chat-section-title small{font-size:12px}
.chat-channel strong{font-size:13px}
.chat-channel small{font-size:11px}
.chat-header strong{font-size:16px}
.chat-header small{font-size:12px}
.chat-status{font-size:11px}
.chat-message-meta strong{font-size:13px}
.chat-message-meta small{font-size:11px}
.chat-message p{font-size:14px}
.chat-empty-title{font-size:20px}
.chat-empty p{font-size:13px}
.chat-composer input{font-size:13px}

.game-lazy-section{
  padding:20px;
  margin-bottom:18px;
  background:#fff;border:1px solid var(--line);border-radius:18px
}
.section-title-row p{margin:4px 0 0;color:var(--muted);font-size:13px}
.lazy-game-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:13px
}
.lazy-game-card{
  min-width:0;overflow:hidden;
  border:1px solid var(--line);border-radius:14px;background:#fff;
  transition:.18s ease
}
.lazy-game-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.lazy-game-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:#f1f2f7}
.lazy-game-card>div{padding:10px}
.lazy-game-card strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lazy-game-card small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.load-more-games{
  display:block;margin:16px auto 2px;min-width:150px;height:40px;
  border:1px solid #d7ceff;border-radius:11px;background:#fff;
  color:var(--purple);font-size:12px;font-weight:600;cursor:pointer
}
.load-more-games[hidden]{display:none}
.lazy-game-sentinel{height:1px}
.games-api-note{font-size:12px;line-height:1.75}

/* fix any old floating/overflow rail artifacts */
.community-shell,.site-main,.page-content,.home-full,.panel{min-width:0}
.page-content{overflow-x:clip}
.right-rail,.community-side-column{max-width:100%}
.hero-shapes{right:4%;max-width:36vw}

/* community text readability */
.composer-user strong,.feed-post-head strong{font-size:14px}
.composer-user small,.feed-post-head small{font-size:12px}
.community-composer-form textarea{font-size:14px}
.composer-options label>span{font-size:12px}
.composer-options select{font-size:13px}
.image-upload-button span{font-size:13px}
.image-upload-button small,.image-selection-text{font-size:11px}
.composer-bottom button{font-size:13px}
.feed-filter-bar a{font-size:12px}
.feed-post-body{font-size:15px}
.post-hashtags a{font-size:13px}
.post-game-card span{font-size:11px}
.post-game-card strong{font-size:14px}
.post-game-card small{font-size:12px}
.feed-post-footer{font-size:11px}

@media(max-width:1100px){
  .product-grid-full{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lazy-game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
  .global-search-wrap{max-width:none}
  .seo-home-grid{grid-template-columns:1fr}
  .lazy-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  body{font-size:16px}
  .global-search-wrap{flex:1;min-width:0}
  .top-search input{font-size:13px}
  .search-autocomplete{position:fixed;left:10px;right:10px;top:66px;max-height:60vh}
  .search-auto-row{grid-template-columns:44px 1fr auto}
  .search-auto-row img,.search-auto-icon{width:44px;height:44px}
  .search-auto-row strong{font-size:13px}
  .search-auto-row small{font-size:11px}

  .product-grid-full{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .product-grid-full .product-name{font-size:12px}
  .product-grid-full .price-row strong{font-size:16px}
  .product-grid-full .product-action{font-size:11px}

  .seo-home-full{padding:18px}
  .seo-home-full h1{font-size:24px}
  .seo-lead{font-size:14px}
  .seo-home-grid{gap:18px}
  .seo-home-grid h2{font-size:19px}
  .seo-home-grid p{font-size:14px}

  .chat-workspace{grid-template-columns:1fr}
  .lazy-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .lazy-game-card strong{font-size:11px}
  .lazy-game-card small{font-size:9px}

  .site-footer-new strong{font-size:13px}
  .site-footer-new a{font-size:12px}
  .footer-brand p{font-size:12px}
}


/* ==========================================================
   v3.3.1 — readability + hero restore + compact SEO
   ========================================================== */

/* Hero content must always remain visible above banners */
.hero-slider{isolation:isolate}
.slide>img{position:relative;z-index:1}
.hero-overlay{z-index:2}
.banner-click-layer{z-index:3}
.hero-copy-visible{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:10!important;
  max-width:500px;
  padding:18px 20px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:18px;
  background:rgba(255,255,255,.84);
  box-shadow:0 14px 34px rgba(57,60,90,.10);
  backdrop-filter:blur(8px);
}
.hero-copy-visible .hero-title{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  color:#171b27!important;
}
.hero-copy-visible p{color:#525d6d!important}
.hero-copy-visible .hero-action-row{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
.hero-copy-visible .hero-cta{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
}
.hero-copy-visible .hero-link{
  display:inline-flex!important;
  align-items:center;
  min-height:42px;
  padding:0 12px;
  border-radius:11px;
  color:var(--purple)!important;
  background:#f2efff;
}

/* Community page typography: match the rest of the site */
.community-hero .eyebrow{font-size:12px}
.community-hero h1{font-size:36px}
.community-hero p{font-size:15px}

.composer-card{padding:20px}
.composer-user{grid-template-columns:48px 1fr;gap:12px}
.composer-user img{width:48px;height:48px}
.composer-user strong{font-size:16px}
.composer-user small{font-size:13px}

.composer-login-state{
  grid-template-columns:56px 1fr auto;
  gap:14px;
  padding:4px
}
.composer-login-state .community-orb{width:56px;height:56px;font-size:18px}
.composer-login-state strong{font-size:16px}
.composer-login-state p{font-size:13px;line-height:1.7}
.composer-login-state>a{
  min-height:42px;
  padding:0 16px;
  font-size:13px
}

.community-composer-form textarea{
  min-height:110px;
  padding:14px 15px;
  font-size:15px;
  line-height:1.75
}
.composer-options label>span{font-size:13px}
.composer-options select{height:42px;font-size:14px}
.image-upload-button{min-height:42px}
.image-upload-button span{font-size:14px}
.image-upload-button small{font-size:11px}
.image-selection-text{font-size:12px}
.composer-bottom button{height:42px;font-size:14px}

.feed-filter-bar{padding:5px}
.feed-filter-bar a{
  min-height:38px;
  display:flex;
  align-items:center;
  padding:0 14px;
  font-size:14px
}

.feed-empty{padding:54px 24px}
.feed-empty>span{font-size:30px}
.feed-empty strong{font-size:18px}
.feed-empty p{
  max-width:620px;
  font-size:14px;
  line-height:1.8
}

.feed-post{padding:18px}
.feed-post-head{grid-template-columns:48px 1fr;gap:11px}
.feed-post-head>img,.post-avatar-empty{width:48px;height:48px}
.feed-post-head strong{font-size:15px}
.feed-post-head small{font-size:12px}
.feed-post-body{font-size:16px;line-height:1.85}
.post-hashtags a{font-size:14px}
.feed-post-footer{font-size:12px}

/* Footer readability */
.site-footer-new strong{font-size:15px}
.site-footer-new a{font-size:14px}
.footer-brand strong{font-size:20px}
.footer-brand p{font-size:14px;line-height:1.7}

/* Compact SEO — visible H1, long content collapsed by user */
.seo-home-compact{
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 5px 18px rgba(40,47,76,.035)
}
.seo-home-intro h1{
  margin:6px 0 7px;
  max-width:980px;
  font-size:27px;
  line-height:1.4
}
.seo-home-intro p{
  margin:0;
  color:#657080;
  font-size:15px;
  line-height:1.8
}
.seo-details{
  margin-top:16px;
  border-top:1px solid var(--line)
}
.seo-details>summary{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  cursor:pointer;
  list-style:none;
  color:#4f5969
}
.seo-details>summary::-webkit-details-marker{display:none}
.seo-details>summary span{font-size:14px;font-weight:600}
.seo-details>summary b{
  flex:0 0 auto;
  padding:7px 11px;
  border-radius:9px;
  background:#f2efff;
  color:var(--purple);
  font-size:12px
}
.seo-details[open]>summary b::before{content:"ซ่อนข้อมูล";font-size:12px}
.seo-details[open]>summary b{font-size:0}
.seo-details-content{
  padding:4px 0 4px;
  border-top:1px solid var(--line)
}
.seo-details-content .seo-lead{margin-top:18px}
.seo-details-content .seo-home-grid{margin-top:22px}

/* remove old large SEO card visual if cached CSS remains */
.seo-home-full{display:none!important}

@media(max-width:720px){
  .hero-copy-visible{
    left:16px!important;
    right:16px!important;
    max-width:none;
    padding:14px 15px
  }
  .hero-copy-visible .hero-title{font-size:29px}
  .hero-copy-visible p{font-size:12px}
  .hero-copy-visible .hero-cta,
  .hero-copy-visible .hero-link{min-height:37px;font-size:10.5px}

  .community-hero h1{font-size:30px}
  .community-hero p{font-size:13px}

  .composer-login-state{
    grid-template-columns:48px 1fr
  }
  .composer-login-state .community-orb{width:48px;height:48px}
  .composer-login-state>a{
    grid-column:1/-1;
    justify-content:center;
    font-size:12px
  }
  .feed-filter-bar a{font-size:12px;padding:0 11px}
  .feed-empty strong{font-size:16px}
  .feed-empty p{font-size:12px}

  .seo-home-compact{padding:17px}
  .seo-home-intro h1{font-size:22px}
  .seo-home-intro p{font-size:13px}
  .seo-details>summary span{font-size:12px}
  .seo-details>summary b{font-size:10px}
}


/* ==========================================================
   v3.3.2 — strict search + community readability + fixed hero
   ========================================================== */

/* HERO:
   Text/buttons are now one static layer outside individual slides.
   This prevents slider/banner stacking from hiding them. */
.hero-slider{position:relative;isolation:isolate}
.slides{position:relative;z-index:1}
.banner-click-layer{z-index:2}
.slider-dots{z-index:12}
.hero-static-copy{
  position:absolute;
  left:40px;
  top:50%;
  transform:translateY(-50%);
  z-index:20;
  width:min(500px,calc(100% - 80px));
  padding:20px 22px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:18px;
  background:rgba(255,255,255,.88);
  box-shadow:0 16px 38px rgba(57,60,90,.12);
  backdrop-filter:blur(10px);
  pointer-events:none
}
.hero-static-copy>*{pointer-events:auto}
.hero-static-copy .hero-label{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important
}
.hero-static-copy .hero-title{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  margin:11px 0 10px;
  font-size:44px;
  line-height:1.18;
  font-weight:700;
  color:#151925!important;
  letter-spacing:-.04em
}
.hero-static-copy p{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  margin:0;
  max-width:430px;
  color:#4d5868!important;
  font-size:15px;
  line-height:1.8
}
.hero-static-copy .hero-action-row{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center;
  gap:10px;
  margin-top:18px
}
.hero-static-copy .hero-cta,
.hero-static-copy .hero-link{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center;
  justify-content:center;
  min-height:42px
}
.hero-static-copy .hero-cta{
  margin:0;
  padding:0 20px;
  border-radius:21px;
  background:linear-gradient(135deg,var(--purple),#8755f4);
  color:#fff!important;
  font-size:13px;
  font-weight:600
}
.hero-static-copy .hero-link{
  padding:0 15px;
  border-radius:12px;
  background:#f2efff;
  color:var(--purple)!important;
  font-size:13px;
  font-weight:600
}

/* Do not render the old per-slide hero copy if stale HTML/CSS is cached. */
.hero-copy-visible{display:none!important}

/* Community uses the same readable scale as other frontend pages. */
.community-layout,
.community-feed-column,
.community-feed,
.composer-card,
.feed-filter-bar,
.feed-post,
.feed-empty{
  font-size:15px
}
.community-hero .eyebrow{font-size:12px!important}
.community-hero h1{font-size:36px!important;line-height:1.25}
.community-hero p{font-size:15px!important;line-height:1.8}

.composer-login-state strong{font-size:17px!important;line-height:1.4}
.composer-login-state p{font-size:14px!important;line-height:1.75}
.composer-login-state>a{
  min-height:44px!important;
  padding:0 18px!important;
  font-size:14px!important
}

.feed-filter-bar a{
  min-height:42px!important;
  padding:0 16px!important;
  font-size:14px!important;
  font-weight:500
}

.feed-empty{padding:58px 26px!important}
.feed-empty strong{
  margin-top:8px!important;
  font-size:18px!important;
  line-height:1.45
}
.feed-empty p{
  max-width:650px!important;
  margin:7px auto 0!important;
  font-size:14px!important;
  line-height:1.85!important
}

.composer-user strong,.feed-post-head strong{font-size:16px!important}
.composer-user small,.feed-post-head small{font-size:13px!important}
.community-composer-form textarea{font-size:15px!important}
.composer-options label>span{font-size:13px!important}
.composer-options select{font-size:14px!important}
.image-upload-button span{font-size:14px!important}
.image-upload-button small,.image-selection-text{font-size:12px!important}
.composer-bottom button{font-size:14px!important}
.feed-post-body{font-size:16px!important}
.post-hashtags a{font-size:14px!important}
.post-game-card span{font-size:12px!important}
.post-game-card strong{font-size:15px!important}
.post-game-card small{font-size:12px!important}
.feed-post-footer{font-size:12px!important}

/* Compact SEO remains user-collapsible, not display:none. */
.seo-home-compact{display:block!important}
.seo-details-content{content-visibility:auto}
.seo-details:not([open]) .seo-details-content{display:none}

/* Search dropdown: slightly tighter, but readable. */
.search-auto-row strong{font-size:14px}
.search-auto-row small{font-size:12px}
.search-auto-row .search-type{font-size:10px}

@media(max-width:720px){
  .hero-static-copy{
    left:16px;
    right:16px;
    width:auto;
    padding:15px 16px
  }
  .hero-static-copy .hero-title{font-size:29px}
  .hero-static-copy p{font-size:12px}
  .hero-static-copy .hero-cta,
  .hero-static-copy .hero-link{
    min-height:37px;
    font-size:10.5px
  }

  .community-hero h1{font-size:30px!important}
  .community-hero p{font-size:14px!important}
  .composer-login-state strong{font-size:15px!important}
  .composer-login-state p{font-size:13px!important}
  .feed-filter-bar a{font-size:13px!important}
  .feed-empty strong{font-size:16px!important}
  .feed-empty p{font-size:13px!important}
}

/* v3.3.3 */
.top-icon{display:none!important}

.robux-seo-compact,.news-index-section{margin-top:18px;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff}
.robux-seo-title{font-size:20px;font-weight:600}.robux-seo-intro p{color:var(--muted);font-size:14px}
.news-featured-grid,.news-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.news-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.news-featured-card,.news-article-card{padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}
.news-featured-card h2,.news-article-card h2{font-size:18px;line-height:1.5}.news-featured-card p,.news-article-card p{font-size:14px;color:var(--muted)}
.news-article-page{max-width:920px;margin:auto}.article-header,.article-content{padding:24px;border:1px solid var(--line);border-radius:18px;background:#fff;margin-bottom:14px}
.article-header h1{font-size:32px}.article-content p{font-size:15px;line-height:1.9}.article-content h2{font-size:22px;margin-top:24px}
.article-breadcrumb,.article-meta,.article-footer-links{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:12px 0}
.article-footer-links{justify-content:space-between}.article-footer-links a,.article-content a{color:var(--purple)}
@media(max-width:720px){.news-featured-grid,.news-article-grid{grid-template-columns:1fr}.article-header h1{font-size:26px}}


/* v3.4.1 exact fixes: banner + product images + legal readability */
.hero-slider .slides>.slide{flex:0 0 100%!important;width:100%!important;min-width:100%!important;max-width:100%!important}
.hero-slider .slide>img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;object-position:center center!important}
.product-visual.has-product-image{position:relative;overflow:hidden;background:#f6f7fb}
.product-uploaded-image{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center;z-index:1}
.product-visual.has-product-image .discount-badge{z-index:3}
.legal-notice-box{padding:14px 16px;margin:0 0 20px;border:1px solid #ddd6fe;border-radius:12px;background:#faf9ff;color:#505968;font-size:14px;line-height:1.8}
.legal-content h3{margin:18px 0 5px;font-size:17px}.legal-content ul,.legal-content ol{padding-left:22px;color:#596474;font-size:14px;line-height:1.9}


/* ==========================================================
   v3.4.2 Find Friends performance/SEO + Robux 6-column desktop
   ========================================================== */

@media(min-width:1201px){
  .product-grid-full{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:10px!important
  }
  .product-grid-full .product-body{padding:11px!important}
  .product-grid-full .product-name{font-size:13px!important}
  .product-grid-full .price-row strong{font-size:18px!important}
  .product-grid-full .price-row span{font-size:11px!important}
  .product-grid-full .product-action{min-height:35px!important;font-size:12px!important}
}
@media(min-width:901px) and (max-width:1200px){
  .product-grid-full{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

.find-friends-seo-compact{
  margin-top:18px;
  padding:20px 22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff
}
.find-friends-seo-title{
  margin-top:5px;
  font-size:21px;
  line-height:1.45;
  font-weight:600;
  color:var(--text)
}
.find-friends-seo-intro>p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.8
}
.find-friends-seo-details .seo-details-content{
  padding:20px 0 0!important;
  border-radius:0!important;
  border-left:0!important;
  border-right:0!important;
  border-bottom:0!important;
  box-shadow:none!important
}
.find-friends-longform{max-width:none}
.find-friends-longform h2{
  margin:28px 0 8px;
  font-size:21px;
  line-height:1.5
}
.find-friends-longform h3{
  margin:20px 0 6px;
  font-size:17px;
  line-height:1.55
}
.find-friends-longform p,
.find-friends-longform li{
  font-size:14px;
  line-height:1.95;
  color:#596474
}
.find-friends-longform ul,
.find-friends-longform ol{padding-left:22px}
.find-friends-longform a{color:var(--purple);font-weight:600}

@media(max-width:720px){
  .find-friends-seo-compact{padding:16px}
  .find-friends-seo-title{font-size:18px}
  .find-friends-seo-intro>p{font-size:13px}
  .find-friends-longform h2{font-size:19px}
  .find-friends-longform h3{font-size:16px}
  .find-friends-longform p,
  .find-friends-longform li{font-size:13px}
}

/* ==========================================================
   v3.4.6 auth + profile + mobile polish
   ========================================================== */

.topbar{
  height:78px;
  padding:0 26px;
}
.top-actions{gap:12px}
.create-post,
.account-chip,
.login-side-card,
.robux-side-cta{
  box-shadow:0 8px 22px rgba(43,49,76,.07);
}
.create-post{min-height:46px;padding:0 18px;border-radius:23px}
.create-post.is-guest{background:linear-gradient(135deg,#6f4cf5,#8a62fa)}
.account-chip{
  min-height:48px;
  padding:4px 12px 4px 4px;
  border:1px solid var(--line);
  box-shadow:0 6px 18px rgba(43,49,76,.06)
}
.account-chip.is-member{background:linear-gradient(180deg,#fff,#fafaff)}
.account-avatar,
.account-avatar-img{width:40px;height:40px}
.account-copy strong{font-size:12.5px}
.account-copy small{font-size:10.5px}

.login-side-card{
  min-height:58px;
  grid-template-columns:44px 1fr;
  padding:10px 12px;
  border-radius:15px
}
.login-side-card.is-member{background:linear-gradient(180deg,#fff,#fafaff)}
.login-avatar,
.login-avatar-img{
  width:44px;
  height:44px;
  border-radius:50%;
  display:block;
  object-fit:cover;
  background:#f1f2f7
}
.login-side-card strong{font-size:13px}
.login-side-card small{font-size:11px}

.page-hero{
  padding:28px 30px;
  align-items:center;
  background:linear-gradient(180deg,#ffffff,#fbfbff)!important
}
.page-hero h1{font-size:38px}
.page-hero p{font-size:15px;line-height:1.85}
.community-hero,
.friends-hero,
.avatar-hero{
  position:relative;
  overflow:hidden
}
.community-hero::after,
.friends-hero::after,
.avatar-hero::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-30px;
  width:240px;
  height:240px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(111,76,245,.15),rgba(111,76,245,0) 68%);
  pointer-events:none
}
.community-layout{gap:20px}
.composer-card,
.feed-post,
.rail-card,
.chat-workspace,
.game-lazy-section,
.profile-card,
.profile-hero-card{
  box-shadow:0 12px 32px rgba(43,49,76,.055)
}
.composer-login-state{
  grid-template-columns:56px 1fr auto;
  padding:10px;
  border-radius:14px;
  background:linear-gradient(180deg,#faf8ff,#ffffff)
}
.composer-login-state>a{
  min-height:42px;
  padding:0 15px;
  border-radius:12px;
  font-size:13px
}
.chat-composer.disabled{
  display:flex;
  flex-direction:column;
  gap:9px
}
.chat-composer.disabled input{
  width:100%
}
.chat-login-hint{
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.7
}

/* profile */
.profile-hero-card{padding:26px}
.profile-hero-main{display:grid;gap:22px}
.profile-identity-block{
  display:grid;
  grid-template-columns:140px minmax(0,1fr);
  gap:22px;
  align-items:center
}
.profile-avatar-xl{
  width:140px;
  height:140px;
  border-radius:36px;
  object-fit:cover;
  display:block;
  background:#f1f2f7;
  box-shadow:0 18px 36px rgba(43,49,76,.12)
}
.profile-avatar-xl.avatar-empty,
.avatar-placeholder{
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#efe8ff,#f8f6ff);
  color:var(--purple)
}
.profile-identity-copy h1{margin:6px 0 2px;font-size:38px;line-height:1.15}
.profile-username-large{margin:0;color:var(--muted);font-size:17px}
.profile-meta-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.profile-meta-pills span{
  padding:8px 12px;
  border-radius:999px;
  background:#f4f5fb;
  color:#505a69;
  font-size:12px
}
.profile-action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.profile-action-row form{margin:0}
.profile-action-row .btn{min-height:42px;border-radius:12px}
.profile-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}
.profile-summary-grid article{
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#fcfcff,#fff)
}
.profile-summary-grid strong{display:block;font-size:28px;line-height:1}
.profile-summary-grid small{display:block;margin-top:8px;color:var(--muted);font-size:13px}
.profile-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
.profile-card{padding:20px}
.profile-card h2{margin:6px 0 12px;font-size:24px}
.profile-card p{font-size:14px;line-height:1.8}
.profile-feed-preview{display:grid;gap:10px}
.profile-feed-preview a{
  display:block;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfbfe
}
.profile-feed-preview strong{display:block;font-size:12px;color:var(--purple)}
.profile-feed-preview p{margin:6px 0 5px;color:#404857;font-size:14px;line-height:1.7}
.profile-feed-preview small{color:var(--muted);font-size:12px}
.profile-inline-link{display:inline-flex;margin-top:10px;color:var(--purple);font-weight:600}
.profile-avatar-preview{display:grid;grid-template-columns:88px 1fr;gap:14px;align-items:center}
.profile-avatar-preview img,
.avatar-showcase-image{
  width:88px;
  height:88px;
  border-radius:24px;
  object-fit:cover;
  display:block;
  background:#f1f2f7
}
.profile-quick-links{display:grid;gap:10px}
.profile-quick-links a{
  display:block;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfbfe
}
.profile-quick-links strong{display:block;font-size:14px}
.profile-quick-links small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.6}
.accent-purple{background:linear-gradient(180deg,#ffffff,#faf8ff)!important}
.accent-blue{background:linear-gradient(180deg,#ffffff,#f7fbff)!important}
.accent-gold{background:linear-gradient(180deg,#ffffff,#fffaf0)!important}

/* avatar */
.avatar-hero-logged{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px
}
.avatar-profile-preview{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.88)
}
.avatar-profile-preview img,
.avatar-profile-preview .avatar-placeholder{
  width:72px;height:72px;border-radius:22px;object-fit:cover;display:block;background:#f1f2f7
}
.avatar-profile-preview strong{display:block;font-size:15px}
.avatar-profile-preview small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.avatar-showcase-enhanced{margin-top:18px}
.avatar-showcase-enhanced>article{padding:18px;text-align:left}
.avatar-showcase-enhanced strong{display:block;font-size:18px;margin:12px 0 4px}
.avatar-showcase-enhanced p{margin:0;color:var(--muted);font-size:14px;line-height:1.8}
.avatar-showcase-enhanced .avatar-placeholder{
  width:88px;height:88px;border-radius:24px;margin:0 0 10px;font-size:26px
}

/* mobile / tablet */
@media(max-width:1024px){
  .topbar{padding:0 16px}
  .page-content{padding:16px 14px 98px}
  .profile-card-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:960px){
  .mobile-bottom-nav{
    left:12px;
    right:12px;
    bottom:10px;
    min-height:78px;
    padding:7px;
    border-radius:24px;
    gap:4px
  }
  .mobile-bottom-nav a{
    gap:4px;
    padding:8px 4px;
    border-radius:16px
  }
  .mobile-bottom-nav span{
    font-size:18px;
    line-height:1
  }
  .mobile-bottom-nav small{
    font-size:10px;
    line-height:1.25;
    font-weight:600;
    text-align:center
  }
}
@media(max-width:720px){
  .topbar{
    height:68px;
    gap:10px;
    padding:0 12px
  }
  .create-post{min-height:42px;padding:0 14px}
  .page-content{padding:12px 10px 100px}
  .page-hero{padding:22px 18px;border-radius:18px}
  .page-hero h1{font-size:31px}
  .page-hero p{font-size:14px}
  .account-chip{padding-right:6px}
  .account-avatar,
  .account-avatar-img{width:38px;height:38px}
  .profile-hero-card{padding:18px}
  .profile-identity-block{grid-template-columns:1fr;justify-items:start}
  .profile-avatar-xl{width:112px;height:112px;border-radius:28px}
  .profile-identity-copy h1{font-size:31px}
  .profile-meta-pills span{font-size:11px}
  .profile-summary-grid{grid-template-columns:1fr}
  .profile-card-grid{grid-template-columns:1fr}
  .profile-avatar-preview{grid-template-columns:72px 1fr}
  .profile-avatar-preview img,.avatar-showcase-image{width:72px;height:72px;border-radius:20px}
  .avatar-hero-logged{grid-template-columns:1fr}
  .avatar-profile-preview{grid-template-columns:64px 1fr}
  .avatar-profile-preview img,.avatar-profile-preview .avatar-placeholder{width:64px;height:64px;border-radius:18px}
  .avatar-showcase-enhanced strong{font-size:16px}
  .feed-filter-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .feed-filter-bar a{justify-content:center}
  .chat-login-hint{font-size:11px}
  .chat-workspace{overflow:visible}
  .chat-message-list{padding:12px}
  .chat-message{gap:8px}
  .chat-message p{font-size:13px}
  .lazy-game-card img,
  .post-image-grid img{border-radius:12px}
  .post-image-grid.count-3 img:first-child{height:240px}
}
@media(max-width:440px){
  .mobile-bottom-nav{
    min-height:84px;
    left:8px;
    right:8px;
    bottom:8px
  }
  .mobile-bottom-nav span{font-size:17px}
  .mobile-bottom-nav small{font-size:9.5px}
  .create-post span{display:none}
  .page-hero h1{font-size:28px}
  .avatar-showcase-enhanced .avatar-placeholder{width:72px;height:72px;border-radius:20px}
}
