/* chahar-barg — استایل بازی، محدودشده به #hb-stage
   تولید خودکار توسط tools/build-kit.mjs — دستی ویرایش نکنید. */
#hb-stage{font-family:var(--hb-font)}

#hb-stage{
  --ink:#0b0e12; --surface:#141a21; --surface2:#1b222b; --line:#28313d;
  --text:#e9eef5; --muted:#93a1b2; --felt:#1c6b50; --felt2:#2a9070;
  --gold:#e3c489; --red:#e0605a; --blue:#5aa9e6;
  --radius:14px; --radius-sm:9px; --wrap:1120px;
  --shadow:0 10px 30px rgba(0,0,0,.45);
}

#hb-stage,#hb-stage *, #hb-stage *::before, #hb-stage *::after{box-sizing:border-box}

#hb-stage{-webkit-text-size-adjust:100%}

#hb-stage{
  margin:0;background:var(--ink);color:var(--text);
  font-family:var(--hb-font),system-ui,"Segoe UI",Tahoma,sans-serif;
  font-size:16px;line-height:1.85;letter-spacing:-.1px;
  background-image:radial-gradient(1100px 520px at 85% -8%,rgba(42,144,112,.16),transparent 60%);
  background-attachment:fixed;
}

#hb-stage img{max-width:100%;height:auto}

#hb-stage a{color:var(--text);text-decoration:none}

#hb-stage a:hover{color:var(--gold)}

#hb-stage p{margin:0 0 1em}

#hb-stage h1, #hb-stage h2, #hb-stage h3, #hb-stage h4{font-weight:800;line-height:1.45;margin:0 0 .6em;letter-spacing:-.4px}

#hb-stage h1{font-size:clamp(1.6rem,4.4vw,2.5rem)}

#hb-stage h2{font-size:clamp(1.3rem,3vw,1.75rem);margin-top:1.6em}

#hb-stage h3{font-size:clamp(1.08rem,2.2vw,1.28rem);margin-top:1.4em}

#hb-stage ul, #hb-stage ol{padding-inline-start:1.3em;margin:0 0 1em}

#hb-stage li{margin:.35em 0}

#hb-stage strong{font-weight:800;color:#fff}

#hb-stage small{font-size:.85em}

#hb-stage hr{border:0;border-top:1px solid var(--line);margin:2rem 0}

#hb-stage .wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:16px}

#hb-stage .skip{position:absolute;inset-inline-start:12px;top:6px;background:var(--gold);color:#111;padding:.6rem 1rem;z-index:99;border-radius:8px;transform:translateY(-200%)}

#hb-stage .skip:focus{transform:none}

#hb-stage [hidden]{display:none!important}

#hb-stage .grid>*, #hb-stage .hrow>*, #hb-stage .fgrid>*, #hb-stage .modes>*, #hb-stage .pg-scores>*, #hb-stage .pg-summary>*{min-width:0}

#hb-stage [id]{scroll-margin-top:76px}

#hb-stage :focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:6px}



#hb-stage .site-header{position:sticky;top:0;z-index:40;background:rgba(11,14,18,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}

#hb-stage .hrow{display:flex;align-items:center;gap:14px;min-height:60px}

#hb-stage .logo{display:flex;align-items:center;gap:8px;font-weight:900;font-size:1.15rem;letter-spacing:-.6px;flex:none}

#hb-stage .logo img{display:block}

#hb-stage .logo:hover{color:var(--gold)}

#hb-stage .fbrand .logo{font-size:1.05rem}

#hb-stage .mainnav{display:flex;gap:2px;flex:1;flex-wrap:wrap}

#hb-stage .mainnav a{font-size:.92rem;padding:.45rem .6rem;border-radius:8px;color:#cdd7e3}

#hb-stage .mainnav a:hover{background:var(--surface2);color:#fff}

#hb-stage .mainnav a[aria-current]{color:var(--gold);background:rgba(227,196,137,.09)}

#hb-stage .navtoggle{display:none;background:var(--surface2);border:1px solid var(--line);border-radius:9px;width:42px;height:38px;cursor:pointer;padding:9px 10px}

