/* 戰鬥介面先修：戰鬥中只留 HP／時間／Lv・XP／極小進度圖示／Boss 血條／控制；
   技能、裝備、操作說明集中到暫停面板。本檔接在 game.css／screens.css 之後覆蓋，不改原檔。 */

/* ---------- 讀屏專用 ---------- */
.cu-sr { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0 !important; }

/* ---------- 戰鬥 HUD：收掉文字，不是淡化 ---------- */
#chips { display: none !important; width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
#modeChip, #arenaName, #kills { display: none !important; }
#timer.short-clock::after { content: none; }
.hud-right button { width: 44px; height: 44px; min-width: 44px; }
.hud-right button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* 五步進度：五顆小圖，目前那顆放大加框，完成打勾 */
.run-progress.cu-route { width: auto; display: flex; justify-content: center; align-items: center; gap: 6px; margin: 5px auto 0; pointer-events: none; }
.cu-route .run-route { display: flex; grid-template-columns: none; gap: 5px; list-style: none; }
.cu-route .run-route li { width: 26px; height: 26px; padding: 0; gap: 0; display: grid; place-items: center; border-radius: 50%; font-size: 0;
  background: rgba(13, 20, 23, 0.55); border: 1.5px solid rgba(255, 243, 214, 0.22); opacity: 0.72; white-space: normal; transition: transform 0.2s; }
