/* ===== Terminal ===== */
.terminal {
    padding: 0 !important;
    background: rgba(8, 9, 12, .96);
    font-family: var(--font-mono);
    font-size: 13.5px;
    display: flex;
    flex-direction: column;
    cursor: text;
}

.term-out {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #d6d2c8;
    line-height: 1.55;
}

.term-out .prompt { color: #ff9d5c; }
.term-out .err { color: #ff6b6b; }
.term-out .ok { color: #7dff8a; }
.term-out .accent { color: #ffc24c; }

.term-line {
    display: flex;
    padding: 0 14px 14px;
    gap: 8px;
}

.term-line .prompt {
    color: #ff9d5c;
    white-space: nowrap;
}

.term-line input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #d6d2c8;
    font-family: inherit;
    font-size: inherit;
}

/* ===== Dateimanager ===== */
.fm { padding: 0 !important; display: flex; flex-direction: column; }

.fm-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.fm-bar button {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 5px 11px;
}

.fm-bar button:disabled { opacity: .4; cursor: default; }

.fm-path { color: var(--text-dim); font-family: var(--font-mono); font-size: 12.5px; }

.fm-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 6px;
    align-content: start;
}

.fm-item {
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text);
    padding: 13px 6px;
    text-align: center;
    font-size: 12.5px;
    word-break: break-word;
}

.fm-item:hover { background: var(--bg-hover); }

.fm-item .glyph { display: block; font-size: 33px; margin-bottom: 7px; }

.fm-status {
    padding: 8px 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
}

/* ===== Einstellungen ===== */
.settings-group { margin-bottom: 22px; }

.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }

.wp-swatch {
    width: 92px;
    height: 56px;
    border-radius: 8px;
    border: 2px solid transparent;
    position: relative;
}

.wp-swatch span {
    position: absolute;
    left: 6px;
    bottom: 4px;
    font-size: 10.5px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

.wp-swatch.active { border-color: var(--accent); }

.ac-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ac-swatch.active {
    border-color: var(--text);
    transform: scale(1.12);
}

.mode-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 9px 18px;
    margin-right: 8px;
    font-size: 13px;
}

.mode-btn.active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ===== Games ===== */
.game-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.game-hud {
    display: flex;
    gap: 22px;
    font-size: 14px;
}

.game-hud b { color: var(--accent); }

.game-wrap canvas {
    background: #0c0d11;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 100%;
}

.game-hint { font-size: 12px; color: var(--text-dim); text-align: center; }

.game-over-msg { color: var(--accent); font-weight: 600; min-height: 20px; }
