﻿:root {
    --slice-initial-grow: 1.1;
    --slice-hover-grow: 1.45;
    --slice-left: 1.5%;
    --slice-right: 98.5%;
    --slice-hover-left: 0.5%;
    --slice-hover-right: 99.5%;
    --game-logo-max-width: 40vw;
    --game-logo-max-height: 150px;
    --primary: #00ffe7;
    --secondary: #181c24;
    --accent: #ff009d;
    --font-main: 'Roboto', Arial, sans-serif;
    --font-title: 'Bebas Neue', Impact, sans-serif;

    /* ===== Panel sizing variables ===== */
    /*--game-logo-max-width: 500px;*/
    /*--game-logo-max-height: 180px;*/
    --game-panel-width: 410px;
    --game-panel-height: 260px;

    /* ===== Modal and overlay variables ===== */
    --pitchdeck-modal-width: 1000px;
    --pitchdeck-modal-height: 580px;
    --iframe-width: 950px;
    --iframe-height: 600px;

    /* ===== Close button ===== */
    --close-btn-offset: -78px;  /* Negative = outside modal, positive = inside */
    --close-btn-size: 2.5em;
}
.studio-logo-link {
    position: fixed !important;
    top: 50px;
    left: 100px;
    z-index: 3000;
    display: block;
    height: 40px;
    width: auto;
}
.studio-logo-link img.studio-logo {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 4px var(--primary));
    background: transparent;
    pointer-events: auto;
}
.studio-logo-link:hover img,
.studio-logo-link:focus img {
    filter: drop-shadow(0 0 10px var(--primary));
    opacity: 0.93;
    transition: filter 0.2s, opacity 0.2s;
}


/* Reset & base */
html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    font-family: var(--font-main);
    background: var(--secondary);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    min-width: 100vw;
}
ul, li { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

/* Slices (Landing) */
.vertical-slice-landing {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}
.game-slice-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}
.game-slice {
    position: relative;
    flex-grow: var(--slice-initial-grow);
    min-width: 0;
    width: 1px;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-image: var(--slice-bg);
    background-color: #222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition:
            flex-grow 0.65s cubic-bezier(.22,1,.36,1),
            filter 0.65s cubic-bezier(.22,1,.36,1),
            clip-path 0.65s cubic-bezier(.22,1,.36,1);
    filter: grayscale(1) brightness(0.75);
    cursor: pointer;
    overflow: hidden;
}
.game-slice:hover, .game-slice:focus {
    flex-grow: var(--slice-hover-grow);
    filter: grayscale(0) brightness(1.05);
    z-index: 3;
    clip-path: polygon(var(--slice-hover-left) 0, 100% 0, var(--slice-hover-right) 100%, 0 100%);
    box-shadow: 0 0 28px 2px var(--primary), 0 4px 80px 0 #000c;
}
.game-slice:not(:hover):not(:focus) { filter: grayscale(1) brightness(0.62); }
.game-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}
.game-logo-img {
    max-width: var(--game-logo-max-width);
    max-height: var(--game-logo-max-height);
    display: block;
    filter: drop-shadow(0 2px 22px #000c);
    opacity: 0;
    transform: scale(0.96);
    transition:
            opacity 0.55s cubic-bezier(.22,1,.36,1),
            transform 0.55s cubic-bezier(.22,1,.36,1);
}
.game-slice:hover .game-logo-img,
.game-slice:focus .game-logo-img {
    opacity: 1;
    transform: scale(1);
}

/* Logo (top left), navbar (top right), footer (bottom right) - now fixed and always on top! */
.studio-logo {
    position: fixed !important;
    top: 50px;
    left: 100px;
    z-index: 3000;
    height: 40px;
    filter: drop-shadow(0 0 4px var(--primary));
    background: transparent;
    pointer-events: auto;
}
.main-header {
    position: fixed !important;
    top: 28px;
    right: 40px;
    z-index: 3000;
    background: transparent;
    pointer-events: auto;
}
.main-header .container {
    flex-direction: row;
    align-items: center;
    gap: 3em;
    background: transparent;
    padding: 0;
    display: flex;
}
nav ul {
    display: flex;
    gap: 2em;
    background: transparent;
    padding: 0.3em 1.2em;
    border-radius: 18px;
    pointer-events: auto;
}
nav a {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--accent); }
.bottom-navbar {
    position: fixed !important;
    right: 12px;
    bottom: 12px;
    z-index: 3000;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2em;
    background: transparent;
    border-radius: 14px;
    padding: 0.5em 1.8em;
    pointer-events: auto;
}
.bottom-links {
    display: flex;
    gap: 2em;
}
.bottom-links a {
    color: var(--primary);
    font-size: 2rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    text-decoration: none;
}
.bottom-links a:hover {
    color: var(--accent);
}
.bottom-placeholder {
    color: #eee;
    font-size: 1.1rem;
    margin-left: 2em;
    opacity: 0.7;
    font-family: var(--font-title);
    letter-spacing: 1px;
}