.cu-route .run-route li img { width: 20px; height: 20px; object-fit: contain; filter: grayscale(0.7) brightness(0.9); }
.cu-route .run-route li i { width: auto; height: auto; border: 0; border-radius: 0; font-size: 15px; line-height: 1; filter: grayscale(0.7); }
.cu-route .run-route li b { position: absolute; right: -4px; bottom: -4px; min-width: 13px; height: 13px; padding: 0 2px; border-radius: 7px;
  font-size: 9px; line-height: 13px; text-align: center; color: var(--cream); background: #2c2449; border: 1px solid rgba(255, 243, 214, 0.35); }
.cu-route .run-route li.current { opacity: 1; background: #704016; border-color: var(--amber); transform: scale(1.18); box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.28); }
.cu-route .run-route li.current img, .cu-route .run-route li.current i, .cu-route .run-route li.done img, .cu-route .run-route li.done i { filter: none; }
.cu-route .run-route li.done { opacity: 0.92; border-color: rgba(88, 224, 208, 0.75); }
.cu-route .run-route li.done::after { content: "✓"; position: absolute; top: -5px; right: -5px; width: 13px; height: 13px; border-radius: 50%;
  font-size: 9px; line-height: 13px; text-align: center; color: #0d2a26; background: var(--teal); }
.run-left { min-width: 28px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; line-height: 20px; text-align: center;
  font-variant-numeric: tabular-nums; color: #ffe5ad; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); }

/* 連擊只剩「×數字」，放在進度列右側同高（:has 分開寫，不支援的瀏覽器才不會整條失效） */
#streak { top: calc(84px + var(--sat)); font-size: 18px; }
#hud:has(.run-progress:not([hidden])) #streak { top: calc(84px + var(--sat)); font-size: 18px; }

/* 危險訊號：一顆小藥丸，圖示＋短字 */
#banner.cu-signal { display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; max-width: min(92%, 300px);
  margin: 6px auto 0; padding: 4px 12px; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; }
#banner.cu-signal b { overflow: hidden; text-overflow: ellipsis; }
#banner.cu-signal img { width: 22px; height: 22px; flex: none; object-fit: contain; }
#banner .cu-sig { flex: none; }
#banner .cu-key-b { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; font: inherit; font-size: 12px; font-weight: 900;
  color: #1b1230; background: var(--teal); border: 2px solid #fff; }

/* Boss 血條：小頭像｜名稱＋血條｜反擊／⚠ */
#bossBar { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "icon name cue" "icon bar cue"; column-gap: 6px; align-items: center;
  width: min(420px, 86vw); max-width: none; margin: 6px auto 0; font-size: 11px; text-align: left; }
#bossIcon { grid-area: icon; width: 26px; height: 26px; object-fit: contain; }
#bossName { grid-area: name; min-width: 0; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bossBar .bar { grid-area: bar; height: 9px; margin-top: 2px; }
#bossCue { grid-area: cue; min-width: 36px; padding: 3px 7px; border-radius: 9px; font-size: 12px; font-weight: 900; line-height: 1.2; text-align: center; }
#bossCue.counter { color: #062a1d; background: #3ee0a8; box-shadow: 0 0 8px rgba(62, 224, 168, 0.7); }
#bossCue.tell { color: #fff; background: var(--danger); }
#bossBar.phase2 .bar { box-shadow: 0 0 7px rgba(255, 77, 90, 0.85); }

/* ---------- 暫停面板：面板自己捲，「繼續」黏在頂端 ---------- */
#pause { place-items: center; overflow: hidden; padding: calc(10px + var(--sat)) calc(10px + var(--sar)) calc(10px + var(--sab)) calc(10px + var(--sal)); }
#pause .panel.cu-pause { width: min(560px, 100%); padding: 0 14px 14px; text-align: left; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-y;
  max-height: calc(100vh - 20px - var(--sat) - var(--sab)); max-height: calc(100dvh - 20px - var(--sat) - var(--sab)); }
.cu-pause-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 10px;
  margin: 0 -14px 8px; padding: 12px 14px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.cu-pause-head .pause-actions { grid-column: 1 / -1; margin: 0; }
.cu-pause-head h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.cu-kbd-hint { font-size: 11px; font-weight: 600; color: rgba(255, 243, 214, 0.55); }
body.touch .cu-kbd-hint { display: none; }
#pause .cu-pause-head #btnResume { width: auto; min-width: 132px; min-height: 48px; margin: 0; padding: 8px 20px; font-size: 18px; flex: none; }
#pause .cu-pause #pauseNote { margin: 0 0 6px; text-align: center; }
.cu-meta { margin: 0 0 8px; font-size: 12px; color: rgba(255, 243, 214, 0.7); text-align: center; overflow-wrap: anywhere; }
.cu-sec { margin-bottom: 12px; min-width: 0; }
#pause .cu-pause .build { display: block; margin-bottom: 12px; }
.cu-h { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.06em; color: var(--amber); }
.cu-eff { font-size: 12px; line-height: 1.45; color: rgba(255, 243, 214, 0.86); overflow-wrap: anywhere; }
.cu-src { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 10px; font-style: normal; font-weight: 800; color: #1b1230; background: #c8f08a; vertical-align: 1px; white-space: nowrap; }
.cu-note { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #ffe5ad; border: 1px solid rgba(255, 229, 173, 0.45); white-space: nowrap; }
.cu-ico { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; font-size: 22px; line-height: 1; background: rgba(0, 0, 0, 0.28); }
.cu-thumb { flex: none; width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }

/* 三張操作圖卡 */
.cu-ctls { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cu-ctl { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 10px 6px 8px; border-radius: 14px; text-align: center; background: var(--panel2); border: 1px solid var(--line); }
.cu-ctl b { font-size: 14px; line-height: 1.25; }
.cu-ctl .cu-line { font-size: 11px; line-height: 1.35; color: rgba(255, 243, 214, 0.8); overflow-wrap: anywhere; }
.cu-ctl kbd { font: inherit; font-size: 10px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line); color: rgba(255, 243, 214, 0.7); }
body.touch .cu-ctl kbd { display: none; }
.cu-art { display: grid; place-items: center; width: 52px; height: 52px; }
.cu-stick { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px dashed rgba(255, 243, 214, 0.7); background: rgba(20, 40, 35, 0.4); }
.cu-stick i { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 243, 214, 0.8); transform: translate(7px, -5px); }
.cu-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; font-weight: 900; line-height: 1; color: #1b1230; border: 2px solid rgba(255, 255, 255, 0.8); }
.cu-btn-a { background: radial-gradient(circle at 35% 30%, #ffe2a8, var(--amber)); }
.cu-btn-b { background: radial-gradient(circle at 35% 30%, #c9fff7, var(--teal)); }
.cu-btn-r { background: radial-gradient(circle at 35% 30%, #ffe2a8, #e7a04a); font-size: 24px; }
.cu-hold { box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.35), 0 0 0 8px rgba(255, 184, 77, 0.15); }

/* 流派、造型招、技能、裝備：每列 圖示｜名稱＋等級｜一句效果 */
.cu-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; padding: 7px 10px; margin-bottom: 6px; border-radius: 12px; background: var(--panel2); }
.cu-row b { font-size: 15px; }
.cu-row small { font-size: 12px; color: rgba(255, 243, 214, 0.7); }
.cu-move-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "img name src" "img eff eff"; }
.cu-move-row .cu-thumb { grid-area: img; }
.cu-move-row b { grid-area: name; font-size: 14px; }
.cu-move-row .cu-eff { grid-area: eff; }
.cu-move-row .cu-src { grid-area: src; justify-self: end; background: #e2c8ff; }
.cu-move-row.off { opacity: 0.6; }
.cu-skills, .cu-gear-list, .cu-tip-list { list-style: none; display: grid; gap: 6px; }
.cu-skill, .cu-gear-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ico name lv" "ico eff eff"; column-gap: 8px; row-gap: 1px; align-items: center;
  min-width: 0; padding: 7px 10px; border-radius: 12px; background: var(--panel2); border-left: 4px solid var(--line); }
.cu-skill .cu-ico, .cu-gear-item .cu-thumb { grid-area: ico; width: 44px; height: 44px; }
.cu-skill b, .cu-gear-item b { grid-area: name; min-width: 0; font-size: 14px; line-height: 1.25; }
.cu-skill .cu-lv, .cu-gear-item small { grid-area: lv; font-size: 12px; font-weight: 800; color: var(--amber); white-space: nowrap; }
.cu-gear-item small { color: rgba(255, 243, 214, 0.6); font-weight: 700; }
.cu-skill .cu-eff, .cu-gear-item .cu-eff { grid-area: eff; }
.cu-skill.kA { border-left-color: var(--amber); } .cu-skill.kA .cu-ico { box-shadow: inset 0 0 0 2px var(--amber); }
.cu-skill.kB { border-left-color: var(--teal); } .cu-skill.kB .cu-ico { box-shadow: inset 0 0 0 2px var(--teal); }
.cu-skill.kW { border-left-color: #c8f08a; } .cu-skill.kW .cu-ico { box-shadow: inset 0 0 0 2px #c8f08a; }
.cu-skill.kP { border-left-color: #c9a8ff; } .cu-skill.kP .cu-ico { box-shadow: inset 0 0 0 2px #c9a8ff; }
.cu-skill.kS { border-left-color: #ff8a6a; } .cu-skill.kS .cu-ico { box-shadow: inset 0 0 0 2px #ff8a6a; }
.cu-empty { font-size: 12px; color: rgba(255, 243, 214, 0.65); padding: 6px 2px; }

/* 最近提示：預設收合 */
.cu-tips { margin: 0 0 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
.cu-tips summary { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; font-weight: 800; cursor: pointer; color: #ffe5ad; }
.cu-tips summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 10px; }
.cu-tip-list { padding: 0 10px 10px; gap: 5px; }
.cu-tip-list li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; line-height: 1.4; color: rgba(255, 243, 214, 0.86); }
.cu-tip-list li span { min-width: 0; overflow-wrap: anywhere; }
.cu-tip-list li.danger { color: #ffd0d0; }
.cu-tip-img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.cu-tip-dot { flex: none; width: 24px; text-align: center; }

/* 面板底部按鈕與掛進來的封測／音量入口也要 44px */
#pause .cu-pause #btnQuit { margin-top: 10px; }
#pause .cu-pause .beta-entry-button, #pause .cu-pause .music-panel summary { min-height: 44px; }
#pause .cu-pause .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- 升級三選一：大圖示＋一句核心效果，完整說明可展開 ---------- */
.cu-card-icon { position: relative; display: grid; place-items: center; flex: none; width: 58px; height: 58px; overflow: visible; border-radius: 50%; font-size: 32px; line-height: 1;
  background: rgba(0, 0, 0, 0.28); border: 2px solid var(--line); }
.cu-ui-art { position: absolute; inset: -13%; display: block; width: 126%; height: 126%; max-width: none; object-fit: contain; }
.cu-ui-art[data-weapon="ladle"] { inset: -6%; width: 112%; height: 112%; }
/* Fit the entire upgrade-card artwork inside its badge without circular clipping. */
.cu-card-icon .cu-ui-art { inset: 0; width: 100%; height: 100%; }
.cu-ui-art[hidden], .cu-art-fallback[hidden] { display: none; }
.card.kA .cu-card-icon { border-color: var(--amber); }
.card.kB .cu-card-icon { border-color: var(--teal); }
.card.kW .cu-card-icon { border-color: #c8f08a; }
.card.kP .cu-card-icon { border-color: #c9a8ff; }
.cu-card .desc { font-size: 14px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.cu-card .name { line-height: 1.25; }
.cu-card-note { font-size: 11px; font-weight: 700; color: #ffe5ad; }
.cu-card { min-height: 44px; }
.lv-more { width: min(760px, 100%); margin: 10px auto 0; text-align: left; font-size: 12px; color: rgba(255, 243, 214, 0.86); }
.lv-more summary { display: flex; align-items: center; justify-content: center; min-height: 44px; cursor: pointer; font-weight: 800; color: #ffe5ad; }
.lv-more summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 10px; }
.lv-more ul { list-style: none; display: grid; gap: 5px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.32); }
.lv-more li { line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- 直向手機（375×812、430×932） ---------- */
@media (max-width: 620px) and (orientation: portrait) {
  .cu-card { align-items: center; column-gap: 10px; }
  .cu-card-icon { width: 46px; height: 46px; font-size: 26px; }
  .cu-card .tag { order: 2; }
  .cu-card .name { order: 3; flex: 1 1 auto; min-width: 0; }
  .cu-card .desc { order: 4; flex-basis: 100%; font-size: 13px; }
  .cu-card .cu-card-numbers { order: 5; flex-basis: 100%; }
  .cu-card-note { order: 5; flex-basis: 100%; }
  .cu-card .key { order: 6; }
}
@media (max-width: 380px) {
  .cu-ctls { gap: 6px; }
  .cu-ctl { padding: 8px 4px 6px; }
  .cu-ctl b { font-size: 13px; }
  .cu-art { width: 46px; height: 46px; }
  .cu-btn, .cu-stick { width: 40px; height: 40px; font-size: 19px; }
  #pause .cu-pause-head #btnResume { min-width: 112px; }
}

/* ---------- 橫向矮螢幕（812×375） ---------- */
@media (max-height: 500px) {
  #streak { top: calc(72px + var(--sat)); font-size: 16px; }
  #hud:has(.run-progress:not([hidden])) #streak { top: calc(72px + var(--sat)); font-size: 16px; }
  .run-progress.cu-route { margin-top: 3px; }
  .cu-route .run-route li { width: 22px; height: 22px; }
  .cu-route .run-route li img { width: 17px; height: 17px; }
  .cu-route .run-route li i { font-size: 13px; }
  #bossBar { margin-top: 3px; width: min(360px, 60vw); }
  #bossIcon { width: 22px; height: 22px; }
  #bossBar .bar { height: 7px; }
  #banner.cu-signal { margin-top: 3px; padding: 2px 10px; font-size: 13px; }
  .cu-pause-head { padding: 8px 14px 6px; }
  .cu-pause-head h2 { font-size: 18px; }
  #pause .cu-pause-head #btnResume { min-height: 44px; padding: 6px 18px; }
  .cu-art { width: 44px; height: 44px; }
  .cu-btn, .cu-stick { width: 38px; height: 38px; font-size: 18px; }
  .cu-card-icon { width: 42px; height: 42px; font-size: 24px; }
  .lv-more { margin-top: 6px; }
}
@media (max-height: 500px) and (min-width: 700px) {
  #pause .panel.cu-pause { width: min(820px, 100%); }
  .cu-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; align-items: start; }
}

/* 橫屏戰鬥：鏡頭拉遠後，把常駐介面收回四邊；實際觸控目標仍至少 44px。 */
@media (orientation: landscape) and (max-height: 560px) {
  body.touch #hud { padding: calc(4px + var(--sat)) calc(6px + var(--sar)) 0 calc(6px + var(--sal)); }
  body.touch .hud-row { gap: 6px; }
  body.touch .hpwrap { flex: 0 1 210px; max-width: 210px; gap: 4px; }
  body.touch #hpBar { height: 14px; }
  body.touch #hpText { line-height: 14px; font-size: 10px; }
  body.touch #timer { padding: 3px 8px; font-size: 14px; line-height: 1; }
  body.touch .hud-right { gap: 5px; }
  body.touch .hud-right button { width: 44px; height: 44px; min-width: 44px; padding: 0; font-size: 15px; border-radius: 12px; }
  body.touch .xpwrap { width: min(300px, 38vw); margin-top: 2px; gap: 5px; }
  body.touch .xpwrap .bar { height: 6px; }
  body.touch .xpwrap > span { font-size: 10px; }
  body.touch .run-progress.cu-route { margin-top: 1px; gap: 4px; }
  body.touch .cu-route .run-route { gap: 4px; }
  body.touch .cu-route .run-route li { width: 20px; height: 20px; border-width: 1px; }
  body.touch .cu-route .run-route li img { width: 16px; height: 16px; }
  body.touch .cu-route .run-route li i { font-size: 12px; }
  body.touch .cu-route .run-route li b { right: -3px; bottom: -3px; min-width: 11px; height: 11px; line-height: 11px; font-size: 8px; }
  body.touch .run-left { min-width: 24px; height: 18px; padding: 0 5px; line-height: 18px; font-size: 10px; }
  body.touch #streak,
  body.touch #hud:has(.run-progress:not([hidden])) #streak { top: calc(62px + var(--sat)); font-size: 14px; }

  body.touch #controls { --touch-a-size: 64px; --touch-b-size: 54px; }
  body.touch #btnA { right: calc(12px + var(--sar)); bottom: calc(12px + var(--sab)); border-width: 2px; box-shadow: 0 3px 0 rgba(0,0,0,.32); }
  body.touch #btnB { right: calc(84px + var(--sar)); bottom: calc(12px + var(--sab)); border-width: 2px; box-shadow: 0 3px 0 rgba(0,0,0,.32); }
  body.touch #controls::before { left: calc(14px + var(--sal)); bottom: calc(12px + var(--sab)); width: 74px; height: 74px; border-width: 1.5px; font-size: 10px; }
  body.touch #controls:has(#stick.on)::before { opacity: 0; }
  body.touch #stick { --stick-half: calc(clamp(26px, 8vmin, 32px) + 22px); width: calc(var(--stick-half) * 2); height: calc(var(--stick-half) * 2); margin: calc(0px - var(--stick-half)) 0 0 calc(0px - var(--stick-half)); }
  body.touch #stickKnob { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  body.touch #btnA b { font-size: 24px; margin-top: -8px; }
  body.touch #btnB b { font-size: 21px; margin-top: -9px; }
  body.touch #btnB em { font-size: 16px; padding-bottom: 7px; }
  body.touch #btnA .cu-action-cd { top: 6px; font-size: 8px; }
  body.touch #btnA .cu-action-name,
  body.touch #btnB .cu-action-name { bottom: 7px; font-size: 9px; }
  body.touch #btnB .cu-action-name { bottom: 6px; }
}

/* ---------- 寬螢幕（1440×900）：面板加寬，技能兩欄 ---------- */
@media (min-width: 1024px) and (min-height: 700px) {
  #pause .panel.cu-pause { width: min(720px, 100%); }
  .cu-skills, .cu-gear-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) { .cu-route .run-route li { transition: none; } }

/* 怎麼玩也使用同一組圖解；長說明點開才讀。 */
.beta-help .cu-h { color: #613243; margin-top: 10px; }
.beta-help .cu-ctl { background: #30263f; color: #fff3d6; }
.beta-help .cu-ctl > b, .beta-help .cu-ctl .cu-line { color: #fff3d6; }
.beta-help .beta-pause-guide { margin: 12px 0; font-size: 13px; }
.beta-notes > summary { cursor: pointer; font-weight: 800; min-height: 44px; padding: 12px 0; }

/* β0.6：流派與造型分開選；入口只放圖示和極短句。 */
.sc-style-picker > p { display: flex; align-items: baseline; gap: 10px; }
.sc-style-picker > p > span { font-size: 11px; font-weight: 600; color: rgba(255,243,214,.7); }
.sc-career-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.sc-career-grid .sc-career { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 92px; min-width: 0; padding: 8px 5px; text-align: center; }
.sc-career-grid .sc-career-icon { display: grid; place-items: center; width: 32px; height: 32px; font-size: 25px; line-height: 1; }
.sc-career-grid .sc-career b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.sc-title .sc-career-grid .sc-career small { display: block; font-size: 11px; line-height: 1.2; }
.sc-career-grid .sc-career.sc-on::after { content: '✓'; position: absolute; top: 4px; right: 6px; color: #b7f2d0; font-size: 12px; }
.cu-career-detail { padding: 6px 11px; border: 1px solid rgba(174,221,228,.2); border-radius: 12px; background: rgba(16,34,43,.3); }
.cu-career-detail p { margin: 6px 0; font-size: 12px; line-height: 1.65; color: rgba(255,243,214,.9); }
.cu-career-detail .cu-career-appearance { color: #bcebd5; font-size: 11px; }
.sc-appearance-note { color: #bcebd5; padding-bottom: 8px; }

/* 按鈕以真實招名識別；冷卻數字與機制圖示不佔戰場段落。 */
#btnA .cu-action-name, #btnB .cu-action-name { position: absolute; left: 3px; right: 3px; bottom: 15px; z-index: 3;
  font-size: 11px; font-weight: 900; line-height: 1.1; text-align: center; color: #1a2530; pointer-events: none; white-space: nowrap; }
#btnA b, #btnB b { margin-top: -12px; }
#btnA small, #btnB small { bottom: 3px; font-size: 9px; }
#btnA .cu-action-cd { position: absolute; top: 11px; left: 0; right: 0; text-align: center; z-index: 3; font-size: 10px; font-weight: 800; font-style: normal;
  line-height: 1; color: #202139; font-variant-numeric: tabular-nums; }
#btnB.cooling .cu-action-name { color: #fff7db; text-shadow: 0 1px 2px #182332; }
/* 縮小觸控圈時仍把招名、主按鍵與冷卻分開，五字招名維持 11px。 */
body.touch #btnA b { font-size: 30px; margin-top: -10px; }
body.touch #btnB b { font-size: 24px; margin-top: -12px; }
body.touch #btnB em { font-size: 19px; padding-bottom: 10px; }
body.touch #btnA .cu-action-cd { top: 9px; }
body.touch #btnA .cu-action-name { bottom: 12px; }
body.touch #btnB .cu-action-name { bottom: 10px; }
body:not(.touch) #btnA .cu-action-name, body:not(.touch) #btnB .cu-action-name { font-size: 9px; bottom: 15px; }
body:not(.touch) #btnA .cu-action-cd { top: 8px; font-size: 9px; }
/* A short lock line belongs to the HP bar and never intercepts combat input. */
#bossBar { grid-template-areas: "icon name cue" "icon bar cue" "lock lock lock"; }
.boss-gate-lock { grid-area: lock; justify-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; margin-top: 3px; border: 1px solid #ffe3a1; border-radius: 6px; background: #342b25; color: #fff4d5; font-size: 11px; font-weight: 800; line-height: 1.3; pointer-events: none; }
.boss-gate-lock[hidden] { display: none; }
.boss-gate-lock canvas { width: 16px; height: 16px; }
#bossBar.gear-gates .bar { position: relative; }
#bossBar.gear-gates .bar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent calc(25% - 1px), #342b25 calc(25% - 1px), #342b25 calc(25% + 1px), transparent calc(25% + 1px), transparent calc(50% - 1px), #342b25 calc(50% - 1px), #342b25 calc(50% + 1px), transparent calc(50% + 1px), transparent calc(75% - 1px), #342b25 calc(75% - 1px), #342b25 calc(75% + 1px), transparent calc(75% + 1px)); }
@media (max-width: 380px) { .sc-career-grid { gap: 6px; } .sc-career-grid .sc-career b { font-size: 13px; } }
@media (max-height: 500px) {
  .sc-career-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .sc-career-grid .sc-career { min-height: 70px; padding: 6px 3px; }
  .sc-career-grid .sc-career b { font-size: 11px; }
  .sc-career-grid .sc-career-icon { width: 26px; height: 26px; font-size: 22px; }
  .sc-title .sc-career-grid .sc-career small { font-size: 9px; }
}

/* ADV-080: effect first, numbers on a separate quiet line. */
.cu-card .cu-card-numbers { display: block; font-size: 11px; line-height: 1.5; color: #d5d0c2; margin-top: 4px; }
.cu-ctl .cu-btn { font-size: 15px; }
.cu-card .desc { line-height: 1.5; }
