/**
 * Member of the Month page styles.
 *
 * Fully scoped to the MOTM shortcode wrapper.
 */

.gp-motm-root {
    --gp-motm-bg-1: #17061e;
    --gp-motm-bg-2: #3a0c4a;
    --gp-motm-bg-3: #66278f;
    --gp-motm-panel: rgba(255, 255, 255, 0.1);
    --gp-motm-panel-strong: rgba(255, 255, 255, 0.16);
    --gp-motm-line: rgba(255, 255, 255, 0.2);
    --gp-motm-text: #fff7ff;
    --gp-motm-text-soft: #e9caef;
    --gp-motm-pink: #ff62cb;
    --gp-motm-purple: #b978ff;
    --gp-motm-gold: #ffcf5e;
    --gp-motm-good: #81f2c0;
    --gp-motm-bad: #ff7ea6;
    --gp-motm-radius-xl: 26px;
    --gp-motm-radius-lg: 18px;
    --gp-motm-radius-md: 14px;
    --gp-motm-shadow: 0 20px 48px rgba(9, 0, 20, 0.45);
    --gp-motm-font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --gp-motm-font-body: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    color: var(--gp-motm-text);
    font-family: var(--gp-motm-font-body);
    width: min(1600px, calc(100% - 28px));
    margin: 14px auto 24px;
}

.gp-motm-root * {
    box-sizing: border-box;
}

