/* ─── RESET & BASE ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f7f2e9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e1e2a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1.5rem;
}

/* ─── ACCESS BLOCKER ─── */
#access-blocker {
    position: fixed;
    inset: 0;
    background: #1e1e2a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.blocker-content {
    background: #ffffff;
    border: 4px solid #1e1e2a;
    border-radius: 24px;
    padding: 3rem 4rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 16px 16px 0 #1e1e2a;
}

.blocker-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #d14c4c;
}

.blocker-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #3d3d52;
}

.blocker-content p strong {
    color: #1e1e2a;
}

.blocker-btn {
    display: inline-block;
    background: #a6d9f7;
    border: 3px solid #1e1e2a;
    border-radius: 60px;
    padding: 0.7rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    color: #1e1e2a;
    text-decoration: none;
    box-shadow: 4px 4px 0 #1e1e2a;
    transition: all 0.15s ease;
}

.blocker-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #1e1e2a;
}

/* ─── ARCADE CONTENT ─── */
#arcade-content {
    max-width: 900px;
    width: 100%;
}

.arcade-header {
    background: #ffffff;
    border: 4px solid #1e1e2a;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 10px 10px 0 #1e1e2a;
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.arcade-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.arcade-header h1 span {
    background: #ffb3c6;
    padding: 0 0.3rem;
    border-radius: 8px;
    border: 3px solid #1e1e2a;
}

.subtitle {
    font-size: 1rem;
    color: #3d3d52;
    margin-top: 0.3rem;
}

.close-btn {
    background: #e0d6c8;
    border: 3px solid #1e1e2a;
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 #1e1e2a;
    transition: all 0.1s ease;
}

.close-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #1e1e2a;
}

/* ─── GAME GRID ─── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    background: #ffffff;
    border: 3px solid #1e1e2a;
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    box-shadow: 6px 6px 0 #1e1e2a;
    transition: all 0.15s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #1e1e2a;
}

.game-card .game-icon {
    font-size: 3rem;
    margin-bottom: 0.3rem;
}

.game-card .game-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.game-card .game-desc {
    font-size: 0.8rem;
    color: #3d3d52;
    margin-bottom: 0.8rem;
}

.game-card .play-btn {
    background: #b7e4c7;
    border: 3px solid #1e1e2a;
    border-radius: 40px;
    padding: 0.3rem 1.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 3px 3px 0 #1e1e2a;
    transition: all 0.1s ease;
}

.game-card .play-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #1e1e2a;
}

/* ─── GAME CONTAINER ─── */
#gameContainer {
    background: #ffffff;
    border: 4px solid #1e1e2a;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 10px 10px 0 #1e1e2a;
    margin-bottom: 2rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.back-btn {
    background: #e0d6c8;
    border: 3px solid #1e1e2a;
    border-radius: 40px;
    padding: 0.3rem 1.2rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 3px 3px 0 #1e1e2a;
    transition: all 0.1s ease;
}

.back-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #1e1e2a;
}

#gameIframe {
    width: 100%;
    height: 500px;
    min-height: 400px;
    border: 3px solid #1e1e2a;
    border-radius: 12px;
    background: #ffffff;
    transition: height 0.3s ease;
}

/* ─── FOOTER ─── */
.arcade-footer {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 0;
    color: #3d3d52;
    border-top: 3px solid #1e1e2a;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .arcade-header {
        padding: 1rem 1.2rem;
    }
    
    .arcade-header h1 {
        font-size: 1.6rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .blocker-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .blocker-content h1 {
        font-size: 1.8rem;
    }
    
    #gameIframe {
        height: 400px;
        min-height: 300px;
    }
}

@media (max-width: 400px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .close-btn {
        align-self: flex-end;
    }
}