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

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #4fc3f7;
    --accent-hover: #81d4fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    padding: 1.5rem 0 1rem;
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

header h1 span {
    color: var(--accent);
}

header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Screen */
#screen_container {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

#screen_container div {
    white-space: pre;
    font-family: monospace;
    line-height: normal;
}

#screen_container canvas {
    width: 100%;
    height: 100%;
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.controls button {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.2s, color 0.2s;
}

.controls button:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#status {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Content sections */
.content {
    padding: 2rem 0;
}

.content section {
    margin-bottom: 2.5rem;
}

.content h2 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.content p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.content ul {
    list-style: none;
    padding: 0;
}

.content ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.content ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: monospace;
}

.content a {
    color: var(--accent);
    text-decoration: none;
}

.content a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* FAQ */
.faq-item {
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.faq-item p {
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.2rem;
    }

    .controls {
        flex-wrap: wrap;
    }

    #status {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}