.gp-motm-root h1,
.gp-motm-root h2,
.gp-motm-root h3,
.gp-motm-root h4,
.gp-motm-root h5,
.gp-motm-root h6 {
    margin: 0;
    color: var(--gp-motm-text);
    font-family: var(--gp-motm-font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
}

.gp-motm-root a,
.gp-motm-root a:link,
.gp-motm-root a:visited,
.gp-motm-root a:hover,
.gp-motm-root a:focus,
.gp-motm-root a:active {
    color: inherit;
    text-decoration: none;
}

.gp-motm-root button,
.gp-motm-root input,
.gp-motm-root select,
.gp-motm-root textarea {
    font-family: var(--gp-motm-font-body);
    color: var(--gp-motm-text);
}

.gp-motm-root a:focus-visible,
.gp-motm-root button:focus-visible {
    outline: 2px solid rgba(255, 98, 203, 0.72);
    outline-offset: 2px;
}

.gp-motm-root .gp-motm-hero-title,
.gp-motm-root .gp-motm-section-title,
.gp-motm-root .gp-motm-winner-name,
.gp-motm-root .gp-motm-mini-name,
.gp-motm-root .gp-motm-lb-title,
.gp-motm-root .gp-motm-lb-name,
.gp-motm-root .gp-motm-lb-row-name {
    color: var(--gp-motm-text);
    font-style: normal;
    text-decoration: none;
    margin-block-start: 0;
    margin-block-end: 0;
}

.gp-motm-root .gp-motm-hero-sub,
.gp-motm-root .gp-motm-section-sub,
.gp-motm-root .gp-motm-archive-note,
.gp-motm-root .gp-motm-winner-handle,
.gp-motm-root .gp-motm-mini-handle,
.gp-motm-root .gp-motm-lb-handle,
.gp-motm-root .gp-motm-lb-row-handle {
    color: var(--gp-motm-text-soft);
    text-decoration: none;
    font-style: normal;
    margin-block-start: 0;
    margin-block-end: 0;
}

.gp-motm-root .gp-motm-hero {
    border: 1px solid var(--gp-motm-line);
    border-radius: 30px;
    background:
        radial-gradient(1200px 520px at -8% -16%, rgba(255, 98, 203, 0.34), transparent 60%),
        radial-gradient(980px 480px at 108% 4%, rgba(185, 120, 255, 0.38), transparent 59%),
        linear-gradient(142deg, #24052f 0%, #3b0e58 50%, #6a2a9d 100%);
    box-shadow:
        0 24px 52px rgba(9, 0, 20, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 22px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.gp-motm-root .gp-motm-hero::before {
    content: "";
    position: absolute;
    inset: -42% -10% auto;
    height: 132%;
    border-radius: 999px;
    background:
        conic-gradient(
            from 120deg,
            rgba(255, 98, 203, 0) 0deg,
            rgba(255, 98, 203, 0.24) 72deg,
            rgba(185, 120, 255, 0.28) 162deg,
            rgba(255, 207, 94, 0.16) 232deg,
            rgba(255, 98, 203, 0) 360deg
        );
    filter: blur(24px);
    opacity: 0.8;
    pointer-events: none;
    z-index: -2;
    animation: gpMotmHeroAuroraShift 18s linear infinite;
}

.gp-motm-root .gp-motm-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(106deg, rgba(255, 255, 255, 0.14) 2%, rgba(255, 255, 255, 0) 28%),
        linear-gradient(322deg, rgba(255, 255, 255, 0.07) 3%, rgba(255, 255, 255, 0) 34%);
    mix-blend-mode: screen;
    animation: gpMotmHeroSheen 11s ease-in-out infinite;
}

.gp-motm-root .gp-motm-hero-title {
    margin: 0;
    font-family: var(--gp-motm-font-head);
    font-size: clamp(36px, 5.2vw, 62px);
    line-height: 0.94;
    font-weight: 860;
    letter-spacing: -0.03em;
    text-transform: none;
    background: linear-gradient(180deg, #ffffff 0%, #ffe5f7 47%, #efcdff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 16px 34px rgba(255, 110, 205, 0.26);
    position: relative;
    display: inline-block;
    animation: gpMotmHeroTitleEnter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.gp-motm-root .gp-motm-hero-sub {
    margin: 14px 0 0;
    max-width: 75ch;
    color: #f3d8ff;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 540;
    animation: gpMotmHeroSubEnter 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 0.08s;
}

.gp-motm-root .gp-motm-layout {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1.62fr 1.38fr;
    gap: 14px;
    align-items: start;
}

.gp-motm-root .gp-motm-panel {
    border: 1px solid var(--gp-motm-line);
    border-radius: var(--gp-motm-radius-xl);
    background: linear-gradient(160deg, var(--gp-motm-panel-strong), var(--gp-motm-panel));
    backdrop-filter: blur(10px);
    box-shadow: var(--gp-motm-shadow);
}

.gp-motm-root .gp-motm-panel-inner {
    padding: 16px;
}

.gp-motm-root .gp-motm-section-title {
    margin: 0;
    color: var(--gp-motm-text);
    font-family: var(--gp-motm-font-head);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 760;
    letter-spacing: -0.02em;
    text-transform: none;
}

.gp-motm-root .gp-motm-section-sub {
    margin: 8px 0 0;
    color: var(--gp-motm-text-soft);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
}

.gp-motm-root .gp-motm-winner {
    margin-top: 14px;
    border-radius: var(--gp-motm-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(14, 4, 26, 0.42);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.gp-motm-root .gp-motm-winner-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.gp-motm-root .gp-motm-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 207, 94, 0.3);
}

.gp-motm-root .gp-motm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-motm-root .gp-motm-winner-name {
    margin: 0;
    font: 800 30px/1 var(--gp-motm-font-head);
    color: var(--gp-motm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-motm-root .gp-motm-winner-handle {
    margin: 7px 0 0;
    color: var(--gp-motm-text-soft);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
}

.gp-motm-root .gp-motm-pill-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gp-motm-root .gp-motm-pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(7, 0, 18, 0.38);
    color: #f6e9ff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 11px;
}

.gp-motm-root .gp-motm-pill.gp-motm-pill-gold {
    border-color: rgba(255, 207, 94, 0.64);
    color: #ffe9bc;
    background: rgba(72, 46, 0, 0.28);
}

.gp-motm-root .gp-motm-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gp-motm-root .gp-motm-mini-badge img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(10, 1, 20, 0.4);
    object-fit: contain;
    padding: 2px;
}

.gp-motm-root .gp-motm-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gp-motm-root .gp-motm-stat {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(6, 0, 16, 0.3);
    padding: 10px;
}

.gp-motm-root .gp-motm-stat-k {
    margin: 0;
    color: #f0d6f7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gp-motm-root .gp-motm-stat-v {
    margin: 4px 0 0;
    font-size: clamp(19px, 2.3vw, 27px);
    font-weight: 800;
    line-height: 1.1;
    font-family: var(--gp-motm-font-head);
    color: var(--gp-motm-text);
}

.gp-motm-root .gp-motm-points-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gp-motm-root .gp-motm-points-number {
    line-height: 1;
}

.gp-motm-root .gp-motm-points-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 10px rgba(255, 110, 205, 0.22));
}

.gp-motm-root .gp-motm-points-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gp-motm-root .gp-motm-divider {
    height: 14px;
}

.gp-motm-root .gp-motm-archive-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.gp-motm-root .gp-motm-archive-note {
    margin: 0;
    color: var(--gp-motm-text-soft);
    font-size: 12px;
}

.gp-motm-root .gp-motm-months {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gp-motm-root .gp-motm-month-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 0, 18, 0.34);
    padding: 12px;
}

.gp-motm-root .gp-motm-month-label {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fce9ff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 9px;
}

.gp-motm-root .gp-motm-mini {
    margin-top: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.gp-motm-root .gp-motm-mini-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gp-motm-root .gp-motm-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-motm-root .gp-motm-mini-name,
.gp-motm-root .gp-motm-mini-handle {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-motm-root .gp-motm-mini-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gp-motm-text);
}

.gp-motm-root .gp-motm-mini-handle {
    color: var(--gp-motm-text-soft);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
}

.gp-motm-root .gp-motm-row {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.gp-motm-root .gp-motm-row span {
    color: var(--gp-motm-text-soft);
}

.gp-motm-root .gp-motm-row strong {
    color: #fff;
    font-weight: 800;
}

.gp-motm-root .gp-motm-row-points {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.gp-motm-root .gp-motm-lb {
    border-radius: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.gp-motm-root .gp-motm-lb-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 8px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.gp-motm-root .gp-motm-lb-title {
    margin: 0;
    text-align: center;
    color: #cf96ff;
    font: 800 24px/1.05 var(--gp-motm-font-head);
    letter-spacing: -0.02em;
    text-shadow: 0 8px 20px rgba(185, 120, 255, 0.26);
}

.gp-motm-root .gp-motm-lb-body {
    padding: 0;
}

.gp-motm-root .gp-motm-lb-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0 16px 24px;
}

.gp-motm-root .gp-motm-lb-tab {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #f3dbfc;
    font: 700 13px/1 var(--gp-motm-font-head);
    padding: 12px 8px;
    cursor: pointer;
}

.gp-motm-root .gp-motm-lb-tab:hover,
.gp-motm-root .gp-motm-lb-tab:focus,
.gp-motm-root .gp-motm-lb-tab:active {
    color: #fff;
    border-color: rgba(255, 98, 203, 0.46);
    background: rgba(255, 98, 203, 0.14);
    outline: none;
}

.gp-motm-root .gp-motm-lb-tab.is-active {
    border-color: rgba(255, 98, 203, 0.52);
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 98, 203, 0.28), rgba(185, 120, 255, 0.24));
}

.gp-motm-root .gp-motm-lb-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    margin: 0 16px 32px;
}

.gp-motm-root .gp-motm-lb-podium-card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 0, 18, 0.38);
    padding: 24px 8px;
    position: relative;
    text-align: center;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.gp-motm-root .gp-motm-lb-podium-card:hover,
