/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6bfd;
    --primary-hover: #3a59e0;
    --accent-color: #9c4dff;
    --gradient-start: #4a6bfd;
    --gradient-end: #9c4dff;
    --bg-color: #f8f9fa;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --sidebar-width: 250px;
    --sidebar-collapsed: 70px;
    
    /* 图标颜色 */
    --icon-color-1: #FF5252;  /* 红色 */
    --icon-color-2: #FF9D2F;  /* 橙色 */
    --icon-color-3: #FFEB3B;  /* 黄色 */
    --icon-color-4: #66BB6A;  /* 绿色 */
    --icon-color-5: #29B6F6;  /* 蓝色 */
    --icon-color-6: #AB47BC;  /* 紫色 */
}

[data-theme="dark"] {
    --primary-color: #5d7afc;
    --primary-hover: #4a6bfd;
    --bg-color: #121212;
    --text-color: #ecf0f1;
    --card-bg: #1e1e1e;
    --header-bg: rgba(30, 30, 30, 0.95);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    line-height: 1.6;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
}

/* 动态背景 */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.2;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    animation: float-around 20s infinite ease-in-out;
}

.bubble-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    animation-delay: -2s;
}

.bubble-2 {
    top: 60%;
    left: 10%;
    width: 300px;
    height: 300px;
    animation-delay: -5s;
}

.bubble-3 {
    top: 30%;
    right: 10%;
    width: 180px;
    height: 180px;
    animation-delay: -8s;
}

.bubble-4 {
    bottom: 10%;
    right: 20%;
    width: 250px;
    height: 250px;
    animation-delay: -3s;
}

.bubble-5 {
    bottom: 40%;
    left: 40%;
    width: 220px;
    height: 220px;
    animation-delay: -10s;
}

@keyframes float-around {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, 30px);
    }
    50% {
        transform: translate(20px, 60px);
    }
    75% {
        transform: translate(-30px, 20px);
    }
}

