* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* Landing Page Styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3em;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    color: #b0b0b0;
}

.welcome-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.welcome-box h2 {
    color: #ffd700;
    margin-bottom: 20px;
}

.welcome-box p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: #ffd700;
    color: #1e3c72;
    font-weight: bold;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.feature h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.5em;
}

/* Auth Pages */
.auth-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 40px;
    max-width: 400px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.auth-box h2 {
    color: #ffd700;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #555;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 0.85em;
}

.error {
    color: #ff6b6b;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 5px;
    border: 1px solid #ff6b6b;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #b0b0b0;
}

.auth-link a {
    color: #ffd700;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Game Interface */
.game-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffd700;
}

.game-header h1 {
    font-size: 1.5em;
    color: #ffd700;
    margin: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    color: #b0b0b0;
    font-size: 0.9em;
}

#score {
    color: #ffd700;
    font-weight: bold;
}

.game-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
    overflow: hidden;
}

.game-main {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.4);
}

.game-image {
    height: 200px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #ffd700;
}

.placeholder-image {
    font-size: 5em;
    opacity: 0.3;
}

.game-output {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 1em;
    line-height: 1.6;
}

.game-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
}

.game-message.command {
    color: #ffd700;
    font-weight: bold;
}

.game-message.response {
    color: #e0e0e0;
    white-space: pre-wrap;
}

.game-input-area {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid #ffd700;
}

#command-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #555;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1em;
}

#command-input:focus {
    outline: none;
    border-color: #ffd700;
}

.game-sidebar {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    overflow-y: auto;
    border-left: 2px solid #ffd700;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.sidebar-section > div {
    color: #e0e0e0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.inv-item {
    padding: 5px 0;
    color: #b0b0b0;
}

.quick-commands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    background: transparent;
}

.btn-quick {
    padding: 8px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    transition: all 0.2s;
}

.btn-quick:hover {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
    
    .game-sidebar {
        display: none;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2em;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}