/* ==================================================================
   02 — "Take shortcuts, not detours."
   Shell: title, star field, bezel, macOS screen (wallpaper + menu bar),
   the Raycast window that hosts the demos, dock, caption.
   Also the shared window chrome (.sc-head / .sc-row / .sc-foot / .sc-toast …)
   used by every demo, and the Emoji Picker demo (.sc-emoji-*).
   Everything is prefixed .sc- (or scoped under #shortcuts).
   ================================================================== */

#shortcuts {
  --sc-win-w: 750px;
  --sc-win-h: 475px;
  --sc-glass: rgba(0, 0, 0, 0.6);
  --sc-sep: rgba(255, 255, 255, 0.1);
  --sc-text-2: rgba(255, 255, 255, 0.6);
  --sc-text-3: rgba(255, 255, 255, 0.4);
  --sc-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: var(--s-13) var(--s-3);
  overflow: hidden;
  overflow: clip;
}

.sc-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.sc-title { margin-bottom: var(--s-8); }

/* ---------- stage: frame + glow + stars ---------- */
.sc-stage {
  position: relative;
  width: 100%;
  max-width: var(--container);
  -webkit-user-select: none;
  user-select: none;
}

.sc-glow {
  position: absolute;
  inset: -60px -70px;
  filter: blur(20px);
  pointer-events: none;
}
.sc-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  /* a four-pointed, pinched cushion shape so the halo hugs the edges */
  clip-path: polygon(0 0, 50% 13%, 100% 0, 93% 50%, 100% 100%, 50% 87%, 0 100%, 7% 50%);
  background: radial-gradient(40% 150% at 50% 46%, rgba(255, 119, 119, 0.2) 5%, rgba(154, 170, 255, 0.11) 60%, rgba(255, 192, 192, 0) 140%);
}

.sc-stars {
  position: absolute;
  inset: -45px -135px;
  pointer-events: none;
}
.sc-stars-strip { position: absolute; }
.sc-stars-strip[data-side="top"] { top: 0; left: 0; right: 0; height: 45px; }
.sc-stars-strip[data-side="bottom"] { bottom: 0; left: 0; right: 0; height: 45px; }
.sc-stars-strip[data-side="left"] { left: 50px; top: 82px; bottom: 82px; width: 86px; }
.sc-stars-strip[data-side="right"] { right: 50px; top: 82px; bottom: 82px; width: 86px; }

.sc-star {
  position: absolute;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: #fff;
}
.sc-star.is-big { transform: scale(2); }
.sc-star::before,
.sc-star::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sc-star::before { box-shadow: 0 0 2px 1px rgba(50, 145, 255, 0.25); }
.sc-star::after { background: #fff; box-shadow: 0 0 1px 1px rgba(50, 145, 255, 0.8), 0 0 2px 1px rgba(50, 145, 255, 0.25); }
.sc-star[data-state="medium"]::before,
.sc-star[data-state="high"]::after { opacity: 1; }

/* ---------- bezel ---------- */
.sc-frame {
  position: relative;
  height: clamp(500px, 60vw + 274px, 740px);
  padding: var(--s-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(86% 50% at 51% 5%, rgba(255, 150, 150, 0.11) 0%, rgba(222, 226, 255, 0.08) 46%, rgba(241, 242, 255, 0.02) 100%),
    rgba(0, 0, 0, 0.44);
  box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.03), inset 0 0.5px rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transform: translateZ(0);
}
@media (min-width: 1204px) {
  .sc-frame { border-radius: 19px; }
}

/* ---------- the macOS screen ---------- */
.sc-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #040608;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.19), inset 0 0.5px rgba(255, 255, 255, 0.1);
}
@media (min-width: 1204px) {
  .sc-screen { border-radius: var(--r-lg); }
}