/* 彩色图标 */
.colored-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.sidebar-nav li:nth-child(1) .colored-icon {
    background: linear-gradient(45deg, var(--icon-color-1), var(--icon-color-6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav li:nth-child(2) .colored-icon {
    background: linear-gradient(45deg, var(--icon-color-2), var(--icon-color-1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav li:nth-child(3) .colored-icon {
    background: linear-gradient(45deg, var(--icon-color-3), var(--icon-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav li:nth-child(4) .colored-icon {
    background: linear-gradient(45deg, var(--icon-color-1), var(--icon-color-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav li:nth-child(5) .colored-icon {
    background: linear-gradient(45deg, var(--icon-color-5), var(--icon-color-4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 美化滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* 启动屏幕 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-screen.collapsed {
    transform: translateY(-100%);
}

.splash-content {
    position: relative;
    z-index: 1;
    margin-left: 35%;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 90%;
}

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

.splash-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(90deg, #ffffff, #e0e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.splash-subtitle {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.start-btn {
    padding: 1rem 3.5rem;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.start-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
    background: #ffffff;
}

.start-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.start-btn:hover:before {
    left: 100%;
}

/* 游戏门户 */
.game-portal {
    min-height: 100vh;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.game-portal.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 头部导航 */
.header {
    background: var(--header-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 语言切换器样式 */
.language-switcher {
    position: relative;
    margin-right: 15px;
}

.language-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-toggle .colored-icon {
    margin-right: 6px;
    color: var(--accent-color);
}

.current-lang {
    font-weight: 600;
    font-size: 0.9rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 120px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.language-dropdown a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.language-dropdown a:hover {
    background: var(--hover-bg);
}

.language-dropdown a.active {
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(var(--accent-rgb), 0.1);
}

/* 修改现有的Nav右侧样式以容纳语言切换器 */
.nav-right {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(15deg);
}

/* 侧边栏切换按钮 */
.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    color: var(--text-color);
    transition: var(--transition);
    display: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.1);
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--card-bg);
    padding-top: 80px;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 3px 0 15px rgba(0,0,0,0.1);
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    white-space: nowrap;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 侧边栏收缩按钮 */
.sidebar-collapse-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(74, 107, 253, 0.12);
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.8rem;
    opacity: 0;
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar:hover .sidebar-collapse-btn {
    opacity: 1;
}

.sidebar.collapsed .sidebar-collapse-btn {
    transform: translateY(-50%) rotate(180deg);
}

.sidebar-collapse-btn:hover {
    background: var(--primary-color);
    color: white;
}

.sidebar-header h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    padding: 0;
    transition: var(--transition);
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-nav li:hover {
    background: rgba(74, 107, 253, 0.08);
}

.sidebar-nav li.active {
    background: rgba(74, 107, 253, 0.12);
    border-left: 3px solid var(--primary-color);
}

.sidebar-nav a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    transition: var(--transition);
}

.category-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: inline-block;
    width: 24px;
    text-align: center;
}

.game-count {
    margin-left: auto;
    background: rgba(74, 107, 253, 0.15);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* 主要内容区域 */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 100px 2.5rem 3rem;
    transition: var(--transition);
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.game-card.featured {
    grid-column: span 2;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.game-thumbnail {
    position: relative;
    height: 0;
    padding-bottom: 60%;
    overflow: hidden;
}

.game-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    padding: 0.9rem 2.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.play-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.play-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.play-btn:hover:before {
    left: 100%;
}

.game-card h3 {
    padding: 1.2rem 1.2rem 0.5rem;
    font-size: 1.3rem;
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

.game-category {
    display: inline-block;
    margin: 0 1.2rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    background: rgba(74, 107, 253, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

[data-theme="dark"] .game-category {
    color: var(--text-color);
    opacity: 0.8;
    background: rgba(74, 107, 253, 0.2);
}

.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
    padding: 2rem;
}

.game-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.back-btn {
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.back-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.game-frame {
    width: 100%;
    height: 85vh;
    max-width: 1400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 添加对导航文本的样式控制 */
.nav-text {
    transition: var(--transition);
    white-space: nowrap;
    font-weight: 500;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .game-count,
.sidebar.collapsed .sidebar-header h3 {
    display: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 220px;
    }
    
    .splash-title {
        font-size: 3.5rem;
    }
    
    .splash-content {
        padding: 2.5rem 3rem;
    }

    .game-card.featured {
        grid-column: span 1;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }

    .cover-circle {
        width: 400px;
        height: 400px;
        left: 10%;
    }
    
    .cover-icon {
        font-size: 100px;
        left: 10%;
    }
    
    .cover-grid {
        width: 250px;
        height: 250px;
        right: 10%;
    }
    
    .grid-item {
        font-size: 30px;
    }
    
    .splash-content {
        margin-left: 20%;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 220px;
        --sidebar-collapsed: 60px;
    }
    
    .splash-title {
        font-size: 2.8rem;
    }
    
    .splash-subtitle {
        font-size: 1.3rem;
    }
    
    .splash-content {
        padding: 2rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .sidebar {
        width: var(--sidebar-collapsed);
        transition: all 0.3s ease;
        transform: translateX(0);
    }

    .sidebar.hidden {
        transform: translateX(-100%);
    }

    .sidebar:hover {
        width: var(--sidebar-width);
    }

    .sidebar:hover .nav-text,
    .sidebar:hover .game-count,
    .sidebar:hover .sidebar-header h3 {
        display: inline-block;
    }

    .sidebar .nav-text,
    .sidebar .game-count,
    .sidebar .sidebar-header h3 {
        display: none;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed);
        padding: 90px 1.5rem 2rem;
    }

    .main-content.full {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }
    
    .game-card h3 {
        font-size: 1.2rem;
    }

    .cover-circle, .cover-icon {
        display: none;
    }
    
    .cover-grid {
        left: 50%;
        top: 35%;
        transform: translate(-50%, -50%);
        width: 200px;
        height: 200px;
        opacity: 0.5;
    }
    
    .splash-content {
        margin-left: 0;
        padding: 0 2rem;
    }
}

@media (max-width: 576px) {
    .splash-title {
        font-size: 2.2rem;
    }

    .splash-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .splash-content {
        padding: 1.5rem;
    }

    .start-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .main-content {
        padding: 85px 1rem 1.5rem;
    }
    
    .game-frame {
        height: 80vh;
    }
}

/* 游戏卡片布局优化 */
.game-info {
    position: relative;
    padding: 15px;
}

.game-info h3 {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* 游戏封面样式 */
.game-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cover-graphics {
    position: relative;
    width: 100%;
    height: 100%;
}

.cover-circle {
    position: absolute;
    width: 550px;
    height: 550px;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: pulse 6s infinite ease-in-out;
}

.cover-icon {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    animation: float-cover 8s infinite ease-in-out;
}

.cover-icon .colored-icon {
    background: linear-gradient(45deg, #ffcc33, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.cover-grid {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: bob 4s infinite ease-in-out;
}

.grid-item.racing {
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(255, 99, 71, 0.2), rgba(255, 165, 0, 0.2));
}

.grid-item.strategy {
    animation-delay: 1s;
    background: linear-gradient(45deg, rgba(50, 205, 50, 0.2), rgba(0, 191, 255, 0.2));
}

.grid-item.action {
    animation-delay: 2s;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.2), rgba(255, 69, 0, 0.2));
}

.grid-item.puzzle {
    animation-delay: 3s;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.2));
}

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

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

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