/* ============================================================
   MASTERS POOL — STYLESHEET
   Color palette:
     Green:      #006747
     Dark green: #004d35
     Gold:       #FFD700
     Background: #ffffff
     Text:       #1a1a1a
     Light gray: #f5f5f5
     Border:     #e0e0e0
============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #006747;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================
   HEADER
============================================================ */

.site-header {
    background: #ffffff;
    border-bottom: 2px solid #006747;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-title a {
    color: #006747;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title-logo {
    height: 2rem;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #006747;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
}

.site-nav a:hover {
    border-bottom-color: #FFD700;
    text-decoration: none;
}

/* ============================================================
   MAIN
============================================================ */

.site-main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1.5rem 3rem;
}

/* ============================================================
   PAGE HERO
============================================================ */

.page-hero {
    text-align: center;
    padding: 2.5rem 1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.page-hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #006747;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1rem;
    color: #555;
}

/* ============================================================
   ERROR BANNER
============================================================ */

.error-banner {
    background: #fdf0ef;
    border: 1px solid #c0392b;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.error-banner ul {
    list-style: none;
    padding: 0;
}

.error-banner li {
    color: #c0392b;
    font-size: 0.9rem;
    padding: 0.2rem 0;
}

.error-banner li::before {
    content: "✕ ";
}

/* ============================================================
   RULES SECTION
============================================================ */

.rules-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.page-hero .rules-section {
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: left;
}

.page-hero .rules-note {
    font-size: 0.78rem;
    color: #888;
}

.rules-section summary {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #006747;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    background: #f9fdf9;
    border-bottom: 1px solid #e0e0e0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rules-section summary::before {
    content: "▶";
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.rules-section[open] summary::before {
    transform: rotate(90deg);
}

.rules-section summary::-webkit-details-marker {
    display: none;
}

.rules-content {
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

.rules-block {
    break-inside: avoid;
}

.rules-block--full {
    grid-column: 1 / -1;
}

.rules-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #006747;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}

.rules-subhead {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #888;
}

.rules-content ol,
.rules-content ul {
    padding-left: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333;
}

.rules-content a {
    color: #006747;
}

.payout-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.payout-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
}

.payout-list li span:last-child {
    font-weight: 700;
    color: #006747;
}

.rules-note {
    font-size: 0.78rem;
    color: #888;
    font-style: italic;
    margin-top: 0.4rem;
}

/* ============================================================
   BUILDER LAYOUT
============================================================ */

.builder-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

/* ============================================================
   PLAYER LIST
============================================================ */

.player-list-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #006747;
    margin-bottom: 0.75rem;
}

#player-search {
    width: 100%;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    outline: none;
    transition: border-color 0.15s;
}

#player-search:focus {
    border-color: #006747;
}

.player-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.player-table thead th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #006747;
    border-bottom: 2px solid #006747;
    padding: 0.5rem 0.75rem;
}

.player-table thead th:first-child {
    width: 36px;
}

.player-table thead th:last-child {
    text-align: right;
}

.player-row td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.player-row:hover td {
    background: #f9fdf9;
}

.player-row.disabled td {
    opacity: 0.4;
}

.player-row.disabled .player-name {
    color: #999;
}

.player-name {
    font-weight: 400;
}

.player-salary {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #555;
    font-size: 0.875rem;
}

