body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #0d0d0d;
    color: #fff;
    overflow-x: hidden;
}
.select-page {
    position: relative;
    min-height: 100vh;
    padding-top: 140px;
    padding: 100px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.background-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.background-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    filter: blur(2px);
}
.background-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), #0d0d0d);
}
.content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
.title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #f5f5f5;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-shadow: 2px 4px 10px rgba(255, 255, 255, 0.05);
}
.subtitle {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.heart {
    margin: 0 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: #ff4d4d;
    animation: pulse 1.4s infinite;
    text-shadow: 0 0 6px rgba(255,77,77,0.6);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}
.card {
    position: relative;
    border-radius: 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: #fff;
    overflow: visible;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 15px 35px rgba(255, 77, 77, 0.15);
}
.card-inner {
    padding: 50px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}
.icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}
.label {
    font-size: 1.4rem;
    font-weight: 600;
}
.card:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0.95;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.launch-game-wrapper {
    margin-top: 50px;
}
.launch-game-btn {
    background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.1rem;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(255,77,77,0.1);
}
.launch-game-btn:hover {
    background: rgba(255,77,77,0.08);
    border-color: rgba(255,77,77,0.2);
    transform: scale(1.03);
}

.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hidden-game {
    display: none;
}
.game-box {
    background: #1c1c1c;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
}
#game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}
#game-grid button {
    padding: 20px;
    font-size: 1.5rem;
    border-radius: 10px;
    background: #292929;
    border: none;
    color: #fff;
    transition: background 0.2s;
}
#game-grid button.active {
    background: #ff4d4d;
}