/* CSS RESET & BASE STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Karla', sans-serif;
    background-color: #111111;
    color: #ffffff;
    /* Memphis dots background pattern */
    background-image: radial-gradient(#222222 10%, transparent 11%), radial-gradient(#222222 10%, transparent 11%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* MEDIA & OBJECT FIXES */
img, canvas, iframe, video {
    max-width: 100%;
    display: block;
}

canvas {
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #cccccc;
}

a {
    color: #ffffff;
    transition: all 0.3s ease;
}

/* LISTS */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* LAYOUT SYSTEM */
.ciqz85-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER STYLING (CRITICAL COMPLIANCE) */
.ciqz85-header-l-r-r {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-bottom: 4px solid #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.ciqz85-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ciqz85-desktop-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.ciqz85-desktop-nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.ciqz85-desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #7f8c8d;
    transition: width 0.3s ease;
}

.ciqz85-desktop-nav a:hover::after {
    width: 100%;
}

.ciqz85-desktop-nav a:hover {
    color: #7f8c8d;
}

.ciqz85-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ciqz85-age-flag {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #444;
    font-weight: bold;
}

.ciqz85-hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* MOBILE MENU STYLING */
.ciqz85-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 300px;
    background: #111111;
    z-index: 2000;
    padding: 80px 20px 20px;
    border-left: 4px solid #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.ciqz85-mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ciqz85-mobile-menu a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    padding: 10px;
    border-bottom: 1px solid #333;
    text-transform: uppercase;
}

.ciqz85-close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
}

/* HERO SECTION (MEMPHIS DESIGN) */
.ciqz85-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.ciqz85-hero-text {
    flex: 1;
    min-width: 300px;
    z-index: 2;
}

.ciqz85-hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 4px 4px 0px #7f8c8d;
    margin-bottom: 20px;
}

.ciqz85-hero-text p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.ciqz85-hero-image {
    flex: 1;
    max-width: 600px;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ciqz85-hero-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 0;
    /* Memphis style hard shadows and borders */
    border: 4px solid #ffffff;
    box-shadow: 20px 20px 0px #7f8c8d;
    background: #111;
}

/* BUTTONS */
.ciqz85-btn {
    background: #ffffff;
    color: #111111;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid #ffffff;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-shadow: 6px 6px 0px #7f8c8d;
    letter-spacing: 1px;
}

.ciqz85-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #7f8c8d;
    background: #f0f0f0;
}

.ciqz85-btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px #7f8c8d;
}

/* GAME GRID */
.ciqz85-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
    gap: 40px;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* GAME CARD (MEMPHIS STYLE) */
.ciqz85-game-card {
    background: #1a1a1a;
    padding: 20px;
    border: 3px solid #333333;
    transition: all 0.3s ease;
    box-shadow: 12px 12px 0px #333333;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ciqz85-game-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 16px 16px 0px #7f8c8d;
    border-color: #ffffff;
}

.ciqz85-game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid #333333;
    background: #000;
}

.ciqz85-game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.ciqz85-game-card p {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #aaaaaa;
}

.ciqz85-game-card .ciqz85-btn {
    margin-top: 20px;
    width: 100%;
}

/* INTERNAL GAME INTERFACE */
.ciqz85-game-interface {
    max-width: 800px;
    margin: 40px auto;
    background: #1a1a1a;
    padding: 30px;
    border: 4px solid #ffffff;
    box-shadow: 15px 15px 0px #7f8c8d;
    text-align: center;
}

.ciqz85-game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #111111;
    border: 2px solid #333;
    font-size: 1.2rem;
    font-weight: bold;
}

.ciqz85-canvas-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border: 4px solid #333;
    background: #0a0a0a;
}

#game-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
    cursor: default;
}

/* TOAST NOTIFICATIONS */
.ciqz85-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    color: #111111;
    padding: 15px 25px;
    border: 3px solid #111111;
    box-shadow: 8px 8px 0px #7f8c8d;
    font-weight: bold;
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ciqz85-toast.show {
    transform: translateY(0);
}

/* CONTENT SECTIONS (Standard Text Pages) */
.ciqz85-content-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: #1a1a1a;
    border: 3px solid #333;
    box-shadow: 15px 15px 0px #111;
}

.ciqz85-content-section h1 { margin-bottom: 30px; font-size: 2.5rem; text-shadow: 2px 2px 0px #7f8c8d; }
.ciqz85-content-section h2 { margin-top: 40px; margin-bottom: 15px; border-bottom: 2px solid #333; padding-bottom: 10px; }
.ciqz85-content-section p { margin-bottom: 20px; }
.ciqz85-content-section ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; }
.ciqz85-content-section li { margin-bottom: 10px; color: #ccc; }

/* FOOTER (CRITICAL COMPLIANCE) */
.ciqz85-footer-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 40px;
    background-color: #0a0a0a;
    border-top: 4px solid #ffffff;
    margin-top: auto;
}

.ciqz85-footer-centered ul {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ciqz85-footer-centered a {
    color: #7f8c8d;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.ciqz85-footer-centered a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .ciqz85-desktop-nav { display: none; }
    .ciqz85-hamburger { display: block; }
    
    .ciqz85-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .ciqz85-hero-text h1 {
        text-shadow: 2px 2px 0px #7f8c8d;
    }
    
    .ciqz85-hero-image img {
        box-shadow: 10px 10px 0px #7f8c8d;
    }

    .ciqz85-game-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .ciqz85-content-section {
        margin: 20px;
        padding: 20px;
    }
}