#hb-stage .navtoggle span{display:block;height:2px;background:var(--text);margin:3px 0;border-radius:2px}

#hb-stage .hbtn{white-space:nowrap}

@media(max-width:900px){

  #hb-stage .navtoggle{display:block;order:3}

  #hb-stage .mainnav{order:4;flex-basis:100%;display:none;flex-direction:column;padding-bottom:10px}

  #hb-stage .mainnav.open{display:flex}

  #hb-stage .mainnav a{padding:.6rem .5rem;border-bottom:1px solid var(--line)}

  #hb-stage .hbtn{margin-inline-start:auto}

  #hb-stage .hrow{flex-wrap:wrap;padding-block:8px}


}



#hb-stage .btn{display:inline-flex;align-items:center;justify-content:center;gap:.4em;
  padding:.62rem 1.15rem;border-radius:11px;font-weight:800;font-size:.95rem;
  border:1px solid transparent;cursor:pointer;transition:transform .12s ease,background .15s ease}

#hb-stage .btn:hover{transform:translateY(-1px)}

#hb-stage .btn-play{background:linear-gradient(180deg,var(--felt2),var(--felt));color:#fff;box-shadow:0 6px 18px rgba(28,107,80,.35)}

#hb-stage .btn-play:hover{color:#fff}

#hb-stage .btn-gold{background:var(--gold);color:#14181e}

#hb-stage .btn-gold:hover{color:#14181e;background:#eed3a0}

#hb-stage .btn-ghost{background:transparent;border-color:var(--line);color:var(--text)}

#hb-stage .btn-ghost:hover{background:var(--surface2);color:#fff}

#hb-stage .btn-sm{padding:.42rem .8rem;font-size:.85rem;border-radius:9px}

#hb-stage .btn[disabled], #hb-stage .btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed;transform:none}



#hb-stage .crumbs{max-width:var(--wrap);margin:0 auto;padding:.7rem 16px 0;font-size:.82rem;color:var(--muted)}

#hb-stage .crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;margin:0;padding:0}

#hb-stage .crumbs li+li::before{content:"›";margin-inline-end:.4rem;color:#5c6a7a}

#hb-stage .crumbs a{color:var(--muted)}

#hb-stage .crumbs a:hover{color:var(--gold)}

#hb-stage section{padding-block:clamp(2rem,5vw,3.2rem)}

#hb-stage section.tight{padding-block:1.4rem}

#hb-stage .panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(1rem,2.4vw,1.6rem)}

#hb-stage .panel+.panel{margin-top:1rem}

#hb-stage .eyebrow{color:var(--gold);font-weight:800;font-size:.82rem;letter-spacing:.4px;margin:0 0 .5rem}

#hb-stage .lede{font-size:1.06rem;color:#cfd8e3}

#hb-stage .muted{color:var(--muted)}

#hb-stage .grid{display:grid;gap:14px}

#hb-stage .g2{grid-template-columns:repeat(2,1fr)}

#hb-stage .g3{grid-template-columns:repeat(3,1fr)}

#hb-stage .g4{grid-template-columns:repeat(4,1fr)}

@media(max-width:860px){
#hb-stage .g3, #hb-stage .g4{grid-template-columns:repeat(2,1fr)}

}

@media(max-width:560px){
#hb-stage .g2, #hb-stage .g3, #hb-stage .g4{grid-template-columns:1fr}

}

#hb-stage .tag{display:inline-block;background:var(--surface2);border:1px solid var(--line);border-radius:99px;padding:.16rem .6rem;font-size:.78rem;color:var(--muted)}

#hb-stage .tag.ok{color:#7fdcb4;border-color:rgba(42,144,112,.5);background:rgba(42,144,112,.12)}

#hb-stage .tag.warn{color:#e6c07b;border-color:rgba(227,196,137,.35);background:rgba(227,196,137,.08)}

#hb-stage .note{border-inline-start:3px solid var(--gold);background:rgba(227,196,137,.06);padding:.8rem 1rem;border-radius:0 var(--radius-sm) var(--radius-sm) 0;margin:1.2rem 0}

#hb-stage .note.green{border-color:var(--felt2);background:rgba(42,144,112,.08)}



