/* 共テ・ボスラッシュ（boss）だけの見た目 */
.boss-how { font-size: 14.5px; line-height: 1.75; margin: 0 0 6px; }
.boss-me { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 800; font-size: 14px; margin: 4px 0; }
.boss-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.boss-tile { border: 2px solid var(--line); border-radius: 10px; background: var(--bg); padding: 4px 4px 3px; text-align: center; line-height: 1.3; display: grid; gap: 1px; min-width: 0; }
.boss-tile b { font-size: 13px; }
.boss-tile span { font-size: 11px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boss-tile small { font-size: 10.5px; color: var(--ink2); }
.boss-tile.done { background: #d6f2df; color: #123; border-color: var(--ok); }
.boss-tile.done span, .boss-tile.done small { color: #234; }
.boss-tile.now { background: var(--yellow); color: #1d211f; }
.boss-tile.now span, .boss-tile.now small { color: #333; }
.boss-hud { margin-bottom: 6px; }
.boss-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; justify-content: space-between; font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.boss-row b { font-size: 18px; }
.boss-clock { font-variant-numeric: tabular-nums; border: 2px solid var(--line); border-radius: 8px; padding: 0 6px; background: var(--bg); font-size: 13.5px; }
.boss-clock.near { background: var(--yellow2); }
.boss-clock.late { background: #f8d7d4; color: #311; border-color: var(--ng); }
.boss-clock.stop { outline: 2px dashed var(--l-col); }
.boss-combo { color: var(--r-col); }
.boss-hp { height: 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg2); overflow: hidden; }
.boss-hp > i { display: block; height: 100%; transition: width .35s ease-out; }
.boss-hp.me > i { background: var(--ok); }
.boss-hp.enemy > i { background: var(--r-col); }
.boss-foe { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.boss-foe-r { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.boss-foe-n { font-weight: 900; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.boss-foe-n small { font-weight: 700; color: var(--ink2); }
.boss-plan { color: var(--ink2); font-size: 12.5px; }
/* ボスの姿（CSS だけで描く） */
.boss-badge { --c: var(--board); position: relative; width: 120px; height: 120px; margin: 6px auto; border-radius: 50% 50% 44% 44%; background: var(--c); color: var(--yellow); border: 3px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 14px; text-align: center; line-height: 1.2; }
.boss-badge b { font-family: var(--head); font-size: 20px; }
.boss-badge .boss-name { display: none; }
.boss-badge .boss-eyes { position: absolute; top: 30px; left: 50%; width: 60px; height: 16px; transform: translateX(-50%); background: radial-gradient(circle at 12px 8px, #fff 0 7px, transparent 8px), radial-gradient(circle at 48px 8px, #fff 0 7px, transparent 8px); }
.boss-badge .boss-eyes::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 13px 9px, #111 0 3px, transparent 4px), radial-gradient(circle at 49px 9px, #111 0 3px, transparent 4px); }
.boss-badge.angry .boss-eyes::before { content: ''; position: absolute; left: 2px; right: 2px; top: -6px; height: 8px; background: linear-gradient(160deg, transparent 0 40%, #111 40% 60%, transparent 60%) left / 50% 100% no-repeat, linear-gradient(20deg, transparent 0 40%, #111 40% 60%, transparent 60%) right / 50% 100% no-repeat; }
.boss-badge.angry { box-shadow: 0 0 0 4px var(--r-col); }
.boss-badge.sm { width: 64px; height: 64px; flex: 0 0 auto; margin: 0; padding-bottom: 6px; }
.boss-badge.sm b { font-size: 12px; }
.boss-badge.sm .boss-eyes { top: 15px; width: 34px; height: 10px; background: radial-gradient(circle at 7px 5px, #fff 0 4.5px, transparent 5px), radial-gradient(circle at 27px 5px, #fff 0 4.5px, transparent 5px); }
.boss-badge.sm .boss-eyes::after { background: radial-gradient(circle at 7.5px 5.5px, #111 0 2px, transparent 2.5px), radial-gradient(circle at 27.5px 5.5px, #111 0 2px, transparent 2.5px); }
.boss-badge[data-no='1'] { --c: #2f6fb3; } .boss-badge[data-no='2'] { --c: #7a4fb5; } .boss-badge[data-no='3'] { --c: #b5651d; } .boss-badge[data-no='4'] { --c: #a8323a; }
.boss-badge[data-no='5'] { --c: #2e7d5b; } .boss-badge[data-no='6'] { --c: #4b5d8a; } .boss-badge[data-no='7'] { --c: #8a6d12; } .boss-badge[data-no='8'] { --c: #1d211f; }
.boss-badge.hit { animation: boss-hit .4s; }
.boss-badge.down { filter: grayscale(1); opacity: .6; transform: rotate(-12deg); }
@keyframes boss-hit { 0%, 100% { transform: none; } 20% { transform: translateX(-8px) rotate(-6deg); filter: brightness(1.6); } 60% { transform: translateX(6px) rotate(4deg); } }
.boss-intro { text-align: center; }
.boss-appear { font-weight: 900; font-size: 18px; margin: 6px 0; }
.boss-type { font-weight: 800; margin: 2px 0; }
.boss-strat { text-align: left; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); padding: 8px 12px; font-size: 14px; line-height: 1.7; margin: 8px 0; }
.boss-angry-t { color: var(--ng); }
.boss-ok { color: var(--ok); font-weight: 800; }
.boss-late { color: var(--ng); font-weight: 800; }
.boss-fx { min-height: 0; font-size: 13.5px; font-weight: 800; color: var(--l-col); }
.boss-fx:empty { display: none; }
/* 本文 */
.boss-p { border: 2px solid var(--line); border-radius: 12px; background: var(--bg); padding: 8px 12px; font-size: 14.5px; line-height: 1.7; max-height: 32vh; overflow-y: auto; -webkit-user-select: text; user-select: text; overflow-wrap: anywhere; }
.boss-p.sm { max-height: none; font-size: 13.5px; margin: 4px 0; }
.boss-p p { margin: 0 0 4px; }
.boss-h { font-weight: 900; margin: 6px 0 2px; border-bottom: 2px solid var(--soft); }
.boss-h:first-child { margin-top: 0; }
.boss-li { padding-left: 1em; text-indent: -.8em; }
.boss-li::before { content: '・'; }
.boss-u { text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
.boss-mk { color: var(--r-col); }
.boss-msg { display: flex; flex-direction: column; margin: 4px 0; max-width: 88%; }
.boss-msg.l { align-items: flex-start; }
.boss-msg.r { align-items: flex-end; margin-left: auto; }
.boss-who { font-size: 11.5px; color: var(--ink2); font-weight: 700; }
.boss-bub { border: 2px solid var(--line); border-radius: 14px; padding: 4px 10px; background: var(--card); line-height: 1.55; }
.boss-msg.r .boss-bub { background: var(--yellow2); }
.boss-vocab { text-align: center; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.boss-vocab small { color: var(--l-col); font-weight: 800; }
.boss-vocab b { font-size: clamp(24px, 7vw, 32px); font-family: var(--head); overflow-wrap: anywhere; }
.boss-say { font: inherit; font-size: 12.5px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); padding: 2px 12px; min-height: 32px; cursor: pointer; }
.boss-q { font-weight: 800; font-size: clamp(15.5px, 4.4vw, 18px); line-height: 1.5; margin: 8px 0 0; overflow-wrap: anywhere; }
.boss-ch { flex-direction: row !important; justify-content: flex-start !important; gap: 8px !important; font-size: 15px !important; line-height: 1.45; min-height: 46px !important; padding: 8px 12px !important; }
.boss-no { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: inline-grid; place-items: center; font-size: 12px; opacity: .7; }
.boss-gone { opacity: .25; text-decoration: line-through; }
.boss-sps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.boss-sp { font: inherit; font-size: 12.5px; font-weight: 800; min-height: 44px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; padding: 2px; }
.boss-sp small { font-weight: 400; font-size: 11px; color: var(--ink2); }
.boss-sp:disabled { opacity: .4; cursor: default; }
.boss-fb { margin-top: 8px; }
.boss-dmg { font-weight: 900; font-size: 16.5px; animation: boss-pop .4s ease-out; }
.boss-dmg.o { color: var(--ok); }
.boss-dmg.x { color: var(--ng); }
.boss-lvup { display: inline-block; background: var(--yellow); color: #1d211f; border: 2px solid var(--line); border-radius: 999px; padding: 2px 12px; font-weight: 900; margin: 4px 0; animation: boss-pop .5s ease-out; }
.boss-toggle { font: inherit; font-size: 13px; background: none; border: 0; color: var(--link); text-decoration: underline; padding: 4px 0; min-height: 32px; cursor: pointer; }
.boss-exp { border: 2px solid var(--line); border-radius: 10px; background: var(--bg); padding: 8px 12px; margin-top: 6px; font-size: 14px; line-height: 1.75; max-height: 36vh; overflow-y: auto; }
.boss-exp.folded { display: none; }
.boss-exp p { margin: 0 0 4px; }
.boss-rank { font-size: 17px; margin: 6px 0; }
.boss-rank b { background: var(--yellow); color: #1d211f; padding: 1px 8px; border-radius: 6px; }
.boss-new { color: var(--r-col); font-weight: 900; animation: boss-pop .5s ease-out; }
.boss-det summary { cursor: pointer; color: var(--link); font-size: 13px; }
@keyframes boss-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .boss-badge.hit, .boss-dmg, .boss-lvup, .boss-new { animation: none; } }
.boss-screen .g-btn.on small, .boss-screen .g-btn.pop small { color: #4a4a3a; }