/* ---------- wallpaper: glossy red ribbons (original CSS artwork) ---------- */
.sc-wall {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 1182px;
  height: 720px;
  margin-left: -591px;
  pointer-events: none;
  /* narrow screens: the artwork is scaled to cover the screen (set by JS) */
  transform: scale(var(--sc-ws, 1));
  transform-origin: 50% 0;
}
.sc-wall-bands {
  position: absolute;
  inset: 0;
  filter: blur(3.5px) saturate(1.1) brightness(0.86);
  /* the ribbons dissolve into the dark on the left side of the screen */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0, rgba(0, 0, 0, 0.1) 290px, #000 440px);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0, rgba(0, 0, 0, 0.1) 290px, #000 440px);
}
.sc-band {
  --w: 80px;
  position: absolute;
  left: var(--x);
  top: calc(var(--y) - var(--w) / 2);
  width: var(--l);
  height: var(--w);
  border-radius: calc(var(--w) / 2) 5px 5px calc(var(--w) / 2);
  transform-origin: 0 50%;
  transform: rotate(var(--a, 45deg));
  opacity: var(--o, 1);
  /* along the ribbon: fades in from the upper-left, glows red/pink in the
     middle and ends in a deep crimson, squarely cut tip */
  background: linear-gradient(90deg,
    rgba(160, 10, 26, 0) 0%,
    rgba(186, 14, 32, 0.45) calc(var(--f) * 0.55),
    #d41c30 var(--f),
    #e23446 52%,
    #dc2236 74%,
    #c20a26 90%,
    #a80420 100%);
  overflow: hidden;
}
/* ribbons cut by the right edge of the artwork stay bright up to their end */
.sc-band--r {
  background: linear-gradient(90deg,
    rgba(160, 10, 26, 0) 0%,
    rgba(186, 14, 32, 0.45) calc(var(--f) * 0.55),
    #d41c30 var(--f),
    #e23446 55%,
    #dc3042 85%,
    #c61c34 100%);
}
.sc-band--r::before { display: none; }
/* glossy highlight along the upper-right edge of each ribbon */
.sc-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 176, 176, 0.52) 0%, rgba(255, 160, 160, 0.22) 30%, rgba(255, 140, 140, 0) 58%);
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--f) * 0.8), #000 calc(var(--f) + 10%), #000 62%, transparent 84%);
  mask-image: linear-gradient(90deg, transparent calc(var(--f) * 0.8), #000 calc(var(--f) + 10%), #000 62%, transparent 84%);
}
/* shadow cast on the lower-left edge, strongest near the tip: separates the "teeth" */
.sc-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 0, 3, 0.75) 0%, rgba(8, 0, 3, 0.35) 16%, rgba(8, 0, 3, 0) 40%);
  -webkit-mask-image: linear-gradient(90deg, transparent 55%, #000 88%);
  mask-image: linear-gradient(90deg, transparent 55%, #000 88%);
}

.sc-wall-line {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--l);
  height: 2px;
  border-radius: 2px;
  transform-origin: 0 50%;
  transform: rotate(var(--a, 48deg));
  opacity: var(--o, 0.6);
  background: linear-gradient(90deg, rgba(210, 40, 55, 0), rgba(226, 70, 80, 1) 55%, rgba(210, 40, 55, 0));
  filter: blur(0.6px);
}
.sc-wall-line--wide { height: 5px; filter: blur(2px); }
.sc-wall-line--cool { background: linear-gradient(90deg, rgba(120, 140, 160, 0), rgba(150, 165, 185, 0.9) 50%, rgba(120, 140, 160, 0)); height: 1px; }

.sc-wall-grain { display: none; }