.gp-motm-root .gp-motm-lb-podium-card:focus {
    border-color: rgba(255, 154, 220, 0.52);
    box-shadow: 0 0 0 1px rgba(255, 154, 220, 0.22) inset, 0 10px 24px rgba(8, 0, 18, 0.36);
    background: rgba(16, 3, 30, 0.48);
    outline: none;
}

.gp-motm-root .gp-motm-lb-podium-card.is-1 {
    border-color: rgba(255, 207, 94, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 207, 94, 0.26) inset;
}

.gp-motm-root .gp-motm-lb-podium-card.is-2 {
    border-color: rgba(255, 255, 255, 0.32);
}

.gp-motm-root .gp-motm-lb-podium-card.is-3 {
    border-color: rgba(129, 242, 192, 0.44);
}

.gp-motm-root .gp-motm-lb-crown-icon {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(17, 4, 28, 0.92);
    border: 1px solid rgba(255, 207, 94, 0.58);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28), 0 0 20px rgba(255, 207, 94, 0.34);
}

.gp-motm-root .gp-motm-lb-crown-icon svg {
    display: block;
}

.gp-motm-root .gp-motm-lb-rank {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 99px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #1a0025;
    background: #fff;
}

.gp-motm-root .gp-motm-lb-podium-card.is-1 .gp-motm-lb-rank {
    background: var(--gp-motm-gold);
}

