/* LimCore's card on limcore.org's home page: LimCore's own neutral greys (dark and light, as in
   the apps), its shield and a small live window of the app. Everything is scoped to .project--limcore. */
.project--limcore {
  --lc-bg: #121212;
  --lc-panel: #1a1a1a;
  --lc-panel-2: #222;
  --lc-line: rgba(255, 255, 255, .08);
  --lc-ink: #e6e6e6;
  --lc-muted: #8a8a8a;
  --lc-good: #8fd19e;
  --lc-mid: #e8c06a;
  --lc-bad: #ef8f86;
  font-family: Inter, system-ui, sans-serif;
  color: var(--lc-ink);
  background:
    radial-gradient(ellipse 70% 50% at 85% 0%, rgba(255, 255, 255, .075), transparent 70%),
    var(--lc-bg);
  border: 1px solid var(--lc-line);
}
@media (prefers-color-scheme: light) {
  .project--limcore {
    --lc-bg: #fff;
    --lc-panel: #f4f4f4;
    --lc-panel-2: #e9e9e9;
    --lc-line: rgba(0, 0, 0, .08);
    --lc-ink: #1b1b1b;
    --lc-muted: #6b6b6b;
    --lc-good: #2f9a4c;
    --lc-mid: #b37a12;
    --lc-bad: #c84a3f;
    background: radial-gradient(ellipse 70% 50% at 85% 0%, rgba(0, 0, 0, .04), transparent 70%), var(--lc-bg);
  }
}
.project--limcore:hover { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); }
.project--limcore .lc-icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.project--limcore .project__text { color: var(--lc-muted); }
.project--limcore .project__chips li { border: 1px solid var(--lc-line); color: var(--lc-muted); }

/* the app window, peeking from the bottom right corner (the picture area is as tall as the window) */
.project--limcore .project__art { min-height: 300px; }
.lc-win {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: min(88%, 440px);
  border: 1px solid var(--lc-line);
  border-right: 0;
  border-bottom: 0;
  border-radius: 20px 0 0 0;
  background: var(--lc-panel);
  box-shadow: -20px -10px 60px rgba(0, 0, 0, .25);
  transform: translateY(8px);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.project--limcore:hover .lc-win { transform: translateY(0); }
.lc-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding-inline: 16px; border-bottom: 1px solid var(--lc-line); font-size: 12px; color: var(--lc-muted); }
.lc-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--lc-panel-2); }
.lc-bar span { margin-left: 8px; }
.lc-main { display: flex; align-items: center; gap: 16px; padding: 18px 18px 14px; }
.lc-orb {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--lc-panel-2);
  color: var(--lc-muted);
  transition: background .5s, color .5s;
}
.lc-orb svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lc-orb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--lc-ink); opacity: 0; }
.lc-win[data-state="wait"] .lc-orb::after { opacity: .5; border-color: transparent; border-top-color: var(--lc-ink); animation: lc-spin .9s linear infinite; }
.lc-win[data-state="on"] .lc-orb { background: var(--lc-ink); color: var(--lc-bg); }
.lc-win[data-state="on"] .lc-orb::after { animation: lc-pulse 2.4s ease-out infinite; }
.lc-state { display: grid; gap: 2px; }
.lc-state b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.lc-time { font: 500 12px/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--lc-muted); }
.lc-list { display: grid; gap: 6px; padding: 0 14px 18px; }
.lc-row { display: flex; align-items: center; gap: 10px; height: 42px; padding-inline: 12px; border-radius: 12px; background: var(--lc-panel-2); font-size: 13px; transition: outline-color .3s; outline: 1px solid transparent; }
.lc-row:first-child { outline-color: var(--lc-line); }
.lc-row img { width: 20px; height: 20px; border-radius: 50%; }
.lc-row span { flex: 1; }
.lc-ping { font: 500 12px "JetBrains Mono", ui-monospace, monospace; color: var(--lc-good); }
.lc-ping.mid { color: var(--lc-mid); }
.lc-ping.bad { color: var(--lc-bad); }

@keyframes lc-spin { to { transform: rotate(360deg); } }
@keyframes lc-pulse { 0% { opacity: .45; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
@media (max-width: 560px) { .lc-win { width: 92%; } }
@media (prefers-reduced-motion: reduce) {
  .lc-win { transition: none; transform: none; }
  .lc-orb::after { animation: none !important; }
}
