/* ============================================================
   team.css — チーム編成の必殺技のゲージ・ボタン・カットイン、 サブを選ぶ窓 (= SPEC-166)
   作者の依頼: 参考作のようなスタイリッシュでかっこいいゲージとボタン (= 赤・黒・白、 斜め、 ギザギザ、 太い斜体)
   ============================================================ */
:root {
  --ts-red: #e3001b;
  --ts-red2: #ff3048;
  --ts-ink: #0b0b0d;
  --ts-white: #ffffff;
}

/* ---- ゲージとボタン (= 戦闘の右下) ---- */
.team-strike {
  position: absolute; right: 10px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none;
}
.team-strike.hidden { display: none; }
.ts-gauge {
  position: relative; width: 168px; height: 20px; transform: rotate(-6deg) skewX(-22deg);
  background: var(--ts-ink); border: 3px solid var(--ts-white); box-shadow: 5px 5px 0 var(--ts-red), 0 0 0 1px var(--ts-ink);
  overflow: hidden;
}
.ts-gauge__fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: repeating-linear-gradient(-45deg, var(--ts-red) 0 9px, var(--ts-red2) 9px 18px);
  transition: width 0.15s linear;
}
.ts-gauge__label {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%) skewX(22deg);
  font: 900 11px/1 "Dela Gothic One", "Chakra Petch", system-ui, sans-serif; letter-spacing: 0.08em; color: var(--ts-white);
  text-shadow: 1.5px 1.5px 0 var(--ts-ink), -1px -1px 0 var(--ts-ink);
}
.team-strike.is-buff .ts-gauge__fill { background: repeating-linear-gradient(-45deg, #ffd400 0 9px, #ffea6b 9px 18px); }

.ts-btn {
  pointer-events: auto; position: relative; min-width: 150px; height: 64px; padding: 0 22px 0 18px;
  border: 0; cursor: pointer; color: var(--ts-white); background: var(--ts-ink);
  clip-path: polygon(6% 12%, 22% 0, 48% 10%, 74% 0, 100% 14%, 94% 48%, 100% 86%, 70% 100%, 44% 90%, 18% 100%, 0 84%, 5% 50%);
  transform: rotate(-8deg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  filter: grayscale(1) brightness(0.65); opacity: 0.75; transition: filter 0.2s, opacity 0.2s;
}
.ts-btn::before {   /* 赤い内側のギザギザ */
  content: ""; position: absolute; inset: 5px; z-index: -1; background: var(--ts-red);
  clip-path: inherit;
}
.ts-btn__main {
  font: 900 17px/1 "Dela Gothic One", "Chakra Petch", system-ui, sans-serif; letter-spacing: 0.02em; transform: skewX(-12deg);
  text-shadow: 2px 2px 0 var(--ts-ink), -1px 0 0 var(--ts-ink); white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis;
}
.ts-btn__sub {
  margin-top: 3px; padding: 1px 8px; font: 800 11px/1.2 "Chakra Petch", system-ui, sans-serif; letter-spacing: 0.12em;
  background: var(--ts-white); color: var(--ts-ink); transform: skewX(-12deg) rotate(4deg);
}
.team-strike.is-ready .ts-btn { filter: none; opacity: 1; animation: ts-throb 0.9s ease-in-out infinite; }
.team-strike.is-ready .ts-btn__sub { background: #ffd400; }
@keyframes ts-throb {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(-5deg) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .team-strike.is-ready .ts-btn { animation: none; } }

/* ---- カットイン (= 斜めの赤い帯・3 人の顔・技の名前) ---- */
.ts-cutin { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.ts-cutin.hidden { display: none; }
.ts-cutin__band {
  position: absolute; left: -10%; right: -10%; top: 30%; height: 40%; transform: rotate(-9deg) translateX(110%);
  background:
    repeating-linear-gradient(-60deg, rgba(0, 0, 0, 0.0) 0 22px, rgba(0, 0, 0, 0.18) 22px 26px),
    linear-gradient(90deg, var(--ts-red), var(--ts-red2));
  border-top: 6px solid var(--ts-white); border-bottom: 6px solid var(--ts-ink);
  box-shadow: 0 0 0 4px var(--ts-ink), 0 18px 0 0 rgba(0, 0, 0, 0.55);
}
.ts-cutin__faces {
  position: absolute; left: 0; right: 0; top: 30%; height: 40%; display: flex; align-items: center; justify-content: center; gap: 2%;
  transform: rotate(-9deg) translateX(120%);
}
.ts-cutin__faces img {
  width: min(26vw, 150px); aspect-ratio: 1; image-rendering: pixelated; filter: drop-shadow(5px 5px 0 var(--ts-ink));
}
.ts-cutin__text {
  position: absolute; left: 0; right: 0; top: 66%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transform: rotate(-9deg) scale(2.2); opacity: 0;
}
.ts-cutin__title {
  padding: 4px 16px; background: var(--ts-ink); color: var(--ts-white); transform: skewX(-14deg);
  font: 900 clamp(22px, 6.5vw, 44px)/1.05 "Dela Gothic One", "Chakra Petch", system-ui, sans-serif;
  text-shadow: 3px 3px 0 var(--ts-red); box-shadow: 6px 6px 0 var(--ts-white);
}
.ts-cutin__sub {
  padding: 2px 10px; background: var(--ts-white); color: var(--ts-ink); transform: skewX(-14deg) rotate(3deg);
  font: 800 clamp(11px, 3vw, 15px)/1.3 "Chakra Petch", system-ui, sans-serif; letter-spacing: 0.1em;
}
.ts-cutin.is-run .ts-cutin__band { animation: ts-band 1.5s cubic-bezier(.2, .9, .2, 1) forwards; }
.ts-cutin.is-run .ts-cutin__faces { animation: ts-faces 1.5s cubic-bezier(.2, .9, .2, 1) forwards; }
.ts-cutin.is-run .ts-cutin__text { animation: ts-text 1.5s cubic-bezier(.2, .9, .2, 1) forwards; }
@keyframes ts-band { 0% { transform: rotate(-9deg) translateX(110%); } 18%, 80% { transform: rotate(-9deg) translateX(0); } 100% { transform: rotate(-9deg) translateX(-120%); } }
@keyframes ts-faces { 0% { transform: rotate(-9deg) translateX(120%); } 24%, 78% { transform: rotate(-9deg) translateX(0); } 100% { transform: rotate(-9deg) translateX(-130%); } }
@keyframes ts-text { 0%, 14% { opacity: 0; transform: rotate(-9deg) scale(2.2); } 26%, 82% { opacity: 1; transform: rotate(-9deg) scale(1); } 100% { opacity: 0; transform: rotate(-9deg) scale(0.9); } }
@media (prefers-reduced-motion: reduce) {
  .ts-cutin.is-run .ts-cutin__band, .ts-cutin.is-run .ts-cutin__faces { animation: none; transform: rotate(-9deg); }
  .ts-cutin.is-run .ts-cutin__text { animation: none; opacity: 1; transform: rotate(-9deg); }
}

/* ---- 編成の帯の JIN の 1 行 ---- */
.hero-team__jin { flex: 1 0 100%; font-size: 0.78rem; line-height: 1.35; }
.hero-team__jin:empty { display: none; }
.hero-team__jin .jin-on {
  display: inline-block; padding: 1px 8px; margin-right: 4px; background: var(--ts-red); color: var(--ts-white);
  transform: skewX(-12deg); font-family: "Dela Gothic One", system-ui, sans-serif; font-weight: 900; box-shadow: 3px 3px 0 var(--ts-ink);
}
.hero-team__jin .jin-pair b { color: #ffd400; }
.hero-team__jin .jin-none { color: var(--muted, #aab4d0); }

/* ---- サブを選ぶ窓 ---- */
.sub-picker { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); padding: 12px; }
.sub-picker.hidden { display: none; }
.sub-picker__card {
  width: min(720px, 100%); max-height: min(86dvh, 860px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel, #120c24); border: 2px solid var(--ts-white); box-shadow: 8px 8px 0 var(--ts-red); border-radius: 4px;
}
.sub-picker__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--ts-ink); }
.sub-picker__title {
  margin: 0; flex: 1; color: var(--ts-white); font: 900 1.05rem/1.2 "Dela Gothic One", system-ui, sans-serif; transform: skewX(-10deg);
  text-shadow: 2px 2px 0 var(--ts-red);
}
.sub-picker__clear { appearance: none; border: 1.5px solid var(--ts-white); background: transparent; color: var(--ts-white); padding: 4px 10px; font-size: 0.75rem; cursor: pointer; }
.sub-picker__clear.hidden { display: none; }
.sub-picker .hero-modal__close-x { position: static; }
.sub-picker__note { margin: 0; padding: 6px 12px; font-size: 0.74rem; color: var(--muted, #aab4d0); }
.sub-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding: 6px 12px 14px; overflow-y: auto; }
.sub-tile {
  appearance: none; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto auto; column-gap: 6px; row-gap: 2px;
  text-align: left; padding: 6px; border-radius: 6px; background: var(--panel-2, #1b1433); border: 1.5px solid var(--border, rgba(255,255,255,.14)); color: var(--text, #eef2ff); cursor: pointer;
}
.sub-tile__name { font-size: 0.78rem; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-tile__jin {
  justify-self: start; padding: 0 6px; font: 900 0.66rem/1.5 "Dela Gothic One", system-ui, sans-serif; color: var(--ts-white);
  background: var(--ts-red); transform: skewX(-12deg); box-shadow: 2px 2px 0 var(--ts-ink);
}
.sub-tile__attrs { display: flex; flex-wrap: wrap; gap: 3px; }
.sub-tile__attrs i { font-style: normal; font-size: 0.62rem; line-height: 1.4; padding: 0 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.sub-tile__attrs i small { margin-left: 2px; opacity: 0.6; }
.sub-tile__attrs i.on { background: var(--ts-red); color: var(--ts-white); }
.sub-tile__attrs i.pair { background: rgba(255, 212, 0, 0.25); }
.sub-tile.is-jin { border-color: var(--ts-red); box-shadow: 3px 3px 0 var(--ts-red); }
.sub-tile.is-current { outline: 2px solid var(--ts-white); }

/* ============================================================
   作者 2026-10-23: 選ぶ画面をスクロールさせない・いちばん目立つのはチームの 3 人の顔
   ============================================================ */
/* 3 人の顔 (= 右下に小さく持ってくる武器) */
.team-face { position: relative; display: inline-block; width: 56px; height: 56px; flex: 0 0 auto; }
.team-face__hero { width: 56px; height: 56px; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6)); }
.team-face__weapon {
  position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; padding: 1px; image-rendering: pixelated;
  background: var(--ts-ink); border: 1.5px solid var(--ts-white); border-radius: 4px; transform: rotate(-6deg);
}
.team-face--empty { display: inline-flex; align-items: center; justify-content: center; border: 2px dashed rgba(255, 255, 255, 0.3); border-radius: 8px; color: rgba(255, 255, 255, 0.5); font-size: 1.4rem; }

.hero-team { margin: 0.2rem 0 0.35rem; gap: 0.3rem 0.5rem; }
.hero-team__label { writing-mode: vertical-rl; font-size: 0.7rem; letter-spacing: 0.3em; }
.hero-team__slots { gap: 0.35rem; }
.hero-team__slot {
  flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-height: 0; padding: 0.35rem 0.25rem 0.3rem;
  text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
}
.hero-team__slot.is-main { box-shadow: 0 0 0 1px var(--accent) inset, 0 0 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.hero-team__tag { top: 3px; left: 5px; right: auto; }
.hero-team__name { font-size: 0.7rem; font-weight: 700; max-width: 100%; }
.hero-team__weapon { font-size: 0.6rem; line-height: 1.1; color: var(--muted, #aab4d0); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-team__hint { font-size: 0.66rem; }

/* チームのときは、 選んだ人の詳しい欄を小さく (= 帯と札と「冒険を始める」を 1 画面に) */
.hero-modal--team .hero-stage { height: clamp(84px, 12vh, 120px); }
.hero-modal--team .hero-stage[data-shot] .hero-stage__sprite { width: 128px; height: 128px; bottom: -16px; }
.hero-modal--team .hero-detail { gap: 0.3rem; }
.hero-modal--team .hero-detail__content { grid-template-columns: minmax(0, 1fr) 112px; gap: 0.35rem; }
.hero-modal--team .hero-radar { max-width: 112px; }
.hero-modal--team .hero-detail__weapon-desc,
.hero-modal--team .hero-detail__weapon-ll,
.hero-modal--team .hero-detail__weapon-skill,
.hero-modal--team .hero-detail__sig-desc { display: none; }
.hero-modal--team .hero-detail__weapon { padding: 0.25rem 0.4rem; }
.hero-modal--team .hero-detail__weapon-icon { width: 28px; height: 28px; }
.hero-modal--team .hero-modal__grid { gap: 0.35rem; }

/* スキルツリーの効果 (= 畳む。 押すと中身) */
details.hero-perks { padding: 0.15rem 0.6rem; }
details.hero-perks.hidden { display: none; }
.hero-perks__sum { cursor: pointer; list-style: none; font-weight: 700; font-size: 0.68rem; }
.hero-perks__sum::-webkit-details-marker { display: none; }
.hero-perks__sum::before { content: "▸ "; }
details.hero-perks[open] .hero-perks__sum::before { content: "▾ "; }
.hero-perks__body { display: block; margin-top: 0.2rem; }

/* サブを選ぶ窓: 上の 2 枠・JIN・武器のタブ・並べ替え・決定 */
.sub-picker__top { display: flex; align-items: center; gap: 10px; padding: 8px 12px 4px; flex-wrap: wrap; }
.sub-picker__slots { display: flex; gap: 8px; }
.sub-slot {
  appearance: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px 4px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.2); color: var(--ts-white); font: 800 0.62rem/1 "Chakra Petch", system-ui, sans-serif; letter-spacing: 0.1em;
}
.sub-slot.is-active { border-color: var(--ts-red); box-shadow: 4px 4px 0 var(--ts-red); background: rgba(227, 0, 27, 0.15); }
.sub-picker__jin { margin: 0; flex: 1; min-width: 150px; font-size: 0.74rem; line-height: 1.35; }
.sub-picker__jin .jin-on { display: inline-block; padding: 1px 8px; margin-right: 4px; background: var(--ts-red); color: var(--ts-white); transform: skewX(-12deg); font-family: "Dela Gothic One", system-ui, sans-serif; box-shadow: 3px 3px 0 var(--ts-ink); }
.sub-picker__jin .jin-pair b { color: #ffd400; }
.sub-picker__tabs { display: flex; gap: 4px; padding: 4px 12px; overflow-x: auto; scrollbar-width: none; }
.sub-picker__tabs::-webkit-scrollbar { display: none; }
.sub-tab {
  appearance: none; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; cursor: pointer;
  background: var(--ts-ink); color: var(--ts-white); border: 1.5px solid rgba(255, 255, 255, 0.25); transform: skewX(-10deg); font-size: 0.7rem;
}
.sub-tab img { width: 20px; height: 20px; image-rendering: pixelated; transform: skewX(10deg); }
.sub-tab span { transform: skewX(10deg); white-space: nowrap; }
.sub-tab b { transform: skewX(10deg); min-width: 1.4em; padding: 0 4px; background: rgba(255, 255, 255, 0.12); font-size: 0.66rem; text-align: center; }
.sub-tab.is-on { background: var(--ts-red); border-color: var(--ts-white); box-shadow: 3px 3px 0 var(--ts-white); }
.sub-tab.is-on b { background: var(--ts-white); color: var(--ts-ink); }
.sub-picker__sorts { display: flex; align-items: center; gap: 4px; padding: 2px 12px 4px; flex-wrap: wrap; }
.sub-picker__sorts-label { font-size: 0.64rem; color: var(--muted, #aab4d0); margin-right: 2px; }
.sub-sort { appearance: none; padding: 2px 10px; cursor: pointer; font-size: 0.68rem; color: var(--ts-white); background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; }
.sub-sort.is-on { background: var(--ts-white); color: var(--ts-ink); font-weight: 800; }
.sub-picker__foot { padding: 8px 12px 12px; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, 0.25); }
.sub-picker__done { min-width: 9em; }
.sub-picker__empty { grid-column: 1 / -1; text-align: center; color: var(--muted, #aab4d0); font-size: 0.8rem; padding: 1.5rem 0; }

/* サブの札: 顔 (= 右下に武器)・名前・武器・アトリビュート */
.sub-tile { grid-template-columns: 48px 1fr; }
.sub-face { position: relative; grid-row: 1 / 5; width: 48px; height: 48px; }
.sub-face__hero { width: 48px; height: 48px; image-rendering: pixelated; }
.sub-face__weapon { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; padding: 1px; image-rendering: pixelated; background: var(--ts-ink); border: 1.5px solid var(--ts-white); border-radius: 4px; }
.sub-tile__weapon { font-size: 0.64rem; color: #ffd400; font-weight: 700; }
.sub-tile__stat { font-size: 0.62rem; color: var(--muted, #aab4d0); }
.sub-tile__picked { justify-self: start; padding: 0 6px; font: 900 0.62rem/1.5 "Chakra Petch", system-ui, sans-serif; letter-spacing: 0.1em; background: var(--ts-white); color: var(--ts-ink); transform: skewX(-12deg); }
.sub-tile.is-current { outline: 2px solid var(--ts-white); background: rgba(255, 255, 255, 0.1); }
.hero-modal--team .hero-modal__hint { display: none; }   /* アトリビュートの 1 行は、 チームの JIN の 1 行と札が持つ */
@media (max-height: 780px) {   /* 背の低い画面: レーダーは畳み、 大きな絵と札の顔を小さく */
  .hero-modal--team .hero-stage { height: 64px; }
  .hero-modal--team .hero-radar { display: none; }
  .hero-modal--team .hero-detail__content { grid-template-columns: minmax(0, 1fr); }
  .hero-modal--team .hero-tile__portrait { height: 52px; }
  .hero-modal--team .hero-tile__weapon-name { display: none; }
  .team-face, .team-face__hero { width: 46px; height: 46px; }
  .hero-modal--team .hero-detail__weapon { display: none; }   /* 武器はチームの顔の右下に出ている */
  .hero-modal--team .hero-tile__sub { display: none; }
  .hero-modal--team .hero-detail__stats { display: none; }
}

/* 古い img の決まり (= .hero-team__slot img / .sub-tile img) に負けないように、 顔と武器は個別に */
.hero-team__slot .team-face__hero, .sub-tile .sub-face__hero { width: 100%; height: 100%; flex: none; }
.hero-team__slot .team-face__weapon { width: 24px; height: 24px; }
.sub-tile .sub-face__weapon { width: 22px; height: 22px; }
@media (max-height: 780px) { .hero-team__slot .team-face__weapon { width: 20px; height: 20px; } }

/* 作者 2026-10-23 (2): 武器は顔の右下にきちっと (= 傾けない・名前にかぶせない)・チームのときは開始武器の行を出さない・タブはアイコンと数だけで折り返す */
.hero-team__slot .team-face { margin-bottom: 2px; }
.team-face__weapon { right: 0; bottom: 0; transform: none; }
.hero-modal--team .hero-detail__weapon { display: none; }   /* 持ってくる武器はチームの顔の右下と名前の下に出ている */
.hero-team__attrs { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 3px; font-size: 0.66rem; color: var(--muted, #aab4d0); }
.hero-team__attrs > span { margin-right: 2px; }
.hero-team__attrs i { font-style: normal; padding: 0 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); color: var(--text, #eef2ff); }
.hero-team__attrs i small { margin-left: 2px; opacity: 0.6; }
.hero-team__attrs i.none { color: var(--muted, #aab4d0); }
.sub-picker__tabs { flex-wrap: wrap; overflow-x: visible; gap: 4px 3px; }
.sub-tab { padding: 3px 6px; gap: 3px; }
.sub-tab img { width: 22px; height: 22px; }
/* タブを 1 行に (= アイコンの下に数。 幅を均等に分ける) */
.sub-picker__tabs { flex-wrap: nowrap; gap: 3px; }
.sub-tab { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 1px; padding: 3px 2px; transform: none; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.sub-tab img, .sub-tab span, .sub-tab b { transform: none; }
.sub-tab span { font-size: 0.62rem; }
.sub-tab b { font-size: 0.6rem; line-height: 1.2; padding: 0 3px; }
.sub-tab.is-on { box-shadow: none; }
/* サブの札: 顔 ｜ 文字の列 (= 行が増えても左の列に落ちない) */
.sub-tile { display: flex; align-items: flex-start; gap: 6px; }
.sub-tile .sub-face { flex: 0 0 48px; grid-row: auto; }
.sub-tile__body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1; }
.sub-tile__name { max-width: 100%; }

/* ============================================================
   作者 2026-10-24: ゲージは右上・溜まるまでは不透明度 60%・満タンで 100% にして光らせる・サブの作戦
   ============================================================ */
.team-strike {
  top: 8px; right: 8px; bottom: auto; gap: 4px; opacity: 0.6; transition: opacity 0.25s;
}
.team-strike.is-ready, .team-strike.is-buff, .team-strike.is-menu { opacity: 1; }
.ts-gauge { width: 132px; height: 16px; }
.ts-btn { min-width: 116px; height: 46px; padding: 0 14px; }
.ts-btn__main { font-size: 13px; max-width: 150px; }
.ts-btn__sub { font-size: 10px; }
.team-strike.is-ready .ts-gauge { animation: ts-glow 0.9s ease-in-out infinite; }
.team-strike.is-ready .ts-btn { filter: drop-shadow(0 0 6px #ff3048) drop-shadow(0 0 14px rgba(255, 212, 0, 0.7)); }
@keyframes ts-glow {
  0%, 100% { box-shadow: 5px 5px 0 var(--ts-red), 0 0 0 1px var(--ts-ink), 0 0 6px rgba(255, 48, 72, 0.6); }
  50% { box-shadow: 5px 5px 0 var(--ts-red), 0 0 0 1px var(--ts-ink), 0 0 18px rgba(255, 212, 0, 0.95); }
}
@media (prefers-reduced-motion: reduce) { .team-strike.is-ready .ts-gauge { animation: none; } }

/* 作戦 (= SPEC-169: サブごとにボタン。 押したサブの 4 つを開き、 選ぶと閉じる) */
.ts-tactic-row { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }   /* 作者 2026-10-24: サブは縦に。 開いたサブの下に 4 つ */
.ts-tactic.is-open { background: var(--ts-red); box-shadow: 3px 3px 0 var(--ts-white); }
.ts-tactic__face { width: 22px; height: 22px; image-rendering: pixelated; transform: skewX(12deg); margin: -3px 0; }
.ts-tactics__head { font: 800 0.62rem/1.2 "Chakra Petch", system-ui, sans-serif; letter-spacing: 0.08em; color: #ffd400; text-align: right; text-shadow: 0 1px 0 #000; }
.ts-tactic {
  pointer-events: auto; appearance: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; cursor: pointer;
  background: var(--ts-ink); color: var(--ts-white); border: 1.5px solid var(--ts-white); transform: skewX(-12deg); font-size: 0.68rem;
}
.ts-tactic > span { transform: skewX(12deg); }
.ts-tactic__kicker { font: 800 0.58rem/1 "Chakra Petch", system-ui, sans-serif; letter-spacing: 0.12em; color: #ffd400; }
.ts-tactic__label { font-weight: 800; white-space: nowrap; }
.ts-tactics { display: none; pointer-events: auto; flex-direction: column; gap: 3px; }
.team-strike.is-menu .ts-tactics { display: flex; }
.ts-tactics button {
  appearance: none; display: flex; align-items: center; gap: 6px; min-width: 132px; padding: 5px 10px; cursor: pointer; text-align: left;
  background: var(--ts-ink); color: var(--ts-white); border: 1.5px solid rgba(255, 255, 255, 0.4); transform: skewX(-12deg); font-size: 0.74rem; font-weight: 800;
}
.ts-tactics button > * { transform: skewX(12deg); }
.ts-tactics button i { font-style: normal; }
.ts-tactics button.is-on { background: var(--ts-red); border-color: var(--ts-white); box-shadow: 3px 3px 0 var(--ts-white); }