#hb-stage .hero{padding-block:clamp(1.4rem,3vw,2.4rem) 0}

#hb-stage .hero h1{margin-bottom:.35em}

#hb-stage .hero .lede{max-width:62ch}

#hb-stage .herobar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:1rem}

#hb-stage .herostats{display:flex;gap:18px;flex-wrap:wrap;margin-top:1.1rem;color:var(--muted);font-size:.88rem}

#hb-stage .herostats b{color:var(--text);display:block;font-size:1.05rem}



#hb-stage .gameshell{background:linear-gradient(180deg,#12181f,#0d1218);border:1px solid var(--line);border-radius:18px;padding:clamp(.7rem,2vw,1.1rem);box-shadow:var(--shadow)}

#hb-stage .gameshell.compact{padding:.6rem}

#hb-stage #pasoor-game{min-height:420px}

#hb-stage .gamehint{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:.7rem;font-size:.84rem;color:var(--muted)}



#hb-stage .brandrow{display:grid;grid-template-columns:44px 1.6fr 1fr auto;gap:14px;align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px}

#hb-stage .brandrow+.brandrow{margin-top:10px}

#hb-stage .rankbadge{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-weight:900;background:var(--surface2);border:1px solid var(--line);color:var(--muted)}

#hb-stage .rankbadge.top{background:linear-gradient(180deg,#f0d9a8,#d8b877);color:#1a1d22;border-color:#e3c489}

#hb-stage .blogo{display:flex;align-items:center;gap:10px;min-width:0}

#hb-stage .logotile{background:#0f1318;border:1px solid var(--line);border-radius:10px;padding:6px 8px;display:grid;place-items:center;width:104px;height:46px;flex:none}

#hb-stage .logotile.light{background:#f4f6f8}

#hb-stage .logotile img{max-width:88px;max-height:34px;width:auto;height:auto;object-fit:contain}

#hb-stage .bname{font-weight:800;font-size:1rem;line-height:1.4}

#hb-stage .bname small{display:block;color:var(--muted);font-weight:400;font-size:.78rem}

#hb-stage .bscores{display:flex;gap:14px;flex-wrap:wrap;font-size:.82rem;color:var(--muted)}

#hb-stage .bscores b{display:block;color:var(--text);font-size:1rem}

#hb-stage .bactions{display:flex;flex-direction:column;gap:6px;align-items:stretch}

#hb-stage .scorepill{background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:.3rem .7rem;text-align:center;font-weight:900;font-size:1.05rem}

#hb-stage .scorepill span{display:block;font-size:.68rem;font-weight:400;color:var(--muted)}

@media(max-width:760px){

  #hb-stage .brandrow{grid-template-columns:38px 1fr;grid-template-areas:"rank brand" "scores scores" "act act";row-gap:10px}

  #hb-stage .rankbadge{grid-area:rank}
#hb-stage .blogo{grid-area:brand}
#hb-stage .bscores{grid-area:scores}
#hb-stage .bactions{grid-area:act;flex-direction:row}

  #hb-stage .bactions .btn{flex:1}


}



#hb-stage .meters{display:grid;gap:10px;margin:1rem 0}

#hb-stage .meter{display:grid;grid-template-columns:9.5rem 1fr 2.6rem;gap:10px;align-items:center;font-size:.88rem}

#hb-stage .meter .bar{background:var(--surface2);border-radius:99px;height:9px;overflow:hidden;border:1px solid var(--line)}

#hb-stage .meter .bar i{display:block;height:100%;background:linear-gradient(90deg,var(--felt2),var(--gold));border-radius:99px}

#hb-stage .meter b{text-align:end;font-size:.95rem}

@media(max-width:520px){
#hb-stage .meter{grid-template-columns:7.2rem 1fr 2.4rem;font-size:.82rem}

}



#hb-stage .tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}

#hb-stage table.data{width:100%;border-collapse:collapse;min-width:620px;font-size:.9rem}

#hb-stage table.data th, #hb-stage table.data td{padding:.7rem .8rem;text-align:start;border-bottom:1px solid var(--line);white-space:nowrap}

#hb-stage table.data th{background:var(--surface2);font-size:.82rem;color:var(--muted);font-weight:700;position:sticky;top:0}

