/* -- VARIABLES -- */ 
:root {
    --bg: #1a1819;
    --text: #f2ffee;
    --text-muted: #ccc;
    
    /* Brand Colors */
    --col-mint: #2df6d1;
    --col-red: #f62d52; 
    
    /* Game Colors */
    --theme-droste: #8B0000;
    --theme-glue: #2962ff;
    --theme-chess: #9C8361;

    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 25, 0.90); 
    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    
    --font-main: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-serif: 'Cinzel', serif; 
}

/* --- RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; }

/* --- UTILS --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 8px;
}
.text-link { color: var(--col-mint); font-weight: 700; border-bottom: 1px solid transparent; }
.text-link:hover { border-color: var(--col-mint); }

/* --- SECTIONS (TABS) --- */
.section-tab { display: none; animation: fadeIn 0.4s ease; }
.section-tab.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- HEADER --- */
header {
    padding: 40px 20px 20px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 100;
    width: 100%;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 0px;
}
.logo-link:hover { transform: scale(1.03); }

.main-logo { width: 160px; }

.hero-tagline {
    font-family: var(--font-serif);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem); 
    margin: 0 0 20px 0;
    color: var(--col-red);
    white-space: nowrap; 
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- MENU --- */
.main-menu {
    display: flex;
    gap: 30px;
    padding: 12px 40px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.menu-link {
    position: relative;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    padding: 8px 0;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--col-mint);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--col-mint);
}

.menu-link:hover, .menu-link.active { color: #fff; }
.menu-link:hover::after, .menu-link.active::after { width: 100%; }

/* --- GAMES LAYOUT --- */
.game-band {
    position: relative;
    width: 100%;
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0;
}

.bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.5) blur(2px);
    transform: scale(1.05); 
}

.band-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    padding: 0 40px; 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch; 
}

.game-band:nth-child(even) .band-content { direction: rtl; }
.game-band:nth-child(even) .text-side, 
.game-band:nth-child(even) .visual-side { direction: ltr; }

/* VISUAL SIDE */
.visual-side {
    width: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;
    position: relative;
}

