/* the society :: boot sequence, file cards, inline viewers, notices. */

/* ── boot self-test ───────────────────────────────────────────────────────── */

.boot {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--ground);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--gap-lg);
    padding: var(--gap-lg);
}

.boot[hidden] { display: none; }

.boot .wordmark { font-size: clamp(22px, 5vw, 38px); }

.boot-lines {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    color: var(--amber-mid);
    width: min(560px, 100%);
    min-height: 190px;
    margin: 0;
    list-style: none;
    padding: 0;
}

.boot-lines li {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.boot-lines .dots {
    flex: 1 1 auto;
    border-bottom: 1px dotted var(--amber-ghost);
    transform: translateY(-4px);
}

.boot-lines .verdict { color: var(--good); letter-spacing: 0.1em; }
.boot-lines .verdict.fail { color: var(--alert); }

/* ── notices ──────────────────────────────────────────────────────────────── */

.notice {
    font-family: var(--font-chrome);
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: var(--amber-dim);
    border: 1px solid var(--panel-edge);
    border-left: 3px solid var(--amber-mid);
    padding: 9px 12px;
    background: rgba(255, 178, 36, 0.03);
    max-width: 620px;
}

.notice strong { color: var(--amber); font-weight: 600; }

/* ── file cards ───────────────────────────────────────────────────────────── */

.filecard {
    border: 1px solid var(--panel-edge);
    background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
    padding: 9px 11px;
    display: grid;
    gap: 7px;
    max-width: 460px;
}

.filecard .row {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-family: var(--font-chrome);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.filecard .fname {
    color: var(--amber-bright);
    word-break: break-all;
    text-transform: none;
    letter-spacing: 0.02em;
}

.filecard .fmeta { color: var(--amber-dim); margin-left: auto; white-space: nowrap; }

.bar {
    height: 4px;
    background: var(--amber-ghost);
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--amber);
    box-shadow: 0 0 8px rgba(255, 178, 36, 0.7);
    transition: width 120ms linear;
}

.filecard.failed .bar span { background: var(--alert); box-shadow: none; }

/* ── inline viewers ───────────────────────────────────────────────────────── */

.viewer {
    margin-top: 6px;
    border: 1px solid var(--panel-edge);
    background: #000;
    max-width: 460px;
    line-height: 0;
}

.viewer img,
.viewer video {
    display: block;
    max-width: 100%;
    max-height: 340px;
    margin: 0 auto;
}

.filecard .fstate {
    color: var(--amber-mid);
    letter-spacing: 0.1em;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filecard.failed .fstate { color: var(--alert); }

.filecard .factions {
    margin-left: auto;
    display: flex;
    gap: 6px;
    flex: none;
}

/* the buttons inside a card are secondary controls, so they sit smaller than the
   masthead's. the download control is an anchor, which needs the button styling
   pulled back onto it explicitly. */
.filecard .btn {
    padding: 4px 10px;
    min-height: 0;
    font-size: 10px;
}

a.btn {
    display: inline-block;
    text-decoration: none;
    line-height: 1.5;
}
