/* 見た目(画面係)。動きは transform と opacity だけ(スマホで軽い)。
   スマホ横(844x390)が基本。縦長・PC も崩れないように。 */
:root {
  color-scheme: dark;
  --accent: #ff5a1f; --gold: #ffd23f; --ink: #120808; --red: #ff2a3a; --cyan: #5fe0ff;
  --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px);
  --stroke: 0 2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000, 0 3px 6px rgba(0,0,0,.6);
  /* まんなかの文字の 2 つの段(上: 大きな文字 / 下: まとめ倒しなどの 1 行)。主人公(画面のまんなか)より上に置く */
  --lane: 24%; --laneSub: calc(24% + 92px); --mm: 88px;
  /* ---- 第5弾: 画面(HUD)を そろえる決まり。字・角・すきま・板の色は ここの少ない種類だけを使う ---- */
  --fs-xs: 11px;            /* いちばん小さい字(キーの案内・ラベル)。これより小さくしない */
  --fs-s: 13px;             /* 小さい字 */
  --fs-m: 15px;             /* ふつうの字 */
  --fs-l: 18px;             /* 大事な数字 */
  --r-s: 6px; --r-m: 12px; --r-pill: 999px;          /* 角の丸み: 小 / 板・四角いボタン / 丸い札 */
  --panel: rgba(12, 14, 22, .58); --panel-hi: rgba(12, 14, 22, .84);   /* 板の色(うすい / こい) */
  --line: rgba(255, 255, 255, .3); --line-hi: rgba(255, 255, 255, .62); --bw: 1.5px;   /* ふちの線 */
  --lift: 0 2px 8px rgba(0, 0, 0, .45);                /* 板の影 */
  --gap: 6px; --edge: 10px; --top: 8px;                /* 部品のすきま / 画面のはしから */
  --sq: 44px;                                          /* 四角いボタン(一時停止・視点・武器の列) */
  /* 右下の操作: 撃つボタンの右はし・武器の切りかえの段(◀ 札 ▶)の 高さ・下からの位置・札の幅 */
  --ctl-e: 28px; --sw-h: 48px; --sw-b: 162px; --wchip: 190px;
  /* 武器の種類の色 */
  --c-gun: #ffc23f; --c-blast: #ff6a3a; --c-energy: #5fd8ff; --c-melee: #8cf06a; --c-summon: #c08aff;
}
.wc-gun { --wc: var(--c-gun); } .wc-blast { --wc: var(--c-blast); } .wc-energy { --wc: var(--c-energy); } .wc-melee { --wc: var(--c-melee); } .wc-summon { --wc: var(--c-summon); }
/* 武器の絵(ui-icons.js が 3D の形から 1 枚の画像を作る。できるまで・作れないときは 中の絵文字) */
.wi { display: block; position: relative; width: 100%; height: 100%; font-style: normal; background: var(--wicons, none) no-repeat; background-size: var(--wi-size, 800% 400%); }
.wi em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; line-height: 1; }
body.wicons .wi em { display: none; }
.wi.inl { display: inline-block; width: 1.9em; height: 1.9em; vertical-align: -.6em; margin-right: 2px; }
* { box-sizing: border-box; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: #fff; overscroll-behavior: none;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
#app { position: fixed; inset: 0; }
canvas#game { position: absolute; inset: 0; display: block; touch-action: none; }
.hidden { display: none !important; }

/* ================= 重ねる画面(タイトル・設定・一時停止・結果) ================= */
.overlay { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: calc(var(--sat) + 10px) calc(var(--sar) + 20px) calc(var(--sab) + 10px) calc(var(--sal) + 20px);
  background: radial-gradient(ellipse at center, rgba(20, 6, 6, .45), rgba(10, 2, 2, .88)); overflow-y: auto; }
.overlay:not(.hidden) { animation: ovIn .25s ease-out; }
@keyframes ovIn { from { opacity: 0; } }
#loading { font-size: 18px; background: radial-gradient(ellipse at center, #3a0f06, var(--ink) 70%); gap: 14px; }
.logo.small { font-size: min(8vw, 11vh, 60px); animation: logoIn .7s cubic-bezier(.2,1.6,.4,1) both; }
.load-bar { width: min(320px, 70vw); height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; border: 1px solid rgba(255,255,255,.2); }
.load-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff7a1f, var(--gold)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s ease-out; }
.load-text { margin: 0; font-size: 14px; font-weight: 800; opacity: .85; min-height: 1.4em; }
.rotate-hint { display: none; margin: 0; font-size: 14px; font-weight: 800; color: var(--gold); text-shadow: var(--stroke); }

/* --- タイトル --- */
#title { background: linear-gradient(180deg, rgba(10,2,2,.65), rgba(10,2,2,.15) 40%, rgba(10,2,2,.15) 60%, rgba(10,2,2,.8)); gap: 8px; }
.logo { margin: 0; font-size: min(10vw, 14vh, 78px); font-weight: 900; letter-spacing: .04em; line-height: 1.05;
  color: #fff; text-shadow: 0 4px 0 #6a0d00, 0 7px 0 #000, 0 0 30px rgba(255, 90, 31, .85);
  animation: logoIn .7s cubic-bezier(.2,1.6,.4,1) both, logoGlow 2.4s ease-in-out .7s infinite alternate; }
.logo span { display: block; font-size: .42em; color: var(--gold); letter-spacing: .5em; margin-right: -.5em; text-shadow: 0 3px 0 #000, 0 0 18px rgba(255,210,63,.7); }
@keyframes logoIn { from { transform: scale(2.2) rotate(-4deg); opacity: 0; } }
@keyframes logoGlow { to { transform: scale(1.035); } }
.lead { margin: 0; font-size: clamp(13px, min(3.6vw, 4.4vh), 20px); line-height: 1.5; font-weight: 800; text-shadow: var(--stroke); }
.title-best { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 14px; font-weight: 800; text-shadow: var(--stroke); }
.title-best b { color: var(--gold); font-size: 18px; }
.howto { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; }
.howto li { font-size: 12px; font-weight: 800; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.2); }
.howto b { margin-right: 4px; }
.corner-btn { position: absolute; top: calc(var(--sat) + 10px); right: calc(var(--sar) + 12px); font-size: 15px; padding: 8px 16px; }

