/* Football Predictions layout */

:root {
    --brown: #4a2c24;
    --brown-light: #654332;
    --cream: #f5efe6;
    --paper: #fffcf7;
    --sand: #e8dccb;
    --border: #d7c5b1;
    --text: #3b241c;
    --gold: #c49a6c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

button, a {
    font: inherit;
}

/* HEADER */

.site-header {
    min-height: 88px;
    padding: 12px 2.5%;
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--brown);
    color: white;
}

.brand {
    min-width: 270px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.brand-ball {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 2px solid #f5efe6;
    border-radius: 50%;
    font-size: 36px;
}

.brand-name {
    font-size: 29px;
    font-weight: 800;
    line-height: 1;
}

.brand-name span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    letter-spacing: 5px;
    font-weight: 500;
}

/* NAVIGATION */

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.main-nav a {
    padding: 11px 14px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: #d9b58b;
    color: var(--text);
}

.header-actions {
    display: flex;
    gap: 9px;
}

.header-actions button {
    padding: 10px 17px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    background: transparent;
    color: white;
    font-weight: 700;
}

.header-actions .join-btn {
    background: var(--gold);
    color: var(--text);
}

.header-actions button:disabled {
    opacity: 1;
    cursor: default;
}

/* PAGE */

.page-shell {
    width: 97%;
    max-width: 1600px;
    margin: 0 auto;
}

/* CALENDAR */

.calendar-bar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 9px;
    align-items: center;
    padding: 15px 0;
}

.calendar-arrow {
    height: 55px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #efe4d8;
    color: var(--brown);
    font-size: 25px;
    font-weight: 800;
    cursor: pointer;
}

.calendar-arrow:hover {
    background: #dfc8ae;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.date-card {
    min-width: 0;
    min-height: 66px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--paper);
    color: var(--text);
    box-shadow: 0 2px 4px #00000012;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.date-card .date-day {
    font-size: 13px;
    font-weight: 700;
}

.date-card .date-number {
    font-size: 17px;
    font-weight: 800;
}

.date-card.active {
    background: var(--brown);
    color: white;
    border-color: var(--brown);
}

/* DATE INFORMATION */

.date-information {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 2px 14px;
}

.date-information h1 {
    margin: 0;
    font-size: 22px;
}

.match-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
}

.match-count span {
    font-size: 23px;
}

/* MAIN CONTENT LAYOUT */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.6fr) minmax(275px, 1fr);
    gap: 18px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

/* LEAGUE SECTIONS */

.league-section {
    margin-bottom: 17px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--paper);
    box-shadow: 0 2px 4px #00000012;
}

.league-heading {
    min-height: 42px;
    padding: 8px 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: var(--brown);
    color: white;
    font-size: 17px;
    font-weight: 800;
}

.league-heading .league-meta {
    display: flex;
    align-items: center;
    gap: 9px;
}

.league-flag {
    font-size: 21px;
}

.league-count {
    font-size: 13px;
    white-space: nowrap;
}

/* MATCH TABLE */

.table-scroll {
    overflow-x: auto;
}

.match-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.match-table th {
    padding: 8px 6px;
    background: var(--sand);
    text-align: center;
    font-size: 14px;
}

.match-table td {
    padding: 7px 5px;
    border-top: 1px solid #e8ded3;
    text-align: center;
    vertical-align: middle;
}

.match-table tbody tr:nth-child(even) {
    background: #fbf7f1;
}

.match-table th:nth-child(1),
.match-table td:nth-child(1) {
    width: 12%;
}

.match-table th:nth-child(2),
.match-table td:nth-child(2) {
    width: 46%;
}

.match-table th:nth-child(3),
.match-table td:nth-child(3) {
    width: 16%;
}

.match-table th:nth-child(4),
.match-table td:nth-child(4) {
    width: 26%;
}

/* TEAMS */

.fixture-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
}

.fixture-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fixture-team.home {
    justify-content: flex-end;
}

.fixture-team.away {
    justify-content: flex-start;
}

.fixture-team img {
    width: 29px;
    height: 29px;
    object-fit: contain;
    flex: 0 0 29px;
}

.fixture-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.vs-label {
    color: #76665b;
    font-size: 12px;
}

/* PREDICTIONS */

.prediction-pick {
    display: inline-block;
    min-width: 42px;
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--brown);
    color: white;
    font-weight: 800;
}

.tips-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.tip-pill {
    padding: 5px 8px;
    border-radius: 15px;
    background: #efe1d0;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.pending {
    color: #8a796c;
    font-size: 12px;
}

/* SIDEBAR */

.sidebar {
    min-width: 0;
}

.sidebar-section {
    margin-bottom: 17px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--paper);
    box-shadow: 0 2px 4px #00000012;
}

.sidebar-section h2 {
    margin: 0;
    padding: 12px 14px;
    background: var(--brown);
    color: white;
    font-size: 18px;
}

.sidebar-box {
    padding: 10px 13px;
}

.top-prediction {
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee4da;
    font-weight: 700;
}

.top-prediction:last-child {
    border-bottom: 0;
}

.check-mark {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #3b9638;
    color: white;
}

.tip-row {
    display: grid;
    grid-template-columns: 40% 60%;
    border-bottom: 1px solid #eee4da;
}

