/* PITCHDECK PANEL & MODAL */

.pitchdeck-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: 70px 0 50px 0;
    background: var(--secondary);
}
.pitchdeck-games {
    display: flex;
    gap: 3vw;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
}
.game-panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: var(--game-panel-width);
    height: var(--game-panel-height);
    border-radius: 18px;
    position: relative;
    box-shadow: 0 6px 30px #000b, 0 0 0 1.5px #00ffe744;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.28s, transform 0.18s;
    cursor: pointer;
    flex-direction: column;
}
.game-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24,28,36,0.17) 0%, rgba(24,28,36,0.44) 80%);
    z-index: 1;
    pointer-events: none;
}
.game-panel > * { position: relative; z-index: 2; }
.game-panel:hover,
.game-panel:focus-within {
    box-shadow: 0 10px 48px #00ffe733, 0 2px 30px #000d;
    transform: scale(1.032);
    z-index: 2;
}
.game-logo-center {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.game-logo-img {
    max-width: var(--game-logo-max-width);
    max-height: var(--game-logo-max-height);
    width: auto;
    height: auto;
    filter: drop-shadow(0 2px 20px #000c);
    margin-bottom: 0.7em;
    display: block;
    transition: transform 0.18s, opacity 0.18s;
}
.game-panel-title {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-title);
    font-size: 2em;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 16px #000d, 0 1px 0 #000;
    z-index: 2;
    pointer-events: none;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}
.view-pitch-btn {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    min-width: 270px;
    padding: 0.8em 2.6em;
    font-size: 1.19em;
    font-family: var(--font-title);
    border-radius: 12px;
}
.view-pitch-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Modal Overlay */
.pitchdeck-overlay {
    position: fixed;
    inset: 0;
    z-index: 1800;
    background: rgba(24, 28, 36, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.17s;
}
.pitchdeck-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.pitchdeck-modal {
    position: relative;
    background: #191c22;
    border-radius: 19px;
    box-shadow: 0 8px 38px #000c;
    padding: 2.1em 2.3em 2em 2.3em;
    min-width: 340px;
    max-width: 98vw;
    width: var(--pitchdeck-modal-width);
    min-height: 360px;
    height: var(--pitchdeck-modal-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.25s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98);}
    to { opacity: 1; transform: scale(1);}
}
.pitchdeck-iframe-container {
    width: var(--iframe-width);
    max-width: 90vw;
    height: var(--iframe-height);
    margin-top: 0.5em;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pitchdeck-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #222;
    border-radius: 8px;
    min-height: 350px;
}

/* Overlay Close Button (center left, only used on modals here) */
.close-overlay.center {
    position: absolute;
    top: 50%;
    left: var(--close-btn-offset);
    transform: translateY(-50%);
    font-size: var(--close-btn-size);
    color: #fff;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    opacity: 0.95;
    z-index: 10;
    display: flex;
    align-items: center;
    flex-direction: column;
    transition: color 0.18s, left 0.18s;
}
.close-overlay.center .close-txt {
    display: block;
    font-size: 0.32em;
    letter-spacing: 0.13em;
    opacity: 0.7;
    margin-left: 2px;
    font-family: var(--font-main);
}
.close-overlay.center:hover {
    opacity: 1;
    color: var(--accent);
    left: calc(var(--close-btn-offset) - 12px);
}

/* PIN Modal Overlay */
.pin-modal {
    position: fixed;
    inset: 0;
    background: rgba(15,20,30,0.92);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}
.pin-modal.active {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}
.pin-modal-content {
    background: #191c22;
    border-radius: 18px;
    box-shadow: 0 8px 34px #000c;
    padding: 2.6em 2.2em 2.1em 2.2em;
    min-width: 270px;
    max-width: 96vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2em;
    position: relative;
    opacity: 0;
    transform: scale(0.96);
    animation: modalPopIn 0.21s cubic-bezier(.5,1.6,.3,1) forwards;
}
@keyframes modalPopIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.pin-modal-content h2 {
    font-family: var(--font-title);
    font-size: 1.23em;
    color: #fff;
    font-weight: 700;
    margin: 0 0 0.4em 0;
    letter-spacing: 0.1em;
    text-align: center;
}
#pin-input {
    font-size: 1.2em;
    padding: 0.7em 1.2em;
    border-radius: 8px;
    border: 1.5px solid var(--primary);
    background: #14181e;
    color: var(--primary);
    outline: none;
    text-align: center;
    margin-bottom: 0.1em;
    width: 210px;
    letter-spacing: 0.13em;
    transition: border 0.2s;
}
#pin-input:focus {
    border-color: var(--accent);
    color: #fff;
}
.pin-error {
    color: var(--accent);
    font-size: 1.08em;
    min-height: 1.1em;
    margin-bottom: 0.4em;
    font-weight: 600;
    text-align: center;
}
.pin-submit-btn {
    background: var(--primary);
    color: #191b21;
    border: none;
    border-radius: 8px;
    font-family: var(--font-title);
    font-size: 1.1em;
    font-weight: 600;
    padding: 12px 1.8em;
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
    box-shadow: 0 2px 12px #0002;
    letter-spacing: 0.13em;
}
.pin-submit-btn:hover {
    background: var(--accent);
    color: #fff;
}
.close-pin-btn {
    position: absolute;
    top: 10px; right: 13px;
    font-size: 1.55em;
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    opacity: 0.75;
    z-index: 6;
    transition: opacity 0.17s, color 0.18s;
}
.close-pin-btn:hover { opacity: 1; color: var(--primary); }
