* { box-sizing: border-box; }
body {
    margin: 0;
    overflow-x: hidden;
    background: #f5f6f7;
    color: #202534;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}
.prediction-shell {
    width: min(1180px, calc(100vw - 24px));
    margin: calc(72px + env(safe-area-inset-top, 0px)) auto 34px;
}
#header.album-global-header[data-page="pronosticos"],
#header.album-global-header[data-page="pronosticos"].no-search,
#header.album-global-header[data-page="pronosticos"].compact,
#header.album-global-header[data-page="pronosticos"].compact.no-search {
    --h-normal: 58px !important;
    --h-mobile: 58px !important;
    --h-mobile-no-search: 58px !important;
    height: calc(58px + env(safe-area-inset-top, 0px)) !important;
    min-height: calc(58px + env(safe-area-inset-top, 0px)) !important;
    max-height: calc(58px + env(safe-area-inset-top, 0px)) !important;
}
#header.album-global-header[data-page="pronosticos"] .header-content,
#header.album-global-header[data-page="pronosticos"].compact .header-content,
#header.album-global-header[data-page="pronosticos"].compact.no-search .header-content {
    height: 100% !important;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 16px 6px !important;
    display: grid !important;
    grid-template-rows: 1fr !important;
    gap: 0 !important;
    align-items: center !important;
}
#header.album-global-header[data-page="pronosticos"] .banner-main-row,
#header.album-global-header[data-page="pronosticos"].no-search .banner-main-row,
#header.album-global-header[data-page="pronosticos"].compact.no-search .banner-main-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
}
#header.album-global-header[data-page="pronosticos"] .banner-progress-row {
    display: none !important;
}
#header.album-global-header[data-page="pronosticos"] #search-container,
#header.album-global-header[data-page="pronosticos"] .banner-search-placeholder {
    display: none !important;
}
#header.album-global-header[data-page="pronosticos"] .banner-actions,
#header.album-global-header[data-page="pronosticos"] .auth-row {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.prediction-shell h1,
.prediction-shell h2,
.prediction-shell h3,
.prediction-shell button {
    font-family: "Kanit", Arial, sans-serif;
    letter-spacing: 0;
}
.auth-gate {
    max-width: 760px;
    margin: 34px auto;
    padding: 34px 28px;
    text-align: center;
    border: 1px solid rgba(126, 21, 39, .14);
    border-top: 5px solid #9b1832;
    border-radius: 8px;
    background: #fff;
}
.auth-gate h1 { margin: 0 0 10px; color: #7e1527; }
.auth-gate p { margin: 0 0 22px; color: #545b67; }
.public-prediction-intro { margin: 28px auto 0; padding-top: 24px; border-top: 1px solid rgba(126, 21, 39, .12); text-align: left; }
.public-prediction-intro h2 { margin: 0 0 8px; color: #7e1527; font-size: 1.25rem; }
.public-prediction-intro p { margin: 0 0 16px; }
.public-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 8px 0 17px; }
.public-rules div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid rgba(191, 141, 12, .22); border-radius: 8px; background: #fff9e9; }
.public-rules strong { color: #970223; font-size: 1.35rem; }
.public-rules span { font-size: .9rem; font-weight: 700; }
.public-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.public-links a { color: #7e1527; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.public-faq { margin-top: 24px; }
.public-faq h2 { margin: 0 0 12px; }
.public-faq h3 { margin: 12px 0 4px; color: #303646; font-size: 1rem; }
.public-faq p { margin-bottom: 10px; }
.regional-prediction-seo {
    margin: 24px auto 0;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(126, 21, 39, .12);
    background: rgba(255, 255, 255, .9);
    color: #30343b;
    line-height: 1.55;
}
.regional-prediction-seo h2 {
    margin: 0 0 10px;
    color: #7e1527;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
}
.regional-prediction-seo p { margin: 10px 0 0; }
.regional-prediction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-top: 14px;
}
.regional-prediction-grid span {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(126, 21, 39, .12);
    background: rgba(255, 197, 27, .12);
    color: #4b2530;
    font-weight: 800;
}
.prediction-hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 14px;
    padding: 22px 30px 19px;
    color: #fff;
    background: linear-gradient(112deg, #780017, #aa2732 54%, #d2a722);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(92, 18, 27, .16);
}
.eyebrow {
    margin: 0 0 5px;
    color: #ffd65a;
    font-family: "Kanit", sans-serif;
    font-size: .82rem;
    font-weight: 700;
}
.prediction-hero h1 { margin: 0 0 7px; font-size: 2rem; }
.hero-copy { margin: 0; max-width: 600px; color: rgba(255,255,255,.94); }
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}
.hero-progress {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(620px, 100%);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.hero-progress span { font-weight: 700; font-size: .9rem; }
.hero-progress-percent {
    color: #ffd65a;
    font-family: "Kanit", Arial, sans-serif;
    font-size: .98rem;
    white-space: nowrap;
}
.prediction-meter {
    overflow: hidden;
    width: 100%;
    height: 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.25);
}
.prediction-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #ffcf33;
    transition: width .35s ease;
}
.prediction-meter.large { height: 14px; background: #ece1c2; }
.prediction-meter.large span {
    background: linear-gradient(90deg, #970223 0%, #e06d1b 38%, #ffc51b 68%, #32b768 100%);
}
.action-btn {
    min-height: 41px;
    padding: 8px 16px;
    border: 1px solid rgba(126, 21, 39, .27);
    border-radius: 7px;
    background: #fff;
    color: #7e1527;
    cursor: pointer;
    font-weight: 700;
    transition: transform .12s ease, background .18s ease, color .18s ease;
}
.action-btn:active { transform: translateY(1px); }
.action-btn:disabled { cursor: not-allowed; opacity: .55; }
.action-btn.primary { background: #970223; color: #fff; }
.action-btn.yellow { background: #ffc51b; border-color: #c18e00; color: #362600; }
.action-btn.soft { background: #fff8df; border-color: #d6b34b; color: #6f4d00; }
.action-btn.compact { min-height: 35px; padding: 5px 12px; font-size: .9rem; }
.prediction-hero .action-btn { background: #fff; border: 0; color: #7e1527; }
.prediction-hero .hero-secondary {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
}
.prediction-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 16px 0;
    padding-bottom: 2px;
}
.prediction-nav::-webkit-scrollbar { display: none; }
.prediction-nav button,
.prediction-nav a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid #d7d8dc;
    border-radius: 7px;
    background: #fff;
    color: #424857;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.prediction-nav button.active {
    border-color: #970223;
    background: #970223;
    color: #fff;
}
@media (min-width: 761px) {
    .prediction-nav .profile-nav-btn { margin-left: auto; }
}
.prediction-view { display: none; }
.prediction-view.active { display: block; }
.surface {
    margin-bottom: 14px;
    padding: 19px;
    border: 1px solid #e1e2e6;
    border-radius: 8px;
    background: #fff;
}
.surface-head,
.inline-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.surface h2 { margin: 0 0 4px; color: #7e1527; font-size: 1.28rem; }
.surface h3 { margin: 0; color: #303646; font-size: 1rem; }
.muted { color: #606876; margin: 3px 0 0; font-size: .92rem; }
.phase-guidance {
    margin-top: 15px;
    padding: 13px 14px;
    border: 1px dashed #d3ad3b;
    border-radius: 7px;
    background: #fffaf0;
}
.phase-guidance h3 { margin: 0 0 4px; color: #7e1527; }
.home-grid,
.profile-metrics,
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.home-grid { margin: 16px 0; }
.home-welcome { padding-top: 16px; padding-bottom: 16px; }
.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.home-dashboard {
    overflow: hidden;
    position: relative;
    border-color: rgba(151, 2, 35, .2);
    background:
        linear-gradient(135deg, rgba(255, 248, 226, .96), rgba(255,255,255,.98) 55%),
        radial-gradient(circle at top right, rgba(255,197,27,.22), transparent 32%);
}
.dashboard-head {
    align-items: flex-start;
}
.dashboard-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    margin-bottom: 9px;
    padding: 4px 10px;
    border: 1px solid rgba(151, 2, 35, .18);
    border-radius: 999px;
    background: #fff4dc;
    color: #7e1527;
    font-family: "Kanit", Arial, sans-serif;
    font-size: .78rem;
    font-weight: 800;
}
.dashboard-progress {
    display: grid;
    gap: 8px;
    margin-top: 15px;
}
.dashboard-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #4b5261;
    font-weight: 700;
}
.dashboard-progress-top strong {
    color: #7e1527;
    font-family: "Kanit", Arial, sans-serif;
    font-size: 1.25rem;
}
.dashboard-metrics .metric {
    min-height: 92px;
    border-color: rgba(151, 2, 35, .14);
    background: #fff;
}
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.quick-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 72px;
    padding: 13px 14px;
    border: 1px solid #e1e2e6;
    border-radius: 8px;
    background: #fff;
    color: #313746;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, border-color .18s ease, box-shadow .18s ease;
}
.quick-action-card:hover,
.quick-action-card:focus-visible {
    border-color: #d3ad3b;
    box-shadow: 0 8px 18px rgba(81, 44, 0, .08);
    outline: none;
}
.quick-action-card:active { transform: translateY(1px); }
.quick-action-card span { font-size: 1.38rem; }
.quick-action-card b {
    color: inherit;
    font-family: "Kanit", Arial, sans-serif;
    line-height: 1.05;
}
.quick-action-card.primary {
    border-color: rgba(151, 2, 35, .32);
    background: linear-gradient(135deg, #970223, #c18e00);
    color: #fff;
}
.favorite-team-card {
    overflow: hidden;
    margin-bottom: 14px;
    border-color: rgba(191, 141, 12, .32);
    background:
        linear-gradient(135deg, rgba(255, 197, 27, .13), rgba(151, 2, 35, .04)),
        rgba(255,255,255,.94);
}
.favorite-team-head { align-items: flex-start; }
.favorite-team-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(151, 2, 35, .14);
    border-radius: 999px;
    background: rgba(255, 197, 27, .16);
    color: #7e1527;
    font-family: "Kanit", Arial, sans-serif;
    font-weight: 800;
}
.favorite-team-current.empty {
    color: #626977;
    background: rgba(255,255,255,.72);
}
.favorite-team-current.favorite-team-locked {
    gap: 10px;
    padding: 9px 13px;
    border-radius: 14px;
}
.favorite-team-current.favorite-team-locked .group-pick-flag {
    width: 38px;
    height: 26px;
}
.favorite-team-current.favorite-team-locked div {
    display: grid;
    gap: 1px;
    line-height: 1.05;
}
.favorite-team-current.favorite-team-locked span {
    color: #6f7786;
    font-size: .74rem;
    text-transform: uppercase;
}
.favorite-team-current.favorite-team-locked b {
    color: #7e1527;
    font-size: 1rem;
}
.favorite-team-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: end;
    gap: 12px;
    margin-top: 16px;
}
.favorite-team-picker {
    display: grid;
    gap: 6px;
    color: #7e1527;
    font-family: "Kanit", Arial, sans-serif;
    font-weight: 800;
}
.favorite-team-picker select {
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, #7e1527 50%),
        linear-gradient(135deg, #7e1527 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 13px) 50%;
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
    cursor: pointer;
}
.favorite-team-picker select option {
    color: #202534;
    background: #fff;
}
.favorite-team-preview,
.favorite-profile-value {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(126, 21, 39, .13);
    border-radius: 12px;
    background: rgba(255,255,255,.78);
    color: #202534;
    font-family: "Kanit", Arial, sans-serif;
}
.favorite-team-preview .group-pick-flag,
.favorite-profile-value .group-pick-flag {
    width: 34px;
    height: 24px;
}
.favorite-team-blank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 24px;
    border-radius: 6px;
    background: rgba(151, 2, 35, .08);
}
.favorite-profile-card { border-color: rgba(255, 197, 27, .32); }
.favorite-profile-value span {
    display: block;
    color: #6b7280;
    font-size: .86rem;
    font-weight: 800;
}
.favorite-profile-value strong {
    display: block;
    color: #7e1527;
    font-size: 1.18rem;
}
.favorite-profile-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.favorite-profile-empty p {
    margin: 0;
    color: #545b67;
    font-weight: 700;
}
.home-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 14px;
}
.ranking-preview {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}
.ranking-preview-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #ececef;
    border-radius: 8px;
    background: #fff;
}
.ranking-preview-row.me {
    border-color: #d3ad3b;
    background: #fff9e8;
}
.ranking-preview-row b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ranking-preview-row strong {
    color: #7e1527;
    font-family: "Kanit", Arial, sans-serif;
}
.ranking-starter-callout {
    margin: 14px 0 2px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 197, 27, .42);
    background: rgba(255, 197, 27, .14);
    color: #7a0000;
    font-weight: 900;
}
.competition-spotlight .competition-count {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #970223;
    color: #fff;
    font-family: "Kanit", Arial, sans-serif;
    font-weight: 800;
}
.competition-actions {
    display: grid;
    gap: 10px;
    margin-top: 13px;
}
.competition-form.compact-form {
    max-width: none;
    margin-top: 0;
}
.prediction-seo-guide {
    line-height: 1.58;
}
.prediction-seo-guide p {
    margin: 10px 0 0;
    color: #4f5867;
}
.profile-metrics { margin: 14px 0 10px; }
.profile-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 185px));
    gap: 10px;
}
.metric {
    min-height: 82px;
    padding: 12px;
    border: 1px solid #ebe1d4;
    border-radius: 7px;
    background: #fffaf0;
}
.metric strong {
    display: block;
    color: #7e1527;
    font-family: "Kanit", sans-serif;
    font-size: 1.52rem;
    line-height: 1;
}
.metric span { color: #555d69; font-size: .83rem; font-weight: 700; }
.upcoming-list,
.competition-list,
.ranking-list { display: grid; gap: 8px; margin-top: 14px; }
.upcoming-row,
.competition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid #ececef;
    border-radius: 7px;
}
.competition-link {
    margin: 0 0 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7e1527;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.competition-link:hover { text-decoration: underline; }
.competition-ranking-title { margin-top: 18px !important; }
.team-pair { display: flex; align-items: center; gap: 6px; font-weight: 700; min-width: 0; }
.team-pair img,
.match-team img,
.standing-team img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex: 0 0 auto;
}
.status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 14px;
    background: #f1f2f4;
    color: #57606d;
    font-size: .78rem;
    font-weight: 700;
}
.status.saved { background: #dcf3e6; color: #107343; }
.status.closed { background: #f7e1e3; color: #a5162d; }
.status.exact { background: #d5f4e1; color: #08713b; }
.status.partial { background: #fff1c5; color: #7b5900; }
.stage-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 14px 0;
    scrollbar-width: none;
}
.stage-tabs button {
    flex: 0 0 auto;
    min-height: 37px;
    padding: 6px 13px;
    border: 1px solid #dedfe4;
    border-radius: 20px;
    background: #fff;
    color: #48505e;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}
.stage-tabs button.active { background: #fff0c8; color: #7e1527; border-color: #d3ad3b; }
.prediction-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.prediction-mode-switch button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon copy";
    align-items: center;
    gap: 2px 10px;
    min-height: 70px;
    padding: 13px;
    border: 1px solid #dedfe4;
    border-radius: 10px;
    background: #fff;
    color: #303646;
    text-align: left;
    cursor: pointer;
}
.prediction-mode-switch button span {
    grid-area: icon;
    font-size: 1.5rem;
}
.prediction-mode-switch button b {
    grid-area: title;
    color: #7e1527;
    font-family: "Kanit", Arial, sans-serif;
}
.prediction-mode-switch button small {
    grid-area: copy;
    color: #606876;
    font-weight: 700;
    line-height: 1.2;
}
.prediction-mode-switch button.active {
    border-color: #d3ad3b;
    background: linear-gradient(135deg, #970223, #c18e00);
    color: #fff;
}
.prediction-mode-switch button.active b,
.prediction-mode-switch button.active small { color: #fff; }
.match-list { display: grid; gap: 10px; }
.match-card {
    padding: 13px;
    border: 1px solid #e1e3e8;
    border-radius: 8px;
    background: #fff;
}
.match-card header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    font-size: .79rem;
    color: #616a79;
    font-weight: 700;
}
.match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px 17px 48px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
}
.match-team {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    color: #272d3b;
    font-weight: 700;
    text-align: right;
}
.match-team.away { justify-content: flex-start; text-align: left; }
.match-team span { overflow-wrap: anywhere; }
.score-input {
    box-sizing: border-box;
    width: 48px;
    height: 39px;
    padding: 0;
    border: 1px solid #d1b258;
    border-radius: 7px;
    background: #fffdf7;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}
.versus { color: #936e03; text-align: center; font-weight: 700; }
.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 11px;
}
.match-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.result-note { font-size: .84rem; color: #5c6472; font-weight: 700; }
.rules-score-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 16px;
}
.rule-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.rule-guide-card {
    padding: 14px;
    border: 1px solid #e6d39a;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,197,27,.08), rgba(151,2,35,.04)),
        #fffdf8;
}
.rule-guide-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}
.rule-guide-head span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffc51b;
    color: #3b2500;
    font-size: 1.05rem;
}
.rule-guide-head h3 {
    color: #7e1527;
    font-size: 1.02rem;
}
.rule-guide-card ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: #3a4050;
    font-size: .92rem;
    line-height: 1.35;
}
.prediction-groups {
    display: grid;
    gap: 12px;
}
.prediction-group {
    overflow: hidden;
    border: 1px solid #e1e3e8;
    border-radius: 8px;
    background: #fff;
}
.prediction-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff4dc;
}
.prediction-group-head div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.prediction-group-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.prediction-group-head h3 { color: #7e1527; font-size: 1.08rem; }
.prediction-group-head span { font-size: .8rem; font-weight: 700; color: #606876; }
.prediction-group > .group-table {
    margin: 10px 12px;
}
.prediction-team-row {
    display: grid;
    grid-template-columns: minmax(138px, 185px) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 8px 12px;
    border-top: 1px solid #eaebee;
}
.prediction-team-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 700;
}
.prediction-team-name span { overflow-wrap: anywhere; }
.group-pick-flag {
    width: 29px;
    height: 20px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 3px;
    flex: 0 0 auto;
}
.group-pick-fallback { width: 29px; height: 20px; display: inline-block; }
.prediction-team-fixtures {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}
.group-fixture {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #fbfaf6;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.group-fixture.has-official {
    flex-direction: column;
    align-items: stretch;
}
.group-fixture:hover,
.group-fixture:focus-visible {
    border-color: #d3ad3b;
    box-shadow: 0 0 0 2px rgba(211, 173, 59, .16);
    outline: none;
}
.group-fixture.quick-open-highlight {
    border-color: #ffc51b;
    box-shadow: 0 0 0 3px rgba(255, 197, 27, .32), 0 8px 18px rgba(0,0,0,.12);
}
.group-fixture.is-live {
    border-color: #dcaa11;
    background: #fff1bd;
    box-shadow: 0 0 0 2px rgba(255, 197, 27, .20), 0 10px 22px rgba(128, 83, 0, .12);
    animation: liveBreath 1.8s ease-in-out infinite;
}
.group-fixture.is-finished {
    border-color: #96c4a7;
    background: #edf7f1;
}
@keyframes liveBreath {
    0%, 100% { box-shadow: 0 0 0 2px rgba(255, 197, 27, .18), 0 10px 22px rgba(128, 83, 0, .10); }
    50% { box-shadow: 0 0 0 5px rgba(255, 197, 27, .34), 0 14px 28px rgba(128, 83, 0, .18); }
}
.group-prediction-line {
    display: inline-grid;
    grid-template-columns: 29px 38px 11px 38px 29px;
    align-items: center;
    gap: 3px;
}
.group-live-compare {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin-top: 5px;
    color: #3b2b00;
    font-size: .66rem;
    line-height: 1.1;
    text-align: center;
}
.group-live-compare span {
    border-radius: 999px;
    background: #b3002d;
    color: #fff;
    padding: 3px 6px;
    font-size: .6rem;
    text-transform: uppercase;
}
.group-live-compare b {
    border-radius: 6px;
    background: rgba(255,255,255,.72);
    padding: 3px 5px;
    white-space: nowrap;
}
.group-score {
    width: 38px;
    height: 34px;
    font-size: .92rem;
}
.group-details-hint {
    position: absolute;
    top: 2px;
    right: 3px;
    color: #976e05;
    font-family: "Kanit", Arial, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}
.group-fixture.locked { opacity: .86; }
.group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 13px;
}
.group-table {
    overflow: hidden;
    border: 1px solid #eaebee;
    border-radius: 7px;
}
.group-table h3 { padding: 9px 10px; background: #fff4dc; color: #7e1527; }
.standings-row {
    display: grid;
    grid-template-columns: 26px minmax(0,1fr) repeat(4, 29px);
    align-items: center;
    gap: 3px;
    padding: 7px 7px;
    font-size: .77rem;
    border-top: 1px solid #eef0f2;
}
.standings-row.heading { color: #657080; font-weight: 700; }
.standings-row.qualified { background: #eff9f2; }
.standings-row.best-third {
    background: rgba(151, 2, 35, .09);
    box-shadow: inset 4px 0 0 #b3002d;
}
.standing-team {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-width: 0;
    font-weight: 700;
}
.standing-team img { width: 19px; height: 19px; }
.standing-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thirds-table { margin-top: 13px; }
.bracket-list { display: grid; gap: 8px; margin-top: 13px; }
.bracket-row {
    display: grid;
    grid-template-columns: 45px minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 7px;
    padding: 9px;
    border: 1px solid #eceef0;
    border-radius: 7px;
    font-size: .87rem;
}
.bracket-row b { color: #7e1527; }
.bracket-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 12px;
    overflow-x: auto;
    margin-top: 14px;
    padding: 4px 2px 12px;
}
.bracket-responsive-wrap {
    margin-top: 14px;
}
.bracket-mobile-stages {
    display: none;
}
.bracket-board.compact { grid-auto-columns: minmax(170px, 1fr); }
.bracket-board-split {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: minmax(700px, 1fr) minmax(170px, 210px) minmax(700px, 1fr);
    align-items: start;
    gap: 14px;
}
.bracket-side {
    display: grid;
    grid-template-columns: minmax(150px, 1.2fr) minmax(140px, .98fr) minmax(130px, .86fr) minmax(120px, .74fr);
    align-items: start;
    gap: 10px;
}
.bracket-side-right {
    grid-template-columns: minmax(120px, .74fr) minmax(130px, .86fr) minmax(140px, .98fr) minmax(150px, 1.2fr);
}
.bracket-center {
    display: grid;
    align-content: center;
    gap: 16px;
    min-height: 100%;
    padding-top: 306px;
}
.bracket-stage-column {
    display: grid;
    align-content: start;
    gap: 9px;
}
.bracket-stage-column h3 {
    text-align: center;
    color: #7e1527;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.bracket-stage-matches {
    display: grid;
    gap: 9px;
}
.bracket-board-split .bracket-stage-round32 .bracket-stage-matches { gap: 9px; }
.bracket-board-split .bracket-stage-round16 .bracket-stage-matches {
    gap: 86px;
    padding-top: 42px;
}
.bracket-board-split .bracket-stage-quarters .bracket-stage-matches {
    gap: 238px;
    padding-top: 126px;
}
.bracket-board-split .bracket-stage-semis .bracket-stage-matches {
    padding-top: 292px;
}
.bracket-board-split .bracket-stage-final .bracket-stage-matches,
.bracket-board-split .bracket-stage-third .bracket-stage-matches {
    padding-top: 0;
}
.bracket-match-card {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 9px;
    border: 1px solid #e6e7eb;
    border-radius: 8px;
    background: #10202a;
    color: #fff;
}
.bracket-match-card.compact { padding: 7px; }
.bracket-board-split .bracket-match-card.compact {
    min-height: 76px;
    padding: 6px;
}
.bracket-match-number {
    position: absolute;
    top: 5px;
    right: 7px;
    color: rgba(255,255,255,.58);
    font-size: .68rem;
    font-weight: 800;
}
.bracket-team {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
}
.bracket-board-split .bracket-team {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-height: 29px;
    padding: 4px 6px;
    gap: 5px;
}
.bracket-board-split .bracket-team span { font-size: .76rem; }
.bracket-board-split .bracket-team small { font-size: .64rem; }
.bracket-team:disabled {
    cursor: default;
    opacity: .56;
}
.bracket-team.readonly {
    cursor: default;
}
.bracket-team.picked {
    border-color: #ffc51b;
    background: rgba(255,197,27,.22);
    box-shadow: inset 3px 0 0 #ffc51b;
}
.bracket-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}
.bracket-team small {
    color: rgba(255,255,255,.7);
    font-weight: 900;
}
.bracket-team .group-pick-flag,
.bracket-team .group-pick-fallback {
    width: 27px;
    height: 19px;
}
.best-thirds-picker {
    margin-top: 16px;
    padding: 12px;
    border: 1px dashed #d3ad3b;
    border-radius: 8px;
    background: #fffaf0;
}
.best-thirds-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.best-thirds-grid button {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 43px;
    padding: 7px;
    border: 1px solid #e1e3e8;
    border-radius: 8px;
    background: #fff;
    color: #303646;
    text-align: left;
    cursor: pointer;
}
.best-thirds-grid button.active {
    border-color: #d3ad3b;
    background: #fff0c8;
    box-shadow: inset 4px 0 0 #d3ad3b;
}
.best-thirds-grid button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}
.best-thirds-grid button small {
    grid-column: 2;
    color: #606876;
    font-size: .72rem;
    font-weight: 800;
}
.compact-projection {
    margin-top: 14px;
}
.compact-tables .group-table {
    font-size: .86rem;
}
.projection-mode-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(126, 21, 39, .14);
}
.compact-head { align-items: flex-start; }
.ranking-groups-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.ranking-group-card {
    padding: 12px;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    background: #fffdf8;
}
.ranking-group-card h3 {
    margin-bottom: 10px;
    color: #7e1527;
}
.ranking-group-selects {
    display: grid;
    gap: 8px;
}
.ranking-group-selects label {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    grid-template-areas:
        "label select"
        "label preview";
    align-items: center;
    gap: 3px 8px;
}
.ranking-group-selects label > span {
    grid-area: label;
    color: #596273;
    font-size: .78rem;
    font-weight: 800;
}
.ranking-group-selects select { grid-area: select; min-height: 36px; }
.ranking-group-selects select,
.favorite-team-picker select {
    color-scheme: light;
}
.ranking-group-selects select option,
.favorite-team-picker select option {
    background: #fffdf8;
    color: #1c2230;
}
.ranking-team-preview {
    grid-area: preview;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    color: #303646;
    font-size: .82rem;
}
.ranking-team-preview:empty { display: none; }
.ranking-team-preview .group-pick-flag,
.ranking-team-preview .group-pick-fallback {
    width: 24px;
    height: 17px;
}
.locked-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 7px;
    border: 1px dashed #d3ad3b;
    background: #fffaf0;
    color: #585f6e;
}
.ranking-head,
.ranking-row {
    display: grid;
    grid-template-columns: 46px minmax(135px,1fr) repeat(5, 88px);
    align-items: center;
    gap: 5px;
    padding: 9px 10px;
}
.ranking-head { color: #666f7e; font-size: .75rem; font-weight: 700; }
.ranking-row {
    border: 1px solid #e9ebef;
    border-radius: 7px;
    background: #fff;
    font-size: .88rem;
}
.ranking-row.me { border-color: #d3ad3b; background: #fff9e8; }
.rank-medal { color: #7e1527; font-family: "Kanit", sans-serif; font-size: 1.05rem; }
.username { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.ranking-mobile-stats { display: none; }
.competition-form {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto;
    gap: 8px;
    max-width: 470px;
    margin-top: 14px;
}
.competition-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.competition-tier-card {
    padding: 16px;
    border: 1px solid rgba(126, 21, 39, .16);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fff8e6);
    box-shadow: 0 8px 18px rgba(37, 42, 55, .08);
}
.competition-tier-card h3 { margin: 8px 0 6px; }
.competition-tier-card p { margin: 0; color: #4f5867; }
.competition-tier-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #4f5867;
    font-weight: 700;
}
.competition-tier-card .competition-form { max-width: none; }
.premium-tier {
    border-color: rgba(255, 197, 27, .58);
    background: linear-gradient(135deg, rgba(151,2,35,.08), rgba(255,197,27,.22));
}
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(126, 21, 39, .1);
    color: #7e1527;
    font-weight: 900;
    font-size: .82rem;
}
.tier-badge.premium {
    background: #ffc51b;
    color: #332300;
}
.premium-status {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(126, 21, 39, .18);
    border-radius: 10px;
    background: rgba(255,255,255,.74);
    color: #4f5867;
    font-weight: 800;
}
.premium-status.pending {
    border-color: rgba(255, 197, 27, .55);
    background: rgba(255, 197, 27, .18);
    color: #6b4a00;
}
.premium-status.paid {
    border-color: rgba(34, 197, 94, .45);
    background: rgba(34, 197, 94, .13);
    color: #125c2f;
}
.premium-btn { margin-top: 12px; }
.paypal-wrap {
    margin-top: 12px;
    min-height: 44px;
}
.premium-create-form {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(130px, auto) auto;
}
.text-input {
    width: 100%;
    min-height: 41px;
    padding: 8px 12px;
    border: 1px solid #d9dbe1;
    border-radius: 7px;
    font: inherit;
}
.tiebreak-picker {
    display: grid;
    grid-template-columns: minmax(130px, auto) repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    margin: -2px 0 8px;
    padding: 8px;
    border: 1px dashed rgba(126, 21, 39, .25);
    border-radius: 8px;
    background: #fffaf0;
    color: #303646;
}
.tiebreak-picker > span {
    font-size: .78rem;
    font-weight: 900;
    color: #7e1527;
}
.tiebreak-picker label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid #dfc681;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    cursor: pointer;
}
.tiebreak-picker label.selected,
.tiebreak-picker label:has(input:checked) {
    border-color: #ffc51b;
    background: #ffc51b;
    color: #3f2a00;
}
.tiebreak-picker input { accent-color: #7e1527; }
.tiebreak-picker .group-pick-flag,
.tiebreak-picker .group-pick-fallback {
    width: 25px;
    height: 18px;
}
.form-note { color: #5f6877; font-size: .83rem; margin-top: 8px; }
.username-panel { max-width: 480px; }
.empty {
    padding: 20px 12px;
    color: #626b78;
    text-align: center;
    border: 1px dashed #dcdfe5;
    border-radius: 7px;
}
.prediction-modal {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(17, 21, 29, .62);
}
.prediction-modal.show { display: flex; }
.modal-card {
    width: min(650px, 100%);
    max-height: min(84vh, 660px);
    overflow-y: auto;
    padding: 21px;
    border-radius: 8px;
    background: #fff;
}
.modal-card h2 { margin: 0 34px 8px 0; color: #7e1527; }
.modal-close {
    float: right;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #7e1527;
    background: #fff0c8;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
}
.match-detail-card h2 {
    margin-bottom: 17px;
}
.match-detail-stage {
    margin: 0 38px 3px 0;
    color: #687383;
    font-size: .8rem;
    font-weight: 700;
}
.match-detail-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 148px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.detail-team {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    text-align: center;
}
.detail-team img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.detail-team b { overflow-wrap: anywhere; }
.detail-official-state {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 12px 6px;
    border-radius: 8px;
    background: #f5f6f7;
    text-align: center;
}
.detail-official-state strong {
    color: #7e1527;
    font-family: "Kanit", Arial, sans-serif;
    font-size: 1rem;
}
.detail-official-state span {
    color: #616a79;
    font-size: .78rem;
    font-weight: 700;
}
.match-detail-card.is-live .detail-official-state {
    background: #fff1bd;
    border: 1px solid #dcaa11;
}
.match-detail-card.is-finished .detail-official-state {
    background: #edf7f1;
    border: 1px solid #96c4a7;
}
.match-detail-data {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.match-detail-data div {
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fbfaf6;
}
.match-detail-data span {
    display: block;
    margin-bottom: 3px;
    color: #687383;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.match-detail-data strong {
    display: block;
    font-size: .84rem;
}
.detail-prediction {
    padding: 13px 11px;
    border: 1px solid #e1e3e8;
    border-radius: 8px;
    background: #fffaf0;
}
.detail-prediction h3,
.detail-lineups h3 {
    margin: 0 0 11px;
    color: #7e1527;
}
.detail-lineups {
    margin-top: 14px;
    padding: 12px;
    border: 1px dashed #d8bf76;
    border-radius: 8px;
}
.detail-lineups p {
    margin: 0;
    color: #606876;
    font-size: .88rem;
}
.data-assist-panel {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #e0c36a;
    border-radius: 8px;
    background: linear-gradient(135deg, #fffdf4, #fff6d8);
}
.data-source-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #7e1527;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
}
.data-assist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.data-assist-card {
    display: grid;
    gap: 5px;
    padding: 11px;
    border: 1px solid rgba(126, 21, 39, .15);
    border-radius: 8px;
    background: rgba(255,255,255,.78);
}
.data-assist-card span {
    color: #6b7280;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.data-assist-card strong { color: #7e1527; }
.data-assist-card small { color: #4b5563; font-weight: 700; }
.group-insights-card { max-width: 860px; }
.group-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0; }
.group-insight-fixtures {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}
.group-insight-fixture {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    color: #232936;
    cursor: pointer;
    font-weight: 800;
}
.group-insight-fixture span:last-child { text-align: right; }
.group-insight-fixture strong {
    min-width: 88px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #7e1527;
    font-size: .78rem;
    text-align: center;
}
.lineups-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.lineups-two-cols h4,
.lineup-list h4 {
    margin: 0 0 7px;
    color: #7e1527;
}
.lineup-grid {
    display: grid;
    gap: 9px;
}
.lineup-list ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.lineup-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 7px;
    background: #f5f6f7;
    font-size: .85rem;
    font-weight: 700;
}
.lineup-list small { color: #6b7280; }
.group-favoritism {
    margin: 14px 0;
    padding: 12px;
    border: 1px solid rgba(126, 21, 39, .12);
    border-radius: 8px;
    background: #fffdf5;
}
.favoritism-list {
    display: grid;
    gap: 8px;
}
.favoritism-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(140px, auto);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e7e2d3;
    border-radius: 8px;
    background: #fff;
}
.favoritism-team {
    display: grid;
    gap: 2px;
}
.favoritism-team b { color: #7e1527; }
.favoritism-team span,
.favor-source {
    color: #687383;
    font-size: .78rem;
    font-weight: 700;
}
.favoritism-stats {
    display: grid;
    gap: 1px;
    justify-items: end;
}
.favoritism-stats span {
    color: #687383;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}
.favoritism-stats strong {
    color: #970223;
    font-size: 1.35rem;
}
.favoritism-stats small { color: #687383; font-weight: 800; }
.favor-source { margin: 10px 0 0; }
.favor-source a { color: #7e1527; font-weight: 900; }
.favorite-mini-card {
    display: grid;
    gap: 5px;
    margin-top: 6px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.72);
}
.favorite-mini-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #7e1527;
    font-weight: 900;
}
.favorite-mini-head strong {
    display: grid;
    justify-items: end;
    line-height: 1.05;
}
.favorite-mini-head strong small {
    font-size: .58rem;
    text-transform: uppercase;
}
.favorite-mini-card small { color: #687383; font-size: .75rem; }
.squad-section {
    margin: 14px 0 0;
    padding: 12px;
    border: 1px solid rgba(126, 21, 39, .12);
    border-radius: 8px;
    background: #fff;
}
.squad-team-list {
    display: grid;
    gap: 10px;
}
.squad-team-card {
    border: 1px solid #e7e2d3;
    border-radius: 8px;
    background: #fffdf5;
    overflow: hidden;
}
.squad-team-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #ede5ce;
}
.squad-team-head strong {
    color: #7e1527;
    font-size: 1rem;
}
.squad-team-head span {
    display: block;
    margin-top: 2px;
    color: #687383;
    font-size: .76rem;
    font-weight: 800;
}
.squad-groups {
    display: grid;
    gap: 10px;
    padding: 10px;
}
.squad-group h4 {
    margin: 0 0 7px;
    color: #970223;
    font-size: .9rem;
}
.squad-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 7px;
}
.squad-player {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #eee4c7;
    border-radius: 7px;
    background: #fff;
}
.squad-player b {
    color: #222a38;
    font-size: .82rem;
    line-height: 1.2;
}
.squad-player small {
    color: #687383;
    font-size: .72rem;
    font-weight: 700;
}
.prediction-toast {
    position: fixed;
    z-index: 4000;
    right: 18px;
    bottom: 18px;
    max-width: 350px;
    padding: 11px 15px;
    border-radius: 7px;
    background: #242a36;
    color: #fff;
    transform: translateY(130%);
    transition: transform .22s ease;
}
.prediction-toast.show { transform: translateY(0); }
.site-footer { margin-top: 25px; padding: 18px 8px; text-align: center; color: #59616e; }
.cafecito-footer { margin-bottom: 12px; text-align: center; }
.cafecito-footer img { display: inline-block; max-width: 100%; height: auto; border: 0; }
.site-footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; }
.site-footer a { color: #7e1527; font-weight: 700; text-decoration: none; }

body.dark-mode { background: #11151e; color: #eef1f4; }
body.dark-mode .surface,
body.dark-mode .auth-gate,
body.dark-mode .prediction-nav button,
body.dark-mode .prediction-nav a,
body.dark-mode .match-card,
body.dark-mode .prediction-group,
body.dark-mode .competition-row,
body.dark-mode .ranking-row,
body.dark-mode .modal-card { background: #191e2a; border-color: rgba(255,255,255,.12); color: #eff2f6; }
body.dark-mode .surface h2,
body.dark-mode .auth-gate h1,
body.dark-mode .modal-card h2,
body.dark-mode .rank-medal { color: #ffc51b; }
body.dark-mode .prediction-mode-switch button,
body.dark-mode .best-thirds-grid button {
    background: #191e2a;
    border-color: rgba(255,255,255,.12);
    color: #eff2f6;
}
body.dark-mode .prediction-mode-switch button b { color: #ffc51b; }
body.dark-mode .prediction-mode-switch button small,
body.dark-mode .best-thirds-grid button small { color: #cbd1da; }
body.dark-mode .prediction-mode-switch button.active {
    background: linear-gradient(135deg, #970223, #b48400);
    border-color: rgba(255,197,27,.34);
}
body.dark-mode .prediction-mode-switch button.active b,
body.dark-mode .prediction-mode-switch button.active small { color: #fff; }
body.dark-mode .action-btn.soft {
    background: rgba(255,197,27,.12);
    border-color: rgba(255,197,27,.35);
    color: #ffc51b;
}
body.dark-mode .best-thirds-picker {
    background: rgba(255,197,27,.08);
    border-color: rgba(255,197,27,.28);
}
body.dark-mode .best-thirds-grid button.active {
    background: rgba(255,197,27,.18);
    border-color: rgba(255,197,27,.62);
}
body.dark-mode .surface h3,
body.dark-mode .match-team { color: #eff2f6; }
body.dark-mode .muted,
body.dark-mode .form-note,
body.dark-mode .result-note,
body.dark-mode .auth-gate p,
body.dark-mode .site-footer { color: #c6ccd5; }
body.dark-mode .public-prediction-intro { border-color: rgba(255,197,27,.18); }
body.dark-mode .public-prediction-intro h2,
body.dark-mode .public-rules strong,
body.dark-mode .public-links a { color: #ffc51b; }
body.dark-mode .public-faq h3 { color: #eff2f6; }
body.dark-mode .public-rules div { background: rgba(255,197,27,.06); border-color: rgba(255,197,27,.22); }
body.dark-mode .competition-tier-card {
    background: #1f2532;
    border-color: rgba(255,255,255,.13);
    color: #eff2f6;
}
body.dark-mode .premium-tier {
    background: linear-gradient(135deg, rgba(151,2,35,.22), rgba(255,197,27,.10));
    border-color: rgba(255,197,27,.32);
}
body.dark-mode .competition-tier-card p,
body.dark-mode .competition-tier-card ul { color: #c6ccd5; }
body.dark-mode .premium-status {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.13);
    color: #dce2eb;
}
body.dark-mode .premium-status.pending {
    background: rgba(255,197,27,.12);
    border-color: rgba(255,197,27,.3);
    color: #ffe083;
}
body.dark-mode .premium-status.paid {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.32);
    color: #98f3ba;
}
body.dark-mode .home-dashboard {
    background:
        linear-gradient(135deg, rgba(25, 30, 42, .98), rgba(18, 22, 32, .98) 56%),
        radial-gradient(circle at top right, rgba(255,197,27,.13), transparent 35%);
    border-color: rgba(255,197,27,.22);
}
body.dark-mode .dashboard-badge,
body.dark-mode .dashboard-metrics .metric {
    background: rgba(255,197,27,.08);
    border-color: rgba(255,197,27,.25);
    color: #ffc51b;
}
body.dark-mode .dashboard-progress-top,
body.dark-mode .prediction-seo-guide p { color: #c6ccd5; }
body.dark-mode .dashboard-progress-top strong { color: #ffc51b; }
body.dark-mode .regional-prediction-seo {
    background: rgba(24, 28, 39, .92);
    border-color: rgba(255,197,27,.2);
    color: #e8ecf3;
}
body.dark-mode .regional-prediction-seo h2 { color: #ffc51b; }
body.dark-mode .regional-prediction-grid span {
    background: rgba(255,197,27,.08);
    border-color: rgba(255,197,27,.24);
    color: #ffe08a;
}
body.dark-mode .quick-action-card,
body.dark-mode .ranking-preview-row {
    background: #191e2a;
    border-color: rgba(255,255,255,.12);
    color: #eff2f6;
}
body.dark-mode .quick-action-card.primary {
    background: linear-gradient(135deg, #970223, #b48400);
    color: #fff;
    border-color: rgba(255,197,27,.28);
}
body.dark-mode .favorite-team-card {
    background:
        linear-gradient(135deg, rgba(255,197,27,.12), rgba(151,2,35,.16)),
        #191e2a;
    border-color: rgba(255,197,27,.28);
}
body.dark-mode .favorite-team-current,
body.dark-mode .favorite-team-preview,
body.dark-mode .favorite-profile-value {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,197,27,.24);
    color: #eff2f6;
}
body.dark-mode .favorite-team-current,
body.dark-mode .favorite-team-picker,
body.dark-mode .favorite-profile-value strong {
    color: #ffc51b;
}
body.dark-mode .favorite-team-current.favorite-team-locked span {
    color: #c6ccd5;
}
body.dark-mode .favorite-team-current.favorite-team-locked b {
    color: #ffc51b;
}
body.dark-mode .favorite-team-picker select {
    color: #fff;
    background-color: #222838;
    background-image:
        linear-gradient(45deg, transparent 50%, #ffc51b 50%),
        linear-gradient(135deg, #ffc51b 50%, transparent 50%);
}
body.dark-mode .favorite-team-picker select option {
    color: #fff;
    background: #222838;
}
body.dark-mode .favorite-team-current.empty,
body.dark-mode .favorite-profile-value span,
body.dark-mode .favorite-profile-empty p {
    color: #c6ccd5;
}
body.dark-mode .favorite-team-blank {
    background: rgba(255,197,27,.12);
}
body.dark-mode .ranking-preview-row.me {
    background: rgba(255,197,27,.08);
    border-color: rgba(255,197,27,.52);
}
body.dark-mode .ranking-preview-row strong { color: #ffc51b; }
body.dark-mode .ranking-starter-callout {
    background: rgba(255,197,27,.12);
    border-color: rgba(255,197,27,.32);
    color: #ffd75b;
}
body.dark-mode .competition-spotlight .competition-count { background: #ffc51b; color: #352400; }
body.dark-mode .metric,
body.dark-mode .phase-guidance,
body.dark-mode .rule-guide-card,
body.dark-mode .locked-box,
body.dark-mode .prediction-group-head,
body.dark-mode .group-table h3 { background: rgba(255,197,27,.08); border-color: rgba(255,197,27,.25); }
body.dark-mode .metric strong,
body.dark-mode .rule-guide-head h3,
body.dark-mode .prediction-group-head h3,
body.dark-mode .group-table h3,
body.dark-mode .bracket-mobile-stage h3 { color: #ffc51b; }
body.dark-mode .prediction-group-head span { color: #d5d9e0; }
body.dark-mode .metric span { color: #d5d9e0; }
body.dark-mode .rule-guide-card ul { color: #d5d9e0; }
body.dark-mode .rule-guide-head span { background: #ffc51b; color: #342400; }
body.dark-mode .competition-link { color: #ffc51b; }
body.dark-mode .standings-row,
body.dark-mode .group-table,
body.dark-mode .prediction-team-row,
body.dark-mode .bracket-row { border-color: rgba(255,255,255,.1); }
body.dark-mode .projection-mode-block { border-color: rgba(255,197,27,.22); }
body.dark-mode .ranking-group-card {
    background: #191e2a;
    border-color: rgba(255,255,255,.12);
}
body.dark-mode .ranking-group-card h3 { color: #ffc51b; }
body.dark-mode .ranking-group-selects label > span { color: #cbd1da; }
body.dark-mode .ranking-group-selects select {
    background-color: #222838;
    border-color: rgba(255,197,27,.45);
    color: #fff;
    color-scheme: dark;
}
body.dark-mode .ranking-group-selects select option {
    background: #222838;
    color: #fff;
}
body.dark-mode .ranking-team-preview { color: #eff2f6; }
body.dark-mode .prediction-team-name { color: #eff2f6; }
body.dark-mode .group-fixture { background: rgba(255,255,255,.04); }
body.dark-mode .group-fixture.is-live { background: rgba(255,197,27,.18); border-color: rgba(255,197,27,.7); }
body.dark-mode .group-fixture.is-finished { background: rgba(27,143,75,.17); border-color: rgba(94,208,138,.5); }
body.dark-mode .group-details-hint { color: #ffc51b; }
body.dark-mode .group-live-compare { color: #fff3c4; }
body.dark-mode .group-live-compare b { background: rgba(12,16,24,.72); }
body.dark-mode .standings-row.qualified { background: rgba(26,122,71,.22); }
body.dark-mode .standings-row.best-third {
    background: rgba(191, 0, 38, .2);
    box-shadow: inset 4px 0 0 #ff4263;
}
body.dark-mode .score-input,
body.dark-mode .text-input { background: #222838; border-color: rgba(255,197,27,.45); color: #fff; }
body.dark-mode .tiebreak-picker {
    background: rgba(255,197,27,.07);
    border-color: rgba(255,197,27,.28);
    color: #eff2f6;
}
body.dark-mode .tiebreak-picker > span { color: #ffc51b; }
body.dark-mode .tiebreak-picker label {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,197,27,.34);
    color: #eff2f6;
}
body.dark-mode .tiebreak-picker label.selected,
body.dark-mode .tiebreak-picker label:has(input:checked) {
    background: #ffc51b;
    border-color: #ffc51b;
    color: #342400;
}
body.dark-mode .prediction-nav button.active { background: #ffc51b; color: #352400; border-color: #ffc51b; }
body.dark-mode .ranking-row.me { background: rgba(255,197,27,.08); border-color: rgba(255,197,27,.52); }
body.dark-mode .ranking-mobile-stats { color: #c6ccd5; }
body.dark-mode .site-footer a { color: #ffc51b; }
body.dark-mode .match-detail-stage,
body.dark-mode .detail-official-state span,
body.dark-mode .match-detail-data span,
body.dark-mode .detail-lineups p { color: #c6ccd5; }
body.dark-mode .detail-official-state,
body.dark-mode .match-detail-data div { background: #222838; border-color: rgba(255,255,255,.1); }
body.dark-mode .detail-official-state strong,
body.dark-mode .detail-prediction h3,
body.dark-mode .detail-lineups h3 { color: #ffc51b; }
body.dark-mode .detail-prediction { background: rgba(255,197,27,.06); border-color: rgba(255,197,27,.25); }
body.dark-mode .detail-lineups { border-color: rgba(255,197,27,.33); }
body.dark-mode .match-detail-card.is-live .detail-official-state { background: rgba(255,197,27,.16); border-color: rgba(255,197,27,.55); }
body.dark-mode .match-detail-card.is-finished .detail-official-state { background: rgba(27,143,75,.15); border-color: rgba(94,208,138,.45); }
body.dark-mode .data-assist-panel {
    background: rgba(255,197,27,.06);
    border-color: rgba(255,197,27,.28);
}
body.dark-mode .data-assist-card,
body.dark-mode .group-insight-fixture {
    background: #222838;
    border-color: rgba(255,255,255,.12);
    color: #eff2f6;
}
body.dark-mode .data-assist-card span,
body.dark-mode .data-assist-card small,
body.dark-mode .lineup-list small { color: #c6ccd5; }
body.dark-mode .data-assist-card strong,
body.dark-mode .lineups-two-cols h4,
body.dark-mode .lineup-list h4 { color: #ffc51b; }
body.dark-mode .group-insight-fixture strong,
body.dark-mode .lineup-list li {
    background: #171c27;
    color: #eff2f6;
}
body.dark-mode .group-favoritism,
body.dark-mode .favorite-mini-card,
body.dark-mode .squad-section,
body.dark-mode .squad-team-card {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,197,27,.22);
}
body.dark-mode .favoritism-row,
body.dark-mode .squad-player {
    background: #222838;
    border-color: rgba(255,255,255,.12);
}
body.dark-mode .favoritism-team b,
body.dark-mode .favoritism-stats strong,
body.dark-mode .favorite-mini-head,
body.dark-mode .squad-team-head strong,
body.dark-mode .squad-group h4,
body.dark-mode .favor-source a { color: #ffc51b; }
body.dark-mode .favoritism-team span,
body.dark-mode .favoritism-stats small,
body.dark-mode .favoritism-stats span,
body.dark-mode .favor-source,
body.dark-mode .favorite-mini-card small,
body.dark-mode .squad-team-head span,
body.dark-mode .squad-player small { color: #c6ccd5; }
body.dark-mode .squad-player b { color: #eff2f6; }
body.dark-mode .squad-team-head { border-color: rgba(255,197,27,.18); }

@media (max-width: 760px) {
    .prediction-shell { width: calc(100vw - 12px); margin-top: calc(68px + env(safe-area-inset-top, 0px)); }
    #header.album-global-header[data-page="pronosticos"] .header-content,
    #header.album-global-header[data-page="pronosticos"].compact .header-content,
    #header.album-global-header[data-page="pronosticos"].compact.no-search .header-content {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    #header.album-global-header[data-page="pronosticos"] h1,
    #header.album-global-header[data-page="pronosticos"].compact h1 {
        font-size: .92rem !important;
        white-space: nowrap !important;
        display: block !important;
        transform: none !important;
    }
    .prediction-hero { grid-template-columns: 1fr; gap: 13px; padding: 16px 15px; }
    .prediction-hero h1 { font-size: 1.5rem; line-height: 1.08; }
    .hero-cta-row .action-btn { flex: 1 1 150px; }
    .hero-progress {
        grid-template-columns: 1fr auto;
        gap: 7px 10px;
    }
    .hero-progress .prediction-meter {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .surface { padding: 13px 10px; }
    .auth-gate { padding: 24px 16px; }
    .rules-score-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .rule-guide-grid { grid-template-columns: 1fr; }
    .rule-guide-card { padding: 12px; }
    .public-rules { grid-template-columns: 1fr; }
    .home-grid, .profile-metrics, .summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .quick-action-grid,
    .prediction-mode-switch,
    .home-two-column { grid-template-columns: 1fr; }
    .favorite-team-form { grid-template-columns: 1fr; }
    .favorite-team-preview { justify-content: center; }
    .favorite-team-current { width: 100%; justify-content: center; border-radius: 12px; }
    .quick-action-card {
        min-height: 58px;
        padding: 11px 12px;
    }
    .dashboard-progress-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
    .home-actions { width: 100%; }
    .home-actions .action-btn { flex: 1 1 145px; }
    .profile-highlights { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .competition-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .competition-row .action-btn { width: 100%; }
    .group-grid { grid-template-columns: 1fr; }
    .ranking-groups-grid { grid-template-columns: 1fr; }
    .best-thirds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bracket-board-desktop { display: none; }
    .bracket-mobile-stages {
        display: grid;
        gap: 14px;
        margin-top: 12px;
    }
    .bracket-mobile-stage {
        display: grid;
        gap: 8px;
    }
    .bracket-mobile-stage h3 {
        color: #7e1527;
        font-size: .86rem;
        letter-spacing: .04em;
        text-align: center;
        text-transform: uppercase;
    }
    .bracket-mobile-stage .bracket-stage-matches {
        display: grid;
        gap: 9px;
    }
    .bracket-mobile-stage .bracket-match-card.compact,
    .bracket-mobile-stage .bracket-match-card {
        min-height: auto;
        padding: 7px;
    }
    .bracket-mobile-stage .bracket-team {
        grid-template-columns: 26px minmax(0, 1fr) auto;
        min-height: 32px;
        padding: 5px 7px;
    }
    .bracket-mobile-stage .bracket-team span {
        font-size: .82rem;
    }
    .match-card { padding: 10px 6px; }
    .match-card header { padding: 0 3px; }
    .match-teams { grid-template-columns: minmax(0,1fr) 41px 14px 41px minmax(0,1fr); gap: 3px; }
    .match-team { gap: 3px; font-size: .77rem; line-height: 1.15; }
    .match-team img { width: 20px; height: 20px; }
    .score-input { width: 41px; height: 36px; }
    .tiebreak-picker {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 8px 7px;
    }
    .tiebreak-picker label {
        justify-content: flex-start;
        width: 100%;
    }
    .match-actions { width: 100%; }
    .match-actions .action-btn { flex: 1 1 auto; }
    .data-assist-grid,
    .group-summary-grid,
    .lineups-two-cols { grid-template-columns: 1fr; }
    .group-insight-fixture {
        grid-template-columns: 1fr;
        justify-items: stretch;
        text-align: center;
    }
    .group-insight-fixture span:last-child { text-align: center; }
    .favoritism-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .favoritism-stats { justify-items: start; }
    .squad-section { padding: 10px; }
    .squad-team-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .squad-player-grid { grid-template-columns: 1fr; }
    .squad-player b { font-size: .86rem; }
    .prediction-team-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 8px 7px;
    }
    .prediction-team-fixtures {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
        gap: 4px;
        overflow: visible;
    }
    .prediction-group-head { padding: 9px 8px; }
    .prediction-group-head,
    .prediction-group-head div,
    .prediction-group-actions {
        align-items: flex-start;
    }
    .prediction-group-head {
        flex-direction: column;
    }
    .prediction-group-actions {
        width: 100%;
        justify-content: space-between;
    }
    .prediction-group > .group-table {
        margin: 8px;
    }
    .group-fixture {
        min-width: 0;
        justify-content: center;
        padding: 5px 1px;
    }
    .group-prediction-line {
        grid-template-columns: 19px 25px 6px 25px 19px;
        justify-content: center;
        gap: 2px;
    }
    .group-live-compare {
        grid-template-columns: 1fr;
        gap: 3px;
        font-size: .62rem;
    }
    .group-live-compare b {
        white-space: normal;
    }
    .group-pick-flag,
    .group-pick-fallback { width: 19px; height: 14px; }
    .group-score {
        width: 25px;
        height: 31px;
        font-size: .84rem;
        border-radius: 5px;
    }
    .group-fixture .versus { font-size: .76rem; }
    .group-details-hint { display: none; }
    .modal-card { padding: 15px 11px; }
    .match-detail-scoreboard {
        grid-template-columns: minmax(0, 1fr) minmax(92px, 112px) minmax(0, 1fr);
        gap: 4px;
    }
    .detail-team { font-size: .84rem; }
    .detail-team img { width: 42px; height: 42px; }
    .detail-official-state strong { font-size: .86rem; }
    .match-detail-data { grid-template-columns: 1fr; }
    .detail-prediction .match-teams { grid-template-columns: minmax(0,1fr) 41px 14px 41px minmax(0,1fr); }
    .ranking-head { display: none; }
    .ranking-row {
        grid-template-columns: 39px minmax(0,1fr) 60px;
        align-items: center;
        gap: 6px;
        padding: 10px 7px;
    }
    .ranking-row .username {
        display: grid;
        gap: 3px;
        min-width: 0;
        line-height: 1.2;
    }
    .ranking-row .username > span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .ranking-mobile-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 7px;
        color: #5f6877;
        font-size: .7rem;
        font-weight: 700;
        line-height: 1.25;
    }
    .ranking-total {
        justify-self: end;
        color: #7e1527;
        font-family: "Kanit", sans-serif;
        font-size: 1.05rem;
    }
    .ranking-row .optional-stat { display: none; }
    .competition-tier-grid { grid-template-columns: 1fr; }
    .competition-form,
    .premium-create-form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .prediction-team-fixtures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }
    .group-fixture {
        min-height: 45px;
        padding: 5px 2px;
    }
    .group-prediction-line {
        grid-template-columns: 27px 33px 9px 33px 27px;
        gap: 3px;
    }
    .group-pick-flag,
    .group-pick-fallback {
        width: 27px;
        height: 19px;
    }
    .group-score {
        width: 33px;
        height: 35px;
        font-size: .94rem;
    }
}
@media (max-width: 350px) {
    .prediction-team-row { padding-left: 4px; padding-right: 4px; }
    .prediction-team-fixtures { gap: 3px; }
    .group-fixture {
        padding-left: 0;
        padding-right: 0;
    }
    .group-prediction-line { grid-template-columns: 23px 30px 7px 30px 23px; gap: 2px; }
    .group-fixture .group-pick-flag,
    .group-fixture .group-pick-fallback { width: 23px; height: 17px; }
    .group-score { width: 30px; height: 34px; }
}

/* Internal text-link menus */
.prediction-nav,
.stage-tabs {
    gap: 18px !important;
    align-items: center !important;
}

.prediction-nav button,
.prediction-nav a,
.stage-tabs button {
    position: relative !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffc107 !important;
    box-shadow: none !important;
    font-family: "Kanit", sans-serif !important;
    font-size: 1.02rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    transform: none !important;
}

.prediction-nav button:not(:last-child)::after,
.prediction-nav a:not(:last-child)::after,
.stage-tabs button:not(:last-child)::after {
    content: "|" !important;
    position: absolute !important;
    right: -14px !important;
    color: #c49b22 !important;
    font-weight: 900 !important;
    pointer-events: none !important;
}

.prediction-nav button:hover,
.prediction-nav button:focus-visible,
.prediction-nav a:hover,
.prediction-nav a:focus-visible,
.stage-tabs button:hover,
.stage-tabs button:focus-visible,
.prediction-nav button.active,
.prediction-nav a.active,
.stage-tabs button.active {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.dark-mode .prediction-nav button,
body.dark-mode .prediction-nav a,
body.dark-mode .stage-tabs button {
    color: #ffd45f !important;
    background: transparent !important;
    border-color: transparent !important;
}

body.dark-mode .prediction-nav button.active,
body.dark-mode .prediction-nav a.active,
body.dark-mode .stage-tabs button.active {
    color: #ffffff !important;
    background: transparent !important;
    border-color: transparent !important;
}

@media (max-width: 768px) {
    .prediction-nav,
    .stage-tabs {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 12px 18px !important;
        overflow-x: auto !important;
        padding-bottom: 8px !important;
        scrollbar-width: thin !important;
    }

    .prediction-nav button,
    .prediction-nav a,
    .stage-tabs button {
        flex: 0 0 auto !important;
        min-height: 30px !important;
        padding: 0 6px !important;
        font-size: .96rem !important;
        white-space: nowrap !important;
    }
}
