/* General Styling */
:root {
    --primary-color: #0d1b2a; /* Dark Blue */
    --secondary-color: #1b263b; /* Slightly lighter dark blue */
    --accent-color: #415a77; /* Medium Blue */
    --text-color: #e0e1dd; /* Light Grey */
    --light-bg: #e0e1dd; /* Light background for some sections */
    --dark-bg: #0d1b2a; /* Dark background */
    --card-bg: #1f3752; /* Slightly lighter than dark for cards */
    --button-hover: #778da9; /* Lighter accent */
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Logo */
header .logo {
    max-height: 140px; /* larger logo by default (mobile-mode off) */
    width: auto;
    display: block; /* Ensure it behaves like a block element */
}

header h1 { /* This rule is now effectively unused, but keeping for reference if h1 were reintroduced */
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: #fff;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 30px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--accent-color);
}

/* Top Bar */
.top-bar {
    background-color: #091524;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    padding: 8px 0;
    text-align: center;
}

.top-bar a {
    color: var(--button-hover);
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
}

.top-bar a:hover {
    color: #a6b8cf;
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8)), url('wolf-tech-innovation-background.png') no-repeat center center/cover;
    height: 70vh; /* Make it taller for impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    z-index: 1; /* Ensure text is above background effects */
}

.hero-section .motto-1 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-section .motto-2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Products Section */
.products-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}

.products-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #fff;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Make product cards more compact */
.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
    text-align: left;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.product-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15em;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Clamp long descriptions by default so only a brief line appears */
.product-card p,
.product-card .desc {
    font-size: 0.95em;
    color: var(--text-color);
    margin: 0 0 8px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* when expanded (via JS) show full text */
.product-card .desc.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

/* Make CTA buttons more compact */
.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.22s ease, transform 0.12s ease;
    text-align: center;
    margin-top: 6px;
    align-self: start;
    font-size: 0.95em;
}

/* reduce size of 'Read more' toggle to be less visually heavy */
.desc-toggle.button.small {
    padding: 6px 8px;
    font-size: 0.85em;
}

/* Adjust coming-soon spacing to match denser layout */
.coming-soon {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #fff;
    margin-top: 36px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.18);
}

/* Responsive tweaks for compact layout at smaller viewports */
@media (max-width: 768px) {
    .products-grid {
        gap: 12px;
    }
    .product-card {
        padding: 12px;
    }
    .product-card h4 { font-size: 1.05em; }
    .product-card p, .product-card .desc { -webkit-line-clamp: 2; font-size: 0.92em; }
    .button { padding: 10px 12px; font-size: 0.95em; }
}

@media (max-width: 480px) {
    .products-grid { gap: 10px; }
    .product-card { padding: 10px; }
    .product-card h4 { font-size: 1em; }
    .product-card p, .product-card .desc { -webkit-line-clamp: 2; font-size: 0.9em; }
    .button { padding: 10px 12px; font-size: 0.95em; width: 100%; }
}

.coming-soon {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: #fff;
    margin-top: 60px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
}

.contact-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.contact-section p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-email, .contact-discord {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--accent-color);
}

.contact-discord a {
    color: var(--accent-color); /* Ensure link color is consistent */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-discord a:hover {
    color: var(--button-hover); /* Lighter accent on hover */
}

/* Games Section */
.games-section {
    background-color: var(--accent-color);
    padding: 80px 0;
    text-align: center;
}

.games-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.games-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-color);
}

.games-button {
    background-color: var(--primary-color);
    font-size: 1.1em;
    padding: 15px 30px;
}

.games-button:hover {
    background-color: var(--secondary-color);
}

/* Team Section */
.team-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}

.team-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #fff;
    font-weight: 600;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.team-member p {
    color: var(--text-color);
    font-size: 1.1em;
}

