:host { display: block; }

.panel {
  width: 290px;
  max-height: 480px;
  background: var(--fog-bg);
  border-left: 2px solid var(--fog-amber);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Outcome header ── */
.outcome-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--fog-border);
  flex-shrink: 0;
}

.outcome-glyph {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--fog-amber);
  flex-shrink: 0;
}
.outcome-glyph.sacrifice { color: var(--fog-red); }

.outcome-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fog-text);
}

/* ── Stats ── */
.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 16px;
  border-bottom: 1px solid var(--fog-border);
  flex-shrink: 0;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fog-text-dim);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fog-text);
}

/* ── Survivors ── */
.survivors {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  border-bottom: 1px solid var(--fog-border);
  flex-shrink: 0;
}

.survivor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px;
}

.survivor-name {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--fog-text);
}

.survivor-state {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fog-amber);
}
.survivor-state.injured    { color: var(--fog-amber-dim); }
.survivor-state.downed     { color: var(--fog-red); }
.survivor-state.sacrificed { color: var(--fog-red); }

/* ── Log ── */
.log {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--fog-border);
  min-height: 0;
}

.log::-webkit-scrollbar { width: 3px; }
.log::-webkit-scrollbar-track { background: transparent; }
.log::-webkit-scrollbar-thumb { background: var(--fog-border); }

.log-entry {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--fog-text-dim);
}

.log-glyph {
  margin-right: 5px;
  font-size: 8px;
}

.log-entry.success .log-glyph { color: var(--fog-green); }
.log-entry.failure .log-glyph { color: var(--fog-red); opacity: 0.5; }

/* ── Continue button ── */
.continue-btn {
  margin: 12px 16px;
  padding: 8px 0;
  background: transparent;
  border: 1px solid var(--fog-amber-dim);
  color: var(--fog-text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.continue-btn:hover, .continue-btn:focus-visible {
  border-color: var(--fog-amber);
  color: var(--fog-amber);
  outline: none;
}