.tip-row:last-child {
    border-bottom: 0;
}

.tip-row strong,
.tip-row span {
    padding: 11px 8px;
    line-height: 1.35;
}

.tip-row strong {
    background: #f4e6d5;
}

.empty-message {
    color: #76665b;
    line-height: 1.5;
}

/* FOOTER */

.site-footer {
    margin-top: 12px;
    padding: 19px;
    text-align: center;
    background: var(--brown);
    color: white;
}

/* TABLET */

@media (max-width: 1050px) {
    .site-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .main-nav {
        order: 3;
        flex-basis: 100%;
    }

    .content-layout {
        grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr);
    }
}

/* MOBILE */

@media (max-width: 760px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sidebar-section {
        margin: 0;
    }

    .sidebar-section:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 12px 3%;
    }

    .brand {
        min-width: 0;
    }

    .brand-ball {
        width: 43px;
        height: 43px;
        font-size: 29px;
    }

    .brand-name {
        font-size: 21px;
    }

    .brand-name span {
        font-size: 10px;
        letter-spacing: 4px;
    }

    .header-actions button {
        padding: 8px 10px;
    }

    .main-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 2px;
    }

    .main-nav a {
        padding: 8px;
        font-size: 12px;
    }

    .calendar-bar {
        grid-template-columns: 35px minmax(0, 1fr) 35px;
        gap: 4px;
    }

    .calendar-arrow {
        height: 45px;
        font-size: 20px;
    }

    .calendar {
        gap: 3px;
    }

    .date-card {
        min-height: 56px;
    }

    .date-card .date-day {
        font-size: 10px;
    }

    .date-card .date-number {
        font-size: 11px;
    }

    .date-information {
        align-items: flex-start;
        flex-direction: column;
    }

    .date-information h1 {
        font-size: 18px;
    }

    .match-count {
        font-size: 14px;
    }

    .league-heading {
        font-size: 14px;
        padding: 8px;
    }

    .league-count {
        font-size: 11px;
    }

    .match-table {
        min-width: 570px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-section:last-child {
        grid-column: auto;
    }
}
/* View More Tips */
.view-more-tips {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.more-tips-content {
    margin-top: 10px;
    min-width: 190px;
}

.more-tips-content[hidden] {
    display: none;
}

.more-tip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 4px;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
}

.more-tip-confidence {
    font-weight: 700;
}
/* =================================
   PROFESSIONAL FOOTER
================================= */

.site-footer {
    margin-top: 35px;
    background: #4a2c24;
    color: #fff;
    text-align: left;
    padding: 0;
}

.footer-main {
    max-width: 1450px;
    margin: auto;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 2.2fr;
    gap: 35px;
}

.footer-column h3,
.footer-secondary h3 {
    font-size: 17px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #80675d;
}

.footer-column a {
    display: block;
    color: #eadfd5;
    text-decoration: none;
    font-size: 13px;
    margin: 0 0 15px;
    transition: color 0.2s;
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: #d9b58b;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-secondary {
    background: #39251f;
    padding: 30px max(30px, calc((100% - 1390px) / 2));
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 35px;
}

.footer-secondary p {
    color: #eadfd5;
    font-size: 13px;
    line-height: 1.7;
}

.review-button {
    display: block;
    padding: 12px;
    margin-top: 15px;
    border-radius: 5px;
    background: #fff;
    color: #39251f;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 12px;
    margin: 15px 0 25px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: white;
    color: #39251f;
    border-radius: 5px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
}

.footer-responsible a {
    color: #d9b58b;
    font-size: 13px;
}

