/* 天下大勢：全服決戰的樣式（全部拆包第 67 批從 style.css 切出來，規則一個字不改；載入的先後在 index.html，同權重後蓋前）。 */

/* 決戰集結時還沒參戰（FB-105）：加入的鈕在戰場名字那一行的右邊（app.js 的 musterScene）。鈕是 .btn.small（38px 高，點得到），
   上下各 −8px：佔的高度只有 22px，不高過名字那一行，剛剛、場景與整排行動一個 px 都不往下推（375×812 估過，見 tests/web/test_jianghu_page_web.py）。
   名字與鈕中間那一小句（.muster-note，「報名在這裡 →」）佔剩下的寬度、靠右貼著鈕；放不下就省略號收尾——基準寬度 0（flex: 1 1 0），
   這一行永遠不會因為它折行。散人臨時投效的兩顆字多、放不進名字旁邊：另起一行（.wide）、兩顆並排，這一行就是實打實的 38px，
   不往上吃（不然蓋到名字）；那一小句留在名字右邊往下指 */
.scene .muster-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 2px; }
.scene .muster-head > p { flex: none; margin: 0; font: 600 16px var(--serif); }
.scene .muster-note { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: right; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.scene .muster-join { display: flex; flex: none; flex-wrap: wrap; gap: 6px; margin: 0; }
.scene .muster-join .btn { width: auto; margin: -8px 0; }
.scene .muster-join.wide { flex-basis: 100%; }
.scene .muster-join.wide .btn { flex: 1 1 0; min-width: 0; margin: 0; padding: 6px 8px; justify-content: center; }
/* 挑同伴那一步（FB-360）：另起一行、一顆一行，鈕上寫份量與氣血。同一州兩場以上自己這一邊的攻城一起集結（FB-553）也是這一排：
   加入鈕一場一顆、鈕上寫是哪一場，擠在名字那一行會撐出橫捲（375 寬 488px）；一顆佔滿一行，字長只往下折 */
.scene .muster-join.pick { flex-basis: 100%; flex-direction: column; }
.scene .muster-join.pick .btn { width: 100%; min-width: 0; margin: 0; padding: 6px 8px; }
/* 攻城戰畫面最上面那一條（領地爭奪第三批 A，企劃者挑甲；app.js 的 siegeStrip）：取代場景的名字那一行，「攻城・地點｜守方：某某」——
   一道城牆色的左框、淡底；名字照原本的襯線字，後面幾段小一號。每一段不折行（.nb），只在「｜」那裡換行。排在 .scene > p:first-child 與
   .muster-head > p 後面（同一級，後寫的贏）。集結時這一條自己佔一行（比名字長，跟「報名在這裡」與加入的鈕擠一行會把那一小句擠成一個字），
   那一小句與鈕排在它底下 */
.scene > p.siege-strip { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2px; margin: 0 0 6px; padding: 4px 10px; border-left: 3px solid var(--accent); border-radius: 6px; background: var(--card-2); font: 500 13px/1.6 var(--sans); color: var(--ink-2); }
.scene .muster-head > p.siege-strip { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2px; flex: 1 1 100%; min-width: 0; margin: 0; padding: 4px 10px; border-left: 3px solid var(--accent); border-radius: 6px; background: var(--card-2); font: 500 13px/1.6 var(--sans); color: var(--ink-2); }
/* FB-576：只有一顆加入鈕時那一排排在攻城條底下，鈕照 FB-105 的 −8px 往上吃，6px 的列距吃掉還壓到條 2px：條底下的這一顆上邊只吃 −4px
   （留 2px 的縫，那一排多佔 4px）。名字旁邊的那一顆（決戰、沒有攻城條）照舊 −8px；.wide、.pick 本來就是 0 */
.scene .muster-head > p.siege-strip ~ .muster-join:not(.wide):not(.pick) .btn { margin-top: -4px; }
.siege-strip .ss-title { font: 600 15px/1.6 var(--serif); color: var(--ink); }
.siege-strip .ss-sep { padding: 0 2px; opacity: 0.55; }
/* 決戰：對面上一回合的出招比例與自己的結果（引擎寫成一段 markdown 引用「> 」，伺服器轉成 blockquote）：小字、淡色、行距緊、
   沒有瀏覽器預設的縮排與邊線，375px 上約 65px（含上面一段的間距；15.5px 兩段是 95px） */
.scene blockquote { margin: 2px 0; padding: 0; border: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.scene blockquote p { margin: 0; }
/* 決戰的戰況一回合一段（Joy 2026-10-14，app.js 的 roundBlocks）：最新那一回合攤開、一行一條；舊的回合各收成一行，點了攤開；戰報頁的完整戰況（.report-detail）每一回合都收成一行 */
:is(.scene, .report-detail) .b-round { margin: 6px 0; border-left: 3px solid var(--line); padding: 2px 0 2px 10px; }
:is(.scene, .report-detail) .b-round.latest { border-left-color: var(--accent); }
:is(.scene, .report-detail) .b-rhead { margin: 0 0 2px; font: 600 14px var(--serif); color: var(--accent); }
:is(.scene, .report-detail) .b-lines { list-style: none; margin: 0; padding: 0; }
:is(.scene, .report-detail) .b-lines li { margin: 0; padding: 3px 0; font-size: 14.5px; line-height: 1.6; }
:is(.scene, .report-detail) .b-lines li + li { border-top: 1px dashed var(--line); }
:is(.scene, .report-detail) .b-lines li:first-child { font-weight: 600; }
:is(.scene, .report-detail) details.b-round > summary { display: flex; gap: 8px; align-items: baseline; cursor: pointer; font-size: 13px; line-height: 1.6; color: var(--ink-2); list-style: none; padding: 4px 0; }
:is(.scene, .report-detail) details.b-round > summary::-webkit-details-marker { display: none; }
:is(.scene, .report-detail) details.b-round > summary::before { content: "▸"; flex: none; }
:is(.scene, .report-detail) details.b-round[open] > summary::before { content: "▾"; }
:is(.scene, .report-detail) details.b-round > summary b { flex: none; font: 600 13px var(--serif); color: var(--ink); }
:is(.scene, .report-detail) details.b-round > summary span { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:is(.scene, .report-detail) details.b-round[open] > summary span { display: none; }
:is(.scene, .report-detail) details.b-round .b-lines { font-size: 14px; }
/* 每一條是哪一軍的：左邊一道那一軍的顏色、開頭一個小標籤（Joy 2026-10-14「看不出誰是官軍誰是黃巾」；顏色同戰局條） */
:is(.scene, .report-detail) .b-lines li.b-side { padding-left: 8px; border-left: 3px solid var(--c, var(--line)); margin-left: -2px; }
:is(.scene, .report-detail) .b-lines .side-guan { --c: var(--kuai); }
:is(.scene, .report-detail) .b-lines .side-huang { --c: var(--gold); }
:is(.scene, .report-detail) .b-lines .side-haoqiang { --c: var(--rou); }
:is(.scene, .report-detail) .b-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: var(--c, var(--line)); color: #fff; font: 600 12px/1.6 var(--sans); vertical-align: 1px; }
:is(.scene, .report-detail) .side-huang .b-tag { color: #2a241d; } /* 金底配白字太淡：兩種模式都用深墨（同戰局條） */

/* 決戰三招的按鈕：名字在左（佔剩下的寬度），招與分數在右邊一小行不換行，十一、十二個字的名字也不會把按鈕折成兩行 */
.options .btn .b-name { flex: 1 1 auto; min-width: 0; }
.options .btn .b-move { flex: none; margin-left: auto; font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* 決戰一軍這一回合發動武學摺成的那一列（main.js 的 warFolds，Joy 2026-10-30）：摘要一行像一般的一條，右邊一個小三角；點開是逐人那幾句（字小一號、淡一點） */
.b-fold { display: inline; }
.b-fold > summary { display: inline; cursor: pointer; list-style: none; }
.b-fold > summary::-webkit-details-marker { display: none; }
.b-fold > summary::after { content: " ▾"; color: var(--ink-2); font-size: 12px; }
.b-fold[open] > summary::after { content: " ▴"; }
:is(.scene, .report-detail) .b-fold-lines { list-style: none; margin: 4px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); }
:is(.scene, .report-detail) .b-lines .b-fold-lines li { font-weight: 400; font-size: 13.5px; color: var(--ink-2); padding: 2px 0; border-top: 0; }

/* 戰局條底下的回合格換成 Joy 給的墨塊（2026-11-08，web/img/rounds/）：官軍贏藍墨、黃巾贏金墨、相持灰墨、還沒打淡框、正在打實框。
   格子寬照舊平分；高度放到 26px 讓墨塊看得出筆觸，圖用 contain 不拉變形 */
.gauge .g-rounds { gap: 2px; }
.gauge .g-r { height: 26px; line-height: 26px; font-size: 11px; font-weight: 700; border-radius: 0; color: var(--ink);
  background: url("/static/img/rounds/round-todo.webp") center / contain no-repeat; }
.gauge .g-r.side-guan { background: url("/static/img/rounds/round-guan-win.webp") center / contain no-repeat; color: #fff; }
.gauge .g-r.side-huang { background: url("/static/img/rounds/round-huang-win.webp") center / contain no-repeat; color: #2a241d; }
.gauge .g-r.tie { background: url("/static/img/rounds/round-tie.webp") center / contain no-repeat; color: var(--ink); } /* 相持的灰墨在暗色模式是深灰：字跟著 --ink 翻成淺色 */
.gauge .g-r.g-now { background: url("/static/img/rounds/round-now.webp") center / contain no-repeat; box-shadow: none; color: var(--ink); }
