.weekly-gift-ranking-page {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255, 188, 221, .18),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #241321 0%,
            #120d17 100%
        );
    color: #fff;
}

.weekly-gift-ranking-scroll {
    padding: 0 16px 110px;
    overflow-y: auto;
}

.wgr-hero {
    margin: 0 -16px 18px;
    background: #1a101b;
    overflow: hidden;
}

.wgr-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1536 / 608;
    object-fit: cover;
}

.wgr-period-card,
.wgr-section,
.wgr-own-card {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 20px;
    background: rgba(255, 255, 255, .065);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
}

.wgr-period-card {
    padding: 16px;
    margin-bottom: 16px;
}

.wgr-eyebrow {
    display: block;
    color: #f4a9cf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wgr-period-card h3,
.wgr-section h3 {
    margin: 5px 0 4px;
    font-size: 19px;
}

.wgr-period-card p,
.wgr-section-note {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    line-height: 1.45;
}

.wgr-section {
    padding: 16px;
    margin-bottom: 16px;
}

.wgr-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.wgr-section-head small {
    color: rgba(255, 255, 255, .56);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wgr-ranking-list {
    display: grid;
    gap: 9px;
}

.wgr-ranking-row {
    display: grid;
    grid-template-columns: 34px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 9px 8px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .18);
}

.wgr-top-row {
    background:
        linear-gradient(
            100deg,
            rgba(255, 187, 217, .16),
            rgba(255, 255, 255, .05)
        );
}

.wgr-position {
    color: #f5c2db;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.wgr-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #69465d;
}

.wgr-avatar-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
}

.wgr-user,
.wgr-score {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wgr-user strong,
.wgr-score strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wgr-user small,
.wgr-score small,
.wgr-score em {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
}

.wgr-score {
    align-items: flex-end;
    text-align: right;
}

.wgr-score strong {
    color: #ffd1e6;
}

.wgr-score em {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.wgr-own-card {
    position: sticky;
    bottom: 82px;
    z-index: 2;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: rgba(66, 32, 58, .96);
    backdrop-filter: blur(12px);
}

.wgr-own-card span {
    color: rgba(255, 255, 255, .66);
    font-size: 11px;
}

.wgr-own-card strong {
    color: #ffd1e6;
    font-size: 18px;
}

.wgr-own-card small {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, .68);
}

.wgr-prizes {
    display: grid;
    gap: 10px;
}

.wgr-prize-card {
    display: grid;
    gap: 4px;
    padding: 13px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .18);
}

.wgr-prize-card strong {
    color: #ffd3e6;
    font-size: 14px;
}

.wgr-prize-card small,
.wgr-muted,
.wgr-empty,
.wgr-loading,
.wgr-error {
    color: rgba(255, 255, 255, .63);
    font-size: 12px;
    line-height: 1.45;
}

.wgr-prize-rank {
    color: #f4a9cf;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.wgr-loading,
.wgr-empty,
.wgr-error {
    padding: 18px 8px;
    text-align: center;
}

.wgr-error {
    color: #ffc4c4;
}

@media (min-width: 700px) {
    .weekly-gift-ranking-scroll {
        max-width: 720px;
        margin: 0 auto;
    }

    .wgr-prizes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wgr-weekly-gift-section {
    text-align: center;
}

.wgr-gift-card {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.wgr-gift-image {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    object-fit: contain;
    padding: 10px;
    background: rgba(0, 0, 0, .22);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.wgr-gift-card h3 {
    margin: 6px 0 0;
    color: #ffd3e6;
    font-size: 20px;
}


/* ANGELL WEEKLY GIFT RANKING V2
   Cabeçalho e limite visual da campanha semanal. */
.weekly-gift-ranking-page .weekly-gift-rankin-topbar {
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: initial;
    gap: 12px;
}

.weekly-gift-ranking-page .wgr-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 82px;
    height: 40px;
    padding: 0 12px 0 8px;
    border: 1px solid rgba(255, 214, 235, .28);
    border-radius: 14px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .12),
            rgba(255, 255, 255, .045)
        );
    box-shadow:
        0 7px 18px rgba(0, 0, 0, .20),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.weekly-gift-ranking-page .wgr-back-button span:first-child {
    display: block;
    color: #ffd3e6;
    font-size: 25px;
    font-weight: 300;
    line-height: .7;
    transform: translateY(-1px);
}

.weekly-gift-ranking-page .wgr-back-button:hover {
    border-color: rgba(255, 214, 235, .58);
    background:
        linear-gradient(
            135deg,
            rgba(255, 185, 220, .22),
            rgba(255, 255, 255, .08)
        );
    box-shadow:
        0 9px 22px rgba(0, 0, 0, .26),
        0 0 0 3px rgba(255, 185, 220, .08);
}

.weekly-gift-ranking-page .wgr-back-button:active {
    transform: scale(.96);
}

.weekly-gift-ranking-page .wgr-back-button:focus-visible {
    outline: 2px solid #ffd3e6;
    outline-offset: 2px;
}


/* Popup explicativo do evento semanal */

.weekly-gift-ranking-page .weekly-gift-ranking-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.wgr-title-block {
    min-width: 0;
}

.wgr-info-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 211, 230, .42);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(145deg, #ef72ad, #9d3f8d);
    box-shadow:
        0 8px 22px rgba(177, 50, 123, .34),
        inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .18s ease, filter .18s ease;
}

.wgr-info-button:hover {
    filter: brightness(1.12);
    transform: scale(1.06);
}

.wgr-info-button:active {
    transform: scale(.93);
}

body.wgr-popup-open {
    overflow: hidden;
}

.wgr-info-popup {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    align-items: end;
    justify-items: center;
    opacity: 0;
    transition: opacity .2s ease;
}

.wgr-info-popup.is-visible {
    opacity: 1;
}

.wgr-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 10, .78);
    backdrop-filter: blur(10px);
}

