@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    --gradient-secondary: linear-gradient(135deg, #33ff99 0%, #00ff88 100%);
    --gradient-accent: linear-gradient(135deg, #00ff88 0%, #00ffaa 100%);
    --gradient-warm: linear-gradient(135deg, #00ff88 0%, #33ff99 100%);
    --gradient-cool: linear-gradient(135deg, #00ffaa 0%, #00cc66 100%);
    --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.4);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0E0E0E;
    color: #FFFFFF;
    letter-spacing: 0.2px;
    overflow-x: hidden;
}

/* Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Transitions */
.transition-custom {
    transition: all 0.3s ease;
}

/* Card Hover */
.card-hover {
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.card-hover:hover {
    /* No styles on hover */
}

.card-hover:focus {
    outline: none;
}

button:focus,
a:focus,
a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

nav a:focus,
header a:focus {
    outline: none !important;
}

#searchInput:focus,
#genreFilter:focus {
    outline: none;
}

#genreFilter {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.5rem; /* Make space for custom arrow */
}

.genre-filter-wrapper:focus-within svg {
    transform: rotate(180deg);
}

.card-hover:hover::before {
    opacity: 1;
}

.package-selected {
    border-color: #FFFFFF !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2) !important;
}

.package-card-narrow {
    /* Делаем карточку уже примерно на 20%. */
    width: 80%;
}

/* Для левого столбца (нечётные карточки) прижимаем карточку к центру сетки. */
.package-card-narrow:nth-child(odd) {
    margin-left: auto;
    margin-right: 0;
}

/* Для правого столбца (чётные карточки) тоже прижимаем к центру. */
.package-card-narrow:nth-child(even) {
    margin-left: 0;
    margin-right: auto;
}

/* Buttons */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 500%;
    height: 500%;
}

.btn-primary:hover {
    background-color: #0E0E0E;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: #0E0E0E;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-gradient {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    border: none;
    color: #000000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00cc66 0%, #33ff99 100%);
    transition: left 0.3s ease;
}

.btn-gradient:hover::before {
    left: 0;
}

.btn-gradient span {
    position: relative;
    z-index: 1;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
}

/* Skeleton Loader */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.skeleton {
    animation: skeleton-pulse 2s ease-in-out infinite;
    background-color: #1A1A1A;
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ============================================ */
/* SCROLL REVEAL ANIMATIONS */
/* ============================================ */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scroll-reveal {
    opacity: 0;
}

.scroll-reveal.revealed {
    animation: slideUp 0.8s ease forwards;
}

.scroll-reveal-left.revealed {
    animation: slideLeft 0.8s ease forwards;
}

.scroll-reveal-right.revealed {
    animation: slideRight 0.8s ease forwards;
}

.scroll-reveal-scale.revealed {
    animation: scaleIn 0.8s ease forwards;
}

/* ============================================ */
/* PULSE AND GLOW ANIMATIONS */
/* ============================================ */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.8);
    }
}

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.pulse-scale {
    animation: pulse-scale 2s ease-in-out infinite;
}

/* ============================================ */
/* BOUNCE AND FLOAT ANIMATIONS */
/* ============================================ */

@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.bounce-subtle {
    animation: bounce-subtle 2s ease-in-out infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.wiggle-animation:hover {
    animation: wiggle 0.5s ease-in-out;
}

/* ============================================ */
/* SHIMMER AND SHINE EFFECTS */
/* ============================================ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ============================================ */
/* ROTATE ANIMATIONS */
/* ============================================ */

@keyframes rotate-360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-slow {
    animation: rotate-360 20s linear infinite;
}

.rotate-medium {
    animation: rotate-360 10s linear infinite;
}

/* Mobile Nav */
.mobile-nav-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mobile-nav-item:active {
    transform: scale(0.95);
}

.mobile-nav-item.active {
    background-color: transparent;
}

.mobile-nav-item.active svg {
    color: #00ff88;
}

.mobile-nav-item.active span {
    color: #FFFFFF;
}

.mobile-nav-item svg {
    transition: color 0.3s ease;
    width: 1.75rem;
    height: 1.75rem;
}

.mobile-nav-item:hover svg {
    transform: translateY(-2px);
}

/* Mobile Bottom Nav Enhancement */
.mobile-bottom-nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Backdrop Blur */
.backdrop-blur-custom {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Burger Menu Animation */
.burger-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #FFFFFF 0%, #00ff88 100%);
}

.burger-open .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
}

