/* 
    CSS SYSTEM: Sodalite Stone Theme
    Colors: BG:#001a2e, Pri:#1e90ff, Acc:#ffffff
    Font: 'Georgia', serif
*/

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

body {
    background-color: #001a2e;
    color: #ffffff;
    font-family: 'Georgia', serif, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* --- Layout Components --- */

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

/* --- Header Styling --- */

.ctblmy-header-c-l-r {
    background: rgba(0, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ctblmy-desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.ctblmy-desktop-nav a {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ctblmy-desktop-nav a:hover {
    color: #1e90ff;
}

.ctblmy-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: #ffffff;
}

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

.ctblmy-age-flag {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.ctblmy-hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
}

/* Mobile Menu Overlay */
.ctblmy-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #001a2e;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ctblmy-mobile-menu ul {
    list-style: none;
    text-align: center;
}

.ctblmy-mobile-menu li {
    margin: 20px 0;
}

.ctblmy-mobile-menu a {
    font-size: 1.5rem;
    font-weight: bold;
}

.ctblmy-close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid #ffffff;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
}

/* --- Hero Section --- */

.ctblmy-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
}

.ctblmy-hero-text {
    flex: 1;
    min-width: 300px;
}

.ctblmy-hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.ctblmy-hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.ctblmy-hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.ctblmy-hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(30, 144, 255, 0.3);
}

/* --- Buttons --- */

.ctblmy-btn {
    display: inline-block;
    background: #1e90ff;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.ctblmy-btn:hover {
    background: #ffffff;
    color: #001a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

/* --- Game Grid --- */

.ctblmy-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.ctblmy-game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.ctblmy-game-card:hover {
    transform: translateY(-10px);
    border-color: #1e90ff;
    background: rgba(30, 144, 255, 0.05);
}

.ctblmy-game-img-wrapper {
    width: 100%;
    height: 200px;
    background: #002a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ctblmy-game-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ctblmy-game-content {
    padding: 20px;
}

.ctblmy-game-content h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.ctblmy-game-content p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 20px;
}

/* --- Game Interface --- */

.ctblmy-game-area {
    background: #001220;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid #1e90ff;
    box-shadow: 0 0 50px rgba(30, 144, 255, 0.2);
    margin: 40px auto;
}

#game-canvas {
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.ctblmy-game-controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.ctblmy-stats-bar {
    background: rgba(255,255,255,0.05);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ctblmy-stat-item span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.ctblmy-stat-value {
    font-weight: bold;
    font-size: 1.2rem;
    color: #1e90ff;
}

/* --- Footer --- */

.ctblmy-footer-classic {
    background: #000d18;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 80px;
}

.ctblmy-footer-classic ul {
    list-style: none;
}

.ctblmy-footer-classic li {
    margin-bottom: 10px;
}

.ctblmy-footer-classic a:hover {
    color: #1e90ff;
    text-decoration: underline;
}

/* --- Utility --- */

.ctblmy-section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ctblmy-desktop-nav {
        display: none;
    }
    .ctblmy-hamburger {
        display: block;
    }
    .ctblmy-hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Modal Popup Styles */
.ctblmy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.ctblmy-modal-content {
    background: #001a2e;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid #1e90ff;
}

.ctblmy-modal-content h2 {
    margin-bottom: 20px;
}

.ctblmy-modal-content p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.ctblmy-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e90ff;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 3000;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}