@import 'base.css';

.boot-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--bg-primary);
    position: relative;
    padding: 24px 16px 48px;
}

.boot-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.025) 0%, transparent 55%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.006) 2px,
            rgba(255, 255, 255, 0.006) 4px
        );
    pointer-events: none;
}

.boot-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.boot-terminal-wrap {
    width: min(640px, 94vw);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: rgba(8, 8, 8, 0.85);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.boot-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.boot-terminal-header span:last-child {
    color: var(--text-secondary);
}

.boot-terminal {
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    min-height: 240px;
    max-height: 40vh;
    overflow-y: auto;
    padding: 14px 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) transparent;
}

.boot-line {
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.boot-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.boot-line--header {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.boot-line--meta {
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.boot-line--divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 6px 0;
    opacity: 0;
}

.boot-line--divider.visible {
    opacity: 1;
}

.boot-line--bar {
    white-space: pre;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    opacity: 1;
    transform: none;
}

.boot-bar {
    color: var(--text-primary);
    font-weight: 600;
}

.boot-bar-pct {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.boot-install .boot-terminal-wrap,
.boot-install .boot-progress-wrap,
.boot-install .boot-eta {
    width: min(720px, 94vw);
}

.boot-install .boot-terminal {
    min-height: 280px;
    max-height: 48vh;
}

.boot-line .status-ok {
    color: var(--text-primary);
    font-weight: 600;
}

.boot-line .status-dim {
    color: var(--text-muted);
}

.boot-line .status-warn {
    color: #f5c542;
    font-weight: 600;
}

.boot-progress-wrap {
    width: min(640px, 94vw);
    margin-top: 16px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.boot-progress {
    flex: 1;
    height: 3px;
    background: var(--bg-tertiary);
    overflow: hidden;
    border-radius: 2px;
}

.boot-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--text-primary);
    transition: width 0.35s ease;
    border-radius: 2px;
}

.boot-progress-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.boot-eta {
    width: min(640px, 94vw);
    margin-top: 10px;
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-align: center;
}

.boot-eta strong {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.boot-version {
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    z-index: 1;
}
@media (max-width: 520px) {
    .boot-terminal {
        font-size: 10px;
        min-height: 240px;
    }

    .boot-line {
        white-space: normal;
        word-break: break-word;
    }
}
