.flow-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0}.flow-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}.flow-form{display:grid;gap:18px;margin-top:24px;max-width:640px}.flow-form label{display:grid;gap:8px;font-weight:600}.flow-money{display:flex;flex-wrap:wrap;gap:28px;margin:24px 0}.flow-money small,.flow-money strong{display:block}.flow-money strong{font-size:1.5rem}.payment-instructions{background:#f1f6f3;padding:22px;border-radius:16px;margin:20px 0}.gcash-number{font-size:1.6rem;letter-spacing:2px;font-weight:700}.payment-qr{width:220px;max-width:100%;border-radius:12px}.flow-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.live-pill{color:#176b46;background:#e7f5eb;border-radius:30px;padding:8px 14px;font-size:.8rem}.match-card{border:1px solid #dce5de;border-radius:18px;padding:22px;margin:16px 0;background:#fafcf9}.match-card.is-live{border:2px solid #23805a;background:#edf7ef}.match-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;text-align:center;margin:20px 0}.match-score{display:block;font-size:3.5rem;font-weight:800;line-height:1.2}.match-controls{display:flex;flex-wrap:wrap;gap:10px}.match-meta{color:#627166;font-size:.9rem}.score-error{color:#a22424;padding:12px;background:#fff0ee;border-radius:10px}.booking-detail-link{display:inline-block;margin-top:14px;font-weight:700}@media(max-width:760px){.flow-grid{grid-template-columns:1fr}.flow-heading{align-items:flex-start;flex-direction:column}.match-card{padding:16px}.match-score{font-size:2.5rem}}
.player-mode .player-app .flow-grid{grid-template-columns:minmax(0,1fr);gap:16px}
.player-mode .player-app .flow-grid>*{min-width:0}
.player-mode .player-app .flow-heading{flex-direction:column;align-items:flex-start;gap:12px;margin:22px 0}
.player-mode .player-app .flow-heading>div{min-width:0;width:100%}
.player-mode .player-app .flow-heading h1{overflow-wrap:anywhere;margin-bottom:10px}
.player-mode .player-app .flow-heading p{font-size:13px;line-height:1.6;margin-bottom:0}
.player-mode .player-app .flow-money{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;margin:20px 0}
.player-mode .player-app .flow-money>div:last-child{grid-column:1/-1;border-top:1px solid #e5ebe6;padding-top:14px}
.player-mode .player-app .flow-money strong{font-size:22px;overflow-wrap:anywhere}
.player-mode .player-app .flow-money small{font-size:12px;line-height:1.5;margin-bottom:4px}
.player-mode .player-app .flow-form{width:100%;max-width:100%;gap:16px}
.player-mode .player-app .flow-form label{min-width:0;font-size:13px;line-height:1.6}
.player-mode .player-app .flow-form .form-control,.player-mode .player-app .flow-form .form-select{width:100%;min-width:0;max-width:100%;font-size:16px;min-height:48px}
.player-mode .player-app .flow-form input[type=file]{font-size:13px;padding:10px}
.player-mode .player-app .flow-form .btn,.player-mode .player-app .flow-actions .btn{width:100%;white-space:normal;min-height:48px;padding:13px 14px}
.player-mode .player-app .payment-instructions{padding:18px;margin:18px 0;overflow-wrap:anywhere}
.player-mode .player-app .payment-instructions h2{font-size:18px;line-height:1.4;margin-bottom:12px}
.player-mode .player-app .payment-instructions p{font-size:13px}
.player-mode .player-app .payment-instructions .gcash-number{font-size:clamp(19px,5vw,25px);letter-spacing:1px;line-height:1.5}
.player-mode .player-app .payment-qr{display:block;width:220px;max-width:100%;height:auto;margin:16px auto}
.player-mode .player-app .panel p,.player-mode .player-app .panel li{overflow-wrap:anywhere}
.player-mode .player-app .flow-actions{display:grid;grid-template-columns:minmax(0,1fr)}
.player-mode .player-app .match-card{padding:16px;min-width:0}
.player-mode .player-app .match-teams{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px}
.player-mode .player-app .match-teams>div{min-width:0;overflow-wrap:anywhere;font-size:13px}
.player-mode .player-app .match-score{font-size:40px}
.player-mode .player-app .match-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.player-mode .player-app .match-controls .btn{white-space:normal;padding:12px 8px;min-width:0;min-height:48px}
.player-mode .player-app .match-controls .form-select{grid-column:1/-1;width:100%!important;min-width:0;font-size:16px}
.player-mode .player-app .live-pill{font-size:11px;white-space:normal}
.player-mode .player-app .flow-grid .panel>form>.btn{width:100%;min-height:48px;white-space:normal}
.owner-next-step{margin:0 0 24px;background:#f3f9f4;border-color:#c9ddce}
.owner-next-step h2{font-size:24px;margin-bottom:18px}
.owner-next-step h3{font-size:19px;margin-top:20px}
.owner-next-step .flow-form{margin-top:16px}
.owner-next-step .flow-form .btn{white-space:normal}
.booking-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:18px 0 24px;gap:12px}
.booking-progress li{border:1px solid #dbe5dc;background:#fff;padding:12px;border-radius:10px;font-size:13px;font-weight:650;color:#718277}
.booking-progress li.done{border-color:#8fc6a0;background:#dfefe3;color:#23663d}
@media(max-width:650px){.booking-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-next-step .btn{width:100%}}

.received-payment{border:1px solid #c9ddce;background:#fff;border-radius:16px;padding:22px;margin-bottom:24px}.received-payment summary{font-size:20px;font-weight:750;color:#243e32}.received-payment p{margin-top:12px}.booking-clock{background:#243e32;color:white;border-radius:12px;padding:14px 18px;font-size:22px;font-weight:750;font-variant-numeric:tabular-nums;margin:18px 0 8px}.player-mode .booking-clock{font-size:20px}.payment-history{display:grid;gap:8px;padding:0;list-style:none}.payment-history li{padding:12px;background:#f4f8f4;border-radius:10px}
.receipt-preview-link{display:block;width:100%;max-width:420px;margin:18px 0}.receipt-preview{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;object-position:left top;background:#fff;border:1px solid #c9ddce;border-radius:12px;padding:8px}
.booking-category-nav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}.booking-category-nav a{padding:11px 16px;border:1px solid #d5e1d8;border-radius:10px;background:#fff;font-weight:700;font-size:13px}.booking-category-nav a:hover{background:#eaf4ed}.booking-category{margin-bottom:24px;scroll-margin-top:24px}.booking-category>h2{font-size:25px;margin-bottom:18px}.booking-category .eyebrow{margin-bottom:10px}.receipt-review-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:32px;align-items:start;border-top:1px solid #e4ebe5;padding-top:24px}.receipt-review-grid>div,.arrival-group-grid>div{min-width:0}.receipt-review-grid h3,.arrival-group-grid h3{font-size:19px;margin-bottom:12px}.owner-booking-layout .receipt-preview-link{max-width:340px;margin:14px 0}.owner-booking-layout .receipt-preview{max-height:360px;object-position:center}.receipt-decision{background:#f3f8f4;padding:22px;border:1px solid #dce7df;border-radius:14px}.receipt-decision .received-payment{padding:16px;margin-top:20px;margin-bottom:0}.receipt-decision .received-payment summary{font-size:16px}.receipt-decision .flow-form{max-width:100%;margin-top:16px}.receipt-decision .btn{width:100%;white-space:normal}.receipt-empty{background:#f5f7f5;border:1px dashed #cdd9cf;border-radius:12px;padding:24px}.arrival-group-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}.arrival-confirmed{color:#267346;font-weight:700}.booking-cancel-section{padding:18px;border-top:1px solid #dce4dd;margin-bottom:20px}.booking-cancel-section summary{color:#994e44;font-weight:700}.owner-booking-layout .flow-heading h1{font-size:clamp(25px,3vw,36px)}@media(max-width:800px){.receipt-review-grid,.arrival-group-grid{grid-template-columns:minmax(0,1fr);gap:24px}.booking-category-nav a{flex:1;text-align:center}.receipt-decision{padding:18px}.owner-booking-layout .flow-money{gap:16px}.booking-category>.flow-money strong{font-size:22px}}
.open-play-owner-players{margin-top:22px;padding-top:18px;border-top:1px solid #52705b}.open-play-owner-players h2{font-size:18px;margin:0 0 10px}.open-play-owner-players h2 small{font-size:13px;color:#b2cbb9}.open-play-no-players{padding:16px;border:1px dashed #5e7f62;border-radius:12px;background:#12382b;color:#bed5c3;font-size:13px;line-height:1.7;margin:0}

/* Pair each score with its team so wrapped names remain aligned on phones. */
[data-scoreboard] .court-results-table-wrap{max-width:100%;overflow-x:auto;margin:18px 0;border:1px solid #48745b;border-radius:16px;background:#0b2521;color:#edf9ee}
[data-scoreboard] .court-results-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;line-height:1.4;color:#edf9ee}
[data-scoreboard] .court-results-table caption{caption-side:top;padding:13px 12px;text-align:left;font-size:15px;font-weight:700;letter-spacing:-.3px;color:#edf9ee;background:#173b2d}
[data-scoreboard] .court-results-table th,[data-scoreboard] .court-results-table td{padding:12px 8px;border-bottom:1px solid #39604c;vertical-align:top;overflow-wrap:anywhere;text-align:left}
[data-scoreboard] .court-results-table thead th{padding-block:9px;background:#16392e;color:#c6ddce;font-size:10px;font-weight:600;letter-spacing:.2px}
[data-scoreboard] .court-results-table th:first-child{width:17%}
[data-scoreboard] .court-results-table th:nth-child(2){width:48%}
[data-scoreboard] .court-results-table th:nth-child(3){width:35%}
[data-scoreboard] .court-results-table tbody th{font-size:10px;font-weight:600;color:#b6cdbf;padding-top:18px;font-variant-numeric:tabular-nums}
[data-scoreboard] .court-results-team{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:8px;min-height:38px;color:#edf9ee}
[data-scoreboard] .court-results-team+.court-results-team{border-top:1px solid #365343;padding-top:7px;margin-top:7px}
[data-scoreboard] .court-results-name>span{display:block;font-weight:600;line-height:1.45}
[data-scoreboard] .court-results-table .court-results-name small{display:block;font-size:9px;font-weight:500;color:#a9c5b5;margin:0 0 3px}
[data-scoreboard] .court-results-points{text-align:center;font-size:20px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}
[data-scoreboard] .court-results-team.is-winner{color:#d4f59d}
[data-scoreboard] .court-results-table .court-results-winner,[data-scoreboard] .court-results-table .court-results-neutral{display:inline-block;font-size:10px;font-weight:650;line-height:1.4;padding:4px 6px;border-radius:7px;background:#253d33;color:#e5eadd}
[data-scoreboard] .court-results-table .court-results-winner{color:#dcf8af;background:#c6ed8820;border:1px solid #c6ed8835}
[data-scoreboard] .court-results-table .court-results-note{display:block;font-size:10px;color:#c3d8c9;line-height:1.5;margin-top:8px}
[data-scoreboard] .court-results-scorer{margin-top:9px;line-height:1.45}
[data-scoreboard] .court-results-scorer small{display:block;color:#a9c5b5;font-size:9px;margin-bottom:2px}
[data-scoreboard] .court-results-scorer span{display:block;color:#d9e9df;font-size:10px}
[data-scoreboard] .court-results-table tbody tr:nth-child(even){background:#17372d40}
[data-scoreboard] .court-results-table tbody tr:last-child>*{border-bottom:0}
@media(max-width:380px){[data-scoreboard] .court-results-table th,[data-scoreboard] .court-results-table td{padding-inline:7px}[data-scoreboard] .court-results-table{font-size:11px}[data-scoreboard] .court-results-team{gap:5px;grid-template-columns:minmax(0,1fr) 24px}[data-scoreboard] .court-results-table .court-results-winner,[data-scoreboard] .court-results-table .court-results-neutral{padding:5px;font-size:10px}}
/* Received payments must wrap long transfer references on narrow phones. */
.payment-history{min-width:0;grid-template-columns:minmax(0,1fr)}
.payment-history li{min-width:0;overflow-wrap:anywhere}
.received-payment{min-width:0;overflow-wrap:anywhere}
.receipt-decision .received-payment{padding:16px;margin-bottom:16px}
@media(max-width:380px){.receipt-decision{padding:14px}.received-payment summary{font-size:18px}}

body.venue-game-mode .received-payment summary{color:#d9f3b0}
body.venue-game-mode .payment-history li{background:#173d30;color:#edf9ee;border:1px solid #396752}
