/* compact.css — progressive disclosure. Folded content stays in the DOM; only its
   visibility changes, so nothing is hidden from a reader who wants it or from a crawler. */

.cmp-hid{display:none}

.cmp-more{display:block;width:100%;margin:.75rem 0 .2rem;padding:.6rem .9rem;
  background:linear-gradient(180deg,rgba(6,30,14,.62),rgba(2,12,6,.78));
  border:1px solid rgba(0,255,65,.24);border-radius:8px;cursor:pointer;
  font-family:var(--mono,ui-monospace,monospace);font-size:.76rem;letter-spacing:.24em;
  color:#5FA87C;text-align:center;transition:color .15s,border-color .15s,background .15s}
.cmp-more:hover{color:#00FF41;border-color:rgba(0,255,65,.55);
  background:linear-gradient(180deg,rgba(8,42,19,.72),rgba(3,18,9,.85))}
.cmp-more:focus-visible{outline:2px solid rgba(0,255,65,.6);outline-offset:2px}

/* section-level fold: the essence stays, the depth is one click down */
.cmp-rest{max-height:0;overflow:hidden;opacity:0;
  transition:max-height .45s ease,opacity .35s ease}
.cmp-rest.open{max-height:600rem;opacity:1}

/* the strongest sections should READ as the strongest — a lit edge, not a shout */
.cmp-star{position:relative}
.cmp-star > .win-bar, .cmp-star .win-bar{
  background:linear-gradient(180deg,#2FA357,#0E5F2B) !important;
  box-shadow:0 0 22px rgba(0,255,65,.22)}
.cmp-star{box-shadow:0 0 34px rgba(0,255,65,.10)}

/* ── CREATIONS OF THE DAEMON ────────────────────────────────────────────── */
#creations .crt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));
  gap:.55rem;margin-top:1rem}
#creations .crt-cell{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;
  border:1px solid rgba(0,255,65,.22);background:#020503;
  transition:border-color .18s,transform .18s}
#creations .crt-cell:hover{border-color:rgba(0,255,65,.6);transform:translateY(-2px)}
#creations .crt-cell img,#creations .crt-cell video{width:100%;height:100%;object-fit:cover;display:block;
  filter:saturate(.92) contrast(1.04)}
#creations .crt-tag{position:absolute;left:.4rem;top:.4rem;font-family:var(--mono,monospace);
  font-size:.55rem;letter-spacing:.2em;color:#020503;background:#00FF41;padding:.12rem .34rem}
#creations .crt-enter{display:inline-block;margin-top:1rem;padding:.6rem 1rem;
  border:1px solid rgba(0,255,65,.4);font-family:var(--mono,monospace);font-size:.8rem;
  letter-spacing:.22em;color:#00FF41;text-decoration:none;transition:background .15s,border-color .15s}
#creations .crt-enter:hover{background:rgba(0,255,65,.1);border-color:#00FF41}

@media (prefers-reduced-motion: reduce){
  .cmp-rest{transition:none}
  #creations .crt-cell{transition:none}
  #creations .crt-cell:hover{transform:none}
}