/* Secret Button */
.secret-button {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 0.8em;
    cursor: pointer;
    margin-top: 20px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.secret-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Visitor counter in footer */
.visitor-counter {
    display: inline-block;
    margin-left: 18px;
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: default;
    pointer-events: none; /* make non-interactive */
    user-select: none;
    transition: background-color 0.18s ease, transform 0.12s ease;
}
.visitor-counter:hover,
.visitor-counter:focus {
    background-color: rgba(255,255,255,0.03);
    transform: translateY(-1px);
}

/* Mini Game */
.mini-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.mini-game.hidden {
    display: none;
}

.game-container {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.game-container h3 {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    margin-bottom: 10px;
}

.game-container p {
    color: var(--text-color);
    margin-bottom: 20px;
}

#game-area {
    width: 100%;
    height: 300px;
    background-color: var(--dark-bg);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

#player {
    width: 40px;
    height: 40px;
    background-color: #00ff00;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.obstacle {
    width: 30px;
    height: 30px;
    background-color: #ff0000;
    position: absolute;
    border-radius: 5px;
}

#score {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.9em;
}

/* Cybrit Section */
.cybrit-section {
    background: linear-gradient(135deg,#0f1724 0%, #071129 40%, #0b2b3a 100%);
    padding: 100px 0;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(4,10,20,0.6);
    transition: transform 0.25s ease, padding 0.25s ease, background 0.3s ease;
}

.cybrit-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    margin-bottom: 10px;
    color: #7be3ff; /* bright cyan headline */
    font-weight: 700;
    text-shadow: 0 6px 30px rgba(0,160,200,0.12);
}

