/* ============================================================
   bp.css — LOC バンピックツール共通スタイル
   LOCブランド（ネイビー×ゴールド×ライトブルー）。
   LGC(nodecg)版の黒×琥珀から、公式サイト／配信グラフィックと同じ配色に統一。
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700;900&display=swap');

:root {
  --navy-0: #030a14;
  --navy-1: #071427;
  --navy-2: #0c2141;
  --navy-3: #143567;
  --blue: #5aa7ea;
  --blue-dk: #1f4e8f;
  --red: #e8555c;
  --red-dk: #8f2b30;
  --gold: #e0b44c;
  --gold-lt: #f7e0a1;
  --gold-dk: #8a6318;
  --text: #e8f0fb;
  --muted: #92a7c4;
  --line: rgba(224, 180, 76, 0.28);
  --ok: #5cd67f;
  /* LOCのヘックス地紋（配信グラフィックと同じもの） */
  --loc-hex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='60' viewBox='0 0 68 60'><path d='M18 2 L50 2 L66 30 L50 58 L18 58 L2 30 Z' fill='none' stroke='%236fb2e8' stroke-width='2'/></svg>");
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', 'Oswald', 'Noto Sans JP', sans-serif;
  background: radial-gradient(circle at 50% 34%, var(--navy-3) 0%, var(--navy-2) 44%, var(--navy-0) 95%);
  color: var(--text);
  margin: 0; padding: 0;
  height: 100vh; overflow: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: var(--loc-hex); background-size: 68px 60px;
  opacity: .06; pointer-events: none; z-index: 0;
}

/* ---------- 骨組み ---------- */
.bp-root { display: flex; flex-direction: column; height: 100vh; width: 100%; position: relative; z-index: 1; padding: 0 2%; overflow: hidden; }

