/* Compact live tournament widget */
.live-tournament-widget {
    width: 384px;
    max-width: 100%;
    min-height: 94px;
    margin-top: 14px;
    padding: 10px 11px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 13px;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.045), transparent 40%),
        linear-gradient(180deg, #0a1322 0%, #050b16 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 26px rgba(0, 0, 0, 0.38);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.live-tournament-widget::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #ff3347;
    box-shadow: 0 0 8px rgba(255, 51, 71, 0.85), 0 0 16px rgba(255, 51, 71, 0.40);
}

.live-tournament-widget:hover {
    color: #ffffff;
    text-decoration: none;
    border-color: rgba(255, 66, 82, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 51, 71, 0.12),
        0 14px 34px rgba(0, 0, 0, 0.48),
        0 0 22px rgba(255, 51, 71, 0.12);
    transform: translateY(-2px);
}

.tournament-prize {
    width: 59px;
    height: 59px;
    flex: 0 0 59px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: radial-gradient(circle, rgba(255, 206, 72, 0.14), transparent 70%);
}

.tournament-prize img {
    width: 58px;
    max-height: 58px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.50));
}

.tournament-content {
    min-width: 0;
    flex: 1;
}

.tournament-heading {
    min-height: 18px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.tournament-heading strong {
    /* min-width: 0; */
    /* max-width: 92px; */
    overflow: hidden;
    color: #f5d66f;
    text-overflow: ellipsis;
}

.game-name-pill {
    padding: 3px 6px;
    flex-shrink: 0;
    color: #c8ddff;
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid rgba(77, 151, 255, 0.42);
    border-radius: 999px;
    background: rgba(4, 80, 202, 0.28);
}

.live-pill {
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff4658, #d91c31);
    box-shadow: 0 0 12px rgba(255, 49, 69, 0.32);
}

.live-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 5px #ffffff, 0 0 8px rgba(255, 255, 255, 0.65);
    animation: tournamentLiveBlink 1s ease-in-out infinite;
}

.tournament-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tournament-open-arrow {
    width: 24px;
    height: 36px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffdc57;
    font-size: 27px;
    font-weight: 900;
    line-height: 1;
    border: 1px solid rgba(255, 220, 87, 0.42);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 216, 74, 0.16), rgba(255, 216, 74, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 10px rgba(255, 204, 0, 0.10);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.live-tournament-widget:hover .tournament-open-arrow {
    color: #ffffff;
    border-color: #ffdc57;
    box-shadow: 0 0 13px rgba(255, 204, 0, 0.35);
    transform: translateX(2px);
}

.tournament-time-box {
    width: 50px;
    height: 49px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(137, 162, 198, 0.16);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.tournament-time-box b {
    color: #f7f8fb;
    font-size: 21px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
}

.tournament-time-box small {
    margin-top: 4px;
    color: #8794a8;
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.06em;
}

@keyframes tournamentLiveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.72); }
}

@media (max-width: 420px) {
    .live-tournament-widget {
        width: 100%;
        gap: 7px;
        padding: 9px 8px;
    }

    .tournament-prize {
        width: 49px;
        height: 49px;
        flex-basis: 49px;
    }

    .tournament-prize img {
        width: 49px;
        max-height: 49px;
    }

    .tournament-countdown { gap: 4px; }

    .tournament-time-box {
        width: calc((100% - 12px) / 4);
        height: 47px;
    }

    .tournament-time-box b { font-size: 18px; }
    .tournament-heading { margin-bottom: 6px; }
    .tournament-heading strong { max-width: 68px; }
    .game-name-pill { padding-inline: 5px; font-size: 6px; }
    .tournament-open-arrow { width: 20px; flex-basis: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .live-pill::before { animation: none; }
}

/* Royal gold tournament treatment */
.live-tournament-widget {
    width: 620px;
    max-width: 100%;
    min-height: 104px;
    padding: 12px 12px 12px 10px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 231, 139, 0.96);
    border-radius: 20px;
    background: linear-gradient(
        110deg,
        rgba(255, 240, 151, 0.92) 0 9%,
        rgba(224, 146, 0, 0.98) 17%,
        rgba(94, 48, 0, 0.98) 24%,
        rgba(9, 19, 35, 0.98) 76.5%,
        rgba(4, 10, 19, 0.99) 103%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -3px 0 rgba(75, 35, 0, 0.50),
        0 0 0 3px rgba(83, 44, 0, 0.65),
        0 0 24px rgba(255, 185, 27, 0.35),
        0 18px 38px rgba(0, 0, 0, 0.50);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.live-tournament-widget::before {
    inset: 6px;
    z-index: 0;
    width: auto;
    border: 1px solid rgba(255, 236, 169, 0.16);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        inset 0 0 32px rgba(255, 190, 31, 0.045);
    pointer-events: none;
}

.live-tournament-widget::after {
    content: "";
    position: absolute;
    top: -45%;
    left: -28%;
    z-index: 1;
    width: 18%;
    height: 190%;
    background: linear-gradient(90deg, transparent, rgba(255, 250, 214, 0.22), transparent);
    transform: rotate(18deg);
    animation: royalGoldSweep 4.6s ease-in-out infinite;
    pointer-events: none;
}

.live-tournament-widget:hover {
    color: #ffffff;
    border-color: rgba(255, 237, 167, 1);
    filter: brightness(1.04);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.66),
        inset 0 -3px 0 rgba(75, 35, 0, 0.58),
        0 0 0 3px rgba(105, 57, 0, 0.75),
        0 0 34px rgba(255, 192, 30, 0.56),
        0 22px 46px rgba(0, 0, 0, 0.56);
}

.tournament-prize {
    width: 82px;
    height: 82px;
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 246, 186, 0.94);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff5af 0%, #ffd13c 35%, #d88800 67%, #6e3700 100%);
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.75),
        inset 0 -6px 10px rgba(93, 44, 0, 0.42),
        0 0 0 4px rgba(57, 29, 0, 0.45),
        0 0 18px rgba(255, 196, 33, 0.36);
}

