#overlay .prediction-modal{width:min(540px,calc(100vw - 24px));padding:24px;max-height:calc(100dvh - 28px);overflow:auto}
.prediction-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.prediction-head .eyebrow{margin:0;font-size:12px}
#predictionClock{font-size:20px;padding:6px 12px;border-radius:8px;background:#10251c;color:#ffe39a;white-space:nowrap;font-variant-numeric:tabular-nums}
#predictionClock.urgent{color:#ffaf83}
.prediction-modal h2{font-family:inherit;font-weight:850;font-size:30px;margin:12px 0 18px;line-height:1.2}.prediction-modal h2 span{color:#ffc466;margin:0 4px}
.prediction-price{text-align:center;padding:12px;border-top:1px solid #cbb77030;border-bottom:1px solid #cbb77030}
.prediction-price>span,.prediction-result-price>span{display:block;font-size:13px;color:#b7c8af}
.prediction-price strong{display:block;font-size:32px;color:#ffe39a;line-height:1.5;font-variant-numeric:tabular-nums}.prediction-price small{font-size:13px;margin-left:6px}
.prediction-modal .prediction-rule{font-size:14px;line-height:1.65;margin:14px 0;color:#c8d6bd}
.prediction-directions,.prediction-shortcuts,.prediction-actions{display:flex;gap:8px}.prediction-directions button{flex:1;min-height:44px;font-size:16px;padding:8px}
.prediction-modal [data-predict="down"][aria-pressed="true"],.prediction-modal:has([data-predict="down"][aria-pressed="true"]) #predictionSubmit{background:linear-gradient(#668564,#315441);color:#ecf5dc;border-color:#8faf87;box-shadow:0 3px 0 #1e382b}
.prediction-label{display:flex;justify-content:space-between;gap:8px;font-size:14px;margin:16px 0 7px;flex-wrap:wrap}.prediction-label span{font-size:12px;font-weight:400}.prediction-label b{color:#ffe39a}
.prediction-modal #predictionAmount{width:100%;font-size:18px;min-height:46px;padding:10px 12px;box-sizing:border-box;background:#13271d;color:#f1efda;border:1px solid #7c95755c;border-radius:9px;font-weight:700}.prediction-modal #predictionAmount:focus{outline:2px solid #e0bb70;outline-offset:1px}
.prediction-shortcuts{margin:8px 0 12px}.prediction-shortcuts button{flex:1;padding:7px;font-size:13px;min-height:36px}
.prediction-return{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:#b7c8af}.prediction-return b{font-size:17px;color:#ffe39a}
.prediction-modal .prediction-error{font-size:12px;line-height:1.4;color:#ffb394;margin:6px 0;min-height:17px}
.prediction-actions button{min-height:48px;padding:10px 12px;font-size:16px}.prediction-actions button:first-child{flex:1}.prediction-actions button:last-child{flex:2}
.prediction-footer{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#a3b89c;margin-top:14px}
.prediction-chosen{padding:28px 12px;text-align:center;border:1px solid #cbb77045;border-radius:12px;background:#11291f}.prediction-chosen b{display:block;color:#ffe39a;font-size:20px}.prediction-chosen span{display:block;margin-top:10px;font-size:14px}
.prediction-seat{display:flex;align-items:center;gap:12px;font-size:13px;margin-bottom:10px}.prediction-seat select{flex:1;font-size:14px;padding:7px}
.prediction-result-price{text-align:center;margin:12px 0}.prediction-result-price strong{font-size:28px;color:#ffe39a}
.prediction-results{max-height:42dvh;overflow:auto;overscroll-behavior:contain}.prediction-result-row{padding:12px;margin:8px 0;border:1px solid #a8b78a35;border-radius:10px;display:grid;grid-template-columns:1fr auto;gap:8px}.prediction-result-row.is-mine{border-color:#e7bd6b99;background:#dcac4920}.prediction-result-row>div:first-child b{display:block;font-size:16px}.prediction-result-row>div:first-child span{font-size:12px}.prediction-result-row>strong{font-size:14px}.prediction-result-money{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px}.prediction-result-money span{font-size:11px}.prediction-result-money b{display:block;font-size:15px}
#overlay .prediction-modal [hidden]{display:none!important}
@media(max-width:600px){#overlay .prediction-modal{padding:18px;max-height:calc(100dvh - 24px)}.prediction-modal h2{font-size:25px;margin:10px 0 12px}.prediction-price{padding:8px}.prediction-price strong{font-size:29px}.prediction-modal .prediction-rule{font-size:12px;margin:10px 0}.prediction-label{margin-top:12px}.prediction-footer{font-size:10px}.prediction-chosen b{font-size:18px}.prediction-result-row{padding:9px}.prediction-result-money b{font-size:13px}}
@media(max-height:650px){#overlay .prediction-modal{padding:14px}.prediction-modal h2{margin:6px 0;font-size:24px}.prediction-price{padding:4px}.prediction-price strong{font-size:26px}.prediction-modal .prediction-rule{margin:8px 0;font-size:12px}.prediction-label{margin-top:9px}.prediction-footer{margin-top:8px}}

/* Share the normal in-board card host and its responsive scroll/footer layout. */
#overlay.board-card-host .prediction-modal{gap:10px;padding:16px!important}
#overlay .prediction-modal .board-card-story h2{font-size:25px;margin:4px 0 10px;line-height:1.25}
#overlay .prediction-modal .prediction-price{padding:6px}
#overlay .prediction-modal .prediction-price strong{font-size:28px}
#overlay .prediction-modal .prediction-rule{font-size:13px;line-height:1.55;margin:10px 0 0}
#overlay .prediction-modal .prediction-label{font-size:12px;margin:10px 0 6px}
#overlay .prediction-modal .prediction-directions button{min-height:36px;font-size:14px;padding:6px}
#overlay .prediction-modal #predictionAmount{min-height:40px;font-size:16px;padding:8px}
#overlay .prediction-modal .prediction-shortcuts{margin:6px 0 8px;gap:6px}
#overlay .prediction-modal .prediction-shortcuts button{min-height:30px;font-size:12px;padding:5px}
#overlay .prediction-modal .prediction-actions{margin-top:8px;padding-top:8px;gap:8px}
#overlay .prediction-modal .prediction-actions button{min-height:38px;font-size:14px;padding:8px}
#overlay .prediction-modal .prediction-footer{margin-top:7px;font-size:10px;flex-wrap:wrap}
#overlay .prediction-modal .prediction-error:empty{display:none}
#overlay .prediction-modal #predictionClock{font-size:16px;padding:4px 8px}
@container eventcard (max-width:440px){#overlay.board-card-host .prediction-modal{gap:7px;padding:12px!important}#overlay .prediction-modal .board-card-story h2{font-size:21px;margin:2px 0 6px}#overlay .prediction-modal .prediction-price strong{font-size:24px}#overlay .prediction-modal .prediction-rule{font-size:12px;margin:6px 0}#overlay .prediction-modal .prediction-price{padding:3px}}

@container eventcard (max-width:440px){
 #overlay.board-card-host .prediction-modal{padding:8px!important;gap:5px}
 #overlay .prediction-modal .board-card-story h2{display:none}
 #overlay .prediction-modal .prediction-price{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:4px 0}
 #overlay .prediction-modal .prediction-price>span{font-size:10px}
 #overlay .prediction-modal .prediction-price strong{font-size:19px;line-height:1.3;white-space:nowrap}
 #overlay .prediction-modal .prediction-price small{font-size:10px;margin-left:2px}
 #overlay .prediction-modal .prediction-rule{font-size:11px;line-height:1.4;margin:5px 0}
 #overlay .prediction-modal.card-compact .board-card-actions{margin-top:5px}
 #overlay .prediction-modal .prediction-directions button{font-size:12px;min-height:30px;padding:5px}
 #overlay .prediction-modal .prediction-label{margin:5px 0 3px;font-size:11px}
 #overlay .prediction-modal .prediction-label span{font-size:10px}
 #overlay .prediction-modal #predictionAmount{min-height:34px;padding:6px 8px;font-size:14px}
 #overlay .prediction-modal .prediction-shortcuts{margin:5px 0}
 #overlay .prediction-modal .prediction-shortcuts button{min-height:27px;font-size:11px;padding:4px}
 #overlay .prediction-modal .prediction-return{font-size:10px;line-height:1.4}
 #overlay .prediction-modal .prediction-return b{font-size:13px}
 #overlay .prediction-modal .prediction-footer{font-size:9px;line-height:1.4;margin-top:4px;gap:3px}
 #overlay .prediction-modal .prediction-actions{margin-top:4px;padding-top:4px}
 #overlay .prediction-modal .prediction-actions button{min-height:34px;font-size:12px;padding:6px}
 #overlay .prediction-modal .board-card-topline{padding-bottom:5px}
}

/* Reuse the board price series without introducing a separate quote. */
#overlay .prediction-modal .prediction-trend{margin:12px 0 0;padding:10px 12px 6px;border:1px solid #92ad8240;border-radius:10px;background:#10271b65}
#overlay .prediction-modal .prediction-trend figcaption{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#c7d3b9;font-size:11px;line-height:1.4}
#overlay .prediction-modal .prediction-trend figcaption small{font-size:10px;color:#8fa68e}
#overlay .prediction-modal .prediction-spark{display:block;width:100%;height:100px;margin:6px 0 0;overflow:visible}
#overlay .prediction-modal .prediction-rule{font-size:12px;line-height:1.55;margin:10px 0 0}
@container eventcard (max-width:440px){
 #overlay .prediction-modal .prediction-trend{margin-top:5px;padding:6px 8px 3px;border-radius:7px}
 #overlay .prediction-modal .prediction-trend figcaption{font-size:10px}
 #overlay .prediction-modal .prediction-trend figcaption small{font-size:9px}
 #overlay .prediction-modal .prediction-spark{height:50px;margin-top:3px}
 #overlay .prediction-modal .prediction-rule{font-size:11px;margin:5px 0}
}

@media(min-width:601px) and (max-width:1500px){#overlay .prediction-modal .prediction-spark{height:60px}#overlay .prediction-modal .prediction-trend{margin-top:8px;padding-top:7px}}

/* Compact, table-wide settlement: one row per player and optional ticket detail. */
#overlay.board-card-host .prediction-settlement-modal{width:min(560px,100%)!important;padding:16px!important;gap:10px}
#overlay .prediction-settlement-modal .board-card-topline{display:flex;gap:10px;padding-bottom:9px}
#overlay .prediction-settlement-modal .board-card-category{font-size:19px;letter-spacing:.02em;padding:0;border:0;background:none;text-align:left;white-space:normal}
#overlay .prediction-settlement-modal #receiptCountdown{font-size:14px;font-weight:750;color:#ffe1a2;background:#10251c;padding:4px 8px;border-radius:6px;white-space:nowrap}
#overlay .prediction-settlement-modal .event-notice-body{padding:0}
#overlay .prediction-settlement-modal .prediction-result-price{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px;padding:5px 0 10px;border-bottom:1px solid #cbb77030}
#overlay .prediction-settlement-modal .prediction-result-price strong{font-size:23px;line-height:1.3}
#overlay .prediction-settlement-modal .prediction-results{max-height:none;overflow:visible;display:grid;gap:7px}
#overlay .prediction-settlement-modal .prediction-result-row{margin:0;padding:9px 11px;gap:3px 10px;align-items:center;grid-template-columns:minmax(0,1fr) auto}
#overlay .prediction-settlement-modal .prediction-result-person{min-width:0}
#overlay .prediction-settlement-modal .prediction-result-person b{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
#overlay .prediction-settlement-modal .prediction-result-person span{display:block;font-size:11px;line-height:1.5;color:#b7c8af}
#overlay .prediction-settlement-modal .prediction-result-net{text-align:right;display:grid;gap:2px}
#overlay .prediction-settlement-modal .prediction-result-net span{font-size:10px;color:#b7c8af}
#overlay .prediction-settlement-modal .prediction-result-net strong{font-size:19px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#overlay .prediction-settlement-modal .neutral{color:#d7dec7}
#overlay .prediction-settlement-modal .prediction-result-details{grid-column:1/-1;font-size:11px;line-height:1.6;color:#b7c8af}
#overlay .prediction-settlement-modal summary{cursor:pointer;width:fit-content;padding:3px 0}
#overlay .prediction-settlement-modal .prediction-ticket-list{display:grid;gap:6px;padding-top:5px}
#overlay .prediction-settlement-modal .prediction-ticket{display:grid;gap:2px;padding-top:5px;border-top:1px solid #a8b78a25;overflow-wrap:anywhere}
#overlay .prediction-settlement-modal.card-compact .board-card-actions{margin-top:9px}
#overlay .prediction-settlement-modal .receipt-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;padding-top:8px;border-top:1px solid #cbb77030}
#overlay .prediction-settlement-modal .receipt-footer span{font-size:11px;white-space:normal}
#overlay .prediction-settlement-modal .receipt-footer button{flex:none;min-height:34px;padding:6px 16px;font-size:13px}
@container eventcard (max-width:440px){
 #overlay.board-card-host .prediction-settlement-modal{padding:10px!important;gap:7px}
 #overlay .prediction-settlement-modal .board-card-category{font-size:17px}
 #overlay .prediction-settlement-modal .prediction-result-price strong{font-size:20px}
 #overlay .prediction-settlement-modal .prediction-result-price>span{font-size:11px}
 #overlay .prediction-settlement-modal .prediction-result-row{padding:7px 9px}
 #overlay .prediction-settlement-modal .prediction-result-net strong{font-size:16px}
}
