/* Xilari brand palette
   Cream #F7F7F4 · Ink/Navy #0A1628 · Navy light #1E3A5F · Navy dark #050E1E
   Silver #8B95A1 · Silver light #C5CBD4 · Silver dark #5A6573 · Line #E5E8ED */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #F7F7F4 url("../migrate.png") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.scene {
  perspective: 1200px;
}

.terminal {
  width: min(680px, 92vw);
  background: rgba(5, 14, 30, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 149, 161, 0.32);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(10, 22, 40, 0.4);
  overflow: hidden;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(139, 149, 161, 0.2);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* muted, on-brand window controls */
.dot.red    { background: #5A6573; }
.dot.yellow { background: #8B95A1; }
.dot.green  { background: #C5CBD4; }

.titlebar .title {
  margin-left: 10px;
  color: #8B95A1;
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.screen {
  padding: 22px 24px 26px;
  min-height: 340px;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #E5E8ED;
}

.line { white-space: pre-wrap; word-break: break-word; }

.prompt  { color: #8B95A1; }
.cmd     { color: #F7F7F4; }
.ok      { color: #C5CBD4; }
.err     { color: #8B95A1; }
.info    { color: #C5CBD4; }
.muted   { color: #5A6573; }
.accent  { color: #C5CBD4; }

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: #C5CBD4;
  vertical-align: text-bottom;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.bar-wrap {
  margin: 6px 0;
  display: none;
}

.bar-track {
  height: 10px;
  border-radius: 6px;
  background: rgba(139, 149, 161, 0.22);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, #C5CBD4, #8B95A1);
  transition: width 0.12s linear;
}

.bar-label {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: #8B95A1;
  margin-top: 4px;
}

.actions {
  margin-top: 18px;
  display: none;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #1E3A5F, #0A1628);
  color: #F7F7F4;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 12px 26px;
  border-radius: 8px;
  border: 1px solid rgba(197, 203, 212, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(10, 22, 40, 0.45);
}

.hint {
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  color: #5A6573;
}

kbd {
  background: rgba(139, 149, 161, 0.18);
  border: 1px solid rgba(139, 149, 161, 0.35);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  color: #C5CBD4;
}

.paused-badge {
  display: none;
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  color: #C5CBD4;
}

@media (max-width: 480px) {
  .screen {
    padding: 16px 14px 20px;
    font-size: 0.8rem;
    min-height: 300px;
  }
}
