﻿:root {
    --phone-xs: 374px; /* Extra small phones */
    --phone-sm: 414px; /* Small phones */
    --phone-md: 480px; /* Medium phones */
    --phone-lg: 599px; /* Large phones / Phablets */
    --tablet: 767px; /* Tablet max width */
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #0e0e10;
}

.main-layout {
    height: 100%;
    overflow-y: scroll;
}


.login-background {
    background-color: var(--mud-palette-primary);
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.heartbeat {
    display: inline-block;
    animation: heartbeat 1.5s infinite;
    transform-origin: center;
}

@font-face {
    font-family: 'Pacifico';
    src: url("../fonts/Pacifico.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Oups';
    src: url("../fonts/Oups.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.event-header {
    position: relative;
    color: white;
}

.event-body {
    background-color: var(--mud-palette-appbar-background) !important;
}

.event-footer {
    background-color: var(--mud-palette-appbar-background) !important;
}

.event-header-text {
    color: white;
    z-index: 1;
}

.event-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%; /* adjust how much of the image gets darkened */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.loader-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    background-color: #000000;
    z-index: 2000;
    width: 100vw;
    height: 100vh;
}

.rank-badge > .mud-chip-content {
    color: black !important;
}


.hand-writing {
    font-family: "Pacifico" !important;
    text-shadow: 2px 2px 4px black;
}


.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.match-cell {
    border: 3px solid var(--mud-palette-text-secondary) !important;
}

.bye-cell {
    height: 47px;
    border-bottom: 0px !important;
}

.bracket-right-cell {
    border-right: 3px solid var(--mud-palette-text-secondary) !important;
    border-bottom: none !important;
}

.match-closed {
    background: var(--mud-palette-success);
    background: linear-gradient(90deg, var(--mud-palette-success) 0%, var(--mud-palette-success-darken) 100%);
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.match-open {
    background: var(--mud-palette-info);
    background: linear-gradient(90deg, var(--mud-palette-info) 0%, var(--mud-palette-info-darken) 100%);
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.mud-card-header {
    background-color: var(--mud-palette-appbar-background) !important;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.centered-header > .column-header {
    justify-content: center !important;
}

.result-unk {
    color: white !important;
    text-align: center;
    background-color: var(--mud-palette-info) !important;
}

.result-ok {
    color: white !important;
    text-align: center;
    background-color: var(--mud-palette-success) !important;
}

.result-nok {
    color: white !important;
    text-align: center;
    background-color: var(--mud-palette-error) !important;
}

.result-warn {
    color: white !important;
    text-align: center;
    background-color: var(--mud-palette-warning) !important;
}

.expansion-panel-header .mud-expand-panel-header {
    background-color: var(--mud-palette-appbar-background) !important;
}

.reward-footer {
    background-color: var(--mud-palette-appbar-background) !important;
}

.event-footer {
    background-color: var(--mud-palette-appbar-background) !important;
}

.result-bracket-cell {
    min-width: 240px;
    color: white !important;
    padding: 6px 16px;
    display: flex;
    align-items: center;
}

.result-match-cell {
    border: 2px solid white !important;
}

.result-match-right-cell {
    border-right: 2px solid white !important;
    border-bottom: none !important;
}


.calendar {
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.02), transparent 10%), linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}

.calendar-item-not-opened {
    cursor: pointer;
    min-height: 92px;
    background: linear-gradient(180deg, #f7f3ea 0%, #efe9d8 100%) !important;
}

.not-opened-day {
    background: linear-gradient(180deg, #f7f3ea 0%, #efe9d8 100%)
}

.not-opened-day-label {
    background: linear-gradient(180deg, #ffd54f, #f7c84a) !important;
    color: black !important;
}

.hit-dot {
    fill: yellow;
    stroke: black;
    stroke-width: 1;
    opacity: 1;
}

.dot-animate {
    animation: hitAnim 0.45s ease-out;
}

@keyframes hitAnim {
    0% {
        transform: scale(3);
        opacity: 0;
    }

    80% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Extra small phones */
@media (max-width: var(--phone-xs)) {
    .dartboard-wrapper {
        width: var(--phone-xs);
    }
}

/* Small phones */
@media (min-width: calc(var(--phone-xs) + 1px)) and (max-width: var(--phone-sm)) {
    .dartboard-wrapper {
        display: block;
        width: var(--phone-xs);
    }
}

/* Medium phones */
@media (min-width: calc(var(--phone-sm) + 1px)) and (max-width: var(--phone-md)) {
    .dartboard-wrapper {
        width: var(--phone-sm);
    }
}

/* Large phones / Phablets */
@media (min-width: calc(var(--phone-md) + 1px)) and (max-width: var(--phone-lg)) {
    .dartboard-wrapper {
        width: var(--phone-md);
    }
}

/* Tablets */
@media (min-width: calc(var(--phone-lg) + 1px)) and (max-width: var(--tablet)) {
    .dartboard-wrapper {
        width: var(--phone-lg);
    }
}


.event-visual {
    padding: 0 !important;
    text-align: center;
}

    .event-visual.won {
        background-color: var(--mud-palette-success);
    }

    .event-visual.lost {
        background-color: var(--mud-palette-error);
    }

    .event-visual.pending {
        background-color: var(--mud-palette-info);
    }

    .event-visual.not-played-lost {
        background-color: var(--mud-palette-warning);
    }


.premier-league-card {
    background-image: url(assets/images/pl2026/hero.webp);
    background-size: cover;
    cursor: pointer;
    background-position: center;
}

.header-right > .column-header {
    justify-content: flex-end !important;
}

.mud-expand-panel .mud-expand-panel-header {
    background-color: var(--mud-palette-appbar-background) !important;
    font-size: var(--mud-typography-h6-size);
    font-family: var(--mud-typography-h6-family);
    font-weight: var(--mud-typography-h6-weight);
    line-height: var(--mud-typography-h6-lineheight);
    letter-spacing: var(--mud-typography-h6-letterspacing);
    text-transform: var(--mud-typography-h6-text-transform);
}

.three-col {
    width: 100%;
    table-layout: fixed;
}

    .three-col td {
        width: 33.333%;
    }


.event-header {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.event-header-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.event-header-content {
    position: relative;
    z-index: 1;
}


.first-place-chip {
    background-color: goldenrod !important;
    color: white !important;
}

.second-place-chip {
    background-color: #8c8d8d !important;
    color: white !important;
}

.third-place-chip {
    background-color: #977547 !important;
    color: white !important;
}


.card-section-title {
    background-color: var(--mud-palette-appbar-background) !important;
    padding: 8px !important;
}


.offline-match-round {
    background-color: var(--mud-palette-success-darken) !important;
}


.offline-rematch-round {
    background-color: var(--mud-palette-info-darken) !important;
}


.primary-alert {
    background: linear-gradient( 90deg, var(--mud-palette-primary-darken) 0%, var(--mud-palette-primary-darken) 100% );
}

.bordered {
    border: 1px solid var(--mud-palette-lines-default) !important;
}


.mud-alert-filled-error {
    background: linear-gradient( 90deg, var(--mud-palette-error-darken) 0%, var(--mud-palette-error-darken) 100% ) !important;
}

.mud-nav-link.active {
    background-color: var(--mud-palette-primary) !important;
    color: white !important;
}

.sticky-table-container {
    max-height: 70vh;
    overflow: auto;
}

.sticky-table {
    min-width: max-content;
}

    .sticky-table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: var(--mud-palette-surface);
        box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
    }

.mobile-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
}

    .mobile-match-row > div {
        flex: 1;
    }

        .mobile-match-row > div:last-child {
            text-align: right;
        }

.mobile-tip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
}

    .mobile-tip-row img,
    .mobile-match-row img {
        vertical-align: middle;
    }

.result-ok {
    background: #10b981;
}

.result-nok {
    background: #f43f5e;
}

.result-unk {
    background: #334155;
}

.mobile-match-card {
    padding: 12px;
    border-radius: 16px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
}

.mobile-competitor-card {
    cursor: pointer;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    transition: all .15s ease;
}

    .mobile-competitor-card:hover {
        transform: scale(1.01);
    }

    .mobile-competitor-card.selected {
        background: var(--mud-palette-success);
        color: white;
        border-color: var(--mud-palette-success);
        font-weight: 600;
    }


.fifa-header-image {
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/assets/images/fifa_wc_2026.png') center/cover no-repeat;
    color: white;
}

.player-of-the-year-header {
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/assets/images/player-of-the-year-header.png') center/cover no-repeat;
    color: white;
}

.wsod-header {
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/assets/images/wsod-header.png') center/cover no-repeat;
    color: white;
}

.et-header {
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/assets/images/et-header.png') center/cover no-repeat;
    color: white;
}
/* =========================================================
   Dashboard leaderboard
   ========================================================= */

.dashboard-leaderboard-card {
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: var(--mud-palette-surface);
}

.dashboard-leaderboard-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 112px;
    padding: 16px;
    background-position: center;
    background-size: cover;
}

    .dashboard-leaderboard-header::before {
        position: absolute;
        content: "";
        inset: 0;
        background: linear-gradient( 180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.75) 100% );
    }

    .dashboard-leaderboard-header > * {
        position: relative;
        z-index: 1;
    }

.dashboard-leaderboard-title {
    color: white;
    font-weight: 700;
    line-height: 1.15;
}

.dashboard-leaderboard-reward {
    margin-top: 3px;
    color: white;
    font-weight: 600;
}

.dashboard-leaderboard-description {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.35;
}

.dashboard-leaderboard-content,
.dashboard-card-content,
.player-of-the-year-content,
.fifa-leaderboard-content {
    background-color: var(--mud-palette-appbar-background) !important;
}


/* =========================================================
   Mobile leaderboard
   MudHidden controls when this markup is visible
   ========================================================= */

.mobile-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-leaderboard-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 6px 10px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    background-color: var(--mud-palette-surface);
}

    .mobile-leaderboard-row.first-place {
        border-color: rgba(255, 193, 7, 0.55);
        background-color: rgba(255, 193, 7, 0.10);
    }

    .mobile-leaderboard-row.second-place {
        border-color: rgba(176, 190, 197, 0.40);
        background-color: rgba(176, 190, 197, 0.08);
    }

    .mobile-leaderboard-row.third-place {
        border-color: rgba(205, 127, 50, 0.45);
        background-color: rgba(205, 127, 50, 0.08);
    }

.mobile-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    font-size: 16px;
    line-height: 1;
}

.mobile-user {
    min-width: 0;
    overflow: hidden;
}

    .mobile-user > * {
        width: 100%;
        min-width: 0;
    }

.mobile-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-user .mud-chip {
    max-width: 100%;
    margin: 0;
}

.mobile-user .mud-chip-content {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-score {
    min-width: 56px;
    margin: 0 !important;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


/* =========================================================
   Reward component
   ========================================================= */

.reward-column {
    width: 33.333%;
    vertical-align: top;
}

.mobile-reward-rank {
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    background-color: var(--mud-palette-surface);
}

.reward-rank-header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 10px 12px;
}

.reward-rank-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.reward-rank-title {
    min-width: 0;
}

.reward-rank-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background-color: rgba(var(--mud-palette-text-primary-rgb), 0.10);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.reward-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 10px 10px;
}

.reward-list-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 7px;
    background-color: var(--mud-palette-background);
}

    .reward-list-item .mud-typography {
        min-width: 0;
        overflow-wrap: anywhere;
    }