.gp-motm-root .gp-motm-lb-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 6px auto 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gp-motm-root .gp-motm-lb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-motm-root .gp-motm-lb-name,
.gp-motm-root .gp-motm-lb-handle,
.gp-motm-root .gp-motm-lb-points {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-motm-root .gp-motm-lb-name {
    font-size: 14px;
    font-weight: 800;
}

.gp-motm-root .gp-motm-lb-handle {
    font-size: 11px;
    color: var(--gp-motm-text-soft);
    margin-top: 2px;
}

.gp-motm-root .gp-motm-lb-points {
    font-size: 16px;
    font-weight: 800;
    margin-top: 4px;
}

.gp-motm-root .gp-motm-lb-list {
    display: block;
    padding: 0 16px 24px;
}

.gp-motm-root .gp-motm-lb-row {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 0, 18, 0.34);
    padding: 16px;
    display: grid;
    grid-template-columns: 22px 38px minmax(0, 1fr) auto 5px;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gp-motm-root .gp-motm-lb-row:last-child {
    margin-bottom: 0;
}

.gp-motm-root .gp-motm-lb-row:hover,
.gp-motm-root .gp-motm-lb-row:focus {
    border-color: rgba(255, 154, 220, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 154, 220, 0.18) inset;
    background: rgba(16, 3, 30, 0.44);
    outline: none;
}

.gp-motm-root .gp-motm-lb-row.is-me {
    border-color: rgba(255, 98, 203, 0.48);
    box-shadow: 0 0 0 1px rgba(255, 98, 203, 0.18) inset;
}

.gp-motm-root .gp-motm-lb-row-rank {
    font-size: 15px;
    font-weight: 800;
    color: #f8e5ff;
    text-align: center;
    min-height: 18px;
}

.gp-motm-root .gp-motm-lb-row-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.gp-motm-root .gp-motm-lb-row-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-motm-root .gp-motm-lb-row-name,
.gp-motm-root .gp-motm-lb-row-handle {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-motm-root .gp-motm-lb-row-name {
    font-size: 14px;
    font-weight: 800;
}

.gp-motm-root .gp-motm-lb-row-handle {
    font-size: 11px;
    color: var(--gp-motm-text-soft);
}

.gp-motm-root .gp-motm-lb-row-points {
    font-size: 16px;
    font-weight: 800;
}

.gp-motm-root .gp-motm-lb-row-trend {
    width: 5px;
    height: 24px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.24);
}

.gp-motm-root .gp-motm-lb-row-trend.up {
    background: var(--gp-motm-good);
}

.gp-motm-root .gp-motm-lb-row-trend.down {
    background: var(--gp-motm-bad);
}

.gp-motm-root .gp-motm-current-badges img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border-width: 1px;
    padding: 3px;
    background: rgba(12, 2, 22, 0.58);
}

.gp-motm-root .gp-motm-past-badge-wrap {
    display: inline-flex;
    align-items: center;
}

.gp-motm-root .gp-motm-past-badges {
    gap: 4px;
}

.gp-motm-root .gp-motm-past-badges img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    padding: 1px;
}

/* Current winner motion */
.gp-motm-root .gp-motm-winner.is-current-winner-card {
    position: relative;
    overflow: hidden;
}

.gp-motm-root .gp-motm-winner.is-current-winner-card::before {
    content: "";
    position: absolute;
    inset: -24%;
    background: radial-gradient(circle at 42% 36%, rgba(255, 98, 203, 0.22), rgba(185, 120, 255, 0.08) 40%, transparent 72%);
    pointer-events: none;
    opacity: 0.36;
    animation: gpMotmWinnerHalo 4.2s ease-in-out infinite;
}

.gp-motm-root .gp-motm-winner.is-current-winner-card .gp-motm-avatar {
    position: relative;
}

