/* layout-mobile.css — Bố cục 1 màn hình cho điện thoại dọc và ngang */
/* ===== Điện thoại xoay ngang: gọn lại cho vừa 1 màn hình ===== */
.hbtn{display:none;position:relative}
.hbtn .badge{top:-7px;right:-7px;min-width:20px;height:20px;line-height:15px;font-size:.7rem}
@media (orientation:landscape) and (max-height:520px){
  .app{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)!important;column-gap:10px!important}
  header{gap:6px}
  .hbtn{display:inline-flex;align-items:center;justify-content:center;font-size:1.05rem}
  #keyBtnH{background:var(--mint)}
  .owner.owner-bar{margin:0 0 6px!important;gap:4px;align-items:center}
  .owner-bar .ob-btns{display:none!important}
  .owner-bar .tagname{display:none}
  .owner-bar .cb{width:40px!important;height:50px!important}
  .owner-bar .gsay{font-size:.62rem}
  .owner.owner-bar .ob{flex:1 1 0;min-width:0;max-width:none;margin-left:10px;font-size:.74rem;line-height:1.3;padding:5px 9px 5px 11px;min-height:0;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .owner.owner-bar .ob .who{display:none}
  .owner.owner-bar .ob::before{left:-13px;border-width:8px 13px 8px 0;margin-top:-8px}
  .owner.owner-bar .ob::after{left:-8px;border-width:5.5px 9px 5.5px 0;margin-top:-5.5px}
  .ctrs{gap:8px}
  .ctr-h{padding:3px 6px;font-size:.78rem}
  .stage{height:128px}
  .stage .chibi{width:48px;height:48px;bottom:32px}.stage .chibi .ava{width:46px;height:46px}
  .bub2{left:54px;right:4px;top:4px;padding:3px 6px 4px;gap:2px}
  .bq-t{font-size:.64rem;-webkit-line-clamp:2}
  .oi{width:21px;height:20px;font-size:.78rem}
  .kn .kl{display:none}
  .sbar{min-height:38px;padding:3px 5px}
  .sb-face{width:28px;height:28px}
  .hall{padding:22px 8px 8px!important}
  .hall h2{margin-bottom:4px}
  .hall h2 small{font-size:.72rem}
  .peak,.staffs{font-size:.66rem}
}
@media (orientation:landscape) and (max-height:520px) and (max-width:700px){
  .ctr.drink .ctl{display:none}
  .bq-t{-webkit-line-clamp:1}
}

@media (orientation:landscape) and (max-height:520px){
  .hall h2{flex-wrap:nowrap!important;overflow:hidden}
  .hall h2 > span.lbl{flex:none}
  .staffs>span:not(.face){display:none}
  .staffs{padding:0 4px;margin-left:auto}
  .peak{flex:none}
  .cnum{white-space:nowrap;font-size:.7rem;padding:0 6px;margin-top:3px}
  .court small{font-size:.54rem}
  .tag{font-size:.56rem}
}
@media (orientation:landscape) and (max-height:520px) and (max-width:760px){
  .mini{max-width:38px!important}
  .court small{display:none}
  .courts{gap:3px 4px!important}
  .hall h2 small{display:none}
}

/* ===== Điện thoại cầm dọc: toàn bộ game nằm gọn trong 1 màn hình, không cần cuộn ===== */
@media (orientation:portrait) and (max-width:600px){
  html,body{height:100%;overflow:hidden}
  .app{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;
    padding:0 8px calc(8px + env(safe-area-inset-bottom,0px))!important;box-sizing:border-box}
  .app>header{flex:none;position:relative;top:auto;padding:6px 0 6px;background:none}
  .app>.sign{display:none}
  /* khu sân co giãn theo chỗ trống còn lại */
  .app>.hall{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0 0 8px!important;padding:24px 8px 8px!important}
  .hall h2{flex:none;flex-wrap:nowrap!important;overflow:hidden;margin-bottom:6px}
  .hall h2 > span.lbl{flex:none}
  .staffs>span:not(.face){display:none}
  .staffs{padding:0 4px;margin-left:auto}
  .peak{flex:none;font-size:.7rem}
  .courts{flex:1 1 auto;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:6px 6px!important;padding-top:0!important}
  .court{min-height:0;height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto auto;justify-items:center;align-content:stretch}
  .court .mini{height:100%;width:auto;max-width:100%;aspect-ratio:5/8;min-height:0;justify-self:center}
  .court .cnum{margin-top:3px;font-size:.7rem;padding:0 6px;white-space:nowrap}
  .court small{font-size:.56rem;line-height:1.15}
  .court .tag{position:absolute;left:50%;transform:translateX(-50%);bottom:34px;z-index:5;white-space:nowrap}
  .court .say{top:-6px}
  /* thanh chủ quán gọn 1 hàng */
  .app>.owner-bar{flex:none;margin:0 0 8px!important;gap:4px;align-items:center}
  .owner-bar .tagname{display:none}
  .owner-bar .cb{width:40px!important;height:50px!important}
  .owner.owner-bar .ob{flex:1 1 0;min-width:0;max-width:none;margin-left:10px;font-size:.74rem;line-height:1.3;padding:5px 9px 5px 11px;min-height:0;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .owner.owner-bar .ob .who{display:none}
  .owner.owner-bar .ob::before{left:-13px;border-width:8px 13px 8px 0;margin-top:-8px}
  .owner.owner-bar .ob::after{left:-8px;border-width:5.5px 9px 5.5px 0;margin-top:-5.5px}
  .ob-btns{flex-direction:row!important;gap:5px!important}
  .ob-btns .phone{width:36px!important;height:36px!important;font-size:1.05rem!important;border-radius:11px}
  /* hai quầy cố định chiều cao ở đáy màn hình */
  .app>.ctrs{flex:none;gap:8px}
  .ctr-h{padding:3px 6px;font-size:.78rem}
  .stage{height:132px}
  .stage .chibi{width:48px;height:48px;bottom:32px}.stage .chibi .ava{width:46px;height:46px}
  .bub2{left:54px;right:4px;top:4px;padding:3px 6px 4px;gap:2px}
  .bq-t{font-size:.64rem;-webkit-line-clamp:2}
  .oi{width:21px;height:20px;font-size:.78rem}
  .kn .kl{display:none}
  .sbar{min-height:36px;padding:3px 5px}
  .sb-face{width:28px;height:28px}
  .toasts{top:calc(env(safe-area-inset-top,0px) + 54px)}
}
/* máy màn thấp (iPhone SE, Android nhỏ): thu thêm một chút */
@media (orientation:portrait) and (max-width:600px) and (max-height:720px){
  .stage{height:118px}
  .bq-t{-webkit-line-clamp:1}
  .court small{display:none}
  .hall h2 small{display:none}
  .app>.hall{padding-top:22px!important}
}

.stepper.qty{gap:4px}
.qin{width:56px;height:34px;border:3px solid var(--ink);border-radius:10px;background:#fff;color:#1d2b36;text-align:center;font:inherit;font-size:16px;font-weight:800;padding:0 2px;-moz-appearance:textfield;box-shadow:inset 0 2px 0 rgba(0,0,0,.08)}
.qin::-webkit-outer-spin-button,.qin::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qin:focus{outline:3px solid var(--blue);outline-offset:1px}
.qin::placeholder{color:#b3bdc6}
.loose{color:#b5470b;font-weight:700}
@media (max-width:370px){.qin{width:46px;height:30px}}