.game-screen {
    display: block;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* TEXT SIDE */
.text-side { 
    color: #fff; 
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-left: 6px solid var(--theme-color); 
}

.game-band:nth-child(even) .text-side {
    border-left: none;
    border-right: 6px solid var(--theme-color);
}

.text-side .inner-logo { max-width: 320px; margin-bottom: 30px; display: block; align-self: flex-start; }
.text-side p { font-size: 1.15rem; margin-bottom: 35px; font-weight: 300; opacity: 0.9; }

/* --- PRESS KIT PAGE --- */
.pk-container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.pk-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 40px; }
.pk-header h2 { font-family: var(--font-serif); font-size: 2.5rem; color: #fff; text-transform: uppercase; margin: 0; }

.pk-grid { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: start; }
.pk-sidebar { padding: 30px; }

.pk-section-title { font-size: 0.9rem; color: var(--col-mint); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 20px; margin-top: 0; }
.pk-fact { margin-bottom: 20px; }
.pk-fact strong { display: block; color: #888; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.pk-fact span, .pk-fact a:not(.social-btn) { color: #fff; font-size: 1rem; display: block; }

.pk-block { margin-bottom: 50px; }
.pk-block h3 { 
    color: var(--col-mint); 
    font-family: var(--font-serif); 
    font-size: 1.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: 10px; 
    margin-top: 0;
    margin-bottom: 25px;
}
.pk-block p { color: #ccc; margin-bottom: 15px; font-size: 1.05rem; }
.pk-block ul { padding-left: 20px; color: #ccc; }
.pk-block li { margin-bottom: 10px; }

/* --- CONTACT FORM --- */
.contact-container { max-width: 600px; margin: 60px auto; padding: 40px; }
.contact-title { font-family: var(--font-serif); text-align: center; color: var(--col-mint); font-size: 2rem; margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; color: #aaa; margin-bottom: 8px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; }
.form-input, .form-textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 12px; border-radius: 4px; font-family: var(--font-main); font-size: 1rem; transition: 0.2s; }
.form-input:focus, .form-textarea:focus { border-color: var(--col-mint); outline: none; background: rgba(0,0,0,0.5); }
.form-textarea { height: 150px; resize: vertical; }

.form-status { margin-top: 15px; text-align: center; font-size: 0.9rem; min-height: 1.5em; }
.form-status.success { color: var(--col-mint); }
.form-status.error { color: var(--col-red); }

/* --- BUTTONS --- */
.btn-row { display: flex; gap: 15px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; border-radius: 4px; transition: all 0.2s; cursor: pointer; text-decoration: none; letter-spacing: 1px; border: 2px solid transparent; }
.btn svg { width: 16px; height: 16px; }

.btn-site { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }
.btn-site:hover { background: transparent; color: #fff; box-shadow: 0 0 15px var(--theme-color); }
.theme-chess .btn-site { color: #000; } 
.theme-chess .btn-site:hover { color: #fff; }

.btn-steam { background: rgba(0,0,0,0.6); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-steam:hover { border-color: #fff; background: #000; }

.btn-press { background: transparent; color: #aaa; border-color: #555; }
.btn-press:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-assets { background: var(--col-red); color: #fff; border-color: var(--col-red); }
.btn-assets:hover { background: transparent; color: #fff; box-shadow: 0 0 15px var(--col-red); }

.btn-submit { width: 100%; background: var(--col-mint); color: #000; border: none; font-size: 1rem; padding: 16px; }
.btn-submit:hover { background: #fff; box-shadow: 0 0 20px var(--col-mint); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- SOCIALS --- */
.social-row { 
    display: flex; 
    gap: 12px; 
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap; 
}#header-socials {
    margin-bottom: 20px;
}
.social-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; color: #ccc; transition: all 0.2s ease; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.social-btn svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.social-btn:hover { background: var(--col-mint); color: #1a1819; border-color: var(--col-mint); transform: translateY(-3px); box-shadow: 0 0 15px rgba(45, 246, 209, 0.4); }

/* --- FOOTER --- */
footer { margin-top: auto; background: #111; padding: 80px 20px; text-align: center; border-top: 1px solid #333; display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: 90px; margin-bottom: 20px; opacity: 0.6; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 1; }
.steam-footer-img { width: 100px; opacity: 0.5; margin: 30px 0 15px; }
.legal-text { color: #444; font-size: 0.75rem; max-width: 600px; margin-top: 10px; }
.footer-social-wrapper { margin-bottom: 10px; } 

/* --- MOBILE --- */
@media (max-width: 900px) {
    header { padding: 30px 5px; } /* Reduced side padding to give icons room */
    .logo-link {margin-bottom: -15px}
    .hero-tagline { 
        /* Scalable font size to ensure it stays on one line without overflow */
        font-size: clamp(0.6rem, 3.2vw, 1rem); 
        margin-bottom: 15px; 
        white-space: nowrap; /* Forced one line */
        line-height: 1.4; 
        margin-left: 8%;
        margin-right: 8%;
        margin-top: 20px;
    } 
    
    .main-menu { gap: 15px; padding: 10px 20px; width: 100%; max-width: 400px; justify-content: center; }
    .menu-link { font-size: 0.75rem; }

    .band-content { display: flex; flex-direction: column; padding: 40px 20px; align-items: center; gap: 20px; }
    .game-band:nth-child(even) .band-content { direction: ltr; }

    .visual-side { width: 100%; height: auto; margin-bottom: 0; }
    .game-screen { width: 100%; height: auto; object-fit: contain; }

    .text-side { 
        width: 100%; 
        border-left: none !important; border-right: none !important;
        border-top: 5px solid var(--theme-color);
        padding: 30px 20px; text-align: center; align-items: center; 
    }
    .text-side .inner-logo { align-self: center; margin: 0 auto 20px; }
    
    .btn-row { justify-content: center; width: 100%; }
    .btn { width: 100%; }
    .game-band { min-height: auto; }

  .pk-grid { grid-template-columns: 1fr; gap: 30px; }
    .pk-sidebar { order: 1; }
    .pk-main { order: 2; }

    /* --- NEW SOCIAL ICON MOBILE RULES --- */
    .social-row {
        flex-wrap: nowrap; /* Force one line */
        gap: 6px; /* Tighten gap to fit all icons */
        margin-bottom: 15px; /* Spacing before menu */
    }

    .social-btn {
        width: 32px; /* Smaller button size */
        height: 32px;
    }

    .social-btn svg {
        width: 16px; /* Smaller icon size */
        height: 16px;
    }
}
/* --- ACCESSIBILITY / SEO --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- ACCESSIBILITY / SEO (Added) --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- VIDEO REPLACEMENT (Added) --- */
.game-video {
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}