body {
    margin: 0;
    padding: 0;
    background-color: #0c0c14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

#game-wrapper {
    position: relative;
    width: 95vw;
    max-width: 400px;
    height: calc(95vw * 1.5);
    max-height: 600px;
    margin: 20px auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(112, 197, 206, 0.2);
    border-radius: 20px;
    overflow: hidden;
    background: #70c5ce;
}

#game-container {
    width: 100%;
    height: 100%;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

#score-display {
    font-size: clamp(40px, 15vw, 80px);
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    opacity: 0.9;
}

#high-score {
    font-size: 18px;
    color: #ffeb3b;
    margin-top: -10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-box {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 80%;
}

.overlay-box h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.overlay-box p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.pmg-btn {
    background: linear-gradient(135deg, #4d79ff, #b336ff);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(77, 121, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pmg-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 20px rgba(77, 121, 255, 0.4);
}

.pmg-btn:active {
    transform: translateY(1px);
}

.instructions-box {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
    text-align: left;
}

.instructions-box p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    color: white;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* Game Info Section */
.game-info {
    width: 100%;
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.info-container {
    display: grid;
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h2 {
    color: #4d79ff;
    margin-top: 0;
    font-size: 1.5rem;
}

.info-content {
    line-height: 1.6;
    color: #94a3b8;
}

.info-content ul {
    padding-left: 20px;
}

.info-content li {
    margin-bottom: 10px;
}

.faq-item h4 {
    color: #fff;
    margin-bottom: 5px;
}
