/* Bannière match — style Google Doodle */
.match-cheer--google {
    --mc-letter: linear-gradient(165deg, #f0abfc 0%, #e879f9 28%, #c026d3 55%, #9333ea 100%);
    position: relative;
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem 0.85rem;
    border-radius: 16px;
    background: #3a3a42;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}

.match-cheer--google::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(115, 102, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(192, 38, 211, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.match-cheer--hide {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
    overflow: hidden;
}

.match-cheer__close {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
}

.match-cheer__close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.match-cheer__doodle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem 0.35rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.match-cheer__letter {
    flex-shrink: 0;
    font-family: 'Rubik', 'Product Sans', Arial, sans-serif;
    font-weight: 900;
    line-height: 0.85;
    background: var(--mc-letter);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    filter: drop-shadow(0 2px 8px rgba(192, 38, 211, 0.45));
    animation: mc-letter-shimmer 2.1s ease-in-out infinite;
}

.match-cheer__letter::after {
    content: '';
    position: absolute;
    inset: 8% 10%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 7px 7px;
    pointer-events: none;
    mix-blend-mode: soft-light;
    border-radius: 4px;
}

.match-cheer__letter--s {
    font-size: clamp(3rem, 8vw, 4.75rem);
    margin-right: 0.15rem;
}

.match-cheer__letter--tail {
    font-size: clamp(0.85rem, 2.1vw, 1.85rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.match-cheer__volley {
    flex: 0 1 380px;
    width: min(100%, 380px);
    min-width: 240px;
}

.match-cheer__svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 110px;
    overflow: visible;
}

.mc-player--morocco {
    transform-origin: 48px 116px;
    animation: mc-morocco-kick 2.4s ease-in-out infinite;
}

.mc-player--netherlands {
    transform-origin: 282px 108px;
    animation: mc-netherlands-volley 2.4s ease-in-out infinite;
}

.mc-ball {
    transform-origin: 178px 54px;
    animation: mc-ball-rally 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.45));
}

.match-cheer__volley {
    animation: mc-volley-pulse 2.4s ease-in-out infinite;
}

.mc-ghost--ma1 { animation: mc-ghost-morocco-1 2.4s ease-in-out infinite; }
.mc-ghost--ma2 { animation: mc-ghost-morocco-2 2.4s ease-in-out infinite; }
.mc-ghost--nl1 { animation: mc-ghost-nl-1 2.4s ease-in-out infinite; }
.mc-ghost--nl2 { animation: mc-ghost-nl-2 2.4s ease-in-out infinite; }

.match-cheer__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.match-cheer__flags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.match-cheer__flags svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.match-cheer__vs-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.match-cheer__caption {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.match-cheer__caption strong {
    color: #e9d5ff;
    font-weight: 700;
}

.match-cheer-auth-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem 1rem 0;
}

.match-cheer-guest-wrap {
    margin-top: 5.5rem;
    margin-bottom: -2rem;
}

@keyframes mc-morocco-kick {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    18% { transform: translate(8px, -2px) rotate(-4deg); }
    32% { transform: translate(16px, -5px) rotate(-8deg); }
    48% { transform: translate(6px, -1px) rotate(-2deg); }
}

@keyframes mc-netherlands-volley {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    38% { transform: translate(-10px, -3px) rotate(2deg); }
    52% { transform: translate(-18px, -20px) rotate(6deg); }
    68% { transform: translate(-8px, -8px) rotate(2deg); }
}

@keyframes mc-ball-rally {
    0%, 100% { transform: translate(-48px, 16px) rotate(0deg); }
    18% { transform: translate(-32px, 6px) rotate(60deg); }
    32% { transform: translate(-10px, -20px) rotate(140deg); }
    52% { transform: translate(8px, -26px) rotate(220deg); }
    68% { transform: translate(28px, -8px) rotate(300deg); }
    82% { transform: translate(10px, -16px) rotate(360deg); }
}

@keyframes mc-letter-shimmer {
    0%, 100% {
        background-position: 0% 40%;
        filter: drop-shadow(0 2px 8px rgba(192, 38, 211, 0.4));
    }
    50% {
        background-position: 100% 60%;
        filter: drop-shadow(0 2px 14px rgba(232, 121, 249, 0.65));
    }
}

@keyframes mc-volley-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.94; }
}

@keyframes mc-ghost-morocco-1 {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    32% { opacity: 0.36; transform: translate(12px, -2px); }
    48% { opacity: 0; transform: translate(20px, 0); }
}

@keyframes mc-ghost-morocco-2 {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    32% { opacity: 0.22; transform: translate(20px, -2px); }
    48% { opacity: 0; transform: translate(30px, 0); }
}

@keyframes mc-ghost-nl-1 {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    52% { opacity: 0.36; transform: translate(-14px, -10px); }
    68% { opacity: 0; transform: translate(-22px, -14px); }
}

@keyframes mc-ghost-nl-2 {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    52% { opacity: 0.2; transform: translate(-22px, -12px); }
    68% { opacity: 0; transform: translate(-32px, -16px); }
}

@media (max-width: 768px) {
    .match-cheer--google {
        padding: 0.85rem 0.65rem 0.7rem;
    }

    .match-cheer__doodle {
        flex-wrap: wrap;
        padding: 0 0.5rem;
        gap: 0.25rem;
    }

    .match-cheer__letter--s {
        font-size: 2.75rem;
    }

    .match-cheer__volley {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .match-cheer__letter--tail {
        font-size: 1rem;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-player--morocco,
    .mc-player--netherlands,
    .mc-ball,
    .mc-ghost,
    .match-cheer__letter,
    .match-cheer__volley {
        animation: none !important;
    }
}