.player-checkbox {
    accent-color: #006747;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ============================================================
   TEAM SUMMARY SIDEBAR
============================================================ */

.mobile-drawer-handle {
    display: none;
}

.drawer-content {
    display: block;
}

.team-summary {
    position: sticky;
    top: 80px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #006747;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.team-summary h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #006747;
    margin-bottom: 1rem;
}

.roster-slots {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.roster-slot {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.35rem;
    background: #f5f5f5;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s;
}

.roster-slot.empty {
    color: #aaa;
    font-style: italic;
}

.roster-slot:not(.empty) {
    background: #edf7f2;
    color: #006747;
    font-weight: 700;
}

.salary-display {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 1rem;
}

.salary-display strong {
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

.team-summary hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1rem 0;
}

/* ============================================================
   SUBMISSION FIELDS
============================================================ */

.submission-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.submission-fields label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #006747;
}

.submission-fields input[type="text"],
.submission-fields input[type="email"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-family: 'Lato', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s;
}

.submission-fields input[type="text"]:focus,
.submission-fields input[type="email"]:focus {
    border-color: #006747;
}

.venmo-label {
    display: block;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #333 !important;
    cursor: pointer;
    line-height: 1.4;
    margin-top: 0.25rem;
}

.venmo-label input[type="checkbox"] {
    accent-color: #006747;
    margin-right: 0.4rem;
    vertical-align: middle;
}

/* ============================================================
   SUBMIT BUTTON
============================================================ */

.submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: #006747;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover:not(:disabled) {
    background: #004d35;
    transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.submit-hint {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 0.5rem;
    min-height: 1rem;
    line-height: 1.4;
}

/* ============================================================
   CONFIRMATION PAGE
============================================================ */

.confirmation-hero {
    border-bottom: none;
    padding-bottom: 1rem;
}

.confirmation-card {
    max-width: 540px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #006747;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.confirmation-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #006747;
    margin-bottom: 1rem;
}

.confirmation-roster {
    list-style: none;
    padding: 0;
    margin-bottom: 1.25rem;
}

.confirmation-roster li {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.cr-salary {
    color: #555;
    font-variant-numeric: tabular-nums;
}

.confirmation-total {
    font-size: 1rem;
    font-weight: 700;
    color: #006747;
    margin-bottom: 1.5rem;
}

.confirmation-reminders {
    background: #f9fdf9;
    border-radius: 4px;
    padding: 1rem 1.25rem;
}

.confirmation-reminders h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #006747;
    margin-bottom: 0.6rem;
}

.confirmation-reminders ul {
    padding-left: 1.2rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #333;
}

/* ============================================================
   LINEUPS PAGE
============================================================ */

.lineups-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.lineups-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

/* Header */
.lineups-table thead tr {
    background: #006747;
    color: #fff;
}

.lineups-table thead th {
    padding: 0.85rem 1.25rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    color: #fff;
    border: none;
}

/* Rows */
.lu-row td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.lu-row:last-child td {
    border-bottom: none;
}

.lu-row:nth-child(even) td {
    background: #fafafa;
}

.lu-row:hover td {
    background: #f0f8f4;
}

/* "You" highlight */
.lu-row--me td {
    background: #fffbe6 !important;
}

.lu-row--me:hover td {
    background: #fff5c0 !important;
}

/* Name column */
.lu-name {
    width: 160px;
    white-space: nowrap;
    font-weight: 700;
    color: #1a1a1a;
    vertical-align: middle !important;
}

.lu-you {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #FFD700;
    color: #5a3e00;
    border-radius: 99px;
    padding: 0.1rem 0.45rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* Golfer columns */
.lu-golfer {
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    border-left: 1px solid #f0f0f0;
}

.lineups-table thead th.lu-golfer {
    border-left: 1px solid rgba(255,255,255,0.15);
}

/* ============================================================
   LEADERBOARD PAGE
============================================================ */

.lb-updated {
    font-size: 0.82rem;
    color: #888;
    margin-top: 0.25rem;
}

.lb-error {
    text-align: center;
    padding: 3rem 1rem;
    color: #c0392b;
    font-size: 1rem;
}

/* Constrain table width and center it */
.lb-wrap {
    max-width: 680px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    border: 1px solid #ddd;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    min-width: 460px;
}

/* ── Header ── */
.lb-table thead tr {
    background: #006747;
    color: #ffffff;
}

.lb-table thead th {
    padding: 0.9rem 0.75rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    border: none;
}

/* ── Rows ── */
.lb-row td {
    padding: 0.72rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    vertical-align: middle;
}

.lb-row:last-child td {
    border-bottom: none;
}

.lb-row:nth-child(even) td {
    background: #f9f9f9;
}

.lb-row:hover td {
    background: #eef7f2 !important;
}

/* ── Medal + money row tints ── */
.lb-row--gold   td { background: #fffbe6 !important; }
.lb-row--silver td { background: #f6f6f6 !important; }
.lb-row--bronze td { background: #fef6ee !important; }
.lb-row--money  td { background: #f2fbf5 !important; }

.lb-row--gold:hover   td { background: #fff5c0 !important; }
.lb-row--silver:hover td { background: #ececec !important; }
.lb-row--bronze:hover td { background: #fdeedd !important; }
.lb-row--money:hover  td { background: #e0f5ea !important; }

/* ── Column sizing and alignment ── */
.col-pos  { width: 52px; }
.col-name { width: 180px; }

/* Name cells: left-align both header and data (override generic center) */
.lb-table thead th.col-name,
.lb-row td.col-name {
    text-align: left;
    padding-left: 1.1rem;
}

.lb-row td.col-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.col-round { width: 60px;  font-variant-numeric: tabular-nums; }
.col-total { width: 66px;  font-variant-numeric: tabular-nums; font-weight: 700; }

/* Total column header: slightly separated from rounds */
.lb-table thead th.col-total,
.lb-row td.col-total {
    border-left: 1px solid rgba(255,255,255,0.15);
}
.lb-row td.col-total {
    border-left-color: #e8e8e8;
}

/* ── Position badge ── */
.pos-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    min-width: 28px;
    text-align: center;
    line-height: 1;
}

.pos-badge--gold {
    background: #FFD700;
    color: #5a3e00;
    border-radius: 99px;
    padding: 0.2rem 0.5rem;
}

.pos-badge--silver {
    background: #b0b0b0;
    color: #fff;
    border-radius: 99px;
    padding: 0.2rem 0.5rem;
}

.pos-badge--bronze {
    background: #c07830;
    color: #fff;
    border-radius: 99px;
    padding: 0.2rem 0.5rem;
}

/* ── Position badge — money (4th–5th) ── */
.pos-badge--money {
    background: #e6f4ec;
    color: #006747;
    border-radius: 99px;
    padding: 0.2rem 0.5rem;
}

/* ── Clickable rows ── */
.lb-row--clickable {
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   ENTRY DETAIL MODAL
══════════════════════════════════════════════════════════════ */

.entry-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.entry-modal-overlay.active {
    display: flex;
}

.entry-modal-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.entry-modal-card--narrow {
    max-width: 300px;
}

.entry-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
}

.entry-modal-close:hover {
    color: #333;
}

.entry-modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #006747;
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 2px solid #006747;
    margin: 0;
    padding-right: 2.5rem;  /* avoid overlap with × button */
}

.entry-modal-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Modal table */
.entry-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.entry-modal-table thead tr {
    background: #f5f5f5;
}

.entry-modal-table thead th {
    padding: 0.6rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #555;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.entry-modal-table thead th.emt-golfer {
    text-align: left;
}

.entry-modal-table tbody tr td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid #f5f5f5;
    text-align: center;
    vertical-align: middle;
}

.entry-modal-table tbody tr:last-child td {
    border-bottom: none;
}

.entry-modal-table tbody tr:hover td {
    background: #f9fdf9;
}

.emt-golfer {
    text-align: left !important;
    font-weight: 500;
    white-space: nowrap;
}

.emt-score {
    width: 52px;
    font-variant-numeric: tabular-nums;
}

.emt-total {
    font-weight: 700;
    border-left: 1px solid #e8e8e8;
}

/* Totals footer row */
.emt-totals-row td {
    padding: 0.7rem 0.85rem !important;
    border-top: 2px solid #e0e0e0 !important;
    border-bottom: none !important;
    font-weight: 700;
    background: #f9fdf9;
}

.emt-totals-row .emt-golfer {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #006747;
}

/* Missed-cut row — greyed out */
.emt-row--mc td {
    color: #aaa;
    font-style: italic;
    background: #f4f4f4;
}
.emt-row--mc .s-under { color: #e8a09a; font-weight: 400; }
.emt-row--mc .s-over  { color: #8fbc9e; font-weight: 400; }
.emt-row--mc .s-even  { color: #bbb;    font-weight: 400; }
.emt-row--mc .s-dash  { color: #ccc;    font-weight: 400; }

/* Missed-cut badge */
.emt-mc {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #c0392b;
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* ── Score colours ── */
.s-under { color: #c0392b; font-weight: 700; }
.s-even  { color: #777;    font-weight: 400; }
.s-over  { color: #006747; font-weight: 700; }
.s-dash  { color: #ccc;    font-weight: 400; }

/* ── Tab bar ── */
.lb-tabs {
    display: flex;
    gap: 0.4rem;
    max-width: 680px;
    margin: 0 auto 0.75rem;
}

.lb-tab {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border: 2px solid #006747;
    border-radius: 99px;
    background: transparent;
    color: #006747;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lb-tab:hover {
    background: #e8f5ef;
}

.lb-tab.active {
    background: #006747;
    color: #fff;
}

/* ── Panels (one visible at a time) ── */
.lb-panel {
    display: none;
}

.lb-panel.active {
    display: block;
}

/* Round tables only have 3 columns — override the wide min-width */
.lb-table--round {
    min-width: 180px;
}

.lb-table--round .col-name {
    width: auto;
    white-space: nowrap;
}

/* ============================================================
   FOOTER
============================================================ */

.site-footer {
    background: #006747;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 1.25rem;
    font-size: 0.85rem;
    margin-top: auto;
}

.site-footer a {
    color: #FFD700;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   CHAMPIONS PAGE
============================================================ */

.champions-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 1rem 4rem;
}

.champion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
}

.champion-year {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #006747;
    margin-bottom: 1rem;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0.4rem;
    width: 100%;
    text-align: center;
}

.champion-photo-wrap {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #006747;
    box-shadow: 0 0 0 3px #FFD700, 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.champion-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.champion-info {
    text-align: center;
}

.champion-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #006747;
    margin-bottom: 0.25rem;
}

.champion-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

@media (max-width: 768px) {
    .champions-grid {
        gap: 2.5rem;
    }
}

/* ============================================================
   PAGE IMAGE
============================================================ */

.page-image-container {
    display: flex;
    justify-content: center;
    padding: 1rem 1.5rem 3rem;
}

.page-image {
    max-width: 600px;
    width: 100%;
    border-radius: 6px;
    border: 4px solid #006747;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ============================================================
   PLACEHOLDER TEXT
============================================================ */

.placeholder-text {
    text-align: center;
    color: #555;
    font-size: 1.05rem;
    padding: 4rem 1rem;
    width: 100%;
}

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */

@media (max-width: 768px) {
    /* Header — keep title on one line */
    .header-inner {
        height: auto;
        padding: 0.6rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .site-title {
        font-size: 1rem;
        white-space: nowrap;
    }

    .site-nav {
        gap: 1.25rem;
    }

    .site-nav a {
        font-size: 0.8rem;
    }

    /* Builder layout stacks vertically */
    .builder-layout {
        grid-template-columns: 1fr;
    }

    /* Team summary: mini tab at bottom, expands on tap */
    .team-summary {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 12px 12px 0 0;
        border-top: 3px solid #006747;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
        z-index: 200;
        padding: 0;
        max-height: 80vh;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    /* The always-visible handle bar */
    .mobile-drawer-handle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        cursor: pointer;
        background: #fff;
        user-select: none;
    }

    .mobile-drawer-handle .handle-left {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.9rem;
        font-weight: 700;
        color: #006747;
    }

    .mobile-drawer-handle .handle-count {
        background: #006747;
        color: #fff;
        font-size: 0.75rem;
        font-weight: 700;
        border-radius: 99px;
        padding: 0.15rem 0.5rem;
    }

    .mobile-drawer-handle .handle-budget {
        font-size: 0.82rem;
        color: #555;
        font-weight: 400;
    }

    .mobile-drawer-handle .handle-arrow {
        font-size: 0.65rem;
        color: #006747;
        transition: transform 0.3s ease;
    }

    .team-summary.expanded .handle-arrow {
        transform: rotate(180deg);
    }

    /* The expandable content */
    .drawer-content {
        display: none;
        padding: 0 1rem 1rem;
        overflow-y: auto;
        max-height: calc(80vh - 48px);
    }

    .team-summary.expanded .drawer-content {
        display: block;
    }

    /* Hide the h3 inside drawer on mobile since handle replaces it */
    .team-summary > h3 {
        display: none;
    }

    .salary-display {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Give enough padding so drawer tab doesn't cover player list */
    .site-main {
        padding-bottom: 70px;
    }

    .rules-content {
        grid-template-columns: 1fr;
    }

    .page-hero h2 {
        font-size: 1.5rem;
    }

    .page-hero p {
        font-size: 0.9rem;
    }
}

/* ── Tournament-Over Results Page ──────────────────────────────────────────── */

.results-winner {
    text-align: center;
    background: linear-gradient(135deg, #f5e9c8 0%, #fff8e8 100%);
    border: 2px solid #c9a84c;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin: 0 auto 1.5rem;
    max-width: 680px;
}

.results-winner-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a6d00;
    margin: 0 0 0.4rem;
}

.results-winner-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #5a4400;
    margin: 0;
}

.results-payouts {
    max-width: 680px;
    margin: 0 auto 1.75rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 1.25rem 1.5rem;
}

.results-payouts-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 0 0 1rem;
    text-align: center;
}

.results-payouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem 1.5rem;
}

.results-payout-heading {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #006747;
    margin: 0 0 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.3rem;
}