.gp-motm-root .gp-motm-winner.is-current-winner-card .gp-motm-avatar::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 232, 189, 0.56);
    opacity: 0.38;
    pointer-events: none;
    animation: gpMotmAvatarRing 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.gp-motm-root .gp-motm-winner.is-current-winner-card .gp-motm-pill.gp-motm-pill-gold {
    position: relative;
    overflow: hidden;
}

.gp-motm-root .gp-motm-winner.is-current-winner-card .gp-motm-pill.gp-motm-pill-gold::after {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -150%;
    width: 46%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 246, 208, 0.72) 52%, transparent 100%);
    animation: gpMotmPillShimmer 8.4s linear infinite;
    pointer-events: none;
}

.gp-motm-root .gp-motm-winner.is-current-winner-card .gp-motm-stat {
    animation: gpMotmStatBreathe 5.4s ease-in-out infinite;
}

.gp-motm-root .gp-motm-winner.is-current-winner-card .gp-motm-points-icon img {
    animation: gpMotmPointsIconPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.gp-motm-root .gp-motm-winner.is-current-winner-card .gp-motm-stat:nth-child(2) {
    animation-delay: 0.35s;
}

.gp-motm-root .gp-motm-winner.is-current-winner-card .gp-motm-stat:nth-child(3) {
    animation-delay: 0.7s;
}

/* Past winners motion */
.gp-motm-root .gp-motm-month-card.is-past-winner-card {
    position: relative;
    overflow: hidden;
}

.gp-motm-root .gp-motm-month-card.is-past-winner-card.has-motion .gp-motm-month-label {
    animation: gpMotmMonthGlow 5.2s ease-in-out infinite;
    animation-delay: calc(var(--gp-motm-motion-i, 0) * 0.3s);
}

.gp-motm-root .gp-motm-month-card.is-past-winner-card.has-motion .gp-motm-mini-avatar {
    animation: gpMotmMiniAvatarGlow 4.6s ease-in-out infinite;
    animation-delay: calc(var(--gp-motm-motion-i, 0) * 0.35s);
}

.gp-motm-root .gp-motm-month-card.is-past-winner-card.has-motion .gp-motm-past-badges img {
    animation: gpMotmBadgeFloat 3.8s ease-in-out infinite;
}

.gp-motm-root .gp-motm-month-card.is-past-winner-card.has-motion .gp-motm-row-points .gp-motm-points-icon img {
    animation: gpMotmPointsIconPulse 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: calc(var(--gp-motm-motion-i, 0) * 0.2s);
}

.gp-motm-root .gp-motm-month-card.is-past-winner-card.has-motion .gp-motm-past-badges img:nth-child(2) {
    animation-delay: 0.5s;
}

.gp-motm-root .gp-motm-month-card.is-past-winner-card.has-motion .gp-motm-past-badges img:nth-child(3) {
    animation-delay: 1s;
}

/* Rank #1 persistent celebration */
.gp-motm-root .gp-motm-lb-podium-card.is-rank-1 {
    position: relative;
    isolation: isolate;
    animation: gpMotmRankOneCardPulse 2.2s ease-in-out infinite;
}

.gp-motm-root .gp-motm-lb-podium-card.is-rank-1::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(255, 215, 0, 0.55);
    opacity: 0.68;
    pointer-events: none;
    animation: gpMotmRankOneRingPulse 2.2s ease-out infinite;
}

.gp-motm-root .gp-motm-lb-podium-card.is-rank-1::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 241, 189, 0.9) 0 1.5px, transparent 2.3px),
        radial-gradient(circle at 78% 14%, rgba(255, 223, 136, 0.84) 0 1.4px, transparent 2.1px),
        radial-gradient(circle at 84% 78%, rgba(255, 241, 189, 0.88) 0 1.6px, transparent 2.4px),
        radial-gradient(circle at 22% 82%, rgba(255, 232, 164, 0.82) 0 1.5px, transparent 2.2px);
    opacity: 0.06;
    pointer-events: none;
    animation: gpMotmRankOneSparkle 6.8s ease-in-out infinite;
}

.gp-motm-root .gp-motm-lb-podium-card.is-rank-1 .gp-motm-lb-avatar {
    position: relative;
    border-color: rgba(255, 207, 94, 0.9);
    animation: gpMotmRankOneAvatarPulse 2s ease-in-out infinite;
}

