/* NImpostor — global styles (multi-component game, so scoped CSS can't reach the child views; this is linked
   in App.razor, like nt.css). Grayscale only, alongside the shared pg- design system. Prefix: nimp- */

.nimp-wrap { text-align: center; overflow-wrap: anywhere; }

/* ---------- top bar (global clock + role + one-shot button) ---------- */
.nimp-top { margin-bottom: 1.1rem; }
.nimp-clock { display: flex; align-items: baseline; justify-content: center; gap: 0.4rem; margin-bottom: 0.35rem; }
.nimp-clock-time {
    font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
    font-size: 1.6rem; font-weight: 800; color: #fafafa;
}
.nimp-clock-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: #6a6a72; }
.nimp-clock-paused .nimp-clock-time { color: #8a8a92; }
.nimp-clock-paused .nimp-clock-label { color: #fafafa; }

.nimp-top-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.55rem; }
.nimp-role {
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em;
    border: 1px solid #3a3a42; border-radius: 6px; padding: 0.2rem 0.55rem;
}
.nimp-role-crew { color: #ededf0; border-color: #45454f; }
.nimp-role-imp { color: #fafafa; border-color: #fafafa; background: #1d1d22; }

.nimp-top-controls { display: flex; align-items: center; gap: 0.4rem; }
/* corner controls match NInvention's .ninv-sound */
.nimp-sound {
    background: none; border: 1px solid #3a3a42; color: #9a9aa2;
    border-radius: 6px; padding: 0.12rem 0.5rem; font-size: 0.7rem; cursor: pointer;
}
.nimp-sound:hover { color: #d8d8de; border-color: #55555f; }
.nimp-btn-call {
    background: #fafafa; color: #18181b; border: none; font-weight: 700;
    border-radius: 6px; padding: 0.28rem 0.7rem; font-size: 0.78rem; cursor: pointer;
}
.nimp-btn-call:hover:not(:disabled) { background: #e3e3e6; }
.nimp-btn-call:disabled { background: #26262c; color: #6a6a72; cursor: not-allowed; }

/* next-test countdown (under the global clock) */
.nimp-nexttest { text-align: center; font-size: 0.72rem; letter-spacing: 0.06em; color: #8a8a92; margin: 0.45rem 0 0.2rem; }
.nimp-nexttest-soon { color: #fafafa; font-weight: 700; animation: nimp-tick-pulse 1s steps(1) infinite; }
@keyframes nimp-tick-pulse { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0.55; } }

/* "announce" intro beat (test starting / emergency meeting) — slams in to soften the screen change */
.nimp-announce { text-align: center; padding: 1.8rem 0.5rem; animation: nimp-announce-in 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }
.nimp-announce-kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: #8a8a92; margin: 0 0 0.3rem; }
.nimp-announce-title { font-size: 2.4rem; font-weight: 900; letter-spacing: 0.05em; color: #fafafa; margin: 0 0 0.7rem; line-height: 1.05; }
@keyframes nimp-announce-in {
    0% { opacity: 0; transform: scale(0.7); }
    60% { opacity: 1; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

/* ---------- role reveal ---------- */
.nimp-reveal { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.nimp-role-big {
    font-size: 2.6rem; font-weight: 900; letter-spacing: 0.04em; margin: 0.2rem 0 0.6rem;
    color: #fafafa;
}
.nimp-reveal-imp .nimp-role-big { text-shadow: 0 0 18px rgba(255, 255, 255, 0.12); }
.nimp-mates { color: #c4c4cc; margin: 0.8rem 0 1rem; }
.nimp-ready { margin-top: 0.4rem; }

/* ---------- crew task view ---------- */
.nimp-task-meter { display: flex; align-items: center; gap: 0.6rem; margin: 0.4rem 0 1rem; }
.nimp-task-bar { flex: 1; height: 0.6rem; background: #141417; border: 1px solid #2c2c33; border-radius: 999px; overflow: hidden; }
.nimp-task-fill { display: block; height: 100%; background: #fafafa; transition: width 0.25s ease; }
.nimp-task-pct {
    min-width: 2.6rem; text-align: right; font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
    font-weight: 700; color: #d8d8de; font-size: 0.85rem;
}

.nimp-locked { margin: 1.4rem 0; }
.nimp-locked-title { font-size: 1.1rem; font-weight: 900; letter-spacing: 0.18em; color: #fafafa; margin: 0 0 0.3rem; }
.nimp-locked-count {
    font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; font-size: 3rem; font-weight: 800;
    color: #8a8a92; margin: 0.4rem 0;
}

/* "everyone's progress" mini-board shown to a finished crewmate */
.nimp-crewprog { display: flex; flex-direction: column; gap: 0.4rem; margin: 1rem 0; }
.nimp-crewprog-row { display: flex; align-items: center; gap: 0.6rem; }
.nimp-crewprog-name { flex: 0 0 8rem; text-align: left; color: #ededf0; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nimp-crewprog-bar { flex: 1; height: 0.5rem; background: #141417; border: 1px solid #2c2c33; border-radius: 999px; overflow: hidden; }
.nimp-crewprog-fill { display: block; height: 100%; background: #8a8a92; transition: width 0.25s ease; }

/* ---------- task list (pick any task) ---------- */
.nimp-task-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.8rem 0 0.5rem; }
.nimp-task-card {
    display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
    background: #141417; border: 1px solid #2c2c33; border-radius: 10px; padding: 0.7rem 0.85rem;
    color: #ededf0; cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease;
}
.nimp-task-card:hover:not(:disabled) { border-color: #55555f; background: #1a1a1f; }
.nimp-task-card-done { opacity: 0.55; cursor: default; }
.nimp-task-card-label { flex: 0 0 5.5rem; font-weight: 700; color: #f0f0f3; }
.nimp-task-card-bar { flex: 1; height: 0.5rem; background: #0f0f11; border: 1px solid #2c2c33; border-radius: 999px; overflow: hidden; }
.nimp-task-card-fill { display: block; height: 100%; background: #d8d8de; transition: width 0.25s ease; }
.nimp-task-card-pct { flex: 0 0 2.8rem; text-align: right; font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; font-size: 0.78rem; font-weight: 700; color: #b4b4bc; }

.nimp-task-open-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; }
.nimp-back { background: none; border: none; color: #9a9aa2; cursor: pointer; font-size: 0.85rem; padding: 0.1rem 0.2rem; }
.nimp-back:hover { color: #ededf0; text-decoration: underline; }
.nimp-task-open-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8a8a92; }

/* sabotage notice (shown until the player next acts on the task) */
.nimp-sab-note {
    background: #1d1d22; border: 1px solid #6a6a72; border-left: 3px solid #fafafa; border-radius: 6px;
    padding: 0.5rem 0.7rem; margin: 0.1rem 0 0.9rem; color: #ededf0; font-size: 0.85rem; text-align: left;
    animation: nimp-flash 0.5s ease-out;
}
@keyframes nimp-flash { from { background: #4a4a52; } to { background: #1d1d22; } }
.nimp-task-card-alert {
    flex: 0 0 auto; width: 1.2rem; height: 1.2rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #fafafa; color: #18181b; font-weight: 900; font-size: 0.8rem; line-height: 1;
}

/* ---------- Sort task (bar graph + swap) ---------- */
.nimp-bars {
    display: flex; align-items: flex-end; gap: 2px; height: 9rem; margin: 0.9rem 0 0.6rem;
    padding: 0.4rem; background: #0f0f11; border: 1px solid #2c2c33; border-radius: 8px;
}
.nimp-bar {
    flex: 1 1 0; min-width: 0; padding: 0; border: none; border-radius: 2px 2px 0 0; cursor: pointer;
    background: #5a5a62; transition: background 0.12s ease, transform 0.12s ease; align-self: flex-end;
}
.nimp-bar:hover { background: #8a8a92; }
.nimp-bar-ok { background: #d8d8de; }            /* in its final position */
.nimp-bar-sel { background: #fafafa; transform: scaleX(1.4); box-shadow: 0 0 0 1px #fafafa; }

/* ---------- Wiring panel (single SVG: terminals + drawn connections) ---------- */
.nimp-wire-wrap {
    max-height: 20rem; overflow: auto; margin: 0.8rem 0 0.5rem; padding: 0.3rem;
    background: #0f0f11; border: 1px solid #2c2c33; border-radius: 8px;
}
.nimp-wire-svg { display: block; margin: 0 auto; }
.nimp-wire-svg text {
    font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; font-size: 12px; font-weight: 700;
    letter-spacing: 2px; fill: #ededf0; pointer-events: none;
}
.nimp-wire-term { cursor: pointer; }
.nimp-wire-term rect { fill: #141417; stroke: #2c2c33; stroke-width: 1; }
.nimp-wire-term:not(.nimp-wire-done):hover rect { stroke: #55555f; }
.nimp-wire-port { fill: #3a3a42; }
.nimp-wire-sel rect { fill: #1d1d22; stroke: #fafafa; stroke-width: 1.5; }
.nimp-wire-sel .nimp-wire-port { fill: #fafafa; }
.nimp-wire-done { opacity: 0.4; cursor: default; }
.nimp-wire-done .nimp-wire-port { fill: #fafafa; }
.nimp-wire-done text { fill: #8a8a92; text-decoration: line-through; }
.nimp-wire-line { stroke: #c4c4cc; stroke-width: 1.5; opacity: 0.85; }
/* the right bank is inert (and dimmed) until a left terminal is selected */
.nimp-wire-svg:not(.nimp-wire-armed) .nimp-wire-right { cursor: default; }
.nimp-wire-svg:not(.nimp-wire-armed) .nimp-wire-right:not(.nimp-wire-done) { opacity: 0.5; }

/* ---------- Calculation grind ---------- */
.nimp-calc-prompt {
    font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
    font-size: 1.8rem; letter-spacing: 0.03em; margin: 0.4rem 0 0.8rem; overflow-wrap: anywhere;
}
.nimp-calc-wrong { color: #9a9aa2; font-style: italic; margin: -0.3rem 0 0.6rem; }

/* ---------- Flood-It ---------- */
.nimp-flood-grid { display: grid; gap: 2px; max-width: 20rem; margin: 0.9rem auto 0.5rem; }
.nimp-flood-cell { aspect-ratio: 1 / 1; border-radius: 2px; }
.nimp-flood-palette { display: flex; gap: 0.45rem; justify-content: center; margin: 0.6rem 0; }
.nimp-flood-swatch { width: 2.4rem; height: 2.4rem; border-radius: 8px; border: 1px solid #2c2c33; cursor: pointer; }
.nimp-flood-swatch:hover { border-color: #fafafa; }
.nimp-flood-c0 { background: #1b1b1f; }
.nimp-flood-c1 { background: #3a3a42; }
.nimp-flood-c2 { background: #6a6a72; }
.nimp-flood-c3 { background: #9a9aa2; }
.nimp-flood-c4 { background: #d8d8de; }

/* ---------- Sokoban ---------- */
.nimp-sok-grid { display: grid; gap: 2px; max-width: 17rem; margin: 0.9rem auto 0.5rem; }
.nimp-sok-cell { aspect-ratio: 1 / 1; border-radius: 3px; position: relative; }
.nimp-sok-wall { background: #3a3a42; }
.nimp-sok-floor { background: #141417; }
.nimp-sok-target { background: #141417; box-shadow: inset 0 0 0 2px #6a6a72; }
.nimp-sok-box { background: #8a8a92; }
.nimp-sok-boxok { background: #fafafa; }
.nimp-sok-player, .nimp-sok-playertarget { background: #141417; }
.nimp-sok-playertarget { box-shadow: inset 0 0 0 2px #6a6a72; }
.nimp-sok-player::after, .nimp-sok-playertarget::after {
    content: ""; position: absolute; inset: 22%; border-radius: 50%; background: #ededf0;
}
.nimp-sok-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.6rem; }
.nimp-sok-pad { display: grid; grid-template-columns: repeat(3, 2.3rem); grid-template-rows: repeat(2, 2.3rem); gap: 0.3rem; }
.nimp-dpad {
    background: #1b1b1f; border: 1px solid #3a3a42; border-radius: 8px; color: #ededf0; font-size: 1.1rem; cursor: pointer;
}
.nimp-dpad:hover { background: #232329; border-color: #6a6a72; }
.nimp-dpad-up { grid-column: 2; grid-row: 1; }
.nimp-dpad-left { grid-column: 1; grid-row: 2; }
.nimp-dpad-down { grid-column: 2; grid-row: 2; }
.nimp-dpad-right { grid-column: 3; grid-row: 2; }
.nimp-restart {
    background: none; border: 1px solid #3a3a42; color: #9a9aa2; border-radius: 6px;
    padding: 0.3rem 0.75rem; font-size: 0.8rem; cursor: pointer;
}
.nimp-restart:hover { color: #ededf0; border-color: #55555f; }

/* ---------- Rush Hour ---------- */
.nimp-rush-grid { display: grid; gap: 2px; max-width: 17rem; margin: 0.9rem auto 0.6rem; background: #0f0f11; padding: 2px; border-radius: 4px; }
.nimp-rush-cell {
    aspect-ratio: 1 / 1; box-sizing: border-box; border: none; border-radius: 3px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem;
    font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
}
.nimp-rush-empty { background: #141417; }
.nimp-rush-empty:hover { background: #1d1d22; }
.nimp-rush-sel { box-shadow: 0 0 0 2px #18181b, 0 0 0 4px #fafafa; }
.nimp-rush-exit { border-right: 3px solid #8a8a92; }

/* ---------- Memory match ---------- */
.nimp-mem-grid { display: grid; gap: 0.4rem; max-width: 22rem; margin: 0.9rem auto 0.5rem; }
.nimp-mem-card {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    background: #1b1b1f; border: 1px solid #2c2c33; border-radius: 8px; color: #ededf0;
    font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; font-size: 1.3rem; font-weight: 800;
    cursor: pointer; transition: background 0.1s ease, border-color 0.1s ease;
}
.nimp-mem-card:hover:not(:disabled) { background: #232329; border-color: #55555f; }
.nimp-mem-up { background: #141417; border-color: #45454f; cursor: default; }
.nimp-mem-matched { opacity: 0.4; border-color: #2c2c33; }

/* ---------- Sliding tiles ---------- */
.nimp-slide-grid { display: grid; gap: 0.4rem; max-width: 18rem; margin: 0.9rem auto 0.5rem; }
.nimp-slide-tile {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    background: #1b1b1f; border: 1px solid #2c2c33; border-radius: 8px; color: #ededf0;
    font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; font-size: 1.4rem; font-weight: 800;
    cursor: pointer; transition: background 0.1s ease, border-color 0.1s ease;
}
.nimp-slide-blank { aspect-ratio: 1 / 1; border: 1px dashed #2c2c33; border-radius: 8px; }
.nimp-slide-move { border-color: #55555f; }
.nimp-slide-move:hover { background: #232329; border-color: #7a7a84; }
.nimp-slide-correct { background: #fafafa; color: #18181b; border-color: #fafafa; }
.nimp-slide-correct.nimp-slide-move:hover { background: #e3e3e6; border-color: #e3e3e6; }

/* ---------- Pipe grid ---------- */
.nimp-pipe-wrap { display: flex; justify-content: center; margin: 0.9rem 0 0.5rem; }
.nimp-pipe-svg { display: block; max-width: 100%; height: auto; touch-action: manipulation; }
.nimp-pipe-cell { cursor: pointer; }
.nimp-pipe-bg { fill: transparent; stroke: #1b1b1f; stroke-width: 1; }
.nimp-pipe-cell:hover .nimp-pipe-bg { fill: #141417; }
.nimp-pipe-arm { stroke: #4a4a52; stroke-width: 6; stroke-linecap: round; }
.nimp-pipe-hub { fill: #4a4a52; }
.nimp-pipe-lit .nimp-pipe-arm { stroke: #fafafa; }
.nimp-pipe-lit .nimp-pipe-hub { fill: #fafafa; }
.nimp-pipe-source { fill: #fafafa; stroke: #fafafa; stroke-width: 3; }
.nimp-pipe-lit .nimp-pipe-source { stroke: #8a8a92; }

/* ---------- Glyph cipher ---------- */
.nimp-gl-grid { display: flex; flex-direction: column; gap: 0.3rem; align-items: center; margin: 0.8rem 0; max-height: 14rem; overflow-y: auto; }
.nimp-gl-row { display: flex; gap: 0.28rem; justify-content: center; flex-wrap: wrap; }
.nimp-gl-tile {
    width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
    border: 1px solid #2c2c33; border-radius: 6px; font-size: 1.15rem; line-height: 1; background: #141417; color: #ededf0;
}
.nimp-gl-g { background: #fafafa; color: #18181b; border-color: #fafafa; }                 /* right glyph & spot */
.nimp-gl-y { background: #1b1b1f; color: #fafafa; border: 2px solid #fafafa; }             /* in code, wrong spot */
.nimp-gl-b { background: #1b1b1f; color: #5a5a62; border-color: #2c2c33; }                 /* absent */
.nimp-gl-current { margin: 0.5rem 0; }
.nimp-gl-slot { border-style: dashed; border-color: #3a3a42; color: #fafafa; }

.nimp-gl-keyboard { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.3rem; margin: 0.6rem 0; }
.nimp-gl-key {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    background: #141417; border: 1px solid #2c2c33; border-radius: 7px; color: #ededf0; font-size: 1.1rem; cursor: pointer;
    transition: background 0.1s ease, border-color 0.1s ease;
}
.nimp-gl-key:hover:not(:disabled) { background: #1d1d22; border-color: #55555f; }
.nimp-gl-key:disabled { opacity: 0.4; cursor: not-allowed; }
.nimp-gl-actions { display: flex; gap: 0.5rem; margin-top: 0.4rem; }

/* ---------- Keypad / Sequence task ---------- */
/* progress pips — empty until a step is discovered (the code itself is never shown) */
.nimp-seq-code { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; margin: 0.9rem 0; }
.nimp-seq-step {
    width: 1.4rem; height: 1.4rem; border: 1px solid #2c2c33; border-radius: 50%; background: #141417;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.nimp-seq-done { background: #fafafa; border-color: #fafafa; }
.nimp-seq-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; max-width: 14rem; margin: 0.8rem auto 1rem; }
.nimp-seq-key {
    aspect-ratio: 1 / 1; background: #141417; border: 1px solid #2c2c33; border-radius: 10px;
    color: #ededf0; font-size: 1.4rem; font-weight: 700; cursor: pointer;
    font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; transition: background 0.1s ease, border-color 0.1s ease;
}
.nimp-seq-key:hover { border-color: #55555f; background: #1d1d22; }
.nimp-seq-key:active { background: #2a2a30; }

/* ---------- sabotage console ---------- */
.nimp-sab-global { margin: 0.4rem 0 0.9rem; }
.nimp-sab-blackout {
    width: 100%; background: #1d1d22; border: 1px solid #45454f; border-radius: 8px; color: #ededf0;
    padding: 0.6rem; font-weight: 700; cursor: pointer; transition: border-color 0.12s ease;
}
.nimp-sab-blackout:hover:not(:disabled) { border-color: #6a6a72; }
.nimp-sab-blackout:disabled { color: #6a6a72; cursor: not-allowed; }

.nimp-sab-list { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1rem; }
.nimp-sab-row { background: #141417; border: 1px solid #2c2c33; border-radius: 10px; padding: 0.65rem 0.75rem; text-align: left; }
.nimp-sab-done { opacity: 0.55; }
.nimp-sab-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.nimp-sab-name { font-weight: 700; color: #f0f0f3; }
.nimp-sab-task { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8a8a92; }
.nimp-sab-meter { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0.3rem; }
.nimp-sab-bar { flex: 1; height: 0.5rem; background: #0f0f11; border: 1px solid #2c2c33; border-radius: 999px; overflow: hidden; }
.nimp-sab-fill { display: block; height: 100%; background: #d8d8de; transition: width 0.25s ease; }
.nimp-sab-pct { min-width: 2.8rem; text-align: right; font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; font-size: 0.78rem; font-weight: 700; color: #b4b4bc; }
.nimp-sab-locked { font-size: 0.72rem; color: #8a8a92; margin: 0.1rem 0 0.3rem; }
.nimp-sab-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; margin-top: 0.35rem; }
.nimp-sab-btn {
    background: #1b1b1f; border: 1px solid #3a3a42; border-radius: 7px; color: #d8d8de;
    padding: 0.4rem 0.2rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: border-color 0.12s ease;
}
.nimp-sab-btn:hover:not(:disabled) { border-color: #6a6a72; background: #232329; }
.nimp-sab-btn:disabled { color: #5a5a62; cursor: not-allowed; opacity: 0.7; }

/* ---------- test overlay ---------- */
.nimp-test-eyebrow, .nimp-meet-eyebrow { color: #fafafa; }
.nimp-test-roster, .nimp-meet-roster { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin: 0.9rem 0 1.1rem; }
.nimp-test-pick, .nimp-meet-accuse {
    background: #141417; border: 1px solid #2c2c33; border-radius: 999px; color: #ededf0;
    padding: 0.45rem 0.9rem; font-weight: 600; cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease;
}
.nimp-test-pick:hover, .nimp-meet-accuse:hover { border-color: #55555f; }
.nimp-test-picked { background: #fafafa; color: #18181b; border-color: #fafafa; }
.nimp-meet-accused { background: #fafafa; color: #18181b; border-color: #fafafa; }
.nimp-test-blank { color: #8a8a92; font-style: italic; }

.nimp-test-q { color: #d8d8de; margin: 0.4rem 0 0.8rem; }
.nimp-test-answers { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.nimp-test-answer {
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
    background: #141417; border: 1px solid #2c2c33; border-radius: 8px; padding: 0.55rem 0.8rem; text-align: left;
}
.nimp-test-who { font-weight: 700; color: #f0f0f3; flex: 0 0 auto; }
.nimp-test-said { color: #d8d8de; text-align: right; }
.nimp-test-correct { color: #8a8a92; }

/* captain's choice of 3 tests */
.nimp-test-choices { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.9rem 0; }
.nimp-test-choice {
    display: flex; flex-direction: column; gap: 0.2rem; text-align: left; cursor: pointer;
    background: #141417; border: 1px solid #2c2c33; border-radius: 10px; padding: 0.7rem 0.85rem; color: #ededf0;
    transition: border-color 0.12s ease, background 0.12s ease;
}
.nimp-test-choice:hover { border-color: #55555f; background: #1a1a1f; }
.nimp-test-choice-fmt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8a8a92; }
.nimp-test-choice-q { font-weight: 600; color: #f0f0f3; }

/* opinion-poll scale */
.nimp-likert { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.8rem 0; }

/* drawing-booth reveal grid */
.nimp-test-draws { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 0.8rem 0 1rem; }
.nimp-test-draw { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.nimp-test-draw-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 8px; }
.nimp-test-draw-none {
    display: flex; align-items: center; justify-content: center; background: #141417;
    border: 1px dashed #3a3a42; color: #6a6a72; font-size: 0.8rem;
}

/* ---------- meeting overlay ---------- */
.nimp-meet-vote { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.4rem 0 0.6rem; }

/* ---------- results ---------- */
.nimp-result { padding-top: 1.8rem; padding-bottom: 1.8rem; }
.nimp-result-big { font-size: 2.6rem; font-weight: 900; letter-spacing: 0.05em; margin: 0.2rem 0 0.5rem; color: #fafafa; }
.nimp-result-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: #8a8a92; margin: 1.2rem 0 0.5rem; }
.nimp-result-imps { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.nimp-result-imp-name { background: #1d1d22; border: 1px solid #45454f; border-radius: 999px; padding: 0.4rem 0.9rem; font-weight: 700; color: #fafafa; }
.nimp-result-me { border-color: #fafafa; }

@media (max-width: 480px) {
    .nimp-sort-grid { grid-template-columns: repeat(4, 1fr); }
    .nimp-crewprog-name { flex-basis: 6rem; }
}