.tournament-prize::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 221, 91, 0.38);
    border-radius: 13px;
    background: radial-gradient(circle, rgba(255, 229, 122, 0.14), rgba(7, 16, 30, 0.95) 72%);
}

.tournament-prize::after {
    content: "GRAND PRIZE";
    position: absolute;
    left: 50%;
    bottom: -7px;
    z-index: 3;
    padding: 3px 8px;
    color: #311a00;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 0.11em;
    white-space: nowrap;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff4aa, #f4ad00);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.38);
    transform: translateX(-50%);
}

.tournament-prize img {
    width: 62px;
    height: 62px;
    max-height: none;
    position: relative;
    z-index: 2;
    filter:
        drop-shadow(0 7px 8px rgba(0, 0, 0, 0.58))
        drop-shadow(0 0 8px rgba(255, 207, 51, 0.34));
}

.tournament-content {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.tournament-heading {
    min-width: 0;
    min-height: 0;
    margin-bottom: 8px;
    gap: 7px;
}

.tournament-heading strong {
    min-width: 0;
    max-width: 210px;
    color: #fff1a1;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82), 0 0 10px rgba(255, 207, 48, 0.20);
}

.game-name-pill {
    padding: 3px 8px;
    color: #ffe994;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 0.07em;
    white-space: nowrap;
    border-color: rgba(255, 219, 89, 0.48);
    background: linear-gradient(180deg, rgba(112, 67, 3, 0.94), rgba(49, 27, 0, 0.96));
}

.live-pill {
    padding: 4px 9px;
    flex-shrink: 0;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 0.09em;
    border: 1px solid rgba(255, 171, 182, 0.72);
    background: linear-gradient(180deg, #ff5570, #d71331);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 15px rgba(255, 44, 73, 0.45);
}

.live-pill::before {
    box-shadow: 0 0 5px #ffffff, 0 0 10px rgba(255, 255, 255, 0.82);
}

.tournament-countdown {
    width: 100%;
    max-width: 300px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 219, 91, 0.20);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(255, 228, 126, 0.075), rgba(255, 255, 255, 0.012));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 5px 12px rgba(0, 0, 0, 0.24);
}

.tournament-time-box {
    width: auto;
    height: 48px;
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tournament-time-box:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 0;
    bottom: 9px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 218, 92, 0.30), transparent);
}

.tournament-time-box b {
    color: #ffffff;
    font-size: 21px;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.72), 0 0 8px rgba(255, 213, 73, 0.08);
}

.tournament-time-box small {
    color: #c9ba8e;
    font-size: 6px;
    font-weight: 950;
    letter-spacing: 0.09em;
}

.tournament-open-arrow {
    width: 70px;
    height: 70px;
    position: relative;
    z-index: 2;
    display: block;
    color: #321a00;
    font-size: 0;
    border: 1px solid rgba(255, 243, 184, 0.96);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff5b5 0%, #ffd438 43%, #dc8d00 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        inset 0 -4px 0 rgba(112, 57, 0, 0.42),
        0 0 16px rgba(255, 197, 31, 0.30);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tournament-open-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform: translate(-68%, -50%) rotate(45deg);
}