.gp-motm-root .gp-motm-lb-podium-card.is-rank-1 .gp-motm-lb-avatar::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 232, 164, 0.84);
    pointer-events: none;
    opacity: 0.5;
    animation: gpMotmRankOneAvatarHalo 2s ease-out infinite;
}

.gp-motm-root.gp-motm-motion-paused .is-current-winner-card::before,
.gp-motm-root.gp-motm-motion-paused .is-current-winner-card .gp-motm-avatar::after,
.gp-motm-root.gp-motm-motion-paused .is-current-winner-card .gp-motm-pill.gp-motm-pill-gold::after,
.gp-motm-root.gp-motm-motion-paused .is-current-winner-card .gp-motm-stat,
.gp-motm-root.gp-motm-motion-paused .is-current-winner-card .gp-motm-points-icon img,
.gp-motm-root.gp-motm-motion-paused .is-past-winner-card.has-motion .gp-motm-month-label,
.gp-motm-root.gp-motm-motion-paused .is-past-winner-card.has-motion .gp-motm-mini-avatar,
.gp-motm-root.gp-motm-motion-paused .is-past-winner-card.has-motion .gp-motm-past-badges img,
.gp-motm-root.gp-motm-motion-paused .is-past-winner-card.has-motion .gp-motm-row-points .gp-motm-points-icon img,
.gp-motm-root.gp-motm-motion-paused .gp-motm-lb-podium-card.is-rank-1,
.gp-motm-root.gp-motm-motion-paused .gp-motm-lb-podium-card.is-rank-1::before,
.gp-motm-root.gp-motm-motion-paused .gp-motm-lb-podium-card.is-rank-1::after,
.gp-motm-root.gp-motm-motion-paused .gp-motm-lb-podium-card.is-rank-1 .gp-motm-lb-avatar::after {
    animation-play-state: paused;
}

@keyframes gpMotmHeroAuroraShift {
    0% { transform: rotate(0deg) scale(1); opacity: 0.84; }
    50% { transform: rotate(180deg) scale(1.04); opacity: 0.98; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.84; }
}

@keyframes gpMotmHeroSheen {
    0%, 100% { opacity: 0.7; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(1.5%); }
}

@keyframes gpMotmHeroTitleEnter {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes gpMotmHeroSubEnter {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes gpMotmWinnerHalo {
    0%, 100% { opacity: 0.28; transform: scale(0.985); }
    50% { opacity: 0.44; transform: scale(1.015); }
}

@keyframes gpMotmAvatarRing {
    0%, 100% { opacity: 0.32; transform: scale(0.985); }
    50% { opacity: 0.58; transform: scale(1.02); }
}

@keyframes gpMotmPillShimmer {
    0%, 72% { transform: translateX(0); }
    100% { transform: translateX(340%); }
}

@keyframes gpMotmStatBreathe {
    0%, 100% { background: rgba(6, 0, 16, 0.3); border-color: rgba(255, 255, 255, 0.18); }
    50% { background: rgba(16, 2, 28, 0.46); border-color: rgba(255, 255, 255, 0.28); }
}

@keyframes gpMotmPointsIconPulse {
    0%, 100% { opacity: 0.76; transform: scale(0.93); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes gpMotmMonthGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 255, 255, 0); border-color: rgba(255, 255, 255, 0.24); }
    50% { box-shadow: 0 0 14px rgba(255, 201, 255, 0.18); border-color: rgba(255, 220, 255, 0.46); }
}

@keyframes gpMotmMiniAvatarGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 132, 214, 0); border-color: rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 16px rgba(255, 132, 214, 0.24); border-color: rgba(255, 208, 238, 0.74); }
}

@keyframes gpMotmBadgeFloat {
    0%, 100% { transform: translateY(0); opacity: 0.96; }
    50% { transform: translateY(-1px); opacity: 1; }
}

@keyframes gpMotmRankOneCardPulse {
    0% {
        box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.32), 0 10px 26px rgba(0, 0, 0, 0.28), 0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.75), 0 0 34px rgba(255, 215, 0, 0.52), 0 0 58px rgba(255, 215, 0, 0.22), 0 12px 30px rgba(0, 0, 0, 0.34);
    }
    100% {
        box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.32), 0 10px 26px rgba(0, 0, 0, 0.28), 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes gpMotmRankOneSparkle {
    0%, 58%, 100% { opacity: 0; transform: scale(0.98); }
    63% { opacity: 0.48; transform: scale(1); }
    68% { opacity: 0.22; }
    74% { opacity: 0.42; }
    79% { opacity: 0; transform: scale(1.02); }
}

