body {
    margin: 0;
    background: #000;
    color: #e0e0e0;
    font-family: 'Consolas', monospace;
    overflow: hidden;
}

.initialization-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Consolas', monospace;
    padding: 20px;
}

.initialization-overlay .message {
    color: #00ff00;
    margin: 5px 0;
    font-size: 1.2em;
}

.initialization-overlay.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
}

.header {
    background: #111;
    padding: 10px;
    border-bottom: 2px solid #222;
}

.title-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.title {
    font-family: 'Consolas', monospace;
    color: white;
    font-size: 24px;
}

.title::before {
    content: "C:\\Users\\";
    color: #666;
}

.title::after {
    content: ">";
    color: #0088ff;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: #8eed9b;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    text-decoration: none;  /* Removes underline */
}

.nav-link:hover {
    opacity: 0.8;
}

.emoji-link span {
    font-size: 24px;
    line-height: 1;
}

.stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #222;
    flex-wrap: wrap;
    gap: 10px;
}

.main-content {
    display: flex;
    flex: 1;
    min-height: 0;
}

.left-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

#canvas-container {
    flex: 1;
    min-height: 0;
    position: relative;
}

.trade-terminal {
    height: 250px;
    background: #1a1a1a;
    color: #00ff00;
    font-family: 'Consolas', monospace;
    padding: 10px;
    overflow-y: auto;
    border-top: 1px solid #333;
    flex-shrink: 0;
}

.transaction {
    padding: 10px;
    font-size: 16px;
    border-bottom: 1px solid #222;
    font-family: 'Consolas', monospace;
}

.transaction .prompt {
    color: #0088ff;
    margin-right: 8px;
}

.buy { color: #4CAF50; }
.sell { color: #f44336; }

.initialization-message {
    color: #00ff00;
    padding: 4px 8px;
}

.system-message {
    color: #0088ff;
}

.leaderboard {
    width: 300px;
    background: #111;
    padding: 15px;
    border-left: 2px solid #222;
    overflow-y: auto;
    flex-shrink: 0;
}

.leaderboard-title {
    color: #FFD700;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 5px;
}

.leaderboard-subtitle {
    color: #93faa1;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

.holder-row {
    display: grid;
    grid-template-columns: 30px 1fr auto auto;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #222;
    font-size: 0.9em;
    color: #93faa1;
}

.size-indicator {
    color: #FFD700;
    font-size: 0.9em;
    text-align: right;
}

::-webkit-scrollbar {
    width: 8px;
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        position: relative;
        height: 100%;
    }
    
    .leaderboard {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #111;
        z-index: 100;
        max-height: 300px;
    }

    .trade-terminal {
        margin-bottom: 300px;
    }
}