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

body {
    background-color: #050508;
    color: #00ffcc;
    font-family: 'Courier New', Courier, monospace;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 10;
}

.terminal-container {
    width: 90%;
    max-width: 750px;
    height: 520px;
    background: rgba(10, 14, 20, 0.95);
    border: 2px solid #00ffcc;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.terminal-header {
    background: #111827;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #00ffcc;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.title {
    margin-left: 10px;
    font-size: 13px;
    color: #9ca3af;
}

.output-screen {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-title {
    color: #00ffcc;
    font-size: 26px;
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}

.welcome-text {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.quick-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-buttons button {
    background: #080c14;
    color: #00ffcc;
    border: 1px solid #00ffcc;
    padding: 8px 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.quick-buttons button:hover {
    background: #00ffcc;
    color: #050508;
}

#game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#game-instructions {
    color: #ff007f;
    font-size: 14px;
    margin-bottom: 10px;
}

#gameCanvas {
    background: #000;
    border: 2px solid #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
    cursor: pointer;
}

/* Full-screen mode handling */
#gameCanvas:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain;
    background: #050508;
    border: none;
    box-shadow: none;
}
#gameCanvas:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain;
    background: #050508;
}
