/*
Theme Name: پولینو
Description: قالب تیرهٔ موبایل‌اول برای پلتفرم تورنومنت بازی پولینو (همراه با افزونهٔ «میدان پولینو»)
Version: 1.0.0
Author: Nirvana Agency
*/

/* توکن‌های طراحی در افزونه (arena.css) تعریف شده‌اند؛ این فایل چیدمان قالب را اضافه می‌کند */

/* ------- هدر ------- */
.th-header{position:sticky;top:0;z-index:50;background:rgba(7,10,18,.78);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--pl-line);padding-top:env(safe-area-inset-top)}
.th-bar{max-width:1060px;margin:0 auto;display:flex;align-items:center;gap:14px;padding:10px 16px;min-height:62px}
.th-brand{display:inline-flex;align-items:center;gap:10px;font-weight:900;font-size:20px;flex:none}
.th-brand img{border-radius:11px;display:block;object-fit:contain;width:38px;height:38px}
.th-nav{display:none;margin-inline-start:18px;gap:4px;flex:1}
.th-nav a{padding:8px 14px;border-radius:12px;color:var(--pl-muted);font-weight:700;transition:background .2s,color .2s}
.th-nav a:hover{background:rgba(255,255,255,.07);color:var(--pl-text)}
.th-nav a.on{background:rgba(124,58,237,.22);color:#fff}
.th-actions{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.th-acc{display:none}
.th-logout{display:none;color:var(--pl-muted);font-size:13px}
.th-main{min-height:60vh;padding-bottom:84px}

/* ------- تب‌بار موبایل ------- */
.th-tabbar{position:fixed;inset-inline:0;bottom:0;z-index:60;display:flex;justify-content:space-around;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:rgba(10,14,28,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid var(--pl-line)}
.th-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border-radius:14px;color:var(--pl-dim);font-size:11.5px;font-weight:700;-webkit-tap-highlight-color:transparent;min-height:52px;justify-content:center}
.th-tabbar a.on{color:#fff}
.th-tabbar a.on .pl-ic{color:var(--pl-cyan);filter:drop-shadow(0 0 8px rgba(34,211,238,.55))}
.th-tabbar a:active{background:rgba(255,255,255,.06)}
.pl-game-page .th-tabbar,.pl-game-page .th-header,.pl-game-page .th-footer{display:none}
.pl-game-page .th-main{padding-bottom:20px}

/* ------- قهرمان صفحهٔ اصلی ------- */
.th-hero{position:relative;overflow:hidden;padding:26px 0 8px}
.th-orb{position:absolute;border-radius:50%;filter:blur(70px);opacity:.5;pointer-events:none;animation:thFloat 12s ease-in-out infinite}
.th-orb.o1{width:300px;height:300px;background:#7C3AED;top:-80px;inset-inline-end:-60px}
.th-orb.o2{width:260px;height:260px;background:#22D3EE;top:160px;inset-inline-start:-90px;animation-delay:-5s;opacity:.32}
@keyframes thFloat{50%{transform:translate(20px,26px) scale(1.08)}}
.th-hero-in{position:relative;display:grid;gap:18px;padding-top:6px;padding-bottom:12px}
.th-hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.th-hero-copy h1{margin:0;font-size:30px;line-height:1.55;font-weight:900;background:linear-gradient(180deg,#fff,#c9d3f5);-webkit-background-clip:text;background-clip:text;color:transparent}
.th-hero-copy p{margin:0;color:var(--pl-muted);font-size:15.5px;line-height:1.95}
.th-hero-cta{display:flex;flex-wrap:wrap;gap:10px;width:100%;margin-top:6px}
.th-hero-cta .pl-btn{flex:1 1 180px}
.th-hero-card{margin:0}

/* ------- بخش‌ها ------- */
.th-sec{margin-top:34px}
.th-how{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.th-how-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:16px 14px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));border:1px solid var(--pl-line)}
.th-how-card .pl-ic{color:var(--pl-cyan)}
.th-how-card h3{margin:2px 0 0;font-size:15.5px}
.th-how-card p{margin:0;color:var(--pl-muted);font-size:12.8px;line-height:1.8}
.th-how-no{position:absolute;top:12px;inset-inline-end:14px;font-size:30px;font-weight:900;color:rgba(255,255,255,.07)}
.th-stages{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 14px;margin-inline:-16px;padding-inline:16px;scrollbar-width:none}
.th-stages::-webkit-scrollbar{display:none}
.th-stage{position:relative;flex:0 0 150px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px 14px;border-radius:20px;background:linear-gradient(160deg,rgba(124,58,237,.2),rgba(34,211,238,.06) 70%),rgba(255,255,255,.03);border:1px solid var(--pl-line2)}
.th-stage .pl-ic{color:var(--pl-violet2)}
.th-stage b{font-size:15px;line-height:1.5}
.th-stage small{color:var(--pl-muted)}
.th-stage-no{position:absolute;top:10px;inset-inline-end:12px;font-weight:900;font-size:26px;color:rgba(255,255,255,.1)}
.th-faq{display:flex;flex-direction:column;gap:8px}
.th-faq details{border-radius:16px;background:rgba(255,255,255,.04);border:1px solid var(--pl-line);padding:0 16px}
.th-faq summary{cursor:pointer;list-style:none;padding:14px 0;font-weight:800;display:flex;justify-content:space-between;gap:10px;align-items:center}
.th-faq summary::-webkit-details-marker{display:none}
.th-faq summary::after{content:"+";font-size:22px;color:var(--pl-cyan);transition:transform .2s}
.th-faq details[open] summary::after{transform:rotate(45deg)}
.th-faq p{margin:0 0 14px;color:var(--pl-muted);line-height:1.95}
.th-final{margin:38px 0 10px;text-align:center;padding:30px 18px;border-radius:26px;border:1px solid var(--pl-line2);background:radial-gradient(500px 220px at 50% 0,rgba(124,58,237,.35),transparent 70%),rgba(255,255,255,.03)}
.th-final h2{margin:0 0 6px;font-size:24px;font-weight:900}.th-final p{margin:0 0 18px;color:var(--pl-muted)}

/* ------- فروشگاه ------- */
.th-shop-grid{display:grid;grid-template-columns:1fr;gap:12px}
.th-pack{position:relative;display:flex;flex-direction:column;gap:8px;padding:18px;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));border:1px solid var(--pl-line);transition:transform .2s var(--pl-ease),border-color .2s,box-shadow .2s}
.th-pack:hover{transform:translateY(-3px);border-color:rgba(124,58,237,.6);box-shadow:0 18px 40px rgba(124,58,237,.18)}
.th-pack.pop{border-color:rgba(251,191,36,.55);box-shadow:0 0 0 1px rgba(251,191,36,.2),0 16px 40px rgba(251,191,36,.1)}
.th-pack-badge{position:absolute;top:14px;inset-inline-start:14px;padding:3px 12px;border-radius:99px;background:var(--pl-grad-gold);color:#2b1a00;font-size:12px;font-weight:900;z-index:2}
.th-pack-off{position:absolute;top:14px;inset-inline-end:14px;padding:3px 10px;border-radius:99px;background:#E11D48;color:#fff;font-size:12px;font-weight:800;z-index:2}
.th-pack-art{display:grid;place-items:center;min-height:120px;border-radius:18px;background:radial-gradient(circle at 50% 40%,rgba(251,191,36,.2),transparent 65%)}
.th-pack-art img{max-height:150px;object-fit:contain;border-radius:14px}
.th-coinstack{position:relative;display:inline-grid;place-items:center;color:var(--pl-gold);filter:drop-shadow(0 8px 18px rgba(251,191,36,.45))}
.th-coinstack i{position:absolute;width:62px;height:62px;border-radius:50%;border:2px solid rgba(251,191,36,.5);background:rgba(251,191,36,.08)}
.th-coinstack i:nth-child(1){transform:translate(-26px,10px)}.th-coinstack i:nth-child(2){transform:translate(26px,12px)}.th-coinstack i:nth-child(3){transform:translate(0,-8px)}
.th-coinstack .pl-ic{position:relative;z-index:1}
.th-coinstack.big i{width:84px;height:84px}
.th-pack-title{margin:4px 0 0;font-size:17px;font-weight:800}
.th-pack-coins{font-size:15px;color:var(--pl-muted)}
.th-pack-coins b{font-size:28px;color:var(--pl-gold);font-weight:900;margin-inline-end:4px}
.th-pack-coins em{font-style:normal;color:var(--pl-green);font-weight:800;font-size:13px;margin-inline-start:8px}
.th-pack-ex{margin:0;color:var(--pl-muted);font-size:13px}
.th-pack-price{display:flex;align-items:baseline;gap:8px;margin-top:auto}
.th-pack-price b{font-size:21px;font-weight:900}.th-pack-price s{color:var(--pl-dim);font-size:13px}.th-pack-price small{color:var(--pl-muted)}
.th-prod{display:flex;flex-direction:column;gap:6px}
.th-prod .pl-chip{align-self:flex-start}
.th-prod-art{min-height:170px;margin-bottom:6px}
.th-prod-coins{display:flex;align-items:center;gap:8px;font-size:18px;color:var(--pl-muted);margin:6px 0}
.th-prod-coins b{font-size:42px;font-weight:900;color:var(--pl-gold);line-height:1.2}
.th-buy{margin-top:14px;display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px dashed var(--pl-line2)}
.th-qty{display:flex;align-items:center;justify-content:center;gap:0;align-self:center;border-radius:16px;border:1.5px solid var(--pl-line2);overflow:hidden}
.th-qty button{width:56px;height:52px;background:rgba(255,255,255,.06);border:0;color:#fff;font-size:24px;cursor:pointer}
.th-qty input{width:70px;height:52px;text-align:center;background:transparent;border:0;color:#fff;font-weight:900;font-size:20px;outline:none;-moz-appearance:textfield}
.th-qty input::-webkit-outer-spin-button,.th-qty input::-webkit-inner-spin-button{-webkit-appearance:none}
.th-sum{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;color:var(--pl-muted)}
.th-sum b{font-size:24px;color:var(--pl-text);font-weight:900}.th-sum small{font-size:13px;color:var(--pl-muted)}

/* ------- صفحه‌های متنی ------- */
.pl-prose{padding:22px 18px}
.pl-prose.pl-card{margin-top:6px}
.pl-prose .pl-h1{margin-bottom:12px}
.pl-prose-body{color:#d6def6;line-height:2}
.pl-prose-body h2{font-size:19px;margin:24px 0 8px;color:#fff;font-weight:900}
.pl-prose-body h3{font-size:16.5px;margin:18px 0 6px;color:#fff}
.pl-prose-body ul,.pl-prose-body ol{padding-inline-start:22px;margin:8px 0}
.pl-prose-body li{margin:6px 0}
.pl-prose-body a{color:var(--pl-cyan);font-weight:700}
.pl-prose-body img{border-radius:14px;height:auto}
.th-cover{width:100%;border-radius:18px;margin:12px 0}
.th-blog{display:grid;gap:12px;grid-template-columns:1fr;margin-top:14px}
.th-blog-card img{border-radius:14px;margin-bottom:8px}

/* ------- فوتر ------- */
.th-footer{margin-top:40px;border-top:1px solid var(--pl-line);background:rgba(0,0,0,.28);padding-top:26px;padding-bottom:84px}
.th-foot-grid{display:grid;gap:22px;grid-template-columns:1fr;padding-bottom:10px}
.th-foot-grid > div{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.th-foot-grid b{font-weight:900;margin-bottom:2px}
.th-foot-grid a:not(.th-brand){color:var(--pl-muted)}
.th-foot-grid a:not(.th-brand):hover{color:#fff}
.th-copy{text-align:center;color:var(--pl-dim);font-size:12.5px;padding:10px 16px}

@media (min-width:760px){
  .th-nav{display:flex}
  .th-tabbar{display:none}
  .th-main{padding-bottom:0}
  .th-footer{padding-bottom:10px}
  .th-acc{display:inline-flex}.th-logout{display:inline}
  .th-hero{padding-top:44px}
  .th-hero-in{grid-template-columns:1.1fr .9fr;align-items:center;gap:36px}
  .th-hero-copy h1{font-size:40px}
  .th-hero-cta .pl-btn{flex:0 0 auto}
  .th-how{grid-template-columns:repeat(4,1fr)}
  .th-stage{flex:1 1 0}
  .th-stages{margin-inline:0;padding-inline:0;overflow:visible}
  .th-shop-grid{grid-template-columns:repeat(3,1fr)}
  .th-foot-grid{grid-template-columns:1.4fr 1fr 1fr}
  .th-blog{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:380px){
  .th-brand-name{font-size:17px}
  .th-bar{gap:8px;padding-inline:12px}
}

.th-ph{display:grid;place-items:center;width:100%;height:120px;color:var(--pl-violet2);opacity:.7}
.th-gift{display:flex;align-items:center;gap:6px;color:var(--pl-muted);font-size:13.5px}.th-gift b{color:var(--pl-gold);font-size:18px}
.th-pack-art img{width:100%;max-height:170px;object-fit:contain}

.th-trust{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;padding:6px 16px 12px}.th-trust img{max-height:90px;width:auto;background:#fff;border-radius:10px;padding:4px}