@keyframes gpMotmRankOneAvatarPulse {
    0% {
        box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.42), 0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.9), 0 0 26px rgba(255, 215, 0, 0.62), 0 0 42px rgba(255, 215, 0, 0.22);
    }
    100% {
        box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.42), 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes gpMotmRankOneRingPulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    70% {
        opacity: 0.12;
        transform: scale(1.03);
    }
    100% {
        opacity: 0;
        transform: scale(1.045);
    }
}

@keyframes gpMotmRankOneAvatarHalo {
    0%, 100% {
        opacity: 0.58;
        transform: scale(1);
    }
    60% {
        opacity: 0.12;
        transform: scale(1.05);
    }
}

.gp-motm-root .gp-motm-error {
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 126, 166, 0.42);
    background: rgba(52, 0, 16, 0.34);
    color: #ffc9dc;
    font-size: 13px;
    padding: 8px 10px;
}

.gp-motm-root.is-loading .gp-motm-lb,
.gp-motm-root.is-loading .gp-motm-winner,
.gp-motm-root.is-loading .gp-motm-month-card {
    opacity: 0.75;
}

@media (max-width: 1180px) {
    .gp-motm-root .gp-motm-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .gp-motm-root .gp-motm-months {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gp-motm-root .gp-motm-stats {
        grid-template-columns: 1fr;
    }

    .gp-motm-root .gp-motm-winner-top {
        grid-template-columns: 1fr;
    }

    .gp-motm-root .gp-motm-winner-name {
        font-size: 26px;
    }

    .gp-motm-root .gp-motm-lb-podium {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .gp-motm-root {
        width: calc(100% - 18px);
    }

    .gp-motm-root .gp-motm-hero {
        padding: 16px;
        border-radius: 22px;
    }

    .gp-motm-root .gp-motm-hero-title {
        font-size: clamp(29px, 10vw, 40px);
        line-height: 0.97;
    }

    .gp-motm-root .gp-motm-hero-sub {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.45;
    }

    .gp-motm-root .gp-motm-months {
        grid-template-columns: 1fr;
    }

    .gp-motm-root .gp-motm-avatar {
        width: 74px;
        height: 74px;
    }

    .gp-motm-root .gp-motm-winner-name {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gp-motm-root .gp-motm-hero::before,
    .gp-motm-root .gp-motm-hero::after,
    .gp-motm-root .gp-motm-hero-title,
    .gp-motm-root .gp-motm-hero-sub,
    .gp-motm-root .is-current-winner-card::before,
    .gp-motm-root .is-current-winner-card .gp-motm-avatar::after,
    .gp-motm-root .is-current-winner-card .gp-motm-pill.gp-motm-pill-gold::after,
    .gp-motm-root .is-current-winner-card .gp-motm-stat,
    .gp-motm-root .is-current-winner-card .gp-motm-points-icon img,
    .gp-motm-root .is-past-winner-card.has-motion .gp-motm-month-label,
    .gp-motm-root .is-past-winner-card.has-motion .gp-motm-mini-avatar,
    .gp-motm-root .is-past-winner-card.has-motion .gp-motm-past-badges img,
    .gp-motm-root .is-past-winner-card.has-motion .gp-motm-row-points .gp-motm-points-icon img,
    .gp-motm-root .gp-motm-lb-podium-card.is-rank-1,
    .gp-motm-root .gp-motm-lb-podium-card.is-rank-1::before,
    .gp-motm-root .gp-motm-lb-podium-card.is-rank-1::after,
    .gp-motm-root .gp-motm-lb-podium-card.is-rank-1 .gp-motm-lb-avatar::after {
        animation: none;
    }

    .gp-motm-root .gp-motm-lb-podium-card.is-rank-1 {
        box-shadow: 0 0 0 1px rgba(255, 207, 94, 0.4) inset, 0 0 18px rgba(255, 207, 94, 0.18);
    }
}
