:root{--sab:40px}   /* chừa khoảng trên vạch vuốt / thanh điều hướng của điện thoại */
/* ==================== Màn hình dọc (portrait.js) + nút micro (voice.js) ==================== */
#pv{position:absolute;inset:0;pointer-events:none!important}
/* vùng dưới: chính ảnh nền soi ngược, làm mờ, tối dần (CSS tĩnh – không tốn GPU mỗi khung hình) */
#pv .pbg{position:absolute;left:0;right:0;top:var(--scene-end,var(--scene-b,55%));bottom:0;overflow:hidden;background:#120709 center bottom/cover no-repeat;transform:scaleY(-1);
  filter:blur(7px) brightness(.55) saturate(.9)}
#pv .pbg::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(10,4,6,.15),rgba(10,4,6,.45))}
#pv.cover .pbg{display:none}
#pv.cover .pdock{background:linear-gradient(rgba(8,3,5,0),rgba(8,3,5,.55))}
#pv .pfloat{position:absolute;left:0;right:0;bottom:calc(100% - var(--scene-b,55%) + 6px);padding:0 10px;display:flex;flex-direction:column;justify-content:flex-end;gap:6px}
#pv .ptop{position:absolute;left:0;right:0;top:0;padding:calc(var(--sat,0px) + 6px) 8px 8px;display:flex;flex-direction:column;gap:4px;
  background:linear-gradient(rgba(8,3,5,.8),rgba(8,3,5,.4) 70%,rgba(8,3,5,0))}
#pv .ptop:empty{display:none}
#pv .pdock{position:absolute;left:0;right:0;top:var(--scene-b,55%);bottom:0;padding:10px 10px calc(var(--sab) + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:8px;
  }
#pv .pdock.al-center{justify-content:center;gap:10px}
#pv .prow{display:flex;gap:6px;justify-content:center;align-items:stretch;flex:none;min-width:0}
#pv .prow.fl{flex:1;min-height:0}
#pv .psp{flex:1}
#pv .ph{min-width:0}

/* chữ / khung trong vùng dưới: cỡ theo bề ngang máy */
body.portrait .gpanel.namebox{font-size:18px;padding:18px 22px!important;gap:10px}
body.portrait .gpanel.namebox .nlogo{width:38%}
body.portrait .gpanel.list{font-size:14px;padding:14px 14px!important}
body.portrait .list .r{grid-template-columns:1fr auto auto 6.2em;gap:.4em;padding:.35em .5em;font-size:.95em}
body.portrait .list .top .mbtn{flex:none;width:7.5em}
body.portrait .wd-chars{padding:10px 12px!important}
body.portrait .wd-chars h3{display:none}
body.portrait .wd-chars .grid{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:66px;grid-template-rows:100%;overflow-x:auto;overflow-y:hidden;height:100%}
body.portrait .wd-outfits{padding:12px!important;font-size:13px}
body.portrait .wd-outfits .grid{grid-template-columns:repeat(4,1fr);gap:.4em}
body.portrait .gpanel.results{padding:12px!important}
body.portrait .gpanel .rhead{font-size:14px}
body.portrait .gpanel .rgrid{grid-template-columns:1fr;font-size:13px}

body.portrait .gtimer{font-size:17px}
body.portrait .gribbon span{font-size:20px}
body.portrait .gpill.prof{font-size:11px}
body.portrait #chat{font-size:12.5px}
body.portrait #chat .hd{padding:.3em .6em;font-size:13px}
body.portrait #chat form{padding:.35em .45em}
body.portrait #chat form input{font-size:13px;padding:.35em .5em}
body.portrait #chat .typing{height:1.1em}
body.portrait .plate{overflow:visible}
body.portrait .plate b{max-width:none} body.portrait .plate .nm{max-width:6.5em}
body.portrait .modal{font-size:16px;padding:1.1em 1.1em}

