/* الوضع الطولي: مسرح 720×1280، والخلفية هي السجادة الطولية (بتتلوّن مع الثيم) */
html[data-orient="portrait"] .stage{width:720px;height:1280px}
html[data-orient="portrait"] .bg{background-image:url(../assets/img/bg-portrait.webp)!important}
html[data-game="tarneeb"][data-orient="portrait"] #v-table>.bg,html[data-game="tarneeb"][data-orient="portrait"] #v-lobby>.bg{background-image:url(../assets/img/bg-tarneeb-portrait.webp)!important}
html[data-orient="portrait"] .deco{display:block}

/* القائمة */
html[data-orient="portrait"] #v-menu .logo{top:calc(140px + var(--py,0px) * .4);width:560px}
html[data-orient="portrait"] .menu{top:calc(620px + var(--py,0px) * .6);width:560px;gap:18px}
html[data-orient="portrait"] .menu .btn{height:76px;font-size:34px}
html[data-orient="portrait"] .me{top:44px;right:36px}
html[data-orient="portrait"] .topbar-l{top:44px;left:36px}
html[data-orient="portrait"] .studio{bottom:70px}

/* اللوبي */
html[data-orient="portrait"] .lobby-head{top:130px}
html[data-orient="portrait"] .lobby-mode{font-size:38px;white-space:nowrap}
html[data-orient="portrait"] .code-box{flex-wrap:wrap;justify-content:center;max-width:620px}
html[data-orient="portrait"] .seats{top:380px;grid-template-columns:repeat(2,318px);gap:16px 20px}
html[data-orient="portrait"] .lobby-foot{bottom:170px}
html[data-orient="portrait"] .lobby-foot .btn{width:520px;height:76px}
html[data-orient="portrait"] .exit-l{top:44px;right:36px}

/* الطاولة */
html[data-orient="portrait"] .hud{width:340px;top:14px;right:14px}
html[data-orient="portrait"] .score{width:340px;top:14px;left:14px}
html[data-orient="portrait"] .s-top{top:150px}
html[data-orient="portrait"] .s-left,html[data-orient="portrait"] .s-right{top:calc(300px + var(--py,0px))}
html[data-orient="portrait"] .s-left{left:14px}
html[data-orient="portrait"] .s-right{right:14px}
html[data-orient="portrait"] #tag-2{top:160px;left:calc(50% + 180px);transform:translateX(-50%)}
html[data-orient="portrait"] #tag-1{top:calc(570px + var(--py,0px));right:10px}
html[data-orient="portrait"] #tag-3{top:calc(570px + var(--py,0px));left:10px}
html[data-orient="portrait"] #tag-0{top:auto;bottom:300px}
html[data-orient="portrait"] .tag{max-width:250px}
html[data-orient="portrait"] .tag .nm{max-width:150px}
html[data-orient="portrait"] .card.mine{width:125px;height:177px;font-size:32.3px}
html[data-orient="portrait"] .toast{top:calc(250px + var(--py,0px) * .5);right:auto;left:50%;transform:translateX(-50%);width:max-content;max-width:640px;text-align:center}
html[data-orient="portrait"] .table-tools{bottom:16px;right:16px}
html[data-orient="portrait"] .left-tools{bottom:16px;left:16px;flex-direction:row}
html[data-orient="portrait"] .left-tools .pill{padding:9px 13px;font-size:16px}
html[data-orient="portrait"] .overlay.soft{padding-top:300px}
html[data-orient="portrait"] .sheet,html[data-orient="portrait"] .sheet.small,html[data-orient="portrait"] .sheet.wide{width:680px;max-height:1100px}
html[data-orient="portrait"] .contracts{grid-template-columns:repeat(3,1fr)}
html[data-orient="portrait"] .board-wrap{max-height:820px}
html[data-orient="portrait"] .board{font-size:16px}
html[data-orient="portrait"] .board th,html[data-orient="portrait"] .board td{padding:6px 6px}
html[data-layout="bar"][data-orient="portrait"] #tag-1,html[data-layout="bar"][data-orient="portrait"] #tag-3{top:calc(550px + var(--py,0px))}
html[data-orient="portrait"] .gamesw{top:calc(548px + var(--py,0px) * .6)}
html[data-orient="portrait"] .gamesw button{font-size:28px;padding:6px 34px}
html[data-orient="portrait"] .gameopts{top:640px;left:50%;transform:translateX(-50%);width:640px}
html[data-orient="portrait"] .bids{grid-template-columns:repeat(4,1fr)}
