
/* Laplace Demon UI — card-based, adaptive */
.laplace-wrap{
  font-family: inherit;
  color: inherit;
  --laplace-accent: #ff7a00;
  --laplace-radius: 18px;
  --laplace-bg: rgba(255,255,255,0.06);
  --laplace-border: rgba(255,255,255,0.12);
  --laplace-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.laplace-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items:start;
}

.laplace-card{
  background: var(--laplace-bg);
  border: 1px solid var(--laplace-border);
  border-radius: var(--laplace-radius);
  box-shadow: var(--laplace-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
}

.laplace-demon-card{ overflow:hidden; position:relative; }

.laplace-demon-media{
  position:relative;
  border-radius: calc(var(--laplace-radius) - 6px);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.14);
}

.laplace-demon-img,
.laplace-demon-video{
  width:100%;
  height:auto;
  display:block;
  transform: translate3d(0,0,0) scale(1.02);
  will-change: transform;
}

.laplace-demon-glow{
  position:absolute;
  inset:-20%;
  background: radial-gradient(circle at 30% 30%, rgba(255,122,0,.35), rgba(255,122,0,0) 55%);
  mix-blend-mode: screen;
  opacity:.7;
  pointer-events:none;
  animation: laplaceGlow 5.5s ease-in-out infinite;
}

@keyframes laplaceGlow{
  0%,100%{ transform: translate3d(-2%, -1%, 0) scale(1); opacity:.55; }
  50%{ transform: translate3d(2%, 1%, 0) scale(1.05); opacity:.9; }
}

.laplace-demon-badge{
  position:absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.2;
  max-width: 80%;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transform: translateY(10px);
  opacity: 0;
  transition: all .35s ease;
}
.laplace-demon-badge.is-visible{ transform: translateY(0); opacity: 1; }

.laplace-left-text{ padding-top: 14px; }
.laplace-subtitle{ font-size: 15px; line-height: 1.45; opacity: .95; }
.laplace-how{ margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.laplace-how-title{ font-weight: 700; margin-bottom: 6px; }
.laplace-how-body{ font-size: 14px; line-height: 1.5; opacity: .95; }
.laplace-how-link{ margin-top: 8px; }
.laplace-how-link a{ color: var(--laplace-accent); text-decoration: none; border-bottom: 1px dashed rgba(255,122,0,.6); }
.laplace-how-link a:hover{ border-bottom-style: solid; }
.laplace-note{ margin-top: 12px; font-size: 13px; opacity: .8; }

.laplace-form-row{ margin-bottom: 12px; }
.laplace-form-row label{ display:block; font-weight: 650; margin-bottom: 6px; }
.laplace-help{ margin-top: 6px; font-size: 12.5px; opacity: .78; line-height: 1.35; }
.laplace-required{ color: var(--laplace-accent); font-weight: 900; margin-left: 4px; }

.laplace-form-row textarea,
.laplace-form-row input{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: inherit;
  padding: 10px 12px;
  outline:none;
}
.laplace-form-row textarea:focus,
.laplace-form-row input:focus{
  border-color: rgba(255,122,0,.65);
  box-shadow: 0 0 0 4px rgba(255,122,0,.18);
}
.laplace-field-error{
  border-color: rgba(255, 90, 90, .65) !important;
  box-shadow: 0 0 0 4px rgba(255, 90, 90, .14) !important;
}

.laplace-actions{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 6px; }

.laplace-btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: inherit;
  padding: 10px 14px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  font-weight: 650;
}
.laplace-btn:hover{ background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); }
.laplace-btn:active{ transform: translateY(1px); }

.laplace-btn-primary{
  background: linear-gradient(135deg, rgba(255,122,0,.92), rgba(255,122,0,.62));
  border-color: rgba(255,122,0,.65);
  color: #111;
}
.laplace-btn-primary:hover{ background: linear-gradient(135deg, rgba(255,122,0,1), rgba(255,122,0,.7)); }
.laplace-btn-ghost{ background: transparent; }
.laplace-btn-danger{ background: rgba(255, 70, 70, .12); border-color: rgba(255, 70, 70, .26); }
.laplace-btn-danger:hover{ background: rgba(255, 70, 70, .16); border-color: rgba(255, 70, 70, .35); }

.laplace-status{ margin-top: 10px; font-size: 14px; opacity: .9; min-height: 18px; }

.laplace-result-head{ display:flex; flex-wrap:wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.laplace-result-title{ font-size: 18px; font-weight: 800; }
.laplace-result-sub{ opacity: .85; font-size: 13px; }

.laplace-result-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.laplace-section-title{ font-weight: 750; margin-bottom: 8px; }

.laplace-item{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.laplace-item-title{ display:flex; align-items:center; justify-content:space-between; gap: 10px; font-weight: 750; margin-bottom: 6px; }
.laplace-pill{ font-size: 12px; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); opacity: .9; }
.laplace-item-desc{ font-size: 14px; line-height: 1.45; opacity: .95; }

.laplace-warning{
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,122,0,.35);
  background: rgba(255,122,0,.10);
  padding: 10px 12px;
  font-size: 14px;
}

.laplace-history-head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 10px; margin-bottom: 10px; }
.laplace-history-title{ font-size: 16px; font-weight: 800; }
.laplace-history-actions{ display:flex; gap: 10px; flex-wrap:wrap; }
.laplace-history-list{ display:flex; flex-direction:column; gap: 10px; }

.laplace-history-row{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  border-radius: 14px;
  padding: 10px 12px;
}
.laplace-history-date{ font-weight: 750; margin-bottom: 6px; }
.laplace-history-mini{ font-size: 13px; opacity: .92; line-height: 1.45; }

.laplace-locked-title{ font-size: 18px; font-weight: 900; }
.laplace-locked-text{ margin-top: 8px; opacity: .9; line-height: 1.5; }
.laplace-locked-actions{ margin-top: 12px; display:flex; gap: 10px; flex-wrap:wrap; }

@media (max-width: 991px){
  .laplace-grid{ grid-template-columns: 1fr; }
  .laplace-result-grid{ grid-template-columns: 1fr; }
}


/* Promo shortcode */
.laplace-promo{
  position: relative;
  overflow: hidden;
}
.laplace-promo:before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 20% 30%, rgba(255,122,0,.28), rgba(255,122,0,0) 55%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%);
  pointer-events:none;
}
.laplace-promo-top{ position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:10px; }
.laplace-promo-badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  opacity: .95;
}
.laplace-promo-title{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;
}
.laplace-promo-text{
  position:relative;
  font-size: 15px;
  line-height: 1.55;
  opacity: .95;
  max-width: 72ch;
}
.laplace-promo-actions{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 12px;
  margin-top: 12px;
}
.laplace-promo-note{
  font-size: 13px;
  opacity: .82;
}