.cybrit-section .lead {
    color: #d7f6ff;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.feature-badges .badge {
    display: inline-block;
    background: linear-gradient(90deg,#00c3ff,#7b61ff);
    color: #02121a;
    padding: 10px 14px;
    margin: 6px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(11,90,140,0.18);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

/* AI Assistant widget styles */
#ai-assistant {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg,#ff8a5b,#ffb86b);
    border-radius: 999px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 2200;
    cursor: pointer;
}
#ai-assistant-icon { font-size: 28px; transform: translateY(1px); }
#ai-chat-modal .ai-chat-content { max-width: 420px; width: 92%; padding: 14px; }
.ai-messages { max-height: 300px; overflow-y: auto; background: rgba(255,255,255,0.02); padding:10px; border-radius:8px; margin-bottom:10px; }
.ai-messages .msg { margin:6px 0; padding:8px 10px; border-radius:8px; font-size:0.95em; line-height:1.3; }
.ai-messages .msg.user { background: rgba(255,255,255,0.04); text-align: right; color:#fff; }
.ai-messages .msg.ai { background: rgba(255,255,255,0.02); color:#d7f6ff; }
.ai-input-row { display:flex; gap:8px; }
#ai-user-input { flex:1; padding:8px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color:var(--text-color); }

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle-wrap { display:block; margin-top:8px; }
    .mobile-toggle-wrap .button.small { padding:6px 10px; font-size:0.85em; }
    header .container {
        flex-direction: column;
        text-align: center;
    }

    /* Add a margin to the logo when stacked */
    header .logo {
        margin-bottom: 20px;
    }

    header nav ul {
        margin-top: 0; /* Adjusted from 20px, as logo now has its own margin */
    }

    header nav ul li {
        margin: 0 15px;
    }

    .hero-section {
        height: 60vh;
    }

    .hero-section .motto-2 {
        font-size: 2.5em;
    }

    .products-section h3,
    .contact-section h3 {
        font-size: 2em;
    }

    .products-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }

    .product-card {
        padding: 25px;
    }

    .product-card h4 {
        font-size: 1.5em;
    }

    .product-card p {
        font-size: 1em;
    }

    .button {
        padding: 10px 20px;
    }

    .coming-soon {
        font-size: 1.5em;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        padding: 25px;
    }
    
    .games-section h3,
    .team-section h3 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    /* No need for header h1 style as it's replaced by logo */

    header nav ul li {
        margin: 0 10px;
    }

    .hero-section .motto-1 {
        font-size: 1.2em;
    }

    .hero-section .motto-2 {
        font-size: 2em;
    }

    .products-section,
    .contact-section {
        padding: 60px 0;
    }

    .products-section h3,
    .contact-section h3 {
        font-size: 1.8em;
    }

    .product-card {
        padding: 20px;
    }

    .product-card h4 {
        font-size: 1.3em;
    }

    .button {
        width: 100%; /* Full width buttons on very small screens */
    }

    .coming-soon {
        font-size: 1.3em;
    }

    .games-section,
    .team-section {
        padding: 60px 0;
    }
    
    .games-section h3,
    .team-section h3 {
        font-size: 1.8em;
    }
    
    .team-member {
        padding: 20px;
    }
    
    .team-member h4 {
        font-size: 1.3em;
    }
}

body.mobile-compact { font-size: 85%; }
body.mobile-compact header .logo { max-height: 42px; }
body.mobile-compact .product-card { padding:12px; border-radius:8px; }
body.mobile-compact .product-card h4 { font-size:1.1em; margin-bottom:8px; }
body.mobile-compact .product-card .desc { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
body.mobile-compact .product-card .desc.expanded { display:block; -webkit-line-clamp:unset; }
body.mobile-compact .desc-toggle { display:inline-block; }
body.mobile-compact .button { padding:8px 12px; font-size:0.9em; }

body.mobile-compact .cybrit-section {
    padding: 40px 0;
    transform: scale(0.92);
    box-shadow: none;
    border-radius: 6px;
    background: linear-gradient(180deg,#071129 0%, #071129 100%);
}
body.mobile-compact .cybrit-section h3 { font-size: 1.4em; color: #a8dff0; text-shadow: none; }
body.mobile-compact .cybrit-section .lead { font-size: 0.95em; color: #cfeefc; }
body.mobile-compact .feature-badges .badge {
    padding: 6px 8px;
    font-size: 0.85em;
    box-shadow: none;
    opacity: 0.95;
}

.careers-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}
.careers-section .lead, .careers-section .hint { color: var(--text-color); margin-top:10px; }

.modal {
    position: fixed;
    inset: 0;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
}
.modal.hidden { display:none; }
.modal-content {
    background: var(--primary-color);
    padding: 22px;
    border-radius: 10px;
    width: 92%;
    max-width: 560px;
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.modal-close { background:transparent; border:none; color:var(--text-color); font-size:1.6em; float:right; cursor:pointer; }
.modal-content h3 { font-size:1.6em; margin-bottom:8px; color:#7be3ff; }
.modal-content label { display:block; margin:10px 0; font-size:0.95em; }
.modal-content input, .modal-content textarea {
    width:100%; padding:8px 10px; margin-top:6px; border-radius:6px; border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color:var(--text-color);
}
.form-actions { margin-top:12px; text-align:right; }

/* Mobile toolbar (appears only in mobile-compact) */
.mobile-bottom-toolbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: none;
    gap: 8px;
    z-index: 1500;
}

body.mobile-compact .mobile-bottom-toolbar { display:flex; justify-content:space-between; align-items:center; }
.mobile-bottom-toolbar .button { flex: 1; margin: 0 4px; padding: 12px 10px; border-radius: 12px; }

body.mobile-compact .button {
    padding: 14px 18px;
    font-size: 1.05em;
    border-radius: 10px;
    width: 100%;
    display: block;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

body.mobile-compact header nav ul li {
    display: block;
    margin: 10px 0;
}

body.mobile-compact header nav ul li a {
    font-size: 1.05em;
    padding: 10px 6px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

body.mobile-compact .product-card {
    padding: 18px;
}

body.mobile-compact .product-toolbar { gap: 8px; padding: 8px 6px; }

body.mobile-compact .filter-btn { padding: 12px 14px; font-size: 1em; border-radius:10px; }
/* hide developer-protected UI until unlocked */
.dev-protected { display: none !important; }
/* ensure the basic dev entry (password + unlock) remains visible */
.dev-login { display:block; }

/* START: Mobile Compact Enhancements (Refined for UX and to prevent cut-offs) */

body.mobile-compact { 
    font-size: 100%; /* Base size for relative units */
    padding-bottom: 75px; /* Adjust space for the fixed bottom toolbar */
}

body.mobile-compact .top-bar {
    padding: 6px 15px;
    text-align: left;
}
body.mobile-compact .top-bar span { display: none; } /* Hide prefix in compact mode to save space */

body.mobile-compact header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    padding: 0;
}

body.mobile-compact header .container {
    flex-direction: row; 
    justify-content: space-between;
    padding: 8px 15px; 
}

body.mobile-compact header .logo { max-height: 40px; margin-bottom: 0; }

body.mobile-compact #desktop-nav {
    display: none !important; 
}

/* Hide mobile toggle button when mobile compact is active */
body.mobile-compact .mobile-toggle-wrap { display: none !important; }

/* Display hamburger menu button only when mobile compact is active */
body:not(.mobile-compact) #mobile-menu-btn {
    display: none !important;
}
body.mobile-compact #mobile-menu-btn {
    display: block !important;
    padding: 10px 14px;
    font-size: 1.4em;
    border-radius: 8px;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
}

/* General section padding reduction for better flow */
body.mobile-compact main section {
    padding: 40px 0; /* Standardized vertical padding */
}
body.mobile-compact .container {
    padding: 0 15px; /* Standardized horizontal padding */
}

/* Hero Section */
body.mobile-compact .hero-section { height: 35vh; }
body.mobile-compact .hero-section .motto-1 { font-size: 1em; }
body.mobile-compact .hero-section .motto-2 { font-size: 1.8em; }

/* Product Section */
body.mobile-compact .products-section h3 {
    font-size: 2em;
    margin-bottom: 25px;
}
body.mobile-compact .product-toolbar { 
    gap: 6px; 
    padding: 0 0 15px 0; 
    overflow-x: scroll; /* Allow horizontal scrolling */
    white-space: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    margin: 0;
}
body.mobile-compact .product-toolbar .filter-btn {
    flex-shrink: 0; 
    padding: 8px 12px; 
    font-size: 0.9em;
    height: 40px; 
}

body.mobile-compact .products-grid {
    gap: 15px; 
}

body.mobile-compact .product-card { 
    padding: 15px; 
    border-radius: 10px; 
    display: flex;
    flex-direction: column;
}
body.mobile-compact .product-card h4 { font-size: 1.2em; margin-bottom: 6px; }

body.mobile-compact .product-card .desc { 
    display:-webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient:vertical; 
    overflow:hidden; 
    font-size: 0.9em; 
    margin-bottom: 10px;
}
body.mobile-compact .product-card .desc.expanded { display:block; -webkit-line-clamp:unset; }

body.mobile-compact .desc-toggle { 
    display: inline-block; 
    font-size: 0.8em; 
    padding: 5px 8px; 
    margin-bottom: 10px; 
}
body.mobile-compact .product-card a.button { 
    padding: 10px 12px; 
    font-size: 0.95em; 
    width: 100%;
}

body.mobile-compact .products-section .halloween-message {
    font-size: 1.5em;
    margin-top: 15px;
}

/* Cybrit Section */
body.mobile-compact .cybrit-section {
    padding: 30px 0;
    transform: none; /* Removed previous transform: scale(1) that might conflict */
    box-shadow: none;
    border-radius: 0;
    background: var(--dark-bg);
}
body.mobile-compact .cybrit-section .container { padding: 0 15px; }
body.mobile-compact .cybrit-section h3 { font-size: 1.6em; }
body.mobile-compact .cybrit-section .lead { font-size: 0.95em; }
body.mobile-compact .cybrit-cta { display: flex; flex-direction: column; align-items: center; }
body.mobile-compact .cybrit-cta a.button { width: 95%; margin: 8px auto; }
body.mobile-compact .cybrit-cta p { text-align: left !important; font-size: 0.9em; padding: 0 10px; }
body.mobile-compact .feature-badges { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 15px; }
body.mobile-compact .feature-badges .badge { margin: 4px; padding: 7px 10px; font-size: 0.85em; }

/* Games, Team, Contact Sections */
body.mobile-compact .games-section { padding: 40px 0; }
body.mobile-compact .team-section { padding: 40px 0; }
body.mobile-compact .contact-section { padding: 40px 0; }

body.mobile-compact .games-button {
    padding: 12px 20px;
    font-size: 1em;
}

/* Careers section (Support, Careers & Feature Requests) */
body.mobile-compact .careers-section {
    padding: 40px 0;
}
body.mobile-compact .contact-details {
    padding: 15px !important;
}
body.mobile-compact .contact-details p {
    font-size: 0.9em;
    line-height: 1.5;
}
body.mobile-compact .contact-details h4 {
    font-size: 1.05em !important;
    margin-top: 10px !important;
    margin-bottom: 5px;
}
body.mobile-compact .contact-details p:last-child {
    margin-bottom: 0;
}


/* Footer & Dev Login */
body.mobile-compact footer {
    padding: 20px 15px 75px 15px; /* Use body padding-bottom 75px, footer padding top 20, bottom 75 */
    text-align: left;
}
body.mobile-compact footer .container {
    padding: 0; 
}
body.mobile-compact footer p {
    font-size: 0.9em;
    margin-bottom: 10px;
}
body.mobile-compact .dev-login {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: var(--card-bg); /* Add background for visibility */
    padding: 15px;
    border-radius: 8px;
}
body.mobile-compact .dev-login label {
    flex-basis: 100%;
    font-size: 1em;
}
body.mobile-compact .dev-login input {
    flex-grow: 1;
    min-width: 150px;
    margin-top: 0;
    padding: 10px;
}
body.mobile-compact .dev-login button {
    flex-basis: auto;
    width: auto;
    padding: 10px 15px;
}
body.mobile-compact .visitor-counter {
    margin-left: 0;
    margin-top: 15px;
    padding: 8px 12px;
}
body.mobile-compact .secret-button {
    margin-top: 15px;
    width: auto;
    padding: 8px 12px;
}

/* Mobile bottom toolbar */
.mobile-bottom-toolbar {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 0; 
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
}

body.mobile-compact .mobile-bottom-toolbar { 
    display:flex; 
    justify-content:space-around; 
    align-items:center; 
    padding: 10px 10px; 
}
.mobile-bottom-toolbar .button { 
    flex: 1; 
    margin: 0 4px; 
    padding: 10px 6px; 
    font-size: 0.85em; 
    box-shadow: none;
    border: none;
    background-color: var(--secondary-color); 
    color: var(--text-color);
}
.mobile-bottom-toolbar .button:hover {
    background-color: var(--accent-color);
}

/* Ensure general buttons are correctly sized for tap targets */
body.mobile-compact .button {
    padding: 12px 18px;
    font-size: 1em;
    border-radius: 8px;
    width: auto; 
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


/* Modal adjustments (Mobile Menu) */
#mobile-menu-modal .modal-content {
    padding: 50px 20px 20px;
}
#mobile-menu-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
}
#mobile-menu-links li a {
    padding: 12px 0;
}
/* END: Mobile Compact Enhancements (Refined for UX and to prevent cut-offs) */

/* SITE NOTICE STYLES */
.site-notice {
    background: linear-gradient(90deg, rgba(255,184,98,0.12), rgba(255,138,91,0.08));
    border: 1px solid rgba(255,184,98,0.12);
    color: #fff;
    padding: 12px 0;
    position: relative;
    z-index: 2100;
}
.site-notice .site-notice-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.site-notice .site-notice-text {
    flex: 1 1 60%;
    min-width: 240px;
}
.site-notice .site-notice-text strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05em;
    color: #ffd18a;
    margin-bottom: 6px;
}
.site-notice .site-notice-text p {
    margin: 0;
    color: #d7f6ff;
    font-size: 0.95em;
    line-height: 1.35;
}
.site-notice .site-notice-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}
.site-notice .site-notice-actions .button {
    padding: 8px 12px;
    font-size: 0.95em;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .site-notice .site-notice-inner { padding: 8px 0; }
    .site-notice .site-notice-text { flex-basis: 100%; }
    .site-notice .site-notice-actions { width: 100%; justify-content: flex-end; margin-top: 8px; }
}

