/* Home and tournament landing refresh. Loaded after legacy page styles. */
.home-hero {
    position: relative;
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.7fr);
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    border: 1px solid rgba(151, 172, 199, 0.17);
    border-radius: 26px;
    background:
        linear-gradient(112deg, rgba(21, 33, 48, 0.96) 0%, rgba(11, 18, 28, 0.95) 54%, rgba(10, 17, 26, 0.99) 100%);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
    isolation: isolate;
}

.home-hero::before {
    position: absolute;
    z-index: -1;
    top: -38%;
    right: 22%;
    width: 1px;
    height: 175%;
    background: linear-gradient(transparent, rgba(66, 232, 172, 0.24), transparent);
    box-shadow: 82px 0 rgba(98, 169, 255, 0.08), -82px 0 rgba(98, 169, 255, 0.08);
    content: "";
    transform: rotate(24deg);
}

.home-hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-orb-one {
    top: -180px;
    right: -110px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(98, 169, 255, 0.2);
    box-shadow: inset 0 0 80px rgba(98, 169, 255, 0.055), 0 0 120px rgba(98, 169, 255, 0.04);
}

.home-hero-orb-two {
    right: 35%;
    bottom: -245px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(66, 232, 172, 0.15);
    box-shadow: inset 0 0 75px rgba(66, 232, 172, 0.045);
}

.home-hero-copy {
    max-width: 760px;
}

.home-eyebrow,
.home-section-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--odp-accent) !important;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0.75rem 0 0.85rem;
    color: var(--odp-text) !important;
    font-size: clamp(2.4rem, 4.6vw, 4.35rem);
    font-weight: 800;
    line-height: 0.99;
    letter-spacing: -0.065em;
}

.home-hero h1 span {
    color: transparent !important;
    background: linear-gradient(92deg, var(--odp-accent), #9ad0ff 78%);
    background-clip: text;
    -webkit-background-clip: text;
}

.home-hero-lead {
    max-width: 670px;
    margin: 0;
    color: var(--odp-muted-strong) !important;
    font-size: clamp(0.94rem, 1.25vw, 1.08rem);
    line-height: 1.58;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.home-hero-actions .btn {
    min-height: 46px;
    padding-inline: 1.2rem;
    font-size: 0.85rem;
}

.home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
    margin-top: 1rem;
}

.home-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--odp-muted) !important;
    font-size: 0.68rem;
    font-weight: 650;
}

.home-trust-row i {
    color: var(--odp-accent);
    font-size: 0.66rem;
}

.home-performance {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(66, 232, 172, 0.2);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(17, 28, 40, 0.88), rgba(9, 15, 24, 0.92));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.home-performance::before {
    position: absolute;
    top: -1px;
    left: 16%;
    width: 68%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(66, 232, 172, 0.9), transparent);
    content: "";
}

.home-performance-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 0.15rem 0.75rem;
    color: var(--odp-muted) !important;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-performance-head > span {
    color: inherit !important;
}

.home-status {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--odp-accent) !important;
    letter-spacing: 0.06em;
}

.home-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--odp-accent);
    box-shadow: 0 0 10px rgba(66, 232, 172, 0.75);
}

.home-feature-metric {
    padding: 1.25rem 1rem;
    border: 1px solid var(--odp-border);
    border-radius: 14px;
    background:
        radial-gradient(circle at 85% 15%, rgba(66, 232, 172, 0.12), transparent 7rem),
        rgba(255, 255, 255, 0.025);
}

.home-feature-metric strong {
    display: block;
    color: var(--odp-accent) !important;
    font-size: clamp(2.35rem, 4vw, 3.5rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.06em;
    line-height: 1;
}

.home-feature-metric span {
    display: block;
    margin-top: 0.45rem;
    color: var(--odp-muted) !important;
    font-size: 0.68rem;
    font-weight: 700;
}

.home-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem;
    margin-top: 0.48rem;
}

.home-metric-grid > div {
    padding: 0.75rem 0.55rem;
    border: 1px solid var(--odp-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.home-metric-grid strong {
    display: block;
    overflow: hidden;
    color: var(--odp-text) !important;
    font-size: clamp(0.92rem, 2vw, 1.17rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
}

.home-metric-grid span {
    display: block;
    margin-top: 0.25rem;
    color: var(--odp-muted) !important;
    font-size: 0.54rem;
    font-weight: 650;
    line-height: 1.35;
}

.home-performance-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.55rem;
    padding: 0.75rem 0.25rem 0.1rem;
    color: #a8ceff !important;
    font-size: 0.68rem;
    font-weight: 750;
    text-decoration: none;
}

.home-performance-link:hover {
    color: #d5eaff !important;
}

.home-product-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 2rem;
    border: 1px solid var(--odp-border);
    border-radius: 18px;
    background: rgba(13, 20, 30, 0.7);
}

.home-product-strip article {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem 1.1rem;
}

.home-product-strip article + article {
    border-left: 1px solid var(--odp-border);
}

.home-product-strip article > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(66, 232, 172, 0.2);
    border-radius: 10px;
    background: rgba(66, 232, 172, 0.055);
    color: var(--odp-accent) !important;
    font-size: 0.61rem;
    font-weight: 800;
}

