/* Life OS — the 3D event card over a dimmed dashboard. */
.evc {
  position: fixed;
  inset: 0;
  z-index: 64;
  display: grid;
  place-items: center;
  padding: 20px;
  perspective: 1300px;
  background: rgba(3, 4, 14, 0);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}
.evc.is-open {
  background: rgba(3, 4, 14, 0.74);
  -webkit-backdrop-filter: blur(9px) saturate(60%);
  backdrop-filter: blur(9px) saturate(60%);
}
.evc-card {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding: 30px 26px 22px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(var(--c-rgb), 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 60px 120px -30px #000, 0 0 calc(70px * var(--glow)) rgba(var(--c-rgb), calc(0.4 * var(--glow)));
  opacity: 0;
  transform: translate3d(var(--fx, 0px), var(--fy, 60px), -500px) scale(var(--fs, 0.5)) rotateX(26deg);
  transition: transform 0.6s var(--ease-back), opacity 0.3s ease;
  will-change: transform;
}
.evc.is-open .evc-card {
  opacity: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.evc.is-live .evc-card {
  transition: transform 0.16s ease-out, opacity 0.3s ease;
}
.evc:not(.is-open) .evc-card {
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.evc-x {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-2);
  cursor: pointer;
}
.evc-x:hover {
  color: #fff;
  border-color: rgb(var(--c-rgb));
  box-shadow: 0 0 calc(14px * var(--glow)) rgba(var(--c-rgb), 0.6);
}
.evc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 30px;
}
.evc-icon {
  --icn: 40px;
  display: grid;
  place-items: center;
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(160deg, rgba(var(--c-rgb), 0.55), rgba(var(--c-rgb), 0.14));
  border: 1px solid rgba(var(--c-rgb), 0.8);
  box-shadow: 0 0 calc(30px * var(--glow)) rgba(var(--c-rgb), 0.5);
  overflow: hidden;
}
.evc-icon .icn-img {
  --icn: 76px;
}
.evc-titles {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.evc-kind {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: rgb(var(--c-rgb));
}
.evc-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 calc(22px * var(--glow)) rgba(var(--c-rgb), 0.6);
}
.evc-when {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-2);
}
.evc-when b {
  color: #fff;
}
.evc-note {
  white-space: pre-line;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
}
.evc-links {
  display: grid;
  gap: 8px;
}
.evc-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-m);
  border: 1px solid rgba(var(--c-rgb), 0.45);
  background: rgba(var(--c-rgb), 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.18s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}
.evc-link:hover {
  transform: translateY(-2px) translateZ(20px);
  background: rgba(var(--c-rgb), 0.2);
  box-shadow: 0 0 calc(22px * var(--glow)) rgba(var(--c-rgb), 0.5);
}
.evc-link i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(var(--c-rgb), 0.25);
  border: 1px solid rgba(var(--c-rgb), 0.7);
}
.evc-link small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
}
.evc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.evc-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.d-next,
.d-today-item,
.ov-item {
  cursor: pointer;
}
html:not([data-anim='full']) .evc-card {
  transition: opacity 0.2s ease;
  transform: none;
}
