/* ============================================================================
   Sports Coder 2 送出卓（S3）— 本物のアプリで足した物だけ。
   ワイヤー v1.3 の見た目は wire.css（css/ui.css の写し・手で直さない）がそのまま当たる。ここは:
   モニター（出力と同じ描き方を縮めて見せる）・サーバーとのつながり・ログイン・出力中の試合が無い時・起動中・オウンゴールの切り替え
   ============================================================================ */

/* ---- モニター: 1920×1080 の出力の層を 416×232 に縮めて見せる（描く解像度は 0.3 倍＝src/web/console/monitor.ts） ---- */
.monitor .scr .mbg { position: absolute; inset: 0; background: #000 center / cover no-repeat; }
.monitor .scr .mstage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; transform: scale(calc(416 / 1920)); pointer-events: none; }
.monitor .scr .mlab, .monitor .scr .mbar { z-index: 2; }
/* S4 直し③: 「モニター＝OBS に出る絵」の札を右上へ（左上はサッカーのスコアバグの場所・右上は両競技とも空いている） */
.monitor .scr .mlab { left: auto; right: 6px; }

/* ---- S4 直し①: PK の窓の説明文が下で切れていた（「マスを押すと直せる」が 15px の太字になって折り返していた） ---- */
.pkp .pkl { width: 150px; }
.pkp .pkl small b { font-size: inherit; font-weight: 800; color: #cfd4da; }

/* ---- S4 直し②: 表示物ボタンの小さな字と右下の札（押すと選ぶ・ON AIR あと○秒・モーションの後）が重なっていた ---- */
/* 小さな字を札の高さぶん上に寄せる（ボタンの高さは変えない・どのボタンも同じだけ寄せる＝出す／消すで字が動かない） */
.dbtn:not(.mini) .sub { margin-bottom: 12px; }
.dbtn .st { bottom: 3px; }

/* ---- S4: 今日の試合の並びの「＋ 試合を足す」「試合一覧 →」・準備の引き出しの閉じる ---- */
.todaybar > .btn.sm { height: 26px; }

/* ---- 上の帯: サーバーと切れている時 ---- */
.top .outst .lost { color: #ffb4a8; font-weight: 900; }

/* ---- 得点者を選ぶ画面の「オウンゴール」（S1 追補） ---- */
.chk.og { align-self: center; }
.chk.og.on { background: #5c2a12; border-color: #ff922b; color: #ffe8cc; }

/* ---- 起動中・出力中の試合が無い時 ---- */
.booting { padding: 40px; color: var(--dim); font-size: 15px; }
#app .wrap { width: 100%; }

/* ---- ログイン ---- */
.wrap.login { max-width: 560px; }
.wrap.login .box { display: flex; flex-direction: column; gap: 12px; }
.wrap.login input[type=password] { font-size: 16px; padding: 10px 12px; }
.wrap.login .btn.go { align-self: flex-start; padding: 9px 22px; font-size: 14px; }
#loginError { margin-bottom: 12px; }

/* ---- S6-C: ログイン（メール＋パスワード／制御トークン）・ユーザー管理・帯に出る名前 ---- */
.wrap.login input[type=email], .wrap.login input[type=text] { font-size: 16px; padding: 10px 12px; }
.wrap.login .sec { margin-top: 6px; }
/* S7 点検 P2-6: 「制御トークン」がリンクと同じ見た目で並んでいた（押せないのに押せそう）→ 区切って右端に小さく・押せない印 */
.whoName { color: var(--dim2); font-size: 11px; font-weight: 700; padding: 0 4px 0 10px; margin-left: 6px; white-space: nowrap; cursor: default; border-left: 1px solid var(--line); }
.top nav .whoName { display: flex; align-items: center; }

/* ---- S7 点検 P2-4: 13px の見出しが weight 900 で漢字が潰れていた（wire.css は写し＝ここで上書き） ---- */
.sec { font-weight: 700; }

/* ============================================================================
   S7 点検 P0-6 / P1-4: 上の帯の［⋯］（毎日は使わない道をしまう）。
   送出卓（.top）は本番中に1クリックで卓から出られないように、試合一覧・準備・記録・チーム・ユーザー・ログアウトを
   ここへ畳む。試合の管理の画面（.pgtop）はモード選択・D200・ユーザー・ログアウトだけ。
   ============================================================================ */
.navmore { position: relative; display: flex; align-items: center; }
.navmore > a { font-weight: 900; letter-spacing: .08em; }
.navpop { position: absolute; right: 0; top: 100%; z-index: 200; min-width: 230px; background: #20252c; border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.navpop .mh { padding: 6px 9px 8px; font-size: 11.5px; font-weight: 800; color: var(--dim); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
/* ★ .top nav a / .pgtop nav a（帯の中の小さな字）に勝てる強さで書く */
.pgtop .navpop a, .top .navpop a { display: block; align-items: flex-start; padding: 8px 10px; border-radius: 5px; font-size: 13px; font-weight: 700; color: #e8eaed; text-decoration: none; border: 0; white-space: nowrap; }
.pgtop .navpop a small, .top .navpop a small { display: block; font-size: 10.5px; color: var(--dim); font-weight: 600; }
.pgtop .navpop a:hover, .top .navpop a:hover { background: #2c333c; color: #fff; }

/* ============================================================================
   S8: 今日の試合のメニューの「出力を止める」（出力中の試合だけに出る）。
   押すと OBS の画が全部消えるので、ほかの道（準備・記録）と見分けが付くように赤みを付ける。
   ============================================================================ */
.menu button.dgr { color: #f3aaa4; }
.menu button.dgr:hover { background: #3a2c2c; }
