
: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%}
}
