/* 組隊任務「月妙的年糕」（mochi.js）：局內上方資訊列、大廳找隊伍、4 人房座位、多位隊友的角落資訊 */

#lobby[data-group="play"][data-view="mochi"] .lb-start{display:none}   /* 組隊任務有自己的開局流程（跟合作一樣藏起開始鈕） */
@media (max-width:700px) and (min-height:501px),(max-width:900px) and (orientation:portrait){ #lobby[data-group="play"][data-view="mochi"] .lb-panel{padding-bottom:84px} }   /* 底部留出廣場浮動鈕的高度 */

/* 局內上方資訊列：月妙血量＋年糕數（中央倒數的下面；王的血條出現時往下讓） */
.mochi-hud{position:fixed;left:50%;top:128px;transform:translateX(-50%);z-index:3;display:flex;align-items:center;gap:10px;pointer-events:none;
  padding:5px 12px;border-radius:14px;background:rgba(8,40,120,.86);border:2px solid #fff;color:#fff;font-family:"Noto Sans TC",sans-serif;white-space:nowrap}
.mochi-hud[hidden]{display:none}
.mochi-hud[data-stage="king"]{top:186px}
.mochi-hud img{width:26px;height:26px;object-fit:contain;image-rendering:pixelated;flex:none}
.mochi-hud .mo-b,.mochi-hud .mo-c{display:flex;align-items:center;gap:6px}
.mochi-hud .bar{position:relative;width:170px;height:16px;border-radius:8px;background:#300;border:1px solid #000;overflow:hidden}
.mochi-hud .bar i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(180deg,#fff08a,#ffc21f)}
.mochi-hud .bar span{position:absolute;inset:0;font-size:11px;line-height:16px;text-align:center;font-weight:800;text-shadow:0 1px 1px #000,0 0 3px #000}
.mochi-hud.low .bar i{background:linear-gradient(180deg,#ff8a7a,#e0301f)}
.mochi-hud.hurt{border-color:#ff8a7a;box-shadow:0 0 0 3px rgba(255,80,60,.45)}
.mochi-hud .mo-c b{font-size:14px;font-weight:900;color:#ffe15a}
.mochi-hud .mo-c span{font-size:11px;font-weight:700;color:#cfe9ff}
body:not(.mochi-run) .mochi-hud{display:none}

/* 多位隊友（3～4 人房）：角落資訊縮小 */
.mp-hud.many .mp-mate{width:210px;padding:4px 7px;gap:6px}
.mp-hud.many .mp-mate .av{width:30px;height:30px}
.mp-hud.many .mp-mate .nm{font-size:12px}
.mp-hud.many .mp-mate .hp{height:10px;margin:2px 0}
.mp-hud.many .mp-mate .hp span{font-size:9px;line-height:10px}
.mp-hud.many .mp-mate .row{font-size:10px}

/* 房間：4 人座位 */
.mp-seats.n4{grid-template-columns:repeat(4,minmax(0,1fr));max-width:860px;gap:10px}
.mp-seats.n4 .mp-info .r{font-size:12px}

/* 大廳入口：找隊伍 */
.mochi-head{display:flex;align-items:center;gap:12px}
.mochi-head .bunny{width:56px;height:64px;object-fit:contain;image-rendering:pixelated;flex:none}
.mochi-head .tx{min-width:0}
.mochi-head h3{margin:0 0 4px}
.mochi-rule,.mochi-rw-info,.mochi-left{margin:4px 0;font-size:13px;line-height:1.5}
.mochi-left{font-weight:800;color:#ffe15a}
.mochi-lt{margin:12px 0 6px;font-size:14px}
.mochi-list{display:flex;flex-direction:column;gap:6px;max-width:560px;max-height:220px;overflow:auto}
.mochi-none{margin:0;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.1);font-size:13px}
.mochi-room{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.14);font-size:13px}
.mochi-room .nick{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mochi-room .lv,.mochi-room .ch,.mochi-room .n{flex:none;font-weight:700}
.mochi-room .n{color:#b8ff7a}
.mochi-room .lb-btn{flex:none;padding:3px 14px;font-size:13px}

/* 結算：殘頁、背景、次數 */
#ovEnd .mochi-rws{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px}
#ovEnd .mochi-rw{padding:4px 12px;border-radius:999px;font-size:13px;font-weight:800;line-height:1.4;background:#fff7d6;border:2px solid #ffd23a;color:#7a4b00}
#ovEnd .mochi-rw.left,#ovEnd .mochi-rw.guest{background:#eef6ff;border-color:#a9d2ff;color:#123a73;font-weight:700}
#ovEnd .mochi-rw.cap,#ovEnd .mochi-rw.owed{background:#f1f1f1;border-color:#bbb;color:#555}

@media (max-width:980px),(max-height:540px){
  /* 手機：中央是倒數、技能列、王的血條，資訊列改放左邊狀態框下面，兩行 */
  .mochi-hud,.mochi-hud[data-stage="king"]{left:8px;top:76px;transform:none;flex-direction:column;align-items:flex-start;gap:2px;padding:4px 8px;border-radius:11px}
  .mochi-hud img{width:20px;height:20px}
  .mochi-hud .bar{width:118px;height:14px}
  .mochi-hud .bar span{font-size:10px;line-height:14px}
  .mochi-hud .mo-c b{font-size:12px}
  .mochi-hud .mo-c span{display:none}
  .mp-hud.many .mp-mate{width:150px}
  .mp-hud.many .mp-mate .row{display:none}
}
/* 手機直向：左上依序是狀態框、倒數、技能列（王的血條在技能列下面），資訊列排在它們下面 */
@media (max-width:640px) and (orientation:portrait){
  .mochi-hud{top:174px}
  .mochi-hud[data-stage="king"]{top:242px}
}
@media (max-width:640px){
  .mp-seats.n4{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mochi-head .bunny{width:44px;height:50px}
  .mochi-room{gap:6px;padding:5px 8px;font-size:12px}
}
/* 獎勵圖示（itemicon.js）：說明列「通關獎勵」＋一排圖示；結算的殘頁、背景提示前面放一個圖示（程式裡排在字後面，讀屏先念字） */
.mochi-rw-info{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
#ovEnd .mochi-rw.scrap,#ovEnd .mochi-rw.cos{display:inline-flex;align-items:center;gap:6px;padding-left:5px}
#ovEnd .mochi-rw>.ii{order:-1}