.home-product-strip strong {
    display: block;
    color: var(--odp-text) !important;
    font-size: 0.76rem;
}

.home-product-strip p {
    margin: 0.3rem 0 0;
    color: var(--odp-muted) !important;
    font-size: 0.65rem;
    line-height: 1.45;
}

.matches-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    scroll-margin-top: 80px;
    margin-bottom: 0.8rem;
    padding: 0.6rem 0 1rem;
    border-bottom: 1px solid var(--odp-border);
}

.matches-section-head h2 {
    margin: 0.35rem 0 0;
    color: var(--odp-text) !important;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.matches-section-head p {
    max-width: 750px;
    margin: 0.45rem 0 0;
    color: var(--odp-muted) !important;
    font-size: 0.76rem;
    line-height: 1.5;
}

.matches-head-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
}

#last-update-time {
    color: #72839a !important;
    font-size: 0.68rem;
    font-weight: 650 !important;
}

#desktop-cards-container {
    margin-top: 0.7rem;
}

.home-tools-column > .card,
.home-tools-column .team-following-section {
    margin-bottom: 0.8rem !important;
}

@media (min-width: 992px) {
    .home-tools-column {
        position: sticky;
        top: 1rem;
        align-self: start;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(151, 172, 199, 0.24) transparent;
    }
}

.home-tools-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--odp-border);
}

.home-tools-mobile-head > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-tools-mobile-head span {
    color: var(--odp-text) !important;
    font-size: 0.9rem;
    font-weight: 800;
}

.home-tools-mobile-head small {
    margin-top: 0.2rem;
    color: var(--odp-muted) !important;
    font-size: 0.66rem;
}

.home-tools-mobile-head button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid var(--odp-border-strong);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--odp-muted-strong);
}

.home-tools-backdrop {
    display: none;
    position: fixed;
    z-index: 1050;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(2, 5, 9, 0.7);
    backdrop-filter: blur(5px);
}

.home-index-links {
    overflow: hidden;
    border: 1px solid var(--odp-border);
    border-radius: 15px;
    background: rgba(13, 20, 30, 0.66);
}

.home-index-links summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
}

.home-index-links summary::-webkit-details-marker {
    display: none;
}

.home-index-links summary::after {
    width: 30px;
    height: 30px;
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid var(--odp-border);
    border-radius: 9px;
    color: var(--odp-muted);
    content: "+";
}

.home-index-links[open] summary::after {
    content: "−";
}

.home-index-links summary span {
    color: var(--odp-text) !important;
    font-size: 0.8rem;
    font-weight: 800;
}

.home-index-links summary small {
    margin-left: auto;
    color: var(--odp-muted) !important;
    font-size: 0.65rem;
}

.home-index-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
    padding: 0 1rem 1rem;
}

.home-index-links-grid a {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(151, 172, 199, 0.09);
    color: var(--odp-muted-strong) !important;
    font-size: 0.68rem;
    text-decoration: none;
}

.home-index-links-grid a > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-index-links-grid em {
    color: #596a7e;
    font-style: normal;
}

.home-index-links-grid time {
    color: var(--odp-muted);
    font-variant-numeric: tabular-nums;
}

.tournament-page-title {
    padding-bottom: 1rem;
    background: transparent !important;
    font-size: clamp(1.55rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.tournament-page-title::after {
    background: linear-gradient(90deg, var(--odp-accent), var(--odp-blue));
}

.odp-skeleton-card {
    border-color: var(--odp-border);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(20, 30, 44, 0.8), rgba(13, 20, 30, 0.88));
}

@media (max-width: 1199.98px) {
    .home-hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
        gap: 1.25rem;
        padding: 1.75rem;
    }
}

