* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    color: #5C3D2E;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== 璀璨·流光幻境 - 暖金动态背景（旋转光轮+漂浮粒子）===== */
.golden-dream-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #FFF7ED, #FFF0DB, #FFF5E8, #FDEBD0);
    background-size: 300% 300%;
    animation: warmShift 20s ease infinite;
    overflow: hidden;
}

@keyframes warmShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 旋转香槟金/蜜桃粉/淡金光轮，22秒周期 */
.golden-dream-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 215, 150, 0.15),
        rgba(255, 200, 180, 0.15),
        rgba(255, 230, 170, 0.15),
        rgba(255, 215, 150, 0.15)
    );
    animation: goldenRotate 22s linear infinite;
    filter: blur(100px);
}

@keyframes goldenRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 漂浮金色粒子1 - 18秒周期 */
.golden-dream-bg::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 60%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 200, 120, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatGlow1 18s ease-in-out infinite;
    filter: blur(70px);
}

@keyframes floatGlow1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, -50px) scale(1.3); }
    66% { transform: translate(40px, 20px) scale(0.8); }
}

/* 独立漂浮粒子2 - 16秒周期 */
.gold-particle-1 {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle1 14s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes floatParticle1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(25px, -35px) scale(1.4); opacity: 1; }
}

/* 独立漂浮粒子3 - 20秒周期 */
.gold-particle-2 {
    position: absolute;
    bottom: 25%;
    right: 15%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 180, 100, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle2 16s ease-in-out infinite;
    filter: blur(50px);
}

@keyframes floatParticle2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    33% { transform: translate(-40px, -20px) scale(0.7); opacity: 0.9; }
    66% { transform: translate(30px, 25px) scale(1.2); opacity: 0.4; }
}

/* 独立漂浮粒子4 - 周期20s */
.gold-particle-3 {
    position: absolute;
    top: 55%;
    left: 35%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 220, 130, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle3 20s ease-in-out infinite;
    filter: blur(45px);
}

@keyframes floatParticle3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(-20px, 30px) scale(1.3); opacity: 0.3; }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 10px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ===== 暖金涌动动画（每7秒轻微上下浮动）===== */
@keyframes cardFloat {
    0%, 100% { transform: rotate(var(--tilt, 0deg)) translateY(0px); }
    45% { transform: rotate(calc(var(--tilt, 0deg) * -1)) translateY(-3px); }
    90% { transform: rotate(calc(var(--tilt, 0deg) * 0.7)) translateY(1.5px); }
}

.game-card {
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 24px;
    animation: cardFloat var(--float-dur, 9s) ease-in-out var(--float-delay, 0s) infinite;
    cursor: pointer;
}

.game-card[data-float-dur] {
    --float-dur: calc(attr(data-float-dur) * 1s);
    --float-delay: calc(attr(data-float-delay) * 1s);
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02) rotate(0deg) !important;
    box-shadow: 0 12px 32px rgba(255,180,80,0.28), 0 0 24px rgba(212,165,116,0.18), inset 0 0 10px rgba(255,215,0,0.08);
    animation-play-state: paused !important;
}

.game-card:hover img {
    transform: scale(1.03);
}

/* ===== 对角扫光动画 (8秒周期) - 金色 ===== */
.card-sweep-light {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 200, 100, 0.15) 45%,
        rgba(255, 200, 100, 0.25) 50%,
        rgba(255, 200, 100, 0.15) 55%,
        transparent 80%
    );
    z-index: 8;
    pointer-events: none;
    animation: cardSweepGleam 8s ease-in-out infinite;
}

@keyframes cardSweepGleam {
    0%, 65% { left: -100%; opacity: 0; }
    72% { opacity: 1; }
    85% { left: 200%; opacity: 0; }
    100% { left: 200%; opacity: 0; }
}

/* ===== 触摸反馈 - 金色涟漪扩散 ===== */
.game-card:active {
    transform: scale(0.98) translateY(2px) rotate(0deg) !important;
    box-shadow:
        inset 4px 4px 18px rgba(0, 0, 0, 0.06),
        0 4px 24px rgba(255, 180, 80, 0.26),
        0 0 36px rgba(255, 180, 80, 0.12);
}

.card-touch-ring {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    border-radius: 24px;
}
.game-card:active .card-touch-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #D4A574;
    transform: translate(-50%, -50%);
    animation: goldRingExpand 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes goldRingExpand {
    0% { width: 10px; height: 10px; opacity: 1; border-width: 3px; }
    100% { width: 280px; height: 280px; opacity: 0; border-width: 0.5px; }
}

/* ===== 标题滚动闪烁光效 ===== */
@keyframes titleShine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

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.35s ease;
    border-radius: 24px;
}

.related-game:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 180, 80, 0.26), 0 0 22px rgba(212, 165, 116, 0.18);
}

button {
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 180, 80, 0.32);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: all 0.3s ease;
}

::selection {
    background: rgba(255, 200, 100, 0.3);
    color: #5C3D2E;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #FFF0DB;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.38);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.58);
}