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

body {
    font-family: var(--hp-font-sans);
    line-height: 1.65;
    color: var(--hp-fg-secondary);
    background: var(--hp-bg-primary);
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
    cursor: pointer;
}

.product:hover {
    transform: translateY(-8px);
}

.product-visual {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.h3-product-globe {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.h3-product-globe canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.product-grid {
    display: inline-grid;
    gap: 2px;
    padding: 0;
}

.product-grid-cell {
    width: 10px;
    height: 10px;
    background: transparent;
    transition: all 0.2s ease;
}

.product-grid-cell.filled {
    background: var(--hp-accent-primary);
    box-shadow: 0 0 6px var(--hp-accent-primary-glow);
}

.product:hover .product-grid-cell.filled {
    background: var(--hp-accent-primary-hover);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

@media (max-width: 768px) {
    .h3-product-globe {
        max-width: 360px;
    }
}

footer {
    background: var(--hp-bg-secondary);
    color: var(--hp-fg-primary);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

#community {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.community-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    min-width: 300px;
}

.community-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.community-links-row a {
    color: var(--hp-fg-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--hp-transition-base);
    position: relative;
    padding: 0.35rem 0;
}

.community-links-row a i {
    margin-right: 0.5rem;
}

.community-links-row a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.community-links-row a:hover {
    color: var(--hp-fg-primary);
}

.community-links-row a:hover::after {
    width: 100%;
}

.wechat-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.wechat-qr img {
    width: 84px;
    height: 84px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.wechat-qr span {
    color: var(--hp-fg-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.wechat-qr span i {
    margin-right: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    color: var(--hp-fg-disabled);
    font-size: 0.9rem;
}

.ascii-grid-section {
    padding: 3rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ascii-grid-container {
    position: relative;
    display: inline-block;
}

.ascii-grid {
    display: inline-grid;
    gap: 1px;
    background: transparent;
    padding: 2rem;
    border-radius: 16px;
    overflow-x: auto;
}

.play-button {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: var(--hp-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--hp-shadow-accent);
    transition: var(--hp-transition-base);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: var(--hp-shadow-accent-lg);
}

.play-button:active {
    transform: scale(0.95);
}

.play-button i {
    color: white;
    font-size: 16px;
    margin-left: 2px;
}

.play-button.playing {
    background: linear-gradient(135deg, #e24a4a 0%, #bd3535 100%);
}

.play-button.playing i::before {
    content: '\f04d';
}

.grid-cell {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.15);
    transition: var(--hp-transition-fast);
    cursor: pointer;
}

.grid-cell.filled {
    background: var(--hp-accent-primary);
    box-shadow: 0 0 8px var(--hp-accent-primary-glow);
}

.grid-cell:hover {
    background: var(--hp-accent-primary-hover);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
    border-color: var(--hp-accent-primary-hover);
    transform: scale(1.1);
    z-index: 10;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    main {
        padding: 2.5rem 1.5rem 2rem;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product {
        padding: 0;
        min-height: 220px;
    }

    .product-grid-cell {
        width: 8px;
        height: 8px;
    }

    footer {
        padding: 3rem 1.5rem 1.5rem;
        margin-top: 4rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .community-links {
        justify-content: center;
    }

    .ascii-grid-section {
        padding: 2rem 1rem 1rem;
    }

    .ascii-grid {
        padding: 1.5rem 1rem;
    }

    .grid-cell {
        width: 8px;
        height: 8px;
    }

    .play-button {
        width: 32px;
        height: 32px;
        bottom: 8px;
        right: 8px;
    }

    .play-button i {
        font-size: 14px;
    }
}

/* Play Card Globe Container */
.play-globe-container {
    width: 100%;
    height: 280px;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.play-globe-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .play-globe-container {
        height: 240px;
    }
}
