:root {
    --console-bg: #1a1a1a;
    --console-border: #444;
    --accent-color: #d1b427;
    /* RS Gold-ish */
    --text-color: #ddd;
    --btn-bg: #333;
    --btn-hover: #555;
    --danger: #cf3030;
    --success: #30cf55;
}

body {
    background-color: #000;
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    /* Retro console feel */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

#game-container {
    width: 100%;
    max-width: 900px;
    height: 100vh;
    max-height: 800px;
    background-color: var(--console-bg);
    border: 3px solid var(--console-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 5px;
}

@media (max-width: 768px) {
    #game-container {
        height: 100vh;
        max-height: 100vh;
        border: none;
        border-radius: 0;
    }
}

/* Landing Page */
#landing-page {
    text-align: center;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

h1.game-title {
    font-size: 3em;
    color: var(--accent-color);
    text-shadow: 2px 2px #000;
    margin-bottom: 40px;
}

.auth-forms {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.auth-box {
    background: #2a2a2a;
    padding: 20px;
    border: 1px solid #555;
    border-radius: 5px;
    width: 300px;
}

input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    background: #111;
    border: 1px solid #444;
    color: #fff;
    font-family: inherit;
}

button {
    background: var(--btn-bg);
    color: var(--accent-color);
    border: 1px solid var(--console-border);
    padding: 10px 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: 0.2s;
}

button:hover {
    background: var(--btn-hover);
}

/* Game Interface */
#game-console {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#main-display {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 2px solid var(--console-border);
    position: relative;
}

#nav-bar {
    height: 60px;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    background: #222;
    border: 1px solid #444;
    padding: 5px 15px;
    color: #aaa;
    font-size: 0.9em;
}

.nav-btn.active {
    background: #444;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Procedural Assets (CSS Only) */
.item-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    border-radius: 4px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Wood logs - procedural generation classes */
.icon-log {
    background: linear-gradient(45deg, #5D4037 25%, #795548 25%, #795548 50%, #5D4037 50%, #5D4037 75%, #795548 75%, #795548);
    background-size: 10px 10px;
}

.icon-ore {
    background: radial-gradient(circle at 30% 30%, #CFD8DC, #607D8B);
    border-radius: 50%;
}

.icon-fish {
    clip-path: polygon(0% 50%, 30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%);
    background: #29B6F6;
}

/* Alerts */
.alert {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    text-align: left;
}

.alert-error {
    background: #5a1a1a;
    border: 1px solid #f00;
    color: #ffcccc;
}

.alert-success {
    background: #1a5a1a;
    border: 1px solid #0f0;
    color: #ccffcc;
}

/* Top Bar System Styles - Unified */
#top-bar {
    background: #111;
    border-bottom: 2px solid var(--console-border);
    padding: 0;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {

    #top-bar,
    #nav-bar {
        height: auto;
        padding: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn {
        padding: 5px 10px;
        font-size: 0.8em;
        margin: 2px;
    }

    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        display: block;
    }

    #game-container {
        width: 100%;
        height: 100vh;
        max-height: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
}