/* ------------------------------------------------------------------------------------------
   The stage: a Mac screen, 1440 by 900 points, scaled to the stage's width. */

.screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 1440px;
  height: 900px;
  transform-origin: 0 0;
  overflow: hidden;
  font-family: var(--sans);
  color: #fff;
}
.wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 80% 100%, #5a2c3c 0%, transparent 70%),
    radial-gradient(70% 60% at 10% 0%, #2c1d3a 0%, transparent 70%),
    #1c1220;
}
.menubar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
  background: rgb(30 18 30 / 0.55);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  font-size: 13px;
  color: rgb(255 255 255 / 0.92);
  z-index: 1;
}
.menubar b { font-weight: 700; }
.menubar i { margin-left: auto; font-style: normal; }
.menubar .apple { font-size: 15px; line-height: 1; }

.window {
  position: absolute;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.5), inset 0 0 0 0.5px rgb(255 255 255 / 0.15), 0 22px 60px rgb(0 0 0 / 0.55);
}
.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #ece9e4;
  border-bottom: 1px solid rgb(0 0 0 / 0.08);
}
.chrome i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.chrome i:nth-child(2) { background: #febc2e; }
.chrome i:nth-child(3) { background: #28c840; }
.chrome span {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 7px;
  background: rgb(0 0 0 / 0.06);
  color: rgb(0 0 0 / 0.55);
  font-size: 12.5px;
  text-align: center;
}
.window .page { position: relative; }
.window .page img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 0.5s; }

.term { background: #0c0e12; color: #c9ccd3; }
.term .chrome { background: #15171c; border-bottom-color: rgb(255 255 255 / 0.06); }
.term .chrome i { background: #3a3d44; }
.term .chrome span { background: none; color: #7c808a; font-weight: 600; }
.term .out {
  position: absolute;
  inset: 40px 0 0 0;
  padding: 16px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font: 14px/1.6 var(--mono);
  white-space: pre-wrap;
}
.term .line { opacity: 1; transition: opacity 0.25s; }
.term .welcome { margin-bottom: 14px; padding: 8px 14px; border: 1px solid #d97757; border-radius: 8px; }
.term .line.new { opacity: 0; }
.term .t-dim { color: #6b7080; }
.term .t-you { color: #e6e6e6; }
.term .t-claude { color: #d97757; }
.term .t-ok { color: #5fd38d; }
.term .t-from { color: #fff; background: rgb(224 49 49 / 0.22); padding: 0 6px; border-radius: 4px; }
.term .cursor { display: inline-block; width: 8px; height: 17px; background: #c9ccd3; vertical-align: -3px; }

/* A capture's selection, as Cmd+Shift+4 draws it: a grey wash with a hairline edge, the crosshair at
   the corner being dragged, and the size in pixels beside it. Taken, it flashes and goes. */
.selection {
  position: absolute;
  display: none;
  background: rgb(110 110 120 / 0.2);
  outline: 1px solid rgb(255 255 255 / 0.9);
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.28);
  pointer-events: none;
}
.selection.on, .selection.taken { display: block; }
.selection.taken { background: rgb(255 255 255 / 0.75); outline-color: transparent; box-shadow: none; animation: taken 0.4s ease-out forwards; }
@keyframes taken { to { opacity: 0; } }
.selection b {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 28px;
  height: 28px;
  background:
    linear-gradient(#000, #000) center / 1.5px 100% no-repeat,
    linear-gradient(#000, #000) center / 100% 1.5px no-repeat;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}
.selection i {
  position: absolute;
  left: calc(100% + 12px);
  top: calc(100% + 10px);
  font: 500 13px/1 system-ui, -apple-system, sans-serif;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: pre;
  color: #fff;
  text-shadow: 0 0 2px rgb(0 0 0 / 0.9), 0 1px 3px rgb(0 0 0 / 0.6);
}
.selection.taken b, .selection.taken i { display: none; }

.dim {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.3);
  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);
  opacity: 0;
  visibility: hidden;
}

/* The stack's backdrop: a strip of blur that grows toward the screen's edge, and a tint. It fades in
   and out by --shown, on each layer: an ancestor below full opacity cuts a backdrop-filter off from
   what is behind it, so a fade on the strip itself showed no blur until it reached 1. */
.backdrop { --shown: 0; position: absolute; top: 0; bottom: 0; right: 0; width: 230px; pointer-events: none; }
.backdrop i, .backdrop b { position: absolute; inset: 0; opacity: var(--shown); }
.backdrop i:nth-child(1) { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); mask-image: linear-gradient(90deg, transparent 0%, #000 20%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%); }
.backdrop i:nth-child(2) { backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); mask-image: linear-gradient(90deg, transparent 15%, #000 40%); -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 40%); }
.backdrop i:nth-child(3) { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); mask-image: linear-gradient(90deg, transparent 35%, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 60%); }
.backdrop i:nth-child(4) { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); mask-image: linear-gradient(90deg, transparent 55%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 55%, #000 80%); }
.backdrop i:nth-child(5) { backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); mask-image: linear-gradient(90deg, transparent 75%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 75%, #000 100%); }
.backdrop b { background: linear-gradient(90deg, rgb(0 0 0 / 0), rgb(0 0 0 / 0.65)); }

.column { position: absolute; inset: 0; pointer-events: none; }
.card {
  position: absolute;
  border-radius: 16px;
  background: var(--matte);
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.6);
  pointer-events: auto;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.card .clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.4);
  pointer-events: none;
}
.card .ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.4);
  transition: box-shadow 0.3s var(--spring, ease);
  pointer-events: none;
  z-index: 3;
}
.card.focused .ring { box-shadow: inset 0 0 0 2.5px #fff; }
.card.away { visibility: hidden; }
.pic { position: absolute; }
.pic img, .pic svg.marks { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pic svg.marks { overflow: visible; }
.caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.from {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 5px;
  border-radius: 99px;
  background: #fff;
  color: rgb(0 0 0 / 0.85);
  font: 600 11px/1.2 var(--sans);
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.22), 0 1px 3px rgb(0 0 0 / 0.3);
}
.from img { width: 13px; height: 13px; }

.notice {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  border-radius: inherit;
  background: rgb(0 0 0 / 0.55);
  opacity: 0;
  transition: opacity 0.25s;
  text-align: center;
}
.notice > * { transform: scale(0.3); transition: transform 0.4s var(--spring-bouncy, ease), opacity 0.12s; }
.notice.in { opacity: 1; }
.notice.in > * { transform: none; }
.notice.swap > * { opacity: 0; }
.notice b { font-size: 12px; font-weight: 600; color: #fff; }
.notice small { font-size: 11px; font-weight: 500; color: rgb(255 255 255 / 0.85); }
.notice .check, .notice .cross { width: 24px; height: 24px; border-radius: 50%; background: #30d158 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain; }
.notice .cross { background: #ff453a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v6M12 16.5v.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain; }
.notice .disc { position: relative; width: 30px; height: 30px; margin-bottom: 2px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.notice .disc img { width: 18px; height: 18px; }
.notice .disc i { position: absolute; right: -5px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.notice .disc i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; }
.notice .disc i.sending::after { border: 2px solid rgb(0 0 0 / 0.15); border-top-color: rgb(0 0 0 / 0.6); animation: spin 0.8s linear infinite; }
.notice .disc i.sent::after { background: #30d158 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain; }
@keyframes spin { to { transform: rotate(1turn); } }
