@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://rohitpatil.com/fonts/inter-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('https://rohitpatil.com/fonts/inter-v20-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://rohitpatil.com/fonts/orbitron-v35-latin-regular.woff2') format('woff2'); }

:root { 
    --menu-width: 200px; 
    --accent-color: #00C9FF; 
    --bg-main: #1a202c; 
    --bg-container: #1f2937; 
    --border-color: #4a5568; 
    --text-color: #e2e8f0; 
    --text-muted: #a0aec0; 
}

html { 
    height: 100%; 
    width: 100%; 
    overflow-x: hidden; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-main); 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><rect width="10" height="10" fill="%231a202c"/><path d="M0 0L10 10M10 0L0 10" stroke="%232d3748" stroke-width="0.2"/></svg>'); 
    min-height: 100vh; 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    color: var(--text-color); 
    display: flex; 
    flex-direction: row;
}

.left-menu { width: var(--menu-width); min-width: var(--menu-width); height: 100vh; position: fixed; top: 0; left: 0; background: rgba(10, 10, 10, 0.9); box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3); padding: 0 20px; box-sizing: border-box; z-index: 1001; font-weight: 600; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.left-menu ul { list-style: none; padding: 0; margin: 0; }
.left-menu li { margin-bottom: 20px; }
.left-menu a { font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: 400; color: #00C9FF; text-decoration: none; text-shadow: 0 0 2px #00C9FF, 0 0 3px rgba(0, 201, 255, 0.6); display: block; padding: 8px 0; transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease; }
.left-menu a:hover, .left-menu a:focus  { color: #fff; text-shadow: 0 0 6px #fff, 0 0 8px rgba(255, 255, 255, 0.5); outline: none; }
.left-menu a.active-page-link { color: #fff; text-shadow: 0 0 8px #fff, 0 0 12px rgba(255, 255, 255, 0.7); background-color: rgba(0, 190, 255, 0.1); border-radius: 5px; padding-left: 10px; padding-right: 10px; }
.mobile-header, .menu-overlay { display: none; }

.main-content-wrapper { flex-grow: 1; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 100vh; box-sizing: border-box; width: calc(100% - var(--menu-width)); margin-left: var(--menu-width); }
.page-content { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; max-width: 1100px; }

#game-container {
    background-color: var(--bg-container);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0,201,255,0.2);
    width: 100%;
    box-sizing: border-box;
    position: relative; 
    color: var(--text-color);
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
    margin: 0 0 20px 0;
    text-align: center;
}

#game-board-and-controls {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

#board {
    margin: 0; 
    float: none;
    flex-shrink: 0;
}

#moneybarwrap {
    position: relative;
    top: auto;
    right: auto;
    width: 150px;
    flex-shrink: 0;
}

/* Ensure original styles from styles.css are not broken */
#setup, #control, #trade, #refresh, #noscript {
    display: none; /* Let the game's JS control visibility */
    color: var(--text-color);
    background-color: var(--bg-container);
}

#setup {
    text-align: center;
}

#control {
    background-color: var(--bg-container);
}

#setup input[type="text"], #setup select,
#trade input[type="text"] {
    background-color: var(--bg-main);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
}

#setup input[type="button"],
#control input[type="button"],
#trade input[type="button"],
#viewstats {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--accent-color);
    color: var(--bg-main);
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

#setup input[type="button"]:hover,
#control input[type="button"]:hover,
#trade input[type="button"]:hover,
#viewstats:hover {
    filter: brightness(1.2);
}

.player-input {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


/* --- RESPONSIVE & MOBILE STYLES --- */
@media (max-width: 992px) {
    body { flex-direction: column; padding: 0; }
    .main-content-wrapper { padding: 80px 15px 40px; width: 100%; box-sizing: border-box; justify-content: flex-start; margin-left: 0; }
    .mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 60px; background-color: var(--bg-main); border-bottom: 1px solid var(--border-color); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box; }
    .hamburger-btn { background: none; border: none; padding: 10px; cursor: pointer; z-index: 1002; } 
    .hamburger-btn .line { display: block; width: 24px; height: 3px; background-color: var(--text-color); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
    .mobile-title { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: var(--accent-color); }
    .left-menu { transform: translateX(-100%); transition: transform 0.3s ease-in-out; height: 100vh; width: 250px; min-width: 250px; } 
    .left-menu.menu-open { transform: translateX(0); }
    .menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; } 
    .menu-overlay.menu-open { opacity: 1; pointer-events: auto; }
    .game-title { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    #game-container {
        padding: 1rem;
    }
    .main-content-wrapper {
        padding: 70px 10px 20px;
    }
}

#popup,
#stats,
#moneybar,
#alert,
#landed,
#owned,
#trade,
#buildings,
#quickstats {
    color: #000000;
}