.wgr-info-card {
    position: relative;
    z-index: 1;
    width: min(100%, 570px);
    max-height: min(88dvh, 760px);
    overflow-y: auto;
    border: 1px solid rgba(255, 211, 230, .2);
    border-radius: 28px 28px 0 0;
    background:
        radial-gradient(circle at 90% 0%, rgba(245, 93, 163, .16), transparent 32%),
        linear-gradient(180deg, #251326, #120d18);
    box-shadow: 0 -20px 70px rgba(0, 0, 0, .48);
    transform: translateY(24px);
    transition: transform .22s ease;
}

.wgr-info-popup.is-visible .wgr-info-card {
    transform: translateY(0);
}

.wgr-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.wgr-info-kicker {
    display: block;
    color: #f5a7ca;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.wgr-info-header h3 {
    margin: 5px 0 2px;
    font-size: 25px;
}

.wgr-info-header p {
    margin: 0;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
}

.wgr-info-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    background: rgba(255, 255, 255, .06);
}

.wgr-info-body {
    padding: 18px 20px 8px;
}

.wgr-info-highlight {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 190, 220, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 91, 158, .18), rgba(255, 255, 255, .045));
}

.wgr-info-highlight-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #ffd4e7;
    background: rgba(255, 185, 220, .16);
    font-size: 19px;
}

.wgr-info-highlight strong,
.wgr-info-highlight small {
    display: block;
}

.wgr-info-highlight strong {
    font-size: 14px;
}

.wgr-info-highlight small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .67);
    font-size: 12px;
    line-height: 1.45;
}

.wgr-info-list {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.wgr-info-list article {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
}

.wgr-info-list article > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    color: #ffc6de;
    font-size: 10px;
    font-weight: 900;
    background: rgba(243, 72, 137, .15);
}

.wgr-info-list strong {
    display: block;
    font-size: 13px;
}

.wgr-info-list p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, .63);
    font-size: 12px;
    line-height: 1.45;
}

.wgr-info-note {
    display: flex;
    gap: 8px;
    margin: 18px 0;
    padding: 11px 12px;
    border-left: 3px solid #ed72ad;
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
}

.wgr-info-note p {
    margin: 0;
    color: rgba(255, 255, 255, .64);
    font-size: 11px;
    line-height: 1.45;
}

.wgr-prizes-table-wrap {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(0, 0, 0, .16);
}

.wgr-prizes-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.wgr-prizes-heading h4 {
    margin: 4px 0 0;
    font-size: 17px;
}

.wgr-prizes-trophy {
    font-size: 25px;
}

.wgr-prizes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.wgr-prizes-table th,
.wgr-prizes-table td {
    padding: 10px 8px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: left;
}

.wgr-prizes-table thead th {
    border-top: 0;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    text-transform: uppercase;
}

.wgr-prizes-table tbody th {
    width: 34%;
    color: #ffd0e5;
    white-space: nowrap;
}

.wgr-prizes-table tbody td {
    color: rgba(255, 255, 255, .76);
}

.wgr-prizes-empty {
    color: rgba(255, 255, 255, .56) !important;
    text-align: center !important;
}

.wgr-info-footer {
    padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px));
}

.wgr-info-understood {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 15px;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(100deg, #f45d9c, #c93378);
    box-shadow: 0 10px 24px rgba(201, 51, 120, .25);
}

@media (min-width: 700px) {
    .wgr-info-popup {
        align-items: center;
        padding: 20px;
    }

    .wgr-info-card {
        border-radius: 28px;
    }
}
