/* =========================================================
   Developer Desk — terminal, tesbeh, character vignettes
   ========================================================= */

.desk__grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

/* --- Terminal --- */
.terminal{
  background: #100C08;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.terminal__bar{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--bark);
  border-bottom: 1px solid var(--line);
}
.terminal__dot{ width: 10px; height: 10px; border-radius: 50%; }
.terminal__dot--r{ background: #C9564A; }
.terminal__dot--y{ background: var(--copper); }
.terminal__dot--g{ background: var(--teal); }
.terminal__title{
  margin-inline: auto;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--sand);
  transform: translateX(-14px);
}
.terminal__body{
  padding: 1.5rem 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.86rem;
  line-height: 1.9;
  color: #D8CBB4;
  height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.terminal__prompt{ color: var(--teal); }
.terminal__cmd{ color: var(--cream); }
.terminal__out{ color: var(--sand); display: block; margin-bottom: 0.4rem; }
.terminal__cursor{
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--copper);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.terminal__hint{
  margin-top: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--sand);
  opacity: 0.7;
}

/* --- Desk objects strip --- */
.desk-objects{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.desk-chip{
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--sand);
}
.desk-chip svg{ width: 15px; height: 15px; color: var(--copper); }

/* --- Tesbeh --- */
.tesbeh-widget{
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--ink-soft);
    overflow: visible;
}
.tesbeh{
  cursor: pointer;
  color: var(--copper);
  flex-shrink: 0;
  overflow: visible;
}
.tesbeh svg{ width: 64px; height: 64px;   overflow: visible;}
.tesbeh__bead{ transition: transform 260ms var(--ease-out); transform-origin: center; }
.tesbeh.is-counting .tesbeh__bead{ animation: bead-pulse 900ms var(--ease-out); }
@keyframes bead-pulse{
  0%{ transform: scale(1); }
  40%{ transform: scale(1.35); }
  100%{ transform: scale(1); }
}
.tesbeh-widget__text{ font-family: var(--f-mono); font-size: 0.84rem; color: var(--sand); }
.tesbeh-widget__count{ color: var(--cream); font-weight: 600; }
.tesbeh-widget__msg{ display: block; margin-top: 0.25rem; color: var(--copper); min-height: 1.2em; }

/* --- Character vignettes --- */
.cast{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.cast-card{
  background: var(--bark);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.3rem 1.1rem;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.cast-card:hover{ transform: translateY(-4px); border-color: var(--copper-dim); }
.cast-card__avatar{
  width: 76px; height: 76px;
  margin-inline: auto 0.9rem;
  margin-bottom: 0.9rem;
  color: var(--copper);
}
.cast-card__avatar svg{ width: 100%; height: 100%; }
.cast-card h4{ font-size: 1rem; color: var(--cream); }
.cast-card__az{ font-family: var(--f-mono); font-size: 0.72rem; color: var(--sand); margin-top: 0.2rem; }
.cast-card p{ font-size: 0.84rem; color: var(--sand); margin-top: 0.6rem; }
.cast-card__line{
  margin-top: 0.7rem;
  font-family: var(--f-display);
  font-size: 0.92rem;
  color: var(--copper);
}

@media (max-width: 980px){
  .desk__grid{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .cast{ grid-template-columns: 1fr; }
}