.reward-empty {
    display: block;
    padding: 0 12px 12px;
}

.mobile-reward-rank.first-place {
    border-color: rgba(255, 193, 7, 0.55);
}

    .mobile-reward-rank.first-place .reward-rank-header {
        background-color: rgba(255, 193, 7, 0.10);
    }

.mobile-reward-rank.second-place {
    border-color: rgba(176, 190, 197, 0.45);
}

    .mobile-reward-rank.second-place .reward-rank-header {
        background-color: rgba(176, 190, 197, 0.09);
    }

.mobile-reward-rank.third-place {
    border-color: rgba(205, 127, 50, 0.45);
}

    .mobile-reward-rank.third-place .reward-rank-header {
        background-color: rgba(205, 127, 50, 0.09);
    }


/* =========================================================
   Profile statistics
   ========================================================= */

.statistics-header {
    padding-bottom: 8px;
}

.statistics-content {
    padding-top: 8px !important;
}

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

.statistics-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 118px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    background-color: var(--mud-palette-surface);
}

.statistics-item-highlight {
    border-color: rgba(var(--mud-palette-primary-rgb), 0.40);
    background-color: rgba(var(--mud-palette-primary-rgb), 0.10);
}

.statistics-icon {
    margin-bottom: 3px;
    color: var(--mud-palette-primary);
}

.statistics-value {
    max-width: 100%;
    margin: 0 !important;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.statistics-label {
    color: var(--mud-palette-text-secondary);
    line-height: 1.25;
}