/* ---------- menu bar ---------- */
.sc-menubar {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 20px 0 23px;
  color: rgba(255, 255, 255, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.sc-menubar-lead,
.sc-menubar-trail { display: flex; align-items: center; }
.sc-menubar-lead { gap: 18.5px; }
.sc-menubar-trail { gap: 16px; color: rgba(255, 255, 255, 0.45); }
.sc-mb-apple { width: 15px; height: 18px; margin: -3px 0 0; }
.sc-mb-app { font-weight: 700; }
.sc-mb-ico { flex: none; display: block; }
.sc-mb-gh { width: 18px; height: 18px; }
.sc-mb-pair { display: inline-flex; align-items: center; gap: 5px; }
.sc-mb-dot { display: inline-block; margin: 0 2px; font-size: 11px; vertical-align: 0; }
.sc-mb-battery { width: 25px; height: 13px; }
.sc-menubar-trail > span:last-child { margin-left: -7px; }

/* ---------- window viewport ---------- */
.sc-viewport {
  position: absolute;
  z-index: 2;
  top: 48px;
  bottom: 102px;
  left: 0;
  right: 0;
  pointer-events: none;
}
/* always centred on the screen, even when the (unscaled) window is wider than it */
.sc-scaler {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--sc-win-w);
  height: var(--sc-win-h);
  margin: calc(var(--sc-win-h) / -2) 0 0 calc(var(--sc-win-w) / -2);
  transform: scale(var(--sc-s, 1));
  transform-origin: 50% 50%;
}
.sc-window {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}
.sc-window.is-restoring { transition: transform 0.5s var(--ease-in-out), width 0.5s var(--ease-in-out), height 0.5s var(--ease-in-out), left 0.5s var(--ease-in-out), top 0.5s var(--ease-in-out); }

/* ---------- a demo = one Raycast window (glass + chrome) ---------- */
.sc-demo {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 40px;
  isolation: isolate;
  /* inactive windows: hidden (opacity also hides children that force visibility:visible) */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  border-radius: 12px;
  color: var(--white);
  font-size: 13px;
  line-height: normal;
  letter-spacing: 0.1px;
  text-align: left;
}
.sc-demo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  background: var(--sc-glass);
  border: 1px solid rgba(142, 140, 144, 0.2);
  box-shadow: 0 4px 40px 8px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(0, 0, 0, 0.8), inset 0 0.5px rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(36px);
  backdrop-filter: blur(36px);
}
.sc-demo.is-active,
.sc-demo.is-leaving { visibility: visible; opacity: 1; }
.sc-demo.is-active { pointer-events: auto; }
/* no JS: show the first demo */
.sc-window:not(.is-ready) > .sc-demo:first-child { visibility: visible; opacity: 1; }

/* ---------- shared chrome: search bar ---------- */
.sc-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  min-width: 0;
  padding: 0 var(--s-2);
  border-bottom: 0.5px solid var(--sc-sep);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1px;
}
.sc-back {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: default;
}
.sc-back svg { width: 16px; height: 16px; transform: translateY(0.5px); }
.sc-input {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 22px;
  overflow: hidden;
  white-space: pre;
  line-height: 22px;
  color: var(--white);
}
.sc-typed { flex: none; }
.sc-caret {
  position: relative;
  z-index: 1;
  flex: none;
  width: 2px;
  height: 20px;
  margin-right: -2px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: sc-blink 1.1s step-end infinite;
}
.sc-input.is-typing .sc-caret { animation: none; }
@keyframes sc-blink { 50% { opacity: 0; } }
.sc-placeholder {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--sc-text-3);
}
.sc-input.has-text .sc-placeholder { display: none; }

.sc-dropdown {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1);
  width: 196px;
  height: 32px;
  padding: 0 var(--s-1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-sm);
  font-size: 13px;
  white-space: nowrap;
}
.sc-accessory {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  color: var(--sc-text-3);
  font-size: 13px;
  white-space: nowrap;
}
.sc-accessory .kbd {
  min-width: 0;
  height: 20px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-xs);
  background: none;
  color: inherit;
  font-size: 13px;
  font-weight: 400;
}

