* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #FDFBF7;
    color: #3A3538;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 点彩·印象花园 - 动态点彩画布背景 ===== */
.pointillism-garden-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #FDFBF7;
    overflow: hidden;
}

/* 柔焦淡粉光晕 */
.pointillism-garden-bg::before {
    content: '';
    position: absolute;
    top: -8%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 190, 180, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: pinkHalo 22s ease-in-out infinite;
}

/* 柔焦淡蓝光晕 */
.pointillism-garden-bg::after {
    content: '';
    position: absolute;
    bottom: -5%;
    right: 5%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(160, 200, 230, 0.45) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(85px);
    animation: blueHalo 26s ease-in-out infinite;
}

/* 点彩层 - 暖色圆点（需额外元素） */
.pointillism-garden-bg .dots-warm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow:
        25px 60px 0 rgba(255, 150, 140, 0.5),
        120px 40px 0 rgba(255, 180, 100, 0.6),
        250px 80px 0 rgba(255, 220, 130, 0.4),
        80px 180px 0 rgba(255, 160, 150, 0.7),
        200px 250px 0 rgba(255, 200, 110, 0.5),
        320px 200px 0 rgba(255, 140, 120, 0.6),
        60px 320px 0 rgba(255, 190, 150, 0.4),
        150px 360px 0 rgba(255, 170, 130, 0.7),
        290px 350px 0 rgba(255, 210, 160, 0.5);
    animation: dotsFloat1 10s ease-in-out infinite;
}

/* 点彩层 - 冷色圆点（需额外元素） */
.pointillism-garden-bg .dots-cool {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow:
        70px 100px 0 rgba(160, 190, 240, 0.5),
        190px 30px 0 rgba(140, 210, 200, 0.6),
        310px 130px 0 rgba(170, 180, 230, 0.4),
        40px 250px 0 rgba(130, 200, 210, 0.7),
        170px 310px 0 rgba(180, 210, 250, 0.5),
        280px 280px 0 rgba(150, 190, 220, 0.6),
        340px 40px 0 rgba(160, 220, 190, 0.4),
        10px 30px 0 rgba(140, 180, 240, 0.5),
        230px 160px 0 rgba(170, 210, 230, 0.6);
    animation: dotsFloat2 12s ease-in-out infinite reverse;
}

/* 微小高光点（需额外元素） */
.pointillism-garden-bg .highlight-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow:
        50px 80px 0 rgba(255,255,255,0.6),
        140px 200px 0 rgba(255,255,255,0.5),
        270px 60px 0 rgba(255,255,255,0.7),
        330px 280px 0 rgba(255,255,255,0.6),
        90px 350px 0 rgba(255,255,255,0.5),
        200px 40px 0 rgba(255,255,255,0.7);
    animation: highlightPulse 5s ease-in-out infinite;
}

@keyframes pinkHalo {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 15px) scale(1.2); }
}

@keyframes blueHalo {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-18px, -10px) scale(1.15); }
}

@keyframes dotsFloat1 {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-10px); opacity: 0.9; }
}

@keyframes dotsFloat2 {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-8px); opacity: 0.8; }
}

@keyframes highlightPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 10px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* ===== 点彩·印象花园 - 米白底+边缘彩点装饰卡片 ===== */
.game-card,
.related-game {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 180, 180, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    animation: cardFloat 7s ease-in-out infinite;
}

/* 边缘彩色圆点装饰 */
.card-dot-decoration {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    pointer-events: none;
    z-index: 0;
    border-radius: 25px;
}

.card-dot-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 180, 180, 0.7);
    box-shadow:
        120px 0 0 rgba(200, 180, 220, 0.7),
        240px 0 0 rgba(255, 220, 140, 0.7),
        60px 100% 0 rgba(170, 210, 180, 0.7),
        180px 100% 0 rgba(255, 160, 150, 0.7),
        300px 50% 0 rgba(180, 200, 230, 0.7);
    animation: dotBounce 7s ease-in-out infinite;
}

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-8px); opacity: 1; }
}

.game-card:hover,
.related-game:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 32px rgba(255, 180, 180, 0.2);
    border-color: rgba(180, 180, 180, 0.8);
}

.game-card:hover img,
.related-game:hover img {
    transform: scale(1.08);
}

/* 触摸反馈 - 边缘圆点飞溅+淡彩渐变扫过 */
.game-card:active,
.related-game:active {
    box-shadow: 0 2px 8px rgba(128,128,128,0.35), inset 0 0 20px rgba(255,255,255,0.9);
    animation: none !important;
    transition: all 0.2s ease-out;
}

.game-card:active .card-dot-decoration,
.related-game:active .card-dot-decoration {
    animation: dotSplash 0.5s ease-out forwards;
}

@keyframes dotSplash {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 标题文字 - 深灰+彩色圆点前缀 */
.pointillism-title {
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

.pointillism-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 180, 180, 0.9), rgba(200, 180, 220, 0.9));
}

/* 卡片浮动动画 */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(255, 180, 180, 0.12);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 8px 22px rgba(255, 180, 180, 0.18);
    }
}

hr, .divider {
    display: none;
}

hr.dashed, .divider-dashed {
    display: none;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .related-games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

button {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255,180,180,0.12), rgba(200,180,220,0.12), rgba(255,220,140,0.12));
    border: 2px solid transparent;
    color: #3A3538;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, rgba(255, 180, 180, 0.4), rgba(200, 180, 220, 0.4), rgba(255, 220, 140, 0.4));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.7;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 180, 180, 0.25);
}

img {
    max-width: 100%;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a {
    transition: all 0.3s ease;
}

::selection {
    background: linear-gradient(90deg, rgba(255, 180, 180, 0.3), rgba(200, 180, 220, 0.3));
    color: #3A3538;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(253,251,247,0.95);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 180, 180, 0.5), rgba(200, 180, 220, 0.5));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 180, 180, 0.7), rgba(200, 180, 220, 0.7));
}