.desk-screen { --scene-top: 52px; --scene-bottom: 112px; }

.desk-caption {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(13, 12, 31, 0.7);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.desk-caption [data-cap-text] { overflow: hidden; text-overflow: ellipsis; }
.desk-caption [data-cap-dots] { display: inline-flex; gap: 4px; flex: none; }
.desk-caption [data-cap-dots] i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background-color 0.3s ease, width 0.3s var(--ease-out);
}
.desk-caption [data-cap-dots] i.on { width: 14px; border-radius: 3px; background: var(--c); }

.scene {
  position: absolute;
  inset: auto;
  top: var(--scene-top);
  left: 50%;
  margin: 0;
  max-width: none;
  max-height: none;
  filter: none;
  width: 880px;
  height: 550px;
  transform-origin: top center;
  transform: translateX(-50%) scale(var(--k, 0.8)) translateY(14px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s var(--spring);
  pointer-events: none;
  font-family: var(--body);
  font-size: 13px;
  color: #ecebf5;
  text-align: left;
  user-select: none;
}
.scene[data-kind="phone"] { width: 300px; height: 620px; }
.scene.is-on { opacity: 1; transform: translateX(-50%) scale(var(--k, 0.8)); }
.scene *, .scene *::before, .scene *::after { box-sizing: border-box; }

.mw {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #1d1c26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75), 0 0 0 0.5px rgba(0, 0, 0, 0.6);
}
.mw-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  font-weight: 600;
  color: #c9c7d6;
}
.mw-lights { display: inline-flex; gap: 7px; margin-right: 8px; }
.mw-lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mw-lights i:nth-child(2) { background: #febc2e; }
.mw-lights i:nth-child(3) { background: #28c840; }
.mw-body { position: relative; flex: 1; min-height: 0; }

.ph {
  position: absolute;
  inset: 0;
  border-radius: 44px;
  border: 7px solid #05050c;
  outline: 1px solid rgba(255, 255, 255, 0.16);
  background: #0b0b14;
  overflow: hidden;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.8);
}
.ph-notch {
  position: absolute;
  z-index: 5;
  top: 9px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 14px;
  background: #000;
}
.ph-body { position: absolute; inset: 0; padding-top: 46px; }

.cursor {
  position: absolute;
  z-index: 20;
  width: 18px;
  height: 18px;
  left: var(--x, 50%);
  top: var(--y, 50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8.2-6.1 1.3L9.6 19z' fill='%23fff' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  transition: left 0.7s var(--ease-out), top 0.7s var(--ease-out), transform 0.15s ease;
}
.cursor.press { transform: scale(0.82); }

@media (max-width: 720px) {
  .desk-screen { --scene-top: 40px; --scene-bottom: 70px; }
  .desk-caption { top: 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene, .scene.is-on { transform: translateX(-50%) scale(var(--k, 0.8)); }
}