.footer-bottom {
    max-width: 1450px;
    margin: auto;
    padding: 20px 30px;
    border-top: 1px solid #80675d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

/* TABLET */

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-leagues {
        grid-column: 1 / -1;
    }

    .footer-secondary {
        grid-template-columns: 1fr 1fr;
    }

    .footer-responsible {
        grid-column: 1 / -1;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .footer-main,
    .footer-secondary {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 25px;
    }

    .footer-leagues,
    .footer-responsible {
        grid-column: auto;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}
/* SHARED INFORMATION PAGES */

.info-page {
    max-width: 1100px;
    margin: 35px auto;
    padding: 35px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 9px;
    line-height: 1.8;
}

.info-page h1,
.info-page h2 {
    color: var(--brown);
}

.info-page h1 {
    font-size: 30px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 15px;
}

.info-page h2 {
    margin-top: 30px;
}

.info-page p {
    color: var(--text);
    font-size: 15px;
}

.info-page a {
    color: var(--brown);
}

/* FOOTER */

.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    gap: 35px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    text-align: left;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h3 {
    color: white;
}

.footer-column a {
    color: var(--cream);
    text-decoration: none;
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.2);
    margin-top: 30px;
    padding-top: 18px;
    text-align: center;
}

/* MOBILE */

@media (max-width: 760px) {
    .info-page {
        margin: 20px 12px;
        padding: 22px;
    }

    .site-footer .footer-content {
        flex-direction: column;
        gap: 25px;
    }
}
/* REVIEWS SUMMARY */

.reviews-summary {
    text-align: center;
    padding: 45px 20px;
    margin: 25px auto;
    max-width: 650px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.reviews-stars {
    color: var(--gold);
    font-size: 38px;
    letter-spacing: 5px;
}

.reviews-rating {
    color: var(--brown);
    font-size: 42px;
    font-weight: bold;
    margin-top: 12px;
}

.reviews-count {
    color: var(--brown);
    font-size: 22px;
    font-weight: bold;
    margin-top: 8px;
}

.reviews-summary p {
    color: var(--text);
    font-size: 15px;
}
.footer-reviews-summary {
    text-align: left;
    margin: 15px 0;
}

.footer-review-stars {
    color: var(--gold);
    font-size: 22px;
    letter-spacing: 3px;
}

.footer-review-rating {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.footer-review-count {
    color: var(--cream);
    font-size: 14px;
}
.footer-reviews-summary {
    margin: 15px 0 20px;
}

.footer-review-stars {
    color: var(--gold);
    font-size: 25px;
    letter-spacing: 3px;
}

.footer-review-rating {
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin-top: 5px;
}

.footer-review-count {
    color: var(--cream);
    font-size: 14px;
    margin-top: 4px;
}

/* SMART ODDS — inline match analysis */
.smart-odds-toggle {
    width: 100%;
    margin-top: 12px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--brown);
    border-radius: 7px;
    background: var(--brown);
    color: var(--cream);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.smart-odds-toggle:hover { background: var(--brown-light); }
.smart-odds-chevron { font-size: 17px; line-height: 1; }
.smart-odds-panel {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--paper);
    color: var(--text);
    text-align: left;
}
.smart-odds-panel[hidden] { display: none !important; }
.smart-odds-heading {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; gap: 6px; margin: 0 0 10px;
    color: var(--brown);
}
.smart-odds-heading strong { font-size: 14px; }
.smart-odds-heading span { color: var(--brown-light); font-size: 10px; }
.smart-odds-section {
    margin-top: 7px; border: 1px solid var(--border);
    border-radius: 7px; background: var(--cream); overflow: hidden;
}
.smart-odds-section summary {
    padding: 11px 12px; color: var(--brown); font-size: 12px;
    font-weight: 800; cursor: pointer; list-style-position: inside;
}
.smart-odds-section[open] summary { border-bottom: 1px solid var(--border); }
.smart-odds-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; padding: 10px;
}
.smart-odds-grid > div {
    min-width: 0; padding: 9px; border: 1px solid var(--border);
    border-radius: 6px; background: var(--paper);
}
.smart-odds-grid span {
    display: block; margin-bottom: 5px; color: var(--brown-light);
    font-size: 10px; line-height: 1.35;
}
.smart-odds-grid strong {
    display: block; color: var(--brown); font-size: 12px;
    overflow-wrap: anywhere;
}
.smart-odds-note {
    margin: 0 10px 10px; color: var(--brown-light);
    font-size: 10px; line-height: 1.5;
}
@media (max-width: 600px) {
    .smart-odds-grid { grid-template-columns: 1fr; }
    .smart-odds-panel { padding: 9px; }
}


/* LEAGUES DIRECTORY — vertical list layout */
.league-list-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.league-select-button {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--paper);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.league-select-button:hover,
.league-select-button:focus-visible {
    background: var(--sand);
    border-color: var(--gold);
}
.league-select-button .league-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 700;
}
.league-select-button .league-match-count {
    flex: 0 0 auto;
    color: var(--brown-light);
    font-size: 12px;
    font-weight: 700;
}
.match-table td {
    height: auto;
}
.match-table .more-tips-content {
    max-width: 100%;
}
.match-table .more-tip-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}



/* COMPACT LEAGUES HEADER DROPDOWN — site palette */
.main-nav { position: relative; }
#leagues-nav-link { position: relative; }
#leagues-dropdown.leagues-dropdown {
    position: absolute;
    z-index: 10000;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 270px;
    max-width: min(88vw, 320px);
    max-height: min(76vh, 650px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--border);
    border-radius: 0 0 9px 9px;
    background: var(--paper);
    box-shadow: 0 10px 28px rgba(44, 27, 20, .22);
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--cream);
}
#leagues-dropdown[hidden] { display: none !important; }
#leagues-dropdown .league-directory-feature,
#leagues-dropdown .league-country-toggle,
#leagues-dropdown .league-competition-link {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: var(--paper);
    color: var(--brown);
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
#leagues-dropdown .league-directory-feature {
    min-height: 48px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--sand);
    color: var(--brown);
    font-weight: 700;
}
#leagues-dropdown .league-country-toggle:hover,
#leagues-dropdown .league-directory-feature:hover,
#leagues-dropdown .league-competition-link:hover {
    background: var(--sand);
    color: var(--brown);
}
#leagues-dropdown .league-country-label {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
    color: var(--brown);
}
#leagues-dropdown .league-directory-flag {
    width: 20px;
    flex: 0 0 20px;
    font-size: 16px;
}
#leagues-dropdown .league-directory-arrow,
#leagues-dropdown .league-competition-arrow {
    margin-left: auto;
    color: var(--gold);
    font-size: 20px;
    line-height: 1;
}
#leagues-dropdown .league-country-toggle[aria-expanded="true"] {
    background: var(--sand);
    color: var(--brown);
    font-weight: 700;
}
#leagues-dropdown .league-country-toggle[aria-expanded="true"] .league-directory-arrow {
    transform: rotate(90deg);
}
#leagues-dropdown .league-country-panel {
    padding: 3px 0 5px 28px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}