.burger-open .burger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger-open .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
}

/* Touch Target Optimization */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .card-hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-item {
        min-width: 60px;
        min-height: 60px;
    }
}

/* Focus Styles — только для элементов которым нужен outline */
*:not(input):not(textarea):not(select):not(a):not(button):focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* Кнопки и ссылки — серая граница при нажатии (без белого outline) */
.btn-ghost:focus,
.btn-ghost:active {
    outline: none !important;
    border-color: rgba(255,255,255,0.35) !important;
    box-shadow: none !important;
}

/* Все поля ввода — без рамки */
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    border-width: 0 !important;
}

/* FAQ: убираем белую рамку/outline при клике и фокусе */
.faq-button,
.faq-button:focus,
.faq-button:focus-visible,
.faq-button:active {
    outline: none !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Убираем белые границы при клике на картинки в gamesGrid */
#gamesGrid a:focus,
#gamesGrid a:active,
#gamesGrid a:focus-visible {
    outline: none !important;
    border: none !important;
}

#gamesGrid img:focus,
#gamesGrid img:active,
#gamesGrid img:focus-visible {
    outline: none !important;
    border: none !important;
}

#gamesGrid .card-hover:focus,
#gamesGrid .card-hover:active,
#gamesGrid .card-hover:focus-visible {
    outline: none !important;
    border: none !important;
}

/* Убираем подсветку при касании на мобильных устройствах */
#gamesGrid a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

#gamesGrid img {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

/* Убираем белые границы при клике на картинки в popularGamesGrid */
#popularGamesGrid a:focus,
#popularGamesGrid a:active,
#popularGamesGrid a:focus-visible {
    outline: none !important;
    border: none !important;
}

#popularGamesGrid img:focus,
#popularGamesGrid img:active,
#popularGamesGrid img:focus-visible {
    outline: none !important;
    border: none !important;
}

#popularGamesGrid .card-hover:focus,
#popularGamesGrid .card-hover:active,
#popularGamesGrid .card-hover:focus-visible {
    outline: none !important;
    border: none !important;
}

/* Убираем подсветку при касании на мобильных устройствах для popularGamesGrid */
#popularGamesGrid a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

#popularGamesGrid img {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

/* Убираем белые границы при клике на картинки в popularGamesGrid2 */
#popularGamesGrid2 a:focus,
#popularGamesGrid2 a:active,
#popularGamesGrid2 a:focus-visible {
    outline: none !important;
    border: none !important;
}

#popularGamesGrid2 img:focus,
#popularGamesGrid2 img:active,
#popularGamesGrid2 img:focus-visible {
    outline: none !important;
    border: none !important;
}

#popularGamesGrid2 .card-hover:focus,
#popularGamesGrid2 .card-hover:active,
#popularGamesGrid2 .card-hover:focus-visible {
    outline: none !important;
    border: none !important;
}

/* Убираем подсветку при касании на мобильных устройствах для popularGamesGrid2 */
#popularGamesGrid2 a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

#popularGamesGrid2 img {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}


/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================ */
/* GRADIENT CLASSES */
/* ============================================ */

.gradient-primary {
    background: var(--gradient-primary);
}

.gradient-secondary {
    background: var(--gradient-secondary);
}

.gradient-accent {
    background: var(--gradient-accent);
}

.gradient-warm {
    background: var(--gradient-warm);
}