/* ---------- ヘッダー ---------- */
.bp-header {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; height: 14.4vh; min-height: 100px;
  background: linear-gradient(180deg, rgba(12, 33, 65, .82), rgba(3, 10, 20, .6));
  padding: 0 18px; border-bottom: 1px solid var(--gold);
  position: relative; z-index: 2;
}
.bp-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  opacity: .8;
}
.team-label { display: flex; align-items: center; gap: 12px; flex: 0 0 34%; min-width: 0; }
/* 向きは「画面のどちら側か(pos-*)」で決める。色は blue-label / red-label が持つ。 */
.team-label.pos-right { flex-direction: row-reverse; text-align: right; }
.team-crest {
  width: 5.4vh; height: 5.4vh; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8));
}
.team-crest.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald'; font-weight: 900; font-size: 2vh; letter-spacing: 1px;
  border: 2px solid currentColor; border-radius: 4px; opacity: .55;
}
.team-text { min-width: 0; display: flex; flex-direction: column; }
.team-name {
  font-family: 'Oswald'; font-size: 3.1vh; font-weight: 900; line-height: 1.05;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.blue-label .team-name { color: var(--blue); text-shadow: 0 0 18px rgba(90, 167, 234, .45); }
.red-label .team-name { color: var(--red); text-shadow: 0 0 18px rgba(232, 85, 92, .45); }
.team-sub { font-family: 'Oswald'; font-size: 1.2vh; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
/* 先攻のチームにだけ出す印。サイド（青/赤）とは別に決まるので、どちらの側にも出る。 */
.first-pick-tag {
  display: none; font-family: 'Oswald'; font-size: 1.15vh; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); text-shadow: 0 0 10px rgba(224, 180, 76, .55); margin-top: 2px;
}
.first-pick-tag.on { display: block; }
/* 旗はチーム名アイコンと同じく「外側」に置く（左のチームは左、右のチームは右） */
.first-pick-tag::before { content: '⚑ '; }
.team-label.pos-right .first-pick-tag::before { content: ''; }
.team-label.pos-right .first-pick-tag::after { content: ' ⚑'; }
.ready-status { font-family: 'Oswald'; font-size: 1.4vh; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; transition: color .3s; }
.status-not-ready { color: #456384; }
.status-ready { color: var(--ok); text-shadow: 0 0 10px var(--ok); }

/* LOCロゴは中央の「上」。その下にシリーズ名・フェーズ・タイマーを縦に積む。 */
.loc-brand-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; flex: 1; min-width: 0; }
.loc-brand-center img { height: 4.2vh; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .75)); }
.lbc-txt { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.lbc-name { font-family: 'Oswald'; font-size: 1.1vh; font-weight: 700; letter-spacing: 4px; color: var(--gold-lt); white-space: nowrap; }
/* トーナメント表の試合タグ（UPPER FINAL など）。大会名より目立たせる。 */
.lbc-tag { color: #fff; font-weight: 900; text-shadow: 0 0 12px rgba(224, 180, 76, .8); }
.phase-text { font-family: 'Oswald'; font-size: 2.4vh; font-weight: 900; letter-spacing: 2px; color: var(--gold); white-space: nowrap; }
/* ★残り時間は**遠くの席／配信のサムネでも読める大きさ**にしてある（2026-08-21にユーザー指示で拡大）。
   運営・選手・配信の3画面とも同じこの1本を使うので、ここだけ直せば3つとも同じ大きさになる。
   ・font-variant-numeric: tabular-nums … 数字の幅を揃える（:30→:29 で左右に揺れない）
   ・text-shadow の currentColor … 残り10秒で赤くなると光も赤くなる（色はJSが決める） */
.timer-text {
  font-family: 'Oswald'; font-size: 5.2vh; font-weight: 900; color: #fff; line-height: 1;
  letter-spacing: 1px; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px currentColor, 0 2px 6px rgba(0, 0, 0, .85);
  transition: opacity .3s, color .3s;
}

.timer-bar-container { width: 100%; height: 4px; background: rgba(255, 255, 255, .08); margin-bottom: 1vh; position: relative; z-index: 2; overflow: hidden; transition: opacity .3s; }
.timer-bar-fill { width: 100%; height: 100%; background: var(--gold); transition: width 1s linear, background-color .3s; box-shadow: 0 0 12px rgba(224, 180, 76, .8); }

/* ---------- ドラフト ---------- */
.draft-ui { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 1vh; gap: 1vh; min-height: 0; }
.team-container { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; flex: 1; min-height: 0; }
.team-side { flex: 0 0 28vw; max-width: 430px; display: flex; flex-direction: column; z-index: 10; }
/* サイドの色。位置(pos-left/pos-right)とは切り離してある。 */
.blue-side { --side-color: var(--blue); }
.red-side { --side-color: var(--red); }

.pick-row-wrap { display: flex; align-items: center; gap: 8px; width: 100%; height: 10.5vh; margin-bottom: .8vh; }
/* 右側に出ている列は、スワップ矢印が内側（中央寄り）に来るように並びを反転する */
.team-side.pos-right .pick-row-wrap { flex-direction: row-reverse; }
.pick-col { flex: 1; height: 100%; min-width: 0; }
.pick-card {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: linear-gradient(135deg, #061224, #030a14);
  border: 2px solid var(--blue-dk); transition: .3s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.pos-right .pick-card { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.pos-left .pick-card { border-left: 3px solid var(--side-color); }
.pos-right .pick-card { border-right: 3px solid var(--side-color); }
.pick-card.clickable { cursor: pointer; }
.pick-card.clickable:hover { border-color: var(--gold-lt); }
/*
 * カードの背景（チャンピオンのスプラッシュ）。
 * 中央寄せの絵は顔が「横48%・縦22〜25%」に来るので、その一点がカードの真ん中に
 * 来るように切り出し位置を決めてある（object-position の縦4%）。
 * さらに 1.22倍に拡大して顔を大きく見せる。★絵を差し替えたらここも見直すこと。
 */
.slot-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 4%;
  transform: scale(1.22); transform-origin: 50% 50%;
  filter: brightness(.72); opacity: 0; transition: opacity .4s;
}
.slot-role {
  position: absolute; top: 5px; right: 7px; z-index: 6;
  font-family: 'Oswald'; font-size: 1.05vh; font-weight: 700; letter-spacing: 2px;
  color: var(--gold-lt); opacity: .75; text-shadow: 0 0 6px #000;
}
.pos-right .slot-role { right: auto; left: 7px; }
.player-info { position: absolute; bottom: 5px; left: 10px; right: 8px; z-index: 5; font-family: 'Oswald'; pointer-events: none; text-transform: uppercase; }
.pname-line { font-size: 1.6vh; font-weight: 700; color: #fff; text-shadow: 0 0 6px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* カードに常時出すチャンピオン名（英語）。ピックしていない間は空。 */
.cname-line {
  font-size: 1.15vh; font-weight: 700; letter-spacing: 1.5px; color: var(--gold-lt);
  text-shadow: 0 0 6px #000, 0 0 12px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.cname-line:empty { display: none; }

/* ピック確定演出（フラッシュ→紺色の情報パネルが横切る） */
.pick-reveal-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 20; }
@keyframes loc-card-burst { 0% { opacity: 0; } 7% { opacity: 1; } 100% { opacity: 0; } }
.pick-reveal-flash.active { animation: loc-card-burst .65s ease-out forwards; }
/* ------------------------------------------------------------
   ピック後の情報パネル（カードにかぶさる紺色の背景）
   ピックの3秒後に外側から入り、5秒たったら同じ側へ抜ける（出し入れは JS のタイマー）。
   奥のチャンピオン絵がうっすら透ける濃さにしてある。
   ------------------------------------------------------------ */
.pick-info-panel {
  position: absolute; inset: 0; z-index: 15; pointer-events: none; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: .3vh;
  padding: 4px 12px 4px 13px;
  background:
    linear-gradient(100deg, rgba(4, 12, 24, .97) 0%, rgba(12, 33, 65, .94) 58%, rgba(20, 53, 103, .78) 100%);
  border-inline-start: 4px solid transparent;
  transform: translateX(-101%);
  transition: transform .5s cubic-bezier(.55, 0, 1, .45);          /* 抜ける時 */
}
.pos-right .pick-info-panel { transform: translateX(101%); }        /* 右の列は外側（右）から */
.pick-info-panel.show { transform: translateX(0); transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
/* 上下に金の細線を入れて「テロップ」らしくする */
.pick-info-panel::before, .pick-info-panel::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .55;
}
.pick-info-panel::before { top: 0; } .pick-info-panel::after { bottom: 0; }

.panel-champ-name {
  font-family: 'Oswald'; font-size: 1.9vh; font-weight: 900; color: #fff;
  text-transform: uppercase; letter-spacing: 1px; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.panel-stats { display: flex; align-items: baseline; gap: 2vh; }
.ps { display: flex; align-items: baseline; gap: .6vh; }
.ps b { font-family: 'Oswald'; font-size: .95vh; font-weight: 700; letter-spacing: 2px; color: var(--muted); }
.ps i { font-family: 'Oswald'; font-size: 3vh; font-weight: 900; font-style: normal; line-height: .95; letter-spacing: -1px; }
.ps-pick { color: var(--gold-lt); }
.wr-hi { color: #5dfc8c; } .wr-md { color: var(--gold); } .wr-lo { color: #ff8b90; }
.panel-wr-rec {
  font-family: 'Oswald'; font-size: 1vh; color: #7f92a8; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
}

/* 自分の番（LOCらしくゴールドの光が走る） */
.active-turn { border-color: var(--gold) !important; border-width: 3px !important; z-index: 20; animation: loc-pulse 1.2s infinite ease-in-out; }
@keyframes loc-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(224, 180, 76, .45); }
  50%      { box-shadow: 0 0 24px rgba(224, 180, 76, .9); }
}
.pick-card.active-turn::after, .ban-slot.active-turn::after {
  content: ''; position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(247, 224, 161, .28) 50%, transparent 65%);
  background-size: 260% 100%; animation: loc-sweep 2.1s linear infinite;
}
@keyframes loc-sweep { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }

/* スワップ用の▲▼ */
/* ★並べ替えの矢印は **SWAP PHASE の間だけ**（2026-08-21 ユーザー指示）。
   他のフェーズでも押せてしまい、ドラフト中の並びが崩れてエラーになっていた。
   場所は空けたまま（visibility）にして、出たり消えたりでカードが動かないようにしてある。 */
.swap-col { display: flex; flex-direction: column; gap: 2px; height: 100%; justify-content: center;
  visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; }
.swap-on .swap-col { visibility: visible; pointer-events: auto; opacity: 1; }
.swap-btn { padding: 2px 5px; background: rgba(12, 33, 65, .9); border: 1px solid var(--blue-dk); color: #9db6d4; cursor: pointer; font-size: 10px; height: 45%; font-family: 'Oswald'; transition: .12s; }
.swap-btn:hover { background: var(--gold); color: #04101f; border-color: var(--gold-lt); }

/* BAN */
.ban-row { display: flex; flex-direction: row; gap: 6px; margin-top: 8px; width: 100%; height: 5.5vh; justify-content: center; }
.ban-slot { position: relative; width: 5.5vh; height: 5.5vh; background: #0a1424; border: 1px solid var(--blue-dk); overflow: hidden; aspect-ratio: 1/1; flex-shrink: 0; }
.ban-slot.clickable { cursor: pointer; }
.ban-slot img { width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1) brightness(.8); transition: .3s; }
.ban-slot::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: .3s;
  background: linear-gradient(45deg, transparent 46%, rgba(232, 85, 92, .85) 47%, rgba(232, 85, 92, .85) 53%, transparent 54%);
}
.ban-slot.filled::before { opacity: 1; }

/* フィアレス履歴 */
.fearless-display { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; background: rgba(90, 167, 234, .07); border: 1px solid rgba(90, 167, 234, .18); padding: 6px; }
.fearless-row { display: flex; align-items: center; gap: 5px; font-family: 'Oswald'; font-size: 10px; color: var(--gold); margin-bottom: 2px; }
.fearless-row img { width: 25px; height: 25px; border: 1px solid #25456e; }

/* ---------- 中央演出 ---------- */
.center-stage { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; pointer-events: none; z-index: 5; margin: 0 20px; align-self: stretch; overflow: visible; }
.phase-announcer {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Oswald'; font-weight: 900; font-size: 6.2vh; color: #fff;
  text-shadow: 0 0 35px rgba(224, 180, 76, .95); opacity: 0; z-index: 2000;
  text-transform: uppercase; white-space: nowrap; letter-spacing: 5px; pointer-events: none;
}
.phase-announcer.show { animation: phase-in-out 3.5s forwards; }
@keyframes phase-in-out {
  0%   { opacity: 0; transform: translate(-50%, -40%) scale(.95); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(1.1); }
}
.center-splash-wrap {
  width: 100%; height: 100%; position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent), linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent), linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.center-splash-wrap.visible { opacity: .7; }
.center-splash-wrap img { width: 100%; height: 100%; object-fit: cover; }
@keyframes lock-impact-heavy {
  0%   { transform: scale(1.05); filter: brightness(1.6); opacity: 1; }
  13%  { transform: scale(1.05); filter: brightness(1.2); opacity: 1; }
  85%  { transform: scale(1.05); filter: brightness(1);   opacity: 1; }
  100% { transform: scale(1.05); filter: brightness(1);   opacity: 0; }
}
.lock-animation { animation: lock-impact-heavy 3.8s cubic-bezier(.1, 0, .1, 1) forwards !important; }
.center-splash-img.ban-mode { filter: grayscale(1) brightness(.6) !important; }
.center-champ-name {
  position: absolute; bottom: 15%; font-family: 'Oswald'; font-size: 4.2vh; font-weight: 900;
  color: #fff; text-shadow: 0 0 15px #000, 0 0 12px var(--gold); opacity: 0; transition: opacity 1s;
  z-index: 10; text-transform: uppercase; letter-spacing: 2px;
}
.center-champ-name.visible { opacity: 1 !important; }
/* 中央に薄く浮くLOCの六角 */
.center-stage::before {
  content: ''; position: absolute; width: 30vh; height: 30vh; z-index: 1; opacity: .07; pointer-events: none;
  background: var(--loc-hex) center/contain no-repeat;
}

.swap-prompt {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Oswald'; font-weight: 700; font-size: 2.1vh; color: var(--gold);
  text-align: center; width: 90%; opacity: 0; transition: opacity .8s; z-index: 1500;
  pointer-events: none; text-shadow: 0 0 10px rgba(0, 0, 0, .9); line-height: 1.6;
}
.swap-prompt.visible { opacity: 1; }
.timeout-prompt {
  position: absolute; top: 24%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Oswald'; font-weight: 700; font-size: 1.9vh; color: var(--red);
  text-align: center; width: 85%; opacity: 0; transition: opacity .3s; z-index: 1500; pointer-events: none;
  background: rgba(24, 4, 8, .88); padding: 10px; border: 2px solid var(--red); line-height: 1.6;
}
.timeout-prompt.visible { opacity: 1; animation: timeout-flash 1s infinite alternate; }
@keyframes timeout-flash { 0% { box-shadow: 0 0 10px rgba(232, 85, 92, .5); } 100% { box-shadow: 0 0 25px rgba(232, 85, 92, 1); } }

/* ------------------------------------------------------------
   配信ビュー（/bp/view）だけの寸法
   OBSで1920x1080に載せると下に250pxほど・左右の間に980pxほど余白が空いて
   間延びして見えたので、この画面に限ってカードとBAN枠を大きくして埋める。
   操作画面（右にチャンピオン一覧がある）と選手用は従来の寸法のまま。
   ------------------------------------------------------------ */
.bp-role-view .team-side { flex: 0 0 28.5vw; max-width: 540px; }
/* カードの高さは「BO5 第5試合＝使用済み4試合ぶん」を下に置いても収まる値にしてある。
   ここを上げる時は必ず第5試合の状態で見切れないか確かめること。 */
.bp-role-view .pick-row-wrap { height: 12.7vh; margin-bottom: .9vh; }
.bp-role-view .ban-row { height: 6.4vh; gap: 8px; margin-top: 9px; }
.bp-role-view .ban-slot { width: 6.4vh; height: 6.4vh; }

/* フィアレスの使用済みチャンピオン。縦積みだと第5試合で4段になって画面に入らないので、
   配信ビューでは横に並べて折り返す（4試合ぶんでも2段に収まる）。 */
.bp-role-view .fearless-display {
  flex-direction: row; flex-wrap: wrap; align-items: center;
  gap: 3px 12px; margin-top: 8px; padding: 5px 8px;
}
.bp-role-view .fearless-row { margin-bottom: 0; gap: 4px; font-size: 11px; }
.bp-role-view .fearless-row img { width: 22px; height: 22px; }
/* カードが大きくなるぶん、中の文字も釣り合う大きさにする */
.bp-role-view .pname-line { font-size: 2vh; }
.bp-role-view .slot-role { font-size: 1.25vh; top: 7px; right: 10px; }
.bp-role-view .pos-right .slot-role { right: auto; left: 10px; }
/* 配信ビューはカードが大きいぶん、情報パネルの文字も大きくする */
.bp-role-view .cname-line { font-size: 1.4vh; }
.bp-role-view .panel-champ-name { font-size: 2.3vh; }
.bp-role-view .ps i { font-size: 3.6vh; }
.bp-role-view .ps b { font-size: 1.15vh; }
.bp-role-view .panel-wr-rec { font-size: 1.2vh; }

/* ---------- スワップフェーズの READY 表示 ---------- */
.swap-status { width: 100%; padding: 1vh 0; display: none; justify-content: center; gap: 40px; z-index: 100; }
.swap-status.on { display: flex; }
.swap-status-label {
  font-family: 'Oswald'; font-size: 2.1vh; font-weight: 900; padding: 8px 30px;
  border: 2px solid var(--blue-dk); color: #456384; letter-spacing: 2px; transition: .3s;
}
.swap-status-label.ready { color: var(--ok); border-color: var(--ok); text-shadow: 0 0 10px var(--ok); box-shadow: 0 0 12px rgba(92, 214, 127, .35); }

/* ---------- 大きいボタン ---------- */
.lock-btn-wrap { width: 100%; padding: 1.4vh 0; display: flex; justify-content: center; gap: 20px; z-index: 100; position: relative; }
.lock-btn {
  flex: 1; max-width: 600px; padding: 1.7vh; font-size: 2.6vh; font-family: 'Oswald'; font-weight: 900;
  background: linear-gradient(180deg, var(--gold), var(--gold-dk)); color: #04101f;
  border: 2px solid var(--gold-lt); cursor: pointer; transition: .25s; letter-spacing: 2px;
}
.lock-btn:hover:not(:disabled) { filter: brightness(1.12); box-shadow: 0 0 22px rgba(224, 180, 76, .5); }
.lock-btn:disabled { opacity: .2; cursor: not-allowed; filter: grayscale(1); }
.ready-btn { background: rgba(12, 33, 65, .9); color: var(--text); border-color: var(--blue-dk); }
.ready-btn.active { background: linear-gradient(180deg, var(--ok), #2f8a4c) !important; color: #04101f !important; border-color: #fff !important; box-shadow: 0 0 18px rgba(92, 214, 127, .6); }

/* ---------- マッチアップ（DRAFT COMPLETE） ---------- */
.matchup-ui {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100vh; position: absolute; top: 0; left: 0; z-index: 10000; padding: 2vh; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--navy-3) 0%, var(--navy-2) 45%, var(--navy-0) 92%);
}
.matchup-ui.on { display: flex; }
.matchup-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.matchup-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 50; }
.draft-complete-label {
  position: absolute; top: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 22px;
  font-family: 'Oswald'; font-size: 3.8vh; color: var(--gold); letter-spacing: 10px; text-transform: uppercase;
  font-weight: 900; text-shadow: 0 0 20px rgba(224, 180, 76, .7); z-index: 10;
}
.mu-logo { height: 6vh; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .85)); }
.mu-teams {
  position: absolute; top: 9.2vh; width: 100%; display: grid; grid-template-columns: 1fr 100px 1fr;
  align-items: center; z-index: 10; padding: 0 2.5%;
}
.mu-team-name { font-family: 'Oswald'; font-size: 2.3vh; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-teams .blue { color: var(--blue); }
.mu-teams .red { color: var(--red); }
.mu-teams .pos-right { text-align: right; }
.mu-vs { font-family: 'Oswald'; font-size: 1.8vh; font-weight: 900; color: var(--gold-lt); text-align: center; letter-spacing: 2px; }
.mu-edge-left  { position: absolute; top: 0; left: 0; width: 6px; height: 100%; z-index: 10; background: linear-gradient(to bottom, transparent, rgba(90, 167, 234, .9) 30%, rgba(90, 167, 234, .9) 70%, transparent); animation: muEdgeBlue 2s ease-in-out infinite; }
.mu-edge-right { position: absolute; top: 0; right: 0; width: 6px; height: 100%; z-index: 10; background: linear-gradient(to bottom, transparent, rgba(232, 85, 92, .9) 30%, rgba(232, 85, 92, .9) 70%, transparent); animation: muEdgeRed 2s ease-in-out infinite .3s; }
@keyframes muEdgeBlue { 0%, 100% { opacity: .5; } 50% { opacity: 1; box-shadow: 0 0 18px rgba(90, 167, 234, .9); } }
@keyframes muEdgeRed  { 0%, 100% { opacity: .5; } 50% { opacity: 1; box-shadow: 0 0 18px rgba(232, 85, 92, .9); } }
.mu-bottom-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; z-index: 10; background: linear-gradient(90deg, rgba(90, 167, 234, .8), rgba(224, 180, 76, .95) 50%, rgba(232, 85, 92, .8)); animation: muBarGlow 3s ease-in-out infinite; }
@keyframes muBarGlow { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.matchup-grid { display: grid; grid-template-rows: repeat(5, 1fr); gap: 1.2vh; width: 95%; height: 74vh; max-width: 1600px; position: relative; z-index: 5; margin-top: 8vh; }
.matchup-row { display: grid; grid-template-columns: 1fr 100px 1fr; align-items: center; border-bottom: 1px solid rgba(224, 180, 76, .15); width: 100%; height: 100%; overflow: hidden; }
.lane-icon-box { display: flex; justify-content: center; align-items: center; }
.lane-icon { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(224, 180, 76, .5)); }
.matchup-side { display: flex; align-items: center; gap: 25px; height: 100%; position: relative; overflow: hidden; }
.matchup-side.pos-right { flex-direction: row-reverse; text-align: right; }
.mu-splash { width: 380px; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, black 60%, transparent); mask-image: linear-gradient(to right, black 60%, transparent); }
.pos-right .mu-splash { transform: scaleX(-1); -webkit-mask-image: linear-gradient(to left, black 60%, transparent); mask-image: linear-gradient(to left, black 60%, transparent); }
.mu-pname { font-family: 'Oswald'; font-size: 2.6vh; font-weight: 700; color: #fff; }
.mu-cname { font-family: 'Oswald'; font-size: 1.7vh; color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
@keyframes muSlideLeft  { from { transform: translateX(-100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes muSlideRight { from { transform: translateX(100px);  opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes muFadeIn     { from { opacity: 0; } to { opacity: 1; } }
.matchup-row.anim .matchup-side.pos-left  { animation: muSlideLeft .55s cubic-bezier(.22, 1, .36, 1) both; }
.matchup-row.anim .matchup-side.pos-right { animation: muSlideRight .55s cubic-bezier(.22, 1, .36, 1) both; }
.matchup-row.anim .lane-icon-box     { animation: muFadeIn .55s ease both; }

/* ============================================================
   開始前：WAITING 画面
   3画面とも同じ絵。運営には両チームぶん、選手には自分の側のボタンが出る。
   ============================================================ */
.waiting-ui {
  position: absolute; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(20, 53, 103, .96) 0%, rgba(7, 20, 39, .985) 52%, rgba(3, 10, 20, .995) 100%);
}
.waiting-ui.on { display: flex; animation: wFade .5s ease both; }
@keyframes wFade { from { opacity: 0; } to { opacity: 1; } }
.waiting-ui::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--loc-hex); background-size: 68px 60px; opacity: .07;
}
.w-inner { position: relative; z-index: 2; width: min(1200px, 88%); }
.w-logo { height: 13vh; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .85)); animation: wLogo 4.5s ease-in-out infinite; }
@keyframes wLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.w-title {
  font-family: 'Oswald'; font-weight: 900; font-size: 11vh; line-height: 1; letter-spacing: 1.6vh;
  margin: 1.4vh 0 .4vh; padding-left: 1.6vh;
  background: linear-gradient(180deg, #fff 6%, var(--gold-lt) 42%, var(--gold) 68%, var(--gold-dk) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 26px rgba(224, 180, 76, .45));
}
.w-title::after {
  content: ''; display: block; width: 34%; height: 2px; margin: 1.6vh auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.w-sub { font-family: 'Oswald'; font-size: 1.9vh; letter-spacing: 6px; color: var(--gold-lt); opacity: .85; }
.w-teams { display: flex; align-items: stretch; justify-content: center; gap: 3vh; margin-top: 4vh; }
.w-team {
  flex: 0 1 34%; padding: 2.2vh 2vh; min-width: 0;
  background: linear-gradient(180deg, rgba(12, 33, 65, .8), rgba(4, 12, 24, .55));
  border: 1px solid rgba(146, 167, 196, .22); border-top-width: 3px; transition: .35s;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.w-team.blue { border-top-color: var(--blue); }
.w-team.red { border-top-color: var(--red); }
.w-team.ready { border-color: var(--ok); box-shadow: 0 0 26px rgba(92, 214, 127, .28); background: linear-gradient(180deg, rgba(20, 70, 45, .5), rgba(4, 12, 24, .55)); }
.wt-crest { width: 8vh; height: 8vh; object-fit: contain; }
.wt-crest.ph { width: 8vh; height: 8vh; margin: 0 auto; border: 2px dashed rgba(146, 167, 196, .25); }
.wt-name { font-family: 'Oswald'; font-size: 3vh; font-weight: 900; margin-top: .8vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-team.blue .wt-name { color: var(--blue); }
.w-team.red .wt-name { color: var(--red); }
.wt-side { font-family: 'Oswald'; font-size: 1.2vh; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.wt-ready { font-family: 'Oswald'; font-size: 1.6vh; letter-spacing: 2px; margin-top: 1.2vh; color: #456384; }
.w-team.ready .wt-ready { color: var(--ok); text-shadow: 0 0 12px rgba(92, 214, 127, .8); }
.w-vs { align-self: center; font-family: 'Oswald'; font-size: 3vh; font-weight: 900; color: var(--gold); }
.w-actions { display: flex; gap: 2vh; justify-content: center; margin-top: 4vh; }
.w-hint { font-size: 1.6vh; color: var(--muted); letter-spacing: 2px; }
.w-btn {
  min-width: 26vh; padding: 1.8vh 3vh; cursor: pointer; font-family: 'Oswald'; font-size: 2.2vh; font-weight: 900;
  display: flex; flex-direction: column; gap: .5vh; align-items: center;
  background: rgba(12, 33, 65, .9); color: var(--text); border: 2px solid var(--blue-dk); transition: .18s;
}
.w-btn.red { border-color: var(--red-dk); }
.w-btn span { font-size: 1.2vh; font-weight: 400; letter-spacing: 1px; color: var(--muted); }
.w-btn:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.w-btn:disabled { opacity: .5; cursor: wait; }
.w-btn.on { background: linear-gradient(180deg, rgba(92, 214, 127, .28), rgba(4, 12, 24, .6)); border-color: var(--ok); color: #dcffe6; }
.w-btn.on span { color: rgba(220, 255, 230, .75); }

/* ============================================================
   開始の紹介演出（チーム名 → 選手1〜5 → FIRST PICK）
   ============================================================ */
.intro-ui { position: absolute; inset: 0; z-index: 280; display: none; pointer-events: none; }
.intro-ui.on { display: block; }
.intro-scrim {
  position: absolute; inset: 0; background: rgba(3, 10, 20, .55);
  animation: introScrim .8s ease both;
}
@keyframes introScrim { from { opacity: 0; } to { opacity: 1; } }

/* 演出中、まだ紹介されていない枠は伏せておく */
.intro-running .pick-card.intro-veil { opacity: .12; filter: grayscale(1); }
.intro-running .pick-card.intro-veil .player-info { opacity: 0; }
.pick-card.intro-arrive { animation: introArrive .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes introArrive {
  0% { transform: scale(1.06); box-shadow: 0 0 0 3px var(--gold-lt), 0 0 40px rgba(224, 180, 76, .9); }
  100% { transform: scale(1); box-shadow: none; }
}

/* ------------------------------------------------------------
   オープニングの場面転換（ロゴ → LGC OPEN CUP → 金の帯が横切る）
   親 .intro-open の animation-duration を JS が state.intro.openMs に合わせる。
   中の要素は % 指定なので、尺を変えても全体が伸び縮みして崩れない。
   ------------------------------------------------------------ */
.intro-open { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.intro-open.play { animation: ioHold 3200ms linear both; }
@keyframes ioHold { 0%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* 中央から広がる金の閃光 */
.io-burst {
  position: absolute; left: 50%; top: 50%; width: 160vh; height: 160vh; transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(224,180,76,.55) 0%, rgba(224,180,76,.14) 32%, transparent 62%);
}
.intro-open.play .io-burst { animation: ioBurst 3200ms cubic-bezier(.15,.9,.25,1) both; }
@keyframes ioBurst {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  6% { opacity: 1; }
  34% { transform: translate(-50%, -50%) scale(1); opacity: .55; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}

/* 広がるリング（2本を少しずらす） */
.io-ring {
  position: absolute; left: 50%; top: 50%; width: 26vh; height: 26vh; margin: -13vh 0 0 -13vh;
  border: 2px solid rgba(224,180,76,.8); border-radius: 50%; opacity: 0;
}
.intro-open.play .io-ring { animation: ioRing 3200ms cubic-bezier(.1,.85,.3,1) both; }
.intro-open.play .io-ring.r2 { animation-delay: 180ms; border-color: rgba(255,255,255,.55); }
@keyframes ioRing {
  0% { transform: scale(.2); opacity: 0; }
  8% { opacity: .95; }
  46% { transform: scale(4.2); opacity: 0; }
  100% { transform: scale(4.2); opacity: 0; }
}

/* ロゴ＋ワードマーク */
.io-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 1.4vh; text-align: center;
}
/*
 * ★ここで filter: blur() を混ぜると、ブラウザが縮小した状態で一度だけ描画して
 *   それを拡大するため、止まっている間もロゴがぼやける。にじませない。
 *   拡大率も 1 を超えすぎないようにして、元画像(718x428)の解像度内に収める。
 */
.intro-open.play .io-core { animation: ioCore 3200ms cubic-bezier(.16,1,.3,1) both; }
@keyframes ioCore {
  0% { transform: translate(-50%, -50%) scale(.72); opacity: 0; }
  10% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
  16% { transform: translate(-50%, -50%) scale(1); }
  72% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 0; }
}
.io-logo {
  height: 26vh; width: auto; display: block;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.9)) drop-shadow(0 0 34px rgba(224,180,76,.5));
}
.io-name {
  font-family: 'Oswald'; font-weight: 900; font-size: 5.2vh; line-height: 1; white-space: nowrap;
  background: linear-gradient(180deg, #fff 10%, var(--gold-lt) 46%, var(--gold) 72%, var(--gold-dk) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-open.play .io-name { animation: ioName 3200ms cubic-bezier(.16,1,.3,1) both; }
@keyframes ioName {
  0% { letter-spacing: 4vh; opacity: 0; }
  14% { letter-spacing: 1.1vh; opacity: 1; }
  100% { letter-spacing: 1.1vh; opacity: 1; }
}
.io-sub { font-family: 'Oswald'; font-size: 1.8vh; letter-spacing: 6px; color: var(--gold-lt); opacity: .9; }

/* 金の帯が斜めに横切って場面を渡す */
.io-wipe {
  position: absolute; top: -30%; height: 160%; width: 78vw; opacity: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(224,180,76,.35) 26%, rgba(247,224,161,.9) 44%,
    #fffdf3 50%, rgba(247,224,161,.9) 56%, rgba(224,180,76,.35) 74%, transparent 100%);
  filter: blur(2px); transform: skewX(-14deg);
}
.intro-open.play .io-wipe.a { animation: ioWipeA 3200ms cubic-bezier(.7,0,.3,1) both; }
.intro-open.play .io-wipe.b { animation: ioWipeB 3200ms cubic-bezier(.7,0,.3,1) both; }
@keyframes ioWipeA {
  0%, 66% { left: -70vw; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 120vw; opacity: 0; }
}
@keyframes ioWipeB {
  0%, 72% { left: 120vw; opacity: 0; }
  76% { opacity: .8; }
  100% { left: -70vw; opacity: 0; }
}

/* --- チーム名 --- */
.intro-team {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 3vh; opacity: 0;
}
.intro-team.play { animation: introTeamIn 1.4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes introTeamIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); letter-spacing: 4vh; filter: blur(14px); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1); letter-spacing: normal; filter: blur(0); }
  76% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(.96); }
}
.it-crest { height: 15vh; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .9)); }
.it-text { text-align: left; }
.intro-team.red .it-text { text-align: left; }
.it-side { font-family: 'Oswald'; font-size: 1.7vh; letter-spacing: 6px; color: var(--gold-lt); }
.it-name {
  font-family: 'Oswald'; font-size: 8.4vh; font-weight: 900; line-height: 1.05; white-space: nowrap;
  text-shadow: 0 0 40px rgba(0, 0, 0, .9);
}
.intro-team.blue .it-name { color: var(--blue); }
.intro-team.red .it-name { color: var(--red); }
.it-stats { display: flex; gap: 2.6vh; margin-top: 1vh; }
.it-cell { font-family: 'Oswald'; font-size: 2.6vh; font-weight: 700; color: #fff; }
.it-cell b { display: block; font-size: 1.1vh; font-weight: 400; letter-spacing: 3px; color: var(--muted); }
.it-first { font-family: 'Oswald'; font-size: 1.9vh; letter-spacing: 3px; color: var(--gold-lt); }

/* --- 選手カード --- */
.intro-hero {
  position: absolute; left: 50%; top: 46%; width: 92vh; max-width: 82%;
  transform: translate(-50%, -50%) scale(.82); opacity: 0;
  display: flex; align-items: center; gap: 2.4vh; padding: 2.4vh 3vh;
  background: linear-gradient(120deg, rgba(12, 33, 65, .96), rgba(4, 12, 24, .92));
  border: 1px solid var(--line); border-left: 5px solid var(--blue);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .8);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.intro-hero.red { border-left-color: var(--red); }
.intro-hero.play { animation: introHeroIn .42s cubic-bezier(.16, 1.5, .4, 1) both; }
/* 枠へ収まっていく間。中身が潰れて見えないよう、文字だけ先に薄くする */
.intro-hero.flying { opacity: 1; }
.intro-hero.flying .ih-body, .intro-hero.flying .ih-champs { transition: opacity .35s ease; opacity: .45; }
@keyframes introHeroIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.82); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.ih-avatar { flex: none; width: 13vh; height: 13vh; position: relative; }
.ih-avatar img, .ih-ph {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid var(--gold); box-shadow: 0 0 26px rgba(224, 180, 76, .45);
}
.ih-ph {
  display: grid; place-items: center; font-family: 'Oswald'; font-weight: 900; font-size: 6vh;
  color: #04101f; background: linear-gradient(135deg, var(--gold-lt), var(--gold-dk));
}
.ih-body { min-width: 0; text-align: left; }
.ih-role { font-family: 'Oswald'; font-size: 1.6vh; font-weight: 700; letter-spacing: 5px; color: var(--gold); }
.ih-name {
  font-family: 'Oswald'; font-size: 5.4vh; font-weight: 900; line-height: 1.08; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ih-stats { display: flex; flex-wrap: wrap; gap: .8vh 2.2vh; margin-top: .8vh; }
.ih-cell { font-family: 'Oswald'; font-size: 2vh; font-weight: 700; color: #fff; }
.ih-cell b { display: block; font-size: 1.05vh; font-weight: 400; letter-spacing: 2px; color: var(--muted); }
.ih-first { font-family: 'Oswald'; font-size: 1.8vh; letter-spacing: 3px; color: var(--gold-lt); }
/* よく使うチャンピオン上位3（使用率・勝率つき） */
.ih-champs { display: flex; align-items: center; flex-wrap: wrap; gap: .8vh 1.8vh; margin-top: 1.2vh; }
.ih-champs:empty { display: none; }
.ihc-k { font-family: 'Oswald'; font-size: 1.05vh; letter-spacing: 2px; color: var(--muted); }
.ihc { display: flex; align-items: center; gap: .7vh; }
.ihc img { width: 4.2vh; height: 4.2vh; border: 1px solid var(--blue-dk); border-radius: 3px; }
.ihc-t { font-family: 'Oswald'; font-size: 1.15vh; color: #b6c4d6; line-height: 1.5; letter-spacing: .5px; }
.ihc-t b { display: block; font-size: 1.6vh; color: #fff; letter-spacing: 0; }
/* データが無いチャンピオン枠（枠だけ出す） */
.ihc-box {
  display: block; width: 4.2vh; height: 4.2vh; border-radius: 3px;
  border: 1px dashed rgba(146, 167, 196, .35); background: rgba(4, 16, 31, .5);
}
/* 数字が出せない所の共通見た目（英語表記 NO DATA） */
.no-data { font-family: 'Oswald'; font-size: .6em; font-weight: 400; letter-spacing: 2px; color: #7f92a8; }

/* --- FIRST PICK カード --- */
.intro-fp {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.7); opacity: 0;
  padding: 2.6vh 5vh; text-align: center;
  background: linear-gradient(160deg, rgba(224, 180, 76, .96), rgba(138, 99, 24, .96));
  border: 2px solid #fff6d8; box-shadow: 0 18px 60px rgba(0, 0, 0, .85), 0 0 60px rgba(224, 180, 76, .55);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.intro-fp.play { animation: introFpIn .5s cubic-bezier(.16, 1.5, .4, 1) both; }
@keyframes introFpIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.7) rotate(-6deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}
.ifp-k { font-family: 'Oswald'; font-size: 2.2vh; font-weight: 900; letter-spacing: 9px; color: #3a2a06; }
.ifp-name { font-family: 'Oswald'; font-size: 5vh; font-weight: 900; color: #1a1204; line-height: 1.1; white-space: nowrap; }

/* ---------- チャンピオン検索ペイン ---------- */
.search-pane {
  background: linear-gradient(180deg, rgba(7, 20, 39, .96), rgba(3, 10, 20, .96));
  border-left: 1px solid var(--line); padding: 14px; width: 360px; height: 100vh;
  display: flex; flex-direction: column; z-index: 1000; transition: opacity .4s;
}
.search-pane.disabled { pointer-events: none; opacity: .22; filter: grayscale(.8); }
.champ-search {
  width: 100%; padding: 11px; background: rgba(12, 33, 65, .8); border: 1px solid var(--blue-dk);
  color: #fff; outline: none; border-bottom: 2px solid var(--gold); margin-bottom: 12px; font-family: 'Oswald'; font-size: 14px;
}
.champ-search::placeholder { color: #5f7899; }
.champ-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: max-content; align-content: start; gap: 8px; overflow-y: auto; flex-grow: 1; padding-bottom: 30px; }
.champ-item { cursor: pointer; background: #0a1424; aspect-ratio: 1/1; border: 2px solid #16294a; position: relative; display: flex; align-items: center; justify-content: center; transition: .1s; font-family: 'Oswald'; font-size: 12px; color: var(--muted); }
.champ-item:hover { border-color: var(--blue); }
.champ-item img { width: 100%; height: 100%; object-fit: cover; }
.champ-item.selected { border-color: var(--gold) !important; border-width: 4px !important; z-index: 10; box-shadow: 0 0 14px rgba(224, 180, 76, .7); }
.champ-item.unselectable { opacity: .15 !important; filter: grayscale(1) brightness(.5); pointer-events: none !important; cursor: not-allowed; }

/* ---------- 接続状態 ---------- */
.bp-conn {
  position: fixed; bottom: 8px; left: 10px; z-index: 30000; font-family: 'Oswald'; font-size: 11px;
  letter-spacing: 1px; padding: 3px 10px; border: 1px solid var(--red); color: var(--red);
  background: rgba(3, 10, 20, .9); display: none;
}
.bp-conn.show { display: block; }

/* ============================================================
   設定プロセス（bp-setup.js）— 3画面共通
   ドラフト前の ①ロースター ②選択権(抽選) ③権利 ④サイド/ピック順 ⑤発表。
   画面いっぱいの覆い。配信ビューは 1920x1080 に合わせて少し大きく出す。
   ============================================================ */
.su-root {
  position: fixed; inset: 0; z-index: 26000; display: none;
  align-items: center; justify-content: center;
}
.su-root.on { display: flex; }
/* ★2026-08-28: 運営パネルでは**上のタブ帯（セッション）とADMINの帯を覆わない**。
   設定プロセスは**全試合ぶん（セクションごと）にある**ので、設定の最中でも
   タブを切り替えたり ADMIN メニューから試合を選べないと運用できない。
   （sess-bar 40px ＋ top-strip 48px ＝ 88px） */
.su-root.su-role-admin { top: 88px; }
.su-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(20, 53, 103, .97) 0%, rgba(7, 20, 39, .985) 55%, rgba(3, 10, 20, .99) 100%);
}
.su-scrim::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--loc-hex); background-size: 68px 60px; opacity: .05;
}
.su-wrap {
  position: relative; width: min(1180px, 94vw); max-height: 94vh; display: flex; flex-direction: column;
  animation: su-in .4s ease-out;
}
@keyframes su-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.su-head {
  display: flex; align-items: center; gap: 14px; padding: 0 4px 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 16px; flex: 0 0 auto;
}
.su-head .su-logo { height: 44px; }
.su-head-txt { flex: 1; min-width: 0; }
.su-title { font-family: 'Oswald'; font-size: 20px; font-weight: 900; letter-spacing: 6px; color: var(--gold-lt); }
.su-sub { font-family: 'Oswald'; font-size: 12px; letter-spacing: 3px; color: var(--muted); margin-top: 2px; }
.su-steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.su-step {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'Oswald'; font-size: 11px;
  letter-spacing: 1px; color: var(--muted); border: 1px solid rgba(146, 167, 196, .25);
  padding: 4px 10px; background: rgba(4, 12, 24, .5);
}
.su-step b {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  background: rgba(146, 167, 196, .2); color: var(--text); font-size: 10px;
}
.su-step.done { color: var(--ok); border-color: rgba(92, 214, 127, .35); }
.su-step.done b { background: rgba(92, 214, 127, .3); }
.su-step.now { color: var(--gold-lt); border-color: var(--gold); box-shadow: 0 0 14px rgba(224, 180, 76, .25); }
.su-step.now b { background: var(--gold); color: var(--navy-0); }

.su-body { overflow: auto; padding: 2px 4px 6px; }
.su-lead { font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.su-lead2 { font-size: 17px; line-height: 1.8; margin-bottom: 16px; text-align: center; }
.su-lead2 b { color: var(--gold-lt); }
.su-dim { color: var(--muted); font-size: 12px; }
.su-note { color: var(--muted); font-size: 12px; margin-top: 10px; }
.su-warn {
  border: 1px solid var(--red-dk); background: rgba(143, 43, 48, .2); color: #ffc9cb;
  padding: 10px 14px; font-size: 13px; margin-bottom: 12px;
}
.su-wait { text-align: center; font-size: 17px; padding: 28px 0; color: var(--muted); animation: loc-pulse 1.6s infinite ease-in-out; }
.su-wait b { color: var(--gold-lt); }

/* ---- ①ロースター ---- */
.su-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.su-card {
  background: linear-gradient(180deg, rgba(12, 33, 65, .92), rgba(4, 12, 24, .92));
  border: 1px solid var(--line); border-top: 3px solid var(--blue-dk); padding: 14px 16px 16px;
}
.su-card.red { border-top-color: var(--red-dk); }
.su-card.mine { box-shadow: 0 0 0 1px var(--gold) inset; }
.su-card.ready { border-top-color: var(--ok); }
.su-card-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.su-card-hd img { width: 32px; height: 32px; object-fit: contain; }
.su-card-hd .ph { width: 32px; height: 32px; border: 1px dashed var(--line); }
.su-card-hd .nm { font-family: 'Oswald'; font-size: 17px; font-weight: 700; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-card-hd .you { font-size: 10px; color: var(--gold); border: 1px solid var(--gold); padding: 1px 6px; }
.su-card-hd .st { font-family: 'Oswald'; font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.su-card.ready .su-card-hd .st { color: var(--ok); }
.su-lane { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(146, 167, 196, .12); }
.su-lane .ln { font-family: 'Oswald'; font-size: 11px; letter-spacing: 2px; color: var(--gold); width: 38px; }
.su-lane .nm { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-lane .pt { font-family: 'Oswald'; font-size: 11px; color: var(--muted); min-width: 62px; text-align: right; }
.su-sel {
  flex: 1; min-width: 0; background: rgba(4, 16, 31, .95); color: var(--text);
  border: 1px solid var(--blue-dk); padding: 5px 6px; font-size: 12px; font-family: inherit; outline: none;
}
.su-sel:focus { border-color: var(--gold); }
.su-budget { font-family: 'Oswald'; font-size: 12px; letter-spacing: 1px; margin-top: 10px; color: var(--muted); }
.su-budget b { color: var(--text); font-size: 14px; }
.su-budget .ok { color: var(--ok); margin-left: 6px; }
.su-budget .ov { color: #ff8a90; margin-left: 6px; }
.su-budget .unk { color: var(--muted); margin-left: 6px; }
.su-budget.over { color: #ff8a90; }
.su-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

.su-btn {
  font-family: 'Oswald'; font-size: 13px; letter-spacing: 2px; cursor: pointer; outline: none;
  padding: 9px 18px; background: rgba(12, 33, 65, .9); border: 1px solid var(--blue-dk); color: var(--text);
  transition: .12s;
}
.su-btn:hover { border-color: var(--gold); }
.su-btn:disabled { opacity: .5; cursor: default; }
.su-btn.go { background: linear-gradient(180deg, var(--gold), var(--gold-dk)); border-color: var(--gold); color: var(--navy-0); font-weight: 700; }
.su-btn.ghost { background: none; color: var(--muted); }
.su-btn.sm { font-size: 11px; padding: 7px 12px; }

/* ---- ②抽選 ---- */
.su-lot { text-align: center; padding: 10px 0 6px; }
.su-lot-hd { font-size: 20px; letter-spacing: 2px; margin-bottom: 6px; }
.su-lot-hd b { color: var(--gold-lt); }
.su-lot-note { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.su-lot-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 26px; padding: 26px 0 30px; }
.su-lot-vs { font-family: 'Oswald'; font-size: 22px; color: var(--gold); letter-spacing: 3px; }
.su-lot-team {
  width: 260px; padding: 18px 12px; border: 1px solid rgba(146, 167, 196, .25);
  background: rgba(4, 12, 24, .7); transition: .12s; opacity: .5;
}
.su-lot-team img { height: 64px; object-fit: contain; display: block; margin: 0 auto 10px; }
.su-lot-team .ph { display: block; height: 64px; margin-bottom: 10px; }
.su-lot-team .nm { font-family: 'Oswald'; font-size: 18px; font-weight: 700; }
.su-lot-team.lit {
  opacity: 1; border-color: var(--gold); background: rgba(224, 180, 76, .16);
  box-shadow: 0 0 40px rgba(224, 180, 76, .35); transform: scale(1.05);
}
.su-lot-ring {
  position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border: 2px solid rgba(224, 180, 76, .25); border-radius: 50%; pointer-events: none;
  animation: su-ring 1.6s infinite ease-out;
}
@keyframes su-ring { from { transform: scale(.6); opacity: .55; } to { transform: scale(1.15); opacity: 0; } }
.su-lot-bar { height: 4px; background: rgba(146, 167, 196, .18); width: min(560px, 80%); margin: 0 auto 12px; }
.su-lot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--gold)); }

/* ---- 選ばれたチームの発表 ---- */
.su-splash { text-align: center; padding: 20px 0 10px; }
.su-splash-why { font-family: 'Oswald'; font-size: 14px; letter-spacing: 6px; color: var(--muted); animation: su-in .4s ease-out; }
.su-splash-team {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0 8px;
  animation: su-pop .55s cubic-bezier(.2, 1.5, .4, 1) both;
}
.su-splash-team img { height: 92px; object-fit: contain; }
.su-splash-team span {
  font-family: 'Oswald'; font-size: 52px; font-weight: 900; color: var(--gold-lt);
  text-shadow: 0 0 40px rgba(224, 180, 76, .6); letter-spacing: 2px;
}
@keyframes su-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.su-splash-msg { font-family: 'Oswald'; font-size: 24px; letter-spacing: 8px; color: var(--text); }
.su-splash-sub { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ---- ③権利 / ④行使 ---- */
.su-pick2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.su-big {
  display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center;
  padding: 26px 18px; cursor: pointer; outline: none; text-align: center; transition: .12s;
  background: linear-gradient(180deg, rgba(12, 33, 65, .95), rgba(4, 12, 24, .95));
  border: 1px solid var(--blue-dk); color: var(--text);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.su-big:hover { border-color: var(--gold); background: rgba(224, 180, 76, .14); transform: translateY(-2px); }
.su-big:disabled { opacity: .5; cursor: default; transform: none; }
.su-big .hd { font-family: 'Oswald'; font-size: 22px; font-weight: 900; letter-spacing: 3px; color: var(--gold-lt); }
.su-big .ds { font-size: 13px; }
.su-big .ft { font-size: 11px; color: var(--muted); }
.su-big.sm { padding: 16px 14px; }
.su-big.sm .hd { font-size: 18px; }
.su-big.blue { border-color: var(--blue-dk); }
.su-big.blue .hd { color: var(--blue); }
.su-big.red { border-color: var(--red-dk); }
.su-big.red .hd { color: var(--red); }

.su-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.su-box { border: 1px solid rgba(146, 167, 196, .22); background: rgba(4, 12, 24, .7); padding: 14px 16px 16px; opacity: .72; }
.su-box.act { opacity: 1; border-color: var(--gold); box-shadow: 0 0 26px rgba(224, 180, 76, .18); }
.su-box.set { opacity: 1; border-color: var(--ok); }
.bx-hd { font-family: 'Oswald'; font-size: 13px; letter-spacing: 2px; color: var(--muted); margin-bottom: 12px; }
.bx-hd b { color: var(--text); font-size: 15px; }
.bx-msg { font-size: 14px; margin-bottom: 12px; }
.bx-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bx-done { font-family: 'Oswald'; font-size: 26px; font-weight: 900; color: var(--ok); letter-spacing: 2px; padding: 12px 0; }
.bx-done.blue { color: var(--blue); }
.bx-done.red { color: var(--red); }
.bx-wait { color: var(--muted); font-size: 13px; padding: 16px 0; animation: loc-pulse 1.6s infinite ease-in-out; }

.su-rec { width: min(620px, 100%); margin: 0 auto 18px; border-collapse: collapse; font-size: 13px; }
.su-rec th { font-family: 'Oswald'; font-size: 11px; letter-spacing: 1px; color: var(--muted); text-align: left; padding: 4px 8px; }
.su-rec td { padding: 6px 8px; border-top: 1px solid rgba(146, 167, 196, .15); }
.su-rec tr.win td { color: var(--gold-lt); background: rgba(224, 180, 76, .08); }

/* ---- ⑤決定の発表 ---- */
.su-reveal { text-align: center; padding: 6px 0; }
.rv-hd { font-family: 'Oswald'; font-size: 18px; letter-spacing: 4px; color: var(--gold-lt); margin-bottom: 22px; }
.rv-rows { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 20px; }
/* ★2026-08-28: 決定の発表は **サイド / ピック順の2列**（縦一列は読み取りにくい） */
.rv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-bottom: 20px; align-items: start; }
.rv-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rv-cap {
  font-family: 'Oswald'; font-size: 12px; letter-spacing: 4px; color: var(--muted);
  text-align: left; padding-bottom: 4px; border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .rv-cols { grid-template-columns: 1fr; } }
.rv-row {
  display: flex; align-items: center; gap: 16px; width: min(680px, 92%); padding: 12px 20px;
  border: 1px solid var(--line); background: rgba(4, 12, 24, .8);
  animation: su-slide .5s cubic-bezier(.2, .9, .3, 1) both; animation-delay: var(--d, 0s);
}
@keyframes su-slide { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.rv-row img { height: 40px; object-fit: contain; }
.rv-row .tag { font-family: 'Oswald'; font-size: 12px; letter-spacing: 3px; color: var(--muted); width: 116px; flex: 0 0 auto; text-align: left; }
.rv-cols .rv-row .tag { width: 100px; letter-spacing: 2px; }
.rv-cols .rv-row .nm { font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-row .nm { font-family: 'Oswald'; font-size: 26px; font-weight: 700; flex: 1; text-align: left; }
.rv-row.blue { border-left: 5px solid var(--blue); }
.rv-row.blue .tag { color: var(--blue); }
.rv-row.red { border-left: 5px solid var(--red); }
.rv-row.red .tag { color: var(--red); }
.rv-row.fp { border-left: 5px solid var(--gold); box-shadow: 0 0 30px rgba(224, 180, 76, .2); }
.rv-row.fp .tag, .rv-row.fp .nm { color: var(--gold-lt); }
.rv-row.lp { opacity: .75; }

/* 配信ビューだけ大きめに（1920x1080 で読める字に） */
.su-role-view .su-title { font-size: 26px; }
.su-role-view .su-lead2 { font-size: 21px; }
.su-role-view .su-lot-hd { font-size: 26px; }
.su-role-view .rv-row .nm { font-size: 32px; }
.su-role-view .su-splash-team span { font-size: 64px; }

@media (max-width: 900px) {
  .su-cards, .su-pick2, .su-boxes, .bx-btns { grid-template-columns: 1fr; }
  .su-lot-stage { flex-direction: column; gap: 12px; }
  .su-lot-team { width: 100%; }
}

/* 運営パネルだけ「畳む」ことができる（進行は止まらない） */
.su-min {
  font-family: 'Oswald'; font-size: 11px; letter-spacing: 1px; cursor: pointer; outline: none;
  background: none; border: 1px solid rgba(146, 167, 196, .3); color: var(--muted); padding: 5px 10px;
}
.su-min:hover { border-color: var(--gold); color: var(--gold-lt); }
.su-mini { display: none; }
.su-root.mini { display: none; }
.su-root.on.mini { display: block; pointer-events: none; }
.su-root.on.mini .su-scrim, .su-root.on.mini .su-wrap { display: none; }
.su-root.on.mini .su-mini {
  display: flex; align-items: center; gap: 10px; pointer-events: auto;
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 26001;
  background: rgba(4, 12, 24, .96); border: 1px solid var(--gold); padding: 8px 14px;
  font-family: 'Oswald'; font-size: 12px; letter-spacing: 1px;
}
.su-mini .mi-t { color: var(--gold-lt); }
.su-mini .mi-s { color: var(--muted); }
/* 選手画面の WAITING に出す案内（2026-08-27 ユーザー指示） */
.w-guide { width: 100%; text-align: center; margin-bottom: 1.6vh; color: var(--gold-lt); font-size: 1.8vh; letter-spacing: 1px; }
.w-actions { flex-wrap: wrap; }
