* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: transparent;
    color: #3B4252;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* ===== 叠影·几何水彩 - 动态几何水彩背景 ===== */
.geo-watercolor-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #FEFEFE;
    overflow: hidden;
}

/* 水彩色块 1 - 粉 */
.geo-watercolor-bg::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(ellipse at 40% 60%, rgba(255, 200, 200, 0.4) 0%, transparent 70%);
    border-radius: 60% 40% 50% 50%;
    filter: blur(80px);
    animation: blobFloat1 24s ease-in-out infinite;
}

/* 水彩色块 2 - 蓝 */
.geo-watercolor-bg::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(ellipse at 30% 50%, rgba(180, 210, 245, 0.45) 0%, transparent 70%);
    border-radius: 40% 60% 55% 45%;
    filter: blur(85px);
    animation: blobFloat2 28s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 25px) scale(1.15); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, -20px) scale(1.2); }
    66% { transform: translate(20px, -15px) scale(0.9); }
}

/* 水彩色块 3 - 紫 */
.geo-watercolor-bg .watercolor-purple {
    position: absolute;
    top: 40%;
    left: 15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(ellipse at 50% 50%, rgba(220, 190, 240, 0.4) 0%, transparent 70%);
    border-radius: 50% 50% 50% 50%;
    filter: blur(70px);
    animation: blobFloat3 26s ease-in-out infinite;
}

/* 水彩色块 4 - 绿 */
.geo-watercolor-bg .watercolor-green {
    position: absolute;
    top: 25%;
    right: 20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(ellipse at 50% 50%, rgba(180, 220, 200, 0.35) 0%, transparent 70%);
    border-radius: 50% 50% 50% 50%;
    filter: blur(65px);
    animation: blobFloat4 22s ease-in-out infinite;
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 30px) scale(1.1); }
}

@keyframes blobFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -25px) scale(1.2); }
}

/* 旋转几何框 */
.geo-watercolor-bg .rotating-frame {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 1px solid rgba(200, 210, 230, 0.3);
    animation: frameRotate 40s linear infinite;
    pointer-events: none;
}

.geo-watercolor-bg .rotating-frame::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    border: 1px solid rgba(180, 200, 220, 0.2);
    animation: frameRotate 50s linear infinite reverse;
}

@keyframes frameRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* ===== 叠影·几何水彩 - 纯白几何卡片（20px圆角+叠影动画）===== */
.game-card {
    background: #FFFFFF;
    border: 1px solid rgba(200, 210, 230, 0.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        4px 4px 0 rgba(255, 200, 200, 0.15),
        8px 8px 0 rgba(180, 210, 245, 0.10);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: geoCardShift 8s ease-in-out infinite;
    cursor: pointer;
    position: relative;
}

@keyframes geoCardShift {
    0%, 100% {
        box-shadow:
            4px 4px 0 rgba(255, 200, 200, 0.15),
            8px 8px 0 rgba(180, 210, 245, 0.10);
    }
    33% {
        box-shadow:
            4px 4px 0 rgba(220, 190, 240, 0.15),
            8px 8px 0 rgba(180, 220, 200, 0.10);
    }
    66% {
        box-shadow:
            4px 4px 0 rgba(180, 220, 200, 0.15),
            8px 8px 0 rgba(255, 200, 200, 0.10);
    }
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(180,190,210,0.45);
    border-color: rgba(200,210,230,0.5);
    animation-play-state: paused !important;
}

.game-card:hover img {
    transform: scale(1.08);
}

/* 触摸反馈 - 叠影层旋转+卡片抬起 */
.game-card:active {
    animation: geoCardRotate 0.6s ease-out;
    transform: translateY(-5px);
}

@keyframes geoCardRotate {
    0% { box-shadow: 4px 4px 0 rgba(255, 200, 200, 0.15), 8px 8px 0 rgba(180, 210, 245, 0.10); }
    30% { box-shadow: 4px -4px 0 rgba(255, 200, 200, 0.15), 8px -8px 0 rgba(180, 210, 245, 0.10); transform: translateY(-5px) rotate(2deg); }
    60% { box-shadow: -4px -4px 0 rgba(255, 200, 200, 0.15), -8px -8px 0 rgba(180, 210, 245, 0.10); transform: translateY(-5px) rotate(-2deg); }
    100% { box-shadow: 4px 4px 0 rgba(255, 200, 200, 0.15), 8px 8px 0 rgba(180, 210, 245, 0.10); transform: translateY(0); }
}

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;
    }
}

/* ===== 叠影·几何水彩 - 相关游戏卡片 ===== */
.related-game {
    transition: all 0.3s ease;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow:
        4px 4px 0 rgba(255, 200, 200, 0.15),
        8px 8px 0 rgba(180, 210, 245, 0.10);
    border: 1px solid rgba(200, 210, 230, 0.25);
}

.related-game:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(180,190,210,0.3), 0 0 24px rgba(200,210,230,0.3);
}

button {
    transition: all 0.3s ease;
    background: rgba(210,220,235,0.3);
    border: 1px solid rgba(200,210,230,0.6);
    color: #3B4252;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(180, 195, 220, 0.6);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: all 0.3s ease;
}

::selection {
    background: rgba(200, 215, 235, 0.5);
    color: #3B4252;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FEFEFE;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #C8D0DA, #B0BCD0);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #A8B4C8, #98A8C0);
}