#hb-stage table.data tbody tr:last-child td{border-bottom:0}

#hb-stage table.data tbody tr:hover{background:rgba(255,255,255,.02)}

#hb-stage .dash{color:#5f6d7d}



#hb-stage .faq details{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:.2rem .9rem;margin-bottom:8px}

#hb-stage .faq summary{cursor:pointer;font-weight:800;padding:.7rem 0;list-style:none}

#hb-stage .faq summary::-webkit-details-marker{display:none}

#hb-stage .faq summary::after{content:"+";float:inline-start;margin-inline-end:.5rem;color:var(--gold);font-weight:900}

#hb-stage .faq details[open] summary::after{content:"−"}

#hb-stage .faq p{margin:0 0 .9rem;color:#cbd5e1}



#hb-stage .comment{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:.9rem 1rem;margin-bottom:10px}

#hb-stage .comment header{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:.4rem}

#hb-stage .cname{font-weight:800}

#hb-stage .stars{color:var(--gold);letter-spacing:2px;font-size:.9rem}

#hb-stage .cdate{color:var(--muted);font-size:.78rem}

#hb-stage .comment p{margin:0;color:#cbd5e1;font-size:.94rem}

#hb-stage .comment.pending{border-style:dashed;opacity:.85}

#hb-stage .cform{display:grid;gap:10px;margin-top:1rem}

#hb-stage .cform label{font-size:.86rem;font-weight:700}

#hb-stage .cform input, #hb-stage .cform textarea, #hb-stage .cform select{width:100%;background:var(--surface2);border:1px solid var(--line);color:var(--text);
  border-radius:10px;padding:.6rem .8rem;font:inherit;font-size:.92rem}

#hb-stage .cform textarea{min-height:110px;resize:vertical}

#hb-stage .cform .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}

@media(max-width:560px){
#hb-stage .cform .row{grid-template-columns:1fr}

}

#hb-stage .formnote{font-size:.8rem;color:var(--muted)}



#hb-stage .site-footer{background:#090c10;border-top:1px solid var(--line);margin-top:3rem;padding-block:2.2rem 1.4rem;font-size:.9rem}

#hb-stage .fgrid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:26px}

@media(max-width:860px){
#hb-stage .fgrid{grid-template-columns:1fr 1fr}

}

@media(max-width:560px){
#hb-stage .fgrid{grid-template-columns:1fr}

}

#hb-stage .fcol h2{font-size:.95rem;margin:0 0 .7rem;color:var(--gold)}

#hb-stage .fcol ul{list-style:none;padding:0;margin:0}

#hb-stage .fcol li{margin:.35rem 0}

#hb-stage .fcol a{color:#b9c5d3;font-size:.88rem}

#hb-stage .fbrand p{color:var(--muted);font-size:.86rem;max-width:40ch;margin-top:.7rem}

#hb-stage .disclaimer{margin-top:1.6rem;padding-top:1rem;border-top:1px solid var(--line);color:#7d8b9b;font-size:.8rem;line-height:1.9}

#hb-stage .copy{color:#5f6d7d;font-size:.8rem;margin:0}



#hb-stage .prose{max-width:74ch}

#hb-stage .prose h2, #hb-stage .prose h3{scroll-margin-top:80px}

#hb-stage .toc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.2rem}

#hb-stage .toc h2{margin:0 0 .5rem;font-size:1rem;color:var(--gold)}

#hb-stage .toc ol{margin:0;padding-inline-start:1.2em}

#hb-stage .toc a{color:#c6d2e0;font-size:.92rem}

#hb-stage .cardlist{display:grid;gap:12px}

#hb-stage .linkcard{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.1rem}

#hb-stage .linkcard:hover{border-color:var(--gold);color:var(--text)}

#hb-stage .linkcard b{display:block;font-size:1.02rem;margin-bottom:.25rem}

#hb-stage .linkcard span{color:var(--muted);font-size:.88rem;display:block;line-height:1.75}

#hb-stage .kv{display:grid;grid-template-columns:auto 1fr;gap:.4rem 1rem;font-size:.92rem}

#hb-stage .kv dt{color:var(--muted)}

