body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    user-select: none;
    -webkit-user-select: none;
}

#game-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-height: 800px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #222;
    touch-action: none;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#level-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
    pointer-events: none;
}

#hint-text {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    z-index: 10;
    pointer-events: none;
    letter-spacing: 2px;
}

#message-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#message-title {
    font-size: 40px;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin: 0;
    text-align: center;
}

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

/* PlayMix Back Button */
.back-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    z-index: 100;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
}

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

/* Overlay box styles (matches Playmix portal) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    backdrop-filter: blur(5px);
}

.overlay-box {
    background: linear-gradient(145deg, #2a2a35, #1d1d25);
    padding: 30px;
    border-radius: 20px;
    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: 90%;
    width: 320px;
}

.overlay-icon {
    font-size: 60px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.overlay-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: white;
}

.overlay-sub {
    color: #a0a0a0;
    margin-bottom: 20px;
}

/* Playmix Buttons */
.pmg-btn {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    width: 100%;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.pmg-btn:active {
    transform: scale(0.95);
}

.pmg-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 25px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pmg-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Info section below game */
.game-info {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

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

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card h2 {
    margin-top: 0;
    color: #4facfe;
    font-size: 22px;
}

.info-card p, .info-card ul {
    color: #ddd;
    line-height: 1.6;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    margin: 0 0 5px 0;
    color: white;
}

.faq-item p {
    margin: 0;
    color: #bbb;
}

/* Reset Button */
.icon-btn {
    position: absolute;
    top: 20px;
    right: 120px; /* Leave space for back button */
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.icon-btn:active {
    transform: scale(0.95);
}