@media (max-width: 991.98px) {
    .home-hero {
        min-height: auto;
        grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
        padding: 1.5rem;
    }

    .home-tools-column {
        position: fixed;
        z-index: 1055;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(92vw, 400px);
        max-width: none;
        padding: 0 0.75rem 5.5rem;
        overflow-y: auto;
        background: rgba(9, 14, 22, 0.985);
        border-left: 1px solid var(--odp-border);
        box-shadow: -25px 0 80px rgba(0, 0, 0, 0.45);
        transform: translateX(105%);
        transition: transform 0.28s ease-out;
    }

    .home-tools-mobile-head {
        position: sticky;
        z-index: 2;
        top: 0;
        margin: 0 -0.75rem 0.75rem;
        background: rgba(9, 14, 22, 0.97);
        backdrop-filter: blur(16px);
    }

    body.home-tools-open {
        overflow: hidden;
    }

    body.home-tools-open .home-tools-column {
        transform: translateX(0);
    }

    body.home-tools-open .home-tools-backdrop {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .container-fluid.py-4 {
        padding-top: 0.15rem !important;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-right: -0.08rem;
        margin-bottom: 0.7rem;
        margin-left: -0.08rem;
        padding: 1.35rem 1rem;
        border-radius: 19px;
    }

    .home-performance {
        display: grid;
        grid-template-columns: minmax(145px, 0.72fr) minmax(0, 1.25fr);
        gap: 0.5rem;
    }

    .home-performance-head,
    .home-performance-link {
        grid-column: 1 / -1;
    }

    .home-metric-grid {
        margin-top: 0;
    }

    .home-eyebrow {
        font-size: 0.57rem;
        letter-spacing: 0.11em;
    }

    .home-eyebrow .live-dot {
        width: 6px;
        height: 6px;
        box-shadow: 0 0 0 4px rgba(66, 232, 172, 0.1);
    }

    .home-hero h1 {
        margin: 0.8rem 0;
        font-size: clamp(2.25rem, 12vw, 3.15rem);
        line-height: 1.01;
    }

    .home-hero-lead {
        font-size: 0.8rem;
        line-height: 1.58;
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 1.1rem;
    }

    .home-hero-actions .btn {
        min-height: 46px;
        padding: 0.65rem 0.6rem;
        font-size: 0.7rem;
    }

    .home-trust-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
        margin-top: 1rem;
    }

    .home-trust-row span {
        font-size: 0.58rem;
    }

    .home-trust-row span:last-child {
        grid-column: 1 / -1;
    }

    .home-performance {
        display: block;
        padding: 0.75rem;
        border-radius: 15px;
    }

    .home-performance-head {
        padding-bottom: 0.55rem;
        font-size: 0.52rem;
    }

    .home-feature-metric {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.8rem;
    }

    .home-feature-metric strong {
        font-size: 2rem;
    }

    .home-feature-metric span {
        margin: 0 0 0.18rem;
        font-size: 0.6rem;
        text-align: right;
    }

    .home-metric-grid {
        margin-top: 0.4rem;
    }

    .home-metric-grid > div {
        padding: 0.58rem 0.45rem;
    }

    .home-metric-grid span {
        font-size: 0.49rem;
    }

    .home-performance-link {
        padding-top: 0.65rem;
    }

    .home-product-strip {
        grid-template-columns: 1fr;
        margin-bottom: 1.2rem;
        border-radius: 15px;
    }

    .home-product-strip article {
        padding: 0.75rem;
    }

    .home-product-strip article + article {
        border-top: 1px solid var(--odp-border);
        border-left: 0;
    }

    .home-product-strip p {
        display: none;
    }

    .matches-section-head {
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.45rem;
        padding-bottom: 0.75rem;
    }

    .home-section-kicker {
        font-size: 0.55rem;
    }

    .matches-section-head h2 {
        margin-top: 0.22rem;
        font-size: 1.45rem;
    }

    .matches-section-head p {
        display: none;
    }

    .matches-head-actions .btn {
        min-height: 38px;
        padding: 0.45rem 0.65rem;
        font-size: 0.68rem;
    }

    #last-update-time {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.61rem;
    }

    .home-index-links summary small {
        display: none;
    }

    .home-index-links-grid {
        grid-template-columns: 1fr;
    }

    .home-index-links-grid a:nth-child(n + 11) {
        display: none;
    }
}

@media (max-width: 340px) {
    .home-hero-actions {
        grid-template-columns: 1fr;
    }

    .home-trust-row {
        grid-template-columns: 1fr;
    }

    .home-trust-row span:last-child {
        grid-column: auto;
    }
}

@keyframes odp-home-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    .home-ready .home-hero-copy {
        animation: odp-home-rise 0.55s ease-out both;
    }

    .home-ready .home-performance {
        animation: odp-home-rise 0.55s 0.1s ease-out both;
    }

    .home-ready .home-product-strip {
        animation: odp-home-rise 0.5s 0.18s ease-out both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-tools-column {
        transition: none;
    }
}

.campaign-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.campaign-strip__item {
    display: grid;
    gap: .18rem;
    padding: .9rem 1rem;
    color: #eef2ff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(67,56,202,.32), rgba(17,24,39,.94));
    border: 1px solid rgba(129,140,248,.28);
    border-radius: 14px;
}

.campaign-strip__item:hover { color: #fff; border-color: #818cf8; }
.campaign-strip__item span { color: #a5b4fc; font-size: .68rem; text-transform: uppercase; }
.campaign-strip__item small { color: #94a3b8; }