#hb-stage .kv dd{margin:0}

#hb-stage .authorbox{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem;margin-top:2rem;font-size:.88rem}

#hb-stage .authorbox .av{width:42px;height:42px;border-radius:12px;background:var(--surface2);display:grid;place-items:center;font-size:1.3rem;flex:none}

#hb-stage .updated{font-size:.82rem;color:var(--muted);margin-top:-.4rem}

#hb-stage .cta-band{background:linear-gradient(135deg,rgba(28,107,80,.35),rgba(20,26,33,.9));border:1px solid var(--line);border-radius:18px;padding:clamp(1.2rem,3vw,2rem);text-align:center}

#hb-stage .cta-band h2{margin-top:0}

#hb-stage .center{text-align:center}

#hb-stage .mt0{margin-top:0}
#hb-stage .mb0{margin-bottom:0}

#hb-stage .chips{display:flex;flex-wrap:wrap;gap:8px;margin:1rem 0}

#hb-stage .chips a{background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:.35rem .85rem;font-size:.86rem;color:#c6d2e0}

#hb-stage .chips a:hover{border-color:var(--gold);color:var(--gold)}



#hb-stage .pg{--card-w:58px;color:var(--text)}

#hb-stage .pg-top{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;margin-bottom:.7rem}

#hb-stage .pg-pills{display:flex;gap:6px;flex-wrap:wrap}

#hb-stage .pill{background:var(--surface2);border:1px solid var(--line);border-radius:99px;padding:.25rem .7rem;font-size:.78rem;color:var(--muted)}

#hb-stage .pill b{color:var(--text)}

#hb-stage .pg-icons{display:flex;gap:6px}

#hb-stage .iconbtn{width:34px;height:34px;border-radius:9px;background:var(--surface2);border:1px solid var(--line);color:var(--text);cursor:pointer;font-size:.95rem;display:grid;place-items:center}

#hb-stage .iconbtn:hover{background:#232c37}

#hb-stage .pg-scores{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:.8rem}

#hb-stage .pg-score{background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:.5rem .8rem}

#hb-stage .pg-score.you{border-color:rgba(42,144,112,.55)}

#hb-stage .pg-score .l{font-size:.75rem;color:var(--muted)}

#hb-stage .pg-score .v{font-size:1.5rem;font-weight:900;line-height:1.2}

#hb-stage .pg-score .s{font-size:.74rem;color:var(--muted)}

#hb-stage .felt{background:radial-gradient(120% 100% at 50% 0%,#22775a 0%,#15503c 55%,#103b2c 100%);
  border:1px solid #0d3327;border-radius:16px;padding:.9rem .7rem;min-height:210px;display:grid;gap:.6rem;align-content:space-between}

#hb-stage .seat{display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:.8rem;color:#cfe6da}

#hb-stage .seat .who{background:rgba(0,0,0,.28);border-radius:99px;padding:.18rem .7rem}

#hb-stage .seat .who.turn{background:var(--gold);color:#15181d;font-weight:800}

#hb-stage .minifan{display:flex;gap:3px}

#hb-stage .tablecards{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;min-height:84px;align-items:center;padding:.3rem}

#hb-stage .tableempty{color:#a9cbbd;font-size:.85rem;text-align:center}

#hb-stage .pg-msg{text-align:center;font-size:.88rem;margin:.7rem 0 .3rem;min-height:1.6em;color:#cfd8e3}

#hb-stage .pg-notice{text-align:center;font-size:.86rem;color:var(--gold);margin:0 0 .4rem;font-weight:700}

#hb-stage .pg-hand{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:.6rem;min-height:96px}

#hb-stage .pg-bar{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin-top:.7rem}

#hb-stage .pg-sum{font-size:.86rem;color:var(--muted);width:100%;text-align:center}

#hb-stage .pg-sum .ok{color:#7fdcb4;font-weight:800}

#hb-stage .pg-sum .no{color:var(--red);font-weight:800}

#hb-stage .pg-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:.9rem}

#hb-stage .pg-cell{background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:.4rem;text-align:center}

#hb-stage .pg-cell .l{font-size:.72rem;color:var(--muted)}

#hb-stage .pg-cell .v{font-weight:900}

