.xxl-word-day,
.xxl-word-day * { box-sizing: border-box; }

.xxl-word-day {
    --xxl-word-bottom: max(14px, env(safe-area-inset-bottom));
    position: fixed;
    right: 14px;
    bottom: var(--xxl-word-bottom);
    z-index: 2147482000;
    width: min(292px, calc(100vw - 24px));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.975);
    transition: opacity .24s ease, transform .28s ease, visibility .24s ease, bottom .2s ease;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.42));
}

.xxl-word-day.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.xxl-word-day__card {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 10px 38px 10px 10px;
    border: 1px solid rgba(34,211,238,.52);
    border-radius: 17px;
    color: #fff;
    text-decoration: none;
    background:
        radial-gradient(circle at 7% 16%, rgba(34,211,238,.20), transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(217,119,6,.18), transparent 40%),
        linear-gradient(145deg, rgba(10,16,20,.985), rgba(7,8,10,.99));
    box-shadow:
        0 14px 34px rgba(0,0,0,.46),
        0 0 0 1px rgba(34,211,238,.08),
        0 0 20px rgba(34,211,238,.16),
        inset 0 1px 0 rgba(255,255,255,.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    isolation: isolate;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.xxl-word-day__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #22d3ee 0%, #0891b2 48%, #d97706 100%);
    box-shadow: 0 0 16px rgba(34,211,238,.45);
}

.xxl-word-day__card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 16%, rgba(255,255,255,.10) 46%, transparent 68%);
    transform: translateX(-135%);
    animation: xxlWordDaySweep 5.8s ease-in-out 1.2s infinite;
}

.xxl-word-day__card:hover {
    transform: translateY(-2px);
    border-color: rgba(34,211,238,.82);
    box-shadow:
        0 17px 38px rgba(0,0,0,.50),
        0 0 25px rgba(34,211,238,.24),
        0 0 14px rgba(217,119,6,.10),
        inset 0 1px 0 rgba(255,255,255,.10);
}

.xxl-word-day__main {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    gap: 9px;
    align-items: center;
}

.xxl-word-day__coin-wrap {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
}

.xxl-word-day__coin-wrap::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(34,211,238,.52);
    box-shadow: 0 0 12px rgba(34,211,238,.30), 0 0 7px rgba(217,119,6,.13);
    animation: xxlWordDayPulse 2.2s ease-in-out infinite;
}

.xxl-word-day__coin {
    position: relative;
    z-index: 1;
    width: 43px;
    height: 43px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,.28));
}

.xxl-word-day__copy { min-width: 0; }

.xxl-word-day__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1px;
    color: #67e8f9;
    font-size: 7.7px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.xxl-word-day__eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34,211,238,.12), 0 0 10px rgba(34,211,238,.8);
    animation: xxlWordDayDot 1.45s ease-in-out infinite;
}

.xxl-word-day__title {
    display: block;
    color: #fff;
    font-size: 13.4px;
    font-weight: 950;
    line-height: 1.18;
    letter-spacing: -.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xxl-word-day__reward {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.80);
    font-size: 10.6px;
    font-weight: 760;
    line-height: 1.3;
    white-space: nowrap;
}

.xxl-word-day__reward strong {
    color: #f6b84a;
    font-weight: 950;
    text-shadow: 0 0 10px rgba(217,119,6,.26);
}

.xxl-word-day__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(34,211,238,.30);
    border-radius: 999px;
    color: #dffbff;
    background: rgba(8,145,178,.12);
    font-size: 7.8px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.xxl-word-day__cta b {
    color: #f6b84a;
    font-size: 11px;
}

.xxl-word-day__close {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 4;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    color: rgba(255,255,255,.78);
    background: rgba(0,0,0,.26);
    font: 700 14px/1 Arial, sans-serif;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.xxl-word-day__close:hover,
.xxl-word-day__close:focus-visible {
    color: #fff;
    border-color: rgba(34,211,238,.48);
    background: rgba(8,145,178,.34);
}

.xxl-word-day__close:focus-visible,
.xxl-word-day__card:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
}

@keyframes xxlWordDaySweep {
    0%, 76%, 100% { transform: translateX(-135%); }
    88% { transform: translateX(135%); }
}

@keyframes xxlWordDayPulse {
    0%,100% { transform: scale(.97); opacity: .62; }
    50% { transform: scale(1.04); opacity: 1; }
}

@keyframes xxlWordDayDot {
    0%,100% { opacity: .62; transform: scale(.85); }
    50% { opacity: 1; transform: scale(1.10); }
}

@media (max-width: 640px) {
    .xxl-word-day {
        right: 8px;
        width: min(274px, calc(100vw - 16px));
        --xxl-word-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .xxl-word-day__card {
        min-height: 58px;
        padding: 8px 34px 8px 9px;
        border-radius: 15px;
    }

    .xxl-word-day__main {
        grid-template-columns: 40px minmax(0,1fr);
        gap: 8px;
    }

    .xxl-word-day__coin-wrap {
        width: 40px;
        height: 40px;
    }

    .xxl-word-day__coin {
        width: 38px;
        height: 38px;
    }

    .xxl-word-day__eyebrow {
        font-size: 7px;
        letter-spacing: .07em;
    }

    .xxl-word-day__title {
        font-size: 12.2px;
    }

    .xxl-word-day__reward {
        font-size: 9.9px;
    }

    .xxl-word-day__cta {
        display: none;
    }

    .xxl-word-day__close {
        top: 50%;
        right: 6px;
        width: 22px;
        height: 22px;
        transform: translateY(-50%);
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .xxl-word-day {
        right: 6px;
        width: min(258px, calc(100vw - 12px));
    }

    .xxl-word-day__eyebrow { font-size: 6.6px; }
    .xxl-word-day__title { font-size: 11.5px; }
    .xxl-word-day__reward { font-size: 9.4px; }
}

@media (prefers-reduced-motion: reduce) {
    .xxl-word-day,
    .xxl-word-day__card,
    .xxl-word-day__card::after,
    .xxl-word-day__coin-wrap::before,
    .xxl-word-day__eyebrow::before {
        transition: none;
        animation: none;
    }
}
