.live-score-card{
  grid-column:1/-1;
  overflow:hidden;
  padding:0!important;
  border:1px solid rgba(199,154,59,.72)!important;
  background:#071426!important;
  color:#fff;
}
.live-score-idle{padding:18px}
.live-score-idle-head,.live-score-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.live-score-kicker{margin-bottom:5px;color:#e2bd67;font-size:12px;font-weight:900;letter-spacing:.2em}
.live-score-card h2{margin:0;color:#fff;font-size:27px;line-height:1.15}
.live-score-idle p{margin:8px 0 0;color:#cad1dc;font-size:13px;font-weight:700;line-height:1.5}
.live-score-idle-actions{display:flex;gap:8px;margin-top:12px}
.live-score-button{min-height:48px;padding:11px 18px;border:1px solid #c79a3b;border-radius:10px;background:transparent;color:#f2cd76;font:inherit;font-size:14px;font-weight:900;cursor:pointer}
.live-score-button.primary{background:linear-gradient(135deg,#c6922f,#e2bd67);color:#071426}
.live-score-button.subdued{border-color:#7f8997;background:#26384c;color:#fff}
.live-score-card:not(.live-score-view-mode) #liveScoreFinish{
  border:1px solid #c79a3b!important;
  background:transparent!important;
  color:#f2cd76!important;
  box-shadow:none!important;
}
.live-score-card:not(.live-score-view-mode) #liveScoreFinish:active{
  transform:translateY(1px);
  background:rgba(199,154,59,.10)!important;
}
.live-score-button.danger{border-color:#b76464;color:#ffc4c4}
.live-score-button.back{border-color:#66758a;background:transparent;color:#d4dae3}
.live-score-idle-actions{margin-top:12px}
.live-score-idle-actions .live-score-button{flex:1;min-width:0;min-height:40px;padding:7px 11px;font-size:13px}
.live-score-restore-wrap{flex:0 0 auto;padding:0}
.live-score-restore-wrap .live-score-button{width:auto;min-height:34px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.02);font-size:11px;white-space:nowrap}
.live-score-editor{padding:18px}
.live-score-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.live-score-badge{padding:7px 10px;border:1px solid #66758a;border-radius:999px;color:#d4dae3;font-size:11px;font-weight:900;white-space:nowrap}
.live-score-badge.live{border-color:#c79a3b;color:#fff}.live-score-badge.live::before{content:'';display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#ff4a4a;box-shadow:0 0 0 4px rgba(255,74,74,.14)}
.live-score-badge.is-visible{border-color:#c79a3b;background:#c79a3b;color:#071426}
.live-score-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.live-score-field{display:grid;min-width:0;gap:5px;color:#fff;font-size:12px;font-weight:900}
.live-score-field.wide{grid-column:1/-1}
.live-score-field input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:42px;padding:0 11px;border:1px solid #c6ccd4;border-radius:8px;background:#fff;color:#071426;font:inherit;font-size:14px;font-weight:800}
#liveScoreStartTime{ text-align:left!important; -webkit-appearance:none; appearance:none; }
#liveScoreStartTime::-webkit-date-and-time-value{ text-align:left!important; }.live-score-field select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:42px;padding:0 34px 0 11px;border:1px solid #c6ccd4;border-radius:8px;background:#fff;color:#071426;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.live-score-team-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(190px,1.15fr);gap:10px;margin-top:10px}
.live-score-order{display:grid;gap:6px}.live-score-order>span{font-size:12px;font-weight:900}
.live-score-segments{display:grid;grid-template-columns:1fr 1fr;height:42px;border:1px solid #8390a0;border-radius:8px;overflow:hidden}
.live-score-segments button{border:0;background:transparent;color:#fff;font:inherit;font-size:14px;font-weight:900;cursor:pointer}.live-score-segments button+button{border-left:1px solid #8390a0}.live-score-segments button.selected{background:#d6a43b;color:#071426}
.live-score-board{margin-top:14px;border:2px solid #8797ab;border-radius:10px;overflow:hidden}
.live-score-board-head,.live-score-row{display:grid;grid-template-columns:minmax(92px,1.5fr) repeat(7,minmax(31px,.52fr)) minmax(36px,.58fr) minmax(40px,.62fr);align-items:stretch}
.live-score-board-head span{display:grid;place-items:center;min-height:34px;border-left:1px solid #8797ab;color:#e9ca83;font-size:12px;font-weight:900}.live-score-board-head span:first-child{border-left:0}
.live-score-row{min-height:40px;border-top:1px solid #8797ab}.live-score-row>*{border-left:1px solid #7d8794}.live-score-row>*:first-child{border-left:0}
.live-score-team{display:flex;align-items:center;padding:0 9px;overflow:hidden;color:#fff;font-size:13px;white-space:nowrap;text-overflow:ellipsis}
.live-score-number{width:100%;min-width:0;height:40px;min-height:40px;box-sizing:border-box;padding:0;border:0!important;border-left:1px solid #7d8794!important;background:#f7f8fa;color:#071426;font:inherit;font-size:16px;font-weight:900;text-align:center;border-radius:0;-moz-appearance:textfield}.live-score-number.is-selected{outline:3px solid #d6a43b!important;outline-offset:-3px;position:relative;z-index:2}.live-score-number::-webkit-inner-spin-button,.live-score-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.live-score-tb-total,.live-score-total{display:grid;place-items:center;background:rgba(199,154,59,.11);color:#f1d28d;font-size:15px}.live-score-total{background:rgba(199,154,59,.2);font-size:20px}
.live-score-tb-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:11px}.live-score-tb-actions .live-score-button{min-height:42px}
.live-score-tb-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:8px}
.live-score-tb-block{padding:8px 10px;border:1px solid #596b81;border-radius:8px;background:rgba(255,255,255,.04)}.live-score-tb-block>strong{display:block;margin-bottom:5px;color:#e2bd67;font-size:12px}.live-score-tb-block label{display:grid;grid-template-columns:minmax(0,1fr) 46px;align-items:center;gap:7px;margin-top:4px;color:#fff;font-size:12px;font-weight:800}.live-score-tb-block .live-score-number{height:32px;border-radius:6px}
.live-score-publish{display:grid;gap:8px;margin-top:12px}.live-score-publish>.live-score-button{width:100%}.live-score-publish>.primary{font-size:15px}.live-score-status{display:flex;justify-content:space-between;gap:10px;margin:0 2px;color:#bac3cf;font-size:11px;font-weight:700}.live-score-status time{flex:0 0 auto}
.live-score-status[hidden]{display:none}
.live-score-card.is-saving{opacity:.72;pointer-events:none}
.live-score-card.is-replay .live-score-field input:disabled,
.live-score-card.is-replay .live-score-number:disabled,
.live-score-card.is-replay .live-score-segments button:disabled{opacity:1;cursor:default;-webkit-text-fill-color:currentColor}
@media(max-width:700px){
  .live-score-idle{padding:12px 10px}.live-score-editor{padding:14px 10px}.live-score-card h2{font-size:21px}.live-score-kicker{margin-bottom:2px;font-size:10px}.live-score-idle p{margin-top:6px;font-size:12px;line-height:1.45}.live-score-idle-actions{gap:6px;margin-top:9px}.live-score-idle-actions .live-score-button{min-height:38px;padding:7px 6px;font-size:11px;white-space:nowrap}.live-score-restore-wrap{padding:0}.live-score-restore-wrap .live-score-button{min-height:32px;padding:5px 8px;font-size:10px}
  .live-score-fields{grid-template-columns:112px minmax(0,1fr);gap:7px;margin-top:11px}.live-score-field{gap:4px}.live-score-field.wide{grid-column:1/-1}#liveScoreStartTime{width:112px!important;max-width:112px!important}.live-score-team-settings{grid-template-columns:1fr 1fr 1fr;gap:7px;margin-top:8px}.live-score-order{grid-column:1/-1}
  .live-score-field input,.live-score-segments{height:38px}.live-score-segments button{font-size:13px}
  .live-score-board{margin-top:11px}
  .live-score-board-head,.live-score-row{grid-template-columns:minmax(62px,1.3fr) repeat(7,minmax(0,.55fr)) minmax(27px,.58fr) minmax(29px,.62fr)}
  .live-score-board-head span{min-height:29px;font-size:9px}.live-score-team{padding:0 4px;font-size:9px}.live-score-number{height:35px;font-size:13px}.live-score-tb-total{font-size:12px}.live-score-total{font-size:15px}
  .live-score-tb-actions{grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-top:9px}.live-score-tb-actions .live-score-button{width:auto;min-height:39px;padding:8px 10px;font-size:12px}.live-score-tb-actions .danger{min-width:105px}
  .live-score-tb-list{margin-top:7px}.live-score-tb-block{padding:7px 9px}.live-score-tb-block>strong{margin-bottom:3px}.live-score-tb-block label{margin-top:3px}.live-score-tb-block .live-score-number{height:30px}
  .live-score-publish{gap:7px;margin-top:10px}.live-score-publish>.live-score-button{min-height:41px;padding:8px 12px}.live-score-status{display:grid;gap:2px}.live-score-field input,.live-score-field select{font-size:13px}
}

/* FINAL 2026-09-18: team names are intentionally small and identical; no dynamic resizing. */
.live-score-row .live-score-team{font-size:10px!important;line-height:1.15!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;min-width:0!important;width:100%!important;box-sizing:border-box!important;padding:0 4px!important;font-weight:900!important;}
#liveScoreStartTime{text-align:left!important;-webkit-appearance:none!important;appearance:none!important;}
#liveScoreStartTime::-webkit-date-and-time-value{text-align:left!important;}

/* FINAL: 現在回は下段の得点セルだけで示し、回番号セルには枠を付けない。 */
.live-score-board-head span { outline: none !important; box-shadow: none !important; }
.live-score-board-head span.live-score-current,
.live-score-board-head span.current,
.live-score-board-head span.active,
.live-score-board-head span.selected { outline: none !important; box-shadow: none !important; border: 0 !important; border-left: 1px solid #8797ab !important; }
.live-score-board-head span:first-child.live-score-current,
.live-score-board-head span:first-child.current,
.live-score-board-head span:first-child.active,
.live-score-board-head span:first-child.selected { border-left: 0 !important; }


/* 2026-09-18: 得点欄の上下行間に出る黒帯をなくし、選択中セルを金枠で固定表示 */
.live-score-row .live-score-number{
  height:100%!important;
  min-height:40px!important;
  align-self:stretch!important;
}
.live-score-row .live-score-number.is-selected{
  outline:3px solid #d6a43b!important;
  outline-offset:-3px!important;
  position:relative!important;
  z-index:3!important;
}
@media(max-width:700px){
  .live-score-row .live-score-number{min-height:35px!important;}
}

.live-score-start-note{margin:10px 2px 0!important;padding:9px 11px;border-left:3px solid #d6a43b;border-radius:6px;background:rgba(214,164,59,.08);color:#d4dae3!important;font-size:11px!important;font-weight:800!important;line-height:1.55!important}

.live-score-start-modal{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:20px;background:rgba(3,10,20,.72);backdrop-filter:blur(3px)}
.live-score-start-modal[hidden]{display:none!important}
.live-score-start-dialog{box-sizing:border-box;width:min(420px,100%);padding:20px;border:1px solid #c79a3b;border-radius:16px;background:#071426;color:#fff;box-shadow:0 22px 70px rgba(0,0,0,.45)}
.live-score-start-dialog strong{display:block;color:#e2bd67;font-size:18px}
.live-score-start-dialog p{margin:12px 0 18px!important;color:#e7ebf0!important;font-size:13px!important;font-weight:700!important;line-height:1.7!important}
.live-score-start-dialog-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}
.live-score-start-dialog-actions button{min-height:44px;border:1px solid #c79a3b;border-radius:10px;background:transparent;color:#e2bd67;font:inherit;font-weight:900}
#liveScoreStartConfirm{background:linear-gradient(135deg,#c6922f,#e2bd67);color:#071426}

.live-score-start-note{border-left-color:#d9534f!important;background:rgba(217,83,79,.10)!important;color:#ff7b76!important;font-weight:900!important}

.live-score-finish-warning{margin:0!important;padding:8px 10px;border-left:3px solid #d9534f;border-radius:6px;background:rgba(217,83,79,.10);color:#ff7b76!important;font-size:11px;font-weight:900;line-height:1.55}

/* 2026-09-19: remove decorative left-side bars from live-score notices */
.live-score-start-note,
.live-score-finish-warning{
  border-left:0!important;
}

/* 2026-09-19: add breathing room above input/view mode panel */
.live-score-lock-panel{margin-top:12px!important;}

/* 2026-09-19: separate mode panel from status/update text */
.live-score-status + .live-score-lock-panel{margin-top:20px!important;}

/* 2026-09-19: actual DOM has publish wrapper between status and lock panel */
.live-score-publish + .live-score-lock-panel{
  margin-top:28px!important;
}

/* 2026-09-19: popup warning copy is red; heading remains gold */
.live-score-start-dialog p{
  color:#ff6f6f!important;
  font-weight:900!important;
}

/* 2026-09-19: force popup warning body red */
#liveScoreStartModal .live-score-start-dialog p,
#liveScoreStartModal .live-score-start-dialog p *{
  color:#ff6f6f!important;
  -webkit-text-fill-color:#ff6f6f!important;
  font-weight:900!important;
}

.live-score-viewers{width:100%;text-align:right;color:#d7dee9;font-size:11px;font-weight:800;white-space:nowrap;margin-top:2px}.live-score-viewers strong{color:#e4b341;font-size:12px}

/* 2026-09-22 mobile: keep the live score title on one line */
@media(max-width:700px){
  .live-score-head > div:first-child,
  .live-score-idle-head > div:first-child{flex:0 0 auto;min-width:max-content;}
  .live-score-card h2,
  .live-score-head h2{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;font-size:26px!important;line-height:1.08!important;}
  .live-score-head{gap:8px!important;}
  .live-score-badges{min-width:0!important;}
}