/* --- 共通 --- */
h2 { margin: 0 0 2px; font-size: 32px; font-weight: 900; text-shadow: var(--stroke); }
.row { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
button { font: inherit; font-weight: 800; font-size: 17px; padding: 10px 26px; border: 2px solid rgba(255,255,255,.4); border-radius: 999px;
  background: rgba(0,0,0,.5); color: #fff; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:active { transform: scale(.95); }
button.big { font-size: 24px; padding: 13px 50px; border: 0; color: #1a0500; text-shadow: none;
  background: linear-gradient(180deg, #ffe066, #ff7a1f); box-shadow: 0 6px 0 #8a2a00, 0 0 30px rgba(255, 120, 31, .6); }
button.big:active { transform: translateY(4px); box-shadow: 0 2px 0 #8a2a00; }
#btnPlay { font-size: 28px; padding: 14px 64px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 6px 0 #8a2a00, 0 0 46px rgba(255, 160, 31, .9); } }
#btnPlay:active { animation: none; }

/* --- 設定 --- */
#settings { gap: 6px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(420px, 100%);
  padding: 4px 6px 4px 16px; border-radius: 14px; background: rgba(0,0,0,.45); }
.set-row > span { font-size: 18px; font-weight: 800; }
.seg { display: flex; gap: 4px; }
.seg button { font-size: 15px; padding: 7px 16px; border-width: 1px; }
.seg button[aria-pressed="true"] { background: var(--gold); color: #1a0500; border-color: var(--gold); }
.set-note { margin: 0; font-size: 12px; opacity: .75; }
.set-row > span small { display: block; font-size: 11px; font-weight: 600; opacity: .75; line-height: 1.1; }
.set-row > span { text-align: left; }
/* 横向きのスマホ(高さが低い): 設定の行を つめて、見出しと「もどる」まで 画面に入れる */
@media (max-height: 430px) {
  #settings { gap: 4px; }
  #settings h2 { font-size: 24px; }
  #settings .set-row { padding: 2px 4px 2px 14px; }
  #settings .set-row > span { font-size: 16px; }
  #settings .seg button, #settings .set-row .view-open { padding: 5px 14px; }
  #settings button.big { padding: 8px 40px; font-size: 19px; }
}

/* --- 一時停止 --- */
.pause-score { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.pause-score b { color: var(--gold); font-size: 24px; }

/* --- 結果 --- */
#result { gap: 6px; }
.res-title { font-size: 26px; letter-spacing: .3em; margin-right: -.3em; opacity: .9; }
.res-score { margin: 0; font-size: 18px; font-weight: 800; }
.res-score b { display: inline-block; font-size: min(52px, 12vh); color: var(--gold); text-shadow: 0 4px 0 #000, 0 0 24px rgba(255,210,63,.6); font-variant-numeric: tabular-nums; vertical-align: middle; }
.res-hint { margin: 0; font-size: 14px; font-weight: 800; color: #ffb38a; min-height: 0; }
.res-hint:empty { display: none; }
.res-grid { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; }
.res-grid div { display: flex; flex-direction: column; padding: 6px 14px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); }
.res-grid small { font-size: 11px; opacity: .8; font-weight: 700; }
.res-grid b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.res-best { margin: 0; font-size: 15px; font-weight: 800; opacity: .9; } .res-best b { color: var(--gold); font-size: 20px; }
.newrec { margin: 0; font-size: 26px; font-weight: 900; color: var(--gold); text-shadow: 0 3px 0 #000, 0 0 20px rgba(255,210,63,.9); animation: pulse .5s infinite alternate; }
@keyframes pulse { to { transform: scale(1.1); } }
#result.rec { background: radial-gradient(ellipse at center, rgba(90, 60, 0, .55), rgba(10, 2, 2, .9)); }

/* ================= 点数など(HUD) ================= */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; font-weight: 900; text-shadow: var(--stroke); }
.pop-layer { position: absolute; inset: 0; overflow: hidden; contain: strict; }

/* 左上: ミニマップ・倒した数・時間 */
.hud-tl { position: absolute; top: calc(var(--sat) + var(--top)); left: calc(var(--sal) + var(--edge)); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.minimap { width: 88px; height: 88px; border-radius: 50%; display: block; box-shadow: var(--lift); }
.hud-stats { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.hud-stats .kills { font-size: var(--fs-l); font-variant-numeric: tabular-nums; } .hud-stats .kills i { font-style: normal; font-size: var(--fs-s); margin-right: 3px; opacity: .85; }
.hud-stats .time { font-size: var(--fs-s); opacity: .85; font-variant-numeric: tabular-nums; }

/* 上のまんなか: 点数 */
.hud-score { position: absolute; top: calc(var(--sat) + 4px); left: 50%; transform: translateX(-50%); text-align: center; min-width: 180px; }
.hud-score b { display: block; font-size: 34px; letter-spacing: .02em; line-height: 1.1; font-variant-numeric: tabular-nums; transform-origin: 50% 60%; }
.hud-score small { display: block; font-size: var(--fs-s); line-height: 1.2; opacity: .9; font-weight: 800; }
.pace { width: 120px; height: 5px; margin: 3px auto 0; border-radius: 3px; background: rgba(0,0,0,.5); overflow: hidden; }
.pace i { display: block; height: 100%; background: linear-gradient(90deg, #ff7a1f, var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }
.hud-score.record b { color: var(--gold); text-shadow: var(--stroke), 0 0 18px rgba(255,210,63,.9); }
.hud-score.record small { color: var(--gold); opacity: 1; animation: pulse .45s infinite alternate; }
.hud-score.record .pace i { background: linear-gradient(90deg, #fff6b0, var(--gold), #ff9a1f); }

/* ボスの体力 */
.hud-boss { position: absolute; top: calc(var(--sat) + 70px); left: 50%; width: min(46vw, 420px); transform: translateX(-50%); animation: bossIn .5s cubic-bezier(.2,1.5,.4,1); }
@keyframes bossIn { from { transform: translateX(-50%) scaleX(.2); opacity: 0; } }
.boss-name { display: flex; align-items: baseline; gap: 6px; font-size: 14px; margin-bottom: 2px; }
.boss-name span { font-size: 11px; color: #fff; background: var(--red); padding: 0 6px; border-radius: 4px; text-shadow: none; letter-spacing: .1em; }
.boss-bar { position: relative; height: 12px; border-radius: 6px; background: rgba(0,0,0,.6); border: 2px solid rgba(255,255,255,.7); overflow: hidden; box-shadow: 0 0 12px rgba(255,40,40,.6); }
.boss-bar i { position: absolute; inset: 0; transform-origin: 0 50%; }
.boss-lag { background: #fff; opacity: .85; }
.boss-fill { background: linear-gradient(180deg, #ff6a5a, #c40018); }

/* 右: コンボ */
.hud-combo { position: absolute; top: calc(var(--sat) + 68px); right: calc(var(--sar) + var(--edge) + 2px); text-align: right; opacity: 0; transform: translateX(30px); transition: opacity .2s, transform .2s; }
.hud-combo.on { opacity: 1; transform: none; }
.hud-combo.end { opacity: 0; transform: translateY(-14px) scale(.9); transition: opacity .6s, transform .6s; }
.hud-combo b { display: block; font-size: 42px; line-height: 1; font-style: italic; transform-origin: 100% 70%; font-variant-numeric: tabular-nums; }
.combo-label { font-size: var(--fs-s); letter-spacing: .08em; display: flex; gap: var(--gap); justify-content: flex-end; align-items: baseline; }
.combo-label em { font-size: var(--fs-l); font-style: normal; color: var(--gold); }
.combo-bar { width: 96px; height: 5px; margin: 3px 0 0 auto; border-radius: 3px; background: rgba(0,0,0,.5); overflow: hidden; }
.combo-bar i { display: block; height: 100%; background: currentColor; transform-origin: 100% 50%; }
.hud-combo.hurry .combo-bar i { animation: blink .18s infinite alternate; }
@keyframes blink { to { opacity: .3; } }
.hud-combo.t0 { color: #fff; }
.hud-combo.t1 { color: #ffe066; }
.hud-combo.t2 { color: #ffa53a; } .hud-combo.t2 b { font-size: 48px; }
.hud-combo.t3 { color: #ff5a3a; } .hud-combo.t3 b { font-size: 54px; text-shadow: var(--stroke), 0 0 16px rgba(255,90,58,.8); }
.hud-combo.t4 { color: #ff3bd0; } .hud-combo.t4 b { font-size: 58px; text-shadow: var(--stroke), 0 0 20px rgba(255,59,208,.9); }
.hud-combo.t5 b { font-size: 62px; animation: rainbow 1s linear infinite; text-shadow: var(--stroke), 0 0 24px rgba(255,255,255,.8); }
.hud-combo.t5 { color: #fff; }
@keyframes rainbow { 0% { color: #ff3b6b; } 25% { color: #ffd23f; } 50% { color: #5fff8a; } 75% { color: #5fe0ff; } 100% { color: #ff3b6b; } }

/* 武器の列(上の右。さわって選べる) */
/* まわりに 6px の あき(今の武器の光が 切れないように)。その分 上と右へ ずらす */
.weapon-bar { position: fixed; z-index: 13; text-shadow: var(--stroke); top: calc(var(--sat) + var(--top) - 6px);
  right: calc(var(--sar) + var(--edge) + 2 * var(--sq) + 2 * var(--gap) - 6px); max-width: calc(50vw - 170px); display: flex; gap: 5px;
  overflow-x: auto; scrollbar-width: none; pointer-events: auto; touch-action: pan-x; padding: 6px; border-radius: var(--r-m); }
.weapon-bar::-webkit-scrollbar { display: none; }
/* 武器の 1 マス: こい板 + 下に 種類の色。今の武器は 白いふち + 種類の色で光る */
.wbtn { position: relative; flex: 0 0 auto; width: var(--sq); height: var(--sq); padding: 2px; border-radius: var(--r-m); font-size: 23px; line-height: 1;
  background: radial-gradient(circle at 50% 118%, var(--wc, #888) -30%, rgba(14, 16, 24, .82) 62%); border: var(--bw) solid var(--line); opacity: .8;
  transition: transform .12s, opacity .12s; }
.wbtn sub { display: none; position: absolute; left: 4px; top: 2px; font-size: var(--fs-xs); line-height: 1; opacity: .9; }
body.pc .wbtn sub { display: block; }
.wbtn.on { opacity: 1; border-color: #fff; transform: scale(1.07); z-index: 1;
  background: radial-gradient(circle at 50% 105%, var(--wc, #fff) -10%, rgba(24, 28, 40, .9) 78%);
  box-shadow: 0 0 0 1.5px var(--wc, #fff), 0 0 12px 1px var(--wc, #fff); }
/* 今の武器の札(撃つボタンの上。スマホは ◀ と ▶ の あいだ): 絵 + 名前 */
.weapon-name { position: absolute; z-index: 1; bottom: calc(var(--sab) + var(--sw-b)); right: calc(var(--sar) + var(--ctl-e) + var(--sw-h) + var(--gap));
  width: var(--wchip); height: var(--sw-h); display: flex; align-items: center; gap: 4px; padding: 0 8px 0 3px; white-space: nowrap;
  border-radius: var(--r-m); background: var(--panel); border: var(--bw) solid var(--line); box-shadow: var(--lift), inset 0 -3px 0 -1px var(--wc, transparent); }
.weapon-name .wi { flex: 0 0 auto; width: 42px; height: 42px; font-size: 24px; }
.wn-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.weapon-name b { overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-m); }
.weapon-name.long b { font-size: var(--fs-s); letter-spacing: -.03em; }
.wn-key { display: none; font-size: var(--fs-xs); font-weight: 700; opacity: .9; margin-top: 2px; }
.weapon-name.chg { animation: chipPop .5s ease-out; }
@keyframes chipPop { 0% { transform: scale(1.12); border-color: #fff; } 100% { transform: scale(1); } }
/* 武器が変わったとき: まんなかより少し下に 大きな絵と名前(0.9 秒で消える) */
.wpop { position: absolute; z-index: 3; left: 50%; top: 58%; display: flex; align-items: center; gap: 8px; padding: 4px 20px 4px 8px; white-space: nowrap;
  border-radius: 18px; background: linear-gradient(180deg, rgba(26, 30, 42, .88), rgba(8, 10, 16, .88)); border: 2px solid var(--wc, #fff);
  box-shadow: 0 0 20px -2px var(--wc, #fff), var(--lift); transform: translate(-50%, 0); opacity: 0; }
.wpop .wi { flex: 0 0 auto; width: 76px; height: 76px; font-size: 42px; }
.wpop span { display: flex; flex-direction: column; line-height: 1.15; }
.wpop small { font-size: var(--fs-s); color: var(--wc, #fff); letter-spacing: .14em; }
.wpop b { font-size: 24px; }
.wpop.on { animation: wpopIn .9s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes wpopIn {
  0% { opacity: 0; transform: translate(-50%, 12px) scale(1.25); }
  13% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  68% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8px) scale(.97); }
}

/* 一時停止ボタン(四角いボタンは どれも 同じ形: 視点・武器の列・◀▶) */
.hud-pause { position: absolute; top: calc(var(--sat) + var(--top)); right: calc(var(--sar) + var(--edge)); pointer-events: auto;
  width: var(--sq); height: var(--sq); padding: 0; text-shadow: none; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-m); background: var(--panel); border: var(--bw) solid var(--line-hi); box-shadow: var(--lift); }
.hud-pause i { display: block; width: 14px; height: 16px; border-left: 5px solid #fff; border-right: 5px solid #fff; }
/* パソコン: キーの案内(ボタンの下の 小さな札。どれも同じ形) */
.keyhint { display: none; }
body.pc .keyhint, .wn-key kbd { font-family: inherit; font-size: var(--fs-xs); font-weight: 800; line-height: 1.25; padding: 0 6px 1px; border-radius: var(--r-s);
  background: var(--panel-hi); border: 1px solid var(--line); color: #fff; white-space: nowrap; text-shadow: none; letter-spacing: 0; }
body.pc .keyhint { display: block; position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); pointer-events: none; }
.wn-key kbd { display: inline-block; margin-right: 3px; }

/* まんなかの大きな文字(上の段)。主人公の頭より上に出す */
.banner { position: absolute; z-index: 2; left: 50%; top: var(--lane); transform: translate(-50%, 0); text-align: center; white-space: nowrap; opacity: 0; }
.banner b { display: block; font-size: min(46px, 9vh, 8vw); line-height: 1.15; font-style: italic; letter-spacing: .02em; }
.banner small { display: block; font-size: 16px; margin-top: 0; }
.banner.on { animation: bannerIn var(--dur, 1.6s) cubic-bezier(.2,1.4,.4,1) both; }
@keyframes bannerIn {
  0% { opacity: 0; transform: translate(-50%, 0) scale(2.2) rotate(-5deg); }
  8% { opacity: 1; transform: translate(-50%, 0) scale(.94) rotate(0); }
  13% { transform: translate(-50%, 0) scale(1.05); }
  18%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -30%) scale(1.03); }
}
.banner.gold b, .banner.kills b { color: var(--gold); }
.banner.combo b { color: #ffa53a; }
.banner.massacre b { color: #ff3b3b; text-shadow: var(--stroke), 0 0 24px rgba(255,0,0,.9); font-size: min(54px, 11vh, 9vw); }
.banner.start b { color: #fff; } .banner.start small { color: var(--gold); }
.banner.horde b { color: #ff8a2a; }
.banner.boss b { color: #ff2a3a; font-size: min(54px, 11vh, 9vw); text-shadow: var(--stroke), 0 0 30px rgba(255,0,0,.9); }
.banner.boss small { font-size: 20px; }
.banner.boss.on b { animation: shakeX .12s 6 linear; }
@keyframes shakeX { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.banner.bossdown b { color: var(--gold); font-size: min(56px, 11vh, 9vw); text-shadow: var(--stroke), 0 0 30px rgba(255,210,63,.9); }
.banner.bossdown small { font-size: 20px; color: #fff; }
.banner.record b { color: var(--gold); font-size: min(54px, 11vh, 9vw); text-shadow: var(--stroke), 0 0 30px rgba(255,210,63,1); }
.banner.record small { font-size: 16px; letter-spacing: .3em; color: #fff; }

/* 下の段: 少し小さい 1 行(まとめて倒した・小さな区切り)。いつも 1 行だけ */
.sub-banner { position: absolute; z-index: 2; left: 50%; top: var(--laneSub); transform: translate(-50%, 0); font-size: 17px; line-height: 1.15; white-space: nowrap; opacity: 0; }
.sub-banner b { color: #ff9a3a; font-size: 22px; } .sub-banner em { font-style: normal; color: var(--gold); }
.sub-banner.big { font-size: 19px; } .sub-banner.big b { font-size: 27px; color: #ff5a3a; }
.sub-banner.ms b { color: var(--gold); font-style: italic; }
.sub-banner.on { animation: subIn 1.3s ease-out both; }
@keyframes subIn { 0% { opacity: 0; transform: translate(-50%, 8px) scale(1.4); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }

/* 今いる場所(変わったときだけ、少しのあいだ) */
.hud-zone { position: absolute; top: calc(var(--sat) + var(--top) + 4px); left: calc(var(--sal) + var(--edge) + var(--mm) + 10px); max-width: calc(50vw - var(--mm) - 130px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-m); padding: 3px 12px 4px 8px; border-radius: var(--r-pill);
  background: var(--panel); border: 1px solid var(--line); opacity: 0; }
.hud-zone.on { animation: zoneIn 3.2s ease-out both; }
@keyframes zoneIn { 0% { opacity: 0; transform: translateX(-12px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 縦向きのときの ひとこと */
.rot-hint { display: none; position: absolute; left: 50%; top: 60%; transform: translateX(-50%); white-space: nowrap; font-size: 15px; color: var(--gold);
  padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.55); opacity: 0; }
.rot-hint.on { animation: rotIn 5s ease-out both; }
@keyframes rotIn { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* 飛び出す数字 */
.pop { position: absolute; left: 0; top: 0; will-change: transform, opacity; white-space: nowrap; font-weight: 900; }
.pop.dmg { font-size: 13px; color: #fff; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.pop.dmg.crit { font-size: 16px; color: #ffe14a; }
.pop.dmg.boss { color: #ffb08a; }
.pop.pts { font-size: 15px; color: var(--gold); }
.pop.pts.multi { color: #ff9a3a; }
.pop.pts.boss { color: var(--gold); text-shadow: var(--stroke), 0 0 14px rgba(255,210,63,.9); }

/* ボスがいる間、画面のふちが赤く脈打つ */
/* ボスが出たときだけ、画面のふちが 3 回 赤く脈打つ。そのあとは ほんのり(主人公は無敵なので「危ない」感じを出しすぎない) */
.vignette { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, transparent 62%, rgba(200,20,0,.4) 100%); transition: opacity .6s; }
.vignette.boss { animation: vpulse 1s ease-in-out 3 both; opacity: .1; }
@keyframes vpulse { 0%, 100% { opacity: .1; } 50% { opacity: .6; } }

/* 画面の外のボスへの矢印 */
.boss-arrow { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; line-height: 1; color: #ff4a4a; }
.boss-arrow i { font-style: normal; font-size: 22px; display: block; }
.boss-arrow span { font-size: 11px; background: var(--red); color: #fff; padding: 1px 5px; border-radius: 4px; text-shadow: none; animation: pulse .4s infinite alternate; }
.boss-arrow small { font-size: 11px; color: #fff; }

/* 画面全体のフラッシュ・紙ふぶき(結果画面の上にも出る) */
#fxLayer { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.flash { position: absolute; inset: 0; opacity: 0; }
.confetti { position: absolute; left: 0; top: 0; width: 8px; height: 14px; opacity: 0; border-radius: 2px; will-change: transform; }

/* ================= 操作(スティックとボタン。input.js が作る) ================= */
#controls { position: fixed; inset: 0; z-index: 12; pointer-events: none; }
.stick-zone { position: absolute; left: 0; top: 0; bottom: 0; width: 55%; pointer-events: auto; touch-action: none; }
.stick-base, .stick-knob { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .15s; }
.stick-base { width: 140px; height: 140px; border: 3px solid rgba(255,255,255,.35); background: rgba(0,0,0,.2); }
.stick-knob { width: 64px; height: 64px; background: rgba(255,255,255,.55); }
#controls.sticking .stick-base, #controls.sticking .stick-knob { opacity: 1; }
#controls .btn { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; line-height: 1.1; font-weight: 900; text-shadow: 0 2px 0 rgba(0,0,0,.55); }
/* 丸い操作ボタン(撃つ・回転斬り・ダッシュ)は 同じ作り: 白いふち 3px・左上が明るい玉・下に 厚み・自分の色で光る。押すと へこんで 明るく光る */
#controls .btn-fire, #controls .btn-spin, #controls .btn-dash { border: 3px solid rgba(255,255,255,.7);
  box-shadow: 0 4px 0 rgba(0,0,0,.4), 0 0 20px var(--bc), inset 0 -6px 10px rgba(0,0,0,.22); transition: transform .06s, filter .12s; }
#controls .btn.down { transform: translateY(3px) scale(.95); filter: brightness(1.32); }
#controls .btn-fire.down, #controls .btn-spin.down, #controls .btn-dash.down { box-shadow: 0 1px 0 rgba(0,0,0,.4), 0 0 30px 4px var(--bc), inset 0 4px 10px rgba(0,0,0,.35); }
.btn-fire { right: calc(var(--sar) + var(--ctl-e)); bottom: calc(var(--sab) + 28px); width: 120px; height: 120px; font-size: 22px;
  --bc: rgba(255, 90, 30, .6); background: radial-gradient(circle at 38% 30%, #ffb07a, #f2541c 46%, #ac1a00); }
.btn-spin { right: calc(var(--sar) + 160px); bottom: calc(var(--sab) + 24px); width: 84px; height: 84px; font-size: var(--fs-m);
  --bc: rgba(95, 224, 255, .5); background: radial-gradient(circle at 38% 30%, #b0eaff, #2090de 50%, #0a4c94); --p: 1; }
#controls .btn-spin:not(.ready) { filter: saturate(.45) brightness(.8); --bc: transparent; }
.btn-spin.flashready { animation: readyPop .4s ease-out; }
@keyframes readyPop { 0% { transform: scale(1.25); } }
.spin-ring { position: absolute; inset: -9px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(#8ff0ff calc(var(--p) * 360deg), rgba(255,255,255,.12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.btn-spin.ready .spin-ring { background: #8ff0ff; animation: ringGlow .8s ease-in-out infinite alternate; }
@keyframes ringGlow { to { opacity: .45; } }
/* 武器の切りかえの段: ◀ [今の武器の札] ▶ を 撃つボタンの上に 1 列に(四角いボタン。札と同じ高さ) */
#controls .btn-prev, #controls .btn-next { bottom: calc(var(--sab) + var(--sw-b)); width: var(--sw-h); height: var(--sw-h); font-size: 17px;
  border-radius: var(--r-m); background: var(--panel); border: var(--bw) solid var(--line-hi); box-shadow: var(--lift); }
#controls .btn-next { right: calc(var(--sar) + var(--ctl-e)); }
#controls .btn-prev { right: calc(var(--sar) + var(--ctl-e) + var(--sw-h) + var(--wchip) + 2 * var(--gap)); }

/* PC(マウスとキーボード): 武器の ◀▶ はかくして(ホイール・Q/R・数字キー)、ボタンの下に キーの案内(.keyhint)。
   案内の分だけ ボタンを少し上へ(3 つの下はしを そろえる)。札は 撃つボタンの真上(右はしを そろえる)で、2 行目に「スペースで 次の武器」 */
body.pc #controls .btn-prev, body.pc #controls .btn-next { display: none; }
body.pc { --sw-b: 172px; --sw-h: 56px; --wchip: 236px; }
body.pc #controls .btn-fire, body.pc #controls .btn-spin, body.pc #controls .btn-dash { bottom: calc(var(--sab) + 36px); }
body.pc #hud .weapon-name { right: calc(var(--sar) + var(--ctl-e)); padding-right: 10px; }
body.pc .weapon-name .wi { width: 50px; height: 50px; }
body.pc .weapon-name b { font-size: var(--fs-l); } body.pc .weapon-name.long b { font-size: var(--fs-m); }
body.pc .wn-key { display: block; font-size: var(--fs-s); }
body.pc .hud-combo { top: calc(var(--sat) + var(--top) + var(--sq) + 34px); }

/* ================= 画面の大きさごとの調整 ================= */
/* 背の低い横画面(スマホ横) */
@media (max-height: 430px) {
  :root { --lane: calc(var(--sat) + 96px); --laneSub: calc(var(--sat) + 151px); --mm: 80px; }
  .hud-score b { font-size: 30px; }
  .minimap { width: 80px; height: 80px; }
  .hud-boss { top: calc(var(--sat) + 62px); }
  .boss-name { font-size: 13px; }
  .banner b { font-size: min(30px, 6vw); }
  .banner small { font-size: 14px; }
  .banner.massacre b, .banner.boss b, .banner.bossdown b, .banner.record b { font-size: min(36px, 7vw); }
  .banner.boss small, .banner.bossdown small { font-size: 16px; }
  .sub-banner { font-size: 14px; } .sub-banner b { font-size: 18px; } .sub-banner.big b { font-size: 21px; }
  .hud-combo { top: calc(var(--sat) + 64px); }
  .hud-combo b { font-size: 32px; } .combo-label { font-size: var(--fs-xs); } .combo-label em { font-size: var(--fs-m); }
  .hud-combo.t2 b { font-size: 36px; } .hud-combo.t3 b { font-size: 39px; } .hud-combo.t4 b { font-size: 42px; } .hud-combo.t5 b { font-size: 44px; }
  #hud.hasboss { --lane: calc(var(--sat) + 112px); }
  /* スマホ横: 右下に ◀ 札 ▶ と ダッシュがあるので、少し左へ よせる */
  .wpop { top: 54%; left: 45%; padding: 2px 16px 2px 6px; } .wpop .wi { width: 60px; height: 60px; font-size: 34px; } .wpop b { font-size: 20px; }
}
/* とても低い横画面(小さい iPhone 横 667x375 など) */
@media (max-height: 380px) {
  :root { --lane: calc(var(--sat) + 86px); --laneSub: calc(var(--sat) + 146px); --sw-b: 148px; --sw-h: 44px; --wchip: 180px; }
  .hud-score b { font-size: 27px; }
  .hud-score small { font-size: var(--fs-xs); }
  .hud-boss { top: calc(var(--sat) + 56px); }
  .boss-bar { height: 10px; }
  .banner b { font-size: min(28px, 6vw); }
  .banner.massacre b, .banner.boss b, .banner.bossdown b, .banner.record b { font-size: min(32px, 7vw); }
  .banner small, .banner.boss small, .banner.bossdown small { font-size: 14px; }
  .btn-fire { width: 108px; height: 108px; }
  .btn-spin { right: calc(var(--sar) + 146px); width: 78px; height: 78px; }
  .weapon-name .wi { width: 38px; height: 38px; }
  #hud.hasboss { --lane: calc(var(--sat) + 102px); }
  .wpop { left: 35%; } .wpop .wi { width: 52px; height: 52px; } .wpop b { font-size: var(--fs-l); }
}
/* 縦長の画面(遊べるけれど、横向きをすすめる) */
@media (orientation: portrait) {
  :root { --lane: max(28%, calc(var(--sat) + 232px)); --laneSub: calc(var(--lane) + 80px); --mm: 72px; --sw-b: 194px; --wchip: min(190px, calc(100vw - 162px)); }
  .minimap { width: 72px; height: 72px; }
  /* 縦: 下から ボタン → 武器の切りかえの段(◀ 札 ▶)→ 武器の列 → 無双ゲージ。上は 点数・コンボ・ボスの体力・まんなかの文字 */
  .weapon-bar { top: auto; bottom: calc(var(--sab) + var(--sw-b) + var(--sw-h) + 2px); left: 50%; right: auto; transform: translateX(-50%); max-width: calc(100vw - 12px); }
  .wpop { top: 52%; padding: 2px 16px 2px 6px; } .wpop .wi { width: 60px; height: 60px; } .wpop b { font-size: 20px; }
  .hud-score small { font-size: var(--fs-xs); }
  .hud-score b, #hud .hud-score b { font-size: min(26px, calc((100vw - 226px) * 1.42 / var(--slen, 7))); }
  #hud.hasboss { --lane: max(28%, calc(var(--sat) + 254px)); }
  .hud-score { top: calc(var(--sat) + 8px); min-width: 0; }
  .hud-score b { font-size: 26px; }
  .hud-boss { top: calc(var(--sat) + 196px); width: 80vw; }
  .hud-combo { top: calc(var(--sat) + 66px); }
  .hud-combo b { font-size: 34px; } .hud-combo.t2 b { font-size: 38px; } .hud-combo.t3 b, .hud-combo.t4 b, .hud-combo.t5 b { font-size: 42px; }
  .hud-zone { top: auto; bottom: calc(var(--sab) + 14px); left: calc(var(--sal) + var(--edge)); max-width: 31vw; font-size: var(--fs-s); }
  .rot-hint, .rotate-hint { display: block; }
  .rot-hint { top: calc(var(--lane) + 84px); }
  .res-grid { grid-template-columns: repeat(2, auto); }
  .banner b { font-size: min(34px, 8.5vw); }
  .banner.massacre b, .banner.boss b, .banner.bossdown b, .banner.record b { font-size: min(40px, 9.5vw); }
  .logo { font-size: min(14vw, 78px); }
}
/* PC の広い画面 */
@media (min-width: 1100px) and (min-height: 600px) {
  :root { --lane: 20%; --laneSub: calc(20% + 108px); --mm: 120px; --sq: 48px; }
  .hud-score b { font-size: 42px; }
  .minimap { width: 120px; height: 120px; }
  .hud-boss { top: calc(var(--sat) + 84px); }
  .hud-combo { top: calc(var(--sat) + 70px); }
  .hud-combo b { font-size: 52px; }
  .wbtn { font-size: 25px; }
  .banner b { font-size: 54px; }
  .banner.massacre b, .banner.boss b, .banner.bossdown b, .banner.record b { font-size: 62px; }
  .hud-zone { font-size: 16px; }
}
#hud.paused .banner, #hud.paused .sub-banner, #hud.paused .pop-layer, #hud.paused .boss-arrow, #hud.paused .hud-zone, #hud.paused .rot-hint, #hud.paused .wpop { visibility: hidden; }

/* ================= 第2弾: 無双モード・出来事・チャレンジ ================= */
/* 無双ゲージ(横画面: 下のまんなか / 縦画面: 上の点数の下) */
.hud-fever { position: absolute; left: 50%; bottom: calc(var(--sab) + 10px); transform: translateX(-50%); width: min(32vw, 280px);
  display: flex; align-items: center; gap: var(--gap); font-size: var(--fs-s); transition: width .3s; }
.fv-label { font-size: var(--fs-m); color: var(--gold); letter-spacing: .1em; white-space: nowrap; }
.fv-bar { position: relative; flex: 1; height: 11px; border-radius: var(--r-s); background: rgba(0,0,0,.55); border: var(--bw) solid var(--line-hi); overflow: hidden; }
.fv-bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #ff7a1f, #ffd23f); }
.hud-fever b { min-width: 38px; text-align: right; font-size: var(--fs-s); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-fever.near .fv-bar { box-shadow: 0 0 10px rgba(255,210,63,.8); animation: fvNear .45s infinite alternate; }
@keyframes fvNear { to { border-color: var(--gold); } }
.hud-fever.on { width: min(44vw, 380px); }
.hud-fever.on .fv-label { animation: rainbow .6s linear infinite; font-size: var(--fs-l); }
.hud-fever.on .fv-bar { height: 15px; border-color: #fff6b0; box-shadow: 0 0 16px rgba(255,210,63,1); }
.hud-fever.on .fv-bar i { background: linear-gradient(90deg, #ff3b6b, #ffd23f, #5fff8a, #5fe0ff, #ff3b6b); background-size: 200% 100%; animation: fvFlow .6s linear infinite; }
.hud-fever.on b { color: var(--gold); font-size: var(--fs-m); }
@keyframes fvFlow { to { background-position: -200% 0; } }

/* 無双モード中: 画面のふちが金色に脈打つ */
.fever-tint { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(255,170,20,.62) 100%), linear-gradient(rgba(255,200,60,.07), rgba(255,200,60,.07)); transition: opacity .4s; }
#hud.fever .fever-tint { opacity: 1; animation: fvTint .45s ease-in-out infinite alternate; }
@keyframes fvTint { from { opacity: .5; } to { opacity: 1; } }
#hud.fever .hud-score b { color: var(--gold); }

/* 大量撃破のスロー(キルカム): 画面の上下に 映画みたいな黒い帯 */
#hud::before, #hud::after { content: ''; position: absolute; left: 0; right: 0; height: 0; background: rgba(0,0,0,.75); z-index: -1; }
#hud::before { top: 0; } #hud::after { bottom: 0; }
#hud.killcam::before, #hud.killcam::after { animation: kcBar 1.3s ease-in-out both; }
@keyframes kcBar { 0% { height: 0; } 15%, 70% { height: 8vh; } 100% { height: 0; } }

/* 時間限定チャレンジ(左上のミニマップの下) */
.hud-challenge { position: absolute; top: calc(100% + 4px); left: 0; width: max-content; min-width: 128px; max-width: 200px; padding: 4px 9px 6px;
  border-radius: var(--r-m); background: var(--panel-hi); border: 2px solid var(--cyan); box-shadow: var(--lift); text-align: left; line-height: 1.15; animation: chIn .4s cubic-bezier(.2,1.5,.4,1); }
@keyframes chIn { from { transform: scale(.4); opacity: 0; } }
.hud-challenge small { display: block; font-size: var(--fs-xs); color: #9ff0ff; white-space: normal; }
.hud-challenge b { font-size: var(--fs-l); font-variant-numeric: tabular-nums; }
.hud-challenge em { float: right; font-style: normal; font-size: var(--fs-m); color: var(--gold); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ch-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 2px; }
.ch-bar i { display: block; height: 100%; background: #5fe0ff; transform-origin: 0 50%; transform: scaleX(0); }
.hud-challenge.hurry em { color: #ff5a3a; animation: pulse .3s infinite alternate; }

/* 出来事・無双モードの大きな文字 */
.banner.fever b { color: var(--gold); font-size: min(60px, 12vh, 10vw); text-shadow: var(--stroke), 0 0 30px rgba(255,160,0,1); }
.banner.fever.on b { animation: rainbow .5s linear infinite; }
.banner.fever small { font-size: 20px; color: #fff; }
.banner.supply b { color: var(--gold); } .banner.supply small { color: #fff; }
.banner.golden b { color: #ffe680; text-shadow: var(--stroke), 0 0 24px rgba(255,220,80,1); } .banner.golden small { color: #fff; }
.banner.airstrike b { color: #ff6a4a; } .banner.airstrike small { color: #fff; }
.banner.challenge b { color: #5fe0ff; } .banner.challenge small { font-size: 20px; color: #fff; }
.banner.discover b { color: #7dff9a; font-size: min(34px, 7vh, 7vw); } .banner.discover small { color: #fff; }
.sub-banner.pb b { color: #7dff6b; }
.pop.pts.shield { color: #9fd8ff; font-size: 17px; }

.set-row .view-open { font-size: 15px; padding: 7px 16px; border-width: 1px; }

/* 結果: このプレイの記録 */
.res-extra { grid-template-columns: repeat(3, auto); }
.res-extra b { font-size: 16px; } .res-extra b small { font-size: 11px; opacity: .8; font-weight: 700; }

@media (max-height: 430px) {
  .hud-fever { width: min(30vw, 250px); bottom: calc(var(--sab) + 6px); }
  .hud-fever.on { width: min(40vw, 330px); }
  .banner.fever b { font-size: min(40px, 7.5vw); } .banner.fever small, .banner.challenge small { font-size: 15px; }
  .banner.discover b { font-size: min(26px, 5.5vw); }
  .hud-challenge b { font-size: 16px; }
}
@media (orientation: portrait) {
  .hud-fever { left: calc(var(--sal) + var(--edge) + 2px); bottom: calc(var(--sab) + var(--sw-b) + var(--sw-h) + 66px); transform: none; width: 62vw; }
  .hud-fever.on { width: 62vw; }
  .banner.fever b { font-size: min(44px, 11vw); }
  .res-extra { grid-template-columns: repeat(2, auto); }
}

/* ================= 第2弾の画面の整理(テスト係B) ================= */
/* 横画面: 無双ゲージは ダッシュ・回転斬りのボタンに かからないよう、まんなかより少し左へ(広い画面では まんなか) */
@media (orientation: landscape) {
  .hud-fever { left: auto; right: max(calc(var(--sar) + 352px), calc(50% - 125px)); transform: none; width: 250px; }
  .hud-fever.on { width: min(40vw, 330px); }
}
@media (orientation: landscape) and (max-height: 430px) {
  .hud-fever { width: min(30vw, 250px); }
}
@media (orientation: landscape) and (min-width: 1100px) and (min-height: 600px) {
  .hud-fever { right: calc(50% - 140px); width: 280px; }
  .hud-fever.on { right: calc(50% - 190px); width: 380px; }
}
/* 肩越し・一人称(横画面): まんなかの照準のあたりを あけるため、大きな文字は 点数(ボスの体力)のすぐ下に 1 行で出す。
   下の段の 1 行も 同じ場所(大きな文字が出ている間は 順番待ち) */
@media (orientation: landscape) {
  #hud.close .banner, #hud.close .sub-banner { top: var(--laneC, var(--lane)); }
  #hud.close .banner b, #hud.close .banner small { display: inline-block; vertical-align: baseline; }
  #hud.close .banner small { margin-left: .6em; }
}
/* 肩越し・一人称: 主人公(手元の武器)が まんなかの下に いるので、武器が変わった表示は 左下へ よける */
@media (orientation: landscape) { #hud.close .wpop { left: 29%; top: 62%; } }
@media (orientation: portrait) { #hud.close .wpop { top: 31%; } }
/* はばの せまい横画面(小さい iPhone): 1 行だと 左の倒した数・右のコンボに とどくので、2 行に もどす */
@media (orientation: landscape) and (max-width: 740px) {
  #hud.close .banner small { display: block; margin-left: 0; }
}
@media (orientation: landscape) and (max-height: 430px) {
  #hud.close .banner b { font-size: min(28px, 5.5vw); }
  #hud.close .banner.massacre b, #hud.close .banner.boss b, #hud.close .banner.bossdown b, #hud.close .banner.record b, #hud.close .banner.fever b { font-size: min(32px, 6vw); }
  #hud.close .banner small, #hud.close .banner.boss small, #hud.close .banner.bossdown small, #hud.close .banner.fever small, #hud.close .banner.challenge small { font-size: 14px; }
}

/* 武器の列の いちばん左「▦ 全部」(横に送っても いつも見える) */
.wbtn.wall { position: sticky; left: 0; z-index: 2; opacity: 1; background: var(--panel-hi); border-color: var(--line-hi); box-shadow: var(--lift);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
/* ■ を 3 × 3 に ならべた しるし(「ぜんぶ ならべて見る」) */
.wall-ic { display: block; width: 17px; height: 17px;
  background: linear-gradient(#fff, #fff) 0 0 / 5px 5px, linear-gradient(#fff, #fff) 6px 0 / 5px 5px, linear-gradient(#fff, #fff) 12px 0 / 5px 5px,
    linear-gradient(#fff, #fff) 0 6px / 5px 5px, linear-gradient(#fff, #fff) 6px 6px / 5px 5px, linear-gradient(#fff, #fff) 12px 6px / 5px 5px,
    linear-gradient(#fff, #fff) 0 12px / 5px 5px, linear-gradient(#fff, #fff) 6px 12px / 5px 5px, linear-gradient(#fff, #fff) 12px 12px / 5px 5px;
  background-repeat: no-repeat; }
.wbtn.wall small { font-size: var(--fs-xs); line-height: 1; font-weight: 900; }
/* 武器を ぜんぶ ならべて えらぶ画面(マスは 武器の列と 同じ作り: こい板 + 下に 種類の色) */
.weapon-grid { z-index: 22; justify-content: flex-start; gap: 8px; background: rgba(8, 6, 10, .86); }
.wg-head { position: relative; width: min(980px, 100%); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px 18px; padding: 0 50px; min-height: 44px; }
.wg-head h2 { font-size: 22px; margin: 0; } .wg-head h2 small { font-size: var(--fs-s); opacity: .8; margin-left: 6px; }
.wg-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; font-size: var(--fs-s); font-weight: 800; }
.wg-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.wg-legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--wc); box-shadow: 0 0 6px var(--wc); }
.wg-close { position: absolute; right: 0; top: 0; width: var(--sq); height: var(--sq); padding: 0; font-size: 18px; border-radius: var(--r-m); background: var(--panel); border: var(--bw) solid var(--line-hi); }
.wg-list { width: min(980px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 6px; }
.wg-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; padding: 4px 4px 6px;
  border-radius: var(--r-m); font-size: var(--fs-s); line-height: 1.15; min-height: 86px; border: var(--bw) solid var(--line);
  background: radial-gradient(circle at 50% 125%, var(--wc, #888) -30%, rgba(16, 18, 28, .9) 60%); }
.wg-item .wi { width: 54px; height: 54px; font-size: 30px; flex: 0 0 auto; }
.wg-item span { max-width: 100%; word-break: keep-all; overflow-wrap: normal; }
.wg-item sub { position: absolute; left: 6px; top: 4px; font-size: var(--fs-xs); opacity: .75; }
.wg-item.on { border-color: #fff; background: radial-gradient(circle at 50% 110%, var(--wc, #fff) -10%, rgba(26, 30, 44, .95) 80%);
  box-shadow: 0 0 0 1.5px var(--wc, #fff), 0 0 14px 1px var(--wc, #fff); }
.wg-note { margin: 0; font-size: var(--fs-s); opacity: .8; }
body:not(.pc) .pc-only { display: none; }
@media (max-height: 430px) {
  .weapon-grid { gap: 4px; padding-top: calc(var(--sat) + 6px); }
  .wg-head { min-height: 34px; } .wg-head h2 { font-size: 18px; }
  .wg-close { width: 36px; height: 36px; top: -2px; }
  .wg-list { gap: 4px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .wg-item { min-height: 76px; padding: 0 2px 4px; font-size: 12px; } .wg-item .wi { width: 50px; height: 50px; margin-bottom: -4px; font-size: 26px; }
  .weapon-grid { padding-left: calc(var(--sal) + 12px); padding-right: calc(var(--sar) + 12px); }
}
@media (orientation: portrait) { .wg-list { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); } .wg-head { padding: 0 46px; } }

/* ================= 第4弾: ボスの演出(ui-bossfx.js)と 体力バー ================= */
/* 体力バー: 太く・形態の区切り・ひび・脅威度・倒すまでの時計 */
.hud-boss { width: min(52vw, 460px); }
.hud-boss.introing { visibility: hidden; }
.boss-name { white-space: nowrap; }
.boss-name b { overflow: hidden; text-overflow: ellipsis; }
.boss-stars { font-style: normal; font-size: 11px; color: #ffb020; letter-spacing: -1px; }
.boss-time { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; opacity: .9; }
.boss-time.g1 { color: var(--gold); opacity: 1; } .boss-time.g2 { color: #ffa53a; opacity: 1; } .boss-time.g3 { color: #ffd8b0; }
.boss-bar { height: 17px; border-radius: 4px; overflow: visible; }
.boss-bar > i.boss-lag, .boss-bar > i.boss-fill { border-radius: 2px; }
.boss-fill { background: linear-gradient(180deg, #ff9a8a 0%, #ff4a3a 30%, #c40018 75%, #8a0010 100%); }
.hud-boss.ph2 .boss-fill { background: linear-gradient(180deg, #ffd08a 0%, #ff7a1a 35%, #d82a00 80%, #8a1000 100%); }
.hud-boss.ph3 .boss-fill { background: linear-gradient(180deg, #ff9ad0 0%, #ff2a7a 35%, #a0003a 80%, #50001a 100%); }
.hud-boss.ph2 .boss-bar { box-shadow: 0 0 14px rgba(255,120,20,.8); }
.hud-boss.ph3 .boss-bar { box-shadow: 0 0 18px rgba(255,30,120,.9); animation: rageBar .5s ease-in-out infinite alternate; }
@keyframes rageBar { to { box-shadow: 0 0 8px rgba(255,30,120,.4); } }
.boss-segs { position: absolute; inset: 0; pointer-events: none; }
.boss-segs i { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 3px #000, 0 0 0 1px rgba(0,0,0,.6); }
.boss-segs i.broke { background: #ff3a3a; top: -6px; bottom: -6px; transform: rotate(14deg); opacity: .85; }
.boss-crack { position: absolute; inset: -2px; opacity: 0; border-radius: 4px;
  background: repeating-linear-gradient(115deg, transparent 0 9px, rgba(255,255,255,.95) 9px 11px, transparent 11px 23px), rgba(255,255,255,.55); }
.boss-bar.crack { animation: shakeX .07s 6 linear; }
.boss-bar.crack .boss-crack { animation: crackFlash .7s ease-out both; }
@keyframes crackFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
.boss-phase { text-align: center; font-size: 12px; line-height: 1.2; color: #ff6a3a; height: 0; overflow: visible; letter-spacing: .1em; }
.hud-boss.ph3 .boss-phase { color: #ff4aa0; }

/* 演出の層(大きな文字の上) */
.bs-layer { position: absolute; inset: 0; z-index: 14; pointer-events: none; overflow: hidden; font-weight: 900; text-shadow: var(--stroke); }
.bs-layer.paused { visibility: hidden; }
/* なぐられた: 来た向きが濃い 赤いふち + 色ずれ */
.bs-hit { position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), rgba(255,30,0,.7) 0%, rgba(255,0,0,.25) 30%, transparent 58%),
              radial-gradient(ellipse at center, transparent 52%, rgba(170,0,0,.65) 100%); }
.bs-chroma { position: absolute; inset: -8px; opacity: 0; box-shadow: inset 14px 0 46px rgba(255,0,80,.6), inset -14px 0 46px rgba(0,230,255,.5); }
/* 怒り: 画面のふちが 赤く 3 回 脈打つ */
.bs-rage { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(255,40,0,.6) 100%); }
.bs-rage.on { animation: ragePulse .38s ease-in-out 3 both; }
@keyframes ragePulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.banner.rage b { color: #ff4a1a; font-size: min(54px, 11vh, 9vw); text-shadow: var(--stroke), 0 0 26px rgba(255,60,0,1); }
.banner.rage.on b { animation: shakeX .1s 8 linear; }
.banner.rage small { font-size: 18px; color: #ffd0b0; }

/* 登場: 警報の帯 */
.bs-alert { position: absolute; left: 0; right: 0; top: calc(var(--sat) + 64px); height: 36px; display: flex; align-items: center; justify-content: center; opacity: 0;
  background: repeating-linear-gradient(-45deg, rgba(210,0,0,.88) 0 18px, rgba(25,0,0,.88) 18px 36px); border-top: 2px solid #ff4a4a; border-bottom: 2px solid #ff4a4a;
  box-shadow: 0 0 24px rgba(255,0,0,.7); }
.bs-alert span { font-size: 21px; letter-spacing: .22em; color: #fff; background: rgba(0,0,0,.55); padding: 0 14px; border-radius: 4px; }
.bs-alert.on { animation: alertIn 2.05s ease-out both; }
.bs-alert.on span { animation: blink .18s steps(2) 9 alternate; }
@keyframes alertIn { 0% { opacity: 1; transform: scaleY(0); } 7% { transform: scaleY(1.25); } 12%, 78% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(.3); } }
/* 登場: 名札 */
.bs-card { position: absolute; left: 50%; top: calc(var(--sat) + 106px); text-align: center; white-space: nowrap; opacity: 0; transform: translateX(-50%); line-height: 1.12; }
.bs-card small { display: block; font-size: 15px; color: var(--gold); letter-spacing: .3em; }
.bs-card b { display: block; font-size: min(46px, 10.5vh, 8.5vw, calc(84vw / var(--nlen, 8))); color: #ff3a3a; font-style: italic; text-shadow: var(--stroke), 0 0 26px rgba(255,0,0,.95); }
.bs-card em { display: block; font-style: normal; font-size: 14px; color: #ffd8c8; }
.bs-threat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 3px; padding: 1px 10px; border-radius: 999px; background: rgba(0,0,0,.55); }
.bs-threat .pips i { display: inline-block; width: 11px; height: 11px; margin: 0 1px; border-radius: 2px; border: 1.5px solid rgba(255,255,255,.6); vertical-align: -1px; transform: skewX(-15deg); }
.bs-threat .pips i.on { background: #ff2a3a; border-color: #ffb0b0; box-shadow: 0 0 6px #ff2a3a; }
.bs-threat small { font-size: 12px; color: #fff; opacity: .85; }
.bs-card.t5 .bs-threat .pips i.on { background: #ff00a0; box-shadow: 0 0 8px #ff00a0; }
.bs-card.on { animation: cardIn 1.75s .3s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes cardIn {
  0% { opacity: 0; transform: translateX(-50%) scale(1.9); letter-spacing: .4em; }
  14% { opacity: 1; transform: translateX(-50%) scale(.96); letter-spacing: 0; }
  20%, 82% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(1.04); }
}
#hud::before, #hud::after { transition: height .35s ease; }
#hud.bossintro::before, #hud.bossintro::after { animation: introBar 2.05s ease-in-out both; }
@keyframes introBar { 0% { height: 0; } 14%, 82% { height: 7vh; } 100% { height: 0; } }
#hud.bosscam::before, #hud.bosscam::after { height: 10vh; }

/* 撃破: ハンコ「BOSS 撃破!!」 */
.bs-stamp { position: absolute; left: 50%; top: calc(var(--sat) + 52px); text-align: center; white-space: nowrap; opacity: 0; transform: translateX(-50%); line-height: 1.05; }
.bs-stamp b { display: block; font-size: min(64px, 15vh, 11vw); font-style: italic; color: #ffe14a; letter-spacing: .02em;
  text-shadow: 0 3px 0 #a04a00, 3px 0 0 #000, -3px 0 0 #000, 0 -3px 0 #000, 0 6px 0 #000, 0 0 34px rgba(255,180,0,1); }
.bs-stamp small { display: block; font-size: 16px; color: #fff; margin-top: 2px; }
.bs-stamp em { position: absolute; right: -14px; top: -10px; font-style: normal; font-size: 17px; padding: 1px 10px; border-radius: 6px; color: #fff;
  background: linear-gradient(180deg, #ff5a3a, #c0100a); border: 2px solid #ffe14a; transform: rotate(10deg) scale(0); text-shadow: 0 1px 0 #000; }
.bs-stamp.on { animation: stampIn .55s .08s cubic-bezier(.2,1.6,.4,1) both; }
.bs-stamp.on em { animation: tagIn .4s .6s cubic-bezier(.2,1.8,.4,1) both; }
.bs-stamp.out { animation: stampOut .45s ease-in both; }
@keyframes stampIn { 0% { opacity: 0; transform: translateX(-50%) scale(3.4) rotate(-14deg); } 55% { opacity: 1; transform: translateX(-50%) scale(.9) rotate(-3deg); } 75% { transform: translateX(-50%) scale(1.06) rotate(-3deg); } 100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(-3deg); } }
@keyframes tagIn { from { transform: rotate(10deg) scale(0); } to { transform: rotate(10deg) scale(1); } }
@keyframes stampOut { from { opacity: 1; transform: translateX(-50%) scale(1) rotate(-3deg); } to { opacity: 0; transform: translateX(-50%) translateY(-24px) scale(1.12) rotate(-3deg); } }

/* 撃破: ごほうびの内わけ(横画面 = 左 / 縦画面 = まんなか) */
.bs-jack { position: absolute; left: calc(var(--sal) + 10px); top: calc(var(--sat) + 136px); min-width: 230px; max-width: 46vw; padding: 6px 11px 7px;
  border-radius: 12px; background: rgba(14,8,2,.74); border: 2px solid #ffd23f; box-shadow: 0 0 22px rgba(255,190,30,.55); opacity: 0; transform: translateX(-24px);
  transition: opacity .25s, transform .3s cubic-bezier(.2,1.4,.4,1); }
.bs-jack.on { opacity: 1; transform: none; }
.bs-jack.out { opacity: 0; transform: translateY(-16px); transition: opacity .45s, transform .45s; }
.bs-jack ul { list-style: none; margin: 0; padding: 0; }
.bs-jack li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.38; white-space: nowrap; animation: liIn .3s cubic-bezier(.2,1.6,.4,1) both; }
.bs-jack li b { color: var(--gold); font-variant-numeric: tabular-nums; }
.bs-jack li small { font-size: 11px; opacity: .8; }
.bs-jack li small.st { color: #ffb020; opacity: 1; letter-spacing: -1px; }
.bs-jack li.hot b { color: #ff8a2a; font-size: 17px; }
.bs-jack li.new span { color: #7dff9a; } .bs-jack li.new b { color: #7dff9a; }
.bs-jack li.more span { color: #ffb0a0; }
@keyframes liIn { 0% { opacity: 0; transform: translateX(-30px) scale(1.25); } 100% { opacity: 1; transform: none; } }
.bs-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; padding-top: 3px; border-top: 1px solid rgba(255,210,63,.5); opacity: 0; transition: opacity .2s; }
.bs-total span { font-size: 13px; letter-spacing: .16em; color: var(--gold); font-style: italic; }
.bs-total b { font-size: 27px; color: #ffe14a; font-variant-numeric: tabular-nums; text-shadow: var(--stroke), 0 0 16px rgba(255,190,0,.9); }
.bs-jack.rolling .bs-total, .bs-jack.done .bs-total { opacity: 1; }
.bs-jack.done .bs-total b { animation: totalPop .5s cubic-bezier(.2,1.8,.4,1); }
@keyframes totalPop { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* 撃破: 衝撃波の輪 / お金・宝石 */
.bs-nova { position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; border-radius: 50%; opacity: 0;
  border: 3px solid #ffe070; box-shadow: 0 0 18px #ffb020, inset 0 0 18px #ffd23f; }
.bs-coins { position: absolute; inset: 0; }
.bs-coin { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; opacity: 0; will-change: transform, opacity; }
.bs-coin.gold { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffbd0 0%, #ffd23f 38%, #d08a00 78%); box-shadow: 0 0 9px rgba(255,200,40,.95), inset 0 0 0 2px #e8a400; }
.bs-coin.gem { width: 17px; height: 17px; margin: -8px 0 0 -8px; clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); }
.bs-coin.g1 { background: linear-gradient(160deg, #e8ffff, #40d8ff 45%, #0a6aa8); }
.bs-coin.g2 { background: linear-gradient(160deg, #ffe8f6, #ff5ab8 45%, #a00a5a); }
.bs-coin.g3 { background: linear-gradient(160deg, #f0ffe0, #6aff5a 45%, #108a20); }
.hud-score.jp b { color: #ffe14a; text-shadow: var(--stroke), 0 0 22px rgba(255,200,0,1); }

/* 次のボスまで */
.bs-chip { position: absolute; left: 50%; top: calc(var(--sat) + 70px); transform: translateX(-50%); display: flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 2px 12px 2px 8px; border-radius: 999px; background: rgba(0,0,0,.5); border: 1.5px solid rgba(255,110,110,.55); font-size: 13px; line-height: 1.3; }
.bs-chip i { font-style: normal; font-size: 14px; }
.bs-chip b { font-size: 16px; font-variant-numeric: tabular-nums; }
.bs-chip em { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 4px; background: var(--gold); color: #3a2000; text-shadow: none; letter-spacing: .05em; }
.bs-chip em.chain { background: linear-gradient(180deg, #ff8a3a, #d02000); color: #fff; text-shadow: 0 1px 0 #000; font-size: 11px; }
.bs-chip.on { animation: chipIn .4s cubic-bezier(.2,1.5,.4,1); }
@keyframes chipIn { from { transform: translateX(-50%) scale(.4); opacity: 0; } }
.bs-chip.soon { border-color: #ff3a3a; background: rgba(90,0,0,.6); }
.bs-chip.soon b { color: #ff6a5a; animation: chipBeat .5s ease-in-out infinite alternate; display: inline-block; }
@keyframes chipBeat { to { transform: scale(1.18); } }

/* 結果: ボス図鑑のメダル */
.res-dex { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 6px 0 2px; }
.res-dex > small { font-size: 12px; font-weight: 800; opacity: .9; } .res-dex > small b { color: var(--gold); font-size: 15px; }
.res-dex .medals { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 92vw; }
.res-dex .medals i { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-style: normal; font-size: 16px;
  background: rgba(255,255,255,.07); border: 1.5px dashed rgba(255,255,255,.3); color: rgba(255,255,255,.4); }
.res-dex .medals i.got { border: 2px solid var(--gold); background: radial-gradient(circle at 35% 30%, rgba(255,240,170,.5), rgba(160,100,0,.45)); color: #fff; }
.res-dex .medals i.new { animation: medalNew .7s ease-in-out infinite alternate; }
@keyframes medalNew { to { box-shadow: 0 0 14px rgba(255,210,63,1); transform: scale(1.12); } }

#result { justify-content: safe center; }
@media (max-height: 430px) {
  #result { gap: 4px; }
  #result .res-title { font-size: 17px; margin: 0; } #result .newrec { font-size: 20px; } #result .res-score b { font-size: min(44px, 11vh); }
  #result .res-grid b { font-size: 19px; }
  .res-extra { grid-template-columns: repeat(5, auto); gap: 4px; }
  .res-extra div { padding: 3px 10px; }
  .res-dex { flex-direction: row; margin: 0; gap: 8px; }
  .res-dex .medals { flex-wrap: nowrap; gap: 4px; }
  .res-dex .medals i { width: 24px; height: 24px; font-size: 13px; }
  .boss-bar { height: 14px; }
  .bs-alert { top: calc(var(--sat) + 58px); height: 30px; } .bs-alert span { font-size: 17px; }
  .bs-card { top: calc(var(--sat) + 94px); } .bs-card small { font-size: 13px; } .bs-card b { font-size: min(36px, 7vw, calc(80vw / var(--nlen, 8))); } .bs-card em { font-size: 12px; }
  .bs-stamp { top: calc(var(--sat) + 46px); } .bs-stamp b { font-size: min(48px, 8.5vw); } .bs-stamp small { font-size: 14px; } .bs-stamp em { font-size: 14px; }
  .bs-jack { top: calc(var(--sat) + 130px); min-width: 210px; padding: 4px 9px 5px; }
  .bs-jack li { font-size: 13px; line-height: 1.3; } .bs-jack li.hot b { font-size: 15px; } .bs-total b { font-size: 23px; }
  .bs-chip { top: calc(var(--sat) + 62px); }
  .banner.rage b { font-size: min(36px, 7vw); } .banner.rage small { font-size: 15px; }
}
@media (max-height: 380px) {
  .boss-bar { height: 12px; }
  .bs-jack { top: calc(var(--sat) + 120px); } .bs-jack li { font-size: 12px; line-height: 1.25; }
}
@media (orientation: portrait) {
  .hud-boss { width: 84vw; }
  .bs-alert { top: calc(var(--sat) + 150px); }
  .bs-card { top: calc(var(--sat) + 196px); } .bs-card b { font-size: min(40px, 10vw, calc(90vw / var(--nlen, 8))); }
  .bs-stamp { top: calc(var(--sat) + 150px); } .bs-stamp b { font-size: min(52px, 12.5vw); }
  .bs-jack { left: 50%; top: calc(var(--sat) + 238px); max-width: 92vw; transform: translateX(-50%) translateY(14px); background: rgba(14,8,2,.62); padding: 3px 9px 4px; }
  .bs-jack li { font-size: 12px; line-height: 1.28; } .bs-jack li.hot b { font-size: 14px; } .bs-total b { font-size: 22px; }
  .bs-jack.on { transform: translateX(-50%); } .bs-jack.out { transform: translateX(-50%) translateY(-16px); }
  .bs-chip { top: calc(var(--sat) + 196px); }
}
@media (min-width: 1100px) and (min-height: 600px) {
  .bs-card b { font-size: min(60px, calc(80vw / var(--nlen, 8))); } .bs-stamp b { font-size: 84px; } .bs-jack { min-width: 290px; top: calc(var(--sat) + 180px); } .bs-jack li { font-size: 16px; }
  .bs-chip { top: calc(var(--sat) + 88px); }
}
/* PC: スペースで 次の武器(2026-10-28 ノブさん)→ 今の武器の札の 2 行目(.wn-key)に 入れた(第5弾) */

/* 第5弾の仕上げ: 場面カット(大怪獣の 全身を 遠くから映す 数秒)の間は 画面の部品を 引っこめる。警報の帯・名札・怒りの文字・ごほうびの札は 出したまま */
body.cine #hud > :not(.banner):not(.sub-banner):not(.vignette):not(.fever-tint), body.cine #controls, body.cine #crosshair, body.cine .weapon-bar, body.cine #viewHint, body.cine #viewToast, body.cine #speedLines { opacity: 0 !important; transition: opacity .2s; }
