/* CCL Gamecast · chronology by turns, not miniature locations */
.ccl-gamecast{margin:1rem 0;padding:1rem;border:1px solid #526d57;border-radius:14px;background:#14241c;color:#f1f5e9}
.gamecast-heading,.gamecast-key,.gamecast-entry summary{display:flex;justify-content:space-between;gap:1rem;align-items:center}
.gamecast-label{font-size:.74rem;letter-spacing:.13em;color:#b3caa9;font-weight:800}.gamecast-turn{font-size:.9rem;font-weight:700;color:#ffe1a3}
.gamecast-score{font-weight:800;font-size:1.15rem;margin:.75rem 0}
.gamecast-field{position:relative;min-height:210px;overflow:hidden;border:2px solid #85a887;border-radius:9px;background:repeating-linear-gradient(90deg,#1d4831 0%,#1d4831 12.5%,#22543a 12.5%,#22543a 25%);display:grid;grid-template-columns:repeat(16,minmax(0,1fr));grid-template-rows:repeat(3,minmax(65px,auto));padding:9px 3px;gap:0}
.gamecast-field::before{content:'';position:absolute;inset:33.33% 0 auto;border-top:1px dashed #81b48c;pointer-events:none}.gamecast-field::after{content:'';position:absolute;inset:66.66% 0 auto;border-top:1px dashed #81b48c;pointer-events:none}
.gamecast-empty{grid-column:1/-1;text-align:center;align-self:center;color:#e0ebdb}
.gamecast-marker{z-index:1;align-self:center;justify-self:center;display:grid;place-items:center;border:1px solid #fff9;border-radius:100px;width:28px;height:28px;font-size:15px;font-weight:bold;color:#fff;cursor:default;box-shadow:0 2px 8px #0008}
.gamecast-marker[data-kind="spp"]{background:#245ca7}.gamecast-marker[data-kind="foul"]{background:#987325}.gamecast-marker[data-kind="injury"]{background:#a43e3e}.gamecast-marker[data-kind="other"]{background:#417159}
.gamecast-turn-axis{display:grid;grid-template-columns:repeat(16,1fr);color:#bad7bf;font-size:.58rem;margin-top:4px}.gamecast-turn-axis span{text-align:center}
.gamecast-key{justify-content:flex-start;flex-wrap:wrap;margin:.75rem 0 1.1rem;font-size:.76rem;color:#cbd9ce}
.gamecast-entry{border:1px solid #4b6654;border-radius:8px;margin:.7rem 0;padding:.55rem .8rem}.gamecast-entry summary{cursor:pointer;font-weight:bold}.gamecast-entry label{display:block;margin-top:.55rem;color:#e5f0e4}.gamecast-entry select,.gamecast-entry input{width:100%;max-width:550px;margin-top:4px}.gamecast-entry button{margin-top:.75rem}
.gamecast-feed{max-height:320px;overflow:auto;display:grid;gap:.5rem}.gamecast-feed-item{padding:.65rem .75rem;border-radius:8px;background:#213a2d;color:#f2f5f1;font-size:.85rem}.gamecast-feed-item small{display:block;color:#b6cbba;margin-top:3px}.gamecast-feed-item.is-voided{opacity:.5;text-decoration:line-through}
.ccl-gamecast .message{color:#f3d5a0}.ccl-gamecast p.hint{color:#b6ccba}
@media(max-width:600px){.gamecast-marker{width:22px;height:22px;font-size:12px}.gamecast-turn{font-size:.76rem}.gamecast-field{min-height:190px}}

/* v1.9.10 Gamecast match-ending options */
.ccl-match-ending{border:1px solid rgba(220,188,116,.38);border-radius:12px;padding:1rem;margin:1.25rem 0;background:rgba(22,28,24,.54)}
.ccl-match-ending h4{margin:.4rem 0}.ccl-match-ending-buttons{display:flex;flex-wrap:wrap;gap:.55rem}
.ccl-match-ending-buttons button{width:auto;max-width:100%;min-height:42px}
.ccl-match-ending-buttons button[hidden]{display:none!important}
#cclConcede{border-color:rgba(205,102,102,.65)}

/* Receiving-coach casualty resolution receipt: visible after event refresh. */
.ccl-casualty-confirmation{margin:12px 0 0;padding:14px 16px;border:1px solid #a6b77b;background:#263927;color:#f4e5bd;border-radius:8px;font-weight:750;line-height:1.55}
.ccl-casualty-confirmation[hidden]{display:none}
#gamecastRoll,#cclPregameFanFactor{width:100%;max-width:100%;min-height:43px}
#gamecastResolve:disabled{opacity:.65;cursor:not-allowed}

/* Live two-coach match-ending agreement. Visible independently of mode panels. */
.ccl-early-end-notice{border:2px solid #d6a967;border-radius:12px;padding:18px 20px;margin:14px 0;background:linear-gradient(120deg,#3b3121,#1b2a20);box-shadow:0 0 0 3px #d6a96720,0 14px 28px #0004}
.ccl-early-end-notice[hidden]{display:none!important}
.ccl-early-end-notice strong{display:block;font-size:1.15rem;letter-spacing:.04em;color:#ffe1a6}
.ccl-early-end-notice p{color:#eee5cc;font-size:.96rem;line-height:1.6;margin:9px 0 15px}
.ccl-early-end-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.ccl-early-end-actions button{min-height:46px;padding:12px 17px;font-weight:850}
.ccl-early-end-actions button[hidden]{display:none!important}
.ccl-early-end-actions button:focus-visible{outline:2px solid #ffe6b2;outline-offset:3px}
@media(max-width:620px){.ccl-early-end-notice{padding:15px}.ccl-early-end-actions button{width:100%}}

/* SlaughterStream opponent decision: visible below clocks and above FragFeed. */
body.ccl-live-gamecast #cclEarlyEndNotice{
 scroll-margin-top:22px;
 border-width:3px;
 box-shadow:0 0 0 4px #e8b8702a,0 18px 32px #0006;
}
body.ccl-live-gamecast #cclEarlyEndNotice[role="alert"]{
 border-color:#efc37e;
 background:linear-gradient(115deg,#51402b,#263629);
}
body.ccl-live-gamecast #cclEarlyEndNotice[role="alert"] strong{
 color:#ffe4aa;
}

/* Distinct verified live-action icons — types stay distinct regardless of team. */
.gamecast-marker{font-size:15px;line-height:1;font-family:system-ui,"Segoe UI Emoji","Apple Color Emoji",sans-serif}
.gamecast-marker[data-kind="touchdown"]{background:#267447;border-color:#e4c470}
.gamecast-marker[data-kind="completion"]{background:#245b8b}
.gamecast-marker[data-kind="interception"]{background:#684a93}
.gamecast-marker[data-kind="qualifying_casualty"]{background:#a15b21}
.gamecast-marker[data-kind="foul"]{background:#855d23}
.gamecast-marker[data-kind="sent_off"]{background:#a33330}
.gamecast-marker[data-kind="dead"]{background:#702e37}
.gamecast-marker[data-kind="badly_hurt"],.gamecast-marker[data-kind="miss_next_game"],.gamecast-marker[data-kind="seriously_hurt"]{background:#89523d}
.gamecast-marker[data-kind="lasting_injury"],.gamecast-marker[data-kind="serious_injury"]{background:#8d4640}
.gamecast-marker[data-kind="mvp"]{background:#6e5496}
.gamecast-marker[data-kind="throw_team_mate"],.gamecast-marker[data-kind="landed_throw"]{background:#306c85}
.gamecast-marker[data-kind="stunned"],.gamecast-marker[data-kind="knockout"]{background:#656488}
.ccl-feed-event-icon{display:inline-grid;place-items:center;vertical-align:middle;min-width:27px;min-height:27px;margin-right:8px;border-radius:7px;background:#31543c;border:1px solid #a7bca77a;font-family:system-ui,"Segoe UI Emoji","Apple Color Emoji",sans-serif}
.ccl-feed-event-icon[data-kind="touchdown"]{background:#287b4a}
.ccl-feed-event-icon[data-kind="completion"]{background:#245b8b}
.ccl-feed-event-icon[data-kind="interception"]{background:#684a93}
.ccl-feed-event-icon[data-kind="qualifying_casualty"]{background:#a15b21}
.ccl-feed-event-icon[data-kind="foul"]{background:#855d23}
.ccl-feed-event-icon[data-kind="sent_off"]{background:#a33330}
.ccl-feed-event-icon[data-kind="dead"]{background:#702e37}
.gamecast-key span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
@media(max-width:600px){.gamecast-marker{font-size:13px}.ccl-feed-event-icon{min-width:24px;min-height:24px}}

/* Ironclad polishing: editorial personality, never part of the verified event ledger. */
.gamecast-feed-item .ccl-fragfeed-commentary{
 display:block;margin:.4rem 0 .1rem;padding-left:.75rem;border-left:2px solid #c59565;
 color:#eacfb0;font-size:.82rem;line-height:1.45;font-style:italic;overflow-wrap:anywhere;
}
.gamecast-feed-item.is-voided .ccl-fragfeed-commentary{display:none}

/* Build 89: critical incoming injury prompts and separated pitch markers. */
#gamecastPanel .ss-pending-injury-urgent:not([hidden]){
 display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;
 margin:12px 0 16px;padding:14px 16px;border:2px solid #ebbd65;border-radius:12px;
 background:#402820;color:#fff2c8;font-weight:700;box-shadow:0 0 0 3px #1a261e;
}
#gamecastPanel .ss-pending-injury-urgent button{min-height:44px;flex:0 1 auto}
#gamecastPanel .gamecast-marker{z-index:2;box-shadow:0 2px 5px #000c,0 0 0 2px #183327;}
@media(max-width:600px){#gamecastPanel .ss-pending-injury-urgent button{flex:1 1 100%}}

/* Critical match submission feedback must stay visible near the scoreboard. */
#ssMatchSubmissionAlert:not([hidden]){padding:12px 14px;margin:10px 0;border:1px solid #bba473;border-radius:9px;background:#28352c;color:#f5e6c4;overflow-wrap:anywhere;font-weight:600}
#ssMatchSubmissionAlert[data-state="error"]{border:2px solid #e48a78;background:#40231f;color:#ffe6d5}
#ssMatchSubmissionAlert[data-state="pending"]{border-color:#d7ad65}
#ssMatchSubmissionAlert[data-state="success"]{border-color:#81a88c}
