/* Search (js/app.js exploreHome): filter chips, then a discover page when nothing is typed.
   Trending cards, people, ranked top games, free MP and colour-coded categories to browse. */
.sr9-cs{display:flex;gap:8px;margin:10px calc(var(--pad,16px) * -1) 0;padding:0 var(--pad,16px) 2px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sr9-cs::-webkit-scrollbar{display:none}
.sr9-c{flex:none;height:34px;padding:0 15px;border-radius:99px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.88);font-size:14.5px;font-weight:600;white-space:nowrap;transition:background .15s,color .15s}
.sr9-c:active{transform:scale(.96)}
.sr9-c.on{background:#fff;color:#0b0a12}
.sr9-d{display:flex;flex-direction:column;gap:26px;padding:8px 0 24px}
.sr9-sec{min-width:0}
.sr9-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 2px 12px}
.sr9-h h2{margin:0;font:800 22px/1.15 -apple-system,"SF Pro Display",system-ui,sans-serif;letter-spacing:-.02em;color:#fff}
.sr9-h h2 span{margin-left:6px;font-size:16px;font-weight:600;color:rgba(235,235,245,.5)}
.sr9-h button{font-size:15px;font-weight:600;color:#a99cff}
/* recent searches */
.sr9-rec{border-radius:18px;background:rgba(255,255,255,.04);overflow:hidden}
.sr9-rc{display:flex;align-items:center}
.sr9-rc+.sr9-rc{border-top:1px solid rgba(255,255,255,.07)}
.sr9-rc>button:first-child{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:13px 14px;text-align:left;font-size:16px;color:#fff}
.sr9-rc>button:first-child span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr9-rc svg{flex:none;width:18px;height:18px;fill:none;stroke:rgba(235,235,245,.5);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sr9-rc-x{flex:none;display:grid;place-items:center;width:44px;height:44px}
.sr9-rc-x svg{width:15px;height:15px}
/* trending: big swipeable cards */
.sr9-tr{display:flex;gap:12px;margin:0 calc(var(--pad,16px) * -1);padding:0 var(--pad,16px) 4px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 var(--pad,16px);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sr9-tr::-webkit-scrollbar{display:none}
.sr9-t{position:relative;flex:none;width:min(84%,340px);height:200px;scroll-snap-align:start;overflow:hidden;border-radius:26px;text-align:left;isolation:isolate;
  border:1px solid rgba(255,255,255,.1);box-shadow:0 20px 40px -24px rgba(0,0,0,.9)}
.sr9-t:active{transform:scale(.985)}
.sr9-t-bg{position:absolute!important;inset:-30%!important;z-index:-2;width:auto!important;height:auto!important;border-radius:0!important;filter:blur(34px) saturate(1.5);transform:scale(1.2);opacity:.9}
.sr9-t-bg>*{opacity:.5}
.sr9-t:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.05) 20%,rgba(0,0,0,.6) 100%)}
.sr9-t-art{position:absolute!important;top:16px;left:16px;width:68px!important;height:68px!important;border-radius:19px!important;box-shadow:0 10px 24px -8px rgba(0,0,0,.7)}
.sr9-t-tx{position:absolute;left:18px;right:100px;bottom:16px;display:flex;flex-direction:column;gap:2px}
.sr9-t-tx small{font-size:12.5px;font-weight:700;color:rgba(255,255,255,.75)}
.sr9-t-tx b{font:800 24px/1.1 -apple-system,"SF Pro Display",system-ui,sans-serif;letter-spacing:-.02em;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr9-t-tx em{font-style:normal;font-size:13.5px;line-height:1.3;color:rgba(255,255,255,.78);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sr9-t-go{position:absolute;right:16px;bottom:18px;height:34px;padding:0 18px;display:grid;place-items:center;border-radius:99px;background:#fff;color:#0b0a12;font-size:15px;font-weight:700}
.sr9-t-gta{background:radial-gradient(90% 120% at 100% 0%,rgba(255,138,76,.55),transparent 60%),radial-gradient(80% 120% at 0% 100%,rgba(236,72,153,.55),transparent 60%),#1a0b1c}
.sr9-t-gta:after{background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.45))}
.sr9-t-logo{position:absolute;top:14px;left:16px;width:84px;height:84px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.6))}
.sr9-t-cd{display:flex;gap:8px;margin-top:3px}
.sr9-t-cd>span{font-size:12px;color:rgba(255,255,255,.7)}
.sr9-t-cd b{margin-right:1px;font:800 20px/1 -apple-system,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#fff}
.sr9-t-gta .sr9-t-tx{right:120px}
/* lists: ranked games and features, App Store style */
.sr9-l{display:flex;flex-direction:column}
.sr9-r{position:relative;display:flex;align-items:center;gap:13px;width:100%;padding:9px 2px;text-align:left}
.sr9-r+.sr9-r:before{content:"";position:absolute;top:0;right:0;left:68px;height:1px;background:rgba(255,255,255,.08)}
.sr9-r:has(.sr9-r-n)+.sr9-r:has(.sr9-r-n):before{left:100px}
.sr9-r:active{opacity:.7}
.sr9-r-n{flex:none;width:20px;font:800 18px/1 -apple-system,system-ui,sans-serif;font-style:normal;text-align:center;color:rgba(235,235,245,.55);font-variant-numeric:tabular-nums}
.sr9-r-g{flex:none;width:54px!important;height:54px!important;border-radius:15px!important}
.sr9-r-i{flex:none;display:grid;place-items:center;width:54px;height:54px;border-radius:15px;color:#fff;
  background:linear-gradient(160deg,color-mix(in srgb,var(--c) 92%,#fff 8%),color-mix(in srgb,var(--c) 62%,#000));box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.sr9-r-i svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sr9-r-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sr9-r-t b{font-size:16.5px;font-weight:650;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr9-r-t small{font-size:13.5px;line-height:1.3;color:rgba(235,235,245,.62);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sr9-r-go{flex:none;min-width:66px;height:32px;padding:0 14px;display:grid;place-items:center;border-radius:99px;background:rgba(255,255,255,.1);color:#b4a9ff;font-size:14.5px;font-weight:700}
/* browse: colour tiles */
.sr9-b{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sr9-bt{position:relative;height:96px;padding:14px 16px;overflow:hidden;border-radius:18px;text-align:left;
  background:linear-gradient(145deg,color-mix(in srgb,var(--c) 88%,#fff 6%),color-mix(in srgb,var(--c) 55%,#000))}
.sr9-bt:active{transform:scale(.97)}
.sr9-bt b{position:relative;z-index:1;font:800 18px/1.15 -apple-system,"SF Pro Display",system-ui,sans-serif;letter-spacing:-.01em;color:#fff}
.sr9-bt svg{position:absolute;right:-10px;bottom:-14px;width:78px;height:78px;transform:rotate(-14deg);fill:none;stroke:rgba(255,255,255,.4);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sr9-pp{margin:0 calc(var(--pad,16px) * -1)!important;padding:0 var(--pad,16px)!important}
.sr9-pp-w{flex-wrap:wrap;row-gap:16px}
.sr9-tip,.sr9-none{margin:14px 2px 0;font-size:14.5px;line-height:1.45;color:rgba(235,235,245,.6)}
@media (prefers-reduced-motion:reduce){.sr9-c,.sr9-t,.sr9-bt{transition:none}}

/* computers */
@media (min-width:900px){
  .sr9-cs{margin:12px 0 0;padding:0;flex-wrap:wrap;overflow:visible}
  .sr9-tr{margin:0;padding:0 0 4px;scroll-snap-type:none}
  .sr9-t{width:calc((100% - 24px) / 3);min-width:280px;height:220px}
  .sr9-l{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
  .sr9-r:nth-child(2):before{display:none}
  .sr9-b{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sr9-bt{height:110px}
  .sr9-t:hover,.sr9-bt:hover{filter:brightness(1.08)}
  .sr9-r:hover .sr9-r-go{background:rgba(255,255,255,.16)}
}
/* results while typing */
.sr9-res{padding-top:16px;gap:22px}
.sr9-r-av{flex:none}
.sr9-r-av .ppl-av{display:grid;place-items:center;width:54px!important;height:54px!important;border-radius:50%!important;overflow:hidden;background:linear-gradient(150deg,#8f82ec,#5b4fe0);font-size:22px;font-weight:800;color:#fff}
.sr9-r-av .ppl-av img{width:100%;height:100%;object-fit:cover}
.sr9-res .grp5{margin-top:8px}
