/* playground.css — standalone layout */

/* Base reset for this page */
html, body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: "VT323", system-ui, monospace;
    min-height: 100vh;
}

/* Override .main height:100vh from style.css so page can scroll */
.main {
    height: auto !important;
    min-height: 100vh;
    background: #000;
    overflow: auto;
}

/* Page wrapper */
.pg-wrap {
    padding: 160px 8vw 100px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Page header */
.pg-title {
    font-size: clamp(30px, 5vw, 72px);
    font-weight: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 10px 0;
}

.pg-subtitle {
    font-family: 'Courier New', Courier, monospace;
    color: #555;
    font-size: clamp(12px, 1.2vw, 18px);
    line-height: 1.8;
    margin-bottom: 60px;
}

/* Divider */
.pg-divider {
    width: 100%;
    height: 1px;
    background: #222;
    margin-bottom: 60px;
}

/* Game grid */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
}

/* Game card */
.pg-card {
    border: 1px solid #222;
    padding: 40px 35px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 280px;
    position: relative;
    background: #000;
}

.pg-card:hover {
    background: #0a0a0a;
    border-color: #555;
    transform: translateY(-4px);
}

.pg-card-num {
    font-size: clamp(11px, 0.9vw, 14px);
    font-family: 'Courier New', Courier, monospace;
    color: #444;
    letter-spacing: 2px;
}

.pg-card-icon {
    width: 40px;
    height: 40px;
    opacity: 0.7;
}

.pg-card h2 {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
}

.pg-card p {
    font-size: clamp(13px, 1vw, 16px);
    font-family: 'Courier New', Courier, monospace;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
}

.pg-card-cta {
    font-size: clamp(11px, 0.9vw, 14px);
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
    align-self: flex-start;
    transition: border-color 0.3s, color 0.3s;
}

.pg-card:hover .pg-card-cta {
    border-color: #fff;
}

/* Modal overlay */
.pg-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999999;
    background: rgba(0,0,0,0.97);
    justify-content: center;
    align-items: center;
}

.pg-modal-inner {
    width: 90vw;
    height: 85vh;
    max-width: 1400px;
    background: #000;
    border: 1px solid #333;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pg-modal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

.pg-modal-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #555;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pg-modal-close {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #fff;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    background: none;
    border: 1px solid #444;
    padding: 6px 14px;
    pointer-events: all;
    z-index: 999999999;
    position: relative;
    transition: color 0.2s, border-color 0.2s;
}

.pg-modal-close:hover {
    color: #f00;
}

.pg-modal-inner iframe {
    flex-grow: 1;
    border: none;
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .pg-wrap {
        padding: 120px 20px 60px;
    }
    .pg-grid {
        grid-template-columns: 1fr;
    }
    .pg-modal-inner {
        width: 95vw;
        height: 90vh;
    }
}