/* nút micro + biểu tượng đang nói */
.vbtn{position:absolute}
.vbtn span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:bold 12px var(--ui);color:#ffe6b8;z-index:4}
.vbtn .vx{position:absolute;left:18%;right:18%;top:48%;height:9%;background:#e0402f;border-radius:9px;transform:rotate(-45deg);z-index:5;box-shadow:0 0 0 2px rgba(20,6,4,.8)}
.vbtn.on .vx{display:none}
.vbtn.on{filter:drop-shadow(0 0 8px rgba(110,255,140,.85))}
.vbtn.talk{animation:vtalk .5s ease-in-out infinite alternate}
@keyframes vtalk{to{filter:drop-shadow(0 0 16px rgba(110,255,140,1)) brightness(1.15)}}
.plate.talk b .nm{color:#8dffa6!important;text-shadow:0 0 8px rgba(80,255,120,.9)}
.plate.talk b::after{content:"";flex:none;width:.6em;height:.6em;margin-left:.2em;border-radius:50%;background:#5dff86;box-shadow:0 0 8px #3f6;animation:vtalk .4s infinite alternate}

/* bàn phím đang mở: chat nằm ngay trên bàn phím, phần còn lại đứng yên */
body.kb #chat{box-shadow:0 -6px 24px rgba(0,0,0,.7)}
body.kb #chat .typing{display:none}

/* popup giữa màn (màn kết thúc) */
#pv .pdim{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,rgba(5,2,3,.35),rgba(5,2,3,.7))}
#pv .ppop{position:absolute;left:12px;right:12px;top:calc(var(--sat,0px) + 7%);bottom:78px;display:flex;flex-direction:column;gap:8px;justify-content:center}
body.portrait .gribbon span{font-size:17px}
/* dải thông tin phòng chờ: tên phòng · mã / người chơi · trạng thái */
/* tên dưới chân nhân vật: chữ rõ hơn, có nền tối mờ */
body.portrait .plate{font-size:11px!important}
body.portrait .plate b{background:rgba(12,5,7,.62);border-radius:8px;padding:.05em .4em}
body.portrait .plate small:not(:empty){background:rgba(12,5,7,.55);border-radius:6px;padding:0 .3em;margin-top:1px}

/* chat popup (bấm vào khung chat ở màn dọc) */
#chatdim{position:fixed;inset:0;z-index:4;background:rgba(6,2,4,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
#chat.full{z-index:6;font-size:15px!important;background:rgba(20,8,10,.96);box-shadow:0 10px 40px rgba(0,0,0,.8)}
#chat.full .hd{font-size:15px}
#chat.full .m{padding:.15em 0;line-height:1.4}
#chat.full form input{font-size:15px}

/* thẻ vai (màn dọc): 1 dòng, viền khung mỏng để chữ không bị cắt */
body.portrait #rolechip.dark{border-width:6px;border-image-width:6px;padding:0 .7em 0 .2em;font-size:13px;line-height:1;gap:.35em;align-items:center}
body.portrait #rolechip .ico,body.portrait #rolechip img{height:22px;width:auto}
body.portrait #rolechip b{font-size:13px;line-height:1.1;overflow:visible}
body.portrait #rolechip small{display:none}
/* tiêu đề pha: 2 dòng nằm gọn trong khung cuộn giấy */
body.portrait .gheader{justify-content:center;padding:0 9%!important}
body.portrait .gheader .h1{font-size:17px;line-height:1.05}
body.portrait .gheader .h2{font-size:11px;line-height:1.15;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* nhãn tên: dòng phụ (phiếu, Sói, soi…) to rõ hơn; người chết vẫn đọc được tên */
body.portrait .plate{flex-direction:row;justify-content:center;align-items:center;gap:3px}   /* icon (giơ tay, phiếu, Sói, đầu lâu…) nằm BÊN PHẢI tên, cùng hàng → không đè xuống mặt nhân vật ngay dưới nhãn tên */
body.portrait .plate small{font-size:12.5px!important;gap:.3em;flex:none}
body.portrait .plate b{flex:none}
body.portrait .plate .pi{height:1.65em;filter:drop-shadow(0 0 2px #000) drop-shadow(0 1px 2px #000)}
body.portrait .plate small:not(:empty){background:rgba(12,5,7,.72);border-radius:999px;padding:.05em .35em;margin-top:0}
body.portrait .plate .badge{font-size:13px;padding:.05em .45em;gap:.15em}
body.portrait .plate.dead{filter:none;opacity:.92}
body.portrait .plate.dead b,body.portrait .plate.dead b .nm{text-decoration:none!important}
body.portrait .plate.dead b .nm{color:#bdb6ad!important;-webkit-text-fill-color:#bdb6ad;background:none}   /* người chết: tên xám (đã có biểu tượng đầu lâu), không gạch ngang */
/* tiếng Việt có dấu: chừa đủ cao để dấu trên / dưới không bị cắt */
body.portrait .plate b{line-height:1.45;padding:.05em .45em;overflow:visible}
body.portrait .plate .nm{line-height:1.45;padding:0 .05em;overflow:hidden}
body.portrait .plate small{line-height:1.3}

/* TIÊU ĐỀ VIẾT HOA (mọi nền tảng): tên vai, tiêu đề pha, tiêu đề chat, bảng, hộp thoại, thông báo lớn */
.gheader .h1,#rolechip b,#chat .hd .tt,.modal h2,.gpanel h2,.gpanel h3,.banner .t1,.gribbon span,.namebox h2,.wd-chars h3,.gpanel .rhead,.roledesc>b:first-child{text-transform:uppercase;letter-spacing:.03em}

/* màn mở đầu: thanh tải có chữ %, đầy thì ẩn; nút Bắt đầu hiện ra nhẹ nhàng, không nhấp nháy */
.gbar{position:absolute}
.gbar span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:bold 11px var(--ui);color:#fff3d6;text-shadow:0 1px 2px #000;letter-spacing:.04em}
.gbar.done{opacity:0;transition:opacity .4s}
.gbtn.appear{animation:appear .45s ease-out}
@keyframes appear{from{opacity:0;transform:scale(.9)}}
body[data-screen=boot] .gbtn.pulse{animation:none}

/* ===== màn mở đầu: nút BẮT ĐẦU ngay dưới đống lửa, thanh tải 0→100% nằm ngay dưới nút ===== */
#pv .pdock.al-boot{top:70.5%;bottom:auto;justify-content:flex-start;gap:8px;background:none}
/* trang chủ: nút không nhấp nháy */
body[data-screen=home] .gbtn.pulse,body[data-screen=rooms] .gbtn.pulse{animation:none}

/* ===== PHÒNG CHỜ (dọc): bảng kính trong mờ ~80%, gần kín màn; nội dung căn đều 2 bên ===== */
#pv .pdock.pl-lobby{top:calc(var(--sat,0px) + 58px);background:none;gap:8px}
body.portrait .gpanel.info.lp{display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:16px 16px 14px!important;font-size:13px!important;
  background:rgba(12,5,8,.5)!important;color:#f6e6c4;text-align:center}
body.portrait .gpanel.info.lp>.nf{opacity:.95}
body.portrait .lp-head h3{margin:0;font-size:1.35em;color:#ffe2a8;text-shadow:0 2px 3px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.portrait .lp-head small{display:flex;align-items:center;justify-content:center;gap:.3em;font-size:.9em;opacity:.95;text-shadow:0 1px 2px #000;text-transform:uppercase;letter-spacing:.04em}
body.portrait .lp .bi{width:1.3em;height:1.3em;flex:none}
body.portrait .lp-code{position:relative;align-self:center;width:72%;height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center}
body.portrait .lp-code>*:not(.nf){position:relative;z-index:1}
body.portrait .lp-code small{font-size:.75em;letter-spacing:.15em;color:#5a2a10;font-weight:800}
body.portrait .lp-code b{font-size:1.9em;letter-spacing:.22em;color:#3b1a0c;line-height:1}
body.portrait .lp-acts{display:flex;gap:4%;justify-content:center}
body.portrait .lp-acts .mbtn{flex:1 1 0;height:44px;max-width:48%}
body.portrait .lp-acts .mbtn:only-child{max-width:60%}
body.portrait .lp-acts .mbtn span{display:flex;align-items:center;gap:.35em;text-transform:uppercase;font-size:13px}
body.portrait .lp-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body.portrait .lp-stats>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:.5em;align-items:center;text-align:left;
  background:rgba(10,4,6,.45);border-radius:10px;padding:.45em .7em;box-shadow:inset 0 0 0 1px rgba(214,166,90,.55)}
body.portrait .lp-stats .si{grid-row:1/3;width:1.9em;height:1.9em}
body.portrait .lp-stats b{font-size:1.1em;color:#ffe2a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.portrait .lp-stats small{font-size:.7em;letter-spacing:.08em;opacity:.8}
body.portrait .lp-roles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
body.portrait .lp-roles .lr{display:flex;flex-direction:column;align-items:center;gap:2px;background:rgba(10,4,6,.45);border-radius:10px;padding:6px 4px;box-shadow:inset 0 0 0 1px rgba(214,166,90,.55)}
body.portrait .lp-roles .lr.wolf{box-shadow:inset 0 0 0 1px rgba(255,90,70,.75)}
body.portrait .lp-roles img{height:46px;width:auto;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.6)}
body.portrait .lp-roles b{font-size:.78em;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
body.portrait .lp-roles em{font-style:normal;font-weight:800;color:#ffe2a8;font-size:.9em;line-height:1}

/* tủ đồ (dọc): hàng nhân vật thấp, bảng trang phục gọn */
body.portrait .wd-chars{padding:6px 10px!important}
body.portrait .wd-chars .grid{grid-auto-columns:54px}
body.portrait .wd-outfits{font-size:11.5px;padding:10px!important}
body.portrait .wd-outfits h3{display:none}
body.portrait .wd-outfits .grid{grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-rows:0;gap:.3em;height:100%;overflow:hidden}
body.portrait .wd-outfits .grid button{min-height:0;height:100%}
body.portrait .wd-outfits .grid button small,body.portrait .wd-outfits .grid button em{display:none}
/* popup cài đặt: cách xa viền khung */
body.portrait .modal.settings{min-width:0;width:86vw;padding:1.6em 1.8em 1.3em!important}
.modal.settings .srow{margin:.5em 0}
body.portrait .wd-outfits .grid button i{flex:1;min-height:0;aspect-ratio:auto}

/* phòng chờ: chữ sáng trên nền tối */
body.portrait .lp-head h3{color:#ffe2a8!important;-webkit-text-fill-color:#ffe2a8;background:none!important;-webkit-text-stroke:0!important;text-shadow:0 2px 3px #000!important}
body.portrait .lp-code small{color:#e9cf9a}
body.portrait .lp-code b{color:#ffe7b0;text-shadow:0 2px 3px #000}
body.portrait .lp-stats{grid-template-columns:.8fr 1.3fr}
body.portrait .lp-stats b{font-size:1em}
/* phòng chờ: mọi chữ (trừ chữ nút) là chữ phẳng màu sáng – không viền, không bóng */
body.portrait .gpanel.info.lp :is(h3,b,small,em,.status){background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;-webkit-text-fill-color:currentColor!important;-webkit-text-stroke:0!important;filter:none!important;text-shadow:none!important}
body.portrait .lp-head h3{color:#ffe2a8!important;text-shadow:none!important}
body.portrait .lp-roles b{color:#ffe7b0!important}
body.portrait .lp-stats small,body.portrait .lp-head small{color:#e9d6b0!important}
/* tủ đồ: ô chọn nhân vật thấy trọn người, nhỏ gọn; ô trang phục bỏ tên, ảnh trọn người */
body.portrait .wd-chars .grid{grid-auto-columns:46px;gap:4px}
body.portrait .wd-chars button{background-size:contain!important;background-position:center bottom!important;border-width:1px}
body.portrait .wd-outfits .grid button{padding:3px;background-size:100% 100%}
body.portrait .wd-outfits .grid button b{display:none}
body.portrait .wd-outfits .grid button i{background-size:contain;background-position:center bottom}
body.portrait .plate{font-size:10px!important}

/* ===== SÁCH LUẬT CHƠI (nút ?) màn dọc: sách cao thêm ~65%, chữ tự co vừa trang (không cuộn), 3 nút bằng nhau ===== */
body.portrait .rbook{width:96vw;aspect-ratio:1536/1690;max-height:86vh;font-size:11px}
body.portrait .rbook .pg{overflow:hidden;top:10%;bottom:18%;line-height:1.35}
body.portrait .rbook .pg.l{left:11%;right:51.5%} body.portrait .rbook .pg.r{left:51.5%;right:11%}
body.portrait .rbook h3{font-size:1.3em;margin:0 0 .35em}
body.portrait .rbook .rb-role{gap:.4em;margin-bottom:.4em} body.portrait .rbook .rb-role .rc{width:26%}
body.portrait .rbook .no{bottom:12.5%;font-size:11px}
body.portrait .rbook .nav{bottom:3.5%;gap:2.5%;padding:0 6%}
body.portrait .rbook .nav .mbtn{flex:0 0 29%;width:29%;min-width:0;height:40px;font-size:12px}
body.portrait .rbook .nav .mbtn span{padding:0 .3em;font-size:12px}
/* phòng chờ: nền bảng đậm hơn (mờ ~72%), nút ✕ thu gọn bảng, nút mở lại bảng */
body.portrait .gpanel.info.lp{background:rgba(12,5,8,.72)!important}
body.portrait .lp-x{position:absolute!important;right:6px;top:6px;width:34px;height:34px;border:0;padding:0;background:none;cursor:pointer;z-index:3!important}
body.portrait .lp-x .bgi{position:absolute;inset:0;width:100%;height:100%}
body.portrait .lp-x b{position:relative;color:#ffe2a8;font-size:15px;line-height:34px}
.lp-open{position:fixed;left:50%;transform:translateX(-50%);top:calc(var(--sat,0px) + 62px);width:58vw;height:42px;z-index:3}
.lp-open span{display:flex;align-items:center;gap:.4em;text-transform:uppercase;font-size:13px}
.lp-open .bi{width:1.3em;height:1.3em}
.lp-open.hide{display:none}
body:not(.portrait) .lp-open{display:none}
/* tủ đồ: hàng chọn nhân vật – viền khung mỏng để ô nhân vật đủ cao, thấy trọn người (cả chân) */
body.portrait .wd-chars{border-width:9px!important;border-image-width:9px!important;padding:4px 6px!important}
body.portrait .wd-chars .grid{height:100%;grid-template-rows:100%;grid-auto-columns:50px;align-items:stretch}
body.portrait .wd-chars button{height:100%;width:100%;aspect-ratio:auto;background-size:contain!important;background-position:center bottom!important}
/* phòng chờ: nút gọn hơn, cả cụm nút + chat đẩy lên, chừa khoảng trống phía dưới */
#pv .pdock.pl-lobby{padding-bottom:14px}
.lp-open{width:46vw;height:36px}
.lp-open span{font-size:12px}

/* màn mở đầu dọc: khung logo từ dưới thanh trên tới trên đống lửa; logo object-fit:contain → luôn vừa bề ngang, căn giữa, không tràn mép */
#pv .ppop.logo{top:calc(var(--sat,0px) + 50px);bottom:auto;height:calc(70.5% - var(--sat,0px) - 50px - 34%);min-height:150px;left:0;right:0;justify-content:center}

/* ===== CÀI ĐẶT: chỉ biểu tượng + thanh trượt dài hết bề ngang (dễ kéo), không chữ ===== */
.modal.settings .srow{grid-template-columns:40px 1fr!important;gap:.8em}
.modal.settings .srow b{display:none}
.modal.settings .srow input[type=range]{width:100%}
/* nút ✕ của mọi pop-up (màn dọc): nhỏ gọn, nằm trong góc hộp */
body.portrait .mx{width:32px!important;height:32px!important;top:8px!important;right:8px!important}
body.portrait .mx b{font-size:14px!important}

/* ===== BẢNG XẾP HẠNG (dọc): top 3 chia đều 3 cột vừa màn; dòng = hạng · ảnh · tên 1 hàng + thông số nhỏ dưới tên · điểm ===== */
.xlb-row .sub{display:none}
html body.portrait .xpodium{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px 0 0;align-items:end}
html body.portrait .xpod{min-width:0;padding:.35em .2em .3em!important;font-size:11px}
html body.portrait .xpod .xav.big{width:3.1em;height:3.1em}
html body.portrait .xpod.p1 .xav.big{width:3.8em;height:3.8em}
html body.portrait .xpod .crown{top:-1em;width:2em;height:1.7em}
html body.portrait .xpod .no{top:.1em;left:.3em;font-size:1.15em}
html body.portrait .xpod .rkb{width:1.5em;height:1.5em;margin:0}
html body.portrait .xpod b{font-size:1.05em;max-width:100%}
html body.portrait .xpod em{font-size:1em}
html body.portrait .xpod .tt{display:none}
html body.portrait .xs-xrank.lb-scrolled .xpodium{display:none}
html body.portrait .xlb-row{grid-template-columns:2.3em 2.4em minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:.5em;row-gap:0;padding:.25em .6em!important;font-size:13px}
html body.portrait .xlb-row .no{grid-column:1;grid-row:1/3;align-self:center}
html body.portrait .xlb-row .pl{display:contents}
html body.portrait .xlb-row .pl .xav{grid-column:2;grid-row:1/3;width:2.2em;height:2.2em;align-self:center}
html body.portrait .xlb-row .pl b{grid-column:3;grid-row:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
html body.portrait .xlb-row .pl small,html body.portrait .xlb-row .ti,html body.portrait .xlb-row .wn,html body.portrait .xlb-row .wr{display:none}
html body.portrait .xlb-row .sub{display:block;grid-column:3;grid-row:2;font-size:.78em;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.portrait .xlb-row .pt{grid-column:4;grid-row:1/3;align-self:center;font-size:1.05em}
html body.portrait .xlb-foot{flex-direction:column;align-items:stretch;gap:6px}
html body.portrait .xlb-foot .xpager{justify-content:center}
/* Cài đặt: bỏ nền / khung quanh thanh trượt – chỉ còn biểu tượng + rãnh trượt + nút kéo */
.modal.settings .srow input[type=range]{background:none!important;border:0!important;box-shadow:none!important;border-image:none!important;padding:0!important;height:36px}
.modal.settings .srow input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:6px;background:linear-gradient(#2e1a0c,#5a3418);box-shadow:inset 0 0 0 1px #c9984e}

/* ===== pop-up chức năng vai (Phù Thủy…) màn dọc: gọn, nằm sát đáy, nền mờ nhẹ → vẫn thấy nhân vật ===== */
body.portrait .modalbg:has(.actpop){align-items:flex-end;padding-bottom:calc(env(safe-area-inset-bottom) + 8px);background:rgba(5,2,3,.28)}
body.portrait .modal.actpop{font-size:13px;padding:.7em .9em .8em;width:90vw;max-width:90vw}
body.portrait .modal.actpop h2{font-size:17px;margin:0 0 .15em}
body.portrait .modal.actpop .pot{height:40px}
body.portrait .modal.actpop p{margin:.2em 0;line-height:1.3}
body.portrait .modal.actpop .acts{gap:.3em;margin-top:.5em;flex-wrap:nowrap}
body.portrait .modal.actpop .acts .mbtn{flex:1 1 0;width:auto;min-width:0;height:38px}
body.portrait .modal.actpop .acts .mbtn span{font-size:11.5px;padding:0 .5em;letter-spacing:.01em;overflow:hidden;text-overflow:ellipsis}

/* ===== MÀN KẾT THÚC màn dọc: chữ trên dải ruy băng 1 hàng gọn trong dải; dòng tóm tắt 1 hàng; 3 nút không cắt chữ ===== */
body.portrait .gribbon span{font-size:15px!important;white-space:nowrap;padding:0 12%!important;letter-spacing:.01em!important;line-height:1}
body.portrait .gpanel .rhead{font-size:13px!important;white-space:nowrap;flex-wrap:nowrap;gap:.3em;letter-spacing:.01em}
body.portrait .gpanel .rhead .ico{width:1.25em;height:1.25em}
body.portrait .endbtn span{font-size:11.5px!important;padding:0 8%!important;letter-spacing:.01em!important}
/* bảng Thông tin phòng (dọc) phải nằm TRÊN tên người chơi (tên tạo sau nên trước đây đè lên bảng) – vẫn dưới pop-up (z 20) */
body.portrait .gpanel.info.lp{z-index:6}
body.portrait .lp-open{z-index:7}
