/* The Pothouse Pool League
   Extracted from index.php on 22 September 2026. */

/* Access / login screen */
*{box-sizing:border-box}
            body{margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f2f4f7;font-family:Arial,sans-serif;color:#101828;padding:20px}
            .pool-lock-card{width:100%;max-width:420px;background:#fff;border:1px solid #e4e7ec;border-radius:16px;box-shadow:0 12px 34px rgba(16,24,40,.08);overflow:hidden}
            .pool-lock-head{padding:24px 24px 14px;border-bottom:1px solid #eaecf0;text-align:center}
            .pool-lock-head h1{margin:0 0 7px;font-size:24px}
            .pool-lock-head p{margin:0;color:#667085;font-size:14px;line-height:1.5}
            .pool-lock-body{padding:24px}
            .pool-lock-label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}
            .pool-lock-input{width:100%;padding:12px 13px;border:1px solid #d0d5dd;border-radius:9px;font-size:16px;outline:none}
            .pool-lock-input:focus{border-color:#98a2b3;box-shadow:0 0 0 3px rgba(152,162,179,.15)}
            .pool-lock-button{width:100%;margin-top:14px;padding:12px 14px;border:0;border-radius:9px;background:#101828;color:#fff;font-weight:700;font-size:15px;cursor:pointer}
            .pool-lock-error{margin-bottom:14px;padding:10px 12px;border-radius:8px;background:#fef3f2;color:#b42318;font-size:13px}
            .pool-lock-note{margin-top:14px;color:#98a2b3;font-size:12px;text-align:center}

/* Main pool league interface */
*{box-sizing:border-box}
body{margin:0;background:#f4f6f8;color:#1d2939;font-family:Arial,Helvetica,sans-serif}
.pool-page{max-width:1280px;margin:0 auto;padding:24px 18px 50px}
.pool-topbar{position:relative;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;padding:18px 20px;overflow:hidden;border:1px solid #2f3834;border-radius:18px;background:linear-gradient(135deg,#111916 0%,#173f35 58%,#102a24 100%);box-shadow:0 8px 24px rgba(16,24,40,.14)}
.pool-topbar:before,.pool-topbar:after{content:"";position:absolute;right:235px;top:-46px;width:7px;height:190px;border-radius:999px;background:linear-gradient(90deg,#b7793f,#e6b36d,#8d572d);opacity:.30;transform:rotate(43deg);pointer-events:none}
.pool-topbar:after{right:275px;transform:rotate(-43deg)}
.pool-brand{position:relative;z-index:1;display:flex;align-items:center;gap:17px}
.pool-eight-ball{position:relative;display:flex;align-items:center;justify-content:center;width:72px;height:72px;flex:0 0 72px;border-radius:50%;overflow:hidden;background:linear-gradient(180deg,#fff 0 26%,#f79009 26% 74%,#fff 74% 100%);border:2px solid rgba(255,255,255,.88);box-shadow:inset -8px -9px 14px rgba(122,74,0,.28),inset 7px 7px 11px rgba(255,255,255,.48),0 7px 18px rgba(0,0,0,.28)}
.pool-eight-ball:before{content:"";position:absolute;top:8px;left:13px;width:28px;height:11px;border-radius:50%;background:rgba(255,255,255,.70);transform:rotate(-20deg)}
.pool-eight-ball span{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#fff;color:#111916;border:1px solid rgba(16,24,40,.12);box-shadow:0 1px 4px rgba(16,24,40,.22);font-size:18px;line-height:1;font-weight:900;letter-spacing:-1px;font-family:Arial,Helvetica,sans-serif}
.pool-brand-copy{min-width:0}
.pool-brand-kicker{margin:0 0 2px;color:#fdb022;font-size:10px;font-weight:900;letter-spacing:.22em;text-transform:uppercase}
.pool-topbar h1{margin:0;color:#fff;font-size:36px;line-height:1;letter-spacing:-.035em}
.pool-league-label{margin:6px 0 0;color:#fdb022;font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.pool-topbar p{margin:5px 0 0;color:#d0d5dd;font-size:13px}
.pool-topbar>div:last-child{position:relative;z-index:1}
.pool-topbar>div:last-child>div:first-child{border-color:rgba(255,255,255,.18)!important;background:rgba(255,255,255,.09)!important;color:#e4e7ec!important}
.pool-topbar>div:last-child>div:first-child strong{color:#fff!important}
.pool-topbar>div:last-child>div:first-child a{color:#fdb022!important}
.pool-topbar .pool-select select{border-color:rgba(255,255,255,.20);background:#fff}
@media(max-width:760px){.pool-topbar{align-items:flex-start;flex-direction:column}.pool-topbar:before,.pool-topbar:after{right:55px}.pool-topbar h1{font-size:31px}.pool-eight-ball{width:64px;height:64px;flex-basis:64px}}
.pool-select{min-width:250px}
select,input[type="text"],input[type="number"]{width:100%;padding:11px 12px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;font-size:14px}
button{padding:11px 16px;border:0;border-radius:9px;background:#175cd3;color:#fff;font-weight:700;cursor:pointer}
button:hover{background:#1849a9}
.pool-button-secondary{padding:9px 13px;border:1px solid #fda29b;border-radius:9px;background:#fff;color:#b42318;font-weight:700;cursor:pointer}
.pool-button-secondary:hover{background:#fef3f2;color:#912018}
.pool-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(310px,.8fr);gap:20px}
.pool-card{margin-bottom:20px;overflow:hidden;border:1px solid #e4e7ec;border-radius:14px;background:#fff;box-shadow:0 2px 8px rgba(16,24,40,.04)}
.pool-card-header{padding:17px 19px;border-bottom:1px solid #eaecf0}
.pool-card-header h2{margin:0;font-size:19px}
.pool-card-header p{margin:4px 0 0;color:#667085;font-size:13px}
.pool-playing-header{display:flex;align-items:center;justify-content:space-between;gap:18px}
.pool-playing-header-copy{min-width:0;flex:1}
.pool-live-timer-header{flex:0 0 auto;margin:0;text-align:right}
.pool-live-timer-header .pool-live-timer-label{margin-bottom:3px}
.pool-live-timer-header .pool-live-timer-time{font-size:30px}
.pool-card-body{padding:18px}
.pool-form-group{margin-bottom:12px}
.pool-form-group label{display:block;margin-bottom:6px;font-size:13px;font-weight:700}
.pool-message,.pool-error{margin-bottom:18px;padding:12px 14px;border-radius:9px}
.pool-message{background:#ecfdf3;color:#027a48}
.pool-error{background:#fef3f2;color:#b42318}
.pool-empty{padding:28px 20px;color:#667085;text-align:center}
.pool-next{padding:24px;background:#173f35;color:#fff}
.pool-next-kicker{margin-bottom:7px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.75}
.pool-next-title{font-size:30px;font-weight:800}
.pool-next-date{margin-top:7px;opacity:.78}
.pool-table-wrap{overflow-x:auto}
.pool-table{width:100%;min-width:700px;border-collapse:collapse}
.pool-table th,.pool-table td{padding:12px 11px;border-bottom:1px solid #f0f1f3;text-align:center}
.pool-table th{background:#f9fafb;color:#667085;font-size:11px;text-transform:uppercase}
.pool-table th.player,.pool-table td.player{text-align:left}
.pool-form-dots{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.pool-form-dot{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;border-radius:50%;font-size:10px;font-weight:900;color:#fff;line-height:1}
.pool-form-dot.win{background:#12b76a}
.pool-form-dot.loss{background:#f04438}
.pool-form-empty{color:#98a2b3;font-size:12px}
.pool-position{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;border-radius:50%;background:#eef2f6;font-weight:700}
.pool-position.first{background:#fff3c4}
.pool-match{padding:22px}
.pool-match-line{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin-bottom:18px}
.pool-match-line .left{text-align:right}.pool-match-line .right{text-align:left}
.pool-player{font-size:20px;font-weight:800}
.pool-vs{min-width:58px;padding:8px 10px;border-radius:8px;background:#173f35;color:#fff;text-align:center;font-weight:800}
.pool-result-form{display:grid;grid-template-columns:minmax(0,1fr) 72px 20px 72px auto;align-items:center;gap:10px;max-width:620px;margin:0 auto}
.pool-result-form input{text-align:center;font-size:20px;font-weight:800}
.pool-result-label{font-weight:700}
.pool-list{margin:0;padding:0;list-style:none}
.pool-list li{padding:15px 18px;border-bottom:1px solid #f0f1f3}.pool-list li:last-child{border-bottom:0}
.pool-match-date{margin-bottom:7px;color:#667085;font-size:12px;font-weight:700}
.pool-player-list{margin:0;padding:0;list-style:none}.pool-player-list li{padding:10px 0;border-bottom:1px solid #f0f1f3}.pool-player-list li:last-child{border-bottom:0}
.pool-badge{font-size:11px;font-weight:800;color:#b54708;background:#fffaeb;padding:4px 7px;border-radius:999px}
@media(max-width:900px){.pool-grid{grid-template-columns:1fr}}
@media(max-width:650px){
.pool-page{padding:14px 10px 30px}.pool-topbar{align-items:flex-start;flex-direction:column}.pool-select{width:100%}
.pool-result-form{grid-template-columns:1fr 58px 16px 58px}.pool-result-form button{grid-column:1/-1}
.pool-match-line{grid-template-columns:1fr}.pool-match-line .left,.pool-match-line .right{text-align:center}.pool-vs{margin:0 auto}
.pool-playing-header{align-items:flex-start;flex-direction:column;gap:10px}
.pool-live-timer-header{text-align:left}
}

.pool-live-timer{
    margin:10px auto 18px;
    text-align:center;
}
.pool-live-timer-label{
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#667085;
    margin-bottom:4px;
}
.pool-live-timer-time{
    font-size:42px;
    line-height:1;
    font-weight:800;
    font-variant-numeric:tabular-nums;
    color:#101828;
}


.pool-player-link{
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#175cd3;
    font:inherit;
    font-weight:700;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:3px;
    cursor:pointer;
}
.pool-player-link:hover{background:transparent;color:#1849a9}
.pool-player-modal[hidden]{display:none}
.pool-player-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(16,24,40,.62);
}
.pool-player-modal-dialog{
    width:min(620px,100%);
    max-height:85vh;
    overflow:auto;
    border-radius:14px;
    background:#fff;
    box-shadow:0 20px 50px rgba(16,24,40,.25);
}
.pool-player-modal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:17px 19px;
    border-bottom:1px solid #eaecf0;
}
.pool-player-modal-head h3{margin:0;font-size:20px}
.pool-player-modal-close{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    padding:0;
    border-radius:50%;
    background:#f2f4f7;
    color:#344054;
    font-size:22px;
}
.pool-player-modal-close:hover{background:#e4e7ec}
.pool-player-modal-body{padding:18px}
.pool-performance-chart{
    margin:0 0 18px;
    padding:16px;
    border:1px solid #eaecf0;
    border-radius:14px;
    background:#fff;
}
.pool-performance-chart-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}
.pool-performance-chart-head strong{display:block;color:#101828;font-size:15px}
.pool-performance-chart-head span{display:block;margin-top:2px;color:#667085;font-size:12px}
.pool-performance-chart-value{
    flex-shrink:0;
    padding:4px 9px;
    border-radius:999px;
    background:#f2f4f7;
    color:#344054;
    font-size:12px;
    font-weight:800;
}
.pool-performance-chart svg{display:block;width:100%;height:auto;overflow:visible}
.pool-performance-chart .pool-chart-zero{stroke:#d0d5dd;stroke-width:1;stroke-dasharray:4 4}
.pool-performance-chart .pool-chart-line{fill:none;stroke:#475467;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.pool-performance-chart .pool-chart-dot{fill:#fff;stroke:#475467;stroke-width:2}
.pool-performance-chart .pool-chart-label{fill:#667085;font-size:10px}
.pool-performance-chart-empty{padding:12px 0;color:#98a2b3;font-size:13px}
.pool-frame-history{
    margin-top:10px;
    padding-top:8px;
    border-top:1px solid #e8eaed;
}
.pool-frame-history-row{
    display:grid;
    grid-template-columns:72px 1fr auto;
    gap:10px;
    align-items:center;
    padding:7px 0;
    font-size:14px;
}
.pool-frame-number{
    font-weight:700;
    color:#475467;
}
.pool-frame-winner{
    font-weight:600;
    color:#1d2939;
}
.pool-frame-time{
    color:#667085;
    white-space:nowrap;
    font-size:13px;
}
.pool-frame-history-empty{
    margin-top:9px;
    color:#98a2b3;
    font-size:13px;
    font-style:italic;
}
@media (max-width:560px){
    .pool-frame-history-row{
        grid-template-columns:62px 1fr;
    }
    .pool-frame-time{
        grid-column:2;
    }
}
.pool-headtohead-summary{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-bottom:18px;
}
.pool-headtohead-stat{
    padding:12px;
    border:1px solid #eaecf0;
    border-radius:10px;
    text-align:center;
}
.pool-headtohead-stat strong{display:block;font-size:22px;color:#101828}
.pool-headtohead-stat span{font-size:12px;color:#667085}
.pool-headtohead-list{margin:0;padding:0;list-style:none}
.pool-headtohead-list li{
    padding:12px 0;
    border-top:1px solid #eaecf0;
}
.pool-headtohead-result{font-weight:700}
.pool-headtohead-win{color:#027a48}
.pool-headtohead-loss{color:#b42318}
.pool-headtohead-date{margin-top:3px;color:#667085;font-size:12px}
@media(max-width:520px){
    .pool-headtohead-summary{grid-template-columns:1fr}
}

/* League progress sits with the league information, not admin controls. */
.pool-league-progress-line{display:flex;align-items:center;gap:12px}
.pool-league-progress-track{height:10px;flex:1;overflow:hidden;border-radius:999px;background:#292929;border:1px solid #3b3b3b}
.pool-league-progress-track span{display:block;height:100%;border-radius:999px;background:#f79009}
.pool-league-progress-line strong{min-width:42px;text-align:right;color:#ffad38}
.pool-league-catchup-status{margin-top:10px;color:#b8b8b8;font-size:13px;font-weight:700}
.pool-league-catchup-status.has-catchups{color:#ffad38}

/* Full frame form in player history: every recorded frame, oldest to newest. */
.pool-frame-form{
    margin:0 0 18px;
    padding:14px 16px;
    border:1px solid #303030;
    border-radius:14px;
    background:#171717;
}
.pool-frame-form-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.pool-frame-form-head strong{display:block;color:#f4f4f4;font-size:15px}
.pool-frame-form-head span{display:block;margin-top:2px;color:#b8b8b8;font-size:12px}
.pool-frame-form-list{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pool-frame-form-mark{
    display:inline-flex;align-items:center;justify-content:center;
    width:28px;height:28px;border-radius:50%;
    font-size:12px;font-weight:900;line-height:1;
    border:1px solid transparent;
}
.pool-frame-form-mark.win{background:rgba(18,183,106,.18);border-color:#12b76a;color:#75e0a7}
.pool-frame-form-mark.loss{background:rgba(240,68,56,.18);border-color:#f04438;color:#fda29b}
.pool-history-catchup{
    display:inline-flex;align-items:center;margin-left:7px;padding:2px 7px;
    border-radius:999px;background:rgba(247,144,9,.14);border:1px solid rgba(247,144,9,.45);
    color:#ffad38;font-size:10px;font-weight:900;letter-spacing:.04em;vertical-align:middle;
}

/* Frame history result accents. */
.pool-headtohead-list li.pool-history-win,
.pool-headtohead-list li.pool-history-loss{padding:12px 12px 12px 14px;border-radius:9px;margin-top:7px;border-top:0}
.pool-headtohead-list li.pool-history-win{border-left:4px solid #12b76a;background:rgba(18,183,106,.08)}
.pool-headtohead-list li.pool-history-loss{border-left:4px solid #f04438;background:rgba(240,68,56,.08)}
.pool-history-win .pool-headtohead-result{color:#75e0a7}
.pool-history-loss .pool-headtohead-result{color:#fda29b}
.pool-history-win .pool-headtohead-date,.pool-history-loss .pool-headtohead-date,
.pool-history-win .pool-frame-time,.pool-history-loss .pool-frame-time{color:#c7c7c7}

/* Player history modal - dark Pothouse contrast */
.pool-player-modal-dialog{background:#111;color:#f4f4f4;border:1px solid #303030}
.pool-player-modal-head{border-bottom-color:#303030}
.pool-player-modal-head h3{color:#f4f4f4}
.pool-player-modal-close{background:#242424;color:#f4f4f4;border:1px solid #3a3a3a}
.pool-player-modal-close:hover{background:#303030;color:#fff}
.pool-player-modal-body{color:#f4f4f4}
.pool-performance-chart{background:#171717;border-color:#303030;color:#f4f4f4}
.pool-performance-chart-head strong{color:#f4f4f4}
.pool-performance-chart-head span{color:#b8b8b8}
.pool-performance-chart-value{background:#252525;color:#ffad38}
.pool-performance-chart .pool-chart-zero{stroke:#555}
.pool-performance-chart .pool-chart-line{stroke:#ff9d1a}
.pool-performance-chart .pool-chart-dot{fill:#111;stroke:#ffad38}
.pool-performance-chart .pool-chart-label{fill:#b8b8b8}
.pool-performance-chart-empty{color:#aaa}
.pool-headtohead-stat{background:#171717;border-color:#303030;color:#f4f4f4}
.pool-headtohead-stat strong{color:#f4f4f4}
.pool-headtohead-stat span{color:#b8b8b8}
.pool-headtohead-list li{border-top-color:#303030;color:#f4f4f4}
.pool-headtohead-result{color:#f4f4f4}
.pool-headtohead-result > span:first-child{color:#f4f4f4!important}
.pool-headtohead-date{color:#b8b8b8}
.pool-player-modal .pool-frame-time{color:#b8b8b8}
.pool-player-modal .pool-empty{color:#b8b8b8}


.pool-last-result{
    margin:0 0 14px 0;
    padding:14px 16px;
    border:1px solid #eaecf0;
    border-radius:12px;
    background:#f9fafb;
}
.pool-last-result-label{
    margin-bottom:8px;
    color:#667085;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.pool-last-result-score{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    font-size:18px;
}
.pool-last-result-score strong{
    color:#101828;
}
.pool-last-result-score .score{
    padding:4px 10px;
    border-radius:999px;
    background:#fff;
    border:1px solid #d0d5dd;
    font-size:20px;
    font-weight:800;
}


.pool-last-frame{
    margin:0 0 14px 0;
    padding:14px 16px;
    border:1px solid #eaecf0;
    border-radius:12px;
    background:#fff;
}
.pool-last-frame-label{
    margin-bottom:7px;
    color:#667085;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.pool-last-frame-text{
    font-size:16px;
    font-weight:700;
    color:#101828;
}

.pool-table tr.pool-unavailable td{background:#f2f4f7;color:#667085;}
.pool-table tr.pool-unavailable .pool-player-link{color:#667085;}
.pool-table tr.pool-unavailable .pool-position{background:#e4e7ec;color:#667085;}
.pool-unavailable-label{display:inline-block;margin-left:7px;padding:2px 6px;border-radius:5px;background:#e4e7ec;color:#475467;font-size:11px;font-weight:400;}


/* ==========================================================
   THE POTHOOUSE DARK ROOM THEME
   Black / charcoal / orange, built around the official logo.
   ========================================================== */
:root{
    --ph-bg:#090909;
    --ph-panel:#141414;
    --ph-panel-2:#1b1b1b;
    --ph-panel-3:#222222;
    --ph-border:#303030;
    --ph-text:#f4f4f4;
    --ph-muted:#a9a9a9;
    --ph-orange:#f79009;
    --ph-orange-2:#ff9d1a;
    --ph-gold:#fdb022;
}
html{background:var(--ph-bg)}
body{background:radial-gradient(circle at 50% -20%,#2a1a0e 0,#111 34%,#090909 72%) fixed;color:var(--ph-text)}
.pool-page{max-width:1320px;padding-top:18px}
.pool-topbar{padding:12px 18px;min-height:150px;border:1px solid #2d2a27;background:linear-gradient(135deg,#090909 0%,#15110e 55%,#0a0a0a 100%);box-shadow:0 14px 40px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.03)}
.pool-topbar:before,.pool-topbar:after{display:none}
.pool-brand-logo{gap:18px;min-width:0;flex:1}
.pothouse-logo{display:block;width:min(470px,48vw);height:auto;max-height:142px;object-fit:contain;object-position:left center;filter:drop-shadow(0 5px 14px rgba(247,144,9,.12))}
.pool-brand-rules{padding-left:18px;border-left:1px solid #3a2c20}
.pool-brand-rules .pool-league-label{color:var(--ph-orange);font-size:13px}
.pool-brand-rules p{max-width:270px;color:#bdb8b3}
.pool-topbar>div:last-child>div:first-child{border-color:#3a332e!important;background:#171411!important;color:#bbb!important}
.pool-topbar>div:last-child>div:first-child strong{color:var(--ph-orange)!important}
.pool-topbar>div:last-child>div:first-child a{color:#e7e7e7!important}
.pool-topbar .pool-select select{border-color:#3b332c;background:#181512;color:#f2f2f2}
.pool-card{border-color:var(--ph-border);background:linear-gradient(180deg,#171717 0%,#121212 100%);box-shadow:0 8px 24px rgba(0,0,0,.22)}
.pool-card-header{border-bottom-color:#2b2b2b;background:#171717}
.pool-card-header h2{color:#fff}
.pool-card-header p,.pool-match-date,.pool-live-timer-label{color:var(--ph-muted)}
.pool-card-body{background:transparent}
.pool-empty{color:#8e8e8e}
.pool-next{border:1px solid #3b2b1d;background:radial-gradient(circle at 10% 0%,#43260c 0,#21170f 28%,#111 75%);box-shadow:inset 4px 0 0 var(--ph-orange)}
.pool-next-kicker{color:#ffb65a;opacity:1}
.pool-next-title{color:#fff}
.pool-next-date{color:#c9c9c9;opacity:1}
button{background:linear-gradient(180deg,#ff9d1a,#e77d00);color:#111;box-shadow:0 2px 0 rgba(0,0,0,.3);font-weight:800}
button:hover{background:#ffad38;color:#090909}
.pool-button-secondary{border-color:#594139;background:#1b1412;color:#ff9a8f}
.pool-button-secondary:hover{background:#2a1815;color:#ffb4ac}
select,input[type="text"],input[type="number"],input[type="date"]{border:1px solid #3b3b3b;background:#0e0e0e;color:#f5f5f5;color-scheme:dark}
.pool-form-group label{color:#dedede}
.pool-table{color:#eaeaea}
.pool-table th,.pool-table td{border-bottom-color:#292929}
.pool-table th{background:#101010;color:#9d9d9d}
.pool-table tbody tr:hover td{background:#1d1712}
.pool-position{background:#292929;color:#ddd}
.pool-position.first{background:var(--ph-orange);color:#111;box-shadow:0 0 0 3px rgba(247,144,9,.14)}
.pool-player-link{color:#f3f3f3!important}
.pool-vs{background:#080808;color:var(--ph-orange);border:1px solid #3c2a19}
.pool-player{color:#fff}
.pool-list li,.pool-player-list li{border-bottom-color:#292929}
.pool-badge{background:#35230f;color:#ffb65a;border:1px solid #5b3b16}
.pool-message{border:1px solid #25553e;background:#10291e;color:#75e0aa}
.pool-error{border:1px solid #63312c;background:#2a1513;color:#ff9f95}
.pool-live-timer-time{color:var(--ph-orange)}
.pool-last-frame{border-color:#303030;background:#101010}
.pool-last-frame-label{color:#969696}
.pool-last-frame-text{color:#f3f3f3}
/* Dark-theme contrast for the two latest-result cards. */
.pool-last-result-score strong{color:#f5f5f5!important}
.pool-last-result-score .score{background:#080808!important;border-color:#5b3b16!important;color:#ffad38!important;box-shadow:0 0 0 2px rgba(247,144,9,.08)}
.pool-latest-frame-score{color:#f5f5f5!important}
.pool-latest-frame-score strong{color:#f5f5f5!important}
.pool-latest-frame-score .score{background:#080808!important;border-color:#5b3b16!important;color:#ffad38!important;box-shadow:0 0 0 2px rgba(247,144,9,.08)}
.pool-table tr.pool-unavailable td{background:#181818;color:#777}
.pool-table tr.pool-unavailable .pool-player-link{color:#858585!important}
.pool-table tr.pool-unavailable .pool-position{background:#292929;color:#888}
.pool-unavailable-label{background:#2a2a2a;color:#aaa}
.pool-form-dot.win{box-shadow:0 0 0 2px rgba(18,183,106,.15)}
.pool-form-dot.loss{box-shadow:0 0 0 2px rgba(240,68,56,.15)}
hr{border-color:#303030!important}
a{color:#ffad38}
/* Light inline helper panels used by session/admin/history become dark too. */
.pool-card [style*="background:#fff"],.pool-card [style*="background: #fff"]{background:#181818!important;color:#eee!important}
.pool-card [style*="background:#f9fafb"],.pool-card [style*="background: #f9fafb"]{background:#1c1c1c!important;color:#eee!important}
.pool-card [style*="color:#667085"],.pool-card [style*="color: #667085"]{color:#aaa!important}
.pool-card [style*="color:#475467"],.pool-card [style*="color: #475467"]{color:#bbb!important}
.pool-card [style*="border:1px solid #d0d5dd"]{border-color:#3a3a3a!important}

/* Full Pothouse end-of-league celebration */
.pool-champion-card{position:relative;overflow:hidden;border:1px solid #754611!important;background:radial-gradient(circle at 50% 0%,#4a2b0b 0,#21170e 34%,#0d0d0d 78%)!important;box-shadow:0 14px 42px rgba(0,0,0,.42),0 0 34px rgba(247,144,9,.10)!important}
.pool-champion-summary{padding:26px 24px;position:relative;z-index:2;display:flex;align-items:center;gap:26px;text-align:left}
.pool-champion-cup-wrap{position:relative;flex:0 0 128px;width:128px;height:128px;display:flex;align-items:center;justify-content:center}
.pool-champion-cup-wrap .cup{font-size:104px;line-height:1;filter:drop-shadow(0 0 14px rgba(247,144,9,.32))}
.pool-cup-logo{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:48px;height:30px;object-fit:contain;padding:2px 3px;border-radius:5px;background:#0b0b0b;border:1px solid rgba(247,144,9,.75);box-shadow:0 2px 8px rgba(0,0,0,.5)}
.pool-champion-copy{min-width:0;flex:1}
.pool-champion-kicker{margin-top:0;color:#ff9d1c;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.16em}
.pool-champion-name{margin:7px 0 5px!important;font-size:34px!important;color:#fff!important;text-shadow:0 2px 18px rgba(247,144,9,.22)}
.pool-champion-stats{margin:0!important;color:#c8c8c8!important;font-weight:700}
.pool-champion-tagline{margin-top:13px;color:#ffad38;font-size:13px;font-weight:900}
.pool-victory-overlay{position:fixed;inset:0;z-index:99999;background:radial-gradient(circle at 50% 36%,rgba(86,47,8,.97) 0,rgba(15,15,15,.985) 45%,rgba(0,0,0,.995) 100%);display:flex;align-items:center;justify-content:center;padding:20px;overflow:hidden;animation:poolVictoryIn .45s ease-out}
.pool-victory-panel{position:relative;z-index:4;width:min(760px,94vw);text-align:center;padding:24px 24px 30px;border:1px solid rgba(247,144,9,.5);border-radius:24px;background:rgba(10,10,10,.82);box-shadow:0 24px 80px rgba(0,0,0,.7),0 0 65px rgba(247,144,9,.16);backdrop-filter:blur(6px)}
.pool-victory-logo{display:block;width:min(440px,82vw);max-height:230px;object-fit:contain;margin:0 auto -5px;filter:drop-shadow(0 10px 30px rgba(0,0,0,.6))}
.pool-victory-eyebrow{color:#ff9d1c;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.22em;margin-top:5px}
.pool-victory-title{margin:7px 0 0;color:#fff;font-size:clamp(27px,5vw,48px);line-height:1.05;text-transform:uppercase;letter-spacing:.03em}
.pool-victory-name{margin:8px 0 4px;color:#ff9d1c;font-size:clamp(40px,8vw,72px);font-weight:1000;line-height:1;text-shadow:0 0 24px rgba(247,144,9,.28)}
.pool-victory-stats{color:#d6d6d6;font-size:15px;font-weight:800;margin:14px 0 0}
.pool-victory-line{width:120px;height:3px;border-radius:999px;background:#f79009;margin:18px auto;box-shadow:0 0 16px rgba(247,144,9,.55)}
.pool-victory-tag{color:#fff;font-weight:900;font-size:16px}.pool-victory-tag span{color:#ff9d1c}
.pool-victory-close{margin-top:22px;padding:12px 24px;border:1px solid #f79009!important;background:#f79009!important;color:#0b0b0b!important;border-radius:10px;font-weight:950;cursor:pointer;box-shadow:0 0 20px rgba(247,144,9,.18)}
.pool-victory-cup-wrap{position:relative;width:92px;height:92px;margin:4px auto 8px;display:flex;align-items:center;justify-content:center;animation:poolCup 1.3s ease-in-out infinite alternate}
.pool-victory-cup{font-size:78px;line-height:1;filter:drop-shadow(0 0 14px rgba(247,144,9,.35))}
.pool-victory-cup-wrap .pool-cup-logo{width:36px;height:23px;top:47%}
.pool-confetti{position:absolute;top:-12vh;width:9px;height:18px;border-radius:2px;opacity:.95;animation:poolConfettiFall linear forwards;z-index:2}
.pool-confetti.ball{width:15px;height:15px;border-radius:50%;background:#f79009!important;border:2px solid #fff;box-shadow:0 0 0 2px #f79009}
@keyframes poolVictoryIn{from{opacity:0;transform:scale(1.025)}to{opacity:1;transform:scale(1)}}
@keyframes poolCup{from{transform:translateY(0) scale(1)}to{transform:translateY(-5px) scale(1.06)}}
@keyframes poolConfettiFall{0%{transform:translate3d(0,-10vh,0) rotate(0deg)}100%{transform:translate3d(var(--drift),115vh,0) rotate(900deg)}}
@media(max-width:650px){.pool-victory-panel{padding:18px 14px 24px}.pool-victory-logo{max-height:180px}.pool-victory-stats{font-size:13px}.pool-victory-cup{font-size:66px}.pool-champion-summary{display:block;text-align:center}.pool-champion-cup-wrap{margin:0 auto 12px}}

@media(max-width:900px){
    .pool-topbar{min-height:0}
    .pool-brand-logo{width:100%;align-items:center}
    .pothouse-logo{width:min(430px,62vw);max-height:none}
}
@media(max-width:650px){
    .pool-brand-logo{display:block}
    .pothouse-logo{width:100%;max-width:430px;margin:0 auto}
    .pool-brand-rules{margin-top:8px;padding:10px 0 0;border-left:0;border-top:1px solid #34291f;text-align:center}
    .pool-brand-rules p{max-width:none}
    .pool-topbar>div:last-child{width:100%}
}

/* ==========================================================
   POT HOUSE MOBILE LAYOUT — 24 September 2026
   Presentation only: no changes to fixtures, forms or scoring.
   ========================================================== */
@media (max-width: 900px) {
    .pool-page { width:100%; max-width:100%; padding:14px 12px 36px; }
    .pool-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
    .pool-grid > *, .pool-card, .pool-card-body { min-width:0; }
    .pool-topbar { gap:14px; padding:14px; }
    .pool-topbar > div:last-child { justify-content:flex-start !important; }
    .pool-select { min-width:0; max-width:100%; }
    .pool-player-modal-dialog { max-height:calc(100dvh - 24px); }
    .pool-table-wrap { width:100%; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; }
    .pool-table { min-width:740px; }
    .pool-table th, .pool-table td { padding:11px 9px; }
    .pool-table th:nth-child(2), .pool-table td:nth-child(2) { position:sticky; left:0; z-index:1; background:#151515; box-shadow:1px 0 0 #383838; }
    .pool-table thead th:nth-child(2) { z-index:2; background:#101010; }
    .pool-table tr.pool-unavailable td:nth-child(2) { background:#181818; }
}
@media (max-width: 650px) {
    html, body { max-width:100%; overflow-x:clip; }
    .pool-page { padding:10px 9px 30px; }
    .pool-topbar { border-radius:13px; padding:13px 12px; gap:12px; }
    .pool-brand-logo { display:flex; flex-direction:column; align-items:center; gap:6px; }
    .pothouse-logo { width:min(100%,330px); max-height:118px; object-position:center; }
    .pool-brand-rules { width:100%; margin:0; padding:9px 0 0; }
    .pool-brand-rules p { margin:4px 0 0; font-size:12px; line-height:1.45; }
    .pool-topbar > div:last-child { width:100%; display:flex; justify-content:center !important; gap:9px !important; }
    .pool-topbar > div:last-child > div:first-child { max-width:100%; white-space:normal !important; justify-content:center; }
    .pool-select { width:100%; }
    .pool-select select { width:100%; min-height:44px; }
    .pool-card { margin-bottom:13px; border-radius:12px; }
    .pool-card-header { padding:13px 14px; }
    .pool-card-header h2 { font-size:18px; }
    .pool-card-body { padding:13px; }
    .pool-next { padding:17px 14px; }
    .pool-next-title { font-size:clamp(20px,6vw,27px); line-height:1.2; overflow-wrap:anywhere; }
    .pool-playing-header { display:flex; flex-direction:row; align-items:center; gap:8px; }
    .pool-playing-header-copy { min-width:0; }
    .pool-live-timer-header { margin:0; text-align:right; flex-shrink:0; }
    .pool-live-timer-header .pool-live-timer-label { font-size:10px; }
    .pool-live-timer-header .pool-live-timer-time { font-size:25px; }
    .pool-match { padding:15px 10px; }
    .pool-playing-names { width:100%; gap:7px !important; align-items:center !important; }
    .pool-playing-names > .pool-player { min-width:0 !important; flex:1 1 0; font-size:clamp(15px,4.5vw,20px) !important; overflow-wrap:anywhere; }
    .pool-playing-names > .pool-vs { min-width:38px; padding:6px 5px !important; font-size:12px; flex:0 0 auto; }
    .pool-match-line { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:6px; }
    .pool-match-line .left { text-align:right; }
    .pool-match-line .right { text-align:left; }
    .pool-match-line .pool-player { font-size:clamp(15px,4.5vw,19px); overflow-wrap:anywhere; }
    .pool-match-line .pool-vs { min-width:38px; padding:6px; }
    .pool-result-form { grid-template-columns:minmax(0,1fr) 54px 12px 54px; gap:7px; }
    .pool-result-form button { grid-column:1/-1; }
    .pool-result-form input { min-width:0; padding:10px 4px; }
    .pool-card button:not(.pool-player-link):not(.pool-player-modal-close), .pool-card input[type="submit"] { min-height:44px; }
    .pool-table { min-width:730px; font-size:12px; }
    .pool-table th, .pool-table td { padding:10px 8px; }
    .pool-table .pool-player-link { text-align:left; overflow-wrap:anywhere; }
    .pool-form-dot { width:18px; height:18px; }
    .pool-player-modal { padding:8px; align-items:center; }
    .pool-player-modal-dialog { width:100%; max-height:calc(100dvh - 16px); }
    .pool-player-modal-head { padding:13px; }
    .pool-player-modal-body { padding:12px; }
    .pool-headtohead-summary { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
    .pool-headtohead-stat { padding:9px 5px; }
    .pool-headtohead-stat strong { font-size:19px; }
    .pool-headtohead-stat span { font-size:10px; }
    .pool-frame-history-row { grid-template-columns:56px minmax(0,1fr); gap:6px; }
    .pool-victory-overlay { padding:9px; }
    .pool-victory-panel { max-height:calc(100dvh - 18px); overflow-y:auto; }
}
@media (max-width: 360px) {
    .pool-page { padding-inline:6px; }
    .pool-card-body { padding:10px; }
    .pool-playing-header { align-items:flex-start; }
    .pool-live-timer-header .pool-live-timer-time { font-size:22px; }
    .pool-playing-names > .pool-player { font-size:15px !important; }
}

/* Player avatars — mobile-friendly and shared across leagues */
.pool-avatar{display:inline-block;width:36px;height:36px;flex:0 0 36px;vertical-align:middle;border-radius:50%;object-fit:cover;object-position:center;background:#292929;border:2px solid #f79009;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.pool-avatar-large{width:52px;height:52px;vertical-align:middle}
.pool-avatar-empty{display:inline-flex;align-items:center;justify-content:center;font-size:19px}
.pool-avatar-large.pool-avatar-empty{font-size:25px}
.pool-player-link{display:inline-flex;align-items:center;gap:9px;text-align:left}
.pool-next-title .pool-avatar{margin:0 4px}
.pool-avatar-form input[type=file]{display:block;width:100%;max-width:100%;padding:10px;border:1px dashed #65503b;border-radius:10px;background:#1c1c1c;color:#f4f4f4}
.pool-avatar-form small{display:block;margin-top:6px;color:#aaa}
@media(max-width:600px){.pool-avatar{width:32px;height:32px;flex-basis:32px}.pool-avatar-large{width:43px;height:43px}.pool-next-title{font-size:21px;line-height:1.6}.pool-player-link{gap:6px}}

/* League champion celebration avatar */
.pool-victory-champion-avatar{display:flex;justify-content:center;margin:12px auto 10px}
.pool-victory-champion-avatar .pool-avatar{width:120px;height:120px;min-width:120px;border:4px solid #f79009;border-radius:50%;object-fit:cover;box-shadow:0 0 0 7px rgba(247,144,9,.13),0 0 32px rgba(247,144,9,.4);font-size:55px}
@media(max-width:650px){.pool-victory-champion-avatar .pool-avatar{width:88px;height:88px;min-width:88px;font-size:42px}}

/* Celebration: compact Pothouse logo in upper-left, champion portrait centre stage */
.pool-victory-panel{padding-top:22px}
.pool-victory-logo{position:absolute;top:16px;left:18px;width:clamp(90px,18vw,150px);height:auto;max-height:72px;margin:0;object-position:left top;z-index:2}
.pool-victory-hero{display:flex;align-items:center;justify-content:center;margin:55px auto 8px}
.pool-victory-hero .pool-victory-champion-avatar{margin:0}
.pool-victory-hero .pool-avatar{width:clamp(170px,30vw,245px);height:clamp(170px,30vw,245px);min-width:0;flex:0 0 auto;border:5px solid #f79009;object-fit:cover;object-position:center;box-shadow:0 0 0 9px rgba(247,144,9,.12),0 0 45px rgba(247,144,9,.42);font-size:86px}
.pool-victory-panel>.pool-victory-cup{font-size:44px;line-height:1;margin:12px auto 0;animation:none}
@media(max-width:650px){.pool-victory-logo{top:12px;left:12px;width:100px;max-height:48px}.pool-victory-hero{margin-top:50px}.pool-victory-hero .pool-avatar{width:clamp(145px,45vw,190px);height:clamp(145px,45vw,190px);min-width:0;font-size:65px}.pool-victory-panel>.pool-victory-cup{font-size:36px}}

/* League celebration: small logo left, league-complete label right, portrait on trophy. */
.pool-victory-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-height:66px;text-align:right}
.pool-victory-topline .pool-victory-logo{position:static;width:clamp(95px,19vw,150px);max-height:66px;margin:0;object-fit:contain;object-position:left top;flex-shrink:0}
.pool-victory-topline .pool-victory-eyebrow{margin:4px 0 0;padding:7px 10px;border:1px solid rgba(247,144,9,.45);border-radius:999px;background:rgba(247,144,9,.12);font-size:clamp(10px,2vw,13px);letter-spacing:.1em;white-space:nowrap}
.pool-victory-hero{margin:0 auto 0;display:flex;justify-content:center}
.pool-victory-trophy{position:relative;width:min(330px,68vw);aspect-ratio:360/390;filter:drop-shadow(0 8px 26px rgba(247,144,9,.35))}
.pool-victory-trophy-art{display:block;width:100%;height:100%}
.pool-victory-trophy .pool-victory-champion-avatar{position:absolute;top:14%;left:50%;transform:translateX(-50%);width:43%;height:37%;margin:0;display:flex;align-items:center;justify-content:center}
.pool-victory-trophy .pool-avatar{width:100%;height:100%;min-width:0;aspect-ratio:1;border:5px solid #fff1b2;border-radius:50%;object-fit:cover;box-shadow:0 0 0 4px #9b5c0c,0 6px 18px rgba(0,0,0,.45);font-size:clamp(36px,8vw,70px)}
@media(max-width:650px){.pool-victory-panel{padding:16px 12px 22px}.pool-victory-topline{min-height:48px}.pool-victory-topline .pool-victory-logo{width:100px;max-height:48px}.pool-victory-trophy{width:min(280px,76vw)}.pool-victory-title{font-size:clamp(23px,6vw,34px)}.pool-victory-name{font-size:clamp(36px,10vw,54px)}}

/* Bigger champion portrait on the League Complete trophy. */
.pool-victory-trophy .pool-victory-champion-avatar{
    top:7%;
    width:63%;
    height:53%;
    z-index:2;
}
.pool-victory-trophy .pool-avatar{
    border-width:5px;
    font-size:clamp(52px,11vw,94px);
}
@media(max-width:650px){
    .pool-victory-trophy .pool-victory-champion-avatar{
        top:7%;
        width:63%;
        height:53%;
    }
}

/* Taller champion portrait on the trophy, retaining the enlarged width. */
.pool-victory-trophy .pool-victory-champion-avatar{
    top:4%;
    width:63%;
    height:65%;
}
.pool-victory-trophy .pool-avatar{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 22%;
}
@media(max-width:650px){
    .pool-victory-trophy .pool-victory-champion-avatar{
        top:4%;
        width:63%;
        height:65%;
    }
}

/* Pothouse orange 13-ball championship trophy */
.pool-victory-trophy{width:min(390px,78vw);aspect-ratio:420/460;filter:drop-shadow(0 10px 32px rgba(247,144,9,.43))}
.pool-victory-trophy .pool-victory-champion-avatar{position:absolute;top:14%;left:50%;transform:translateX(-50%);width:52.8%;height:48.3%;z-index:2;overflow:hidden;border-radius:50%;border:7px solid #f8c44b;background:#251a0f;box-shadow:0 0 0 4px #9a5907,0 8px 22px rgba(0,0,0,.5)}
.pool-victory-trophy .pool-avatar{display:block;width:100%;height:100%;min-width:0;min-height:0;border:0;border-radius:50%;object-fit:cover;object-position:center 22%;box-shadow:none}
@media(max-width:650px){.pool-victory-trophy{width:min(340px,88vw)}.pool-victory-trophy .pool-victory-champion-avatar{top:14%;width:52.8%;height:48.3%;border-width:5px}}

/* Full Match Form — explicit winners and player-oriented scores */
.ph-form-explainer{margin:0 0 15px;color:#c9c9c9;font-size:13px;line-height:1.5}
.ph-form-match{padding:14px;margin:0 0 12px;border:1px solid #454545;border-left:5px solid #f04438;border-radius:13px;background:#1b1b1b;color:#fff}
.ph-form-match.ph-form-win{border-left-color:#12b76a}
.ph-form-match-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}
.ph-form-outcome{display:inline-block;padding:5px 11px;border-radius:99px;background:rgba(240,68,56,.18);color:#ffaaa4;font-size:12px;font-weight:900;letter-spacing:.07em}
.ph-form-win .ph-form-outcome{background:rgba(18,183,106,.18);color:#75e0a7}
.ph-form-date{color:#b8b8b8;font-size:12px}
.ph-form-match-main{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px}
.ph-form-contender{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;text-align:center;color:#c6c6c6;font-size:14px;font-weight:800;overflow-wrap:anywhere}
.ph-form-contender.is-winner{color:#75e0a7}
.ph-form-contender .pool-avatar{width:53px;height:53px;object-fit:cover;border-radius:50%;border:2px solid #555}
.ph-form-contender.is-winner .pool-avatar{border-color:#12b76a;box-shadow:0 0 0 3px rgba(18,183,106,.17)}
.ph-form-contender small{display:block;margin-top:3px;color:#a9a9a9;font-size:10px;font-weight:400}
.ph-form-score{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:29px;font-weight:900;font-variant-numeric:tabular-nums}
.ph-form-score strong{color:#eee}.ph-form-score strong.is-winner{color:#75e0a7}.ph-form-score span{color:#777}
.ph-form-winner{margin-top:13px;padding:9px 11px;border-radius:8px;background:#252525;text-align:center;color:#75e0a7;font-size:13px;font-weight:800}
@media(max-width:420px){.ph-form-match{padding:11px}.ph-form-contender .pool-avatar{width:43px;height:43px}.ph-form-score{font-size:24px;gap:4px}.ph-form-contender{font-size:12px}}

/* Recent match form at the top of the full match form modal */
.ph-form-recent{padding:15px 17px;margin:0 0 15px;background:#202020;border:1px solid #414141;border-radius:13px;color:#f4f4f4}
.ph-form-recent-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.ph-form-recent-heading strong{font-size:16px}
.ph-form-recent-heading span{color:#c9c9c9;font-size:12px}
.ph-form-recent-balls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ph-form-recent-ball{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;font-size:13px;font-weight:900;color:#fff;box-shadow:inset -3px -4px 7px rgba(0,0,0,.2)}
.ph-form-recent-ball.win{background:#12b76a}
.ph-form-recent-ball.loss{background:#f04438}
.ph-form-recent small{display:block;margin-top:9px;color:#aaa;font-size:11px}
@media(max-width:480px){.ph-form-recent{padding:12px}.ph-form-recent-ball{width:34px;height:34px}}

/* Full Match Form: use the available screen width without affecting other modals. */
.pool-form-modal{padding:12px;}
.pool-form-modal .pool-player-modal-dialog{
    width:100%;max-width:1400px;max-height:calc(100dvh - 24px);
}
.pool-form-modal .pool-player-modal-body{overflow-y:auto;min-height:0;}
.ph-form-match-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.ph-form-match-grid .ph-form-match{margin:0;min-width:0;}
@media(max-width:1100px){.ph-form-match-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){
    .pool-form-modal{padding:6px;}
    .pool-form-modal .pool-player-modal-dialog{max-height:calc(100dvh - 12px);}
    .pool-form-modal .pool-player-modal-head{padding:14px;}
    .pool-form-modal .pool-player-modal-body{padding:12px;}
    .ph-form-match-grid{grid-template-columns:minmax(0,1fr);gap:10px;}
}

/* Champion summary: match the orange 13-ball trophy used in Replay celebration. */
.pool-champion-summary .pool-champion-13ball-trophy{
    position:relative;flex:0 0 clamp(165px,23vw,240px);width:clamp(165px,23vw,240px);
    height:auto;aspect-ratio:420/460;display:block;
    filter:drop-shadow(0 8px 20px rgba(247,144,9,.35));
}
.pool-champion-13ball-trophy .pool-victory-trophy-art{display:block;width:100%;height:100%}
.pool-champion-trophy-avatar{
    position:absolute;top:14%;left:50%;transform:translateX(-50%);
    width:52.8%;height:48.3%;overflow:hidden;border-radius:50%;
    border:5px solid #f8c44b;background:#251a0f;
    box-shadow:0 0 0 3px #9a5907,0 7px 18px rgba(0,0,0,.5);
    display:flex;align-items:center;justify-content:center;
}
.pool-champion-trophy-avatar .pool-avatar{
    display:block;width:100%;height:100%;min-width:0;min-height:0;
    border:0;border-radius:50%;object-fit:cover;object-position:center 22%;
    box-shadow:none;font-size:clamp(32px,6vw,68px);
}
@media(max-width:650px){
    .pool-champion-summary .pool-champion-13ball-trophy{
        width:min(230px,65vw);margin:0 auto 12px;
    }
}

/* Keep the champion's portrait perfectly circular in both trophy views. */
.pool-champion-13ball-trophy .pool-champion-trophy-avatar,
.pool-victory-trophy .pool-victory-champion-avatar {
    width:52.8%;
    height:auto;
    aspect-ratio:1 / 1;
    box-sizing:border-box;
    border-radius:50%;
    overflow:hidden;
}
.pool-champion-13ball-trophy .pool-champion-trophy-avatar .pool-avatar,
.pool-victory-trophy .pool-victory-champion-avatar .pool-avatar {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    border-radius:50%;
    object-fit:cover;
    object-position:center 22%;
}

/* League table: frame history opens from the frames-played figure, not the name. */
.pool-standings-player{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:inherit;white-space:nowrap}
.pool-frame-history-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 7px;border:1px solid rgba(251,176,59,.30);border-radius:8px;background:rgba(251,176,59,.08);color:#fdb022!important;text-decoration:none;white-space:nowrap;min-height:34px}
.pool-frame-history-trigger:hover,.pool-frame-history-trigger:focus-visible{background:rgba(251,176,59,.19);border-color:#fdb022;color:#ffd28b!important}
.pool-frame-history-hint{font-size:11px;opacity:.85}
@media(max-width:760px){.pool-standings-player{white-space:normal}.pool-frame-history-trigger{min-width:44px;min-height:44px}}
