/* Arcalink chapters 4 / 5 (12-02): the boss bar's line, the ひと休み dialog, the chapter select's two-column cards / progress / former record, the pause screen's 秘奥 list */

/* the boss bar's line (大百足: the segments that guard the head; 亡王: the 威光) */
#boss .bsub { margin-top: 3px; font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: .04em; color: #ffd9a8; text-align: center; paint-order: stroke fill; -webkit-text-stroke: 3px var(--ar-ink); white-space: nowrap; }
#boss .bsub.hide { display: none; }

/* ひと休み: the dialog over the first preparation after a chapter boss */
#restDlg { display: none; z-index: 12; } #restDlg.on { display: flex; } #restDlg .cfm-b { max-width: 300px; }
#restDlg .po-t { margin-bottom: 10px; text-wrap: balance; letter-spacing: .08em; }
#restDlg .rs-p { margin: 0 0 14px; font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--ar-text); text-wrap: balance; }
#restDlg .btn { width: 100%; min-height: 48px; font-size: 16px; margin-bottom: 10px; }
#restDlg .po-go { min-height: 56px; font-size: 18px; }
#restDlg .rs-n { margin: 2px 0 0; font-size: 11px; font-weight: 600; line-height: 1.6; color: var(--ar-text-sub); }

/* the chapter select: the single chapters in two columns (320 wide fits), the long journey's progress and the former record */
.sl-solo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sl-solo .sc-card .pic { aspect-ratio: 5 / 2; }
.sl-solo .sc-card .cap { flex-wrap: wrap; gap: 0 6px; padding: 6px 10px 2px; } .sl-solo .sc-card .nm { font-size: 17px; } .sl-solo .sc-card .cap small { font-size: 11px; }
.sl-solo .sc-card .inf { gap: 2px 8px; padding: 2px 10px 9px; } .sl-solo .sc-card .m { font-size: 12px; } .sl-solo .sc-card .m .num { font-size: 13px; }
.sl-solo .sc-card .inf small { font-size: 11px; }
.sc-card .trk { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--ar-text-sub); }
.sc-card .trk .tp { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 1px solid rgba(240,207,133,.35); font-size: 11px; font-weight: 800; color: var(--ar-text-sub); background: rgba(10,12,34,.6); }
.sc-card .trk .tp.half { border-color: var(--ar-mana); color: var(--ar-text); }
.sc-card .trk .tp.on { border-color: var(--ar-brass-hi); background: linear-gradient(180deg, var(--ar-mana-x), #d9a030); color: var(--ar-ink); }
.sc-card .trk .tl { margin-left: 4px; }
.sc-card .bst.old { opacity: .85; font-size: 11px; } .sc-card .bst.old small { font-size: 11px; }
.ebs .eb.old { opacity: .8; } .ebs .lb.old { font-weight: 600; }

/* the pause screen's list of 秘奥 (the two materials of each, what is held) */
#pauseOv .cfm-b { max-height: calc(100% - 24px); overflow-y: auto; }
.po-arc { margin: 0 0 12px; padding: 8px 8px 6px; text-align: left; border: 1px solid rgba(240,207,133,.25); border-radius: 4px; background: rgba(10,12,34,.55); }
.po-arc h3 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--ar-brass-hi, #e8c060); }
.po-arc .ar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 4px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; font-weight: 700; line-height: 1.4; }
.po-arc .ar:first-of-type { border-top: 0; }
.po-arc .ar .an { flex: 1 1 100%; font-size: 13px; font-weight: 800; color: var(--ar-text); }
.po-arc .ar.taken .an::after { content: " ・ 手に入れました"; font-size: 11px; font-weight: 700; color: var(--ar-mana-x); }
.po-arc .mt { display: inline-flex; align-items: center; gap: 4px; color: var(--ar-text-sub); }
.po-arc .mt i { display: inline-block; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 1px solid rgba(240,207,133,.4); }
.po-arc .mt.have { color: var(--ar-text); } .po-arc .mt.have i { border-color: var(--ar-brass-hi); background: var(--ar-mana-x); }
.po-arc .pl { color: var(--ar-text-sub); }
.po-arc .nn { margin: 0; font-size: 11px; font-weight: 600; color: var(--ar-text-sub); }

/* the 全体の強化 hint (a 長旅 from chapter 4 shows it too): clear of the weapon strip at the right edge */
#hint.boost { max-width: calc(100% - 92px); align-self: flex-start; margin-left: 8px; text-align: left; }
#stage:has(.fxwarn.on) #boss .bsub { opacity: 0; }      /* (the warning plate sits where the line is) */

/* chapter 4: the road marks under the gate (name + count, the kinds of the coming wave) */
.ent.rd4 .t { left: -52px; width: 104px; top: 24px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; letter-spacing: .06em; }
.ent .rn { display: inline-flex; gap: 4px; align-items: baseline; padding: 1px 8px; border: 1px solid rgba(240,207,133,.6); background: rgba(10,12,34,.88); -webkit-text-stroke: 0; } .ent .rn .num { min-width: 0; font-size: 14px; color: var(--ar-mana-x); }
.ent .rk { display: inline-flex; gap: 3px; }
.ent .ek { display: inline-flex; align-items: center; gap: 1px; padding: 1px 3px; background: rgba(10,12,34,.88); border: 1px solid rgba(255,255,255,.18); -webkit-text-stroke: 0; } .ent .ek .ai { width: 16px; height: 16px; } .ent .ek .num { min-width: 0; font-size: 11px; }
.ent .ek .el { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; font-style: normal; font-size: 10px; font-weight: 900; background: #7a3fc0; color: #fff; }

/* the 魔力解放 button beats while a 威光 can be answered */
#relBtn.answer { animation: relAnswer .55s ease-in-out infinite; }
@keyframes relAnswer { 0%, 100% { transform: scale(1); filter: none; } 50% { transform: scale(1.1); filter: brightness(1.5) drop-shadow(0 0 8px var(--ar-mana-x)); } }

/* the 秘奥 list: a small card with a tick instead of a round (not pressable-looking), the one-short rows framed in gold, the legend */
.po-arc .mt i { width: 11px; height: 15px; border-radius: 2px; position: relative; }
.po-arc .mt.have i::after { content: ""; position: absolute; left: 3px; top: 0; width: 3px; height: 8px; border: solid var(--ar-ink); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.po-arc .lg { display: flex; gap: 14px; margin: 0 0 6px; font-size: 11px; font-weight: 700; }
.po-arc .ar.near { border: 1px solid var(--ar-brass-hi); border-radius: 3px; padding: 4px 5px; margin: 3px 0; background: linear-gradient(90deg, rgba(240,207,133,.14), transparent); }
.po-arc .ar.near .an::after { content: " ・ あと1つ"; font-size: 11px; color: var(--ar-mana-x); }
