.page-league-home,
.page-league-home * {
    touch-action: manipulation;
}

.page-league-home .league-home-loading-state {
    position: relative;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 0.75rem;
}

.page-league-home .league-home-loading-state::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: league-home-shimmer 0.5s ease-out forwards;
    z-index: 10;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .page-league-home .league-home-loading-state::before {
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%
        );
    }
}

@keyframes league-home-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-league-home .league-home-loading-state::before {
        animation: none;
    }
}

.page-league-home .league-home-scoreboard {
    margin-top: -1.5rem;
}

.page-records .league-home-scoreboard {
    margin-top: 0;
}

.page-league-home .league-home-team-logo,
.page-records .league-home-team-logo {
    max-width: 150px;
}

.page-records .records-summary-card {
    border-radius: 1rem;
    overflow: hidden;
}

.scorecard-tile {
    min-width: 190px;
}

.scorecard-tile.scorecard-tile-loading-state {
    position: relative;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 0.75rem;
}

.scorecard-tile.scorecard-tile-loading-state::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: scorecard-tile-shimmer 0.5s ease-out forwards;
    z-index: 10;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .scorecard-tile.scorecard-tile-loading-state::before {
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%
        );
    }
}

@keyframes scorecard-tile-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scorecard-tile.scorecard-tile-loading-state::before {
        animation: none;
    }
}

.scorecard-tile .scorecard-tile-header {
    min-height: 50px;
}

.scorecard-tile .scorecard-tile-winning-logo {
    width: 30px;
    min-width: 30px;
    height: 30px;
    margin-right: 0.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.scorecard-tile .scorecard-tile-player-avatar {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.page-formats .formats-chevron {
    width: 24px;
    height: 24px;
}

.page-courses .courses-chevron {
    width: 24px;
    height: 24px;
}

.page-profile,
.page-profile * {
    touch-action: manipulation;
}

.page-player-dashboard,
.page-player-dashboard * {
    touch-action: manipulation;
}

.page-matchup,
.page-matchup * {
    touch-action: manipulation;
}

@media (max-width: 320px) {
    .page-matchup .matchup-tiny-box {
        display: none !important;
    }
}

.page-matchup .matchup-btn-press {
    transition: all 0.1s ease;
}

.page-matchup .matchup-btn-press:active:not(:disabled) {
    transform: scale(0.95);
    opacity: 0.8;
}

.page-matchup .matchup-chevron {
    width: 24px;
    height: 24px;
}

.page-matchup .matchup-current-score-logo,
.page-matchup .matchup-mobile-team-logo {
    max-width: 75px;
}

.page-matchup .matchup-side-panel-left {
    padding-right: 1.5rem;
}

.page-matchup .matchup-side-panel-right {
    padding-left: 1.5rem;
}

.page-matchup .matchup-desktop-team-logo {
    max-width: 150px;
}

.page-matchup .matchup-score-select-trigger {
    background-color: transparent;
}

.page-matchup .matchup-score-options {
    max-height: 8rem;
    overflow-y: auto;
}

.page-matchup .matchup-nav-button-disabled,
.page-matchup .matchup-finalize-button-disabled {
    opacity: 0.5;
}

.page-matchup .matchup-finalize-button {
    background-color: rgb(22 163 74) !important;
    border-color: rgb(21 128 61) !important;
}

.page-pairings,
.page-pairings * {
    touch-action: manipulation;
}

.page-pairings .pairings-team-logo {
    max-width: 150px;
}

.page-pairings .pairings-player-button {
    width: 45%;
}

.page-pairings .pairings-matchup-columns {
    display: flex;
    gap: 8px;
}

.page-pairings .pairings-matchup-column {
    flex: 1;
}

.page-pairings .pairings-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 50px;
    width: 50px;
    height: 50px;
    border-radius: 9999px;
    background-color: transparent;
    flex-shrink: 0;
}

.page-pairings .pairings-avatar-sm {
    min-width: 40px;
    width: 40px;
    height: 40px;
}

.page-pairings .pairings-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.page-pairings .pairings-avatar-icon {
    width: 50px;
    height: 50px;
}

.page-pairings .pairings-avatar-icon-sm {
    width: 40px;
    height: 40px;
}

.page-pairings .pairings-player-name {
    line-height: 1.2;
}

.page-welcome .welcome-blend-hard-light {
    mix-blend-mode: hard-light;
}

.page-welcome .welcome-blend-plus-darker {
    mix-blend-mode: plus-darker;
}

.page-offline *,
.page-offline *::before,
.page-offline *::after {
    box-sizing: border-box;
}

.page-offline {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.page-offline .offline-container {
    max-width: 500px;
    text-align: center;
}

.page-offline .offline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: #f59e0b;
    font-size: 60px;
}

.page-offline h1 {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.page-offline .offline-description {
    margin: 0 0 2rem;
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.6;
}

.page-offline .offline-button {
    display: inline-block;
    padding: 1rem 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: #f59e0b;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.page-offline .offline-button:hover {
    background: #d97706;
}

.page-offline .offline-status {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgb(255 255 255 / 0.1);
    font-size: 0.875rem;
}

.page-offline .offline-status.online {
    background: rgb(34 197 94 / 0.2);
}

@media (max-width: 640px) {
    .page-offline h1 {
        font-size: 1.5rem;
    }

    .page-offline .offline-description {
        font-size: 1rem;
    }

    .page-offline .offline-icon {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }
}

.page-history .history-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem;
}

.page-history .history-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-history .history-filter-item {
    width: 100%;
}

.page-history .history-card {
    flex: 0 1 32%;
    width: 100%;
    max-width: 18rem;
}

.page-history .history-empty {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .page-history .history-filter-row {
        flex-wrap: nowrap;
    }

    .page-history .history-filter-item {
        flex: 1 1 0;
        min-width: 0;
    }

    .page-history .history-filter-item-year {
        flex-basis: 8rem;
    }

    .page-history .history-filter-item-course {
        flex-basis: 14rem;
    }

    .page-history .history-filter-item-format {
        flex-basis: 10rem;
    }

    .page-history .history-filter-item-player {
        flex-basis: 14rem;
    }
}

.page-records,
.page-records * {
    touch-action: manipulation;
}