#leagues-dropdown .league-country-panel[hidden] { display: none !important; }
#leagues-dropdown .league-competition-link {
    min-height: 38px;
    padding: 8px 12px;
    background: var(--cream);
    color: var(--brown);
    font-size: 12px;
}
#leagues-dropdown .league-competition-link:hover,
#leagues-dropdown .league-competition-link.selected {
    background: var(--sand);
    color: var(--brown);
}
@media (max-width: 700px) {
    #leagues-dropdown.leagues-dropdown {
        left: auto;
        right: 0;
        transform: none;
        width: 260px;
        max-height: 70vh;
    }
}



/* GUIDE FEATURE — prominent homepage section before the footer */
.guide-homepage-feature {
    width: min(1180px, 92%);
    margin: 42px auto 34px;
    padding: clamp(22px, 4vw, 42px);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(230px, .8fr);
    align-items: center;
    gap: 28px;
    border: 1px solid var(--border, #d7c5b1);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brown, #4a2c24), var(--brown-light, #654332));
    color: var(--cream, #f5efe6);
    box-shadow: 0 8px 24px rgba(45, 27, 20, .12);
}
.guide-homepage-copy { min-width: 0; }
.guide-homepage-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: #e8c89f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}
.guide-homepage-feature h2 {
    margin: 0 0 12px;
    color: #fffaf3;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}
.guide-homepage-feature p {
    max-width: 720px;
    margin: 0 0 20px;
    color: #f5efe6;
    font-size: 15px;
    line-height: 1.65;
}
.guide-homepage-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: 1px solid #e8c89f;
    border-radius: 7px;
    background: #d9b58b;
    color: #3b241c !important;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}
.guide-homepage-button:hover {
    background: #e8c89f;
    transform: translateY(-2px);
}
.guide-homepage-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.guide-homepage-topics a {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(245, 239, 230, .28);
    border-radius: 8px;
    background: rgba(255, 252, 247, .09);
    color: #fffaf3 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.guide-homepage-topics a:hover {
    background: rgba(255, 252, 247, .18);
}
.guide-homepage-topics a span { font-size: 21px; }
@media (max-width: 760px) {
    .guide-homepage-feature {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 28px auto 24px;
        padding: 22px 18px;
    }
    .guide-homepage-topics { grid-template-columns: 1fr 1fr; }
    .guide-homepage-topics a { min-height: 58px; font-size: 12px; }
}
@media (max-width: 420px) {
    .guide-homepage-topics { grid-template-columns: 1fr; }
}



/* GLOBAL SITE SCALE NORMALIZATION — consistent desktop and mobile sizing */
html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-size: 14px;
    line-height: 1.45;
}
.site-header {
    min-height: 76px;
    padding: 10px 2%;
    gap: 18px;
}
.brand {
    min-width: 235px;
    gap: 10px;
}
.brand-ball {
    width: 48px;
    height: 48px;
    font-size: 31px;
}
.brand-name {
    font-size: 25px;
}
.brand-name span {
    font-size: 11px;
    letter-spacing: 4px;
}
.main-nav {
    gap: 7px;
}
.main-nav a {
    padding: 9px 11px;
    font-size: 13px;
}
.header-actions {
    gap: 7px;
}
.header-actions button {
    padding: 8px 12px;
    font-size: 13px;
}
.page-shell {
    width: min(96%, 1480px);
}
.calendar-bar {
    padding: 12px 0;
    gap: 7px;
}
.calendar-arrow {
    height: 48px;
    font-size: 22px;
}
.date-card {
    min-height: 58px;
    gap: 3px;
}
.date-card .date-day {
    font-size: 12px;
}
.date-card .date-number {
    font-size: 15px;
}
.date-information {
    padding: 6px 2px 11px;
}
.date-information h1 {
    font-size: 20px;
}
.match-count {
    font-size: 15px;
}
.content-layout {
    gap: 15px;
}
.league-section {
    margin-bottom: 14px;
}
.league-heading {
    min-height: 39px;
    padding: 7px 11px;
    font-size: 15px;
}
.league-flag {
    font-size: 18px;
}
.match-table th {
    padding: 7px 5px;
    font-size: 12px;
}
.match-table td {
    padding: 6px 4px;
    font-size: 13px;
}
.sidebar-section {
    margin-bottom: 13px;
}
.sidebar-section h2,
.sidebar-section h3 {
    font-size: 15px;
}
.view-more-tips {
    margin-top: 6px;
    padding: 5px 8px;
    font-size: 11px;
}
.more-tips-content {
    min-width: 170px;
}
.more-tip-row {
    padding: 6px 3px;
    font-size: 11px;
}
.smart-odds-toggle {
    margin-top: 9px;
    padding: 9px 11px;
    font-size: 10px;
}
.smart-odds-panel {
    padding: 10px;
}
.smart-odds-heading strong {
    font-size: 13px;
}
.smart-odds-section summary {
    padding: 9px 10px;
    font-size: 11px;
}
.smart-odds-grid {
    gap: 7px;
    padding: 8px;
}
.smart-odds-grid > div {
    padding: 8px;
}
.smart-odds-grid span {
    font-size: 9px;
}
.smart-odds-grid strong {
    font-size: 11px;
}
.site-footer {
    margin-top: 28px;
}
.footer-main {
    max-width: 1350px;
    padding: 32px 24px;
    gap: 28px;
}
.footer-column h3,
.footer-secondary h3 {
    font-size: 15px;
}
.footer-column a,
.footer-secondary,
.footer-bottom {
    font-size: 13px;
}

/* Medium desktop / laptop */
@media (min-width: 1051px) and (max-width: 1350px) {
    .site-header {
        gap: 10px;
    }
    .brand {
        min-width: 205px;
    }
    .brand-name {
        font-size: 22px;
    }
    .main-nav {
        gap: 3px;
    }
    .main-nav a {
        padding: 8px 9px;
        font-size: 12px;
    }
    .header-actions button {
        padding: 7px 9px;
        font-size: 12px;
    }
}

/* Tablet and phone */
@media (max-width: 1050px) {
    .site-header {
        min-height: 0;
        padding: 11px 3%;
    }
    .brand {
        min-width: 210px;
    }
    .page-shell {
        width: 96%;
    }
}
@media (max-width: 760px) {
    body {
        font-size: 13px;
    }
    .page-shell {
        width: 95%;
    }
    .content-layout {
        gap: 13px;
    }
    .league-heading {
        font-size: 14px;
    }
    .match-table td {
        font-size: 12px;
    }
    .footer-main {
        padding: 26px 18px;
        gap: 20px;
    }
}
@media (max-width: 560px) {
    .site-header {
        padding: 10px 3%;
    }
    .brand-name {
        font-size: 20px;
    }
    .main-nav a {
        font-size: 11px;
    }
    .header-actions button {
        font-size: 11px;
    }
    .date-information h1 {
        font-size: 17px;
    }
    .match-table {
        min-width: 540px;
    }
    .footer-main {
        grid-template-columns: 1fr;
    }
}



/* Keep the main navigation visible while the visitor scrolls */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Guide pages use their own header */
.guide-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}



/* Visitor prompt shown when a match prediction is pending / locked */
.prediction-pending-note {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: 270px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--cream);
    color: var(--text);
    text-align: left;
}
.prediction-pending-note strong {
    color: var(--brown);
    font-size: 12px;
}
.prediction-pending-note > span {
    color: var(--brown-light);
    font-size: 11px;
    line-height: 1.4;
}
.prediction-pending-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 3px;
}
.prediction-pending-actions button {
    padding: 6px 10px;
    border: 1px solid var(--brown);
    border-radius: 5px;
    background: var(--brown);
    color: var(--cream);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
.prediction-pending-actions button:last-child {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--text);
}
.prediction-pending-actions button:hover {
    filter: brightness(1.08);
}