#hb-stage .pg-log{margin-top:.8rem;font-size:.84rem}

#hb-stage .pg-log summary{cursor:pointer;color:var(--gold);font-weight:700}

#hb-stage .pg-log div{border-bottom:1px dashed var(--line);padding:.35rem 0;color:#bcc8d6}

#hb-stage .pg-menu{display:grid;gap:14px}

#hb-stage .pg-menu h2{margin:0;font-size:1.15rem}

#hb-stage .optrow{display:flex;gap:8px;flex-wrap:wrap}

#hb-stage .opt{background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:.45rem .9rem;cursor:pointer;font:inherit;font-size:.88rem;color:var(--text)}

#hb-stage .opt[aria-pressed="true"]{background:var(--felt);border-color:var(--felt2);color:#fff;font-weight:800}

#hb-stage .modes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}

@media(max-width:620px){
#hb-stage .modes{grid-template-columns:1fr}

}

#hb-stage .mode{text-align:start;background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:.8rem;cursor:pointer;color:var(--text);font:inherit}

#hb-stage .mode:hover{border-color:var(--felt2)}

#hb-stage .mode b{display:block;font-size:1rem;margin-bottom:.2rem}

#hb-stage .mode span{font-size:.8rem;color:var(--muted);line-height:1.7}



#hb-stage .pcard{position:relative;width:var(--card-w);aspect-ratio:5/7;border-radius:8px;background:#fdfbf6;color:#1a1d22;
  border:1px solid #d9d2c4;box-shadow:0 2px 6px rgba(0,0,0,.35);display:block;padding:0;font:inherit;flex:none}

#hb-stage .pcard .r{position:absolute;top:3px;inset-inline-start:5px;font-weight:900;font-size:.82rem;line-height:1}

#hb-stage .pcard .s{position:absolute;bottom:3px;inset-inline-end:5px;font-size:.8rem;line-height:1}

#hb-stage .pcard .c{position:absolute;inset:0;display:grid;place-items:center;font-size:1.35rem}

#hb-stage .pcard.red{color:#c4322c}

#hb-stage .pcard.sm{--card-w:30px}

#hb-stage .pcard.lg{--card-w:66px}

#hb-stage .pcard.back{background:repeating-linear-gradient(45deg,#22456b,#22456b 5px,#1a3555 5px,#1a3555 10px);border-color:#16283f}

#hb-stage button.pcard{cursor:pointer}

#hb-stage button.pcard:hover{transform:translateY(-4px)}

#hb-stage .pcard{transition:transform .12s ease,box-shadow .12s ease}

#hb-stage .pcard.playable{box-shadow:0 0 0 2px rgba(127,220,180,.75),0 4px 12px rgba(0,0,0,.4)}

#hb-stage .pcard.selected{transform:translateY(-6px);box-shadow:0 0 0 3px var(--gold),0 6px 16px rgba(0,0,0,.5)}

#hb-stage .pcard.hl{box-shadow:0 0 0 2px var(--gold)}

#hb-stage .pcard.dis{opacity:.42;cursor:not-allowed}

#hb-stage .pcard.dis:hover{transform:none}

@media(max-width:480px){
#hb-stage .pg{--card-w:50px}
#hb-stage .pcard.lg{--card-w:56px}
#hb-stage .pcard.sm{--card-w:26px}

}



#hb-stage .pmodal{position:fixed;inset:0;background:rgba(5,8,11,.78);display:grid;place-items:center;z-index:60;padding:16px}

#hb-stage .pmodal .box{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:1.4rem;max-width:460px;width:100%;box-shadow:var(--shadow)}

#hb-stage .pmodal h2{margin-top:0;text-align:center}

#hb-stage .pmodal .btns{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:1rem}

#hb-stage .scoretable{width:100%;font-size:.86rem;border-collapse:collapse;margin:.6rem 0}

#hb-stage .scoretable td{padding:.25rem 0;border-bottom:1px dashed var(--line)}

#hb-stage .scoretable td:last-child{text-align:end;font-weight:800}

@media(prefers-reduced-motion:reduce){
#hb-stage,#hb-stage *{animation:none!important;transition:none!important}

}