.gradient-cool {
    background: var(--gradient-cool);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.gradient-text-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-warm {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.shadow-card {
    box-shadow: var(--shadow-card);
}

/* ============================================ */
/* PASSWORD EYE BUTTON */
/* ============================================ */
/* Отдельный класс для кнопки-глазка, чтобы иконка не обрезалась
   и нормально центрировалась внутри поля ввода как на десктопе, так и на мобилке. */
.password-eye-btn {
    /* Жёстко задаём компактный квадратный контейнер под иконку. */
    width: 32px;
    height: 32px;
    min-width: 0;   /* Переопределяем mobile-правило button[min-width:44px] */
    min-height: 0;  /* Чтобы кнопка не вылезала за рамки по высоте */
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-eye-btn svg {
    /* Чуть увеличиваем иконку, но оставляем отступы внутри контейнера. */
    width: 20px;
    height: 20px;
}

.password-eye-btn:focus {
    /* Убираем утолщение рамки при фокусе, чтобы не "съедать" пиксели иконки. */
    border-width: 0;
}

/* Animated Gradient Background */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(270deg, #00ff88, #00cc66, #33ff99, #00ff88);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

.animated-gradient-fast {
    background: linear-gradient(270deg, #00ff88, #00cc66, #33ff99, #00ff88);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

/* ============================================ */
/* GLASSMORPHISM EFFECTS */
/* ============================================ */

.glass {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-gradient {
    background: linear-gradient(
        135deg,
        rgba(0, 255, 136, 0.1) 0%,
        rgba(0, 204, 102, 0.1) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* ============================================ */
/* RIPPLE EFFECT */
/* ============================================ */

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================ */
/* SCROLL INDICATOR */
/* ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce-subtle 2s ease-in-out infinite;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0%, 100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Filter Buttons */
.filter-btn {
    position: relative;
    padding: 1rem 0;
    color: #BFBFBF;
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.filter-btn:hover {
    color: #FFFFFF;
}

.filter-btn:focus {
    outline: none;
}

#scrollLeftBtn,
#scrollRightBtn {
    border: none;
}

#scrollLeftBtn:focus,
#scrollLeftBtn:focus-visible,
#scrollRightBtn:focus,
#scrollRightBtn:focus-visible,
#scrollLeftBtn2:focus,
#scrollLeftBtn2:focus-visible,
#scrollRightBtn2:focus,
#scrollRightBtn2:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.filter-btn.active {
    color: #FFFFFF;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.filter-btn.active::after {
    transform: scaleX(1);
}

.count-badge {
    display: none;
}

.filter-btn.active .count-badge {
    background-color: #FFFFFF;
    color: #0E0E0E;
}

/* ============================================ */
/* HEADER */
/* ============================================ */

/* Custom Mobile Nav Border */
.mobile-nav-border {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Search Input Smooth Transition */
input[type="search"] {
    transition: border-color 0.4s ease, box-shadow 0.4s ease, ring-color 0.4s ease;
    border: none !important;
    box-shadow: inset 0 0 0 1px rgba(107, 114, 128, 0.8) !important;
}

input[type="search"]:focus {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1) !important;
}

/* ============================================ */
/* HEADER LOGO - MOBILE POSITIONING */
/* ============================================ */

/* На мобильной версии логотип переместить чуть ниже */
@media (max-width: 768px) {
    a.gradient-text[href="index.html"] {
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .user-balance {
        font-size: 1rem !important; /* Увеличиваем размер текста */
    }
}

/* Payment Modal */
#paymentModal.is-open {
    display: flex;
}

#paymentModalContent {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#paymentModal.is-open #paymentModalContent {
    transform: translateY(0);
}

/* Custom Checkbox */
.custom-checkbox {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #555;
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
}
.custom-checkbox:hover {
    border-color: #777;
}

.custom-checkbox::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: #00ff88;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.custom-checkbox:checked {
    border-color: #00ff88;
}

.custom-checkbox:checked::before {
    transform: scale(1);
}

/* Custom Radio */
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #555;
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
}
input[type="radio"]:hover {
    border-color: #777;
}

input[type="radio"]::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #00ff88;
}

input[type="radio"]:checked {
    border-color: #00ff88;
}

input[type="radio"]:checked::before {
    transform: scale(1);
}


/* ── Фикс zoom при тапе на поиск (iOS Safari) ── */
input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    font-size: 16px !important;
}

/* ── Фикс скруглённых углов карточек на iOS Safari ── */
.game-card-wrap {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}
.card-hover.overflow-hidden,
[class*="rounded"][class*="overflow-hidden"] {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}