/* NEW: Styles for Beta & In Development section and beta badge */
.beta-section {
    margin-top: 30px;
    text-align: left;
    background: linear-gradient(90deg, rgba(11,20,30,0.25), rgba(16,26,38,0.3));
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}
.beta-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    color: #ffd18a;
    margin: 0 0 12px 0;
    font-weight: 700;
}
.beta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

/* highlight style for featured/beta product */
.product-card.highlight {
    border: 1px solid rgba(255,215,130,0.08);
    box-shadow: 0 12px 30px rgba(255,168,60,0.06), 0 6px 12px rgba(0,0,0,0.45);
    background: linear-gradient(180deg, rgba(32,44,60,0.95), var(--card-bg));
    position: relative;
    overflow: visible;
}

/* beta badge / logo */
.beta-badge {
    display: inline-block;
    background: linear-gradient(90deg,#ffb86b,#ff7a59);
    color: #081018;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82em;
    margin-right: 10px;
    box-shadow: 0 6px 18px rgba(255,120,40,0.12);
}

/* header inside beta item to align badge and title */
.beta-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.beta-item .product-card h4,
.beta-item h4 { /* ensure title sizing inside beta item */
    font-size: 1.15em;
    margin: 0;
}

/* Slightly different CTA color for beta to emphasize new product */
.beta-item .button {
    background: linear-gradient(90deg,#ff8a5b,#ffb86b);
    color: #081018;
}
.beta-item .button:hover {
    filter: brightness(0.95);
}

/* Responsive adjustments for beta section in mobile-compact */
body.mobile-compact .beta-section {
    padding: 14px;
    margin-top: 18px;
}
body.mobile-compact .beta-grid {
    grid-template-columns: 1fr;
}

/* NEW: styles for discontinued products */
.product-card.discontinued {
    opacity: 0.78;
    border: 1px solid rgba(255,255,255,0.03);
    background: linear-gradient(180deg, rgba(40,40,40,0.95), rgba(31,49,82,0.95));
    box-shadow: none;
    position: relative;
}

.discontinued-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.discontinued-badge {
    display: inline-block;
    background: linear-gradient(90deg,#b8b8b8,#7a7a7a);
    color: #081018;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82em;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* Make the CTA for discontinued items more muted but still clickable */
.product-card.discontinued .button {
    background: linear-gradient(90deg,#6b6b6b,#8f8f8f);
    color: #07121a;
}
.product-card.discontinued .button:hover {
    filter: brightness(1.03);
}

/* Ensure small desc clamp still works */
.product-card.discontinued .desc {
    color: #e6e6e6;
    -webkit-line-clamp: 2;
}

/* Announcements Section */
.announcements-section {
    background: linear-gradient(180deg, rgba(7,18,30,0.6), rgba(11,20,30,0.6));
    padding: 60px 0;
    text-align: center;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid rgba(255,255,255,0.03);
}
.announcements-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    color: #ffd18a;
    margin-bottom: 18px;
    font-weight: 700;
}
.announcements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    align-items: start;
}
.announcement-card {
    background: linear-gradient(180deg, rgba(31,49,82,0.95), rgba(24,36,58,0.95));
    padding: 18px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.announcement-card.highlight {
    border: 1px solid rgba(255,209,138,0.08);
    background: linear-gradient(180deg, rgba(32,44,60,0.96), rgba(31,49,82,0.98));
}
.announcement-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
}
.announcement-header h4 {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 1.05em;
    margin:0;
    font-weight:700;
}
.announcement-header time {
    color: #cfeefc;
    font-size: 0.9em;
    font-weight:700;
}
.announcement-body {
    color: #d7f6ff;
    font-size: 0.95em;
    margin-bottom:10px;
    line-height:1.4;
}
.announcement-footnote {
    color: #a6cfe0;
    font-size: 0.85em;
    font-weight:600;
}

/* Responsive tweaks for announcements */
@media (max-width: 768px) {
    .announcements-section { padding: 40px 0; }
    .announcements-list { grid-template-columns: 1fr; }
    .announcement-header { flex-direction: column; align-items:flex-start; gap:6px; }
}