/* Responsive client polish — 2026-11-05 */
.pl-search-toggle{display:none;align-items:center;justify-content:center;border:0;background:transparent;color:#d9c2fa;font-size:22px;cursor:pointer;min-width:40px;height:40px;border-radius:10px}
.pl-search-toggle:focus-visible{outline:2px solid #b18bea;outline-offset:2px}
.pl-side-section{display:flex;flex-direction:column;gap:6px;flex:0 0 auto;min-width:0}
.pl-side-section-label{font:700 11px/1.6 inherit;color:#9c85b5;margin:4px 11px 6px;display:none}
.pl-sidebar.is-expanded .pl-side-section-label,.pl-sidebar.is-open .pl-side-section-label{display:block}
.pl-side-personal{padding-bottom:11px;border-bottom:1px solid #51405d;margin-bottom:7px}
.pl-sidebar .pl-side-section .pl-side-item{flex:0 0 auto}
/* Heading links must inherit their h2's computed font size across the theme's
   global h2 > a rules, including @media(max-width:991px) (30px). */
.pl-section-title-link,.ad-section-head .pl-section-title-link{
 color:inherit!important;text-decoration:none!important;
 font-size:inherit!important;line-height:inherit!important
}
.pl-section-title-link:hover{color:#be9eff!important;text-decoration:underline!important;text-underline-offset:5px}
.pl-game-hero{border-radius:17px!important;overflow:hidden!important}
.pl-game-hero>.pl-game-embed,.pl-game-hero>.pl-game-cover,.pl-game-hero>.pl-primary-video-slot{
 border-radius:16px 16px 0 0!important;overflow:hidden!important
}
.pl-game-hero>.pl-primary-video-slot{object-fit:contain!important}
.pl-game-hero>.pl-game-embed iframe,.pl-game-hero>.pl-game-embed video{border-radius:16px 16px 0 0!important}
.pl-detail-main .pl-game-social button,.pl-detail-main .pl-game-social a{
 border:0!important;background:transparent!important;box-shadow:none!important;
 padding:7px 8px!important;border-radius:8px!important;color:#e9ddf3!important;gap:5px!important;
}
.pl-detail-main .pl-game-social button:hover,.pl-detail-main .pl-game-social a:hover{
 background:transparent!important;color:#d4aeff!important;
}
.pl-game-social [data-pl-action="like"]{flex-direction:row!important}
.pl-game-social [data-pl-count="likes"],.pl-game-social [data-pl-count="comments"]{order:2;font-variant-numeric:tabular-nums}
.pl-game-social [data-pl-action="like"] i,.pl-game-social .pl-game-comment-jump i{order:1}
.pl-game-social .pl-pc-mobile-jump{
 background:#49315c!important;border:1px solid #795895!important;color:#fff!important;
 border-radius:10px!important;font-size:12px!important;font-weight:800!important;
 padding:9px 13px!important;cursor:pointer
}
.pl-game-social .pl-pc-mobile-jump{display:none!important}
.pl-primary-next-video{display:inline-flex;align-items:center;justify-content:center;
 margin:9px 5px;padding:8px 13px;border:1px solid #77599d;border-radius:9px;
 background:#39234a;color:#f8eeff;cursor:pointer;font-size:12px}
.pl-primary-next-video[hidden]{display:none!important}
.pl-primary-next-video:hover{background:#5c3974}
.pl-aside-tabbar:not(.has-overflow){overflow-x:hidden!important;padding-bottom:5px!important}
.pl-aside-scroll-rail[hidden]{display:none!important}
.pl-pc-mobile-jump.pl-aside-tab{display:none!important}
.pl-my-comments-page{width:min(920px,calc(100% - 34px));margin:25px auto;padding:24px 0 70px;min-height:65vh;direction:rtl;color:#f3edff}
.pl-my-comments-page h1{font-size:clamp(23px,3vw,32px);font-weight:900;margin:0 0 8px}
.pl-my-comments-lead{color:#bcaecc;line-height:1.9;margin-bottom:25px;font-size:14px}
.pl-my-comment{border:1px solid #4f405e;border-radius:14px;background:#231c2b;padding:15px 19px;margin:11px 0}
.pl-my-comment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pl-my-comment-heading a,.pl-my-comments-login{color:#ceadff;font-weight:850}
.pl-my-comment-heading span{color:#ada1b9;font-size:11px}
.pl-my-comment-body{white-space:pre-wrap;overflow-wrap:anywhere;color:#ece2f3;line-height:2;margin:12px 0 0;font-size:14px}
.pl-my-comments-pager button{padding:11px 24px;border-radius:11px;background:#55406e;color:#fff;border:1px solid #8d65bc;cursor:pointer}
.pl-my-comments-error{color:#ffb5c2}
@media(max-width:850px){
 body>.pl-topbar .pl-topbar-search{width:40px!important;min-width:40px!important;
  height:44px;margin:0 auto!important;justify-self:center;display:flex;align-items:center;
  border-radius:12px;z-index:1190;transition:width .23s ease,background .23s ease}
 body>.pl-topbar .pl-search-toggle{display:flex;flex:none}
 body>.pl-topbar .pl-topbar-search:not(.is-open) .pl-search-input{
  max-width:0!important;min-width:0!important;width:0!important;opacity:0!important;
  pointer-events:none!important;padding:0!important;border:0!important
 }
 body>.pl-topbar .pl-topbar-search .pl-search-input{
  transition:width .25s ease,opacity .15s ease,max-width .25s ease!important
 }
 body>.pl-topbar .pl-topbar-search .pl-search-icon{display:none!important}
 body>.pl-topbar .pl-topbar-search.is-open{
  position:fixed!important;top:8px;left:12px;right:12px;width:calc(100vw - 24px)!important;
  max-width:none!important;background:#211b2c;box-shadow:0 10px 35px #0009;
  border:1px solid #8066a5;z-index:1300;border-radius:12px;padding:0 7px
 }
 body>.pl-topbar .pl-topbar-search.is-open .pl-search-input{
  flex:1;min-width:0!important;max-width:100%!important;width:100%!important;
  opacity:1!important;pointer-events:auto!important;height:40px!important;
  padding:8px 12px!important;border:0!important;background:transparent!important;
 }
 body>.pl-topbar .pl-topbar-search .pl-search-results{top:50px;right:0;left:0}
 .pl-game-social .pl-pc-mobile-jump{display:inline-flex!important}
 .pl-detail-main .pl-game-social{flex-wrap:wrap!important;justify-content:space-between!important}
}
@media(prefers-reduced-motion:reduce){body>.pl-topbar .pl-topbar-search,
 body>.pl-topbar .pl-topbar-search .pl-search-input{transition:none!important}}


/* 2026-11-06 public layout adjustments: global section typography */
main h2,main .pl-section-heading h2,main .ad-section-head h2,
main .profile-section-heading h2,main .profile-support-heading h2{
  font-size:clamp(14px,1vw,16px)!important;line-height:1.45!important
}
main h3{font-size:clamp(15px,1.2vw,19px)!important}
.pl-top-action.pl-account-action{overflow:hidden;flex:none}
.pl-top-action .pl-account-avatar{height:100%;width:100%;border-radius:50%;
 object-fit:cover;display:block;border:0;background:transparent}
.pl-game-hero>.pl-direct-trailer{aspect-ratio:16/9!important;min-height:0!important;
 background:#08080e;overflow:hidden;position:relative}
.pl-game-hero>.pl-direct-trailer video,
.pl-game-hero>.pl-direct-trailer iframe{display:block;width:100%;height:100%;
 min-height:0;position:absolute;inset:0;border:0;object-fit:contain}
.pl-game-hero>.pl-direct-trailer video{background:#08080e}
/* Home only: one double-width/double-height browser game plus four smaller games. */
[data-homepage-sections] .pl-home-mosaic-track{display:flex;width:100%;max-width:100%;
 overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;
 overscroll-behavior-inline:contain;gap:12px}
[data-homepage-sections] .pl-home-mosaic-track::-webkit-scrollbar{display:none}
[data-homepage-sections] .pl-home-mosaic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;aspect-ratio:3.38/1;
 width:min(760px,100%);min-width:min(760px,100%);flex:0 0 min(760px,100%);min-height:0;scroll-snap-align:start;
 direction:rtl}
[data-homepage-sections] .pl-home-mosaic .pl-discovery-card{
 aspect-ratio:auto!important;min-height:0!important;height:100%;
 border-radius:13px!important}
[data-homepage-sections] .pl-home-mosaic .pl-discovery-card:first-child{
 grid-column:span 2;grid-row:span 2}
[data-homepage-sections] .pl-home-mosaic .pl-discovery-art{
 position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto!important;
 object-fit:cover;border-radius:0!important}
[data-homepage-sections] .pl-home-mosaic .pl-discovery-meta{
 position:absolute;inset:auto 0 0;background:linear-gradient(transparent,#100c19ee);
 padding:28px 12px 10px;opacity:0;transform:translateY(4px);
 transition:opacity .2s,transform .2s}
[data-homepage-sections] .pl-home-mosaic .pl-discovery-card:hover .pl-discovery-meta,
[data-homepage-sections] .pl-home-mosaic .pl-discovery-card:focus-visible .pl-discovery-meta{
 opacity:1;transform:none}
[data-homepage-sections] .pl-home-mosaic .pl-discovery-meta strong{font-size:clamp(12px,1.2vw,18px)}
[data-homepage-sections] .pl-home-mosaic .pl-card-chip{display:none}
[data-homepage-sections] .pl-home-mosaic-controls{display:flex;gap:6px;margin-inline-start:auto}
[data-homepage-sections] .pl-home-mosaic-controls button{height:30px;width:32px;cursor:pointer;
 border:1px solid #6f4b94;background:#241b32;color:#f0dbff;border-radius:8px;font-size:20px}
[data-homepage-sections] .pl-home-mosaic-controls button:disabled{opacity:.4;cursor:default}
[data-homepage-sections] .pl-home-android-grid{margin-bottom:8px;min-width:0}
[data-homepage-sections] .pl-home-android-grid .ad-card{background:transparent}
[data-homepage-sections] .pl-home-android-grid .ad-card img{
 aspect-ratio:1/1;height:auto;position:static;border-radius:17px!important}
[data-homepage-sections] .pl-home-ordered-rail .pl-discovery-card{
 border-top-left-radius:15px!important;border-top-right-radius:15px!important}
@media(max-width:850px){
 [data-homepage-sections] .pl-home-mosaic{min-height:170px}
}
@media(max-width:650px){
 main h2,main .pl-section-heading h2,main .ad-section-head h2,
 main .profile-section-heading h2,main .profile-support-heading h2{font-size:13px!important}
 main h3{font-size:14px!important}
 [data-homepage-sections] .pl-home-mosaic{grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(4,minmax(0,1fr));aspect-ratio:.87/1;min-height:0}
 [data-homepage-sections] .pl-home-mosaic .pl-discovery-card{min-height:0!important}
 [data-homepage-sections] .pl-home-mosaic .pl-discovery-meta{opacity:1;transform:none;
  padding:15px 7px 6px}
 [data-homepage-sections] .pl-home-mosaic .pl-discovery-meta small{display:none}
 [data-homepage-sections] .pl-home-mosaic .pl-discovery-meta strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 [data-homepage-sections] .pl-home-mosaic .pl-discovery-meta{transition:none}
}


/* 2026-11-06 magazine fix: show every API-returned item up to the admin limit,
   including articles whose URL slugs are Persian, in a fully visible grid. */
[data-homepage-sections] [data-pl-home-section="magazine"] .pl-home-magazine-grid{
 display:grid!important;grid-template-columns:repeat(auto-fill,minmax(185px,1fr))!important;
 grid-auto-flow:row!important;grid-auto-columns:auto!important;
 gap:10px!important;overflow:visible!important;padding:0!important;scroll-snap-type:none!important;
 min-width:0;width:100%;box-sizing:border-box
}
[data-homepage-sections] .pl-home-magazine-grid>.pl-magazine-card{
 height:auto!important;min-height:0!important;aspect-ratio:1.68!important;
 width:100%!important;max-width:100%!important;position:relative;
 scroll-snap-align:none!important
}
[data-homepage-sections] .pl-home-magazine-grid>.pl-magazine-card .pl-discovery-art{
 position:absolute;inset:0;display:block;width:100%;height:100%;
 aspect-ratio:auto!important;object-fit:cover
}
[data-homepage-sections] .pl-home-magazine-grid>.pl-magazine-card .pl-discovery-meta{
 position:absolute;inset:auto 0 0;
 background:linear-gradient(transparent,#150e11f5);
 padding:24px 10px 9px
}
[data-homepage-sections] .pl-home-magazine-grid>.pl-magazine-card .pl-discovery-meta strong{
 font-size:12px!important
}
@media(max-width:540px){
 [data-homepage-sections] [data-pl-home-section="magazine"] .pl-home-magazine-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important
 }
}


/* 2026-11-06: the PC catalogue heading lives outside <main>, so main h2
   cannot override the legacy 30px .pl-download-page .display-four rule. */
body .pl-download-page h2.display-four{
 font-size:16px!important;
 line-height:1.5!important
}
@media(max-width:650px){
 body .pl-download-page h2.display-four{
  font-size:13px!important
 }
}


/* 2026-11-06: editor-approved section heading size. Keep child links inheriting
   from h2; scope to section headings rather than article/card headings. */
[data-homepage-sections] .pl-section-heading h2,
main .ad-section-head h2,
main .profile-section-heading h2,
main .profile-support-heading h2,
body .pl-download-page h2.display-four{
 font-size:20px!important;
 line-height:1.45!important
}