/* ---------- shared chrome: content ---------- */
.sc-body {
  position: relative;
  min-height: 0;
  padding: 0 var(--s-1);
  overflow: hidden;
}
.sc-section-label {
  display: flex;
  align-items: center;
  padding: 16px 8px 8px;
  color: var(--sc-text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 13px;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.sc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  height: 40px;
  padding: 0 var(--s-1);
  border-radius: var(--r-sm);
  overflow: hidden;
  color: var(--white);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.sc-row.is-selected { background: rgba(255, 255, 255, 0.1); }
.sc-row-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
.sc-row-icon > svg { max-width: 20px; max-height: 20px; }
.sc-row-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sc-row-sub { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--sc-text-2); }
.sc-row-meta { flex: none; margin-left: auto; padding-left: 10px; color: var(--sc-text-2); }

/* ---------- shared chrome: action bar ---------- */
.sc-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 var(--s-1-5);
  isolation: isolate;
  font-size: 13px;
  white-space: nowrap;
}
.sc-foot::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -1px -1px;
  border-top: 1px solid rgba(142, 140, 144, 0.2);
  border-radius: 0 0 12px 12px;
  background: rgba(0, 0, 0, 0.12);
}
.sc-foot-title {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-width: 0;
  overflow: hidden;
  color: var(--sc-text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}
.sc-foot-icon {
  --c: #ff6363;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--r-xs);
  background: var(--c);
  background: linear-gradient(var(--c), color-mix(in srgb, var(--c) 74%, #000));
  color: var(--white);
}
.sc-foot-icon > svg { max-width: 12px; max-height: 12px; }
.sc-foot-actions {
  display: flex;
  align-items: center;
  flex: none;
  padding-right: 4px;
  color: var(--sc-text-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.1px;
}
.sc-foot-actions > span:not(.kbd):not(.sc-foot-sep) { margin-right: 10px; }
.sc-foot-actions > span:first-child { padding-left: 8px; }
.sc-foot-primary { color: var(--white); }
.sc-foot-sep {
  width: 2px;
  height: 12px;
  margin: 0 20px 0 16px;
  border-radius: 3px;
  background: var(--sc-sep);
}
.sc-foot .kbd {
  min-width: 24px;
  width: 24px;
  height: 21px;
  padding: 0;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.1);
  color: var(--sc-text-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.sc-foot .kbd + .kbd { margin-left: 2px; }

/* ---------- shared chrome: toast ---------- */
.sc-toast {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  height: 36px;
  padding: 0 16px 0 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  pointer-events: none;
}
.sc-toast > svg { flex: none; width: 20px; height: 20px; }
/* toasts written without an icon still get the clipboard glyph */
.sc-toast:not(:has(svg))::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><g fill='none' stroke='black' stroke-width='1.5'><rect x='4.75' y='4' width='10.5' height='13.25' rx='2.25'/><rect x='7.25' y='2.5' width='5.5' height='3.5' rx='1.1'/></g></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><g fill='none' stroke='black' stroke-width='1.5'><rect x='4.75' y='4' width='10.5' height='13.25' rx='2.25'/><rect x='7.25' y='2.5' width='5.5' height='3.5' rx='1.1'/></g></svg>") center / 20px 20px no-repeat;
}
.sc-toast.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0s;
}

/* ---------- dock ---------- */
.sc-dock-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: var(--s-3);
  transform: translateX(-50%) scale(var(--sc-ds, 1));
  transform-origin: 50% 100%;
}
.sc-dock {
  position: relative;
  width: max-content;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--s-1);
  padding: var(--s-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: linear-gradient(181deg, rgba(0, 0, 0, 0.1) 4.5%, rgba(255, 255, 255, 0.03) 99.5%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 1px rgba(0, 0, 0, 0.2),
    0 2px 2px rgba(0, 0, 0, 0.17),
    0 4px 3px rgba(0, 0, 0, 0.1),
    0 4px 4px rgba(0, 0, 0, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.1);
}
.sc-dock-btn {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--s-2);
  border: 1px solid var(--grey-500);
  border-radius: var(--r-lg);
  background: radial-gradient(1140% 138% at 0 0, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  color: var(--grey-200);
  box-shadow: 0 7px 3px rgba(0, 0, 0, 0.03), 0 4px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, margin 0.2s ease, border-radius 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.sc-dock-btn { flex: none; }
.sc-dock-btn > svg { flex: none; width: 20px; height: 20px; max-width: none; }
.sc-dock-btn:hover,
.sc-dock-btn.is-active {
  border-color: var(--grey-400);
  background: radial-gradient(79% 79% at 42% 0, #787878 0%, #282828 100%);
  color: var(--white);
  box-shadow: 0 8px 3.5px rgba(0, 0, 0, 0.03), 0 4.6px 4.6px rgba(0, 0, 0, 0.25), inset 0 1.15px rgba(255, 255, 255, 0.19), 0 0 6px rgba(255, 255, 255, 0.25);
}
.sc-dock-btn.is-active {
  margin: 0 6px;
  border-radius: 16px;
  transform: scale(1.25) translateY(-5px);
}
.sc-dock-btn:focus { outline: none; }
.sc-dock-btn:focus-visible { outline: 2px solid rgba(255, 99, 99, 0.8); outline-offset: 3px; }

.sc-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px var(--s-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  background: linear-gradient(137deg, #111214 4.87%, #0c0d0f 75.88%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2px;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(var(--tx, -28px), -41px);
}
.sc-tooltip.is-moving { transition: transform 0.35s var(--ease-out); }
.sc-tooltip.is-swap { animation: sc-tip-in 0.3s var(--ease-out); }
@keyframes sc-tip-in { from { opacity: 0.2; } to { opacity: 1; } }

/* ---------- caption under the frame ---------- */
.sc-caption {
  max-width: 467px;
  min-height: 3.2em;
  margin-top: var(--s-3);
  color: var(--grey-300);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2px;
  text-align: center;
}
.sc-caption-inner { display: inline; transition: opacity 0.22s ease; }
.sc-caption.is-fading .sc-caption-inner { opacity: 0; }
.sc-caption-lead { color: var(--white); font-weight: 500; }

/* ==================================================================
   Emoji Picker demo
   ================================================================== */
.sc-emoji .sc-emoji-body { padding: 0 8px; }
.sc-emoji-view[data-view="results"] { display: none; }
.sc-emoji.is-results .sc-emoji-view[data-view="browse"] { display: none; }
.sc-emoji.is-results .sc-emoji-view[data-view="results"] { display: block; }
.sc-emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}
.sc-emoji-tile {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--emoji), var(--font);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
  transform: scale(1);
  transition: transform 0.15s var(--sc-spring);
}
/* plain unicode symbols are drawn as small SVG glyphs so they look the same everywhere */
.sc-emoji-tile.is-sym > svg { width: 40px; height: 40px; }
.sc-emoji-tile.is-selected { border-color: var(--white); }
.sc-emoji-tile.is-pressed { transform: scale(0.95); }

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 1099px) {
  .sc-menubar-trail > :nth-child(-n+4) { display: none; }
}
@media (max-width: 899px) {
  .sc-menubar-trail > :nth-child(-n+6) { display: none; }
  .sc-menubar-lead > span:nth-child(n+5) { display: none; }
}
@media (max-width: 719px) {
  .sc-title h2,
  .sc-title p { font-size: 18px; line-height: 1.6; }
  .sc-title { margin-bottom: var(--s-6); }
  .sc-menubar { display: none; }
  .sc-viewport { top: 16px; bottom: 90px; }
  .sc-stars { inset: -45px -40px; }
  .sc-stars-strip[data-side="left"] { left: 0; width: 40px; }
  .sc-stars-strip[data-side="right"] { right: 0; width: 40px; }
  .sc-caption { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-caret { animation: none; }
  .sc-star::before,
  .sc-star::after,
  .sc-caption-inner,
  .sc-toast,
  .sc-emoji-tile,
  .sc-dock-btn,
  .sc-tooltip.is-moving { transition: none; }
  .sc-tooltip.is-swap { animation: none; }
}
