/* Styles for the animated project visuals, moved unchanged from the old styles.css. */
/* ---------- Visual: PCIe ---------- */
.v-pcie { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 0%, #0f2a3a, #061018 70%); }
.v-pcie canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Visual: I2C ---------- */
.v-i2c { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 0%, #1e1f45, #0b0c1c 70%); }
.v-i2c canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v-axi { position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 0%, #1d2140, #0a0c18 70%); }
.v-axi canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v-pam { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 0%, #12304a, #0a1220 70%); }
.v-pam canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v-pamcourse { position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 0%, #14233f, #0b1020 70%); }
.v-pamcourse canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v-salt { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 0%, #1b2a52, #070c1a 72%); }
.v-salt canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v-universe { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, #0e1430, #04050a 72%); }
.v-universe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Visual: Harmonium ---------- */
.v-harm {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px),
    linear-gradient(170deg, #6b3d1a, #3d220e 60%, #2a170a);
  padding: 16px 16px 0;
}
.grille {
  flex: 1 1 auto;
  min-height: 70px;
  border-radius: 10px;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.55) 0 3.2px, transparent 3.6px) 0 0 / 16px 16px,
    linear-gradient(180deg, #8a5a2b, #6a4019);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  display: grid; place-items: center;
}
.grille-label {
  font: 600 11px var(--font-mono);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: #f6d9a8;
  background: rgba(42, 23, 10, 0.85);
  padding: 6px 12px; border-radius: 6px;
  border: 1px solid rgba(246, 217, 168, 0.25);
}
.played {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1a0f06;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.06);
  font: 500 15px var(--font-mono);
  color: #fbbf24;
  min-height: 46px;
  overflow: hidden; white-space: nowrap;
}
.played-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246, 217, 168, 0.45); flex: none; }
.played-notes { display: flex; gap: 10px; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.played-notes span { position: relative; }
.harm-hint {
  position: absolute; right: 12px; top: 10px;
  font: 500 11px var(--font-mono);
  color: rgba(246, 217, 168, 0.75);
}
.keys {
  position: relative;
  display: flex;
  height: 150px;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.card.tall .keys { height: 230px; }
.key {
  position: relative;
  flex: 1;
  border: 0; padding: 0 0 10px; margin: 0;
  font: 600 13px var(--font-body);
  cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center;
  transition: background 0.08s, transform 0.08s;
}
.key.white {
  background: linear-gradient(180deg, #f3ead7, #fffaf0 70%, #e8dcc2);
  color: #4a2c12;
  border-right: 1px solid rgba(74, 44, 18, 0.25);
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 -6px 0 rgba(74, 44, 18, 0.12);
}
.key.white:last-child { border-right: 0; }
.key.black {
  position: absolute; top: 0;
  width: 8%; height: 60%;
  background: linear-gradient(180deg, #2a1f18, #0e0a07);
  color: #e9d6b3;
  font-size: 11px;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), inset 0 -4px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
  transform: translateX(-50%);
  padding-bottom: 8px;
}
.key.white.on { background: linear-gradient(180deg, #f8c873, #fde3ae); transform: translateY(2px); }
.key.black.on { background: linear-gradient(180deg, #b45309, #7c2d12); transform: translateX(-50%) translateY(2px); }
.v-harm .komal { text-decoration: underline; text-underline-offset: 3px; }
.v-harm .tivra { position: relative; }
.v-harm .tivra::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 5px; background: currentColor; }
.v-harm .taar { position: relative; }
.v-harm .taar::before { content: ""; position: absolute; left: 50%; top: -5px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: currentColor; }

/* ---------- Visual: UVM ---------- */
.v-uvm {
  position: absolute; inset: 0;
  background: #0b0f15;
  display: flex; flex-direction: column;
  font: 400 12.5px/1.65 var(--font-mono);
  color: #c9d1dc;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px;
  background: #121821;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #6b7686; font-size: 11px;
}
.term-bar i { width: 9px; height: 9px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: #f87171; }
.term-bar i:nth-child(2) { background: #fbbf24; }
.term-bar i:nth-child(3) { background: #4ade80; }
.term-bar span { margin-left: 8px; }
.term-body { position: relative; flex: 1; padding: 12px 16px; overflow: hidden; }
.term-line { white-space: pre; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s; }
.term-line.show { opacity: 1; transform: none; }
.t-dim { color: #5e6878; }
.t-prompt { color: #a78bfa; }
.t-tag { color: #67e8f9; }
.t-ok { color: #4ade80; }
.t-num { color: #fbbf24; }
.term-pass {
  position: absolute; right: 16px; bottom: 14px;
  font: 700 13px var(--font-mono);
  letter-spacing: 0.12em;
  color: #052e16;
  background: #4ade80;
  padding: 6px 12px; border-radius: 6px;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.55);
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.term-pass.show { opacity: 1; transform: none; }
.cursor { display: inline-block; width: 7px; height: 14px; background: #c9d1dc; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