.live-tournament-widget:hover .tournament-open-arrow {
    color: #321a00;
    border-color: rgba(255, 243, 184, 0.96);
    transform: translateX(3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        inset 0 -4px 0 rgba(112, 57, 0, 0.42),
        0 0 24px rgba(255, 204, 43, 0.58);
}

@keyframes royalGoldSweep {
    0%, 63% { left: -28%; opacity: 0; }
    71% { opacity: 1; }
    91% { left: 118%; opacity: 0.70; }
    100% { left: 118%; opacity: 0; }
}

@media (max-width: 640px) {
    .live-tournament-widget {
        box-sizing: border-box;
        width: min(100%, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        min-height: 86px;
        padding: 8px;
        grid-template-columns: 65px minmax(0, 1fr);
        gap: 7px;
        border-radius: 16px;
    }

    .tournament-prize { width: 65px; height: 65px; border-radius: 13px; }
    .tournament-prize::before { inset: 5px; border-radius: 9px; }
    .tournament-prize img { width: 40px; height: 40px; }
    .tournament-prize::after { display: none; }

    .tournament-content {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding-right: 33px;
        overflow: hidden;
    }

    .tournament-heading {
        width: 100%;
        min-width: 0;
        gap: 5px;
        margin-bottom: 5px;
        overflow: hidden;
    }

    .tournament-heading strong {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
        font-size: 10px;
    }

    .game-name-pill { display: none; }
    .live-pill { padding: 3px 7px; font-size: 7px; }

    .tournament-countdown {
        width: 100%;
        min-width: 0;
        max-width: none;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tournament-time-box {
        width: 100%;
        min-width: 0;
        height: 39px;
    }

    .tournament-time-box b { font-size: 16px; }
    .tournament-time-box small { font-size: 5px; letter-spacing: 0.04em; }

    .tournament-open-arrow {
        width: 26px;
        height: 62px;
        position: absolute;
        top: 50%;
        right: 11px;
        border-radius: 9px;
        transform: translateY(-50%);
    }

    .tournament-open-arrow::before { display: none; }
    .tournament-open-arrow::after { top: 50%; width: 9px; height: 9px; }

    .live-tournament-widget:hover .tournament-open-arrow {
        transform: translate(2px, -50%);
    }
}

@media (max-width: 390px) {
    .live-tournament-widget {
        width: min(100%, calc(100vw - 16px));
        max-width: calc(100vw - 16px);
        padding: 7px;
        grid-template-columns: 55px minmax(0, 1fr);
        gap: 5px;
    }

    .tournament-prize { width: 54px; height: 54px; }
    .tournament-prize img { width: 35px; height: 35px; }
    .tournament-content { padding-right: 31px; }
    .tournament-heading strong { font-size: 9px; }
    .live-pill { padding: 3px 6px; font-size: 6px; }
    .tournament-time-box { height: 37px; }
    .tournament-time-box b { font-size: 14px; }
    .tournament-time-box small { font-size: 4.5px; }
    .tournament-open-arrow { width: 23px; height: 61px; right: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .live-tournament-widget::after,
    .live-pill::before {
        animation: none;
    }
}

/* Shared live tournament widget collection */
.live-tournament-widget-grid {
    width: 100%;
    max-width: 1240px;
    margin-top: 14px;
    margin-right: 0;
    margin-left: 0;
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}

.live-tournament-widget-grid.has-single {
    max-width: 620px;
}

.live-tournament-widget-col {
    display: flex;
    justify-content: center;
}

.live-tournament-widget-grid .live-tournament-widget {
    margin-top: 0;
}

.live-tournament-widget-grid.has-multiple .live-tournament-widget {
    width: 100%;
}

@media (min-width: 768px) {
    .live-tournament-widget-grid.has-multiple .live-tournament-widget {
        min-height: 96px;
        padding: 9px;
        grid-template-columns: 68px minmax(0, 1fr) 34px;
        gap: 8px;
        border-radius: 16px;
    }

    .live-tournament-widget-grid.has-multiple .tournament-prize {
        width: 62px;
        height: 62px;
        border-radius: 13px;
    }

    .live-tournament-widget-grid.has-multiple .tournament-prize::before {
        inset: 5px;
        border-radius: 9px;
    }

    .live-tournament-widget-grid.has-multiple .tournament-prize::after {
        display: none;
    }

    .live-tournament-widget-grid.has-multiple .tournament-prize img {
        width: 46px;
        height: 46px;
    }

    .live-tournament-widget-grid.has-multiple .tournament-heading {
        justify-content: flex-start;
        gap: 5px;
        margin-bottom: 5px;
        overflow: hidden;
        text-align: left;
    }

    .live-tournament-widget-grid.has-multiple .tournament-heading strong {
        max-width: 52%;
        min-width: 0;
        flex: 0 1 auto;
        font-size: 11px;
    }

    .live-tournament-widget-grid.has-multiple .game-name-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .live-tournament-widget-grid.has-multiple .live-pill {
        padding: 3px 7px;
        font-size: 7px;
    }

    .live-tournament-widget-grid.has-multiple .tournament-countdown {
        max-width: none;
    }

    .live-tournament-widget-grid.has-multiple .tournament-time-box {
        height: 42px;
    }

    .live-tournament-widget-grid.has-multiple .tournament-time-box b {
        font-size: 17px;
    }

    .live-tournament-widget-grid.has-multiple .tournament-open-arrow {
        width: 30px;
        height: 62px;
        border-radius: 10px;
    }
}

@media (max-width: 767.98px) {
    .live-tournament-widget-grid {
        max-width: 100%;
    }

    .live-tournament-widget-col {
        padding-right: 0;
        padding-left: 0;
    }

    .live-tournament-widget-grid .tournament-heading {
        justify-content: flex-start;
        text-align: left;
    }

    .live-tournament-widget-grid .tournament-heading strong {
        max-width: 46%;
        flex: 0 1 auto;
    }

    .live-tournament-widget-grid .game-name-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        padding-inline: 5px;
        font-size: 6px;
    }
}