/* Account link shown to visitors who are not logged in */
.prediction-account-link {
    display: inline-block;
    margin-top: 9px;
    color: #8a5b2b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prediction-account-link:hover { color: #5d3b1c; }

/* Authentication window: keep it centered over the page, never below the footer */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(24, 18, 13, 0.72);
}
.auth-modal[hidden] {
    display: none !important;
}
.auth-box {
    position: relative;
    width: min(100%, 440px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid var(--border, #d8c7ad);
    border-radius: 14px;
    background: var(--cream, #f7f0e5);
    color: var(--text, #33271d);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}
.auth-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    color: var(--brown, #5d3b1c);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.auth-box h2 {
    margin: 0 28px 10px 0;
    color: var(--brown, #5d3b1c);
}
.auth-box label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}
.auth-box input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border, #d8c7ad);
    border-radius: 7px;
    background: #fffdf9;
    color: var(--text, #33271d);
}
.auth-box button[type="submit"] {
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    border: 0;
    border-radius: 7px;
    background: var(--brown, #5d3b1c);
    color: var(--cream, #f7f0e5);
    font-weight: 700;
    cursor: pointer;
}
.auth-box form p {
    margin-top: 16px;
    text-align: center;
}
@media (max-width: 520px) {
    .auth-modal { padding: 14px; }
    .auth-box { padding: 25px 20px; }
}

/* MY ACCOUNT: centered dashboard layout (account-only styling) */
.account-screen {
    width: min(1120px, calc(100% - 40px));
    min-height: calc(100vh - 88px);
    margin: 0 auto;
    padding: 38px 0 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.account-screen[hidden] {
    display: none !important;
}

.account-header {
    text-align: center;
    margin: 0 0 4px;
}

.account-header h1 {
    margin: 0 0 9px;
    color: var(--brown);
    font-size: clamp(28px, 3vw, 36px);
}

.account-header p {
    margin: 0;
    color: #725b4c;
    font-size: 15px;
}

.account-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.account-card {
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(74, 44, 36, 0.08);
}

.account-card h2 {
    margin: 0 0 16px;
    color: var(--brown);
    font-size: 19px;
}

.account-card p {
    margin: 10px 0;
    line-height: 1.55;
}

.account-card button,
#account-back-btn {
    min-height: 39px;
    margin: 7px 7px 0 0;
    padding: 9px 15px;
    border: 1px solid var(--brown);
    border-radius: 7px;
    background: var(--brown);
    color: #fffaf3;
    font-weight: 700;
    cursor: pointer;
}

.account-card button:hover,
#account-back-btn:hover {
    background: var(--brown-light);
}

#account-back-btn {
    align-self: center;
    min-width: 150px;
    margin: 0;
}

@media (max-width: 700px) {
    .account-screen {
        width: min(100% - 28px, 540px);
        min-height: calc(100vh - 88px);
        padding: 28px 0;
        gap: 18px;
    }

    .account-dashboard {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .account-card {
        padding: 19px;
    }
}


/* MY ACCOUNT overlay: centered above the existing Home page without replacing it. */
.account-screen {
    position: fixed;
    inset: 88px 0 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow-y: auto;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.account-screen[hidden] { display: none !important; }
.account-panel {
    width: min(100%, 1000px);
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--cream);
    box-shadow: 0 20px 60px rgba(25, 14, 10, 0.28);
}
.account-header { text-align: center; margin: 0 0 22px; }
.account-header h1 { margin: 0 0 8px; color: var(--brown); font-size: clamp(26px, 3vw, 34px); }
.account-header p { margin: 0; color: #725b4c; }
.account-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; }
.account-card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 13px; background: var(--paper); box-shadow: 0 5px 18px rgba(74,44,36,.07); }
.account-card h2 { margin: 0 0 13px; color: var(--brown); font-size: 19px; }
.account-card p { line-height: 1.5; }
.account-card button, #account-back-btn { min-height: 38px; margin: 6px 6px 0 0; padding: 9px 14px; border: 1px solid var(--brown); border-radius: 7px; background: var(--brown); color: #fffaf3; font-weight: 700; cursor: pointer; }
.account-card button:hover, #account-back-btn:hover { background: var(--brown-light); }
.account-card button:disabled { opacity: .65; cursor: wait; }
.account-profile-actions, .account-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-form { display: grid; gap: 8px; margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.account-form[hidden] { display: none !important; }
.account-form h3 { margin: 0 0 4px; color: var(--brown); }
.account-form label { margin-top: 5px; font-weight: 700; }
.account-form input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text); }
.account-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.account-form .account-cancel-btn { background: transparent; color: var(--brown); }
.account-profile-message { min-height: 0; margin: 10px 0 0 !important; font-weight: 700; }
.account-profile-message:empty { display: none; }
.account-profile-message.is-success { color: #237a38; }
.account-profile-message.is-error { color: #b3261e; }
#account-back-btn { display: block; min-width: 150px; margin: 20px auto 0; }
@media (max-width: 700px) {
    .account-screen { inset: 72px 0 0; padding: 12px; align-items: flex-start; }
    .account-panel { max-height: calc(100vh - 92px); padding: 18px; }
    .account-dashboard { grid-template-columns: 1fr; gap: 12px; }
    .account-card { padding: 16px; }
}

/* =========================================================
   RESPONSIVE POLISH — desktop, laptop, tablet and mobile
   Brand styling: warm brown, cream and muted gold.
   This section intentionally overrides presentation only.
   ========================================================= */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    line-height: 1.5;
}

img, svg, video, canvas {
    max-width: 100%;
}

button, input, select, textarea {
    max-width: 100%;
}

button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Large screens: use space cleanly without stretching content too far. */
@media (min-width: 1500px) {
    .page-shell { width: min(96%, 1680px); }
    .content-layout { grid-template-columns: minmax(0, 2.8fr) minmax(300px, 1fr); gap: 22px; }
    .match-table th, .match-table td { padding: 10px 8px; }
    .sidebar-section { margin-bottom: 20px; }
}

/* Desktop and laptop header refinements. */
@media (min-width: 1051px) {
    .site-header {
        min-height: 76px;
        padding: 10px clamp(18px, 2.4vw, 40px);
        gap: clamp(10px, 1.4vw, 24px);
    }
    .brand { min-width: 220px; }
    .main-nav { min-width: 0; gap: clamp(3px, .55vw, 10px); }
    .main-nav a { padding: 10px clamp(8px, .85vw, 14px); }
    .header-actions { flex-shrink: 0; align-items: center; }
    .page-shell { width: min(96%, 1600px); }
}

/* Match tables stay readable; narrow screens can swipe horizontally. */
.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.match-table { min-width: 650px; }
.match-table th { white-space: nowrap; }
.match-table td { overflow-wrap: anywhere; }
.fixture-team span { line-height: 1.3; }

/* Tablet layout. */
@media (max-width: 1050px) {
    .site-header {
        position: sticky;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px 16px;
        padding: 10px 3%;
    }
    .brand { min-width: 0; flex: 0 1 auto; }
    .main-nav {
        order: 3;
        flex: 1 0 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 0 5px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav a { flex: 0 0 auto; }
    .header-actions { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; }
    .content-layout { grid-template-columns: minmax(0, 1.8fr) minmax(235px, 1fr); }
    .page-shell { width: 95%; }
    .account-screen { inset: 104px 0 0; }
    .account-panel { max-height: calc(100dvh - 124px); }
}

@media (max-width: 760px) {
    .content-layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-content, .sidebar, .sidebar-section { min-width: 0; }
    .date-information { flex-wrap: wrap; }
    .account-screen {
        inset: 104px 0 0;
        align-items: flex-start;
        justify-content: center;
        padding: 12px;
    }
    .account-panel {
        width: min(100%, 680px);
        max-height: calc(100dvh - 124px);
        padding: 20px;
        border-radius: 15px;
    }
    .account-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-card { padding: 17px; }
    .account-form { padding: 13px; }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: compact header, swipeable nav/calendar and comfortable controls. */
@media (max-width: 560px) {
    body { font-size: 14px; }
    .site-header {
        min-height: 0;
        padding: 10px 12px 7px;
        gap: 8px 10px;
    }
    .brand { gap: 8px; }
    .brand-ball { width: 38px; height: 38px; font-size: 25px; }
    .brand-name { font-size: 18px; }
    .brand-name span { margin-top: 3px; font-size: 9px; letter-spacing: 3px; }
    .header-actions { gap: 6px; }
    .header-actions button {
        min-height: 36px;
        padding: 7px 9px;
        font-size: 11px;
        white-space: nowrap;
    }
    .main-nav {
        gap: 5px;
        margin: 0 -2px;
        padding: 3px 2px 7px;
    }
    .main-nav a { padding: 8px 10px; font-size: 12px; }
    .page-shell { width: calc(100% - 20px); }
    .calendar-bar {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 5px;
        padding: 10px 0;
    }
    .calendar-arrow { height: 42px; font-size: 18px; }
    .calendar {
        display: flex;
        min-width: 0;
        overflow-x: auto;
        gap: 6px;
        padding: 2px 1px 6px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .date-card { flex: 0 0 48px; min-height: 54px; }
    .date-card .date-day { font-size: 10px; }
    .date-card .date-number { font-size: 13px; }
    .date-information { flex-direction: column; align-items: flex-start; gap: 5px; padding: 6px 1px 12px; }
    .date-information h1 { font-size: 18px; line-height: 1.3; }
    .match-count { font-size: 13px; }
    .league-section, .sidebar-section { border-radius: 8px; }
    .league-heading { min-height: 40px; padding: 8px 10px; font-size: 13px; }
    .league-flag { font-size: 16px; }
    .league-count { font-size: 11px; }
    .match-table { min-width: 620px; }
    .match-table th { padding: 8px 6px; font-size: 11px; }
    .match-table td { padding: 8px 6px; font-size: 12px; }
    .fixture-team img { width: 24px; height: 24px; flex-basis: 24px; }
    .tip-pill { padding: 5px 7px; font-size: 10px; }
    .sidebar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .sidebar-section { margin: 0; }
    .sidebar-section h2 { font-size: 15px; }
    .site-footer { padding: 12px; }
    .footer-main { grid-template-columns: minmax(0, 1fr); padding: 22px 10px; gap: 18px; }
    .footer-secondary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .footer-bottom { padding: 14px 8px; line-height: 1.7; }

    .account-screen {
        inset: 101px 0 0;
        padding: 9px;
        align-items: flex-start;
    }
    .account-panel {
        width: 100%;
        max-height: calc(100dvh - 110px);
        padding: 16px 13px;
        border-radius: 13px;
    }
    .account-header { margin-bottom: 15px; }
    .account-header h1 { font-size: 25px; }
    .account-header p { font-size: 13px; }
    .account-dashboard { grid-template-columns: minmax(0, 1fr); gap: 11px; }
    .account-card { padding: 15px; border-radius: 11px; }
    .account-card h2 { font-size: 17px; }
    .account-card button, #account-back-btn {
        min-height: 42px;
        padding: 9px 12px;
        font-size: 13px;
    }
    .account-profile-actions, .account-form-actions { gap: 7px; }
    .account-form input { min-height: 43px; font-size: 16px; }
    #account-back-btn { width: 100%; margin-top: 14px; }
}

@media (max-width: 370px) {
    .brand-name { font-size: 16px; }
    .brand-name span { letter-spacing: 2px; }
    .brand-ball { width: 34px; height: 34px; font-size: 22px; }
    .header-actions button { padding: 6px 7px; font-size: 10px; }
    .main-nav a { padding: 7px 8px; font-size: 11px; }
    .account-panel { padding: 13px 10px; }
    .account-card { padding: 13px; }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* MOBILE SLIDE-OUT NAVIGATION — phone screens only; desktop layout is untouched. */
.mobile-menu-toggle,
.mobile-navigation,
.mobile-menu-backdrop { display: none; }

@media (max-width: 560px) {
    .site-header {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .site-header > .brand { flex: 1 1 auto; min-width: 0; }
    .mobile-menu-toggle {
        display: flex;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        padding: 9px 7px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 1px solid var(--gold, #c69b65);
        border-radius: 8px;
        background: var(--brown, #4b2b21);
        cursor: pointer;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        border-radius: 3px;
        background: #f7ead8;
    }
    .site-header .main-nav,
    .site-header .header-actions { display: none !important; }

    .mobile-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(10, 14, 18, .42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }
    /* A transparent/closed backdrop must never intercept taps on the page. */
    .mobile-menu-backdrop[hidden] { display: none !important; }
    .mobile-menu-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-navigation {
        display: flex;
        position: fixed;
        z-index: 9999;
        top: 0;
        bottom: 0;
        left: 0;
        width: 85vw;
        max-width: 360px;
        flex-direction: column;
        overflow-y: auto;
        background: var(--brown, #4b2b21);
        color: #fff8ed;
        box-shadow: 12px 0 30px rgba(0,0,0,.18);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .24s ease, visibility .24s ease;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
    .mobile-navigation.is-open {
        transform: translateX(0);
        visibility: visible;
    }
    .mobile-navigation-header {
        min-height: 76px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(255,255,255,.14);
    }
    .mobile-drawer-brand { min-width: 0; }
    .mobile-drawer-brand .brand-ball { flex: 0 0 auto; }
    .mobile-drawer-brand .brand-name { font-size: 15px; color: #fff; }
    .mobile-drawer-brand .brand-name span { color: #f2d5ad; }
    .mobile-menu-close {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 8px;
        background: var(--gold, #c69b65);
        color: var(--brown, #4b2b21);
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
    }
    .mobile-navigation-content { overflow-y: auto; padding: 8px 0 18px; }
    .mobile-nav-links { display: flex; flex-direction: column; }
    .mobile-nav-links a {
        display: flex;
        align-items: center;
        min-height: 56px;
        padding: 12px 18px;
        color: #fff8ed;
        text-decoration: none;
        font-size: 15px;
        font-weight: 700;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .mobile-nav-links a:active,
    .mobile-nav-links a:focus-visible { background: rgba(255,255,255,.1); }
    .mobile-drawer-actions {
        display: flex;
        flex-direction: column;
        gap: 9px;
        padding: 18px 14px 8px;
    }
    .mobile-drawer-actions .header-actions {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }
    .mobile-drawer-actions .header-actions button {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 14px;
        white-space: normal;
    }
    body.mobile-menu-open { overflow: hidden; }
}

/* Trial and embedded Stripe registration */
.trial-checkout-summary {
    display: grid;
    gap: 6px;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid rgba(35, 122, 56, .28);
    border-radius: 10px;
    background: rgba(35, 122, 56, .06);
    line-height: 1.5;
}
.trial-checkout-summary strong { font-size: 1rem; }
.trial-checkout-summary span { font-size: .88rem; color: inherit; }
#register-checkout { width: 100%; min-height: 420px; margin-top: 14px; }
#register-checkout iframe { width: 100% !important; }

@media (min-width: 521px) { .auth-box:has(#register-checkout:not([hidden])) { width: min(100%, 620px); } }


/* Visitor reviews page */
.review-form-section, .visitor-review { margin: 22px 0; padding: 20px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 12px; background: var(--card-bg, #fff); }
#visitor-review-form { display: grid; gap: 10px; max-width: 680px; }
#visitor-review-form input, #visitor-review-form select, #visitor-review-form textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
#visitor-review-form button { justify-self: start; padding: 11px 18px; border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; }
.visitor-review { display: grid; gap: 8px; }
.visitor-review span { color: #d69e16; letter-spacing: 2px; }
.view-tips-button { min-height: 40px; padding: 9px 14px; font-weight: 800; }
@media (max-width: 640px) {
  .info-page { padding: 18px 14px; }
  .review-form-section, .visitor-review { padding: 14px; }
  .match-table { min-width: 0 !important; width: 100%; }
  .match-table thead { display: none; }
  .match-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; padding: 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 12px; background: var(--card-bg, #fff); }
  .match-table tbody td { display: block; width: auto !important; min-width: 0; padding: 5px 2px; border: 0; }
  .match-table tbody td:nth-child(1) { grid-column: 1 / -1; font-weight: 700; }
  .match-table tbody td:nth-child(2) { grid-column: 1 / -1; }
  .match-table tbody td:nth-child(3), .match-table tbody td:nth-child(4) { grid-column: 1 / -1; }
  .fixture-teams { grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr); }
  .fixture-team span { white-space: normal; overflow-wrap: anywhere; }
}


/* FootballPredictions4U brand logo — responsive header and mobile drawer. */
.site-header > .brand {
    min-width: 0;
    flex: 0 1 285px;
    width: min(285px, 26vw);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}
.brand-logo {
    display: block;
    width: 100%;
    max-width: 285px;
    height: 72px;
    background: transparent;
    object-fit: contain;
    object-position: left center;
}
.mobile-drawer-brand {
    width: min(245px, calc(100% - 56px));
    min-width: 0;
    flex: 1 1 auto;
}
.mobile-drawer-brand .brand-logo { height: 58px; max-width: 245px; }
@media (max-width: 1050px) {
    .site-header > .brand { flex: 0 1 260px; width: min(260px, 38vw); }
    .brand-logo { height: 66px; }
}
@media (max-width: 560px) {
    .site-header > .brand { flex: 1 1 auto; width: auto; max-width: calc(100% - 54px); }
    .site-header > .brand .brand-logo { width: 100%; max-width: 225px; height: 58px; object-position: left center; }
    .mobile-drawer-brand { width: min(220px, calc(100% - 56px)); max-width: 220px; }
    .mobile-drawer-brand .brand-logo { height: 54px; }
}
@media (max-width: 370px) {
    .site-header > .brand .brand-logo { max-width: 195px; height: 52px; }
    .mobile-drawer-brand .brand-logo { height: 48px; }
}
