/**
 * assets/css/exhibition.css
 * エキシビション・ランクマッチ（exhibition.php・exhibition_admin.php・選手詳細の EXHIBITION）。2026-11-23 追加（続き184）。
 * ・ランクのエンブレム（.exh-emblem）：六角形の宝石。色はランクごと（.exh-r-*）に --c0（暗）・--c1（中）・--c2（明）で決める。
 *   中の文字は段階（III・II・I）か、マスター以上は頭文字。大きさは .exh-emblem-sm／md／lg。
 * ・2チームの表示（.exh-teams）・自分のランクのカード（.exh-rankcard）・ランキング（.exh-board）。
 * 動かすのは transform・opacity・background-position だけ（重くしないため）。
 */

/* ---------- ランクの色 ---------- */
.exh-r-bronze   { --c0: #4a2a12; --c1: #a8683a; --c2: #f0b27a; --glow: rgba(205, 127, 50, .45); }
.exh-r-silver   { --c0: #3f4650; --c1: #9aa4b0; --c2: #f1f5f9; --glow: rgba(203, 213, 225, .45); }
.exh-r-gold     { --c0: #5c4005; --c1: #d4a017; --c2: #fff1a8; --glow: rgba(250, 204, 21, .5); }
.exh-r-platinum { --c0: #0b4a45; --c1: #1fb5a5; --c2: #b8fff1; --glow: rgba(45, 212, 191, .5); }
.exh-r-diamond  { --c0: #142f7a; --c1: #3b82f6; --c2: #c7e3ff; --glow: rgba(96, 165, 250, .55); }
.exh-r-master   { --c0: #35115f; --c1: #8b45e8; --c2: #e9d5ff; --glow: rgba(168, 85, 247, .55); }
.exh-r-elite    { --c0: #5a0620; --c1: #e11d48; --c2: #ffc2d1; --glow: rgba(244, 63, 94, .55); }
.exh-r-legend   { --c0: #5a1a00; --c1: #f59e0b; --c2: #fff7c2; --glow: rgba(251, 191, 36, .7); }
/* プレースメント中（ランクを隠す。エンブレムは「?」。続き210） */
.exh-r-unranked { --c0: #27272a; --c1: #71717a; --c2: #e4e4e7; --glow: rgba(161, 161, 170, .35); }

/* ---------- エンブレム ---------- */
.exh-emblem { --s: 22px; position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: var(--s); height: calc(var(--s) * 1.12); flex-shrink: 0; vertical-align: middle; }
.exh-emblem-md { --s: 40px; }
.exh-emblem-lg { --s: 104px; filter: drop-shadow(0 0 18px var(--glow)); }
.exh-emblem-gem, .exh-emblem-gem::before, .exh-emblem-gem::after {
    position: absolute; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.exh-emblem-gem { inset: 0; background: linear-gradient(165deg, var(--c2) 0%, var(--c1) 45%, var(--c0) 100%); }
/* 内側の面（少し小さい六角形）で厚みを出す */
.exh-emblem-gem::before { content: ''; inset: 14%; background: linear-gradient(200deg, var(--c1) 0%, var(--c0) 70%); }
/* 上半分の光 */
.exh-emblem-gem::after { content: ''; inset: 14%; background: linear-gradient(180deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, 0) 48%); }
.exh-emblem-txt { position: relative; font-family: 'Oswald', 'Noto Sans JP', sans-serif; font-weight: 700; line-height: 1;
    font-size: calc(var(--s) * .34); color: #fff; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.exh-emblem-sm .exh-emblem-txt { font-size: 9px; }
/* レジェンド：光が流れる */
.exh-r-legend .exh-emblem-gem { background: linear-gradient(120deg, var(--c0) 0%, var(--c1) 30%, var(--c2) 45%, var(--c1) 60%, #b91c1c 100%);
    background-size: 250% 100%; animation: exh-shine 3.5s linear infinite; }
@keyframes exh-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .exh-r-legend .exh-emblem-gem { animation: none; } }

/* ---------- 自分のランクのカード ---------- */
.exh-rankcard { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(127, 29, 29, .6);
    background: radial-gradient(120% 140% at 0% 0%, var(--glow, rgba(220, 38, 38, .25)) 0%, rgba(24, 24, 27, .92) 55%); padding: 20px; }
.exh-rankcard-main { display: flex; align-items: center; gap: 20px; }
.exh-rank-label { font-family: 'Oswald', 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: .06em; color: #fafafa; }
.exh-rank-rp { font-family: 'Oswald', sans-serif; font-size: 15px; color: #d4d4d8; letter-spacing: .08em; }
.exh-bar { height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(63, 63, 70, .8); overflow: hidden; }
.exh-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--c1, #b91c1c), var(--c2, #f87171)); border-radius: 999px; }
.exh-recstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.exh-recstats > div { text-align: center; background: rgba(0, 0, 0, .35); border: 1px solid rgba(39, 39, 42, 1); border-radius: 10px; padding: 8px 4px; }
.exh-recstats b { display: block; font-family: 'Oswald', sans-serif; font-size: 20px; line-height: 1.1; color: #fafafa; }
.exh-recstats span { font-size: 10px; color: #a1a1aa; letter-spacing: .08em; }
@media (max-width: 639px) {
    .exh-rankcard { padding: 16px; }
    .exh-rankcard-main { gap: 14px; }
    .exh-emblem-lg { --s: 76px; }
    .exh-rank-label { font-size: 22px; }
}

/* ---------- 2チーム ---------- */
.exh-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 639px) { .exh-teams { grid-template-columns: minmax(0, 1fr); } }
.exh-team { border-radius: 12px; border: 1px solid rgba(39, 39, 42, 1); background: rgba(0, 0, 0, .35); padding: 10px 12px; min-width: 0; }
.exh-team-a { box-shadow: inset 3px 0 0 #dc2626; }
.exh-team-b { box-shadow: inset 3px 0 0 #3b82f6; }
.exh-team.is-win { border-color: rgba(245, 158, 11, .8); background: rgba(120, 53, 15, .22); }
.exh-team-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #e4e4e7; margin-bottom: 6px; }
.exh-team-score { font-size: 22px; line-height: 1; color: #fafafa; }
.exh-team.is-win .exh-team-score { color: #fcd34d; }
.exh-team-rp { margin-left: auto; font-size: 10px; color: #a1a1aa; }
.exh-team ul { display: flex; flex-direction: column; gap: 4px; }
.exh-team li { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.exh-ava { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; border: 1px solid rgba(63, 63, 70, 1); flex-shrink: 0; }
.exh-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e4e4e7; }
.exh-name:hover { color: #f87171; }
.exh-mvp { flex-shrink: 0; font-size: 9px; font-weight: 700; color: #1c1917; background: #fbbf24; border-radius: 4px; padding: 0 4px; }
.exh-delta { margin-left: auto; flex-shrink: 0; font-family: 'Oswald', sans-serif; font-size: 12px; color: #a1a1aa; }
.exh-delta.is-up { color: #4ade80; }
.exh-delta.is-down { color: #f87171; }

/* ---------- ランキング ---------- */
.exh-board { width: 100%; font-size: 13px; }
.exh-board th { font-size: 10px; font-weight: 500; color: #a1a1aa; letter-spacing: .08em; padding: 8px 6px; text-align: left; white-space: nowrap; }
.exh-board td { padding: 7px 6px; border-top: 1px solid rgba(39, 39, 42, 1); white-space: nowrap; }
.exh-board .num { text-align: right; font-family: 'Oswald', sans-serif; }
.exh-board tr.is-me td { background: rgba(127, 29, 29, .22); }
.exh-board-pos { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 999px;
    font-size: 11px; font-weight: 700; color: #a1a1aa; background: rgba(39, 39, 42, .8); }
.exh-board tr:nth-child(1) .exh-board-pos { color: #1c1917; background: linear-gradient(135deg, #fde68a, #d97706); }
.exh-board tr:nth-child(2) .exh-board-pos { color: #18181b; background: linear-gradient(135deg, #f4f4f5, #a1a1aa); }
.exh-board tr:nth-child(3) .exh-board-pos { color: #1c1917; background: linear-gradient(135deg, #fdba74, #9a3412); }

/* ---------- ランクの一覧（説明） ---------- */
.exh-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .exh-ladder { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.exh-ladder > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(39, 39, 42, 1); text-align: center; }
.exh-ladder b { font-size: 11px; color: #e4e4e7; }
.exh-ladder span { font-size: 10px; color: #a1a1aa; font-family: 'Oswald', sans-serif; }

/* ---------- 待機中の表示（.exh-pulse）は、TOP の入口でも使うので assets/css/style.css に移した（続き190） ---------- */

/* ---------- 選手一覧のカードの「RANKED」の帯（exh_card_strip_html()。続き187） ----------
   エンブレム｜RANKED＋ランク名｜RP｜勝敗・MVP の1行。左端の線と背景のにじみはランクの色（--c1・--glow） */
.exh-strip { display: flex; align-items: center; gap: 8px; margin: 0 0.9rem 0.6rem; padding: 6px 10px 6px 8px; min-width: 0;
    border-radius: 0.5rem; border: 1px solid rgba(63, 63, 70, .7); border-left: 3px solid var(--c1);
    background: linear-gradient(90deg, var(--glow) 0%, rgba(0, 0, 0, .45) 55%); transition: filter .15s ease; }
.exh-strip:hover { filter: brightness(1.2); }
.exh-strip .exh-emblem { --s: 28px; }
.exh-strip .exh-emblem-txt { font-size: 10px; }
.exh-strip-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
.exh-strip-kicker { font-family: 'Oswald', sans-serif; font-size: 9px; letter-spacing: .18em; color: var(--c2); opacity: .85; }
.exh-strip-rank { font-weight: 800; font-size: 13px; color: #fafafa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exh-strip-rp { display: flex; align-items: baseline; gap: 2px; flex-shrink: 0; font-family: 'Oswald', sans-serif; }
.exh-strip-rp b { font-size: 16px; font-weight: 700; color: #fafafa; }
.exh-strip-rp i { font-style: normal; font-size: 9px; color: #a1a1aa; letter-spacing: .08em; }
.exh-strip-rec { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; font-size: 10px; color: #d4d4d8; line-height: 1.3; white-space: nowrap; }
.exh-strip-mvp { font-size: 9px; font-weight: 700; color: #1c1917; background: #fbbf24; border-radius: 3px; padding: 0 4px; }

/* ---------- 一覧の表の中の小さなランク（チーム管理の FA 一覧など。続き187） ---------- */
.exh-inline { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.exh-inline-label { font-size: 11px; color: #e4e4e7; }
.exh-inline-rp { font-family: 'Oswald', sans-serif; font-size: 11px; color: #a1a1aa; }

/* ---------- OBS の画面だけの色の直し（続き187） ----------
   OBS では緑（#00FF00）をクロマキーで抜くことがあるため、緑に近い色は透けて穴が開く（obs-roster-cards.css の注意書き・仕様書の続き142）。
   プラチナの青緑（#1fb5a5 など）は緑からの距離が 0.41〜0.47 と近いので、OBS の画面（.exh-obs の中）だけ青白い白金の色にする（距離 0.55 以上）。 */
.exh-obs .exh-r-platinum { --c0: #3b3f6b; --c1: #8f9bd6; --c2: #eef0ff; --glow: rgba(165, 180, 252, .5); }

/* ---------- GK の印（チーム分け・待機の一覧。GK はできる限り別々のチームに分ける。続き188） ---------- */
/* 前のシーズンの最終ランク（exh_season_lib.php の exh_season_last_html()。続き212） */
.exh-lastseason { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 10px; border-radius: 8px;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.exh-lastseason-k { color: #a1a1aa; }
.exh-lastseason-v { color: #f4f4f5; font-weight: 700; }
.exh-guard { flex-shrink: 0; display: inline-flex; color: #fcd34d; }
.exh-guard .msi { font-size: 14px; font-variation-settings: 'FILL' 1; }
.exh-gk { flex-shrink: 0; font-family: 'Oswald', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .06em; line-height: 1.4;
    color: #fcd34d; border: 1px solid rgba(245, 158, 11, .8); border-radius: 3px; padding: 0 3px; } /* MVP（塗り）と見分けられるよう枠だけ */

/* =====================================================================
   選手の画面の「今のあなたの状態」と手順の流れ（exhibition.php。続き190）
   システムに慣れていない人にも分かるよう、大きな文字・ボタン1つ・状態ごとの色にする。
   ===================================================================== */

/* ---- 手順の流れ（①参加する → ②待つ → ③試合をする → ④結果）。今の手順は .is-now、済んだ手順は .is-done ---- */
.exh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; margin-left: 0; padding: 0; counter-reset: none; }
.exh-step { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; min-width: 0;
    background: rgba(24, 24, 27, .85); border: 1px solid rgba(63, 63, 70, .7); color: #a1a1aa; }
.exh-step-no { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px;
    font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 15px; color: #d4d4d8; background: rgba(63, 63, 70, .9); }
.exh-step-no .msi { font-size: 18px; }
.exh-step-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.exh-step-text b { font-size: 14px; color: #e4e4e7; white-space: nowrap; }
.exh-step-text span { font-size: 10px; color: #71717a; }
.exh-step.is-done { border-color: rgba(34, 197, 94, .35); }
.exh-step.is-done .exh-step-no { background: #15803d; color: #fff; }
.exh-step.is-now { border-color: #ef4444; background: linear-gradient(135deg, rgba(127, 29, 29, .75), rgba(24, 24, 27, .9)); box-shadow: 0 0 0 1px rgba(239, 68, 68, .35), 0 8px 24px rgba(127, 29, 29, .35); }
.exh-step.is-now .exh-step-no { background: #ef4444; color: #fff; animation: exh-step-pop 1.8s ease-in-out infinite; }
.exh-step.is-now .exh-step-text b { color: #fff; }
.exh-step.is-now .exh-step-text span { color: #fecaca; }
@keyframes exh-step-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .exh-step.is-now .exh-step-no { animation: none; } }
/* 運営の画面の手順は、押すとその欄へ飛ぶリンク（exhibition_admin.php） */
.exh-step-link { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
@media (max-width: 639px) {
    .exh-step-link { flex-direction: column; gap: 4px; }
    .exh-step-link .exh-step-text b { white-space: normal; font-size: 11px; line-height: 1.3; }
    .exh-steps { gap: 4px; }
    .exh-step { flex-direction: column; text-align: center; gap: 4px; padding: 8px 4px; }
    .exh-step-text b { font-size: 12px; }
    .exh-step-text span { display: none; }
}

/* ---- 状態の大きな欄。状態ごとに左の線と背景のにじみの色を変える ---- */
.exh-status { position: relative; border-radius: 18px; padding: 24px; border: 1px solid rgba(63, 63, 70, .8); border-left-width: 6px;
    background: radial-gradient(120% 140% at 0% 0%, var(--st-glow, rgba(63, 63, 70, .25)) 0%, rgba(24, 24, 27, .94) 55%); }
.exh-status.is-ready, .exh-status.is-waiting { --st: #22c55e; --st-glow: rgba(34, 197, 94, .18); border-left-color: var(--st); }
.exh-status.is-matched { --st: #f59e0b; --st-glow: rgba(245, 158, 11, .22); border-left-color: var(--st); }
.exh-status.is-result { --st: #a855f7; --st-glow: rgba(168, 85, 247, .2); border-left-color: var(--st); }
.exh-status.is-closed, .exh-status.is-guest, .exh-status.is-blocked { --st: #71717a; border-left-color: var(--st); }
.exh-status-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--st, #a1a1aa); margin-bottom: 6px; }
.exh-status-kicker.is-alert { animation: exh-blink 1.4s ease-in-out infinite; }
@keyframes exh-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .exh-status-kicker.is-alert { animation: none; } }
.exh-status-title { font-weight: 900; font-size: 26px; line-height: 1.3; color: #fafafa; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.exh-status-em { color: #fde68a; }
.exh-status-sub { font-size: 14px; font-weight: 500; color: #a1a1aa; }
.exh-status-team { padding: 0 12px; border-radius: 8px; font-family: 'Oswald', sans-serif; letter-spacing: .06em; color: #fff; }
.exh-status-team.is-a { background: #b91c1c; }
.exh-status-team.is-b { background: #1d4ed8; }
.exh-status-meta { font-size: 14px; color: #d4d4d8; margin-bottom: 16px; }
.exh-status-meta b { font-family: 'Oswald', sans-serif; font-size: 18px; color: #fff; margin: 0 2px; }
.exh-status-text { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; color: #d4d4d8; line-height: 1.7; margin-top: 10px; }
.exh-status-text .msi { color: #4ade80; margin-top: 3px; }
.exh-status-note { margin-top: 12px; font-size: 13px; color: #e4e4e7; background: rgba(0, 0, 0, .4); border: 1px solid rgba(63, 63, 70, .8); border-radius: 10px; padding: 8px 12px; white-space: pre-line; }
.exh-status-count { font-family: 'Oswald', 'Noto Sans JP', sans-serif; font-size: 22px; font-weight: 700; color: #fde68a; margin-bottom: 4px; }
.exh-status-count:empty { display: none; }
.exh-status-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.exh-status-stats > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 6px; border-radius: 12px;
    background: rgba(0, 0, 0, .4); border: 1px solid rgba(63, 63, 70, .8); text-align: center; min-width: 0; }
.exh-status-stats b { font-family: 'Oswald', sans-serif; font-size: 30px; line-height: 1.1; color: #fff; }
.exh-status-stats b.is-up { color: #4ade80; }
.exh-status-stats b.is-down { color: #f87171; }
.exh-status-stats b.is-pt { color: #fcd34d; }
/* 数の下のラベル（エンブレムの中の span には当てない） */
.exh-status-stats > div > span:not(.exh-emblem) { font-size: 11px; color: #a1a1aa; }
.exh-status-stats > .exh-status-rank > span:not(.exh-emblem) { font-size: 13px; font-weight: 700; color: #fafafa; }
.exh-status-score { font-family: 'Oswald', sans-serif; font-size: 22px; color: #d4d4d8; }
.exh-outcome.is-win > span:first-child { color: #4ade80; }
.exh-outcome.is-loss > span:first-child { color: #f87171; }
.exh-rankup { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; border-radius: 10px; font-size: 14px;
    color: #fde68a; background: rgba(120, 53, 15, .45); border: 1px solid rgba(245, 158, 11, .6); }
.exh-rankup b { color: #fff; }

/* 大きなボタン（その状態でやることは、このボタン1つ）と、控えめなボタン */
.exh-big-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 420px; margin-top: 14px; padding: 18px 24px;
    border-radius: 14px; font-weight: 900; font-size: 20px; letter-spacing: .08em; color: #fff;
    background: linear-gradient(135deg, #dc2626, #7f1d1d); border: 1px solid #f87171; box-shadow: 0 10px 30px rgba(127, 29, 29, .5); transition: transform .12s ease, filter .12s ease; }
.exh-big-btn:hover { filter: brightness(1.12); }
.exh-big-btn:active { transform: scale(.98); }
.exh-big-btn.is-go { background: linear-gradient(135deg, #16a34a, #14532d); border-color: #4ade80; box-shadow: 0 10px 30px rgba(20, 83, 45, .55); }
.exh-big-btn .msi { font-size: 26px; }
/* サイト全体の「button は max-width: 100%」（style.css）より強くして、PC で横に伸びすぎないようにする */
.exh-status button.exh-big-btn, .exh-status a.exh-big-btn { max-width: 440px; }
.exh-big-btn.is-busy, .exh-sub-btn.is-busy { opacity: .6; pointer-events: none; }
.exh-sub-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 16px; border-radius: 10px; font-size: 13px; color: #d4d4d8;
    border: 1px solid rgba(82, 82, 91, .9); background: rgba(0, 0, 0, .35); transition: border-color .15s ease, color .15s ease; }
.exh-sub-btn:hover { border-color: #ef4444; color: #fca5a5; }

/* 試合が決まったときの「やること」と部屋の情報 */
.exh-todo { list-style: none; margin: 10px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.exh-todo li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #e4e4e7; line-height: 1.6; }
.exh-todo b { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px;
    font-family: 'Oswald', sans-serif; font-size: 13px; color: #1c1917; background: #f59e0b; margin-top: 1px; }
.exh-lobby-box { position: relative; margin-bottom: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, .55); border: 2px solid #f59e0b; }
.exh-lobby-box.is-wait { border-style: dashed; border-color: rgba(161, 161, 170, .5); }
.exh-lobby-label { font-size: 11px; letter-spacing: .12em; color: #fbbf24; margin-bottom: 4px; }
.exh-lobby-text { font-size: 20px; font-weight: 700; color: #fff; white-space: pre-line; overflow-wrap: anywhere; }
.exh-lobby-box .exh-sub-btn { margin-top: 10px; }

/* チームの中の「あなた」 */
.exh-team li.is-me { margin: 0 -6px; padding: 2px 6px; border-radius: 6px; background: rgba(245, 158, 11, .16); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .5); }
.exh-me { flex-shrink: 0; font-size: 9px; font-weight: 700; color: #1c1917; background: #fde68a; border-radius: 3px; padding: 0 4px; }

@media (max-width: 639px) {
    .exh-status { padding: 18px 16px; border-left-width: 5px; }
    .exh-status-title { font-size: 21px; }
    .exh-status-stats b { font-size: 24px; }
    .exh-big-btn { font-size: 18px; padding: 16px; }
    .exh-status button.exh-big-btn, .exh-status a.exh-big-btn { max-width: none; }
    .exh-lobby-text { font-size: 17px; }
}

/* =====================================================================
   スクアッド参加（パーティー。exhibition.php・exhibition_admin.php。続き193）
   ===================================================================== */
.exh-big-btn:disabled { opacity: .5; filter: grayscale(.6); cursor: not-allowed; box-shadow: none; }
.exh-squad-box { margin-top: 18px; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(96, 165, 250, .5); }
.exh-squad-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 800; font-size: 16px; color: #bfdbfe; }
.exh-squad-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.exh-squad-actions .exh-big-btn { margin-top: 0; }
.exh-status .exh-squad-actions button.exh-big-btn { max-width: 280px; }
.exh-code-form { display: flex; align-items: center; gap: 8px; }
.exh-code-form .exh-sub-btn { margin-top: 0; }
.exh-code-input { width: 200px; padding: 10px 12px; border-radius: 10px; background: #000; border: 1px solid rgba(82, 82, 91, .9); color: #fafafa;
    font-family: 'Oswald', monospace; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; outline: none; }
.exh-code-input:focus { border-color: #60a5fa; }
.exh-code-input::placeholder { letter-spacing: normal; font-family: 'Noto Sans JP', sans-serif; font-size: 14px; color: #71717a; }
.exh-status.is-party { --st: #60a5fa; --st-glow: rgba(96, 165, 250, .2); border-left-color: var(--st); }
.exh-party-code { font-family: 'Oswald', monospace; font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: .22em; color: #fff; }
.exh-party-list { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.exh-party-list li { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 10px; border-radius: 10px; font-size: 13px;
    background: rgba(0, 0, 0, .4); border: 1px solid rgba(63, 63, 70, .8); }
.exh-party-list li.is-empty { justify-content: center; border-style: dashed; color: #71717a; font-size: 12px; }
.exh-party-leader { flex-shrink: 0; font-size: 9px; font-weight: 700; color: #1e3a8a; background: #bfdbfe; border-radius: 3px; padding: 0 4px; }
@media (max-width: 639px) {
    .exh-status .exh-squad-actions button.exh-big-btn { max-width: none; }
    .exh-code-form { width: 100%; }
    .exh-code-input { flex: 1; width: auto; min-width: 0; }
    .exh-party-code { font-size: 32px; }
}

/* =====================================================================
   運営の画面の結果の入力（exhibition_admin.php の exh_admin_result_form()。手順 ①〜⑤ に分けて見せる。続き193）
   済んだ手順は .is-done（番号が緑になり ✓ が出る）
   ===================================================================== */
.exh-rstep { position: relative; margin-bottom: 10px; padding: 12px 14px 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(63, 63, 70, .8); }
.exh-rstep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 10px; }
.exh-rstep-head b { font-size: 14px; color: #fafafa; }
.exh-rstep-no { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px;
    font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 14px; color: #fff; background: #b91c1c; }
.exh-rstep-hint { font-size: 11px; color: #a1a1aa; flex-basis: 100%; padding-left: 36px; margin-top: -2px; }
.exh-rstep-check { display: none; margin-left: auto; color: #4ade80; }
.exh-rstep.is-done { border-color: rgba(34, 197, 94, .45); }
.exh-rstep.is-done .exh-rstep-no { background: #15803d; }
.exh-rstep.is-done .exh-rstep-check { display: inline-flex; }
.exh-rstep[data-step="5"] { border-color: rgba(239, 68, 68, .5); background: rgba(127, 29, 29, .15); }
/* ③の表：選手｜G｜A｜P｜I｜S｜得点（tailwind.css に無い列の幅なので、ここで決める） */
.exh-rgrid { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(5, 52px) 72px; gap: 6px; align-items: center; }

/* ---------- タブ（exhibition.php。続き195） ----------
 * 参加／ランキング／試合／ランク表。スマホでも4つが1行に収まるよう、アイコンの下に短い名前を置く */
.exh-guide-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: #fecaca;
    border: 1px solid rgba(220, 38, 38, .55); background: rgba(69, 10, 10, .45); transition: border-color .15s, background .15s; }
.exh-guide-link:hover { border-color: #ef4444; background: rgba(127, 29, 29, .55); color: #fff; }
.exh-guide-link .msi { font-size: 18px; }
.exh-tabs { position: sticky; top: 64px; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 20px; padding: 4px;
    border-radius: 14px; border: 1px solid #27272a; background: rgba(9, 9, 11, .94); backdrop-filter: blur(8px); }
.exh-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; border-radius: 10px; font-size: 14px; font-weight: 700;
    color: #a1a1aa; transition: background .15s, color .15s; }
.exh-tab:hover { color: #fafafa; background: rgba(39, 39, 42, .8); }
.exh-tab.is-active { color: #fff; background: linear-gradient(135deg, #b91c1c, #7f1d1d); box-shadow: 0 6px 18px rgba(127, 29, 29, .45); }
.exh-tab:focus-visible { outline: 2px solid #f87171; outline-offset: 2px; }
.exh-tab .msi { font-size: 20px; }
.exh-tab-dot { position: absolute; top: 7px; right: 9px; width: 8px; height: 8px; border-radius: 999px; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
@media (max-width: 639px) {
    .exh-tabs { top: 58px; }
    .exh-tab { flex-direction: column; gap: 2px; padding: 8px 2px; font-size: 11px; }
    .exh-tab-dot { top: 5px; right: calc(50% - 20px); }
}