/* Overlay Styles */
.game-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200; /* lower than nav/logo/footer, higher than everything else */
    pointer-events: none;
    background: transparent;
    display: none;
}
.game-fullscreen-overlay.visible { display: block; }

.game-bg {
    position: fixed;
    inset: 0;
    width: 100vw; height: 100vh;
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1200;
    pointer-events: none;
}

.game-info-panel {
    position: fixed;
    top: 50%;
    right: 5vw;
    transform: translateY(-50%);
    z-index: 1220;
    background: rgba(30,32,38,0.96);
    border-radius: 22px;
    box-shadow: 0 6px 40px #000b;
    min-width: 320px;
    max-width: 500px;
    width: 430px;
    padding: 2.2em 2.4em 2em 2em;
    display: flex;
    flex-direction: column;
    gap: 1.3em;
    pointer-events: auto;
}

.close-overlay {
    position: fixed;
    top: 50%;
    right: 1vw;
    transform: translateY(-50%);
    font-size: 2.7em;
    color: #fff;
    background: rgba(22,22,32,0.55);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    opacity: 0.8;
    z-index: 1230;
    transition: opacity 0.2s, background 0.18s;
    pointer-events: auto;
    width: 68px; height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-overlay:hover { opacity: 1; background: rgba(30,32,38,0.98); }
.close-overlay .close-txt {
    display: block;
    font-size: 0.38em;
    letter-spacing: 0.13em;
    opacity: 0.7;
    margin-left: 2px;
    font-family: var(--font-main);
}

/* Platform tags (badges) FromSoftware style */
.platform-badge,
.game-platform-tag {
    display: inline-block;
    background: #161a1f;
    color: #00ffe7;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.99em;
    padding: 2px 13px;
    margin-right: 0.18em;
    margin-bottom: 3px;
    border: 1px solid #00ffe744;
    box-shadow: 0 2px 8px #0002;
    letter-spacing: 0.02em;
}

/* Panel contents */
.game-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 2.1em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    margin-bottom: 0.15em;
}
.game-details-row { display: flex; gap: 0.6em; font-size: 1.1em; margin-bottom: 0.35em; }
.game-label { color: #b6c0d2; min-width: 88px; }
.game-value { color: #fff; }
.game-trailer {
    width: 100%;
    min-width: 260px;
    min-height: 180px;
    margin: 1.2em 0 0.5em 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #13161d;
    overflow: hidden;
}
.steam-btn {
    margin-top: 0.7em;
    display: inline-block;
    background: #00ffe7;
    color: #222;
    font-family: 'Bebas Neue', Impact, sans-serif;
    padding: 0.62em 2.1em;
    border-radius: 10px;
    font-size: 1.08em;
    font-weight: 600;
    letter-spacing: 1.2px;
    box-shadow: 0 2px 18px #0003;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}
.steam-btn:hover { background: #ff009d; color: #fff; }
